1 2009-09-07 Ulrich Drepper <drepper@redhat.com>
3 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
6 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
8 * configure.in: Support binutils 2.20.
10 2009-09-03 Ulrich Drepper <drepper@redhat.com>
12 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
13 __strstr_ia32): Add attribute_hidden.
15 2009-09-01 Andreas Schwab <schwab@redhat.com>
17 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
18 parsing of group entry.
20 2009-09-02 Andreas Schwab <schwab@redhat.com>
22 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
23 external buffer. Always discard readahead in internal buffer.
24 * libio/Makefile (tests): Add bug-wsetpos.
25 * libio/bug-wsetpos.c: New file.
27 2009-09-02 Jakub Jelinek <jakub@redhat.com>
29 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
31 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
32 __strcasestr_sse2): Likewise.
33 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
34 (__fma_fma): Make static.
35 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
36 (__fmaf_fma): Make static.
38 2009-08-31 Andreas Schwab <schwab@redhat.com>
40 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
41 reformulate in-buffer optimisation check to match code in
44 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
46 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
47 to srwi in 32-bit memcpy for power6.
49 2009-09-01 Andreas Schwab <schwab@redhat.com>
51 * include/stdio.h: Declare hidden proto for fflush.
52 * libio/iofflush.c: Add hidden weak alias for fflush.
54 2009-09-01 Jakub Jelinek <jakub@redhat.com>
56 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
57 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
59 2009-08-31 Andreas Schwab <schwab@redhat.com>
61 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
63 2009-08-31 Ulrich Drepper <drepper@redhat.com>
66 * malloc/malloc.c: Add local assert definition to avoid problems with
67 memory allocation in the real one.
69 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
71 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
73 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
74 turn off SSSE3 on Atom.
76 2009-08-28 Ulrich Drepper <drepper@redhat.com>
78 * stdlib/tst-strtol.c (tests): More tests.
79 * stdlib/tst-strtoll.c (tests): Likewise.
81 2009-08-26 Ulrich Drepper <drepper@redhat.com>
83 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
85 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
87 2009-08-25 Ulrich Drepper <drepper@redhat.com>
89 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
90 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
92 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
94 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
96 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
98 2009-08-25 Joseph Myers <joseph@codesourcery.com>
100 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
102 2009-08-25 Ulrich Drepper <drepper@redhat.com>
104 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
105 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
107 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
109 * sysdeps/x86_64/fpu/s_signbit.S: New file.
110 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
112 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
113 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
115 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
116 leftover YMM_SIZE definition.
118 2009-08-24 Ulrich Drepper <drepper@redhat.com>
120 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
122 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
123 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
125 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
127 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
128 and SET_FLOAT_WORD definitions.
130 2009-08-24 Roland McGrath <roland@redhat.com>
132 * sysdeps/unix/syscall-template.S: New file.
133 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
134 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
135 (compile-syscall): Pass mkdep and -g options as normal.
136 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
137 (common-generated): Don't add them here.
139 2009-08-24 Ulrich Drepper <drepper@redhat.com>
141 * math/s_fdim.c: In case of overflows set errno.
142 * math/s_fdimf.c: Likewise.
143 * math/s_fdiml.c: Likewise.
145 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
146 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
147 are using the inline optimizations.
149 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
150 (__signbitf): Likewise.
152 2009-08-23 Ulrich Drepper <drepper@redhat.com>
154 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
156 * posix/Makefile (tests): Add bug-regex29.
157 * posix/bug-regex29.c: New file.
159 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
160 older POSIX versions are selected.
162 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
164 * stdio-common/printf_fphex.c: Likewise.
165 * stdio-common/tstdiomisc.c: Add more tests.
167 * locale/locale.h: Include xlocale.h and the thread-local locale
168 declarations for XPG7, not XPG6.
170 2009-08-21 Andreas Schwab <schwab@redhat.com>
172 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
173 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
176 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
177 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
179 2009-08-20 Roland McGrath <roland@redhat.com>
181 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
182 Use l_addr instead of l_map_start (dli_fbase).
183 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
184 address when there is no proximate symbol.
185 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
188 2009-08-16 Ulrich Drepper <drepper@redhat.com>
190 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
192 2009-08-14 Ulrich Drepper <drepper@redhat.com>
194 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
195 Also handle SIGINT. In that case only do the cleanup and then
197 (main): Install handler for SIGINT.
199 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
201 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
204 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
206 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
207 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
209 (tests): Add tst-audit6 tst-audit7.
210 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
211 tst-auditmod7a tst-auditmod7b.
212 ($(objpfx)tst-audit6): New.
213 ($(objpfx)tst-audit6.out): Likewise.
214 ($(objpfx)tst-audit7): Likewise.
215 ($(objpfx)tst-audit7.out): Likewise.
216 (tst-audit6-ENV): Likewise.
217 (tst-audit7-ENV): Likewise.
218 (CFLAGS-tst-auditmod6b.c): Likewise.
219 (CFLAGS-tst-auditmod6c.c): Likewise.
220 (CFLAGS-tst-auditmod7b.c): Likewise.
221 * elf/tst-audit6.c: New file.
222 * elf/tst-audit7.c: New file.
223 * elf/tst-auditmod6a.c: New file.
224 * elf/tst-auditmod6b.c: New file.
225 * elf/tst-auditmod6c.c: New file.
226 * elf/tst-auditmod7a.c: New file.
227 * elf/tst-auditmod7b.c: New file.
228 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
229 saving and restoring SSE/AVX registers to ...
230 * sysdeps/x86_64/dl-trampoline.h: This. New file.
232 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
234 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
235 only if SHARED is defined.
236 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
238 2009-08-03 Jim Meyering <meyering@redhat.com>
240 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
242 2009-08-08 Ulrich Drepper <drepper@redhat.com>
244 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
245 section as the other functions for this architecture.
246 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
248 2009-08-07 Ulrich Drepper <drepper@redhat.com>
250 * sysdeps/x86_64/strcmp.S: Add support to compile with
251 USE_SSSE3. In this case palignr is used.
252 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
253 available but SSSE3 is, pick __str{,n}cmp_ssse3.
254 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
255 Add strcmp-ssse3 and strncmp-ssse3.
256 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
257 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
259 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
260 warning through fake initialization.
262 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
264 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
266 2009-08-07 Andreas Schwab <schwab@redhat.com>
268 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
271 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
273 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
274 EBX from EAX = 1. Handle EAX = 11.
276 2009-08-07 Andreas Schwab <schwab@redhat.com>
278 * Makefile (TAGS): Use separate sed -e expressions to avoid \
281 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
283 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
284 hidden IFUNC functions.
285 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
287 * sysdeps/i386/i686/multiarch/strlen.S: New file.
289 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
290 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
292 (CFLAGS-strcspn-c.c): Define.
293 (CFLAGS-strpbrk-c.c): Define.
294 (CFLAGS-strspn-c.c): Define.
295 (CFLAGS-strstr.c): Define.
296 (CFLAGS-strcasestr.c): Define.
297 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
298 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
299 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
300 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
301 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
302 * sysdeps/i386/i686/multiarch/strspn.S: New file.
303 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
304 * sysdeps/i386/i686/multiarch/strstr.c: New file.
305 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
306 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
307 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
308 -16L instead of 0xfffffffffffffff0L.
309 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
311 2009-08-02 Ulrich Drepper <drepper@redhat.com>
313 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
315 2009-07-31 Ulrich Drepper <drepper@redhat.com>
317 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
318 another rewrite. Much smaller and faster.
319 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
321 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
322 ss_flags from the correct location.
324 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
326 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
327 * sysdeps/i386/i686/cacheinfo.c: New file.
328 * sysdeps/i386/i686/multiarch/Makefile: New file.
329 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
330 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
331 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
332 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
333 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
334 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
335 (__cpuid_count): New. Provide the default.
336 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
337 (__x86_64_preferred_memory_instruction): Define only if
338 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
339 (intel_check_word): Use __cpuid.
340 (handle_intel): Likewise.
341 (handle_amd): Likewise.
342 (__cache_sysconf): Likewise.
343 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
344 (__cache_sysconf): Likewise.
345 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
346 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
347 (get_common_indeces): Use __cpuid.
348 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
349 if ENABLE_SSSE3_ON_ATOM is not defined.
350 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
351 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
352 popcnt instead of popcntq.
354 2009-07-31 Jakub Jelinek <jakub@redhat.com>
356 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
358 2009-07-30 Ulrich Drepper <drepper@redhat.com>
360 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
361 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
362 which always causes a compile error.
364 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
366 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
368 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
369 which always causes a compile error.
371 * debug/Makefile (tests): Add tst-longjmp_chk2.
372 * debug/tst-longjmp_chk2.c: New file.
374 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
375 Remove incorrect use of BP_SYM.
376 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
377 here now since it is more complex than just a simple check.
379 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
380 we make no more progress.
382 2009-07-29 Ulrich Drepper <drepper@redhat.com>
384 * math/s_fma.c: Don't define alias if __fma is a macro.
385 * math/s_fmaf.c: Likewise.
386 * sysdeps/x86_64/multiarch/s_fma.c: New file.
387 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
388 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
390 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
391 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
393 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
395 * include/libc-symbols.h (libm_ifunc): Define.
396 * sysdeps/x86_64/multiarch/Versions: New file.
398 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
400 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
402 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
404 2009-07-29 Ulrich Drepper <drepper@redhat.com>
406 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
407 call that registers used in calling conventions need to be preserved.
408 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
409 to preserve register content if necessary.
410 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
411 (_dl_x86_64_restore_sse): New function.
412 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
413 is allowed to modify xmm/ymm registers.
415 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
416 application's perspective.
417 * stdio-common/scanf17.c: Likewise.
419 2009-07-28 Ulrich Drepper <drepper@redhat.com>
421 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
423 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
425 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
426 two steps to catch bugs.
428 2009-07-27 Ulrich Drepper <drepper@redhat.com>
430 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
431 determines which files are used in runtime lookups and only checks
433 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
435 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
436 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
437 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
440 * elf/dl-open.c: Move _dl_scope_free to...
441 * elf/dl-scope.c: ...here. New file.
442 * elf/Makefile (dl-routines): Add scope.
444 * resolv/resolv.h (RES_USE_DNSSEC): Define.
445 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
447 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
448 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
449 all the places we handled RES_USE_EDNS0 only before.
450 Patch by Adam Tkac <atkac@redhat.com>.
452 2009-07-27 Jakub Jelinek <jakub@redhat.com>
454 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
455 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
456 Update size when reallocating.
458 2009-07-26 Ulrich Drepper <drepper@redhat.com>
460 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
461 functions used in ld.so modify xmm/ymm registers.
462 * sysdeps/x86_64/Makefile: Hook new test up.
463 * sysdeps/x86_64/rtld-memchr.c: New file.
464 * sysdeps/x86_64/rtld-memcmp.c: New file.
465 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
466 * sysdeps/x86_64/rtld-strchr.S: New file.
467 * sysdeps/x86_64/rtld-strlen.S: New file.
468 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
469 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
471 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
473 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
475 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
483 (next_8_bytes): Likewise.
484 (Byte0): Remove commented out codes.
485 (unaligned_table): Align jump table at 8 bytes.
486 Add _sse4_2 to all labels. Always include "../strcmp.S".
487 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
488 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
489 * sysdeps/x86_64/strncmp.S: New file.
491 2009-07-26 Ulrich Drepper <drepper@redhat.com>
494 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
495 kernels, dropped when eventfd2 support was added.
496 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
497 kernels, dropped when signalfd4 support was added.
498 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
502 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
505 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
507 2009-07-25 Ulrich Drepper <drepper@redhat.com>
509 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
510 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
513 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
514 callback we must touch the status to avoid using stale value.
516 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
519 2009-07-24 Ulrich Drepper <drepper@redhat.com>
521 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
522 /lib/modules/* headers anymore. We have sane headers in the standard
525 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
527 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
528 "etf3enh" and "highgprs" added.
529 (_dl_s390_platforms): "z10" added.
530 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
531 Increased for the new entries.
532 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
533 HWCAP_S390_HIGH_GPRS added.
535 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
536 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
537 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
538 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
539 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
541 2009-07-23 Ulrich Drepper <drepper@redhat.com>
543 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
544 avoid additional cpuid instructions. Most of the information is
547 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
549 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
551 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
553 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
556 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
557 structure before copying it to avoid warning.
558 * posix/tst-rfc3484-2.c (do_test): Likewise.
559 * posix/tst-rfc3484-3.c (do_test): Likewise.
562 * include/unistd.h: Make header file suitable for C++ test cases.
563 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
565 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
566 stack alignment in the exit code.
568 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
571 * elf/tst-unique1.c: Extend test to check for unloading DSO with
572 unique symbol definition.
573 Patch by Jakub Jelinek.
574 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
575 make sure the object with the definition cannot be unloaded. Adjust
577 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
578 the unique symbol hash table should not be const.
580 2009-07-22 Jakub Jelinek <jakub@redhat.com>
582 * Makeconfig (ASFLAGS): Append $(sysdep-ASFLAGS).
583 * sysdeps/i386/Makefile (sysdep-ASFLAGS): Add -U__i686.
585 2009-07-21 Ulrich Drepper <drepper@redhat.com>
587 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
588 unnecesary variables. Comment fixes.
590 2009-07-20 Ulrich Drepper <drepper@redhat.com>
592 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
593 Use NONASCII_CASE information provided by the locale to determine
594 whether optimized string load function can be used. Minor cleanups.
596 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
598 * string/strcasestr.c (STRCASESTR): New macro.
599 (__strcasestr): Renamed to ..
600 (STRCASESTR): ...this.
601 * string/strstr.c (STRSTR): New macro.
602 (strstr): Renamed to ..
604 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
605 strstr-c strcasestr-c
606 (CFLAGS-strstr.c): New.
607 (CFLAGS-strcasestr.c): Likewise.
608 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
609 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
610 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
611 * sysdeps/x86_64/multiarch/strstr.c: New file.
613 2009-07-20 Ulrich Drepper <drepper@redhat.com>
615 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
616 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
617 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
618 _NL_CTYPE_NONASCII_CASE.
619 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
621 (ctype_finish): Check whether there are any 8-bit characters outside
622 the range ASCII has or whether the mapping isn't the same as for
623 ASCII (±0x20). Set nonascii_case appropriately.
624 (ctype_output): Add output handler for nonascii_case.
626 2009-07-17 Ulrich Drepper <drepper@redhat.com>
628 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
629 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
631 2009-07-16 Ulrich Drepper <drepper@redhat.com>
634 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
635 0xffff in the EDNS0 record.
637 2009-07-16 Ulrich Drepper <drepper@redhat.com>
639 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
640 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
641 is written before the list head update.
642 Patch by Andreas Schwab <aschwab@redhat.com>.
644 2009-07-16 Ulrich Drepper <drepper@redhat.com>
645 Jakub Jelinek <jakub@redhat.com>
647 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
648 corruption thread-safe.
650 2009-07-13 Jakub Jelinek <jakub@redhat.com>
652 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
653 overrides atomic_compare_and_exchange_val_rel, define to
654 atomic_compare_and_exchange_val_rel by default, otherwise default
655 to catomic_compare_and_exchange_val_acq.
656 (catomic_compare_and_exchange_bool_rel): If arch overrides
657 atomic_compare_and_exchange_bool_rel, define to
658 atomic_compare_and_exchange_bool_rel by default.
659 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
660 Use catomic_compare_and_exchange_val_rel instead of
661 catomic_compare_and_exchange_val_acq.
663 2009-07-16 Ulrich Drepper <drepper@redhat.com>
665 * sysdeps/generic/ldsodefs.h: Add prototype for
666 _dl_higher_prime_number.
667 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
669 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
670 restoring of ymm registers a bit.
672 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
674 * sysdeps/x86_64/memcmp.S: New file.
676 2009-07-15 Ulrich Drepper <drepper@redhat.com>
678 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
679 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
680 pointers in writable memory.
682 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
684 * config.h.in: Add HAVE_AVX_SUPPORT entry.
685 * config.make.in: Add config-cflags-avx entry.
686 * configure.in: Substitute libc_cv_cc_avx.
687 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
688 * elf/tst-audit4.c: New file.
689 * elf/tst-audit5.c: New file.
690 * elf/tst-auditmod4a.c: New file.
691 * elf/tst-auditmod4b.c: New file.
692 * elf/tst-auditmod5a.c: New file.
693 * elf/tst-auditmod5b.c: New file.
694 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
696 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
697 (La_x86_64_vector): Likewise.
698 (La_x86_64_regs): Append lr_vector.
699 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
700 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
701 saving and restoring SSE registers to ...
702 * sysdeps/x86_64/dl-trampoline.h: This. New file.
703 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
705 (_dl_runtime_profile): Use LR_SIZE to allocate space for
706 La_x86_64_regs. Allocate extra space and jump to memory at
707 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
708 (save_and_restore_vector_sse): New.
709 (save_and_restore_vector_avx): Likewise.
710 (check_avx): Likewise.
711 (save_and_restore_vector): Likewise.
712 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
714 * sysdeps/x86_64/link-defines.sym: New file.
716 2009-07-10 Ulrich Drepper <drepper@redhat.com>
718 * elf/do-lookup.h: Removed after folding content into...
719 * elf/dl-lookup.c: ...here.
721 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
723 2009-07-09 Ulrich Drepper <drepper@redhat.com>
725 * configure.in: Check for gnu_unique_symbol symbol type.
726 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
727 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
728 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
729 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
731 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
733 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
735 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
736 unique symbol hash table.
737 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
738 * elf/tst-unique1.c: New file.
739 * elf/tst-unique1mod1.c: New file.
740 * elf/tst-unique1mod2.c: New file.
741 * elf/tst-unique2.c: New file.
742 * elf/tst-unique2mod1.c: New file.
743 * elf/tst-unique2mod2.c: New file.
745 2009-07-07 Ulrich Drepper <drepper@redhat.com>
747 * elf/elf.h (STB_GNU_UNIQUE): Define.
749 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
751 * include/inline-hashtab.h: ...here.
752 (htab_expand): Adjust for renamed function. Correct memory handling.
754 2009-07-06 Ulrich Drepper <drepper@redhat.com>
756 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
758 2009-07-03 Andreas Schwab <aschwab@redhat.com>
760 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
761 (PPC_FEATURE_HAS_VSX): Likewise.
763 2009-07-03 Ulrich Drepper <drepper@redhat.com>
765 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
766 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
768 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
769 aligned to 16 byte boundaries.
770 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
771 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
772 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
774 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
776 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
777 * config.make.in (config-cflags-sse4): New variable.
778 * configure.in: Substitute libc_cv_cc_sse4.
779 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
781 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
782 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
783 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
784 * sysdeps/x86_64/multiarch/strcspn.S: New file.
785 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
786 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
787 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
788 * sysdeps/x86_64/multiarch/strspn.S: New file.
790 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
792 * elf/Makefile (distribute): Remove tst-audit.sh. Add
793 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
794 (tests): Add tst-audit3 for x86_64.
795 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
796 ($(objpfx)tst-audit3): Define.
797 ($(objpfx)tst-audit3.out): Define.
798 (tst-audit3-ENV): Define.
799 * elf/tst-audit3.c: New file.
800 * elf/tst-auditmod3a.c: New file.
801 * elf/tst-auditmod3b.c: New file.
802 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
805 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
806 (__stpncpy): Renamed to ...
808 (stpncpy): Create alias only if STPNCPY is not defined.
809 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
811 (strncpy): Renamed to ...
813 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
814 stpncpy-c strncpy-c for string.
815 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
816 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
817 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
818 * sysdeps/x86_64/multiarch/strcpy.S: New file.
819 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
820 * sysdeps/x86_64/multiarch/strncpy.S: New file.
822 2009-07-02 Ulrich Drepper <drepper@redhat.com>
824 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
825 adding to fast bin list.
827 2009-07-01 Ulrich Drepper <drepper@redhat.com>
829 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
830 inet_makeaddr. This worked only with class-based networks.
831 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
834 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
836 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
837 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
838 be in host byte order.
840 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
842 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
843 (MODEL_OFFSET): Define.
844 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
846 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
847 out common code into new function get_common_indeces. Determine
848 extended family and model for Intel processors.
850 2009-06-26 Andreas Schwab <aschwab@redhat.com>
852 * timezone/zic.c (stringzone): Don't try to generate a POSIX TZ
853 string when the timezone ends in DST.
855 2009-06-26 Ulrich Drepper <drepper@redhat.com>
857 * resolv/resolv.h: Define RES_SNGLKUPREOP.
858 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
860 * resolv/res_send.c (reopen): New function. Broken out of...
861 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
862 fallback mechanism. If single-request fails switch to
863 single-request-reopen mode which opens a new socket for the second
866 2009-06-25 Andreas Schwab <aschwab@redhat.com>
868 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
871 2009-06-24 Andreas Schwab <aschwab@redhat.com>
873 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
875 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
876 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
877 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
879 2009-06-23 Andreas Schwab <aschwab@redhat.com>
881 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
883 2009-06-22 Ulrich Drepper <drepper@redhat.com>
885 * po/id.po: Update from translation team.
887 * po/bg.po: Update from translation team.
889 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
891 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
893 (strncmp): Renamed to STRNCMP.
894 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
895 strncmp-c for string.
896 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
897 * sysdeps/x86_64/multiarch/strcmp.S: New file.
898 * sysdeps/x86_64/multiarch/strncmp.S: New file.
899 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
901 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
903 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
904 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
905 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
906 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
907 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
909 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
910 ifuncmain7static, and ifuncmain7picstatic.
911 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
912 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
913 $(objpfx)ifuncmain7pie.out.
914 (modules-names): Add ifuncmod5 ifuncmod6
915 (ifuncmod5.so-no-z-defs): Define.
916 (ifuncmod6.so-no-z-defs): Define.
917 (CFLAGS-ifuncmain5pic.c): Define.
918 (CFLAGS-ifuncmain5picstatic.c): Define.
919 (CFLAGS-ifuncmain5staticpic.c): Define.
920 (CFLAGS-ifuncdep5pic.c): Define.
921 (CFLAGS-ifuncmain7pic.c): Define.
922 (CFLAGS-ifuncmain7picstatic.c): Define.
923 (CFLAGS-ifuncmain1staticpie.c): Define.
924 (CFLAGS-ifuncmain5pie.c): Define.
925 (CFLAGS-ifuncmain6pie.c): Define.
926 (CFLAGS-ifuncmain7pie.c): Define.
927 ($(objpfx)ifuncmain1staticpie.out): Define.
928 ($(objpfx)ifuncmain1staticpie): Define.
929 ($(objpfx)ifuncmain5pie.out): Define.
930 ($(objpfx)ifuncmain5pie): Define.
931 ($(objpfx)ifuncmain6pie.out): Define.
932 ($(objpfx)ifuncmain6pie): Define.
933 ($(objpfx)ifuncmain5): Define.
934 ($(objpfx)ifuncmain5pic): Define.
935 ($(objpfx)ifuncmain5static): Define.
936 ($(objpfx)ifuncmain5staticpic): Define.
937 ($(objpfx)ifuncmain5picstatic): Define.
938 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
939 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
941 * elf/b/elf/ifuncmain1staticpie.c: New file.
942 * elf/ifuncdep5.c: New file.
943 * elf/ifuncdep5pic.c: New file.
944 * elf/ifuncmain5.c: New file.
945 * elf/ifuncmain5pic.c: New file.
946 * elf/ifuncmain5picstatic.c: New file.
947 * elf/ifuncmain5pie.c: New file.
948 * elf/ifuncmain5static.c: New file.
949 * elf/ifuncmain5staticpic.c: New file.
950 * elf/ifuncmain6pie.c: New file.
951 * elf/ifuncmain7.c: New file.
952 * elf/ifuncmain7pic.c: New file.
953 * elf/ifuncmain7picstatic.c: New file.
954 * elf/ifuncmain7pie.c: New file.
955 * elf/ifuncmain7static.c: New file.
956 * elf/ifuncmod5.c: New file.
957 * elf/ifuncmod6.c: New file.
959 2009-06-20 Ulrich Drepper <drepper@redhat.com>
962 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
963 (nss_endgrent): New variable.
964 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
965 fields. Change type of files to bool and adjust all users.
966 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
967 (internal_endgrent): Call nss_endgrent if necessary.
968 (add_group): New function. Broken out of...
969 (check_and_add_group): ...here.
970 (getgrent_next_nss): Remove test that any callback is available.
971 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
972 callback. If there is no blacklist we can trust the results returned
973 by the initgroups_dyn callback. In case there is a callback and we
974 find a group entry for the group ID but it doesn't contain the
975 correct member, switch to the slow mode and use getgrent_r.
976 (internal_getgrent_r): When we see a +: entry, determine whether
977 there is any callback and which we can use the initgroups_dyn
980 2009-06-18 Ulrich Drepper <drepper@redhat.com>
982 * malloc/malloc.c (_int_malloc): Add some consistency checks.
983 (_int_free): Likewise.
985 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
987 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
988 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
989 and ARPHRD_IEEE802154_PHY.
991 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
992 relative to generic Linux version.
994 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
996 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
997 ($(objpfx)ifuncmain1vispie): Likewise.
999 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1001 * login/Makefile: Build pt_chown as PIE.
1003 2009-06-15 Andreas Schwab <aschwab@redhat.com>
1005 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1007 * elf/sln.c (usage): Likewise.
1008 * malloc/memusage.sh (do_help): Likewise.
1009 * nss/getent.c (more_help): Likewise.
1010 * posix/getconf.c (main): Likewise.
1011 * sunrpc/rpcinfo.c (usage): Likewise.
1012 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1014 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1016 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1018 * login/Makefile: If necessary link pt_chown with -lcap.
1019 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1020 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1022 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1024 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1026 * string/test-memchr.c (do_random_tests): Test very large lengths
1029 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1031 * Makeconfig (+link-pie): Define.
1032 (+prectorS): Define.
1033 (+postctorS): Define.
1034 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1035 * nscd/Makefile ($(objpfx)nscd): Likewise.
1037 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1040 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1042 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1044 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1046 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1048 * sysdeps/unix/grantpt.c: ...here.
1050 2009-06-15 Ulrich Drepper <drepper@redhat.com>
1052 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1053 chmod if it is necessary.
1056 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1057 when the slave device is in devpts or devfs.
1060 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1063 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1064 of nd_opt_home_agent_info_preference to uint16_t.
1065 Patch by Arnaud Ebalard <arno@natisbad.org>.
1068 * nss/getent.c: Add support for printing gshadow data.
1071 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1072 not just the currently used one and those which follow.
1073 Patch by Joe Landers <jlanders@vmware.com>.
1076 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1077 * libio/Makefile: Run tst-fgetwc with necessary envvar.
1078 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1081 * stdlib/abort.c: Define variable __abort_msg.
1082 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1083 * include/stdlib.h: Declare __abort_msg.
1084 * assert/assert-perr.c: Don't free buffer for message immediately.
1085 Store atomically in __abort_msg and free old buffer if necessary.
1086 * assert/assert.c: Likewise.
1087 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1088 store pointer in __abort_msg, and possibly free old string.
1089 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1091 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1094 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1095 handle leap seconds if they are available.
1096 Patch by Akinori Hattori <hattya@gentoo.org>.
1098 * timezone/tzselect.ksh: Update from tzcode2009i.
1099 * timezone/zdump.c: Likewise.
1100 * timezone/zic.c: Likewise.
1102 * timezone/africa: Update from tzdata2009i.
1103 * timezone/antarctica: Likewise.
1104 * timezone/asia: Likewise.
1105 * timezone/australasia: Likewise.
1106 * timezone/backward: Likewise.
1107 * timezone/etcetera: Likewise.
1108 * timezone/europe: Likewise.
1109 * timezone/factory: Likewise.
1110 * timezone/iso3166.tab: Likewise.
1111 * timezone/leapseconds: Likewise.
1112 * timezone/northamerica: Likewise.
1113 * timezone/pacificnew: Likewise.
1114 * timezone/solar87: Likewise.
1115 * timezone/solar88: Likewise.
1116 * timezone/solar89: Likewise.
1117 * timezone/southamerica: Likewise.
1118 * timezone/systemv: Likewise.
1119 * timezone/yearistype: Likewise.
1120 * timezone/zone.tab: Likewise.
1122 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1124 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1125 STT_GNU_IFUNC symbol or in 8 into type_class.
1127 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1128 instead of Elf64_Addr.
1130 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1132 * po/sv.po: Update from translation team.
1135 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1136 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1137 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1140 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1142 * Versions.def: Add GLIBC_2.11 for libpthread.
1144 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1146 * resolv/res_send.c (send_dg): Remember we switched to
1147 single-request mode.
1149 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1151 * dlfcn/dlfcn.h: Remove comma at end of enum.
1152 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1154 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1155 parsing mode string.
1157 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1159 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1161 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1163 * sysdeps/x86_64/multiarch/strlen.S: New file.
1164 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1165 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1166 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1169 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1172 2009-06-04 Ulrich Drepper <drepper@redhat.com>
1174 * sysdeps/x86_64/strlen.S: Minor optimizations.
1176 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1178 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1179 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1180 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1181 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1182 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1183 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1184 ifuncmain3.c, ifuncmod3.c,.
1185 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1186 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1187 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1188 ifuncmain4picstatic.
1189 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1190 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1191 ifuncmain3, ifuncmain4.
1192 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1193 $(objpfx)ifuncmain1vispie.out.
1194 (modules-names): Add ifuncmod1 ifuncmod3.
1195 (generated): Add ifuncmain1pie ifuncmain1pie.out
1196 ifuncmain1vispie ifuncmain1vispie.out.
1197 Define rules to build and run the tests.
1198 * elf/ifuncdep1.c: New file.
1199 * elf/ifuncdep1pic.c: New file.
1200 * elf/ifuncdep2.c: New file.
1201 * elf/ifuncdep2pic.c: New file.
1202 * elf/ifuncmain1.c: New file.
1203 * elf/ifuncmain1pic.c: New file.
1204 * elf/ifuncmain1picstatic.c: New file.
1205 * elf/ifuncmain1pie.c: New file.
1206 * elf/ifuncmain1static.c: New file.
1207 * elf/ifuncmain1staticpic.c: New file.
1208 * elf/ifuncmain1vis.c: New file..
1209 * elf/ifuncmain1vispic.c: New file..
1210 * elf/ifuncmain1vispie.c: New file.
1211 * elf/ifuncmain2.c: New file.
1212 * elf/ifuncmain2pic.c: New file.
1213 * elf/ifuncmain2picstatic.c: New file.
1214 * elf/ifuncmain2static.c: New file.
1215 * elf/ifuncmain3.c: New file.
1216 * elf/ifuncmain4.c: New file.
1217 * elf/ifuncmain4picstatic.c: New file.
1218 * elf/ifuncmain4static.c: New file.
1219 * elf/ifuncmod1.c: New file.
1220 * elf/ifuncmod3.c: New file.
1222 2009-06-03 Ulrich Drepper <drepper@redhat.com>
1224 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1226 2009-06-02 Ulrich Drepper <drepper@redhat.com>
1229 * posix/Makefile (routines): Add execvpe.
1230 * posix/Versions: Export execvpe for GLIBC_2.11.
1231 * posix/execvp.c: Now only a wrapper. Move code to...
1232 * posix/execvpe.c: ...here. New file.
1233 * posix/unistd.h: Declare execvpe.
1235 2009-06-01 Ulrich Drepper <drepper@redhat.com>
1237 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1238 for STT_GNU_IFUNC handling for efficiency.
1239 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1241 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1243 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1245 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1247 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1250 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1252 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1254 (__rela_iplt_start): New declaration.
1255 (__rela_iplt_end): Likewise.
1256 (__rel_iplt_start): Likewise.
1257 (__rel_iplt_end): Likewise.
1258 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1259 * elf/elf.h (R_386_IRELATIVE): New macro.
1260 (R_X86_64_IRELATIVE): New macro.
1261 (R_386_NUM): Updated.
1262 (R_X86_64_NUM): Likewise.
1263 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1264 (libc_ifunc_hidden_def): New macro.
1265 * sysdeps/generic/dl-irel.h: New file.
1266 * sysdeps/i386/dl-irel.h: New file.
1267 * sysdeps/x86_64/dl-irel.h: New file.
1268 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1269 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1270 Handle R_386_IRELATIVE.
1271 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1272 (elf_machine_lazy_rela): Likewise.
1273 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1275 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1277 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1279 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1280 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1281 are no differences. If an architecture has bits in CPUID index 1
1282 meaning different things the values for the COMMON_CPUID_INDEX_1
1283 index must not be set.
1284 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1285 (HAS_POPCOUNT): ...this. New macro.
1286 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1287 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1288 to set the value for Intel and AMD architectures.
1289 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1290 INTEL_CPUID_INDEX_1.
1291 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1294 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1296 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1299 2009-05-29 Jakub Jelinek <jakub@redhat.com>
1301 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1302 (__expm1l): Set errno to ERANGE on overflow.
1303 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1304 (__tanl): Set errno to EDOM for ±Inf.
1305 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1306 (__cosl): Set errno to EDOM for ±Inf.
1307 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1308 (__sinl): Set errno to EDOM for ±Inf.
1310 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1312 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1313 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1314 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1316 2009-05-29 Ulrich Drepper <drepper@redhat.com>
1318 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1320 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1322 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
1324 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
1325 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1326 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1327 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1329 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1330 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1331 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1333 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1334 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1336 2009-05-22 Jakub Jelinek <jakub@redhat.com>
1338 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1339 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1340 is, either do nothing at all if __ASSUME_ACCEPT4, or
1341 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1342 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1343 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1345 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1346 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1347 internal_accept4 in socket directory.
1349 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1351 * sysdeps/ia64/configure.in: New file.
1353 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1356 * sysdeps/ia64/memchr.S: Use speculative load.
1358 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1359 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1362 * sysdeps/i386/__longjmp.S: Add .text.
1363 * sysdeps/x86_64/__longjmp.S: Likewise.
1365 2009-05-21 Ulrich Drepper <drepper@redhat.com>
1367 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1368 __ASSUME_ACCEPT4 for IA-64.
1370 2009-05-21 Jakub Jelinek <jakub@redhat.com>
1372 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1374 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1375 (SOCKOP_accept4): Define.
1377 2009-05-20 Ulrich Drepper <drepper@redhat.com>
1379 Sun approved the change of the license.
1380 * sunrpc/auth_des.c: Replace license text.
1381 * sunrpc/auth_none.c: Likewise.
1382 * sunrpc/auth_unix.c: Likewise.
1383 * sunrpc/authdes_prot.c: Likewise.
1384 * sunrpc/authuxprot.c: Likewise.
1385 * sunrpc/bindrsvprt.c: Likewise.
1386 * sunrpc/clnt_gen.c: Likewise.
1387 * sunrpc/clnt_perr.c: Likewise.
1388 * sunrpc/clnt_raw.c: Likewise.
1389 * sunrpc/clnt_simp.c: Likewise.
1390 * sunrpc/clnt_tcp.c: Likewise.
1391 * sunrpc/clnt_udp.c: Likewise.
1392 * sunrpc/clnt_unix.c: Likewise.
1393 * sunrpc/des_crypt.c: Likewise.
1394 * sunrpc/des_soft.c: Likewise.
1395 * sunrpc/get_myaddr.c: Likewise.
1396 * sunrpc/getrpcport.c: Likewise.
1397 * sunrpc/key_call.c: Likewise.
1398 * sunrpc/key_prot.c: Likewise.
1399 * sunrpc/openchild.c: Likewise.
1400 * sunrpc/pm_getmaps.c: Likewise.
1401 * sunrpc/pm_getport.c: Likewise.
1402 * sunrpc/pmap_clnt.c: Likewise.
1403 * sunrpc/pmap_prot.c: Likewise.
1404 * sunrpc/pmap_prot2.c: Likewise.
1405 * sunrpc/pmap_rmt.c: Likewise.
1406 * sunrpc/rpc/auth.h: Likewise.
1407 * sunrpc/rpc/auth_unix.h: Likewise.
1408 * sunrpc/rpc/clnt.h: Likewise.
1409 * sunrpc/rpc/des_crypt.h: Likewise.
1410 * sunrpc/rpc/key_prot.h: Likewise.
1411 * sunrpc/rpc/netdb.h: Likewise.
1412 * sunrpc/rpc/pmap_clnt.h: Likewise.
1413 * sunrpc/rpc/pmap_prot.h: Likewise.
1414 * sunrpc/rpc/pmap_rmt.h: Likewise.
1415 * sunrpc/rpc/rpc.h: Likewise.
1416 * sunrpc/rpc/rpc_des.h: Likewise.
1417 * sunrpc/rpc/rpc_msg.h: Likewise.
1418 * sunrpc/rpc/svc.h: Likewise.
1419 * sunrpc/rpc/svc_auth.h: Likewise.
1420 * sunrpc/rpc/types.h: Likewise.
1421 * sunrpc/rpc/xdr.h: Likewise.
1422 * sunrpc/rpc_clntout.c: Likewise.
1423 * sunrpc/rpc_cmsg.c: Likewise.
1424 * sunrpc/rpc_common.c: Likewise.
1425 * sunrpc/rpc_cout.c: Likewise.
1426 * sunrpc/rpc_dtable.c: Likewise.
1427 * sunrpc/rpc_hout.c: Likewise.
1428 * sunrpc/rpc_main.c: Likewise.
1429 * sunrpc/rpc_parse.c: Likewise.
1430 * sunrpc/rpc_parse.h: Likewise.
1431 * sunrpc/rpc_prot.c: Likewise.
1432 * sunrpc/rpc_sample.c: Likewise.
1433 * sunrpc/rpc_scan.c: Likewise.
1434 * sunrpc/rpc_scan.h: Likewise.
1435 * sunrpc/rpc_svcout.c: Likewise.
1436 * sunrpc/rpc_tblout.c: Likewise.
1437 * sunrpc/rpc_util.c: Likewise.
1438 * sunrpc/rpc_util.h: Likewise.
1439 * sunrpc/rpcinfo.c: Likewise.
1440 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1441 * sunrpc/rpcsvc/key_prot.x: Likewise.
1442 * sunrpc/rpcsvc/klm_prot.x: Likewise.
1443 * sunrpc/rpcsvc/mount.x: Likewise.
1444 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1445 * sunrpc/rpcsvc/rex.x: Likewise.
1446 * sunrpc/rpcsvc/rstat.x: Likewise.
1447 * sunrpc/rpcsvc/rusers.x: Likewise.
1448 * sunrpc/rpcsvc/sm_inter.x: Likewise.
1449 * sunrpc/rpcsvc/spray.x: Likewise.
1450 * sunrpc/rpcsvc/yppasswd.x: Likewise.
1451 * sunrpc/rtime.c: Likewise.
1452 * sunrpc/svc.c: Likewise.
1453 * sunrpc/svc_auth.c: Likewise.
1454 * sunrpc/svc_authux.c: Likewise.
1455 * sunrpc/svc_raw.c: Likewise.
1456 * sunrpc/svc_run.c: Likewise.
1457 * sunrpc/svc_simple.c: Likewise.
1458 * sunrpc/svc_tcp.c: Likewise.
1459 * sunrpc/svc_udp.c: Likewise.
1460 * sunrpc/svc_unix.c: Likewise.
1461 * sunrpc/svcauth_des.c: Likewise.
1462 * sunrpc/xcrypt.c: Likewise.
1463 * sunrpc/xdr.c: Likewise.
1464 * sunrpc/xdr_array.c: Likewise.
1465 * sunrpc/xdr_float.c: Likewise.
1466 * sunrpc/xdr_mem.c: Likewise.
1467 * sunrpc/xdr_rec.c: Likewise.
1468 * sunrpc/xdr_ref.c: Likewise.
1469 * sunrpc/xdr_sizeof.c: Likewise.
1470 * sunrpc/xdr_stdio.c: Likewise.
1472 * po/da.po: Update from translation team.
1474 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1476 * sysdeps/sh/____longjmp_chk.S: New file.
1477 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1478 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1480 2009-05-18 Jakub Jelinek <jakub@redhat.com>
1481 Ulrich Drepper <drepper@redhat.com>
1483 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1484 (__nscd_cache_search): Assume each entry in the
1485 hash chain needs one hashentry and half of datahead. Use
1486 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1488 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1490 * posix/sys/wait.h: Fix typos. Pretty printing.
1491 * stdlib/stdlib.h: Likewise. Correct comments.
1494 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1496 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1499 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1501 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1502 Use it if we absolutely cannot reach any more correct list elements
1503 because that many do not fit into the currently mapped database.
1505 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1507 * nscd/nscd_helper.c: Include stddef.h.
1508 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
1509 in a couple of places. Return NULL if trail is not less than
1510 datasize, don't consider dataheads with length smaller than
1511 offsetof (struct datahead, data) + datalen.
1512 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1513 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1514 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1515 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1516 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1517 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1518 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1520 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1522 (fallocate64): ... to this.
1523 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1525 (fallocate64): ... to this.
1526 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1527 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1528 fallocate64@@GLIBC_2.10.
1529 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1530 fallocate64@@GLIBC_2.11.
1531 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1533 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1534 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1536 * nscd/selinux.c (nscd_avc_destroy): Removed.
1537 * nscd/selinux.h (nscd_avc_destroy): Likewise.
1538 * nscd/nscd.c (termination_handler): Don't call
1541 2009-05-12 Jakub Jelinek <jakub@redhat.com>
1543 * include/atomic.h: Formatting.
1544 (catomic_compare_and_exchange_val_acq): Don't define if already
1545 defined by bits/atomic.h.
1547 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1549 * math/libm-test.inc (expm1_test): Add test for range error.
1551 * Versions.def: Add GLIBC_2.11 for libc.
1552 * debug/Makefile (routines): Add longjmp_chk.
1553 Add rules to build and run tst-longjmp_chk.
1554 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1555 * debug/longjmp_chk.c: New file.
1556 * debug/tst-longjmp_chk.c: New file.
1557 * include/bits/setjmp2.: New file.
1558 * include/stdio.h: Mark __fortify_fail as internal_function.
1559 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1560 * setjmp/bits/setjmp2.h: New file.
1561 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1563 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1565 * sysdeps/i386/____longjmp_chk.S: New file.
1566 * sysdeps/x86_64/____longjmp_chk.S: New file.
1567 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1568 * sysdeps/x86_64/__longjmp.S: Likewise.
1570 * version.h: Bump for 2.11 development.
1572 * elf/check-execstack.c: New file.
1573 * elf/Makefile: Add rules to build and run check-execstack.
1575 2009-05-10 Ulrich Drepper <drepper@redhat.com>
1577 * version.h (VERSION): Bump to 2.10.1.
1579 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1580 compatibility functions.
1581 * nss/getXXent_r.c: Likewise.
1582 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1583 * gshadow/getsgnam_r.c: Likewise.
1584 * gshadow/Version: Remove duplicate entries.
1586 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1587 for recent processor.
1588 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1591 2009-05-09 Ulrich Drepper <drepper@redhat.com>
1593 * version.h (VERSION): Bump for 2.10 release.
1594 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1596 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1597 same place we add ASFLAGS-config.
1599 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1602 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1603 or FORMERR and the other NOERROR, don't raise an error.
1605 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1608 * Makeconfig (+asflags): New variable based upon ASFLAG or
1610 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1611 * config.make.in (asflags-cpu): Add variable based upon
1612 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1615 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1616 recognizes power6 instruction set due to passing -mcpu=power6 from
1617 --with-cpu=power6 when compiling .S files.
1618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1625 2009-05-09 Jakub Jelinek <jakub@redhat.com>
1627 * string/stratcliff.c (do_test): Test for zero length
1628 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1629 at the end of the page.
1631 2009-05-08 Ulrich Drepper <drepper@redhat.com>
1633 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1635 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1638 * po/da.po: Update from translation team.
1640 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1642 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1643 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1645 2009-05-05 Ulrich Drepper <drepper@redhat.com>
1647 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1648 and READ_IMPLIES_EXEC.
1650 2009-05-04 Ulrich Drepper <drepper@redhat.com>
1652 * po/da.po: Update from translation team.
1654 2009-04-29 Jakub Jelinek <jakub@redhat.com>
1656 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1659 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1661 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1662 to MAP_ANON in PROT_NONE mmap64 call.
1663 (open_archive): Likewise.
1664 (file_data_available_p): Use mmap64 instead of mremap.
1665 (enlarge_archive): Likewise. Update head if ah->addr changed.
1666 Attempt to reserve address space after mmap64 region.
1668 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1670 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1671 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1672 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1674 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1675 atanh should set ERANGE.
1678 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1679 result of lookup to make call to implement STT_GNU_IFUNC.
1680 (_dl_profile_fixup): Likewise.
1681 Patch by H.J. Lu <hjl.tools@gmail.com>.
1683 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1686 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1689 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1690 label if it is not used.
1692 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1693 of gmon_hist_hdr and gmon_hdr structures and use them.
1694 * elf/sprof.c: Likewise.
1696 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1699 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1701 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1704 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1705 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1707 (iruserok_af): Use ss_family instead of casts.
1709 * gmon/gmon.c (write_hist): Define real-type variant of
1710 gmon_hist_hdr structure and use it.
1711 (write_gmon): Likewise for gmon_hdr.
1713 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1714 function if we are not going to define it.
1715 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1717 * inet/inet6_option.c (option_alloc): Add temporary variable to
1720 * libio/strfile.h (struct _IO_streambuf): Use correct type and
1721 name of VTable element.
1722 * libio/iovsprintf.c: Avoid casts to avoid warnings.
1723 * libio/iovsscanf.c: Likewise.
1724 * libio/vasprintf.c: Likewise.
1725 * libio/vsnprintf.c: Likewise.
1726 * stdio-common/isoc99_vsscanf.c: Likewise.
1727 * stdlib/strfmon_l.c: Likewise.
1728 * debug/vasprintf_chk.c: Likewise.
1729 * debug/vsnprintf_chk.c: Likewise.
1730 * debug/vsprintf_chk.c: Likewise.
1732 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1735 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1737 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1739 2009-04-25 Ulrich Drepper <drepper@redhat.com>
1741 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1743 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1744 * sysdeps/i386/fpu/s_tanf.S: Likewise.
1745 * sysdeps/i386/fpu/s_tanl.S: Likewise.
1746 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1747 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1748 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1749 * math/libm-test.inc: Add tests for errno after tan calls with
1752 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1753 errno value vor pow(+-0,neg).
1754 * math/libm-test.inc (pow_test): Add tests for errno value for
1757 * math/w_fmod.c: Also handle x=±Inf as error.
1758 * math/w_fmodf.c: Likewise.
1759 * math/w_fmodl.c: Likewise.
1760 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1763 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1764 * sysdeps/i386/fpu/s_cosf.S: Likewise.
1765 * sysdeps/i386/fpu/s_cosl.S: Likewise.
1766 * sysdeps/i386/fpu/s_sin.S: Likewise.
1767 * sysdeps/i386/fpu/s_sinf.S: Likewise.
1768 * sysdeps/i386/fpu/s_sinl.S: Likewise.
1769 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1770 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1771 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1772 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1773 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1774 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1775 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1776 * math/libm-test.inc: Add tests for errno after sin/cos calls with
1779 * stdlib/strtod_l.c (round_and_return): We have to set errno to
1780 ERANGE for underflows.
1781 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1783 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1786 * libio/tst-widetext.input: Remove surrogates.
1788 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1790 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1791 for lgamma should set errno to ERANGE, not EDOM.
1792 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1794 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1797 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1800 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1801 space when temporarily mapping the whole content of the old file.
1804 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1807 2009-04-24 Jakub Jelinek <jakub@redhat.com>
1809 * iconvdata/sjis.c (BODY): Don't advance inptr before
1810 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1811 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1814 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1816 * locale/locarchive.h (struct locarhandle): Rename len field to
1817 mmaped and add new reserved field.
1818 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1819 (create_archive): Reserve address space and then map file into it.
1820 (open_archive): Likewise.
1821 (file_data_available_p): New function.
1822 (compare_from_file): New function.
1823 (close_archive): Adjust to member name changes.
1824 (add_locale): Before comparing locale data, check it is mapped.
1825 Otherwise fall back to reading from the file.
1827 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
1829 * stdio-common/psiginfo.c: Include <errno.h>.
1831 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1834 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1835 to get consistency between 32 and 64 bit architectures.
1838 * sysdeps/unix/make-syscalls.sh: Add rule to create target
1839 directory for dummy syscall rules.
1840 Patch by Chris Steinbroner <hesh@pobox.com>.
1842 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
1845 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1848 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1850 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
1851 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1853 2009-04-23 Jakub Jelinek <jakub@redhat.com>
1855 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
1856 data from vector to temporary buffer and call PWRITEV after it
1857 instead of vice versa.
1858 * sysdeps/posix/preadv.c: Fix up comment.
1859 * misc/preadv.c: Likewise.
1860 * misc/preadv64.c: Likewise.
1861 * misc/pwritev.c: Likewise.
1862 * misc/pwritev64.c: Likewise.
1863 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1865 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1867 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1869 * shadow/Makefile (tests): Add tst-shadow.
1870 * shadow/tst-shadow.c: New file.
1873 * gshadow/Makefile: New file.
1874 * gshadow/Versions: New file.
1875 * gshadow/fgetsgent.c: New file.
1876 * gshadow/fgetsgent_r.c: New file.
1877 * gshadow/getsgent.c: New file.
1878 * gshadow/getsgent_r.c: New file.
1879 * gshadow/getsgnam.c: New file.
1880 * gshadow/getsgnam_r.c: New file.
1881 * gshadow/gshadow.h: New file.
1882 * gshadow/putsgent.c: New file.
1883 * gshadow/sgetsgent.c: New file.
1884 * gshadow/sgetsgent_r.c: New file.
1885 * gshadow/tst-gshadow.c: New file.
1886 * include/gshadow.h: New file.
1887 * Makeconfig (all-subdirs): Add gshadow.
1888 * Makefile (installed-headers): Add gshadow/gshadow.h.
1889 * nss/Makefile (databases): Add sgrp.
1890 * nss/Versions: Add gshadow functions as private exports.
1891 * nss/nsswitch.conf: Add gshadow entry.
1892 * nss/sgrp-lookup.c: New file.
1893 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
1894 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1895 * nss/nss_files/files-sgrp.c: New file.
1896 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1897 * sysdeps/unix/sysv/linux/paths.h: Likewise.
1899 2009-04-22 Ulrich Drepper <drepper@redhat.com>
1901 * stdio-common/printf.h: Add missing const to register_printf_modifier.
1902 * stdio-common/reg-modifier.c: Likewise.
1904 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
1906 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1909 2009-04-20 Ulrich Drepper <drepper@redhat.com>
1912 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1913 headers up to 2.6.30.
1915 * po/ca.po: Update from translation team.
1917 2009-04-19 Ulrich Drepper <drepper@redhat.com>
1920 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1921 an object that uses static TLS if the TLS modid is higher than the
1922 reserve we always allocate. At least for multi-threaded code.
1924 2009-04-18 Ulrich Drepper <drepper@redhat.com>
1926 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1927 Numerically stable check for valid width.
1929 * locale/programs/locarchive.c (open_archive): Map the entire file
1930 and not just the administrative data.
1931 (add_locale): When we find a hash sum match compare the content
1934 * malloc/malloc.c (malloc_info): Output address space information.
1936 2009-04-17 Ulrich Drepper <drepper@redhat.com>
1938 * malloc/malloc.c (malloc_info): Also output system memory information.
1940 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1941 architectures have preadv/pwritev in 2.6.30.
1943 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1944 * sysdeps/posix/readv.c: Likewise.
1945 Reported by Markus Armbruster <armbru@redhat.com>.
1947 * malloc/hooks.c (top_check): Force hook value into register.
1949 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1951 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1952 calls to _dl_relocate_object.
1954 2009-04-16 Ulrich Drepper <drepper@redhat.com>
1957 * malloc/malloc.c (force_reg): Define.
1958 (sYSMALLOc): Load hook variable into variable
1959 before test and force into register.
1960 (sYSTRIm): Likewise.
1961 (public_mALLOc): Force hook value into register.
1962 (public_fREe): Likewise.
1963 (public_rEALLOc): Likewise.
1964 (public_mEMALIGn): Likewise.
1965 (public_vALLOc): Likewise.
1966 (public_pVALLOc): Likewise.
1967 (public_cALLOc): Likewise.
1968 (__posix_memalign): Likewise.
1969 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1970 before test and force into register.
1971 * malloc/hooks.c (top_check): Likewise.
1972 (public_sET_STATe): Pretty printing.
1974 * resolv/res_send.c (send_dg): Don't just ignore the result we got
1975 in case we only receive one reply in single-request mode.
1977 2009-04-16 Jakub Jelinek <jakub@redhat.com>
1979 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1980 are dlopened in statically linked program even for __LM_ID_CALLER.
1982 2009-04-16 Ulrich Drepper <drepper@redhat.com>
1984 * resolv/res_send.c (send_dg): Don't switch into single-request
1985 mode if we already are in it.
1987 2009-04-15 Ulrich Drepper <drepper@redhat.com>
1989 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1990 are always at least 4 bytes in the returned line.
1992 2009-04-15 Jakub Jelinek <jakub@redhat.com>
1994 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1995 __libc_use_alloca (8192), if the stack is too small use 512 bytes
1996 instead of 8K. Stop searching in /proc/stat after hitting first
1997 line not starting with cpu.
1998 (next_line): Truncate too long
1999 lines at buffer size * 3/4 instead of pretending there were line
2000 breaks inside of large lines.
2002 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2004 * sysdeps/x86_64/mp_clz_tab.c: New file.
2006 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
2007 Ulrich Drepper <drepper@redhat.com>
2009 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2010 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2011 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2013 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
2015 * sysdeps/sh/libc-tls.c: New file.
2017 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2019 2009-04-14 Roland McGrath <roland@redhat.com>
2021 * elf/elf.h: Add various missing ARM constants, to match binutils.
2023 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2025 Optimizations from GMP.
2026 * sysdeps/x86_64/add_n.S: New file.
2027 * sysdeps/x86_64/addmul_1.S: New file.
2028 * sysdeps/x86_64/lshift.S: New file.
2029 * sysdeps/x86_64/mul_1.S: New file.
2030 * sysdeps/x86_64/rshift.S: New file.
2031 * sysdeps/x86_64/sub_n.S: New file.
2032 * sysdeps/x86_64/submul_1.S: New file.
2034 2009-04-14 Jakub Jelinek <jakub@redhat.com>
2036 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2037 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2038 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2039 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2041 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2043 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2046 2009-04-13 Ulrich Drepper <drepper@redhat.com>
2048 * sysdeps/x86-64/strrchr.S: New file.
2050 2009-04-10 Ulrich Drepper <drepper@redhat.com>
2052 * stdio-common/printf.h (struct printf_info): Add user element.
2053 New types printf_arginfo_size_function, printf_va_arg_function.
2054 Declare register_printf_specifier, register_printf_modifier,
2055 register_printf_type.
2056 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2057 (union printf_arg): Add pa_user element.
2058 Adjust __printf_arginfo_table type.
2059 Add __printf_va_arg_table, __printf_modifier_table,
2060 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2062 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2063 If registered arginfo call failed try normal specifier.
2064 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2066 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2067 * stdio-common/Versions: Export register_printf_modifier,
2068 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2069 * stdio-common/reg-modifier.c: New file.
2070 * stdio-common/reg-type.c: New file.
2071 * stdio-common/reg-printf.c (__register_printf_specifier): New
2072 function. Mostly the old __register_printf_function function but
2073 uses locking and type of third parameter changed.
2074 (__register_printf_function): Implement using
2075 __register_printf_specifier.
2076 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2077 calls to arginfo functions. Allocate enough memory for user-defined
2078 types. Call new va_arg functions to get user-defined types.
2079 Try installed handlers even for existing format specifiers first.
2081 2009-04-09 Ulrich Drepper <drepper@redhat.com>
2083 * sysdeps/x86_64/rawmemchr.S: New file.
2085 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2086 Simplified code and possible copy problem fixed.
2088 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2089 function if it is not defined. Add some necessary casts.
2090 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2092 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2093 have preadv/pwritev in 2.6.30.
2095 2009-04-08 Ulrich Drepper <drepper@redhat.com>
2097 * malloc/malloc.c (malloc_info): New function.
2098 * malloc/malloc.h: Declare it.
2099 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2101 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2104 * malloc/malloc.c (_int_realloc): Add parameter with old block
2105 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2107 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2109 2009-04-07 Ulrich Drepper <drepper@redhat.com>
2111 * sysdeps/x86_64/strchrnul.S: New file.
2113 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2114 depending libcrypt on -lfreebl3.
2116 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2117 preadv/pwritev in 2.6.30.
2119 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2120 instead of __strcasecmp.
2122 * string/stratcliff.c (do_test): Add memchr tests..
2123 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2124 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2125 first read quad word.
2127 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2129 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2130 * string/tst-svc.input: Add new test case.
2131 * string/tst-svc.expect: Adjust.
2132 * string/Makefile: Don't ignore tst-svc error.
2134 * sysdeps/x86_64/memchr.S: New file.
2136 * resolv/resolv.h (RES_SNGLKUP): Define.
2137 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2138 * resolv/res_send.c (send_dg): If we sent two requests at once and
2139 only get one reply before timeout switch to mode where we send the
2140 second request only after the first answer has been received.
2142 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2144 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2145 * sysdeps/x86_64/strchr.S: Likewise.
2147 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2149 * configure.in: We need to test for the compiler earlier.
2151 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2152 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2154 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2155 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2157 * misc/preadv.c: New file.
2158 * misc/preadv64.c: New file.
2159 * misc/pwritev.c: New file.
2160 * misc/pwritev64.c: New file.
2161 * sysdeps/posx/preadv.c: New file.
2162 * sysdeps/posx/preadv64.c: New file.
2163 * sysdeps/posx/pwritev.c: New file.
2164 * sysdeps/posx/pwritev64.c: New file.
2165 * sysdeps/unix/sysv/linux/preadv.c: New file.
2166 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2167 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2168 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2169 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2170 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2172 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2174 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2176 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2177 __ASSUME_COMPLETE_READV_WRITEV.
2178 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2179 with modern kernels.
2180 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2182 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2183 to free a possible malloced buffer in case of cancellation.
2184 * sysdeps/posix/writev.c: Likewise for write.
2186 2009-04-02 Ulrich Drepper <drepper@redhat.com>
2188 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2190 * configure.in: Recognize --enable-nss-crypt.
2191 * config.make.in: Add nss-crypt entry.
2192 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2193 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2194 and include path for NSS directory to compiler for md5-crypt,
2195 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2196 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2197 function implementation, use NSS. Introduce wrappers around the
2198 hash function calls. Little code size optimization.
2199 * crypt/sha256-crypt.c: Likewise.
2200 * crypt/sha512-crypt.c: Likewise.
2201 * scripts/check-local-headers.sh: Ignore nss3 directory.
2203 * configure.in: Rename pic_default to libc_cv_pic_default.
2204 * config.make.in: Likewise.
2206 2009-04-01 Roland McGrath <roland@redhat.com>
2208 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2209 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2210 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2211 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2212 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2213 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2214 (R_SPARC_NUM): Update.
2215 From Dave Miller <davem@davemloft.net>.
2217 2009-04-01 Ulrich Drepper <drepper@redhat.com>
2219 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2221 2009-03-31 Ulrich Drepper <drepper@redhat.com>
2223 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2224 those which are used.
2225 * elf/dl-addr.c: Likewise.
2226 * elf/dl-caller.c: Likewise.
2227 * elf/dl-fini.c: Likewise.
2228 * elf/dl-iteratephdr.c: Likewise.
2229 * elf/dl-libc.c: Likewise.
2230 * elf/dl-load.c: Likewise.
2231 * elf/dl-support.c: Likewise.
2232 * elf/dl-sym.c: Likewise.
2233 * elf/rtld.c: Likewise.
2234 * sysdeps/generic/ldsodefs.h: Likewise.
2236 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2237 * elf/dl-minimal.c: Likewise.
2238 * elf/dl-misc.c: Likewise.
2239 * elf/rtld.c: Likewise.
2240 * sysdeps/generic/ldsodefs.h: Likewise.
2242 2009-03-30 Ulrich Drepper <drepper@redhat.com>
2244 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2245 Avoid reuse of complex expression.
2247 * po/fr.po: Update from translation team.
2249 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2251 * include/dirent.h: Yet more changes to match sort function type
2253 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2254 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2255 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2257 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2259 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2261 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2263 * nscd/connections.c (restart): Try to preserve the process name
2264 by reading the /proc/self/exe symlink and using the return name.
2265 Patch by Jeff Bastian <jbastian@redhat.com>.
2267 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2270 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2271 if we are not loading a new audit library.
2272 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2273 Only use profiling trampoline for auditing if we are not relocating
2275 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2276 * elf/rtld.c: Likewise.
2277 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2279 * elf/rtld.c (dl_main): Extend help message for --audit option.
2282 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2283 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2284 * dirent/alphasort.c: Adjust implementation to type change.
2285 * dirent/alphasort64.c: Likewise.
2286 * dirent/scandir.c: Likewise.
2287 * dirent/versionsort.c: Likewise.
2288 * dirent/versionsort64.c: Likewise.
2289 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2291 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2295 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2296 correctly. Set segleft member in output as required.
2297 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2298 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2301 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2302 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2303 * inet/Makefile (tests): Add tst-inet6_rth.
2304 * inet/tst-inet6_rth.c: New file.
2307 * string/strlen.c (strlen): Fix omission in the expression to test
2310 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2312 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2314 * elf/dl-runtime.c (reloc_offset): Define.
2315 (reloc_index): Define.
2316 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2317 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2318 computing index from reloc_offset.
2319 (_dl_call_pltexit): Likewise.
2320 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2321 the relocation index to _dl_fixup.
2322 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2324 * sysdeps/x86_64/dl-runtime.c: New file.
2327 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2328 alignment of La_x86_64_regs. Store xmm parameters.
2329 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2332 * string/strverscmp.c (__strverscmp): Fix case of different digits
2333 in fractional part of string.
2334 Patch by Jingyu Liu <jyliu@fortinet.com>.
2335 * string/Makefile (tests): Add tst-svc2.
2336 * string/tst-svc2.c: New file.
2338 * string/strverscmp.c (__strverscmp): Optimize size of tables.
2340 * locale/iso-639.def: Add Min Nan.
2342 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2345 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2347 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2349 * elf/dl-sysdep.c (auxvars): Compress data structure.
2351 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2352 STT_GNU_IFUNC handling.
2353 (elf_machine_rela): Likewise.
2355 2009-03-13 Ulrich Drepper <drepper@redhat.com>
2357 * config.h.in (USE_MULTIARCH): Define.
2358 * configure.in: Handle --enable-multi-arch.
2359 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2360 (_dl_fixup_profile): Likewise.
2361 * elf/do-lookup.c (dl_lookup_x): Likewise.
2362 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2363 * elf/elf.h (STT_GNU_IFUNC): Define.
2364 * include/libc-symbols.h (libc_ifunc): Define.
2365 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2366 framework in init-arch.h to get CPUID values.
2367 * sysdeps/x86_64/multiarch/Makefile: New file.
2368 * sysdeps/x86_64/multiarch/init-arch.c: New file.
2369 * sysdeps/x86_64/multiarch/init-arch.h: New file.
2370 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2372 * config.make.in (experimental-malloc): Define.
2373 * configure.in: Handle --enable-experimental-malloc.
2374 * malloc/Makefile: Handle experimental-malloc flag.
2375 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2376 * malloc/arena.c: Likewise.
2377 * malloc/hooks.c: Likewise.
2378 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2380 2009-03-11 Ulrich Drepper <drepper@redhat.com>
2382 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2383 prediction. A few size optimizations.
2385 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2387 * time/tzset.c: Optimize a bit for size.
2389 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2391 * include/stdio.h (fmemopen): Add libc_hidden_proto.
2392 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2394 * elf/sprof.c: Avoid warning about multi-line comment.
2396 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2398 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2400 * time/tst-posixtz.c: Add tests for quoted timezone names.
2402 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2404 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2405 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2406 200809L instead of 200112L.
2407 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2408 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2410 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2411 instead of __quick_exit_funcs to __run_exit_handlers.
2412 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2413 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2414 (__cxa_at_quick_exit): Remove attribute_hidden.
2415 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2416 to __run_exit_handlers.
2417 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2420 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2422 * po/id.po: Update from translation team.
2424 2009-02-18 Jakub Jelinek <jakub@redhat.com>
2426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2427 .machine push; .machine "power6" and .machine pop around mtfsf
2428 insns outside of _ARCH_PWR6 define.
2429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2434 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2435 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2436 relax_fenv_state): Likewise.
2438 2009-03-08 Ulrich Drepper <drepper@redhat.com>
2440 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2442 (static-only-routines): Add at_quick_exit.
2443 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2445 * stdlib/quick_exit.c: New file.
2446 * stdlib/at_quick_exit.c: New file.
2447 * stdlib/cxa_at_quick_exit.c: New file.
2448 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
2450 (__internal_atexit): New function.
2451 (__new_exitfn): Now takes parameter to point to the list to use.
2452 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2453 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
2454 (exit): ...here. Just call __run_exit_handlers appropriately.
2455 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2456 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
2457 * stdlib/on_exit.c: Adjust call to __new_exitfn.
2458 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2460 * po/id.po: Update from translation team.
2462 2009-03-07 Ulrich Drepper <drepper@redhat.com>
2464 * po/ru.po: Update from translation team.
2466 2009-03-04 Ulrich Drepper <drepper@redhat.com>
2468 * po/nl.po: Update from translation team.
2470 2009-03-03 Ulrich Drepper <drepper@redhat.com>
2472 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2473 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2474 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2475 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2476 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2477 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2478 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2480 * po/pl.po: Update from translation team.
2482 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2485 * sysdeps/unix/sysv/linux/fallocate.c: New file.
2486 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2487 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2488 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2489 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2490 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2491 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2493 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2494 Add fallocate and fallocate64.
2496 * io/fcntl.h: Pretty printing.
2498 2009-03-02 Richard Guenther <rguenther@suse.de>
2500 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2501 attribute also for non-C99 inline semantics variant.
2503 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2505 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2506 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2507 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2508 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2514 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2516 * po/cs.po: Update from translation team.
2518 2009-02-28 Ulrich Drepper <drepper@redhat.com>
2520 * po/bg.po: Update from translation team.
2521 * po/sv.po: Likewise.
2522 * po/fi.po: Likewise.
2523 * po/vi.po: Likewise.
2525 2009-02-27 Roland McGrath <roland@redhat.com>
2527 * Makeconfig (%.v.i): Depend on Makeconfig.
2528 Exclude % lines from initial #-comment removal.
2530 2009-02-27 Ulrich Drepper <drepper@redhat.com>
2532 * po/ko.po: Update from translation team.
2534 2009-02-26 Roland McGrath <roland@redhat.com>
2536 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2537 avoids unused warning.
2539 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
2540 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2542 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2543 sys/ucontext.h and asm/elf.h. Include sys/user.h.
2544 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2545 and asm/user.h. Include asm/ptrace.h.
2546 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2547 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2548 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2550 (start_thread): Don't undefine.
2551 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2554 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2556 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2557 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2558 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2559 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2560 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2562 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2563 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2564 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2565 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2566 _SC_THREAD_ROBUST_PRIO_PROTECT.
2567 * posix/unistd.h: fexecve is in POSIX 2008.
2568 * time/time.h: strftime_l is in POSIX 2008.
2569 * io/sys/stat.h: futimens is in POSIX 2008.
2570 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2571 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2572 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2573 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2574 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2575 open_memstream, and vdprintf are in POSIX 2008.
2577 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2579 * include/features.h: Define macros for XPG7/POSIX 2008.
2580 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2581 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2583 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2584 * locale/xlocale.h: Define locale_t type.
2585 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2586 in POSIX 2008. Don't define locale_t here.
2587 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2588 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2589 UTIME_OMIT only with __USE_ATFILE.
2590 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2591 * stdio-common/psiginfo.c: New file.
2592 * stdio-common/psiginfo-data.h: New file.
2593 * stdio-common/psiginfo-define.h: New file.
2594 * stdio-common/Makefile (routines): Add psiginfo.
2595 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2596 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2597 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2598 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2599 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2600 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2601 * io/sys/stat.h: Move mknodat definition into same conditional as
2603 * time/sys/time.h: futimesat is not among the functions accepted
2604 into the POSIX standard.
2606 * include/features.h: If no feature selection given and we select
2607 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2608 * posix/Versions: Export __posix_getopt.
2609 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2610 Use it to alternatively initialize __posixly_correct.
2611 (_getopt_internal_r): Take addition parameter. Pass on to
2613 (_getopt_internal): Take addition parameter. Pass on to
2615 (getopt): Pass additional zero to _getopt_internal.
2616 (__posix_getopt): New function.
2617 * posix/getopt.h: Add redirection for getopt.
2618 * posix/getopt1.c (getopt_long): Pass additional zero to
2620 (getopt_long_only): Likewise.
2621 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2622 (_getopt_long_only_r): Likewise.
2623 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2626 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2628 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2629 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2630 * sysdeps/posix/sysconf.c (__sysconf): Handle
2631 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2632 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2634 2009-02-24 Roland McGrath <roland@redhat.com>
2637 * README.template: Reworded not to use substituted version number.
2639 * README: ... here (no longer generated).
2640 * Makefile (README): Target removed.
2642 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2644 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2645 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2648 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2650 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2652 2009-02-22 Ulrich Drepper <drepper@redhat.com>
2654 * po/bg.po: Update from translation team.
2656 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2658 * stdlib/monetary.h: Uglify function parameter names.
2659 * sunrpc/rpc/pmap_clnt.h: Likewise.
2660 * sunrpc/rpc/svc.h: Likewise.
2661 * sunrpc/rpc/xdr.h: Likewise.
2662 * sunrpc/rpc/clnt.h: Likewise.
2663 * resolv/netdb.h: Likewise.
2664 * resolv/arpa/nameser.h: Likewise.
2665 * resolv/resolv.h: Likewise.
2666 * argp/argp.h: Likewise.
2667 * locale/langinfo.h: Likewise.
2668 * io/sys/stat.h: Likewise.
2669 * posix/spawn.h: Likewise.
2670 * nis/rpcsvc/nislib.h: Likewise.
2671 * malloc/obstack.h: Likewise.
2672 * sysdeps/ia64/bits/link.h: Likewise.
2673 * sysdeps/i386/bits/link.h: Likewise.
2674 * sysdeps/s390/bits/link.h: Likewise.
2675 * sysdeps/powerpc/bits/link.h: Likewise.
2676 * sysdeps/x86_64/bits/link.h: Likewise.
2677 * sysdeps/sparc/bits/link.h: Likewise.
2678 * sysdeps/sh/bits/link.h: Likewise.
2679 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2680 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2681 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2682 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2684 2008-12-01 Fredrik Unger <fred@tree.se>
2686 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2687 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2688 _FP_UNPACK_RAW_2, fix up first argument.
2690 2009-02-15 Ulrich Drepper <drepper@redhat.com>
2692 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2693 (GET_NPROCS_PARSER): Change parameters and use next_line.
2694 (__get_nprocs): Rewrite to not use stdio routines.
2695 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2696 Change parameters and use next_line.
2698 2009-02-13 Ulrich Drepper <drepper@redhat.com>
2701 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2702 Change mempool_alloc prototype.
2703 * nscd/mem.c (gc): Don't handle mem_in_flight.
2704 (mempool_alloc): Third parameter now only indicates whether this is the
2705 first call (to allocate data) or not. If it is, get db rdlock.
2706 Release it on error. Don't handle mem_in_flight.
2707 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2708 Adjust third parameter of mempool_alloc calls.
2709 Nothing to do here in case mempool_alloc fails.
2710 Avoid local variable shadowing parameter. No need to get db rdlock
2711 before calling cache_add.
2712 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
2713 no mem_in_flight array anymore.
2714 * nscd/connections.c: Remove definition and handling of mem_in_flight.
2715 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2716 mempool_alloc calls. Mark he parameter as const. Nothing to do here
2717 in case mempool_alloc fails. No need to get db rdlock before calling
2719 * nscd/hstcache.c (cache_addhst): Likewise.
2720 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2721 * nscd/servicescache.c (cache_addserv): Likewise.
2722 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
2724 2009-02-11 Ulrich Drepper <drepper@redhat.com>
2726 * po/lt.po: Update from translation team.
2728 2009-02-10 Ulrich Drepper <drepper@redhat.com>
2730 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2731 defined, allow additional data to be added using the optional
2732 MORE_ELF_HEADER_DATA macro.
2733 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2734 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2736 2009-02-08 Ulrich Drepper <drepper@redhat.com>
2738 * include/atomic.h: Define catomic_and if not already defined.
2739 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2740 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2742 2009-02-07 Ulrich Drepper <drepper@redhat.com>
2744 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2746 (_int_realloc): Likewise. Third argument is now padded size
2747 All _int_* functions are now static.
2749 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2750 * malloc/arena.c: Likewise.
2751 * include/malloc.h: Remove now unnecessary declarations of the _int_*
2754 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2757 * malloc/malloc.c: Add branch prediction for use of the hooks.
2759 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2761 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2764 * bits/confname.h: Add SUSv7 macros for getconf environments.
2765 * bits/environments.h: Likewise.
2766 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2767 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2768 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2769 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2770 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2771 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2772 * posix/getconf.c: Likewise.
2773 * posix/sysconf.c: Likewise.
2774 * sysdeps/posix/sysconf.c: Likewise.
2775 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2778 2009-01-16 Petr Baudis <pasky@suse.cz>
2781 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2782 even if we currently have zero nscount.
2784 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2787 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2788 the input line is too long.
2790 * po/Makefile (libc.pot): Add f_print as function taking c-format
2793 * debug/xtrace.sh: Unify translatable messages.
2794 * elf/ldd.bash.in: Likewise.
2795 * elf/sprof.c: Likewise.
2796 * locale/programs/locale.c: Likewise.
2797 * malloc/memusage.sh: Likewise.
2798 * nss/getent.c: Likewise.
2800 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2802 * debug/pcprofiledump.c (print_version,
2803 argp_program_version_hook): New function.
2804 * elf/ldconfig.c (more_help): New function.
2806 * elf/sln.c (usage): New function.
2807 (main): Support --help and --version.
2808 * malloc/memusagestat.c (print_version): New function.
2809 (argp_program_version_hook): New variable.
2810 * nscd/nscd.c (more_help): New function.
2812 * posix/getconf.c (main): Send --version output to stdout.
2814 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2815 arguments. All callers changed.
2816 (print_version): New function.
2817 (parseargs): Support --help and --version.
2818 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
2820 (print_version): New function.
2821 (main): Use getopt_long. Support --help and --version.
2822 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2825 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2827 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2828 (update_data): Fix handling of wrapping back
2829 to the beginning of the buffer.
2832 * stdio-common/psignal.c (psignal): Fix test for empty string.
2834 2009-02-05 Ulrich Drepper <drepper@redhat.com>
2836 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2837 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
2838 move _null_auth to .rodata.
2840 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2843 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2845 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2846 today than when the original code was written. Use larger
2847 buffers. This also makes it unnecessary to have stat information,
2848 if this causes extra efforts.
2849 (__opendir): In case O_DIRECTORY works, don't call fstat just for
2852 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
2854 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2856 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2857 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2858 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2859 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2860 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2861 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2863 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2865 * po/ru.po: Update from translation team.
2867 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
2869 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2870 Add _tid slot to maintain consistency with kernel.
2872 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2874 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2875 incomplete characters at end of input buffer.
2876 * libio/Makefile (tests): Add tst-fgetwc.
2877 * libio/tst-fgetwc.c: New file.
2878 * libio/tst-fgetwc.input: New file.
2880 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
2882 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2884 2009-02-02 Ulrich Drepper <drepper@redhat.com>
2887 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2888 *OUTBUFSTART unless the whole output fit into the buffer.
2889 * iconv/Makefile (tests): Add tst-iconv4.
2890 * iconv/tst-iconv4.c: New file.
2892 2009-02-01 Ulrich Drepper <drepper@redhat.com>
2894 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2895 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2897 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
2899 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2900 newer linker scripts.
2902 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2905 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2906 inotify_rm_watch should have type int.
2908 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
2910 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2911 Make aligned_restore_vmx a local symbol.
2912 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2915 2009-01-30 Andreas Jaeger <aj@suse.de>
2917 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2918 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2919 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2920 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2921 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2922 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2923 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2925 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
2928 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2929 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2931 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
2934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2935 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2937 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2939 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
2941 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2942 memcpy instead of memcmp.
2943 (_dl_setup_pointer_guard): Likewise.
2945 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2947 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2948 manipulated brk, use malloc_printerr.
2949 * misc/sbrk.c (__sbrk): Better error handling for nonsense
2952 2009-01-30 Jakub Jelinek <jakub@redhat.com>
2954 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2955 rindex): For C++ add inlines so that they can be recognized as
2957 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2959 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2960 Jakub Jelinek <jakub@redhat.com>
2962 * string/string.h: Define correct C++ prototypes for gcc 4.4.
2963 * wcsmbs/wchar.h: Likewise.
2965 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2967 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2968 (stackinfo_sub_sp): Define.
2970 2009-01-28 Ulrich Drepper <drepper@redhat.com>
2973 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2974 * include/alloca.h (alloca_account): Define.
2975 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2976 (stackinfo_sub_sp): Define.
2978 * nscd/connections.c (nscd_init): If database file access fails
2979 check whether this is due to permission problems and bail in that
2983 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2984 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2986 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2988 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2989 Add "t" to clobber list.
2990 (INTERNAL_SYSCALL_NCS): Likewise.
2992 2009-01-28 Ulrich Drepper <drepper@redhat.com>
2994 * nss/getent.c (print_networks): Don't print comma between aliases.
2996 2009-01-23 Ulrich Drepper <drepper@redhat.com>
2998 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3000 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3002 * misc/Makefile (tests): Add bug-hsearch1.
3003 * misc/bug-hsearch1.c: New file.
3005 2009-01-22 Roland McGrath <roland@redhat.com>
3007 * Makeconfig (%.v.i): Strip trailing # comments,
3008 not only whole-line comments.
3010 2009-01-10 Ulrich Drepper <drepper@redhat.com>
3012 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3013 one parameter. If non-NULL use it to initialize return value.
3014 (_dl_setup_pointer_guard): New function.
3015 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3016 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3017 * elf/rtld.c (security_init): Pass _dl_random to
3018 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3020 * elf/dl-sysdep.c (_dl_random): New variable.
3021 (_dl_sysdep_start): Handle AT_RANDOM.
3022 (_dl_show_auxv): Likewise.
3023 * elf/dl-support.c (_dl_random): New variable.
3024 (_dl_aux_init): Handle AT_RANDOM.
3025 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3026 to _dl_setup_stack_chk_guard.
3028 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3030 2009-01-10 Roland McGrath <roland@redhat.com>
3032 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3034 2009-01-08 Ulrich Drepper <drepper@redhat.com>
3036 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3039 * nss/nss_files/files-parse.c (strtou32): New function.
3040 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3041 across 32-bit and 64-bit platforms.
3042 (INT_FIELD_MAYBE_NULL): Likewise.
3044 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3047 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3048 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3049 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3052 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
3055 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3056 being NULL also if there are no backreferences.
3057 * posix/rxspencer/tests: Add testcases.
3059 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
3062 * posix/bug-regex17.c: Add testcases.
3063 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3066 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3068 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3069 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3070 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3071 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3073 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3074 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3075 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3076 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3077 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3078 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3080 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
3082 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3083 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3084 re_string_skip_chars, re_string_reconstruct): Likewise.
3085 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3087 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
3089 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3090 adjust the buffer alignment.
3092 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3094 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3095 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3098 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3099 flavor to description only when flavor is not NULL.
3101 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3102 mutex after SIGIO/SIGURG lookup loop.
3104 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3106 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3108 2009-01-03 Ulrich Drepper <drepper@redhat.com>
3110 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3113 2009-01-02 Ulrich Drepper <drepper@redhat.com>
3115 * sysdeps/unix/sysv/linux/kernel-features.h
3116 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3118 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3119 if no output is written.
3121 * version.h: Bump to 2.10 development.
3123 * posix/getconf.c: Update copyright year.
3124 * nss/getent.c: Likewise.
3125 * iconv/iconvconfig.c: Likewise.
3126 * iconv/iconv_prog.c: Likewise.
3127 * elf/ldconfig.c: Likewise.
3128 * catgets/gencat.c: Likewise.
3129 * csu/version.c: Likewise.
3130 * elf/ldd.bash.in: Likewise.
3131 * elf/sprof.c (print_version): Likewise.
3132 * locale/programs/locale.c: Likewise.
3133 * locale/programs/localedef.c: Likewise.
3134 * nscd/nscd.c (print_version): Likewise.
3135 * debug/xtrace.sh: Likewise.
3136 * malloc/memusage.sh: Likewise.
3137 * malloc/mtrace.pl: Likewise.
3138 * debug/catchsegv.sh: Likewise.
3140 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3142 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3145 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3147 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3148 gethostbyname4_r function call succeeded, just leave the loop.
3151 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3153 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3154 * wctype/Makefile (tests): Add bug-wctypeh.
3155 * wctype/bug-wctypeh.c: New file.
3157 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3158 LOCALDOMAIN is defined.
3159 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3161 * sysdeps/x86_64/bits/select.h: New file.
3163 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3165 2008-12-21 Bruno Haible <bruno@clisp.org>
3168 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3169 if no output is written.
3171 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3173 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3174 libc internal symbol __dup2 to avoid access through the PLT.
3176 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3179 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3180 available only for __USE_GNU.
3182 * inet/Makefile (tests): Add tst-getni2.
3183 * inet/tst-getni2.c: New file.
3186 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3187 NULL when NI_NAMEREQD is set.
3188 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3189 * inet/Makefile (tests): Add tst-getni1.
3190 * inet/tst-getni1.c: New file.
3192 2008-12-03 Petr Baudis <pasky@suse.cz>
3195 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3196 instead of prune_lock.
3197 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3198 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3200 2008-12-07 Ulrich Drepper <drepper@redhat.com>
3202 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3205 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3208 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3209 after reading name server list.
3212 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3213 handling for host name aliases.
3215 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3217 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3218 instead of doing things manually.
3220 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3222 * posix/regex_internal.h (build_wcs_upper_buffer):
3223 Return type is reg_error_t.
3225 2008-12-05 Ulrich Drepper <drepper@redhat.com>
3227 * posix/globtest.sh: Use mktemp to create temporary file and
3230 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3232 (__CPU_CLR_S): Likewise.
3233 (__CPU_ISSET_S): Likewise.
3235 2008-12-05 Joseph Myers <joseph@codesourcery.com>
3236 Ulrich Drepper <drepper@redhat.com>
3238 * scripts/firstversion.awk: Use custom comparison function to compare
3240 * scripts/versions.awk: Use sort invocation which can handle
3241 multi-digit sub-version numbers.
3243 2008-12-04 Ulrich Drepper <drepper@redhat.com>
3245 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3246 * locale/iso-639.def: Add Chhattisgarhi entry.
3248 2008-12-02 Ulrich Drepper <drepper@redhat.com>
3250 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3252 (_nss_dns_gethostbyname4_r): Likewise.
3253 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3254 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3255 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3256 the no_data variable.
3258 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3259 information at the correct index.
3261 * socket/sys/socket.h: Declare accept4.
3262 * socket/accept4.c: New file.
3263 * sysdeps/unix/sysv/linux/accept4.c: New file.
3264 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3265 * socket/Makefile (routines): Add accept4.
3266 * socket/Versions: Export accept4 with version GLIBC_2.10.
3267 * socket/paccept.c: Removed.
3268 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3269 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3270 * Versions.def: Define GLIBC_2.10 for libc.
3271 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3273 * nscd/connections.c: Use accept4.
3275 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3277 2008-12-01 Ulrich Drepper <drepper@redhat.com>
3279 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3282 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3284 * stdlib/Makefile (tests): Add tst-unsetenv1.
3285 * stdlib/tst-unsetenv1.c: New file.
3287 2008-11-29 Ulrich Drepper <drepper@redhat.com>
3289 * login/utmp_file.c (file_writable): New variable.
3290 (setutent_file): Don't try to open file for writing.
3291 (pututline_file): Before writing, make descriptor writable if
3294 2008-11-26 Ulrich Drepper <drepper@redhat.com>
3296 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3297 to IPv4 or IPv6 if an interface has been found.
3299 2008-11-26 Roland McGrath <roland@redhat.com>
3301 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3302 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3304 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3305 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3306 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3308 * elf/elf.h (NT_386_IOPERM): New macro.
3309 (NT_PPC_VSX): New macro.
3311 2008-11-25 Roland McGrath <roland@redhat.com>
3313 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3314 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3315 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3316 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3317 Subdirectories moved to ports repository.
3318 * configure.in (base_machine): Remove alpha case.
3320 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
3322 * sysdeps/mach/strerror_l.c: New file.
3324 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
3327 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3328 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3330 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3331 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3332 (relax_fenv_state): Same as above.
3333 (FPSCR_29): Reserve bit in ISA 2.05.
3334 (FPSCR_NI): Provide define for compat.
3335 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3337 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3339 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
3340 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3341 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3342 access to hwcap to account for hwcap size increase to uint64_t.
3343 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3346 (*setcontext): Likewise.
3347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3352 (*setcontext): dynamically select mtfsf insn based on
3353 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3354 increase to uint64_t.
3355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3356 (*swapcontext): dynamically select mtfsf insn based on
3357 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3358 increase to uint64_t.
3359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3364 (*setcontext): dynamically select mtfsf insn based on
3365 PPC_FEATURE_HAS_DFP.
3366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3367 (*swapcontext): dynamically select mtfsf insn based on
3368 PPC_FEATURE_HAS_DFP.
3370 2008-11-13 Ulrich Drepper <drepper@redhat.com>
3372 * version.h: Bump for 2.9 release.
3373 * include/features.h (__GLIBC_MINOR__): Bump to 9.
3376 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3377 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3380 2008-11-11 Ulrich Drepper <drepper@redhat.com>
3383 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3384 unknown request types for now.
3386 2008-11-11 Roland McGrath <roland@redhat.com>
3388 * sysdeps/x86_64/configure: New file.
3390 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3391 * configure: Regenerated.
3393 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3395 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3396 correct instruction to remove the stack frame.
3398 2008-11-03 Michael Matz <matz@suse.de>
3400 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3401 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3403 2008-11-07 Jakub Jelinek <jakub@redhat.com>
3405 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3408 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3409 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3410 of the thread variable instead of void *.
3411 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3412 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3413 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3414 __libc_tsd_define arguments.
3415 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3416 __libc_tsd_address arguments. Remove union hack.
3417 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3418 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3419 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3420 Adjust __libc_tsd_{set,get} arguments.
3421 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3422 __libc_tsd_define arguments.
3423 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3425 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3426 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3427 (LOCALE): Adjust __libc_tsd_define arguments.
3428 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3430 (LOCALE): Adjust __libc_tsd_define arguments.
3431 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3433 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3436 2008-11-02 Ulrich Drepper <drepper@redhat.com>
3438 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3439 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3441 2008-11-01 Ulrich Drepper <drepper@redhat.com>
3444 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3446 2008-10-24 Joseph Myers <joseph@codesourcery.com>
3447 Ulrich Drepper <drepper@redhat.com>
3449 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3450 definition for GCC 3.1 and later.
3452 2008-10-31 Jakub Jelinek <jakub@redhat.com>
3454 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3455 refetch dtv, as it might have changed.
3456 * elf/Makefile: Add rules to build and run tst-tls18.
3457 * elf/tst-tls18.c: New test.
3458 * elf/tst-tlsmod18a.c: New file.
3460 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
3463 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3465 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3468 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3471 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3472 Fix length of copy operation.
3474 2008-10-02 Pierre Habouzit <madcoder@debian.org>
3476 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3477 and fix its calling convention.
3479 2008-10-07 Andreas Schwab <schwab@suse.de>
3482 * resolv/res_send.c (send_vc): Fix last change.
3483 (send_dg): Align here as well.
3485 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3487 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3488 return value in case rlimit is RLIM_INFINITY.
3491 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3493 * resource/Makefile (tests): Add bug-ulimit1.
3494 * resource/bug-ulimit1.c: New file.
3497 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3498 without dot. Properly terminate the string with a null byte.
3499 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3502 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3504 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3508 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3510 2008-10-30 Ulrich Drepper <drepper@redhat.com>
3512 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3513 abort if there is no initgroups_dyn function.
3515 * resolv/res_send.c (send_dg): On timeout, only return nonzero
3516 result if any of the queries really provided an answer.
3518 2008-10-28 Ulrich Drepper <drepper@redhat.com>
3520 * po/lt.po: Update from translation team.
3522 2008-10-26 Ulrich Drepper <drepper@redhat.com>
3524 * po/id.po: Update from translation team.
3526 2008-10-24 Ulrich Drepper <drepper@redhat.com>
3528 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3529 Fix tests for existence of second reply.
3531 2008-10-23 Ulrich Drepper <drepper@redhat.com>
3533 * po/id.po: New file.
3534 Contributed by the Indonesian translation team.
3536 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
3538 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3541 2008-10-17 Jakub Jelinek <jakub@redhat.com>
3543 * elf/Makefile: Add rules to build and run tst-tls17.
3544 * elf/tst-tls17.c: New test.
3545 * elf/tst-tlsmod17a.c: New file.
3546 * elf/tst-tlsmod17b.c: Likewise.
3548 2008-10-17 Ulrich Drepper <drepper@redhat.com>
3550 * stdlib/divmod_1.c: Use correct type for dummy variable.
3551 * stdlib/mod_1.c: Likewise.
3553 2008-10-16 Ulrich Drepper <drepper@redhat.com>
3555 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3557 2008-10-16 Jakub Jelinek <jakub@redhat.com>
3559 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3560 __nonnull order for C++.
3561 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3562 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3564 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3566 * stdlib/longlong.h: Update from GCC.
3568 2008-10-09 Jakub Jelinek <jakub@redhat.com>
3569 David S. Miller <davem@davemloft.net>
3571 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3572 make sure any registers used with 64-bit 'branch-on-register'
3573 instructions have their top 32-bits clear.
3574 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3575 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3577 2008-09-18 Andreas Schwab <schwab@suse.de>
3580 * resolv/res_send.c (send_vc): Fix use of unaligned address.
3581 Properly handle partial reads.
3583 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3585 * elf/elf.h (STO_MIPS_PLT): New.
3587 (R_MIPS_JUMP_SLOT): New.
3588 (R_MIPS_NUM): Redefine to 128.
3589 (DT_MIPS_PLTGOT): New.
3590 (DT_MIPS_RWPLT): New.
3591 (DT_MIPS_NUM): Redefine to 0x35.
3593 2008-10-01 Ulrich Drepper <drepper@redhat.com>
3595 * timezone/africa: Update from tzdata2008f.
3596 * timezone/asia: Likewise.
3597 * timezone/australasia: Likewise.
3598 * timezone/europe: Likewise.
3599 * timezone/leapseconds: Likewise.
3600 * timezone/northamerica: Likewise.
3601 * timezone/southamerica: Likewise.
3602 * timezone/zone.tab: Likewise.
3604 2008-09-30 Ulrich Drepper <drepper@redhat.com>
3606 * nscd/connections.c: Disable use of paccept for now.
3608 2008-09-29 Ulrich Drepper <drepper@redhat.com>
3610 * socket/Versions: Remove paccept export for GLIBC_2.9.
3611 * socket/Makefile (routines): Remove paccept.
3612 * socket/sys/socket.h: Remove paccept declaration.
3614 * po/sv.po: Update from translation team.
3616 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3618 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3619 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3621 2008-09-16 Ulrich Drepper <drepper@redhat.com>
3623 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3624 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3626 2008-09-15 Ulrich Drepper <drepper@redhat.com>
3628 * sunrpc/rpc/svc.h: Declare svcfd_create.
3629 Patch by Michael Solberg <msolberg@redhat.com>.
3631 2008-09-12 Flavio Leitner <fleitner@redhat.com>
3632 Ulrich Drepper <drepper@redhat.com>
3634 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3636 (public_pVALLOc): Likewise.
3638 2008-09-02 Andreas Jaeger <aj@suse.de>
3640 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3643 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3646 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3648 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3650 * Makefile (check-data): Check data directory in add-ons.
3651 * elf/Makefile (check-data): Likewise.
3653 2008-08-18 Roland McGrath <roland@redhat.com>
3655 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3656 * configure: Regenerated.
3657 * config.make.in (cflags-cpu): New substituted variable.
3658 (with-cpu): Variable removed.
3659 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3661 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3664 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3665 __signbitl definition and __LONG_DOUBLE_128__ guard from:
3666 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3667 redundant. Functions which call floating point assembler operations
3668 should go into a sysdeps powerpc/fpu directory.
3670 2008-08-15 Ulrich Drepper <drepper@redhat.com>
3672 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3673 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3675 2008-08-14 Ulrich Drepper <drepper@redhat.com>
3677 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3679 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3680 change related to AT_EXECFN. We cannot use that string.
3681 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3683 * elf/dl-support.c: Remove _dl_execfn variable.
3684 (_dl_aux_init): Remove handling of AT_EXECFN.
3685 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3686 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3688 2008-08-13 Ulrich Drepper <drepper@redhat.com>
3691 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
3692 byte gets added to writes and seeks from the end use the length of
3693 the buffer and not the currently terminating NUL byte.
3696 * login/utmp_file.c (getutent_r_file): Take additional parameter.
3697 Set to true if locking failed.
3698 (getutid_r_file): Adjust caller.
3699 (pututline_file): Likewise. Return NULL in this case.
3700 Patch mostly by halesh.s@gmail.com.
3702 2008-08-12 Ulrich Drepper <drepper@redhat.com>
3705 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3707 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3709 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3712 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3713 macro since it is now available in elf/dynamic-link.h.
3715 2008-08-12 Roland McGrath <roland@frob.com>
3717 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3718 in case used outside of libc.
3719 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3721 2008-08-11 Ulrich Drepper <drepper@redhat.com>
3723 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3724 directly instead of going through dn_comp.
3726 2008-08-11 Aurelien Jarno <aurel32@debian.org>
3728 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3729 Fix asm constraints.
3731 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3734 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3735 (IPV6_PMTUDISC_PROBE): Likewise.
3737 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3740 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3742 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
3743 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3746 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3747 Added the members 'vsx' and 'arch_2_06'.
3748 (_dl_powerpc_platforms): Add the member 'power7'.
3749 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3750 to reflect the changes required by VSX and ISA 2.06.
3751 Modify _DL_PLATFORMS_COUNT to reflect the addition of
3753 Defined PPC_PLATFORM_POWER7.
3754 (_dl_string_platform): Add support for POWER7.
3755 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3756 capability and ISA 2.06.
3758 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3761 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3762 macro to detect use of 128 bit long double.
3763 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3765 2008-08-05 Ulrich Drepper <drepper@redhat.com>
3767 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3770 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3772 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3773 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3775 2008-08-03 Ulrich Drepper <drepper@redhat.com>
3777 * nscd/connections.c (main_loop_poll): Pass a buffer which is
3778 guaranteed to be large enough to read inotify event. Ignore
3779 EAGAIN error. Better error message. Add branch predicition.
3780 (main_loop_epoll): Likewise.
3782 2008-08-02 Roland McGrath <roland@frob.com>
3784 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3785 Add memory clobbers.
3787 2008-08-02 Ulrich Drepper <drepper@redhat.com>
3789 * manual/arith.texi: Avoid @strong{Note:}.
3790 * manual/creature.texi: Likewise.
3791 * manual/filesys.texi: Likewise.
3792 * manual/math.texi: Likewise.
3793 * manual/memory.texi: Likewise.
3794 * manual/resource.texi: Likewise.
3795 * manual/syslog.texi: Likewise.
3796 * manual/time.texi: Likewise.
3798 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3801 2008-08-01 Ulrich Drepper <drepper@redhat.com>
3803 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3804 new epoll_create1 interface.
3805 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3806 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3807 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3809 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3810 (NS_GET32): Likewise.
3812 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3815 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3816 use the AT_EXECFN value if it is no absolute path.
3817 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3820 * Versions.def: Add GLIBC_2.9 to libresolv.
3821 * include/resolv.h: Remove hidden proto declarations for __ns_*
3822 functions. Add them for __dn_count_labels and __p_secstodate.
3823 * include/arpa/nameser.h: Add a number of hidden proto declarations.
3824 Define ns_msg_getflags macro here.
3825 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3827 * resolv/Versions: Export functions from <arpa/nameser.h> from
3828 libresolv in version GLIBC_2.9.
3829 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
3831 * resolv/ns_netint.c: Likewise.
3832 * resolv/ns_parse.c: Likewise.
3833 * resolv/ns_print.c: Likewise.
3834 * resolv/ns_samedomain.c: Likewise.
3835 * resolv/ns_ttl.c: Likewise.
3836 * resolv/arpa/nameser_compat.h: Likewise.
3837 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
3839 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3840 instead of ns_get16.
3841 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3842 __ns_get32 instead of ns_get16 and ns_get32 respectively.
3843 (gaih_getanswer_slice): Likewise.
3844 * resolv/Makefile (libresolv-routines): Add ns_date.
3845 * resolv/ns_date.c: New file.
3847 * elf/Makefile (check-localplt.out): Also check libresolv and
3850 2008-07-31 Ulrich Drepper <drepper@redhat.com>
3852 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3855 2008-07-30 Ulrich Drepper <drepper@redhat.com>
3857 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3858 buffer passed to NSS functions.
3860 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3862 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3865 * misc/syslog.c (openlog_internal): Fix compile problem.
3867 2008-07-28 Roland McGrath <roland@redhat.com>
3869 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3871 2008-07-28 Ulrich Drepper <drepper@redhat.com>
3873 * io/ftw.c (add_object): Remove inline to avoid warning.
3875 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3877 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3878 Use it instead of locally defined resplen2 variable.
3879 (res_nsend): Adjust for __libc_res_nsend interface change.
3880 (send_vc): Initialize *resplen2 if necessary. Read length of
3881 package into an appropriately aligned variable. Store converted length
3882 in new variable and use it appropriately.
3883 Add branch prediction help.
3884 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3885 and pass it on to __libc_res_nsend. Adjust all callers.
3886 (__libc_res_nsearch): Likewise.
3887 (__libc_res_nqeurydomain): Likewise.
3888 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3890 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3891 Define resplen2 variable and pass it to __libc_res_nsearch and then
3893 (getanswer_r): In case of incorrect DNS data don't overread buffer.
3894 Add branch prediction.
3895 (gaih_getanswer_slice): Likewise. Check for invalid data types.
3896 (gaih_getanswer): Don't decode second slice if first one failed due
3897 to a too small buffer. Don't let not found status of second
3898 decoder shadow results of the first.
3899 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3900 and __libc_res_nquery interface changes
3901 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3902 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3903 __libc_res_nsearch, and __libc_res_nsend.
3904 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3906 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3907 __libc_res_nsearch interface changes.
3909 2008-07-27 Ulrich Drepper <drepper@redhat.com>
3911 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3913 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3914 file descriptors with close-on-exec set.
3915 (exec_comm_child): Fix the case where the write end of the pipe is
3916 STDOUT_FILENO already. In case it is, clear close-on-exec.
3918 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3919 * io/pipe2.c: Likewise.
3920 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3921 instead of __ASSUME_PACCEPT.
3922 * include/unistd.h: Declare __have_pipe2.
3923 * libio/iopopen.c: Implement "e" flag.
3924 * libio/Makefile (tests): Add tst-popen1.
3925 * libio/tst-popen1.c: New file.
3927 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3928 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3930 2008-07-26 Ulrich Drepper <drepper@redhat.com>
3933 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3934 success call of _IO_SEEKOFF or calls which failed because the
3935 descriptor is for a pipe.
3937 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3940 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3942 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
3943 F_SETFD use if we know fopen set the flag.
3945 * login/utmp_file.c (setutent_file): Minor optimization in case
3946 O_CLOEXEC is available.
3948 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
3950 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3951 * elf/Makefile: Use pie-ccflag variable.
3952 * nscd/Makefile: Likewise.
3953 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3955 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
3958 * Versions.def: Add GLIBC_2.9 version tag for libutil.
3959 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3960 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
3961 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3962 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
3963 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3964 utmp32, utmpx32 and login32.
3965 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3966 versions of struct utmp functions to libc and libutil.
3967 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3968 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3969 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3970 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3971 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3972 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3973 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3974 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3975 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3976 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3977 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3978 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3979 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3980 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3981 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3982 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3983 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3984 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3985 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3986 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3987 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3988 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3990 2008-07-26 Ulrich Drepper <drepper@redhat.com>
3992 * scripts/gen-as-const.awk: Generate more widely usable code by
3993 using 64-bit arithmetic.
3995 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3996 the same treatment as narrow output code in last patch.
3998 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4001 * elf/dl-load.c (local_strdup): Remove inline.
4002 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4003 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4006 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4008 2008-07-25 Ulrich Drepper <drepper@redhat.com>
4010 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4011 the new syscalls, too.
4013 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4014 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4017 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4018 parameter for end of buffer. If temporary copy is too large use
4020 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4022 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4023 string rewrite when allocating buffer.
4025 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4028 * nscd/connections.c (nscd_init): Clean up fcntl call.
4030 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4031 SOCK_NONBLOCK if possible.
4033 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4034 SOCK_CLOEXEC if available.
4036 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4037 __libc_clntudp_bufcreate_internal.
4038 * include/sys/socket.h: Declare __have_sock_cloexec.
4039 * socket/Makefile (aux): Add have_sock_cloexec.
4040 * socket/have_sock_cloexec.c: New file.
4041 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4042 __libc_clntudp_bufcreate.
4043 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4044 which takes an additional parameter. Create socket with non-blocking
4045 mode and close-on-exec flag set, if wanted.
4046 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4047 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4048 instead of clntudp_create. The socket has already the close-on-exec
4049 flag set if SOCK_CLOEXEC is defined.
4051 2008-07-24 Ulrich Drepper <drepper@redhat.com>
4053 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4054 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4056 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4057 non-blocking mode by using socket, paccept, and inotify_init1.
4059 * Versions.def (glibc): Add GLIBC_2.9.
4060 * io/Makefile (routines): Add dup3 and pipe2.
4061 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4062 * io/dup3.c: New file.
4063 * io/pipe2.c: New file.
4064 * posix/unistd.h: Declare dup3 and pipe2.
4065 * socket/Makefile (routines): Add paccept.
4066 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4067 * socket/paccept.c: New file.
4068 * socket/sys/socket.h: Declare paccept.
4069 * sysdeps/unix/syscalls.list: Add entry for dup3.
4070 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4071 epoll_create2 and inotify_init1.
4072 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4073 * sysdeps/unix/sysv/linux/paccept.c: New file.
4074 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4076 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4077 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4078 inotify_init1, and pipe2 entries.
4079 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4080 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4081 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4082 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4083 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4084 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4086 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4087 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4088 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4089 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4090 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4091 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4092 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4093 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4094 EPOLL_NONBLOCK. Declare epoll_create2.
4095 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4097 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4098 IN_NONBLOCK. Declare inotify_init1.
4099 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4101 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4104 * elf/elf.h: Define AT_EXECFN.
4105 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4107 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4108 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4109 if __ASSUME_AT_EXECFN is defined.
4110 (_dl_aux_init): Handle AT_EXECFN.
4111 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4113 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4114 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4115 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4116 _dl_execfn if available and avoid compatibility code if
4117 __ASSUME_AT_EXECFN is defined.
4119 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4120 _dl_discover_osversion only for older kernels.
4122 2008-07-22 Roland McGrath <roland@frob.com>
4124 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4126 2008-07-21 Roland McGrath <roland@frob.com>
4128 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4129 returned too much data out of line.
4131 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4133 * locale/setlocale.c (setname): Remove inline to avoid compiler
4137 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4139 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4141 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4142 doesn't manage to write anything, fail.
4144 * malloc/hooks.c (__malloc_check_init): Remove printf.
4146 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4148 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4150 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4152 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4154 (main_loop_epoll): Likewise.
4156 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4158 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4160 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4161 if DEBUG is defined.
4163 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4164 query. Adjust buffer size computation for padding.
4166 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4168 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4169 * stdio-common/tst-setvbuf1.c: New file.
4170 * stdio-common/tst-setvbuf1.expect: New file.
4173 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4174 when selecting fully-buffered stream.
4175 Patch by Wang Xin <wxinee@gmail.com>.
4177 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4179 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4180 (__open_2): New function.
4181 (__open64_2): New alias to __open_2.
4182 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4183 (__openat_2): New function.
4184 (__openat64_2): New alias to __openat_2.
4186 2008-07-06 Ulrich Drepper <drepper@redhat.com>
4189 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4191 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4193 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4194 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4195 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4197 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4198 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4199 * sysdeps/mach/hurd/send.c (__send): Likewise.
4200 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4201 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4203 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4205 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4206 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4207 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4208 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4209 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4210 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4212 2008-06-27 Ulrich Drepper <drepper@redhat.com>
4215 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4217 Patch by Petr Baudis.
4219 2008-06-26 Ulrich Drepper <drepper@redhat.com>
4221 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4222 Patch by Peter Jones <pjones@redhat.com>.
4224 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4227 * stdlib/canonicalize.c (__realpath): readlink can write too much
4228 into the buffer on platforms without PATH_MAX.
4230 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4233 * posix/tst-regex.c (main): Rename to...
4234 (do_test): ... this. Remove cmdline option processing.
4236 (TEST_FUNCTION): Define.
4237 (CMDLINE_OPTIONS): Define.
4239 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4242 * configure.in: Add -Werror to -fstack-protector test to catch
4243 unsupported architectures.
4244 Patch by Gilles Esponasse <g.esp@free.fr>.
4246 2008-06-17 Joseph Myers <joseph@codesourcery.com>
4248 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4249 getcontext returns ENOSYS.
4251 2008-06-18 Ulrich Drepper <drepper@redhat.com>
4253 * nscd/connections.c (main_loop_poll): Fix test for read error.
4254 (main_loop_epoll): Likewise.
4256 2008-06-13 Ulrich Drepper <drepper@redhat.com>
4258 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4259 better place so it is not called when nscd is used.
4261 * nscd/connections.c: Also recognize and handle changes to the
4262 resolver configuration file.
4264 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4266 * time/strftime.c: Pass reference to tzset_called around to handle
4270 * time/strftime.c (__strftime_internal): Call tzset() only
4271 when printing timezone-dependent values.
4272 Based on a patch by Petr Baudis <pasky@suse.cz>.
4274 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4275 unconditionally use second gaih_getanswer_slice result.
4277 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4278 (getaddrinfo): RES must always be non-NULL.
4280 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4282 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4284 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4285 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4287 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4290 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4292 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4294 * nscd/connections.c (inotify_fd): New variable.
4295 (nscd_init): Try to open an inotify descriptor.
4296 If successful, watch files for databases using inotify instead of
4297 having prune threads stat the files.
4298 (nscd_run_prune): Recognize clear_cache flag being set and call
4299 prune_cache appropriately.
4300 (main_loop_poll): Add inotify descriptor to wait set and handle the
4302 (main_loop_epoll): Likewise.
4303 * nscd/cache.c (prune_cache): Don't stat files for databases if
4305 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4306 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4308 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4309 fixed-size portion of the record.
4310 * nscd/servicescache.c (cache_addserv): Likewise.
4311 * nscd/pwdcache.c (cache_addpw): Likewise.
4312 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4314 2008-06-11 Ulrich Drepper <drepper@redhat.com>
4316 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4317 out we don't use uninitialized memory.
4319 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4322 2008-06-10 Ulrich Drepper <drepper@redhat.com>
4324 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4325 ignore T_DNAME messages.
4326 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4328 2008-06-05 Jakub Jelinek <jakub@redhat.com>
4330 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4331 Avoid segfault if first GETC returns eof/'\0'/'\n'.
4333 2008-06-03 Jakub Jelinek <jakub@redhat.com>
4335 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4336 instead of portstr to nscd_getserv_r. Patch by
4337 Roman Kagan <rkagan@mail.ru>.
4339 2008-05-26 Jim Meyering <meyering@redhat.com>
4341 Remove more useless "if" tests before "free".
4342 * include/inline-hashtab.h (htab_delete): Likewise.
4343 * libio/freopen.c (freopen): Likewise.
4344 * libio/freopen64.c (freopen64): Likewise.
4345 * locale/programs/ld-collate.c (collate_read): Likewise.
4346 * misc/fstab.c (libc_freeres_fn): Likewise.
4347 * posix/glob.c (globfree): Likewise.
4349 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4351 * string/Makefile (strop-tests): Add memmem.
4352 * string/test-memmem.c: New file.
4353 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4354 (test_init): Size buf1 according to BUF1PAGES.
4356 2008-05-24 Jakub Jelinek <jakub@redhat.com>
4358 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4359 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4360 (CFLAGS-scanf17.c): New.
4361 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4362 * stdio-common/scanf15.c (main): Likewise.
4363 * stdio-common/scanf16.c: New file.
4364 * stdio-common/scanf17.c: New file.
4366 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4368 * resolv/res_send.c (send_dg): If we already have one of two
4369 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4370 use the one answer insted of failing.
4372 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
4374 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4375 being executed on PowerPC as the expected result exceeds IBM
4376 long double 128 __LDBL_MAX__.
4378 2008-05-21 Roland McGrath <roland@redhat.com>
4380 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4382 * Makefile (check-data): Use $(abi-name) before other guesses.
4383 Look in $(add-ons) dirs before scripts/data/.
4384 * elf/Makefile (check-data): Likewise.
4386 * scripts/soversions.awk: Grok ABI line.
4387 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4388 Emit definition for abi-name variable.
4390 2008-05-21 Ulrich Drepper <drepper@redhat.com>
4392 * string/endian.h: Define new fixed-size hto* and *toh macros only
4395 * iconvdata/Depend: Add localedata.
4397 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4399 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4401 2008-05-08 David S. Miller <davem@davemloft.net>
4403 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4405 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4406 (__SYSCALL_CLOBBERS): Remove %g* registers.
4407 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4408 (__SYSCALL_CLOBBERS): Likewise.
4409 * scripts/data/localplt-sparc-linux-gnu.data: New file.
4410 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4412 2008-05-21 Jakub Jelinek <jakub@redhat.com>
4414 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4415 (CALL_ERRNO_LOCATION): Define.
4416 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4417 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4418 (CALL_ERRNO_LOCATION): Define.
4419 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4420 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4421 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4423 2008-05-20 Ulrich Drepper <drepper@redhat.com>
4425 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4428 2008-05-20 Jakub Jelinek <jakub@redhat.com>
4430 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4431 (FIRST_FRAME_POINTER): Define.
4433 2008-05-09 David S. Miller <davem@davemloft.net>
4435 * sysdeps/sparc/sparc64/backtrace.c: New file.
4437 2008-05-14 David S. Miller <davem@davemloft.net>
4439 * sysdeps/sparc/machine-gmon.h: New file.
4440 * sysdeps/sparc/sparc-mcount.S: Likewise.
4441 * sysdeps/sparc/Makefile: Add sparc-mcount target to
4442 sysdep_routines in gmon directory.
4444 2008-05-19 Jakub Jelinek <jakub@redhat.com>
4446 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4448 2008-05-19 Ulrich Drepper <drepper@redhat.com>
4450 * resolv/res_query.c (__libc_res_nquery): In case one of two
4451 answer was too short don't try to read that answer's header.
4453 * resolv/res_send.c (send_dg): In case of timeout and there are
4454 two queries and one has been answered, return value indicating
4457 2008-05-18 Ulrich Drepper <drepper@redhat.com>
4459 * nscd/cache.c (cache_add): Take additional parameter specifying
4460 whether this is in response of a cache refill. Check alignment
4461 of package data. Revamp waking of pruning thread.
4462 (prune_cache): Small optimization.
4463 * nscd/nscd.h: Adjust cache_add prototypes.
4464 * nscd/aicache.c: Adjust cache_add calls.
4465 * nscd/grpcache.c: Likewise.
4466 * nscd/hstcache.c: Likewise.
4467 * nscd/initgrcache.c: Likewise.
4468 * nscd/pwdcache.c: Likewise.
4469 * nscd/servicescache.c: Likewise.
4470 * nscd/connections.c (restart): Really disable cache use before
4471 exec attempt. If it fails, reenable cache.
4472 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
4473 time to max to be able to notice concurrent cache additions. Unlock
4474 prune_lock while performing gc. Afterwards compute wakeup time with
4475 current wakeup_time value in mind.
4477 2008-05-17 Ulrich Drepper <drepper@redhat.com>
4479 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4481 * nscd/mem.c (gc): Correctly determine highest used array element
4484 * nscd/mem.c (markrange): Add assert to check entries are all
4485 aligned. Small cleanup in bitmap use.
4487 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4488 blockoff of type nscd_ssize_t.
4489 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4490 (mempoll_alloc): Record block offset and not address.
4492 * nscd/mem.c (gc): Fix test for stack overuse.
4494 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4497 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4498 entry is available, believe it.
4500 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4501 no answers return NSS_STATUS_NOTFOUND.
4502 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4503 buffer does not have any content.
4505 2008-05-16 Ulrich Drepper <drepper@redhat.com>
4507 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4509 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4510 lookup, don't assign canon unconditionally.
4512 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4514 * string/Makefile (distribute): Add str-two-way.h.
4516 2008-03-29 Eric Blake <ebb9@byu.net>
4518 Rewrite string searches to O(n) rather than O(n^2).
4519 * string/str-two-way.h: New file. For linear fixed-allocation
4521 * string/memmem.c: New implementation.
4522 * string/strstr.c: New implementation.
4523 * string/strcasestr.c: New implementation.
4525 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
4527 * posix/regcomp.c (optimize_utf8): Add a note on why we test
4529 (calc_first): Initialize constraint field.
4530 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4531 Use search_duplicated_node to avoid loops. Fix grammar.
4532 (duplicate_node): Merge constraint field for all node types.
4533 (calc_eclosure_iter): Look at constraint field for all node types.
4534 * posix/regex_internal.c (create_cd_newstate): Don't look at
4537 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4540 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4543 * string/endian.h: Add macros for fixed-size endian conversion.
4544 * bits/byteswap.h: Allow inclusion from <endian.h>.
4545 * sysdeps/i386/bits/byteswap.h: Likewise.
4546 * sysdeps/ia64/bits/byteswap.h: Likewise.
4547 * sysdeps/s390/bits/byteswap.h: Likewise.
4548 * sysdeps/x86_64/bits/byteswap.h: Likewise.
4549 * string/Makefile (tests): Add tst-endian.
4550 * string/tst-endian.c: New file.
4552 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4553 Patch by Reuben Thomas.
4555 2008-05-14 Joseph Myers <joseph@codesourcery.com>
4557 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4559 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4561 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4564 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4566 (BODY for __gconv_transform_internal_ascii): Likewise.
4569 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4570 to be treated like link-local addresses.
4571 (match_prefix): Don't treat IPv4 loopback address special when
4572 converting to v4 mapped addressed.
4574 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4576 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4577 * posix/tst-rfc3484-2.c: Likewise.
4578 * posix/tst-rfc3484-3.c: Likewise.
4580 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4583 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4585 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4587 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4589 2008-05-13 Ulrich Drepper <drepper@redhat.com>
4591 * po/lt.po: New file. From Lituanian translation team.
4593 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
4595 Introduce TLS descriptors for i386 and x86_64.
4596 * include/inline-hashtab.h: New file, copied from 2005's
4597 libiberty, with fix for memory leak imported afterwards by
4598 Glauber de Oliveira Costa.
4599 * elf/tlsdeschtab.h: New file.
4600 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4601 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4602 (CHECK_STATIC_TLS): Move to...
4603 * elf/dynamic-link.h: ... this file.
4604 (TRY_STATIC_TLS): New macro.
4605 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4606 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4607 R_386_TLS_DESC): Define.
4608 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4610 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4611 R_X86_64_TLSDESC): Define.
4612 (R_386_NUM, R_X86_64_NUM): Adjust.
4613 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4614 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4615 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4616 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4617 release tlsdesc_table.
4618 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4619 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4620 (elf_machine_rel): Handle R_386_TLS_DESC.
4621 (elf_machine_rela): Likewise.
4622 (elf_machine_lazy_rel): Likewise.
4623 (elf_machine_lazy_rela): Likewise.
4624 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4625 * sysdeps/i386/dl-tlsdesc.S: New file.
4626 * sysdeps/i386/dl-tlsdesc.h: New file.
4627 * sysdeps/i386/tlsdesc.c: New file.
4628 * sysdeps/i386/tlsdesc.sym: New file.
4629 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4631 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4632 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4633 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4634 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4635 release tlsdesc_table.
4636 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4637 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4638 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4639 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4640 (elf_machine_rela): Likewise.
4641 (elf_machine_lazy_rel): Likewise.
4642 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4643 (__tls_get_addr): Do not declare for non-shared compiles.
4644 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4645 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4646 * sysdeps/x86_64/tlsdesc.c: New file.
4647 * sysdeps/x86_64/tlsdesc.sym: New file.
4648 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4649 tlsdesc_table for both 32- and 64-bit structs.
4651 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4653 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4654 its own function. This reduces the frame setup costs and more.
4656 2008-02-11 Joseph Myers <joseph@codesourcery.com>
4659 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4660 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4662 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4664 * io/openat.c (__openat_2): Also pass fd to __openat.
4665 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4666 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4668 * string/tester.c (test_memcmp): Add a few more tests.
4669 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4671 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4673 * nscd/cache.c (cache_add): Before returning with failure and this
4674 is the first use of the record, mark it as unusable.
4675 * nscd/aicache.c: Don't touch the dataset after cache_add returns
4676 reporting a failure.
4677 * nscd/grpcache.c: Likewise
4678 * nscd/hstcache.c: Likewise.
4679 * nscd/initgrcache.c: Likewise.
4680 * nscd/pwdcache.c: Likewise.
4681 * nscd/servicescache.c: Likewise.
4683 2008-05-10 Roland McGrath <roland@redhat.com>
4686 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4688 2008-05-08 David S. Miller <davem@davemloft.net>
4690 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4692 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4693 (__ieee754_y0l): Likewise.
4694 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4695 (__ieee754_y1l): Likewise.
4696 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4697 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4698 frexpl and ldexpl. math_private.h provides them and the latter
4700 (__log1pl): Use __frexpl.
4702 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4704 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4706 * include/arpa/nameser_compat.h: Define T_UNSPEC.
4707 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4708 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4709 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4711 (_nss_nis_gethostbyname4_r): New function.
4712 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4713 Change to also handle af==AF_UNSPEC.
4714 (get_tablename): New function. Use it to avoid duplication.
4715 (_nss_nisplus_gethostbyname4_r): New function.
4716 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4718 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4719 * nss/nss.h: Define struct gaih_addrtuple.
4720 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4722 (_nss_files_gethostbyname4_r): New function.
4723 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4724 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4726 * resolv/res_query.c (__libc_res_nquery): Take two additional
4727 parameters for second answer buffer. Handle type=T_UNSPEC to mean
4728 look up IPv4 and IPv6.
4730 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4731 for an additional query and answer buffer. Pass to send_vc and
4733 (send_vc): Send possibly two requests and receive two answers.
4734 (send_dg): Likewise.
4735 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4737 (_nss_dns_gethostbyname4_r): New function.
4738 (gaih_getanswer_slice): Likewise.
4739 (gaih_getanswer): Likewise.
4740 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4741 __libc_res_nquery call.
4742 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4743 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4744 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4747 2008-05-05 David S. Miller <davem@davemloft.net>
4749 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4750 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4752 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4754 Fix termios bit macros.
4755 Move *DLY definitions where they belong, in termios.h.
4756 Add *[0-3] definitions.
4757 Fixes confusion between VT and FF.
4758 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4759 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4760 are already defined to avoid collision with termios.h.
4761 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4762 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4763 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4764 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4765 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4766 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4767 VTDLY, VT0, VT1): New macros.
4768 [__USE_GNU] (OLCUC): Change value of macro.
4769 [__USE_XOPEN] (OFILL): New macro.
4770 [__USE_BSD] (CRTSCTS): Change value.
4771 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4772 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4773 (B7200, B14400, B28800, B76800): New macros.
4775 2008-05-01 David S. Miller <davem@davemloft.net>
4777 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4778 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4779 (gen-as-const-headers): Add it.
4780 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4781 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4782 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4783 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4785 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4786 six system call parameters.
4787 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4789 2008-04-30 Ulrich Drepper <drepper@redhat.com>
4791 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4793 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4794 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4796 2008-04-30 Jakub Jelinek <jakub@redhat.com>
4798 * stdlib/tst-setcontext.c: Include unistd.h.
4800 2008-04-25 David S. Miller <davem@davemloft.net>
4802 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4803 Pass "union semun" properly in to sys_ipc, it must be passed
4804 by value, not by reference.
4806 2008-04-22 Jakub Jelinek <jakub@redhat.com>
4808 * nscd/Makefile (nscd-cflags): Set back to -fpie.
4809 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4810 * nscd/connections.c (mem_in_flight): Likewise.
4812 * nscd/nscd.h (dbs): Make hidden.
4814 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4815 Avoid returning -1, return 0 instead.
4817 2008-04-19 Ulrich Drepper <drepper@redhat.com>
4819 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4821 2008-04-15 Ulrich Drepper <drepper@redhat.com>
4824 * sysdeps/unix/sysv/linux/times.c: New file.
4827 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4828 mem_in_flight_list variables. Add new parameter to mempool_alloc
4830 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
4831 appropriate mem_in_flight element.
4832 (gc): Take allocations which have not yet been committed to the
4833 database into account.
4834 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4835 Reset mem_in_flight before returning.
4836 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4837 cue it up in mem_in_flight_list.
4838 * nscd/aicache.c: Adjust mempool_alloc call.
4839 * nscd/grpcache.c: Likewise.
4840 * nscd/hstcache.c: Likewise.
4841 * nscd/initgrcache.c: Likewise.
4842 * nscd/pwdcache.c: Likewise.
4843 * nscd/servicescache.c: Likewise.
4844 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4847 * nscd/connections.c (handle_request): Provide better error message
4848 in case SELinux forbids the service.
4850 * version.h (VERSION): Bump to 2.8.90.
4852 2008-04-17 Jakub Jelinek <jakub@redhat.com>
4854 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4856 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4858 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4859 Also use for 32-bit.
4860 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4861 __nextafter instead of nextafter to avoid local PLT.
4862 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4863 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4865 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4867 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4869 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
4870 <fenv_libc.h> instead of <fenv.h>.
4871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4874 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4876 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4877 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4878 function from fegetexcept and make old name weak alias.
4879 * include/fenv.h: Declare __fegetexcept.
4880 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4882 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4883 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4885 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4886 instead of frexpl to avoid local PLT.
4887 * math/s_significandl.c (__significandl): Use __ilogbl instead of
4888 ilogbl to avoid local PLT.
4889 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4890 instead of ldexpl to avoid local PLT.
4891 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4892 __roundl not roundl to avoid local PLT.
4893 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4894 local PLTs. Use __sincosl instead of separate sinl and cosl
4896 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4898 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4899 version for ppc64 to 2.4.21 since without it makecontext will fail.
4901 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4903 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4905 [__powerpc64__] (TLS_GD): Likewise.
4907 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
4910 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4911 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4913 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4914 Likewise. Also account for when x is an odd number between 2^52
4916 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4917 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4918 * math/libm-test.inc (lround_test, llround_test): Added test cases to
4919 detect aforementioned erroneous conditions.
4921 2008-04-11 Jakub Jelinek <jakub@redhat.com>
4923 * configure.in: Check for -fno-section-anchors in addition to
4924 -fno-toplevel-reorder.
4926 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4928 * include/features.h (__GLIBC_MINOR__): Bump to 8.
4930 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4931 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4932 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4933 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4934 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4935 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4937 2008-04-11 Jakub Jelinek <jakub@redhat.com>
4940 * time/era.c: Transform __libc_setlocale_lock into rwlock.
4941 * time/alt_digit.c: Likewise.
4942 * wcsmbs/wcsmbsload.c: Likewise.
4944 2008-04-10 Ulrich Drepper <drepper@redhat.com>
4946 * version.h (VERSION): Bump to 2.8.
4948 * timzeone/asia: Update from tzdata2008b.
4949 * timezone/backward: Likewise.
4950 * timezone/europe: Likewise.
4951 * timezone/northamerica: Likewise.
4952 * timezone/southamerica: Likewise.
4953 * timezone/iso3166.tab: Likewise.
4954 * timezone/leapseconds: Likewise.
4955 * timezone/zone.tab: Likewise.
4956 * timezone/private.h: Update from tzcode2008a.
4957 * timezone/zdump.c: Likewise.
4958 * timezone/zic.c: Likewise.
4960 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4963 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4964 Define additonal Data Cache Block instruction macros.
4965 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4966 Replace dcbst with dcbf and sync with sync/isync.
4968 2008-02-21 Alan Modra <amodra@bigpond.net.au>
4970 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4971 Always set ELF_RTYPE_CLASS_PLT.
4972 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4974 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4976 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4977 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4978 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4979 For ISA 2.01 and later replace mftb with mfspr 268.
4981 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
4984 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4985 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4987 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
4990 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4991 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4992 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4993 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4995 2008-04-10 Jakub Jelinek <jakub@redhat.com>
4997 * stdlib/tst-makecontext.c (othervar): New variable.
4998 (cf): Test sign extending the argument to long.
5000 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5002 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5003 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5004 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5005 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5006 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5007 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5008 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5010 2008-02-22 Alan Modra <amodra@bigpond.net.au>
5012 * elf/Makefile (tests): Substitute tests-vis-yes here.
5013 (tests-vis-yes): Delete.
5014 (modules-name, modules-vis-yes): Similarly.
5016 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5019 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5020 Preserve sign in signgamp when x is zero.
5022 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5024 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5025 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5026 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5027 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5028 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5029 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5031 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5034 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5038 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5039 a reserved error value.
5041 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5042 value to check for correct sign extension.
5045 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5046 Copy 64-bit parameter values even though this is not required in
5049 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5052 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5054 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5057 2008-04-09 Jakub Jelinek <jakub@redhat.com>
5059 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5061 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5064 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5065 in line-buffered stream failed.
5066 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5068 2008-04-08 Ulrich Drepper <drepper@redhat.com>
5071 * scripts/abi-versions.awk: If the version specified by
5072 --enable-oldest-abi is older than the first version for this
5073 architecture, use the default version.
5075 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5076 as well when ignoring the whole category.
5078 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5081 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5082 ETHERTYPE_* definitions.
5083 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5085 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5087 * stdlib/mbtowc.c (__no_r_state): Remove.
5088 (mbtowc): New static state variable. Use it instead of
5090 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5091 (__wctomb_state): New hidden variable.
5092 (wctomb): Use __wctomb_state instead of __no_r_state.
5093 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5094 (__wctomb_state): New extern decl.
5095 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5097 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5100 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5102 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5104 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5106 2008-04-06 Ulrich Drepper <drepper@redhat.com>
5108 * po/nl.po: Update from translation team.
5110 2008-03-31 Ulrich Drepper <drepper@redhat.com>
5113 * string/strfry.c: Handle empty strings again.
5115 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5118 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5119 before looking for translation.
5120 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5121 * locale/freelocale.c: Likewise.
5122 * locale/newlocale.c: Likewise.
5123 * locale/setlocale.c: Likewise.
5124 Based partially on a patch by ryo@np.css.fujitsu.com.
5126 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5128 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5129 acquiring wrlock. Do conv_tab allocation while holding lock.
5130 * intl/Makefile: Add rules to build and run tst-gettext6.
5131 * intl/tst-gettext6.c: New test.
5132 * intl/tst-gettext6.sh: New file.
5134 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5136 * po/nl.po: Update from translation team.
5138 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5139 provided through st_blksize, try the default size before giving up.
5141 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5143 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5146 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5148 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5149 error message. POSIX today does not require the messages to be in
5150 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5153 * sunrpc/auth_unix.c: Unify printed strings.
5154 * sunrpc/clnt_tcp.c: Likewise.
5155 * sunrpc/clnt_udp.c: Likewise.
5156 * sunrpc/clnt_unix.c: Likewise.
5157 * sunrpc/svc_tcp.c: Likewise.
5158 * sunrpc/svc_udp.c: Likewise.
5159 * sunrpc/svc_unix.c: Likewise.
5160 * sunrpc/xdr.c: Likewise.
5161 * sunrpc/xdr_array.c: Likewise.
5162 * sunrpc/xdr_rec.c: Likewise.
5163 * sunrpc/xdr_ref.c: Likewise.
5164 * locale/programs/ld-time.c (time_finish): Unify messages.
5165 * locale/programs/locfile.c (handle_copy): Fix typo.
5166 * nscd/nscd.c (options): Fix typo.
5169 * stdlib/strtod_l.c: Use correct sign for result in one more
5171 Patch by Eric Blake <ebb9@byu.net>.
5173 2008-03-27 Jakub Jelinek <jakub@redhat.com>
5175 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5176 and creat system calls.
5177 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5179 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5182 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5183 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5185 2008-03-27 Ulrich Drepper <drepper@redhat.com>
5187 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5188 <linux/limits.h> has defined it.
5189 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5190 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5192 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5193 it instead of ARG_MAX.
5195 2008-03-25 Jakub Jelinek <jakub@redhat.com>
5197 * posix/gai.conf: Fix comment for scope nullbits.
5198 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5199 default to 128 bits for v4 mapped addresses.
5201 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5203 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5204 ptrace call to get the ieee_instruction_pointer from the kernel.
5205 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5206 ptrace call to set the ieee_instructtion_pointer.
5207 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5208 Add comment that ieee_instruction_pointer is always 0.
5210 2008-03-09 Andreas Jaeger <aj@suse.de>
5213 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5214 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5215 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5217 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5218 (rint_test): Likewise.
5220 2008-03-24 Ulrich Drepper <drepper@redhat.com>
5222 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5224 (__nisfind_server): Similar for open readColdStartFile call.
5225 Patch partially by Jim Meyering.
5226 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5227 around internal_setent call.
5229 * po/vi.po: New Vietnamese translation.
5231 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5234 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5235 remove CLONE_STOPPED.
5237 2008-02-10 Jim Meyering <meyering@redhat.com>
5239 Remove useless "if" before "free":
5240 * elf/ldconfig.c (parse_conf_include): Likewise.
5241 * gmon/gmon.c (weak_alias): Likewise.
5242 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5243 * inet/rcmd.c (__validuser2_sa): Likewise.
5244 * intl/bindtextdom.c (set_binding_values): Likewise.
5245 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5246 * libio/genops.c (save_for_backup): Likewise.
5247 * libio/wgenops.c (save_for_wbackup): Likewise.
5248 * locale/programs/ld-collate.c (collate_read): Likewise.
5249 * locale/programs/linereader.c (get_string): Likewise.
5250 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5251 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5252 * resolv/res_debug.c (do_section): Likewise.
5253 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5254 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5255 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5256 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5257 * time/tzset.c (tzset_internal): Likewise.
5259 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5261 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5264 2008-03-11 Ulrich Drepper <drepper@redhat.com>
5267 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5268 not stream for output file. Open output file here.
5269 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5270 and output file name.
5271 (process_fd): Likewise.
5272 (process_file): Likewise.
5273 (main): Adjust callers of changed functions.
5274 * iconv/iconv_prog.h: Adjust prototype.
5276 2008-03-09 Andreas Jaeger <aj@suse.de>
5279 * sysdeps/ia64/ieee754.h: Use protected namespace
5280 __BIG_ENDIAN/__LITTLE_ENDIAN.
5281 * sysdeps/ieee754/ieee754.h: Likewise.
5282 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5284 2008-03-08 Roland McGrath <roland@frob.com>
5286 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5287 ignore a signal that came from a machine exception, treat it as a
5288 fatal core-dump signal instead.
5289 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5291 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5292 Clear DF bit in thread state's eflags.
5293 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5295 2008-03-08 Ulrich Drepper <drepper@redhat.com>
5298 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5299 of NAN(...) sequence.
5300 * stdlib/Makefile (tests): Add tst-strtod6.
5301 * stdlib/tst-strtod6.c: New file.
5303 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5306 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5307 putting offending option character in quotes. Clean up error
5309 * po/be.po: Adjust msgstr in translation file.
5310 * po/bg.po: Likewise.
5311 * po/ca.po: Likewise.
5312 * po/cs.po: Likewise.
5313 * po/da.po: Likewise.
5314 * po/de.po: Likewise.
5315 * po/es.po: Likewise.
5316 * po/fr.po: Likewise.
5317 * po/hr.po: Likewise.
5318 * po/ko.po: Likewise.
5319 * po/nl.po: Likewise.
5320 * po/rw.po: Likewise.
5321 * po/sk.po: Likewise.
5322 * po/sv.po: Likewise.
5323 * po/tr.po: Likewise.
5324 * po/zh_CN.po: Likewise.
5325 * po/zh_TW.po: Likewise.
5328 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5329 Patch by Roland Bless <roland@bless.de>.
5331 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5333 * elf/Makefile (routines): Add dl-sysdep.
5334 (elide-routines.os): Likewise.
5336 2008-03-07 Ulrich Drepper <drepper@redhat.com>
5339 * elf/dl-sysdep.c: Undefine ROUND after use.
5340 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5341 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5342 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5343 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5345 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5346 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5348 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5350 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5351 _dl_tls_get_addr_soft element.
5352 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5353 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5354 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5356 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5357 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5358 of internal_function.
5360 * stdlib/Makefile (aux): Add tens_in_limb.
5361 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5362 * stdlib/tens_in_limb.c: ...here. New file.
5365 * sysdeps/unix/sysv/linux/pathconf.h: Declare
5366 __statfs_chown_restricted.
5367 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5368 for _PC_CHOWN_RESTRICTED.
5369 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5370 Implement __statfs_chown_restricted.
5371 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5372 _POSIX_CHOWN_RESTRICTED value to zero.
5373 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5376 * sysdeps/x86_64/rtld-memset.c: New file.
5378 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
5380 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5382 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5383 Barcelona machine. Make default fall through branch of
5384 __x86_64_preferred_memory_instruction check as the integer code path.
5386 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5388 * sysdeps/x86_64/cacheinfo.c
5389 (__x86_64_preferred_memory_instruction): New variable.
5390 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5392 * sysdeps/x86_64/memset.S: Rewrite.
5394 2008-03-04 Jakub Jelinek <jakub@redhat.com>
5396 * include/stdio.h (__asprintf_chk, __dprintf_chk,
5397 __obstack_printf_chk): New prototypes.
5398 (__vasprintf_chk, __vdprintf_chk,
5399 __obstack_vprintf_chk): Likewise.
5400 Add libc_hidden_proto.
5402 (_IO_obstack_jumps): No longer static, add attribute_hidden.
5403 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5404 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5405 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5406 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5407 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5408 __obstack_vprintf_chk): New prototypes.
5409 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5410 obstack_vprintf): New inlines.
5411 * debug/dprintf_chk.c: New file.
5412 * debug/vdprintf_chk.c: New file.
5413 * debug/asprintf_chk.c: New file.
5414 * debug/vasprintf_chk.c: New file.
5415 * debug/obprintf_chk.c: New file.
5416 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5417 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5418 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5420 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5421 vdprintf_chk and obprintf_chk, set CFLAGS for them.
5422 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5423 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5425 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5426 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5427 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5428 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5429 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5431 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5432 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5433 obstack_vprintf_chk.
5434 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5435 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5436 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5437 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5438 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5439 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5441 2008-03-04 Ulrich Drepper <drepper@redhat.com>
5444 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5445 Patch by Roy Marples <roy@marples.name>.
5448 * malloc/malloc.c: Fix typo in comment.
5451 * locale/iso-639.def: Add Shuswap.
5453 2008-02-25 Jakub Jelinek <jakub@redhat.com>
5456 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5457 overwrite *h_errnop/*errnop values from getanswer_r in case of
5460 2008-03-03 Ulrich Drepper <drepper@redhat.com>
5463 * nscd/connections.c (dbs): Add initializers for .suggested_module.
5464 (verify_persistent_db): Remove one unnecessary test and add a new one
5465 for bad configuration.
5466 (nscd_init): Improve error reported when persistent database cannot
5468 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5469 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5470 .suggested_module and .max_db_size and case config file says the
5472 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5475 * nis/ypclnt.c (yp_order): Fix handling of return value of
5477 Patch by Jeff Moyer <jmoyer@redhat.com>.
5479 * po/fr.po: Update from translation team.
5481 2008-02-22 Andreas Jaeger <aj@suse.de>,
5482 Carlos O'Donell <carlos@systemhalted.org>
5485 * FAQ.in: Describe why glibc needs to be compiled with
5488 2008-02-19 Roland McGrath <roland@redhat.com>
5490 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5492 2008-02-15 Ulrich Drepper <drepper@redhat.com>
5495 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5496 __USE_MISC is defined.
5498 2008-02-10 Ulrich Drepper <drepper@redhat.com>
5500 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5501 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5503 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5504 timerfd_gettime, timerfd_settime.
5505 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5506 timerfd_gettime, timerfd_settime for GLIBC_2.8.
5508 2008-02-08 Roland McGrath <roland@redhat.com>
5510 * elf/elf.h (NT_PPC_SPE): New macro.
5512 2008-02-06 Roland McGrath <roland@redhat.com>
5514 * Makerules ($(common-objpfx)sysd-rules):
5515 Depend on $(sysdep-makeconfigs).
5517 2008-01-31 Roland McGrath <roland@redhat.com>
5520 * configure.in: Use -print-file-name if it yields a directory,
5521 for each of include and include-fixed.
5522 * configure: Regenerated.
5524 * Makeconfig (sysd-rules-targets): New variable.
5525 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5526 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5528 2008-01-30 Roland McGrath <roland@redhat.com>
5530 * manual/libc.texinfo: Update back-cover text.
5532 * elf/elf.h (NT_386_TLS): New macro.
5534 2008-01-29 Roland McGrath <roland@redhat.com>
5536 * Makeconfig (sysd-rules-patterns): New variable.
5537 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5538 (check-inhibit-asm): New canned sequence, replaces ...
5539 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5540 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5541 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5542 (CFLAGS-rtld): Variable removed.
5544 2008-01-24 Roland McGrath <roland@redhat.com>
5546 * configure.in: Let configure fragments set base_os.
5547 * configure: Regenerated.
5549 2008-01-22 Ulrich Drepper <drepper@redhat.com>
5551 * po/ko.po: Update from translation team.
5553 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5555 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5557 2008-01-12 Andreas Jaeger <aj@suse.de>
5560 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5563 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5565 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5566 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5567 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5569 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
5571 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5572 * elf/dl-close.c (_dl_close): Check for it.
5573 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5574 (_dl_allocate_static_tls): Likewise.
5575 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5576 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5578 * elf/tst-tls16.c: New file.
5579 * elf/tst-tlsmod16a.c: New file.
5580 * elf/tst-tlsmod16b.c: New file.
5581 * elf/Makefile: Add rules to build and run tst-tls16.
5583 2008-01-16 Ulrich Drepper <drepper@redhat.com>
5586 * bits/shm.h: Fix comment describing shmid_ds.
5587 * sysdeps/gnu/bits/shm.h: Likewise.
5588 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5589 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5590 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5591 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5592 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5593 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5594 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5595 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5596 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5599 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5601 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5602 additional suffixes.
5603 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5604 Add optional functions mq_timedreceive and mq_timedsend.
5605 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5606 * conform/data/pthread.h-data: Fix prototype of
5607 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5608 * conform/data/semaphore.h-data: Allow time.h definitions.
5609 * conform/data/signal.h-data: Likewise.
5610 * conform/data/stdio.h-data: getw and putw are not required in v6.
5611 * conform/data/stdlib.h-data: Change setstate prototype.
5612 * conform/data/string.h-data: Fix strerror_r prototype.
5613 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5614 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5615 Fix readlink prototype.
5616 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5618 * inet/netinet/in.h: Cleanup namespace.
5619 * posix/regex.h: Likewise.
5620 * resolv/netdb.h: Likewise.
5621 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5622 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5623 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5624 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5625 of names of in in6_addr.
5626 (default_precedence): Likewise.
5627 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5630 2008-01-15 Ulrich Drepper <drepper@redhat.com>
5632 * conform/data/fmtmsg.h-data: Add missing allows.
5633 * conform/data/ftw.h-data: Likewise.
5634 * conform/data/inttypes.h-data: Likewise.
5635 * conform/data/math.h-data: Likewise.
5636 * conform/data/signal.h-data: Likewise.
5637 * conform/data/net/if.h-data: Likewise.
5638 * conform/data/netinet/in.h-data: Likewise.
5639 * conform/data/sys/socket.h-data: Likewise.
5642 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5643 (__strtok_r): Simplify.
5644 * string/tester.c (test_strtok_r): Add test case for futile search
5645 with single-character seach string.
5647 2008-01-12 Ulrich Drepper <drepper@redhat.com>
5649 * po/ko.po: Update from translation team.
5651 2008-01-11 Andreas Jaeger <aj@suse.de>
5654 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5655 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5658 2008-01-10 Ulrich Drepper <drepper@redhat.com>
5660 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5661 native interface lookup in all the relevant places.
5663 2008-01-10 Jakub Jelinek <jakub@redhat.com>
5664 Ulrich Drepper <drepper@redhat.com>
5666 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5667 field. Use sockaddr_in6 for source_addr.
5668 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
5669 (match_prefix): Likewise.
5670 (get_label): Likewise.
5671 (get_precedence): Likewise.
5672 (rfc3484_sort): Change to use indirect access to results array.
5673 Adjust to use of sockaddr_in6. Replace service_order test with
5674 simple index comparison.
5675 (getaddrinfo): Define order array. Initialize it. Don't initialize
5676 service_order field. Adjust qsort_t calls. Access sorted result
5677 array indirectly through order array.
5678 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5679 * posix/tst-rfc3484-2.c: Likewise.
5680 * posix/tst-rfc3484-3.c: Likewise.
5682 2008-01-09 Ulrich Drepper <drepper@redhat.com>
5685 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5687 Patch by André Cruz.
5690 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5691 (clnt_spcreateerror): Likewise.
5694 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5695 (public_mEMALIGn): Likewise.
5696 Patch mostly by Daniel Jacobowitz.
5698 2008-01-09 Jakub Jelinek <jakub@redhat.com>
5700 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5701 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5702 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5703 * stdlib/tst-makecontext2.c: New test.
5705 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5707 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5709 (REINIT_PARAMS): Likewise. Undefine before end of file.
5710 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5711 transliteration hooks and REINIT_PARAMS afterwards.
5712 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5714 (REINIT_PARAMS): Define.
5715 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5716 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5717 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5718 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5719 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5720 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5721 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5722 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5723 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5724 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5725 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5726 * iconvdata/tst-iconv7.c: New test.
5728 2008-01-07 Ulrich Drepper <drepper@redhat.com>
5730 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5732 2008-01-05 Jakub Jelinek <jakub@redhat.com>
5735 * nscd/connections.c (restart): Fix condition.
5737 2008-01-03 Jakub Jelinek <jakub@redhat.com>
5739 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5740 __ctype_toupper_loc): Add __THROW.
5742 2008-01-02 Ulrich Drepper <drepper@redhat.com>
5744 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5745 recognition of interface family.
5747 * posix/getconf.c: Update copyright year.
5748 * nss/getent.c: Likewise.
5749 * iconv/iconvconfig.c: Likewise.
5750 * iconv/iconv_prog.c: Likewise.
5751 * elf/ldconfig.c: Likewise.
5752 * catgets/gencat.c: Likewise.
5753 * csu/version.c: Likewise.
5754 * elf/ldd.bash.in: Likewise.
5755 * elf/sprof.c (print_version): Likewise.
5756 * locale/programs/locale.c: Likewise.
5757 * locale/programs/localedef.c: Likewise.
5758 * nscd/nscd.c (print_version): Likewise.
5759 * debug/xtrace.sh: Likewise.
5760 * malloc/memusage.sh: Likewise.
5761 * malloc/mtrace.pl: Likewise.
5762 * debug/catchsegv.sh: Likewise.
5764 2007-12-26 Ulrich Drepper <drepper@redhat.com>
5766 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5769 2007-12-23 Ulrich Drepper <drepper@redhat.com>
5771 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5772 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5774 2007-12-17 Roland McGrath <roland@redhat.com>
5776 * inet/ether_line.c (ether_line): Remove unused variable.
5778 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5780 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5782 * login/openpty.c (openpty): Likewise.
5783 * login/pty.h (openpty, forkpty): Likewise.
5784 * manual/terminal.texi (openpty, forkpty): Likewise.
5786 2007-12-17 Ulrich Drepper <drepper@redhat.com>
5788 * malloc/malloc.c (public_cALLOc): For arenas other than
5789 main_arena, count all bytes inside the mprotect_size range of the
5790 heap as uninitialized.
5792 2007-12-16 Ulrich Drepper <drepper@redhat.com>
5794 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5797 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5798 mTRIm for all of them.
5799 (mTRIm): Additionally iterate over all free blocks and use madvise
5800 to free memory for all those blocks which contain at least one
5802 * malloc/tst-trim1.c: New file.
5803 * malloc/Makefile (tests): Add tst-trim1.
5805 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5807 2007-12-14 Ulrich Drepper <drepper@redhat.com>
5809 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5810 First cast argument to long
5811 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5813 (__vdso_clock_gettime): Likewise.
5814 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5817 2007-12-13 Ulrich Drepper <drepper@redhat.com>
5819 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5820 * locale/nl_langinfo_l.c: Real implementation, copied from
5822 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5824 2007-12-01 Jim Meyering <meyering@redhat.com>
5826 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5827 that would inhibit utf8-optimization of a regexp containing line-
5828 or buffer-anchors, e.g., `^', `$'.
5830 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5832 * time/bug-getdate1.c (do_test): Don't use century values which
5833 aren't valid on 32-bit systems.
5835 2007-12-12 Jakub Jelinek <jakub@redhat.com>
5837 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5838 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5839 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5840 __strcat_g, __strncat_g): Add __asm__.
5842 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5845 * io/fchmodat.c: Fix typo in stub_warning use.
5846 Patch by Petr Salinger.
5848 2007-12-11 Ulrich Drepper <drepper@redhat.com>
5850 * iconvdata/hp-thai8.c: New file.
5851 * iconvdata/Makefile: Add rules for hp-thai8.c.
5852 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5853 * iconvdata/gconv-modules: Likewise.
5856 * iconvdata/hp-greek8.c: New file.
5857 * iconvdata/Makefile: Add rules for hp-greek8.c.
5858 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5859 * iconvdata/gconv-modules: Likewise.
5862 * iconvdata/hp-turkish8.c: New file.
5863 * iconvdata/Makefile: Add rules for hp-turkish8.c.
5864 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5865 * iconvdata/gconv-modules: Likewise.
5867 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5868 (shrink_heap): ... this new function.
5869 (heap_trim): Call shrink_heap instead of grow_heap.
5871 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5872 case don't call alloc_perturb.
5874 2007-12-10 Ulrich Drepper <drepper@redhat.com>
5876 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5878 * sysdeps/unix/sysv/linux/kernel-features.h
5879 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5880 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5882 2007-12-08 Ulrich Drepper <drepper@redhat.com>
5885 * stdio-common/vfprintf.c: Do not overflow when adding to done.
5886 * stdio-common/Makefile (tests): Add bug22.
5887 * stdio-common/bug22.c: New file.
5890 * time/getdate.c: Fix filling in default values.
5891 * time/bug-getdate1.c: New file.
5892 * time/Makefile: Add rules to build and run bug-getdate1.
5894 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5895 * iconvdata/ebcdic-es.c: Likewise.
5896 * iconvdata/ebcdic-es-a.c: Likewise.
5897 * iconvdata/ebcdic-uk.c: Likewise.
5898 * iconvdata/iso8859-16.c: Likewise.
5899 * iconvdata/viscii.c: Likewise.
5900 * iconvdata/iso8859-9e.c: Likewise.
5901 * iconvdata/Makefile: Adjust appropriately.
5904 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5907 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5910 * iconvdata/hp-roman9.c: New file.
5911 * iconvdata/Makefile: Add rules for hp-roman9.c.
5912 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5913 * iconvdata/gconv-modules: Likewise.
5915 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5916 * iconvdata/Makefile: Adjust appropriately.
5919 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5920 structure, it's allocated with alloca.
5921 * stdio-common/Makefile (tests): Add bug21.
5922 * stdio-common/bug21.c: New file.
5924 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
5927 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5928 keyword for gcc's braced-groups.
5930 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5933 * inet/ether_line.c: Strip hostname of whitespaces.
5934 * inet/Makefile (tests): Add tst-ether_line.
5935 * inet/tst-ether_line.c: New file.
5937 2007-12-03 Ulrich Drepper <drepper@redhat.com>
5940 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5943 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5945 * stdlib/tst-setcontext.c: Catch the case where the links gets
5946 messed up and we do not reach main again.
5948 * po/ca.po: Update from translation team.
5950 2007-11-26 Ulrich Drepper <drepper@redhat.com>
5952 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5953 * posix/regex.h (REG_ENOSYS): Likewise.
5954 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5956 2007-11-25 Ulrich Drepper <drepper@redhat.com>
5958 * nscd/nscd.h (MAX_STACK_USE): Define.
5959 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5960 (gc): Initialize stack_used based on allocation in prune_cache.
5961 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5962 Clear array before use.
5964 * nscd/aicache.c (addhstaiX): Update statistics counter in case
5965 memory allocation failed.
5966 * nscd/hstcache.c (cache_addhst): Likewise.
5967 * nscd/grpcache.c (cache_addgr): Likewise.
5968 * nscd/servicescache.c (cache_addserv): Likewise.
5969 * nscd/pwdcache.c (cache_addpw): Likewise.
5970 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5972 2007-11-23 Ulrich Drepper <drepper@redhat.com>
5974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5975 and creat system calls.
5977 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5979 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
5981 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5983 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5984 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5986 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5987 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5988 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5990 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
5992 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5993 strncat): Define as macros to avoid compile errors.
5995 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
5998 2007-11-22 Ulrich Drepper <drepper@redhat.com>
6001 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6002 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6003 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6005 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6007 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6008 Return zero in case the thread library is not NPTL.
6011 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6012 initializing interface list.
6015 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6016 use result of nss_getgrgid_r if nothing was found. For other
6017 error return with a failure.
6018 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6020 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6023 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6025 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6026 (get_scope): For IPv4 scope, use scopes table.
6027 (fini): Free scopes table if necessary.
6028 (free_scopelist): New function.
6029 (scopecmp): New function.
6030 (gaiconf_init): Also handle scopev4 entries.
6031 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6032 * posix/tst-rfc3484-2.c (do_test): Likewise.
6033 * posix/gai.conf: Document scopev4 defaults.
6034 * posix/Makefile (tests): Add tst-rfc3484-3.
6035 * posix/tst-rfc3484-3.c: New file.
6037 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6039 * posix/gai.conf: Update for current default tables.
6041 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6043 * po/tr.po: Update from translation team.
6045 2007-11-18 Roland McGrath <roland@frob.com>
6047 * manual/arith.texi (Remainder Functions): Spelling fix.
6048 From Shaun Silk <genix@mysoul.com.au>.
6050 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6052 2007-11-17 Ulrich Drepper <drepper@redhat.com>
6054 * po/zh_CN.po: Update from translation team.
6056 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6057 Add sys/signalfd.h and sys/eventfd.h.
6059 2007-11-15 Bruno Haible <bruno@clisp.org>
6062 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6064 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6065 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6066 it needs only fixed stack space. Delay the initialization of
6067 msgid_len until it is needed.
6069 2007-11-15 Andreas Jaeger <aj@suse.de>
6071 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6072 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6074 2007-11-15 Ulrich Drepper <drepper@redhat.com>
6076 * po/ko.po: Update from translation team.
6078 2007-11-14 Ulrich Drepper <drepper@redhat.com>
6080 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6081 significantly. The device type is also part of the ifinfomsg data.
6083 * po/sv.po: Update from translation team.
6084 * po/nl.po: Likewise.
6086 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6087 to wake up in 24 hours.
6089 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6091 2007-11-13 Ulrich Drepper <drepper@redhat.com>
6093 * po/cs.po: Update from translation team.
6094 * po/pl.po: Likewise.
6096 * include/ifaddrs.h: Remove in6ai_temporary.
6097 (struct in6addrinfo): Add index element.
6098 Declare __check_native.
6099 * inet/Makefile (aux): Add check_native.
6100 * sysdeps/unix/sysv/linux/check_native.c: New file.
6101 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6102 IFA_F_TEMPORARY. Pass back ifa_index.
6103 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6104 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6105 call __check_native if necessary.
6106 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6107 to sort addresses. Pass information about the results.
6108 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6109 of rfc3484_sort interface.
6110 * posix/tst-rfc3484-2.c: Likewise.
6112 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6113 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6115 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6116 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6117 on as third parameter to compare function and _quicksort.
6118 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6119 to the compare function.
6120 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6121 * Versions.def: Add GLIBC_2.8 for libc.
6123 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6124 * posix/tst-rfc3484-2.c: Likewise.
6126 * include/kernel-features.h: Moved to...
6127 * sysdeps/mach/hurd/kernel-features.h: ...here.
6129 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6131 * sysdeps/i386/i586/memcpy_chk.S: New file.
6132 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6133 * sysdeps/i386/i586/memset_chk.S: Likewise.
6135 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6137 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6138 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6139 list of interfaces. Also store prefix length.
6140 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6141 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6142 prefix if source and destination address are in the same subnet.
6143 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6144 Always look for matching record in in6ai list.
6145 Correct source_addr_len value for IPv6->IPv4 converted records.
6147 2007-11-11 Roland McGrath <roland@frob.com>
6149 * include/kernel-features.h: New file.
6151 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6153 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6154 complications for 64-bit platforms.
6156 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6157 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6158 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6160 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6162 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6163 * sysdeps/wordsize-64/alphasort.c: New file.
6164 * sysdeps/wordsize-64/alphasort64.c: New file.
6165 * sysdeps/wordsize-64/fseeko.c: New file.
6166 * sysdeps/wordsize-64/fseeko64.c: New file.
6167 * sysdeps/wordsize-64/ftello.c: New file.
6168 * sysdeps/wordsize-64/ftello64.c: New file.
6169 * sysdeps/wordsize-64/ftw.c: New file.
6170 * sysdeps/wordsize-64/ftw64.c: New file.
6171 * sysdeps/wordsize-64/iofgetpos.c: New file.
6172 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6173 * sysdeps/wordsize-64/iofopen.c: New file.
6174 * sysdeps/wordsize-64/iofopen64.c: New file.
6175 * sysdeps/wordsize-64/iofsetpos.c: New file.
6176 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6177 * sysdeps/wordsize-64/lockf.c: New file.
6178 * sysdeps/wordsize-64/lockf64.c: New file.
6179 * sysdeps/wordsize-64/mkostemp.c: New file.
6180 * sysdeps/wordsize-64/mkostemp64.c: New file.
6181 * sysdeps/wordsize-64/mkstemp.c: New file.
6182 * sysdeps/wordsize-64/mkstemp64.c: New file.
6183 * sysdeps/wordsize-64/scandir.c: New file.
6184 * sysdeps/wordsize-64/scandir64.c: New file.
6185 * sysdeps/wordsize-64/tmpfile.c: New file.
6186 * sysdeps/wordsize-64/tmpfile64.c: New file.
6187 * sysdeps/wordsize-64/versionsort.c: New file.
6188 * sysdeps/wordsize-64/versionsort64.c: New file.
6189 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6190 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6191 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6192 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6193 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6194 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6195 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6196 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6197 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6198 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6199 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6200 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6202 * crypt/sha256-crypt.c: Fix a comment.
6203 * crypt/sha512-crypt.c: Likewise.
6205 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6207 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6209 2007-11-07 Ulrich Drepper <drepper@redhat.com>
6212 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6213 because output buffer is too small break, don't loop.
6214 * iconvdata/Makefile (tests): Add bug-iconv6.
6215 * iconvdata/bug-iconv6.c: New file.
6217 2007-11-06 Ulrich Drepper <drepper@redhat.com>
6219 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6221 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6222 size_t. Add casts where needed.
6224 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6225 old headers, don't call avc_has_perm if we don't have the
6226 permission information.
6228 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6230 * elf/rtld.c (dl_main): Use the page size to find the map start.
6232 2007-11-05 Ulrich Drepper <drepper@redhat.com>
6234 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6235 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6237 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6238 when the lookup call failed.
6240 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6241 Add prune_cond and wakeup_time.
6242 (CACHE_PRUNE_INTERNAL): Define.
6243 Update declarations of prune_cache and setup_thread.
6244 * nscd/connections.c (dbs): Update initializers.
6245 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6246 (nscd_init): Default number of threads is now 4.
6247 (invalidate_cache): Take lock before calling prune_cache.
6248 (handle_request): If SELinux forbids the request, say so.
6249 (readylist_cond): Use static initializer.
6250 (nscd_run_prune): New function. Used only by pruning threads.
6251 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6253 (fd_ready): Update nscd_run reference.
6254 (start_threads): No need to initialize readylist_cond.
6255 Start pruning threads separately.
6256 * nscd/nscd_setup_thread.c: Change return value type to int and always
6258 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6259 to int and return nonzero value if we can use the TID address hack.
6260 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6261 the database is later than the new entry's timeout, update the
6262 wakeup time and wake the cleanup thread.
6263 (prune_cache): Return seconds the next entry in the database is still
6264 valid. Remove locking for pruning here.
6265 * nscd/nscd.conf: Document default number of threads.
6267 2007-10-31 Ulrich Drepper <drepper@redhat.com>
6269 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6270 stack is properly aligned for the target function.
6271 Correct unwind info.
6273 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6274 when using auditing libraries.
6276 2007-10-29 Ulrich Drepper <drepper@redhat.com>
6278 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6279 _nss_dns_getnetbyaddr2_r.
6280 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6281 extra parameter to getanswer_r.
6282 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6283 _nss_dns_getnetbyaddr2_r.
6285 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6287 * nscd/gethstbynm2_r.c: Remove.
6288 * nscd/gethstbynm3_r.c: New file.
6289 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6291 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6292 __gethostbyaddr_r compatibility wrapper.
6293 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6294 determining timeout of entry.
6295 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6297 (addhstbyX): Pass reference to variable for TTL to lookup and
6299 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6300 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6301 and __nss_next2. Remove __nss_services_lookup.
6302 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6304 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6306 * nss/getXXent_r.c: Likewise.
6307 * nss/getnssent_r.c: Likewise.
6308 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6309 does not exist in module, try the optional second name.
6310 (__nss_next2): New function.
6311 (__nss_next): Now wrapper around __nss_next2.
6312 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6313 Declare __nss_next2.
6314 Adjust definition of db_lookup_function type.
6315 * nss/service-lookup.c: Define NO_COMPAT.
6316 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6317 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6318 * inet/ether_ntoh.c: Likewise.
6319 * sunrpc/netname.c: Likewise.
6320 * sunrpc/publickey.c: Likewise.
6321 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
6322 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6323 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6324 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6325 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6327 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6329 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6331 2007-10-28 Ulrich Drepper <drepper@redhat.com>
6334 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6335 * crypt/sha512c-test.c: Likewise.
6338 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6339 to keep track of end of %[ format string element.
6340 * stdio-common/Makefile (tests): Add bug20.
6341 * stdio-common/bug20.c: New file.
6344 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6345 path elements in counting mode.
6347 2007-10-27 Andreas Jaeger <aj@suse.de>
6350 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6353 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6354 (__cleanup): Free shared library when exiting.
6355 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6356 (__cleanup): Free shared library when exiting.
6358 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
6361 * math/libm-test.inc (check_float_internal): Support
6362 denormalized return.
6364 2007-10-23 Andreas Jaeger <aj@suse.de>
6367 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6368 __LONG_LONG_PAIR to handle little endian byte order.
6369 Suggested by abhishekrai@google.com
6371 2007-10-27 Ulrich Drepper <drepper@redhat.com>
6373 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6375 2007-10-26 Ulrich Drepper <drepper@redhat.com>
6377 * nscd/cache.c (prune_cache): Move test for modified file outside
6380 2007-10-21 Andreas Jaeger <aj@suse.de>
6382 * manual/texinfo.tex: Update to latest version.
6384 * manual/sysinfo.texi (System Parameters): Fix Formatting.
6386 * manual/arith.texi (Status bit operations): Fix formatting.
6388 * manual/errno.texi (Error Messages): Fix formatting.
6390 * manual/sysinfo.texi (System Parameters): Fix formatting.
6392 * manual/libc.texinfo: Update VERSION and UPDATED.
6394 2007-10-19 Roland McGrath <roland@redhat.com>
6396 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6398 2007-10-06 David S. Miller <davem@davemloft.net>
6400 * configure.in: Add sparcv9v2 and sparc64v2.
6401 * scripts/config.sub: Likewise.
6402 * configure: Regenerate.
6403 * elf/elf.h (HWCAP_SPARC_N2): New.
6404 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6405 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6406 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6407 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6408 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6409 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6410 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6412 2007-10-18 Ulrich Drepper <drepper@redhat.com>
6414 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6415 even if the poll result indicates there is data to read.
6416 Patch by Jeff Moyer <jmoyer@redhat.com>.
6418 2007-10-18 Roland McGrath <roland@redhat.com>
6420 * elf/elf.h (NT_PPC_VMX): New macro.
6422 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6424 * version.h (VERSION): Set to 2.7.90.
6426 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6428 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
6431 2007-10-17 Roland McGrath <roland@frob.com>
6433 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6434 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6436 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6438 * version.h (VERSION): Bump to 2.7.
6439 * include/features.h (__GLIBC_MINOR__): Bump to 7.
6442 * time/tzset.c (__tz_convert): Don't force testing for a change of
6443 TZ if not called from localtime. But then also see whether the
6444 file changed, in case __use_tzfile is set.
6446 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6447 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6448 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6449 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6450 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6451 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6452 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6453 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6455 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6457 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6458 and admin selects to be able to replace the gai.conf file, lock
6459 data structures around the qsort call.
6461 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6463 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6465 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
6466 too high for the improvements. Implement bzero unconditionally for
6469 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6470 Jakub Jelinek <jakub@redhat.com>
6472 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6473 even when time_t is 32-bit.
6474 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6475 timezone data read by __tzfile_default. Ensure __tzname[0] is
6476 always set after the search.
6478 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6480 * time/tzfile.c (__tzfile_read): Help the compiler recognize
6481 unreachable code on 32-bit machines.
6483 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6486 * time/strftime_l.c: Include stdbool.h.
6487 (my_strftime): New wrapper, old function renamed to...
6488 (__strftime_internal): ... new function. Add tzset_called
6489 argument, pass it down to recursive calls, don't call tzset ()
6490 if already true, set to true after call to tzset ().
6492 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6494 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6495 into account when copying TZ string.
6497 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6499 * time/tzfile.c (__tzfile_compute): For use_last case set i to
6500 num_transition rather than num_transitions - 1.
6502 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6504 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6507 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6508 a local label rather than HIDDEN_JUMPTARGET.
6510 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6512 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6513 (init_cacheinfo): Initialize it.
6514 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6515 Always define bzero.
6516 Remove non-glibc code.
6517 * sysdeps/x86_64/bzero.S: Make an empty file.
6519 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6521 * sysdeps/x86_64/cacheinfo.c
6522 (__x86_64_preferred_memory_instruction): New.
6523 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6525 * sysdeps/x86_64/memset.S: Rewrite.
6527 2007-10-15 Roland McGrath <roland@redhat.com>
6529 * po/libc.pot: Regenerated.
6531 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6533 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6537 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6538 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6539 address record to T_A/T_AAAA requests.
6541 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6543 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6545 * posix/glob.c: Add some branch prediction throughout.
6547 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6550 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6552 (rfc3484_sort): Make sure that even if qsort doesn't support
6553 stable sorting out sorting here is stable by comparing service_order.
6554 (getaddrinfo): Initialize service_order.
6555 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6556 service_order field to sorting structure.
6557 * posix/tst-rfc3484-2.c (do_test): Likewise.
6559 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6560 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6561 __tzset_parse_tz and updating of daylight, timezone, tzname into
6563 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6564 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6565 happens in __tz_compute.
6566 * time/tzfile.c (__tzfile_read): Also read TZ string.
6567 (find_transition): Fold into __tzfile_compute.
6568 (__tzfile_compute): For times beyond the last transition try to
6570 * timezone/tst-timezone.c: Information in daylight and tzname does
6571 change for Asia/Tokyo timezone with more concrete information.
6574 * include/stdio.h: Add libc_hidden_proto for ftello.
6575 * libio/ftello.c: Add libc_hidden_def.
6578 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6579 on the specified time and not the last entries in the file. Move
6580 code to determine tzname[] to...
6581 (find_transition): ...here. Add ugly guess for times before the
6584 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6587 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6589 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6590 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6591 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6592 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6594 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6595 read mechanism when there are no group members and avoid no-op
6596 read syscall in this case.
6599 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6600 (__readall): If reading failed due to EAGAIN error wait a bit
6601 and possibly try again.
6602 (__readvall): Likewise.
6604 2007-10-13 Bruno Haible <bruno@clisp.org>
6606 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6607 when we cannot recode the message.
6609 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6612 * libio/__freading.c (__freading): Don't return true for
6613 write-only streams. For read/write streams, check whether we
6614 performed a read operation already.
6615 * libio/Makefile (tests): Add tst-ext2.
6616 * libio/tst-ext2.c: New file.
6618 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6620 * locale/programs/repertoire.c (repertoire_read): Always free
6621 memory for repertoire file name [Coverity CID 270].
6623 * elf/cache.c (save_aux_cache): Free memory allocated for
6624 temporary file name [Coverity CID 267].
6626 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6628 * misc/Makefile (headers): Add bits/error.h.
6630 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6632 * posix/fnmatch_loop.c: Take rule index returned as part of
6633 findidx return value into account when accessing weights.
6634 * posix/regcomp.c: Likewise.
6635 * posix/regexec.c: Likewise.
6637 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6638 (skip_to): Fix problems with parameter of elifdef/elifndef.
6640 2007-10-11 Ulrich Drepper <drepper@redhat.com>
6642 * iconv/gconv_simple.c: Add some branch prediction.
6644 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6646 * locale/programs/ld-collate.c (collate_read): If ignore_content
6647 and nowtok is tok_define, eat any tok_eol tokens.
6649 2007-10-11 Jakub Jelinek <jakub@redhat.com>
6651 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6652 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6654 * inet/netinet/in.h: Don't include bits/socket.h.
6655 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6657 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6659 2007-10-10 Ulrich Drepper <drepper@redhat.com>
6661 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6663 * locale/programs/locfile-kw.gperf: Likewise.
6664 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6666 2007-10-10 Jakub Jelinek <jakub@redhat.com>
6668 * stdio-common/printf-parse.h: Include string.h and wchar.h.
6669 (__find_specwc): Change into __extern_always_inline function.
6670 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
6671 (__parse_one_specmb): Remove ps argument.
6672 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6673 Adjust __find_specmb and __parse_one_specmb callers.
6674 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6675 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6677 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6680 2007-10-09 Ulrich Drepper <drepper@redhat.com>
6682 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6683 with some Pentium Ds.
6685 2007-10-08 Ulrich Drepper <drepper@redhat.com>
6687 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6689 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6692 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6695 * locale/C-time.c: Set week_1stday data to 19971201.
6696 * locale/programs/ld-time.c (time_finish): Default for
6697 first_workday is Monday.
6700 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6703 * posix/glob.c (glob): Recognize patterns starting \/.
6704 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6705 (main): Add test for pattern starting \/.
6707 * misc/error.h: Use __const instead of const.
6708 * misc/bits/error.h: Likewise.
6710 2007-10-07 Andreas Jaeger <aj@suse.de>
6712 * include/bits/error.h: New file.
6714 * misc/bits/error.h (error_at_line): Fix prototype.
6716 2007-10-06 Ulrich Drepper <drepper@redhat.com>
6719 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6720 more little bugs in creating the stack frame when pltexit has to
6723 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6724 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6727 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6728 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6729 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6730 * math/libm-test.inc: Add test for this case.
6733 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6734 (svc_register): Initialize sc_mapped. Set to TRUE if call to
6735 map service succeeded.
6736 (svc_is_mapped): New function.
6737 (svc_unregister): Use it before trying to unmap service.
6739 2007-10-05 Ulrich Drepper <drepper@redhat.com>
6741 * timezone/zic.c: Update from tzcode2007h.
6744 * timezone/africa: Update from tzdata2007h.
6745 * timezone/antarctica: Likewise.
6746 * timezone/asia: Likewise.
6747 * timezone/australasia: Likewise.
6748 * timezone/europe: Likewise.
6749 * timezone/leapseconds: Likewise.
6750 * timezone/northamerica: Likewise.
6751 * timezone/southamerica: Likewise.
6752 * timzeone/zone.tab: Likewise.
6755 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6758 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6759 avoid warning with -Wconversion.
6760 (__strndup): Likewise.
6761 Half the patch by Christian Iseli <christian.iseli@licr.org>.
6764 * nscd/connections.c (restart): Don't resync if database is
6765 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6767 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6768 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6770 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6771 evetnfd_read, eventfd_write.
6772 * sysdeps/unix/sysv/linux/eventfd.c: New file.
6773 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6774 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6775 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6776 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6777 eventfd_write for GLIBC_2.7.
6779 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6780 * sysdeps/unix/sysv/linux/signalfd.c: New file.
6781 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6782 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6784 2007-10-04 Jakub Jelinek <jakub@redhat.com>
6786 * stdlib/msort.c: Include stdint.h.
6787 (struct msort_param): New type.
6788 (msort_with_tmp): Use struct msort_param pointer for unchanging
6789 parameters. Add optimized handling for several common sizes
6790 and indirect sorting mode.
6791 (qsort): Adjust msort_with_tmp callers. For big S use indirect
6793 Suggested by Belazougui Djamel .
6795 * stdlib/Makefile (tests): Add tst-qsort2.
6796 * stdlib/tst-qsort2.c: New test.
6798 2007-10-04 Ulrich Drepper <drepper@redhat.com>
6800 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6801 for dup2 in case another thread races with the current one. Retry
6804 * misc/error.h: Remove support for use outside of libc. We have to
6805 include <features.h> now. Include <bits/error.h> if possible.
6806 * misc/bits/error.h: New file.
6808 2007-10-03 Jakub Jelinek <jakub@redhat.com>
6810 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6811 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6812 __extern_always_inline functions unconditionally, drop macros.
6814 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6815 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6816 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6818 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6819 add __artificial__ attribute.
6821 2007-10-02 Ulrich Drepper <drepper@redhat.com>
6823 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6824 backward to forward direction.
6826 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6829 * locale/programs/ld-collate.c (collate_finish): Compare against last
6830 used section which is known to have rules defined.
6831 (collate_read): After order_start, correctly record order of sections
6832 and queue sections up.
6834 2007-10-01 Ulrich Drepper <drepper@redhat.com>
6837 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6838 the same number of pages.
6839 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6841 * locale/programs/ld-collate.c (collate_read): After initial copy
6842 statement, continue in state 0.
6844 * include/stdio_ext.h (__fsetlocking): Define as macro.
6846 2007-09-30 Ulrich Drepper <drepper@redhat.com>
6848 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6851 * po/pt_BR.po: Fix typo.
6853 2007-09-29 Ulrich Drepper <drepper@redhat.com>
6855 * iconvdata/Makefile (modules): Add ISO8859-9E.
6856 (distribute): Add iso8859-9e.c.
6857 (gen-8bit-gap-modules): Add iso8859-9e.
6858 * iconvdata/iso8859-9e.c: New file.
6859 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6860 * iconvdata/TESTS: Likewise.
6861 * iconvdata/tst-tables.sh: Likewise.
6863 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6865 * locale/iso-639.def: Add several new entries.
6867 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6869 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6870 void * pointers instead of struct link_map **.
6871 (_dl_scope_free): Change argument type to void *.
6872 * include/link.h (struct link_map): Change type of l_reldeps
6873 to struct link_map_reldeps, move l_reldepsact into that
6875 * elf/dl-deps.c: Include atomic.h.
6876 (_dl_map_object_deps): Only change l->l_initfini when it is
6877 fully populated, use _dl_scope_free for freeing it. Optimize
6878 removal of libs from reldeps by using l_reserved flag, when
6879 some removal is needed, allocate a new list instead of
6880 reallocating and free the old with _dl_scope_free. Adjust
6881 for l_reldeps and l_reldepsact changes.
6882 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
6883 searching in l_initfini and l_reldeps without holding dl_load_lock.
6884 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6885 l_reldepsact changes.
6886 * elf/dl-close.c (_dl_close_worker): Likewise.
6887 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6889 2007-09-28 Ulrich Drepper <drepper@redhat.com>
6891 * iconvdata/Makefile (modules): Add KOI8-RU.
6892 (distribute): Add koi8-ru.c.
6893 (gen-8bit-gap-modules): Add koi8-ru.
6894 * iconvdata/koi8-ru.c: New file.
6895 * iconvdata/gconv-modules: Add entries for KOI8-RU.
6896 * iconvdata/TESTS: Likewise.
6897 * iconvdata/tst-tables.sh: Likewise.
6899 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6901 2007-09-26 Jakub Jelinek <jakub@redhat.com>
6903 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6904 with __warning__/__error__ attributes.
6905 (__warnattr): Define.
6906 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6907 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6909 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6910 of __*_chk if compile time detectable overflow is found.
6911 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6912 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6914 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6915 instead of __*_chk if compile time detectable overflow is found.
6916 (__gets_alias): Rename to...
6917 (__gets_warn): ... this. Add __warnattr.
6918 (gets): Call __gets_warn instead of __gets_alias.
6919 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6920 aliases with __warnattr.
6921 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6922 time detectable overflow is found.
6923 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6924 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6925 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6926 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6927 __getdomainname_chk_warn): New aliases with __warnattr.
6928 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6929 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6930 __*_chk_warn instead of __*_chk if compile time detectable overflow
6932 (__getgroups_chk): Rename argument to __listlen from listlen.
6933 (__getwd_alias): Rename to...
6934 (__getwd_warn): ... this. Add __warnattr.
6935 (getwd): Call __getwd_warn instead of __getwd_alias.
6936 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6937 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6938 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6939 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6940 __wcsnrtombs_chk_warn): New aliases with __warnattr.
6941 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6942 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6943 compile time detectable overflow is found.
6944 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
6945 to use __*_chk or not.
6946 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6947 in comparisons which function should be called and in __*_chk*
6948 arguments. Call __*_chk_warn instead of __*_chk if compile time
6949 detectable overflow is found.
6950 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6952 * debug/tst-chk1.c (do_test): Add a few more tests.
6954 2007-09-24 Ulrich Drepper <drepper@redhat.com>
6957 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6958 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6959 (_nl_unload_domain): Finalize conversions_lock.
6960 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6961 handling table of known conversions.
6963 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6965 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6966 close_not_cancel_no_status instead of close.
6968 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
6971 * posix/regcomp.c (lookup_collation_sequence_value): Check that
6972 nrules != 0 for multibyte chars.
6974 2007-09-23 Ulrich Drepper <drepper@redhat.com>
6976 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6977 Provide better error message in case the type is unknown.
6980 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6981 * string/stratcliff.c: Make usable to test wide char functions.
6982 * wcsmbs/wcsatcliff.c: New file.
6983 * wcsmbs/Makefiel (tests): Add wcsatcliff.
6986 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6987 (distribute): Add mac-centraleurope.c.
6988 (gen-8bit-gap-modules): Add mac-centraleurope.
6989 * iconvdata/mac-centraleurope.c: New file.
6990 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6991 * iconvdata/TESTS: Likewise.
6992 * iconvdata/tst-tables.sh: Likewise.
6995 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6997 2007-09-21 Ulrich Drepper <drepper@redhat.com>
6999 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7000 from __x86_64_core_cache_size_half.
7001 (init_cacheinfo): Compute shared cache size for AMD processors with
7002 shared L3 correctly.
7003 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7005 Patch in large parts by Evandro Menezes.
7007 2007-09-19 Ulrich Drepper <drepper@redhat.com>
7009 * elf/dl-lookup.c (add_dependency): Handle failing memory
7010 allocation for dependency list. Remove unnecessary check.
7012 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7013 open/close when determining source addresses.
7015 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7016 sha512-crypt, and sha512.
7017 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7018 (distribute): Add sha256.h and sha512.h.
7019 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7020 and call the appropriate code.
7021 * crypt/sha256-crypt.c: New file.
7022 * crypt/sha256.c: New file.
7023 * crypt/sha256.h: New file.
7024 * crypt/sha256c-test.c: New file.
7025 * crypt/sha256test.c: New file.
7026 * crypt/sha512-crypt.c: New file.
7027 * crypt/sha512.c: New file.
7028 * crypt/sha512.h: New file.
7029 * crypt/sha512c-test.c: New file.
7030 * crypt/sha512test.c: New file.
7032 2007-09-19 Jakub Jelinek <jakub@redhat.com>
7034 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7035 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7038 2007-09-18 Jakub Jelinek <jakub@redhat.com>
7040 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7041 %as in fscanf format strings.
7043 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7044 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7045 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7047 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7050 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7051 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7052 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7053 * elf/dl-sym.c (do_sym): Likewise.
7054 * include/link.h (struct link_map): Add l_serial field.
7055 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7056 * elf/dl-lookup.c (add_dependency): Add flags argument.
7057 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7058 flags, use THREAD_GSCOPE_RESET_FLAG before and
7059 THREAD_GSCOPE_SET_FLAG after
7060 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7061 Don't dereference map until it has been found on some list.
7062 If map->l_serial changed, return -1.
7064 2007-09-17 Jakub Jelinek <jakub@redhat.com>
7066 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7067 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7068 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7070 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7071 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7072 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7073 add libc_hidden_proto.
7074 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7075 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7076 conformance requested.
7077 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7078 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7079 conformance requested.
7080 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7081 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7082 conformance requested.
7083 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7084 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7085 ISO C99 or POSIX conformance requested.
7086 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7087 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7088 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7089 and __isoc99_vsscanf@@GLIBC_2.7.
7090 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7091 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7092 (tests): Add scanf14.
7093 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7094 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7095 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7096 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7097 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7098 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7099 from using internal headers.
7100 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7101 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7102 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7103 and __isoc99_vswscanf@@GLIBC_2.7.
7104 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7105 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7106 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7107 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7108 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7109 * stdio-common/isoc99_scanf.c: New file.
7110 * stdio-common/isoc99_vsscanf.c: New file.
7111 * stdio-common/isoc99_vscanf.c: New file.
7112 * stdio-common/isoc99_vfscanf.c: New file.
7113 * stdio-common/isoc99_fscanf.c: New file.
7114 * stdio-common/isoc99_sscanf.c: New file.
7115 * wcsmbs/isoc99_fwscanf.c: New file.
7116 * wcsmbs/isoc99_vswscanf.c: New file.
7117 * wcsmbs/isoc99_swscanf.c: New file.
7118 * wcsmbs/isoc99_wscanf.c: New file.
7119 * wcsmbs/isoc99_vwscanf.c: New file.
7120 * wcsmbs/isoc99_vfwscanf.c: New file.
7121 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7122 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7123 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7124 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7125 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7126 * stdio-common/scanf14.c: New test.
7127 * stdio-common/scanf15.c: New test.
7128 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7129 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7130 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7131 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7132 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7133 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7134 __nldbl___isoc99_scanf@@GLIBC_2.7,
7135 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7136 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7137 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7138 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7139 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7140 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7141 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7142 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7143 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7144 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7145 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7146 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7147 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7148 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7149 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7150 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7151 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7152 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7153 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7154 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7155 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7156 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7157 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7159 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7160 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7161 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7162 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7163 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7164 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7165 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7166 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7167 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7168 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7169 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7170 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7172 * stdio-common/Makefile (tests): Add scanf13.
7174 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7175 m modifier followed by l.
7176 (STRING_ARG): Add width argument.
7177 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7178 <case L_('C')>: Handle %mlc and %mC.
7179 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7181 * stdio-common/scanf13.c: New test.
7183 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7184 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7186 2007-09-18 Ulrich Drepper <drepper@redhat.com>
7188 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7189 type and __THROW marker of splice, vmsplice, and tee.
7190 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7191 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7192 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7193 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7194 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7195 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7196 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7197 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7198 as cancellation points.
7200 2003-11-01 Daniel Jacobowitz <dan@debian.org>
7202 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7203 parse more than three parts of the version number.
7205 2007-09-15 Ulrich Drepper <drepper@redhat.com>
7207 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7208 modifier. Patch by Jakub Jelinek.
7210 2007-08-26 Jakub Jelinek <jakub@redhat.com>
7212 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7213 call_fallocate in misc subdir.
7214 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7215 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7216 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7217 instead of __fallocate64.
7218 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7220 2007-09-15 Jakub Jelinek <jakub@redhat.com>
7222 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7223 * rt/Makefile (headers): Add bits/mqueue2.h.
7224 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7225 optimizing with GCC and __va_arg_pack_len is defined.
7226 * rt/bits/mqueue2.h: New file.
7227 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7228 (mq_open): New strong_alias.
7229 (__mq_open_2): New function.
7230 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7231 (mq_open): New strong_alias.
7232 (__mq_open_2): New function.
7233 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7234 * Versions.def (librt): Add GLIBC_2.7 version.
7235 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7236 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7238 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7239 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7240 is defined rather than when not C++.
7241 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7242 __openat64_alias): New redirects.
7243 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7244 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7245 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7246 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7247 functions instead of function-like macros.
7249 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7251 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7252 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7253 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7255 2007-09-15 Mike Frysinger <vapier@gentoo.org>
7257 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7258 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7260 2007-09-14 Mike Frysinger <vapier@gentoo.org>
7262 * inet/tst-network.c: Increment ERRORS for failing tests.
7264 2007-09-07 Jakub Jelinek <jakub@redhat.com>
7266 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7267 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7268 implement as __extern_always_inline function.
7269 (vsyslog): Define as __extern_always_inline function unconditionally.
7270 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7271 When __va_arg_pack is defined, implement as __extern_always_inline
7273 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7274 __extern_always_inline functions unconditionally.
7275 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7276 bits/stdio2.h will be included.
7277 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7278 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7279 implement as __extern_always_inline functions.
7280 (vswprintf, vwprintf, vfwprintf): Define as
7281 __extern_always_inline functions unconditionally.
7282 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7284 2007-09-03 Jakub Jelinek <jakub@redhat.com>
7286 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7287 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7289 * include/features.h (__USE_EXTERN_INLINES): Define only when
7290 __extern_inline is defined.
7291 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7292 is defined instead of when not __cplusplus.
7293 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7294 is defined instead of when not __cplusplus.
7295 * socket/sys/socket.h: Include bits/socket2.h when
7296 __extern_always_inline is defined instead of when not __cplusplus.
7297 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7298 is defined instead of when not __cplusplus.
7299 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7300 is defined instead of when not __cplusplus.
7301 * string/string.h: Include bits/string3.h when __extern_always_inline
7302 is defined instead of when not __cplusplus.
7303 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7304 is defined instead of when not __cplusplus.
7305 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7306 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7308 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7309 defined __extern_always_inline instead of !defined __cplusplus.
7310 * libio/bits/stdio-ldbl.h: Likewise.
7311 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7312 * misc/bits/syslog.h (syslog): Don't define for C++.
7313 (vsyslog): Use __extern_always_inline function for C++ instead of
7315 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7316 whenever that macro is defined.
7317 (vprintf): Don't provide the inline for C++.
7318 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7319 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7320 define the macros for C++.
7321 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7322 __extern_always_inline functions for C++.
7323 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7324 stat64, lstat64, fstat64, fstatat64): Don't define if not
7325 __USE_EXTERN_INLINES.
7326 * wcsmbs/bits/wchar2.h: Fix #error message.
7327 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7328 (vswprintf, vwprintf, vfwprintf): Define using
7329 __extern_always_inline functions for C++.
7330 * string/bits/string3.h: Don't #undef macros if __cplusplus.
7331 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7332 strncpy, strcat, strncat): Define as __extern_always_inline
7333 functions instead of macros for C++.
7334 * math/bits/cmathcalls.h: Guard __extern_inline routines with
7335 defined __extern_inline.
7336 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7337 to __extern_inline whenever that macro is defined.
7338 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7339 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7340 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7341 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7342 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7343 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7344 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7345 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7346 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7347 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7348 prototypes. Only provide __extern_inline routines if
7349 __USE_EXTERN_INLINES.
7350 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7352 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7353 For now avoid some *printf tests in C++. Skip all testing
7354 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7356 * debug/tst-chk4.cc: New file.
7357 * debug/tst-chk5.cc: New file.
7358 * debug/tst-chk6.cc: New file.
7359 * debug/tst-lfschk4.cc: New file.
7360 * debug/tst-lfschk5.cc: New file.
7361 * debug/tst-lfschk6.cc: New file.
7362 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7364 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7365 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7366 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7368 2007-09-13 Ulrich Drepper <drepper@redhat.com>
7370 * po/cs.po: Update from translation team.
7372 2007-09-11 Roland McGrath <roland@redhat.com>
7374 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7377 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7379 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7381 2007-09-05 Roland McGrath <roland@redhat.com>
7383 * manual/signal.texi (Signaling Another Process): Typo fix.
7384 From Karl Berry <karl@freefriends.org>.
7386 2007-08-29 Ulrich Drepper <drepper@redhat.com>
7388 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7389 zero if not defined.
7390 (make_request): Recognize optimistic addresses and treat them like
7391 deprecated addresses.
7392 Reported by Neil Horman <nhorman@redhat.com>.
7394 2007-08-28 Ulrich Drepper <drepper@redhat.com>
7396 * nscd/connections.c (send_ro_fd): Also transfer file size.
7397 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7398 file size don't call fstat.
7400 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7401 ahead and map the file. This should always be correct and we can
7402 catch problems later.
7404 2007-08-28 Jakub Jelinek <jakub@redhat.com>
7406 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7408 (__fread_alias, __fread_unlocked_alias): New aliases.
7409 (fread): New extern inline.
7410 (fread_unlocked): Likewise. Undef macro before definition of
7411 the inline function.
7412 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7413 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7414 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7415 and __fread_unlocked_chk@@GLIBC_2.7.
7416 * debug/fread_chk.c: New file.
7417 * debug/fread_u_chk.c: New file.
7418 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7420 2007-08-27 Jakub Jelinek <jakub@redhat.com>
7422 * sysdeps/unix/sysv/linux/syscalls.list
7423 (personality): Change caller to EXTRA.
7425 2007-08-25 Ulrich Drepper <drepper@redhat.com>
7427 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7429 * iconvdata/iso-2022-cn.c (BODY): Likewise.
7431 * locale/programs/ld-collate.c (collate_output): Avoid warning if
7434 * Makerules: Use -p option with mkdir.
7436 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7437 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7438 (_xdr_directory_obj): Likewise.
7439 (xdr_entry_obj): Likewise.
7440 (xdr_group_obj): Likewise.
7441 (xdr_link_obj): Likewise.
7442 (xdr_table_obj): Likewise.
7443 (_xdr_nis_result): Likewise.
7444 (_xdr_ns_request): Likewise.
7445 (_xdr_ib_request): Likewise.
7446 (_xdr_nis_taglist): Likewise.
7447 (xdr_cback_data): Likewise.
7448 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7449 (xdr_ypresp_maplist): Likewise.
7451 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7453 * posix/regex_internal.h: Prevent some declarations and definitions
7454 to be seen when used in tests.
7456 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7457 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7459 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7461 * config.make.in (datarootdir): Add to shut up configure.
7463 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7464 associativity for fully-associative caches.
7466 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7467 requests. Fill on more associativity values for L2.
7468 Patch mostly by Evandro Menezes.
7470 2007-08-24 Ulrich Drepper <drepper@redhat.com>
7472 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7473 (_libc_vdso_platform_setup): Avoid using exported variable by using
7476 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7478 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7479 fallocate64 as EXTRA. It is not referenced if the symbol isn't
7482 2007-08-23 Ulrich Drepper <drepper@redhat.com>
7484 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7485 align stack for call if pltexit is to be used.
7488 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7489 align for function call in case pltexit has to be called later.
7491 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7492 implicit atomic operation when storing function pointer.
7493 (_dl_runtime_profile): Likewise.
7495 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7497 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7500 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7503 * string/strtok.c: Fix typo in comment.
7506 * debug/segfault.c: Fix typos in comments.
7509 * stdio-common/tempnam.c: Fix comment, it is not checked that
7510 TMPDIR points to a writable directory.
7513 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7514 memory allocated for the name server address.
7517 * nscd/connections.c (handle_request): Using sendfile always
7518 requires that mmap is used for the database.
7519 Patch by Petr Baudis <pasky@suse.cz>.
7522 * nscd/hstcache.c (cache_addhst): When reloading an entry which
7523 suddenly has two or more addresses, ignore it and remove the old
7527 * resolv/res_hconf.c: Prepare for compiling outside libc.
7528 * nscd/res_hconf.c: New file.
7529 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
7531 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7532 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7534 * nscd/hstcache.c (cache_addhst): Minimal optimization.
7537 * debug/pcprofiledump.c: Turn on internationalization by calling
7538 setlocale. Patch mostly by Benno Schulenberg.
7541 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7543 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7544 * iconvdata/bug-iconv5.c: New file.
7546 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
7549 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7550 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7551 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7552 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7553 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7554 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7555 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7556 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7558 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7561 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7562 lookup loop. Suggested by John Reiser.
7564 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7566 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7568 2007-08-20 Ulrich Drepper <drepper@redhat.com>
7570 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7571 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7572 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7573 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7574 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7576 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7578 2007-08-18 Ulrich Drepper <drepper@redhat.com>
7580 * po/nl.po: Update from translation team.
7582 2007-08-16 Andreas Jaeger <aj@suse.de>
7584 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7585 Reported by Peter Festner <peter.festner@ewetel.net>.
7587 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7589 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7591 2007-08-16 Jakub Jelinek <jakub@redhat.com>
7593 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7594 to check for undefined symbols.
7596 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7597 If the syscall fails, set errno to the actual returned error number
7599 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7600 arguments are incorrect, set errno to EINVAL, if the syscall
7601 fails, set errno to the actual returned error number.
7603 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7604 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7606 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7607 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7609 (ASI_PNF, ASI_BLK_P): Don't define.
7610 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7611 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7613 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7614 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7617 2007-08-15 Jakub Jelinek <jakub@redhat.com>
7619 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7620 FE_UNDERFLOW on Niagara CPUs.
7622 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7625 2007-08-14 Jakub Jelinek <jakub@redhat.com>
7627 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7628 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7629 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7630 flush should be used or not inside of the function.
7631 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7633 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7634 __thread_start): Use HIDDEN_JUMPTARGET.
7635 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7636 __thread_start): Likewise.
7637 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7639 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7640 Add libc_hidden_proto.
7641 (STRTOF): Add libc_hidden_proto.
7642 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7643 (strtold_l, wcstold_l): Use them as second argument for
7646 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7648 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7650 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7652 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7654 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7656 * po/bg.po: New file. From the translation team.
7658 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7660 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7661 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7662 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7663 when each feature was introduced.
7665 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7666 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7667 (CHECK_HASH): New macro.
7668 (PREPARE_VERSION): Use it.
7670 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7671 prototype if not __ASSUME_PSELECT.
7672 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7673 prototype if not __ASSUME_PPOLL.
7675 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7677 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7678 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7681 2007-08-13 Ulrich Drepper <drepper@redhat.com>
7683 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7684 (_libc_vdso_platform_setup): If vDSO is not available point
7685 __vdso_gettimeofday to the vsyscall.
7686 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7687 __vdso_gettimeofday instead of vsyscall.
7689 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7691 * nscd/servicescache.c: Include kernel-features.h.
7692 * nscd/gai.c: Likewise.
7693 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7694 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7695 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7696 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7697 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7698 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7699 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7700 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7701 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7703 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7705 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7706 and _dl_get_origin defines anymore.
7708 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7709 Build fix for systems which might lack POSIX timer support.
7711 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7712 (_libc_vdso_platform_setup): Mangle function pointers before storing
7714 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7715 Demangle vdso pointer before use.
7716 (INTERNAL_VSYSCALL): Likewise.
7718 * elf/cache.c (primes): Mark as const.
7719 Noted by Roland McGrath.
7721 2007-08-01 Andreas Jaeger <aj@suse.de>
7722 Jakub Jelinek <jakub@redhat.com>
7724 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7725 (options): Add option.
7726 (parse_opt): Handle option.
7727 (manual_link): Adjust process_file caller. Call implicit_soname.
7728 (search_dir): Formatting. Use and populate auxiliary cache.
7729 (main): Load and save auxiliary cache.
7730 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
7731 stat64 from fstat64 to caller.
7732 (implicit_soname): New function.
7733 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7734 leave *soname as NULL.
7735 * elf/cache.c: Include libgen.h.
7736 (print_entry, print_cache, compare, save_cache, add_to_cache):
7737 Formatting and cleanups.
7738 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7739 aux_cache_file): New structures.
7740 (AUX_CACHEMAGIC): Define.
7741 (primes): New array.
7742 (aux_hash_size, aux_hash): New variables.
7743 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7744 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7745 load_aux_cache, save_aux_cache): New functions.
7746 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7747 (init_aux_cache, search_aux_cache, add_to_aux_cache,
7748 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7749 (process_file): Adjust prototype.
7751 2007-08-12 Jakub Jelinek <jakub@redhat.com>
7753 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7756 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7758 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7759 r_found_version structure as second parameter.
7760 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7761 (_dl_vdso_vsym): Change type of second parameter accordingly.
7762 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7763 (_libc_vdso_platform_setup): Adjust.
7764 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7765 (_libc_vdso_platform_setup): Likewise.
7767 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7768 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7769 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7770 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7771 * csu/libc-start.c: Pretty printing.
7772 Use VDSO_SETUP if defined.
7773 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7774 and let generic code call into _libc_vdso_platform_setup.
7775 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7776 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7777 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7778 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7779 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7781 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7782 (sysdep_rountines): Add dl-vdso.
7784 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7787 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7788 attribute_hidden to __vdso_gettimeofday prototype.
7790 2007-08-12 Roland McGrath <roland@redhat.com>
7792 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7793 From: Karl Berry <karl@freefriends.org>.
7795 2007-08-11 Ulrich Drepper <drepper@redhat.com>
7797 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7798 an atime update for the files we read.
7800 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7802 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7804 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
7807 * misc/Makefile (routines): Add mkostemp and mkostemp64.
7808 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7809 * misc/mkostemp.c: New file.
7810 * misc/mkostemp64.c: New file.
7811 * stdlib/stdlib.h: Declare the new functions.
7812 * sysdeps/posix/tempname.c: Add new parameter which is added to
7813 the flags for open. Remove __GT_BIGFILE handling.
7814 * stdio-common/tempname.c: Likewise.
7815 * include/stdio.h: Adjust __gen_tempname prototype.
7816 Renumber __GT_* constants.
7817 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7818 * misc/mkdtemp.c: Likewise.
7819 * misc/mkstemp.c: Likewise.
7820 * misc/mkstemp64.c: Likewise.
7821 * misc/mktemp.c: Likewise.
7822 * stdio-common/tempnam.c: Likewise.
7823 * stdio-common/tmpfile.c: Likewise.
7824 * stdio-common/tmpfile64.c: Likewise.
7825 * stdio-common/tmpnam.c: Likewise.
7826 * stdio-common/tmpnam_r.c: Likewise.
7828 2007-08-10 Roland McGrath <roland@frob.com>
7830 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7832 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7833 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7835 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7837 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7839 * nss/nss_files/files-alias.c (internal_setent): Likewise.
7840 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7841 * nss/nss_files/files-have_o_cloexec.c: New file.
7843 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7846 2007-08-10 Jakub Jelinek <jakub@redhat.com>
7848 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7849 ___new_wcstold_l): New weak aliases.
7850 (strtold_l, wcstold_l): Use them as second argument for
7853 2007-08-09 Ulrich Drepper <drepper@redhat.com>
7855 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7856 register in test for error.
7858 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7859 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7861 * po/sv.po: Update from translation team.
7863 2007-08-06 Roland McGrath <roland@redhat.com>
7865 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7866 Remove __strto*_l inlines.
7867 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7868 * stdlib/strtod.c: Add libc_hidden_def.
7869 * stdlib/strtod_l.c: Likewise.
7870 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7871 for __new_strtold and __new_wcstold.
7872 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7874 * stdlib/strtol.c: Add libc_hidden_def.
7875 * stdlib/strtol_l.c: Likewise.
7876 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7879 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7881 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7882 * scripts/data/localplt-generic.data: ... here.
7883 * elf/Makefile (check-data): Get generic file if no other.
7884 ($(objpfx)check-localplt.out): Make target unconditional.
7886 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7889 2007-08-05 Ulrich Drepper <drepper@redhat.com>
7891 * po/zh_CN.po: Updated translation from translation team.
7893 2007-08-05 Jakub Jelinek <jakub@redhat.com>
7895 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7896 Don't use CGOTSETUP and CGOTRESTORE macros.
7898 2007-08-04 Roland McGrath <roland@redhat.com>
7900 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7902 2007-08-04 Jakub Jelinek <jakub@redhat.com>
7904 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7905 __extension__ around the whole statement expression.
7907 2007-08-04 Ulrich Drepper <drepper@redhat.com>
7909 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7910 elements during initialization.
7912 * po/pl.po: Updated translation from translation team.
7913 * po/tr.po: Likewise.
7914 * po/nl.po: Likewise.
7916 2007-08-03 Ulrich Drepper <drepper@redhat.com>
7918 * rt/aio.h: Add __nonnull attributes.
7920 2007-08-03 Jakub Jelinek <jakub@redhat.com>
7922 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7923 * stdlib/Makefile (tests): Add tst-strtod5.
7924 (tst-strtod5-ENV): New.
7925 * stdlib/tst-strtod5.c: New file.
7927 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7929 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7932 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7935 2007-08-03 Jakub Jelinek <jakub@redhat.com>
7937 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7940 2007-08-02 Ulrich Drepper <drepper@redhat.com>
7942 * io/Makefile (aux): Add have_o_cloexec.
7943 * include/fcntl.h: Declare __have_o_cloexec.
7944 * io/have_o_cloexec.c: New file.
7945 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7946 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7947 fcntl call if not necessary.
7948 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7951 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7952 Avoid memset, add explicit initialization.
7953 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7954 to the end and change into zero-sized array.
7955 Move lock member to fill a hole on 64-bit platforms.
7957 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7959 * include/stdlib.h: Add __strto*_internal prototypes here.
7960 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7962 * include/wchar.h: Add __wcsto*_internal prototypes.
7963 * sysdeps/generic/inttypes.h: No need to protect the declaration
7964 of the __strto*_internal and __wcsto*_internal members here.
7966 * rt/mqueue.h: Change const to __const and add nonnull attributes.
7968 2007-08-02 Roland McGrath <roland@redhat.com>
7970 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7971 $(inst_bindir)/getconf if possible.
7973 * posix/Makefile ($(objpfx)getconf.speclist): New target.
7974 (generated): Add it.
7975 ($(inst_libexecdir)/getconf): Use it.
7977 2007-08-01 Ulrich Drepper <drepper@redhat.com>
7979 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7980 /proc is faster and sufficient. /sys is still needed for
7983 2007-08-01 Jakub Jelinek <jakub@redhat.com>
7985 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7986 syscall as __fallocate64.
7987 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7988 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7990 2007-07-30 Jakub Jelinek <jakub@redhat.com>
7992 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7995 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7996 if off_t is different rank from size_t.
7998 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7999 uw_frame_state_for): Avoid type punning warnings.
8000 * sysdeps/generic/unwind-dw2-fde-glibc.c
8001 (_Unwind_IteratePhdrCallback): Likewise.
8002 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8003 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8004 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8007 2007-07-31 Ulrich Drepper <drepper@redhat.com>
8009 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8010 total processors using sysfs.
8011 (__get_nprocs): Use sysfs to determine which processors are online.
8013 2007-07-31 Jakub Jelinek <jakub@redhat.com>
8015 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8016 syscall arguments count.
8018 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8020 2007-07-30 Roland McGrath <roland@redhat.com>
8022 * manual/libc.texinfo: Update copyrights, formatting magic, and
8023 @dircategory. From Karl Berry <karl@freefriends.org>.
8025 2007-07-29 Ulrich Drepper <drepper@redhat.com>
8028 * io/Makefile (headers): Add bits/fcntl2.h.
8030 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8032 (__CPU_EQUAL_S): Likewise.
8034 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8035 (tests): Add tst-cpuset.
8036 * posix/sched_cpualloc.c: New file.
8037 * posix/sched_cpufree.c: New file.
8038 * posix/tst-cpuset.c: New file.
8039 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8041 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8042 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8043 macros. Define CPU_*_S macros.
8045 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8047 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8051 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8052 #.0g and value rounded to 1.0.
8053 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8055 2007-07-26 Jakub Jelinek <jakub@redhat.com>
8057 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8058 for int_frac_digits and frac_digits.
8060 * login/logout.c (logout): Avoid aliasing violation.
8061 * login/logwtmp.c (logwtmp): Likewise.
8063 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8065 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8067 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8069 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8071 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8074 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8076 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8078 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8079 char * to avoid warning.
8080 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8082 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8084 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8085 allocate_arrays): Cast second argument to charmap_find_symbol
8086 to char * to avoid warnings.
8088 * locale/programs/repertoire.c (repertoire_new_char): Change
8089 from_nr, to_nr and cnt to unsigned long, adjust printf format
8092 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8093 Cast second argument to new_element to char * to avoid warnings.
8095 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8097 * intl/gettextP.h (struct loaded_domain): Change plural to const
8098 struct expression *.
8099 * intl/plural-eval.c (plural_eval): Change first argument to
8100 const struct expression *.
8101 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8102 argument to const struct expression **.
8103 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8105 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8106 in call to __gettext_free_exp.
8108 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8109 unitialized wstring/wpattern var warnings.
8111 * posix/runtests.c (struct a_test): Make data field const char *.
8113 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8114 vars if not LDBL_MANT_DIG >= 106.
8116 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8118 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8119 __find_specmb to avoid warning.
8121 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8123 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8126 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8129 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8130 tv var when it will be actually used.
8132 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8135 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8136 char array resp. pointer.
8137 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8139 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8140 to const unsigned char **.
8141 (ucs4_to_cns11643): Change second argument to unsigned char *.
8142 * iconvdata/euc-tw.c (BODY): Change endp type to
8143 const unsigned char *.
8144 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8146 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8147 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8148 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8149 types to unsigned char pointers/arrays instead of char.
8150 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8152 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8153 * iconvdata/jis0212.h: Include assert.h.
8154 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8155 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8156 of trying to handle that.
8157 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8159 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8160 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8161 two dimensional const unsigned char arrays.
8162 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8163 Initialize endp to inptr to shut up a warning.
8165 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8168 * time/strptime_l.c (__strptime_internal): Silently ignore
8169 strftime modifiers and field width in recursive calls.
8171 * include/time.h (enum ptime_locale_status): Remove.
8172 (__strptime_internal): Remove decided and era_cnt arguments,
8173 add statep argument.
8174 * time/strptime_l.c (__strptime_internal): Remove decided
8175 and era_cnt arguments, add statep argument. Don't recompute
8176 any fields in recursive calls, only update caller's tm
8177 and state, if recursive call fails, don't change tm nor
8179 (get_alt_number): Adjust.
8180 (recursive): Adjust caller.
8181 (strptime): Likewise.
8182 * time/strptime.c (strptime): Likewise.
8184 2007-07-19 Jakub Jelinek <jakub@redhat.com>
8186 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8187 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8188 if from and to charsets are the same.
8189 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8190 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8191 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8193 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8195 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8196 Don't define wint_t when __need_mbstate_t unless it
8198 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8199 in the typedef if possible.
8200 * wctype/wctype.h (wint_t): Define by including
8201 wchar.h with __need_wint_t instead of including stddef.h
8202 with __need_wint_t and as fallback definining it ourselves.
8203 * iconv/gconv.h (__need_wint_t): Define before including
8205 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8206 or _GLIBCPP_USE_WCHAR_T.
8207 (__need_wchar_t): Don't define
8208 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8209 (__need_wint_t): Don't define before including stddef.h,
8210 define before including wchar.h only if _LIBC or
8211 _GLIBCPP_USE_WCHAR_T.
8212 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8213 * sysdeps/mach/hurd/_G_config.h: Likewise.
8214 * sysdeps/generic/_G_config.h: Likewise.
8215 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8216 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8217 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8218 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8220 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8222 * sysdeps/posix/posix_fallocate64.c: Undefine
8223 __posix_fallocate64_l64 before alias handling.
8224 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8225 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8226 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8227 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8229 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8231 2007-07-23 Jakub Jelinek <jakub@redhat.com>
8233 * locale/programs/ld-collate.c (atwc): New variable.
8234 (add_to_tablewc): New toplevel function, moved from collate_output.
8235 (collate_output): Remove add_to_tablewc nested function.
8237 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8238 (name_insert): New function.
8239 (write_output): Remove hash_table and hash_size vars and name_insert
8242 2007-07-24 Roland McGrath <roland@redhat.com>
8244 * Makerules (install-others-programs-nosubdir): New target.
8245 (install-no-libc.a-nosubdir): Depend on it.
8247 * iconv/Makefile (install-others-programs): Set this instead of
8249 * login/Makefile (install-others-programs): Likewise.
8250 * posix/Makefile (install-others-programs): Likewise.
8252 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8255 2007-07-23 Ulrich Drepper <drepper@redhat.com>
8257 * io/Makefile (tests): Add tst-posix_fallocate.
8258 * io/tst-posix_fallocate.c: New file.
8260 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8263 2007-07-22 Roland McGrath <roland@frob.com>
8265 * hurd/getdport.c: Add missing copyright year update.
8267 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8268 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8270 2007-07-22 Ulrich Drepper <drepper@redhat.com>
8272 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8274 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8275 O_CLOEXEC is needed.
8276 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8277 Avoid additional fcntl to set O_CLOEXEC if not needed.
8278 * nis/nss_compat/compat-initgroups.c: Likewise.
8279 * nis/nss_compat/compat-pwd.c: Likewise.
8280 * nis/nss_compat/compat-spwd.c: Likewise.
8282 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8285 * manual/errno.texi: Change ECANCELED value to 119.
8288 * mach/lock-intern.h: Include <sys/cdefs.h>.
8291 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8295 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8298 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8300 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8302 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8304 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8306 2007-07-21 Ulrich Drepper <drepper@redhat.com>
8308 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8309 descriptor received from nscd.
8311 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8313 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8314 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8315 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8316 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8317 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8318 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8320 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8323 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8326 * login/forkpty.c (forkpty): Close master and slave fds on
8327 fork failure. Patch by
8328 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8330 2007-07-18 Jakub Jelinek <jakub@redhat.com>
8332 * include/features.h (__USE_ISOC95): New define.
8333 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8334 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8335 for -std=iso9899:199409.
8336 * CONFORMANCE: Remove comments about unsupported AMD1.
8338 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8340 * sysdeps/ia64/sched_cpucount.c: New file.
8341 * sysdeps/powerpc/sched_cpucount.c: New file.
8343 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8344 __BEGIN_DECLS/__END_DECLS around the prototype.
8345 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
8346 pointer to const cpu_set_t.
8348 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8349 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8350 __need_size_t and include stddef.h.
8351 * sysvipc/sys/msg.h: Likewise.
8352 * posix/sched.h: Likewise.
8353 * hurd/hurd/signal.h (__need_size_t): Define.
8355 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8356 neither does signal.h in pedantic ISO C namespaces. stdio.h
8357 no longer defines wint_t or wchar_t.
8359 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8360 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8361 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8362 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8363 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8364 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8365 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8366 * debug/printf_chk.c (__printf_chk): Likewise.
8367 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8368 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8370 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8373 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8374 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8376 2007-07-16 Jakub Jelinek <jakub@redhat.com>
8379 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8380 * malloc/malloc.h (realloc): Likewise.
8382 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8383 if one of proc_file_chain streams has that fileno.
8384 * stdio-common/Makefile (tests): Add tst-popen2.
8385 * stdio-common/tst-popen2.c: New test.
8387 2007-07-14 Jakub Jelinek <jakub@redhat.com>
8389 * elf/ldconfig.c: Allow GPLv2 or any later version.
8390 * elf/readlib.c: Likewise.
8391 * elf/chroot_canon.c: Likewise.
8392 * elf/cache.c: Likewise.
8393 * nscd/mem.c: Likewise.
8394 * nscd/getpwuid_r.c: Likewise.
8395 * nscd/grpcache.c: Likewise.
8396 * nscd/aicache.c: Likewise.
8397 * nscd/getsrvbynm_r.c: Likewise.
8398 * nscd/nscd.c: Likewise.
8399 * nscd/servicescache.c: Likewise.
8400 * nscd/getsrvbypt_r.c: Likewise.
8401 * nscd/initgrcache.c: Likewise.
8402 * nscd/gethstbyad_r.c: Likewise.
8403 * nscd/gethstbynm2_r.c: Likewise.
8404 * nscd/getgrnam_r.c: Likewise.
8405 * nscd/nscd_setup_thread.c: Likewise.
8406 * nscd/getpwnam_r.c: Likewise.
8407 * nscd/gai.c: Likewise.
8408 * nscd/connections.c: Likewise.
8409 * nscd/dbg_log.c: Likewise.
8410 * nscd/cache.c: Likewise.
8411 * nscd/hstcache.c: Likewise.
8412 * nscd/nscd_conf.c: Likewise.
8413 * nscd/getgrgid_r.c: Likewise.
8414 * nscd/pwdcache.c: Likewise.
8415 * catgets/gencat.c: Likewise.
8416 * locale/programs/linereader.h: Likewise.
8417 * locale/programs/locarchive.c: Likewise.
8418 * locale/programs/ld-paper.c: Likewise.
8419 * locale/programs/locfile-kw.h: Likewise.
8420 * locale/programs/ld-address.c: Likewise.
8421 * locale/programs/xmalloc.c: Likewise.
8422 * locale/programs/ld-time.c: Likewise.
8423 * locale/programs/localedef.c: Likewise.
8424 * locale/programs/simple-hash.c: Likewise.
8425 * locale/programs/xstrdup.c: Likewise.
8426 * locale/programs/ld-numeric.c: Likewise.
8427 * locale/programs/locfile-kw.gperf: Likewise.
8428 * locale/programs/ld-collate.c: Likewise.
8429 * locale/programs/charmap-kw.gperf: Likewise.
8430 * locale/programs/charmap.h: Likewise.
8431 * locale/programs/charmap-kw.h: Likewise.
8432 * locale/programs/config.h: Likewise.
8433 * locale/programs/locfile.c: Likewise.
8434 * locale/programs/ld-ctype.c: Likewise.
8435 * locale/programs/charmap.c: Likewise.
8436 * locale/programs/ld-messages.c: Likewise.
8437 * locale/programs/repertoire.h: Likewise.
8438 * locale/programs/locale.c: Likewise.
8439 * locale/programs/ld-name.c: Likewise.
8440 * locale/programs/linereader.c: Likewise.
8441 * locale/programs/locfile.h: Likewise.
8442 * locale/programs/3level.h: Likewise.
8443 * locale/programs/ld-monetary.c: Likewise.
8444 * locale/programs/ld-measurement.c: Likewise.
8445 * locale/programs/charmap-dir.c: Likewise.
8446 * locale/programs/ld-identification.c: Likewise.
8447 * locale/programs/localedef.h: Likewise.
8448 * locale/programs/charmap-dir.h: Likewise.
8449 * locale/programs/repertoire.c: Likewise.
8450 * locale/programs/simple-hash.h: Likewise.
8451 * locale/programs/ld-telephone.c: Likewise.
8452 * locale/programs/locale-spec.c: Likewise.
8453 * locale/programs/locfile-token.h: Likewise.
8454 * posix/getconf.c: Likewise.
8455 * iconv/dummy-repertoire.c: Likewise.
8456 * iconv/iconv_charmap.c: Likewise.
8457 * iconv/iconvconfig.c: Likewise.
8458 * iconv/iconv_prog.c: Likewise.
8459 * malloc/memusagestat.c: Likewise.
8460 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8462 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8464 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8465 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8466 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8467 check for the first argument.
8469 2007-07-12 Jakub Jelinek <jakub@redhat.com>
8472 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8473 (__tgmath_real_type): Fix if expr is const int or other const
8474 qualified integral type.
8475 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8476 expressions and handle const qualified arguments.
8477 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8478 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8479 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8480 statement expressions.
8481 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8482 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8483 (__TGMATH_UNARY_IMAG): Define.
8484 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8485 * math/Makefile (tests): Add test-tgmath2.
8486 (CFLAGS-test-tgmath2.c): Add.
8487 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8488 count_cfloat, count_cldouble): New variables.
8490 (main): Check number of complex calls as well.
8491 (F(compile_test)): Add complex tests and tests with const qualified
8493 (y, z, ccount): Define.
8494 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8495 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8496 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8497 F(cproj)): New functions.
8498 * math/test-tgmath2.c: New test.
8500 2007-07-11 Jakub Jelinek <jakub@redhat.com>
8503 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8504 RPATH etc. as "/" rather than "", don't segfault on empty paths,
8506 * dlfcn/Makefile (distribute): Add glreflib3.c.
8507 (module-names): Add glreflib3.
8508 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8510 (LDFLAGS_glreflib3.so): New.
8511 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8513 * dlfcn/glreflib3.c: New file.
8515 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8516 returned -1, return NULL.
8517 * intl/explodename.c (_nl_explode_name): Return -1 if
8518 _nl_normalize_codeset failed.
8520 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
8522 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8523 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
8524 and avoid branch misspredicts for > 31 bytes memset case.
8525 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8526 Remove toc ref to __cache_line_size.
8528 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8529 to get ISA-V2.0 branch hints.
8530 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8531 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8532 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8533 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8534 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8535 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8536 Remove toc ref to __cache_line_size.
8538 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8539 Include math_ldbl_opt.h.
8541 2007-07-10 Ulrich Drepper <drepper@redhat.com>
8544 * time/strptime_l.c (__strptime_internal): Implement greedy
8545 matching of weekday and month names.
8547 2007-07-09 Roland McGrath <roland@redhat.com>
8549 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8550 (ELF_NOTE_ABI): Use it.
8551 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8553 2007-07-09 Ulrich Drepper <drepper@redhat.com>
8555 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8556 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8558 2007-07-07 Ulrich Drepper <drepper@redhat.com>
8561 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8562 in loop to look for conversion specifier to avoid testing of
8564 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8565 * stdio-common/bug18.c: New file.
8566 * stdio-common/bug18a.c: New file.
8567 * stdio-common/bug19.c: New file.
8568 * stdio-common/bug19a.c: New file.
8570 2007-07-05 Mike Frysinger <vapier@gentoo.org>
8572 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8575 2007-07-01 Jakub Jelinek <jakub@redhat.com>
8577 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8578 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8579 Return NULL if mmap failed instead of asserting it does not.
8580 (calloc): Check for integer overflow.
8582 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8585 2007-07-03 Jakub Jelinek <jakub@redhat.com>
8588 * nis/nss-default.c: Include errno.h.
8589 (init): Preserve errno.
8591 2007-07-02 Ulrich Drepper <drepper@redhat.com>
8593 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8595 2007-06-30 Ulrich Drepper <drepper@redhat.com>
8597 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8599 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8601 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8603 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8605 * sysdeps/s390/dl-procinfo.c: New file.
8606 * sysdeps/s390/dl-procinfo.h: New file.
8607 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8609 2007-06-29 Jakub Jelinek <jakub@redhat.com>
8611 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8612 in PT_NOTE segments with multiple notes.
8613 * elf/readelflib.c (process_elf_file): Likewise.
8615 2007-06-22 Ulrich Drepper <drepper@redhat.com>
8617 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8620 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8622 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8624 2007-06-13 Jakub Jelinek <jakub@redhat.com>
8626 * include/link.h: Don't include rtld-lowlevel.h.
8627 (struct link_map): Remove l_scope_lock.
8628 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8629 (_dl_scope_free_list): New field (variable) in _rtld_global.
8630 (DL_LOOKUP_SCOPE_LOCK): Remove.
8631 (_dl_scope_free): New prototype.
8632 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8633 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8634 (_dl_profile_fixup): Likewise.
8635 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8636 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8637 THREAD_GSCOPE_RESET_FLAG around it.
8638 * elf/dl-close.c (_dl_close_worker): Don't use
8639 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8640 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8641 scopes were queued or if l_scope_mem has been abandoned.
8642 * elf/dl-open.c (_dl_scope_free): New function.
8643 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8644 * elf/dl-support.c (_dl_scope_free_list): New variable.
8645 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8646 Remove DL_LOOKUP_SCOPE_LOCK handling.
8647 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8649 * elf/dl-object.c (_dl_new_object): Don't use
8650 __rtld_mrlock_initialize.
8652 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8654 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8656 (rtld_global_ro): Likewise.
8658 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8660 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8661 Move PT_LOAD checking to...
8662 (_dl_addr_inside_object): ... here, new function.
8663 * elf/dl-sym.c (do_sym): If not l_contiguous,
8664 call _dl_addr_inside_object.
8665 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8666 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8667 * elf/dl-open.c (dl_open_worker): Likewise.
8668 (_dl_addr_inside_object): New function if IS_IN_rtld.
8669 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8670 holes are present or are PROT_NONE protected.
8671 * include/link.h (struct link_map): Add l_contiguous field.
8672 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8674 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8675 Tomas Janousek <tjanouse@redhat.com>
8676 Ulrich Drepper <drepper@redhat.com>
8679 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
8680 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8682 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
8683 unused member a bitmap.
8684 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8685 servers are configured.
8687 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8689 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8691 2007-06-17 Andreas Schwab <schwab@suse.de>
8693 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8695 2007-06-16 Andreas Jaeger <aj@suse.de>
8698 * sysdeps/unix/sysv/linux/sys/ptrace.h
8699 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8700 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8701 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8702 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8703 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8705 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8706 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8707 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8708 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8710 2007-06-16 Ulrich Drepper <drepper@redhat.com>
8713 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8714 determining whether there are IPv4/IPv6 addresses, ignore loopback
8717 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8719 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8720 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8721 as the return type. Change type of "r" variable to CMPtype.
8722 * soft-fp/eqsf2.c (__eqsf2): Likewise.
8723 * soft-fp/eqtf2.c (__eqtf2): Likewise.
8724 * soft-fp/gedf2.c (__gedf2): Likewise.
8725 * soft-fp/gesf2.c (__gesf2): Likewise.
8726 * soft-fp/getf2.c (__getf2): Likewise.
8727 * soft-fp/ledf2.c (__ledf2): Likewise.
8728 * soft-fp/lesf2.c (__lesf2): Likewise.
8729 * soft-fp/letf2.c (__letf2): Likewise.
8730 * soft-fp/unorddf2 (__unorddf2): Likewise.
8731 * soft-fp/unordsf2 (__unordsf2): Likewise.
8732 * soft-fp/unordtf2 (__unordtf2): Likewise.
8734 2007-06-09 Ulrich Drepper <drepper@redhat.com>
8736 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8737 make sure gcc doesn't mess around with this.
8739 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8741 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8743 2007-06-08 Jakub Jelinek <jakub@redhat.com>
8745 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8746 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8747 at most once per _dl_close_worker.
8749 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8751 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8752 __sched_cpucount as const.
8753 * posix/sched_cpucount.c: Adjust.
8755 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8756 instruction for counting bits.
8757 * sysdeps/x86_64/sched_cpucount.c: New file.
8759 2007-06-07 Ulrich Drepper <drepper@redhat.com>
8761 * configure.in: Avoid variable named BASH.
8762 * config.make.in: Likewise.
8763 Patch in part by Mike Frysinger.
8765 2007-06-06 Jakub Jelinek <jakub@redhat.com>
8768 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8769 pseudo-zeros as zero.
8770 * sysdeps/x86_64/ldbl2mpn.c: New file.
8771 * sysdeps/ia64/ldbl2mpn.c: New file.
8773 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8775 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8776 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8777 Remove unreachable code at the end.
8779 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8781 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8782 ldbl-128ibm in comment.
8783 (fpclassifyl): Correct classification of denormals.
8784 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8785 return value for MIN denormal. Rewrite using long double math too
8786 correctly handle denormals and canonicalize the results.
8788 2007-06-05 Jakub Jelinek <jakub@redhat.com>
8790 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8791 (__mpn_construct_long_double): Fix conversion where result ought
8792 to be smaller than __LDBL_MIN__, or the low double should be
8793 denormal. Fix decision where to negate low double - honor round
8795 * stdio-common/tst-sprintf2.c: Include string.h.
8796 (COMPARE_LDBL): Define.
8797 (TEST): Also test whether a string hexadecimal float representation
8798 can be parsed back to the number.
8799 (main): Add a couple of further tests.
8801 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8803 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8804 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8805 is non-zero, but smaller than 2 * __DBL_MIN__.
8806 * stdio-common/tst-sprintf2.c: New test.
8807 * stdio-common/Makefile (tests): Add tst-sprintf2.
8809 * math/test-misc.c (main): Don't run last batch of tests with
8810 IBM long double format.
8812 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8814 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8815 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8816 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8817 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8818 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8819 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8820 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8821 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8822 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8823 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8847 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8849 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8850 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8851 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8852 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8853 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8854 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8855 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8856 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8858 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
8860 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8861 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8862 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8863 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8864 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8865 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8866 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8867 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8869 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8871 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8872 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8873 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8874 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8876 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
8878 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8879 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8881 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
8883 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8884 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8885 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8886 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8888 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
8890 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8891 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8893 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8895 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8896 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8898 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8899 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8900 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8901 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8903 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
8905 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8906 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8907 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8908 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8910 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
8912 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8913 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8914 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8915 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8916 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8917 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8919 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8921 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8922 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8923 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8924 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8926 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
8928 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8929 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8930 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8931 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8932 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8933 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8934 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8935 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8936 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8937 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8938 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8939 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8940 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8941 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8942 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8943 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8945 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8947 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8948 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8950 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8952 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8953 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8955 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8957 * sysdeps/powerpc/powerpc32/970/Implies: New file.
8958 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8959 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8960 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8961 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8962 * sysdeps/powerpc/powerpc64/970/Implies: New file.
8963 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8964 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8965 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8966 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8968 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8970 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8972 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
8974 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8975 branch miss-predicts. Ensure that cache line crossing does not impact
8978 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
8980 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8981 "../../powerpc32/power4/memcopy.h".
8982 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8983 "../../powerpc32/power4/wordcopy.c".
8985 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8987 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8988 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8989 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8990 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8991 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8992 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8994 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
8996 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8998 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9000 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9001 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9002 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9003 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9004 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9005 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9006 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9007 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9009 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9011 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9013 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9015 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9016 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9017 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9018 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9019 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9020 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9021 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9023 2007-05-29 Roland McGrath <roland@redhat.com>
9025 * po/Makefile (po-sed-cmd): New variable.
9026 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9028 2007-05-29 Ulrich Drepper <drepper@redhat.com>
9030 * crypt/md5-crypt.c: Fix comment.
9032 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9033 of crashing. When this is the case or if the reply is malformed,
9034 don't try to close the new file descriptor since it does not
9036 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9038 2007-05-28 Jakub Jelinek <jakub@redhat.com>
9040 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9041 if __NR_utimensat is not defined.
9043 2007-05-26 Ulrich Drepper <drepper@redhat.com>
9045 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9047 2007-05-25 Jakub Jelinek <jakub@redhat.com>
9049 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9050 (open): Fix comment typos. Don't call __open_2 if flags
9051 is a compile time constant without O_CREAT.
9052 (__open64_2): Add nonnull attribute.
9053 (open64): Fix comment typos. Don't call __open64_2 if flags
9054 is a compile time constant without O_CREAT.
9055 (__openat_2): Add nonnull attribute, fix nonnull attribute
9057 (openat): Fix comment typos. Don't call __openat_2 if flags
9058 is a compile time constant without O_CREAT.
9059 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9061 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9062 is a compile time constant without O_CREAT.
9064 2007-05-24 Ulrich Drepper <drepper@redhat.com>
9066 * Makerules (sysd-rules): Define PTW for ptw-* files.
9067 * Versions: Define GLIBC_2.7 for libc.
9068 * include/stdio.h: Declare __fortify_fail.
9069 * debug/fortify_fail.c: New file.
9070 * debug/Makefile (routines): Add fortify_fail.
9071 * debug/chk_fail.c: Use __fortify_fail.
9072 * debug/stack_chk_fail.c: Likewise.
9073 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9074 __openat64_2 for GLIBC_2.7.
9075 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9076 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9077 and fails if necessary.
9078 * io/open64.c: Likewise.
9079 * io/openat.c: Likewise.
9080 * io/openat64.c: Likewise.
9081 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9082 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9083 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9084 * io/bits/fcntl2.h: New file.
9085 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9087 * include/bits/fcntl2.h: New file.
9088 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9090 * sysdeps/unix/sysv/linux/open_2.c: New file.
9092 2007-05-21 Ulrich Drepper <drepper@redhat.com>
9094 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9095 as second parameter to handle_intel.
9097 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9100 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9102 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9103 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9105 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9106 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9107 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9109 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9111 2007-05-21 Jakub Jelinek <jakub@redhat.com>
9114 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9115 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9116 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9118 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9121 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9122 reinitialize workend at the start of each do_positional format spec
9123 loop, free workstart before do_positional loops.
9124 (printf_unknown): Fix size of work_buffer.
9125 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9127 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9128 (public_sET_STATe): If ms->version < 3, put all chunks into
9129 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9132 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9133 * malloc/hooks.c: Likewise.
9134 * malloc/arena.c: Likewise.
9135 * malloc/malloc.c (do_check_malloc_state): Don't assert
9136 n_mmaps is not greater than n_mmaps_max. This removes the need
9137 for the previous change.
9139 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9142 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9144 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9145 Define for kernel >= 2.6.22.
9147 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9149 * elf/dl-close.c (_dl_close_worker): When removing object from
9150 global scope, wait for all lookups to finish afterwards.
9151 * elf/dl-open.c (add_to_global): When global scope array must
9152 grow, allocate a new one and free old array only after all
9154 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9155 (_dl_lookup_symbol_x): Likewise.
9156 * elf/dl-support.c: Define _dl_wait_lookup_done.
9157 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9158 _dl_wait_lookup_done.
9160 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9161 not overlapping with arena.
9163 * malloc/mcheck.c (reallochook): If size==0, free the block.
9165 * rt/tst-shm.c: Use fstat64 instead of fstat.
9167 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9168 __NR_sync_file_range is not defined.
9170 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9172 Dummy files to prevent stub versions from being used.
9173 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9174 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9175 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9176 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9178 * version.h (VERSION): Set to 2.6.90.
9180 2007-05-14 Ulrich Drepper <drepper@redhat.com>
9182 * version.h (VERSION): Define to 2.6.
9183 * include/features.h (__GLIBC_MINOR__): Define to 6.
9185 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9187 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9190 2007-05-13 Ulrich Drepper <drepper@redhat.com>
9192 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9193 number of mmaps. n_mmaps_max is the target.
9194 * malloc/hooks.c: Likewise.
9195 * malloc/arena.c: Likewise.
9197 2007-05-12 Andreas Jaeger <aj@suse.de>
9199 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9202 2007-05-11 Ulrich Drepper <drepper@redhat.com>
9204 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9205 adding new variables.
9207 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9208 optimize. Completely extend global scope array before making the
9209 new entries visible.
9211 2007-05-10 Ulrich Drepper <drepper@redhat.com>
9213 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9214 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9217 * include/link.h: Move l_version and l_nversion members around to
9220 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9222 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9223 (__sched_setaffinity_new): If syscall was successful and
9224 RESET_VGETCPU_CACHE is defined, use it before returning.
9225 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9227 * io/sys/stat.h: Make sure struct timespec is defined for
9230 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9232 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9233 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9234 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9235 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9236 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9237 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9238 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9239 * io/sys/stat.h: Declare utimensat, futimens.
9240 * io/utimensat.c: New file.
9241 * io/futimens.c: New file.
9242 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9243 * sysdeps/unix/sysv/linux/futimens.c: New file.
9244 * io/Makefile (routines): Add utimensat, futimens.
9245 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9246 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9247 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9250 * include/sys/cdefs.h: Redefine __nonnull so that test for
9251 incorrect parameters in the libc code itself are not omitted.
9253 2006-07-02 Jakub Jelinek <jakub@redhat.com>
9255 * nscd/connections.c (sighup_pending): New variable.
9256 (nscd_run): If sighup_pending, prune all 3 caches.
9257 (sighup_handler): Don't prune caches here, rather just set
9258 sighup_pending flag.
9260 2007-05-09 Jakub Jelinek <jakub@redhat.com>
9262 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9263 exception in addition to inexact when asked to raise only FE_INEXACT.
9266 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9269 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9272 * string/strfry.c (strfry): Make result more random.
9274 2007-05-07 Richard Henderson <rth@redhat.com>
9276 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9277 if __NO_LONG_DOUBLE_MATH.
9278 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9279 available in the compiler, add .arch directive to the assembly.
9281 2007-05-07 Jakub Jelinek <jakub@redhat.com>
9283 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9284 compat_symbol to GLIBC_2_1.
9285 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9286 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9287 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9288 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9289 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9290 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9291 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9293 (__isnanl): New compat_symbol.
9295 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9296 Jakub Jelinek <jakub@redhat.com>
9298 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9299 (new_heap): Initialize mprotect_size.
9300 (grow_heap): When growing, only mprotect from mprotect_size till
9301 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9302 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9304 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
9305 Peter Bergner <bergner@us.ibm.com>
9307 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9308 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9309 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9310 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9311 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9312 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9313 Call __fe_mask_env() if all FP exceptions disabled.
9314 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9315 from old FPSCR to new fenv to propagate DFP rounding modes.
9316 Call __fe_mask_env() if FP exceptions previously enabled.
9317 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9318 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9319 transitioning from all exceptions disabled to any exception enabled
9321 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9322 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9323 when transitioning from all exceptions disabled to any exception
9324 enabled or visa versa.
9325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9332 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9335 * posix/unistd.h: Remove __THROW from fdatasync.
9337 2007-05-06 Mike Frysinger <vapier@gentoo.org>
9340 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9342 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9344 * stdio-common/vfprintf.c (process_string_arg): Optimize
9345 ridiculous precision in wide char code printing multi-byte string.
9346 Reported by Jim Meyering <jim@meyering.net>.
9349 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9350 boundaries to work around systems with overlapping binary loading.
9351 Based on a patch by Suzuki <suzuki@in.ibm.com>.
9353 2007-05-04 Ulrich Drepper <drepper@redhat.com>
9355 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9356 __mbsnrtowcs after last change.
9358 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9359 (get_ident): Likewise.
9361 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9363 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9364 with setting the sticky bit.
9365 * math/test-misc.c (main): Add more truncation tests.
9367 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
9369 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9370 double in the function declaration.
9371 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9372 double in the function declaration.
9373 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9374 float in the function declaration.
9375 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9376 float in the function declaration.
9378 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9379 denormal operands. Do not generate FP_EX_DENORM exception.
9380 (FP_UNPACK_RAW_EP): Ditto.
9381 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9382 undefined _FP_UNPACK_RAW_E.
9383 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9384 undefined _FP_UNPACK_RAW_EP.
9385 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9386 undefined _FP_PACK_RAW_E.
9387 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9388 undefined _FP_PACK_RAW_EP.
9390 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9392 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9395 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
9396 Jakub Jelinek <jakub@redhat.com>
9398 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9399 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
9401 * soft-fp/op-common.h (FP_TRUNC): Ditto.
9403 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9405 * math/test-misc.c (main): Add tests for rounding long double
9406 values close to smallest double denormalized value to double.
9408 2007-04-30 Joseph Myers <joseph@codesourcery.com>
9410 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9411 condition for truncating to 0. Set sticky bit for such
9414 2007-05-02 Jakub Jelinek <jakub@redhat.com>
9416 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9417 fixed length array for ignore.
9419 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9422 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9423 stack for large precisions.
9424 * stdio-common/test-vfprintf.c (main): Add test for large
9427 2007-04-30 Jakub Jelinek <jakub@redhat.com>
9429 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9431 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9434 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9435 account in the size check.
9436 * resolv/tst-inet_ntop.c: New test.
9437 * resolv/Makefile (tests): Add tst-inet_ntop.
9439 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9440 Jakub Jelinek <jakub@redhat.com>
9443 * malloc/malloc.c: Keep separate list for first blocks on the bin
9444 lists with a given size. This helps skipping over list elements
9445 we know won't fit in two places.
9446 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9448 2007-04-28 Ulrich Drepper <drepper@redhat.com>
9451 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9452 label to Teredo tunnel addresses 2001://32.
9454 2007-04-27 Ulrich Drepper <drepper@redhat.com>
9456 * locale/programs/ld-collate.c (collate_read): Allow order_start
9459 * locale/programs/ld-collate.c (collate_read): Fix printing of
9463 * locale/C-translit.h.in: Add entry for U2044.
9466 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9467 hexa-decimal floats without exponent.
9468 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9470 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9472 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9473 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9474 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9475 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9477 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9480 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9482 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9483 of 0 after the out_fail label.
9485 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9488 * iconv/gconv_charset.h (strip): Allow ':'.
9489 * iconv/iconv_open.c (iconv_open): Adjust comment.
9491 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9493 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9496 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9499 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9500 alignment of buffer and tmp_buffer.
9501 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9502 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9503 alignment of buffer.
9504 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
9505 bigger than INT_MAX.
9506 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
9507 h_errnop arguments. Fail if buflen is too small.
9508 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9510 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9513 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9514 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
9516 2007-04-22 Roland McGrath <roland@redhat.com>
9518 * elf/elf.h (NT_PRXFPREG): New macro.
9520 2007-04-19 Andreas Jaeger <aj@suse.de>
9523 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9524 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9527 2007-04-19 Ulrich Drepper <drepper@redhat.com>
9529 * include/sys/mman.h: Mark madvise hidden.
9530 * misc/madvise.c: Add libc_hidden_def.
9532 2007-04-06 Jakub Jelinek <jakub@redhat.com>
9534 * nis/nis_domain_of.c (__nis_domain_of): New function.
9535 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9536 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9537 * nis/nis_call.c (rec_dirsearch): Likewise.
9538 (first_shoot): Likewise. Remove search_parent_first argument.
9539 (struct nis_server_cache): Rename search_parent_first field
9541 (nis_server_cache_search, nis_server_cache_add): Rename
9542 search_parent_first argument to search_parent.
9543 (__nisfind_server): Likewise. If search_parent, call
9546 2007-04-18 Ulrich Drepper <drepper@redhat.com>
9548 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9550 2007-04-17 Ulrich Drepper <drepper@redhat.com>
9553 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9555 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9557 * locale/programs/locarchive.c (add_alias, insert_name): Remove static.
9559 2007-04-16 Ulrich Drepper <drepper@redhat.com>
9562 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9564 2007-04-15 Jakub Jelinek <jakub@redhat.com>
9566 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9567 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9568 current number of locales in SUPPORTED.
9569 (create_archive): Initialize serial.
9570 (enlarge_archive): Preserve aliases rather than duplicating
9573 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9575 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9576 after _IO_un_link, not before it.
9578 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9579 special case handling when wcp == wstartp + 1. Fix a comment typo.
9580 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9582 2007-03-30 Jakub Jelinek <jakub@redhat.com>
9584 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9585 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9586 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9588 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9589 _IO_file_xsgetn_maybe_mmap): Likewise.
9590 * libio/oldfileops.c (old_do_write): Likewise.
9591 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9592 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9593 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9594 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9595 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9596 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9597 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9598 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9599 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9600 _IO_file_underflow, _IO_file_underflow_mmap,
9601 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9602 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9603 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9604 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9605 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9606 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9607 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9608 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9609 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9610 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9611 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9612 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9613 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9614 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9615 _IO_adjust_column_internal, _IO_default_uflow_internal,
9616 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9617 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9618 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9619 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9620 _IO_file_close_it_internal, _IO_file_underflow_internal,
9621 _IO_file_overflow_internal, _IO_file_attach_internal,
9622 _IO_file_fopen_internal, _IO_file_sync_internal,
9623 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9624 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9625 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9626 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9627 _IO_seekpos_unlocked): Likewise.
9628 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9629 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9631 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9633 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9634 argument in xmalloc size computation.
9636 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9638 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9639 math_opt_barrier and math_force_eval macros.
9641 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9644 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9645 * sysdeps/i386/fpu/math_private.h: New file.
9646 * sysdeps/x86_64/fpu/math_private.h: New file.
9647 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9648 math_force_eval macros. Use "+m" constraint on asm rather than
9650 * math/s_nextafter.c (__nextafter): Likewise.
9651 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9653 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9654 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9655 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9656 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9657 math_opt_barrier and math_force_eval macros.
9658 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9659 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9660 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9661 (__nexttoward): Use math_opt_barrier and
9662 math_force_eval macros. Use "+m" constraint on asm rather than
9663 "=m" and "m". Only use asm to force double result if
9664 FLT_EVAL_METHOD is 2.
9665 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9666 (__nexttowardf): Use math_opt_barrier and
9667 math_force_eval macros. Use "+m" constraint on asm rather than
9668 "=m" and "m". Only use asm to force double result if
9669 FLT_EVAL_METHOD is not 0.
9670 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9671 (__nexttowardf): Use math_opt_barrier and
9672 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9673 x to float using asm.
9674 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9675 (__nldbl_nexttowardf): Use math_opt_barrier and
9676 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9677 x to float using asm.
9678 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9679 (__nexttowardf): Use math_opt_barrier and math_force_eval
9680 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
9681 * math/bug-nextafter.c (zero, inf): New variables.
9682 (main): Add new tests.
9683 * math/bug-nexttoward.c (zero, inf): New variables.
9684 (main): Add new tests.
9686 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9689 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9690 exceptions both in SW and MXCSR.
9691 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9692 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9693 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9694 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9695 in MXCSR if SSE is available.
9696 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9698 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9700 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9701 Return 0 rather than 1.
9702 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9703 Remove incorrect part of a comment. Fix argument to feraiseexcept.
9704 * math/test-fenv.c (feholdexcept_tests): New function.
9707 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9710 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9713 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9716 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9717 Reported by David Anderson <davea42@earthlink.net>.
9719 2007-04-07 Ulrich Drepper <drepper@redhat.com>
9721 * posix/sys/wait.h: Remove unnecessary forward declaration.
9723 2007-04-05 Jakub Jelinek <jakub@redhat.com>
9725 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9726 with obj->do_servers after first_shoot.
9728 2007-04-03 Ulrich Drepper <drepper@redhat.com>
9730 * posix/Makefile (routines): Add sched_cpucount.
9731 (tests): Add tst-cpucount.
9732 * posix/sched_cpucount.c: New file.
9733 * posix/tst-cpucount.c: New file.
9734 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9735 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
9736 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9737 * posix/sched.h: Define CPU_COUNT.
9739 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9741 * posix/fnmatch.c (STRUCT): Define.
9742 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9743 * posix/fnmatch_loop.c (struct STRUCT): New type.
9744 (FCT): Add ends argument. If ends != NULL and normal * is
9745 seen in the pattern, store current pattern and string pointers
9746 and return. Adjust recursive calls.
9747 (EXT): Adjust FCT callers.
9748 (STRUCT): Undef at the end of the file.
9749 * posix/Makefile (tests): Add tst-fnmatch2.
9750 * posix/tst-fnmatch2.c: New test.
9752 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9754 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9757 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9758 Change last argument to unsigned int.
9760 2007-03-23 Jakub Jelinek <jakub@redhat.com>
9762 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9764 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9766 * config.h.in (HAVE_LIBCAP): Add.
9767 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9769 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9770 free_caps. Cast away const from 4th cap_set_flag argument.
9772 2007-03-26 Ulrich Drepper <drepper@redhat.com>
9774 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9776 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9777 Add sync_file_range.
9778 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9780 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9782 * sysdeps/powerpc/bits/atomic.h
9783 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9784 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9785 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9786 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9787 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9788 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9789 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9790 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9791 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9792 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9793 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9794 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9795 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9796 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9797 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9798 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9799 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9800 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9801 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9802 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9804 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9806 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9807 (__cache_line_size): Define the variable here. Add
9808 attribute_hidden, remove weak_extern.
9809 (__libc_start_main): Set __cache_line_size
9811 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9812 (__cache_line_size): Define the variable here. Add
9813 attribute_hidden, remove weak_extern.
9814 (DL_PLATFORM_AUXV): Set __cache_line_size
9816 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9817 weak_extern, add attribute_hidden.
9818 (__elf_machine_runtime_setup): Assume __cache_line_size is always
9820 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9822 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9824 2007-03-26 Jakub Jelinek <jakub@redhat.com>
9827 * timezone/africa: Update from tzdata2007d.
9828 * timezone/asia: Likewise.
9829 * timezone/australasia: Likewise.
9830 * timezone/backward: Likewise.
9831 * timezone/europe: Likewise.
9832 * timezone/iso3166.tab: Likewise.
9833 * timezone/leapseconds: Likewise.
9834 * timezone/northamerica: Likewise.
9835 * timezone/southamerica: Likewise.
9836 * timezone/zone.tab: Likewise.
9838 * timezone/private.h: Update from tzcode2007d.
9839 * timezone/zdump.c: Likewise.
9840 * timezone/zic.c: Likewise.
9842 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9844 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9845 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9847 (nis_server_cache_search, nis_server_cache_add): New functions.
9848 (__nisfind_server): Use them. Add dbp and flags argument, if
9849 call __nisbind_create.
9850 (__nisbind_create): Add server_used and current_ep arguments,
9851 only call __nis_findfastest if server_used is ~0.
9852 (__do_niscall2, __prepare_niscall): Adjust callers.
9853 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9854 ckey_cache_euid, ckey_cache_lock): New variables.
9855 (get_ckey): New function.
9856 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9857 __pmap_getnisport. Save __pmap_getnisport result in
9858 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
9860 * nis/nis_lookup.c (nis_lookup): Likewise.
9861 * nis/nis_table.c (nis_list): Likewise.
9862 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9865 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9866 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9867 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9868 _nss_nisplus_getservbyport_r): Likewise.
9869 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9870 _nss_nisplus_getnetbyaddr_r): Likewise.
9871 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9872 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9873 _nss_nisplus_getntohost_r): Likewise.
9874 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9875 _nss_nisplus_getrpcbynumber_r): Likewise.
9877 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9879 * configure.in (libc_cv_gnu89_inline): Only do compile test.
9880 * configure: Rebuilt.
9882 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9884 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9886 2006-06-07 Joseph Myers <joseph@codesourcery.com>
9889 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9892 2007-03-18 Jakub Jelinek <jakub@redhat.com>
9894 * nscd/gai.c: Include alloca.h.
9895 (__libc_use_alloca): Define.
9897 2007-03-16 Jakub Jelinek <jakub@redhat.com>
9899 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9901 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9902 (DL_DST_REQUIRED): Adjust user.
9904 * include/dlfcn.h (struct link_map): New forward decl.
9906 * inet/getnameinfo.c: Include stddef.h.
9907 (getnameinfo): Use offsetof.
9909 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9911 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9913 * string/strerror_l.c: Include stdlib.h.
9915 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9916 * config.make.in (gnu89-inline-CFLAGS): New variable.
9917 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9919 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9920 * argp/argp.h: Use it.
9921 * bits/mathinline.h: Likewise.
9922 * bits/sigset.h: Likewise.
9923 * bits/string.h: Likewise.
9924 * ctype/ctype.h: Likewise.
9925 * hurd/hurd.h: Likewise.
9926 * hurd/hurd/fd.h: Likewise.
9927 * hurd/hurd/port.h: Likewise.
9928 * hurd/hurd/signal.h: Likewise.
9929 * hurd/hurd/threadvar.h: Likewise.
9930 * hurd/hurd/userlink.h: Likewise.
9931 * io/sys/stat.h: Likewise.
9932 * libio/bits/stdio.h: Likewise.
9933 * libio/bits/stdio2.h: Likewise.
9934 * mach/lock-intern.h: Likewise.
9935 * mach/mach/mig_support.h: Likewise.
9936 * math/bits/cmathcalls.h: Likewise.
9937 * posix/bits/unistd.h: Likewise.
9938 * socket/bits/socket2.h: Likewise.
9939 * stdlib/bits/stdlib.h: Likewise.
9940 * stdlib/stdlib.h: Likewise.
9941 * string/argz.h: Likewise.
9942 * string/bits/string2.h: Likewise.
9943 * string/bits/string3.h: Likewise.
9944 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9945 * sysdeps/generic/inttypes.h: Likewise.
9946 * sysdeps/generic/machine-lock.h: Likewise.
9947 * sysdeps/generic/machine-sp.h: Likewise.
9948 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9949 * sysdeps/i386/i486/bits/string.h: Likewise.
9950 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9951 * sysdeps/mach/alpha/machine-lock.h: Likewise.
9952 * sysdeps/mach/alpha/machine-sp.h: Likewise.
9953 * sysdeps/mach/i386/machine-lock.h: Likewise.
9954 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9955 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9956 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9957 * sysdeps/s390/bits/string.h: Likewise.
9958 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9959 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9960 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9961 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9962 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9963 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9964 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9965 * wcsmbs/bits/wchar2.h: Likewise.
9966 * wcsmbs/wchar.h: Likewise.
9967 * stdlib/gmp.h: Likewise. Include <features.h> to get
9968 __extern_inline definition.
9970 2007-03-15 Jakub Jelinek <jakub@redhat.com>
9972 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9976 * math/libm-test.inc (log_test): Test -Inf and NaN.
9977 (log10_test, log1p_test, log2_test): Test -Inf.
9978 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9979 FE_INVALID when argument is qNaN.
9980 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9981 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9982 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9983 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9984 andb $1, %ah with testb $1, %ah, don't test for parity, instead
9985 testb $4, %ah and jump if non-zero.
9986 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9987 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9990 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9991 ancestors with the same depths.
9992 Patch by Niels Moeller <nisse@lysator.liu.se>.
9993 (filter_doc): Don't crash if argp is NULL.
9994 * argp/Makefile (tests): Add tst-argp2.
9995 * argp/tst-argp2.c: New test.
9998 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10000 (updwtmp_file): Likewise.
10003 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10004 (inet6_opt_append): Don't check extlen is big enough if extbuf
10006 (inet6_opt_finish): Likewise.
10007 * inet/Makefile (tests): Add test-inet6_opt.
10008 * inet/test-inet6_opt.c: New test.
10010 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10011 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10012 NLMSG_ERR. Instead use a page sized buffer.
10013 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10016 2007-03-14 Richard Henderson <rth@redhat.com>
10018 * sysdeps/alpha/fpu/s_llround.c: New file.
10019 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10020 * sysdeps/alpha/fpu/s_lround.c: New file.
10021 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10022 * sysdeps/alpha/fpu/s_round.c: New file.
10023 * sysdeps/alpha/fpu/s_roundf.c: New file.
10024 * sysdeps/alpha/fpu/s_trunc.c: New file.
10025 * sysdeps/alpha/fpu/s_truncf.c: New file.
10027 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10028 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10029 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10030 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10031 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10032 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10034 * sysdeps/alpha/fpu/s_fmax.S: New file.
10035 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10036 * sysdeps/alpha/fpu/s_fmin.S: New file.
10037 * sysdeps/alpha/fpu/s_fminf.S: New file.
10038 * sysdeps/alpha/fpu/s_isnan.c: New file.
10039 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10040 * sysdeps/alpha/fpu/s_llrint.c: New file.
10041 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10042 * sysdeps/alpha/fpu/s_lrint.c: New file.
10043 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10044 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10045 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10047 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10048 (__fdimf, fdimf, __fdim, fdim): Remove.
10049 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10050 (__isnanf, __isnan, __isnanl): New.
10052 2007-03-13 Richard Henderson <rth@redhat.com>
10054 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10056 2007-03-13 Richard Henderson <rth@redhat.com>
10058 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10059 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10060 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10061 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10062 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10063 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10065 2007-03-13 Richard Henderson <rth@redhat.com>
10067 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10068 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10069 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10070 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10071 Move to dl-auxv.h; initialize instead of extern weak.
10072 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10074 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10075 Extern instead of initialized.
10077 2007-03-13 Richard Henderson <rth@redhat.com>
10079 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10080 __sigsuspend_nocancel.
10082 2007-03-06 Ulrich Drepper <drepper@redhat.com>
10084 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10085 172.16/12 address range.
10087 2007-03-02 Jakub Jelinek <jakub@redhat.com>
10089 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10090 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10093 2007-03-01 Jakub Jelinek <jakub@redhat.com>
10096 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10098 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10100 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10101 for x qNaN and y either +-inf or non-integer value.
10102 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10103 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10104 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10106 2007-02-10 Mike Frysinger <vapier@gentoo.org>
10108 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10109 from sysdep_headers.
10111 2007-02-28 Jakub Jelinek <jakub@redhat.com>
10113 * time/tzfile.c (find_transition): Instead of a linear search try to
10114 guess the transition index, use a linear search if the result is at
10115 most 10 transitions away from the guess or binary search otherwise.
10117 2007-02-27 Jakub Jelinek <jakub@redhat.com>
10119 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10120 memory reallocation.
10122 2007-02-21 Ulrich Drepper <drepper@redhat.com>
10124 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10125 and fix some typos.
10126 Optimize use of TOLOWER.
10129 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10130 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10131 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10134 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10135 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10138 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10139 (open_dir_stream): Likewise.
10140 * io/Makefile (tests): Add bug-ftw5.
10141 * io/bug-ftw5.c: New file.
10143 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10144 * nscd/servicescache.c (cache_addserv): Likewise.
10146 * nscd/grpcache.c (cache_addgr): In case a record changed on
10147 refresh, adjust key_copy.
10150 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10151 refresh, adjust key_copy.
10154 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10156 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10158 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10160 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10163 * stdio-common/vfscanf.c: Small cleanups throughout.
10165 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10168 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10169 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10170 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10171 Patch by Jared Casper <jaredcasper@gmail.com>.
10173 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10174 * sysdeps/unix/opendir.c: Likewise.
10175 * sysdeps/unix/readdir.c: Likewise.
10178 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10180 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10182 * stdio-common/vfscanf.c: Fix problems in width accounting.
10183 * stdio-common/tst-sscanf.c (double_tests): New tests.
10184 (main): Hook them up.
10186 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10187 More simplifications of floating-point reader.
10189 * stdio-common/Makefile (tests): Add tst-swscanf.
10190 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10192 * stdio-common/tst-swscanf.c: New file.
10194 2007-02-17 Ulrich Drepper <drepper@redhat.com>
10197 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10198 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10199 Remove using for __jmp_buf_tag.
10200 * locale/locale.h (struct lconv): Also define in std namespace.
10201 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10204 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10205 using __libc_enable_secure.
10208 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10211 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10212 of names for ellipsises.
10215 * malloc/memusage.sh: Cleanups.
10216 * debug/xtrace.sh: Quoting and trap changes.
10218 2007-02-16 Ulrich Drepper <drepper@redhat.com>
10220 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10222 * locale/iso-3166.def: Update entry for Serbia.
10223 * locale/iso-4217.def: Define RSD, remove CSD.
10225 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10226 and 64-bit operations.
10229 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10232 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10235 2007-02-15 Ulrich Drepper <drepper@redhat.com>
10238 * assert/assert.h (assert): Simplify.
10239 (assert_perror): Likewise.
10240 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10242 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10245 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10246 change: don't pass NULL in place of an integer.
10248 2007-02-02 Bruno Haible <bruno@clisp.org>
10251 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10252 Add mapping for U+327E.
10253 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10254 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10255 mapping of 0xD9 0xE8.
10256 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10258 Reported by Jungshik Shin <jungshik@google.com>.
10261 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10262 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10263 Reported by Jungshik Shin <jungshik@google.com>.
10265 2007-02-14 Ulrich Drepper <drepper@redhat.com>
10267 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10271 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10272 byte variants. Patch mostly be tom@tommay.net.
10274 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10277 * posix/glob.c (attribute_hidden): Define if not defined.
10278 (glob): Unescape dirname, filename or username when needed and not
10279 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10280 is NULL. Handle unescaped [ in pattern without closing ].
10281 Don't pass GLOB_CHECK down to recursive glob for directories.
10282 (__glob_pattern_type): New function.
10283 (__glob_pattern_p): Implement using __glob_pattern_type.
10284 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10285 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10286 Remove unreachable code.
10287 * posix/globtest.sh: Add a couple of new tests.
10289 2007-02-13 Ulrich Drepper <drepper@redhat.com>
10291 * po/ru.po: Update from translation team.
10293 2007-02-12 Jakub Jelinek <jakub@redhat.com>
10295 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10296 to the list of i486+ CPUs.
10297 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10299 2007-02-12 Ulrich Drepper <drepper@redhat.com>
10301 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10302 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10305 2007-02-09 Ulrich Drepper <drepper@redhat.com>
10307 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10309 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10310 * resolv/res_mkquery.c: Define __res_nopt.
10311 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10312 try adding EDNS0 record.
10313 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10314 EDNS0 record was send make sure we don't try it again.
10315 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10316 * include/resolv.h: Declare __res_nopt.
10318 2007-02-08 Jakub Jelinek <jakub@redhat.com>
10321 * time/strptime_l.c (__strptime_internal): Set have_mon for
10322 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10323 have been computed from tm_yday and tm_year. Don't crash
10324 in day_of_the_week or day_of_the_year if not have_mon
10325 and tm_mon contains bogus value.
10326 * time/Makefile (tests): Add tst-strptime3.
10327 * time/tst-strptime3.c: New test.
10329 2007-02-05 Jakub Jelinek <jakub@redhat.com>
10332 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10333 bit for RE_HAT_LISTS_NOT_NEWLINE.
10334 (build_charclass_op): Remove bogus comment.
10335 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10336 * posix/bug-regex27.c: New test.
10337 * posix/bug-regex28.c: New test.
10339 2007-02-03 Ulrich Drepper <drepper@redhat.com>
10341 * po/sv.po: Update from translation team.
10343 2007-02-02 Ulrich Drepper <drepper@redhat.com>
10345 * nscd/nscd_helper.c (open_socket): Minor size optimization.
10347 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10349 * include/locale.h (__uselocale): Add libc_hidden_proto.
10350 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10352 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10355 2007-02-01 Ulrich Drepper <drepper@redhat.com>
10357 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10359 (PTR_DEMANGLE): Real definition now that it's not the same as
10360 PRT_MANGLE anymore.
10361 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10363 * string/strerror_l.c: New file.
10364 * string/Makefile (routines): Add strerror_l.
10365 * string/string.h: Declare strerror_l.
10366 * string/Versions: Export strerror_l for GLIBC_2.6.
10368 2007-01-31 Ulrich Drepper <drepper@redhat.com>
10370 * nscd/nscd_helper.c (open_socket): Now takes request type and key
10371 as parameter. Construct request record. Try sending request
10372 before the first poll use, it usually succeeds. Adjust all
10374 * nscd/nscd-client.h: Define MAXKEYLEN.
10375 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10377 2007-01-31 Jakub Jelinek <jakub@redhat.com>
10379 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10381 * nscd/nscd_helper.c: Include string.h.
10382 (__nscd_cache_search): Remove const qualifier from return value.
10383 On strict alignment architectures check hash entry and data head
10385 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10386 mmapped data during GC cycle contains garbage. If
10387 __nscd_drop_map_ref fails, decrement mapped->counter when returning
10388 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10390 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10391 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10392 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10393 * nscd/nscd_getai.c (__nscd_getai): Likewise.
10394 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10396 2007-01-30 Ulrich Drepper <drepper@redhat.com>
10398 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10400 2007-01-26 Ulrich Drepper <drepper@redhat.com>
10402 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10403 names not numbers in cfi_*.
10405 2007-01-26 Andreas Jaeger <aj@suse.de>
10407 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10408 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10409 Correct values of PER_HPUX and PER_OSF4.
10411 2007-01-24 Ulrich Drepper <drepper@redhat.com>
10413 * elf/dl-minimal.c: Undefine _itoa first.
10414 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10415 * malloc/mtrace.c: Revert last change.
10416 * posix/wordexp.c: Likewise.
10418 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10420 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10421 and __geode__ to the list of i486+ CPUs.
10422 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10424 2007-01-23 Ulrich Drepper <drepper@redhat.com>
10426 * stdio-common/_itoa.c: Include <limits.h>.
10427 * stdio-common/_itowa.c: Likewise.
10429 2007-01-22 Ulrich Drepper <drepper@redhat.com>
10431 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10433 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10435 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10437 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10441 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10442 * stdio-common/Makefile (tests): Add bug17.
10443 * stdio-common/bug17.c: New file.
10445 2007-01-19 Ulrich Drepper <drepper@redhat.com>
10447 * iconvdata/brf.c: New file.
10448 * iconvdata/testdata/BRF: New file.
10449 * iconvdata/testdata/BRF..UTF8: New file.
10450 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10451 * iconvdata/Makefile: Add rules to build BRF.
10452 * iconvdata/TESTS: Add BRF entry.
10453 * iconvdata/gconv-modules: Likewise.
10454 * iconvdata/tst-tables.sh: Likewise.
10456 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
10458 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10459 type `long long int', not `long int'.
10460 (wcstoq): Likewise.
10462 2007-01-18 Ulrich Drepper <drepper@redhat.com>
10464 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10465 of values on 64-bit platforms which are too large.
10467 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
10468 Joe Kerian <jkerian@us.us.ibm.com>
10471 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10472 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
10473 (__copysignl): Use signbit() for comparison.
10474 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10475 SET_LDOUBLE_WORDS64.
10478 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10479 (__ceill): Remove calls to fegetround(), fesetround().
10480 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10481 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10482 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10484 2007-01-17 Jakub Jelinek <jakub@redhat.com>
10486 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10488 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10490 2007-01-17 Ulrich Drepper <drepper@redhat.com>
10492 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10494 * csu/libc-start.c: Likewise.
10496 2007-01-16 Ulrich Drepper <drepper@redhat.com>
10498 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10499 really work anyway.
10501 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10503 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
10505 (handle_request): Remove unnecessary tests.
10507 * nscd/cache.c (cache_add): Record the failure to add to the cache.
10509 2007-01-15 Jakub Jelinek <jakub@redhat.com>
10511 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10512 workbits in semi-raw fraction.
10514 * math/test-misc.c: Add new tests.
10516 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10518 * math/basic-test.c: Include test-skeleton.c.
10519 (TEST_TRUNC): Define.
10520 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10521 (main): Rename to ...
10522 (do_test): ...this. Run new tests.
10523 (TEST_FUNCTION): Define.
10525 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
10526 Joe Kerian <jkerian@us.us.ibm.com>
10529 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10530 handling for high words.
10531 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10532 and overflow for infinity.
10534 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10536 * nscd/connections.c (handle_request): Add a __builtin_expect.
10538 * nscd/connections.c (serv2db): Change type into structure which
10539 also says whether this is a request for data. Renamed to
10540 servinfo. All users changed.
10541 (handle_request): Much simpler test whether we should search the cache.
10543 * nscd/connections.c (handle_request): Fix thinko in selinux test
10546 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10547 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10548 it before getting dl_load_lock and then relock.
10549 (_dl_lookup_symbol_x): Pass flags to add_dependency.
10550 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10551 case we unlocked the scope.
10552 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10553 _dl_lookup_symbol_x in case we locked the scope.
10554 (_dl_profile_fixup): Likewise.
10555 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10556 set DL_LOOKUP_SCOPE_LOCK.
10558 2007-01-13 Ulrich Drepper <drepper@redhat.com>
10560 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10561 CFLAGS-getsrvbynpt_r.c.
10562 * nscd/getsrvbynm_r.c: New file.
10563 * nscd/getsrvbypt_r.c: New file.
10564 * nscd/nscd_getserv_r.c: New file.
10565 * nscd/servicescache.c: New file.
10566 * nscd/Makefile (routines): Add nscd_getserv_r.
10567 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10568 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10569 CFLAGS-getsrvbypt_r.c.
10570 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10571 table. Add entries for services database.
10572 * nscd/connections.c (serv2str): Mark as const. Add entries for
10574 (dbs): Add .reset_res and servdb initialization.
10575 (serv2db): Add entries for services database.
10576 (verify_persistent_db): Accept dbnr == servdb.
10577 (invalidate_cache): Rewrite database name recognition to use a table.
10578 Call res_init() if .reset_res is set for database.
10579 (handle_request): Add code to handle services database.
10580 * nscd/gai.c: Don't define __getservbyname_r.
10581 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10582 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10583 (serv_response_header): Define.
10584 (struct datahead): Add serv_response_header member.
10585 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10587 * nscd/nscd.conf: Add entries for services database.
10588 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10589 Declare serv_iov_disabled.
10590 Declare addservbyname, readdservbyname, addservbyport, and
10592 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10593 (find_db): Fix error message.
10594 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10595 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10596 * nscd/selinux.c (perms): Add entries for services database.
10597 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10598 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10600 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10601 * nscd/hstcache.c: Likewise.
10602 * nscd/pwdcache.c: Likewise.
10604 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10605 computation of keylen.
10607 * include/string.h: Only redefine strndupa if this is really for
10610 2007-01-12 Ulrich Drepper <drepper@redhat.com>
10612 * nscd/nscd_gethst_r.c: Minor cleanups.
10614 * nscd/connections.c (handle_request): Check selinux permissions
10615 for all non-admin commands.
10617 * sysdeps/i386/i486/bits/atomic.h: Define
10618 atomic_compare_and_exchange_val_acq,
10619 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10620 using __sync_* built-ins for gcc >= 4.1.
10621 * sysdeps/x86_64/bits/atomic.h: Likewise.
10624 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10627 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10629 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10630 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10631 (do_test): Check errno and exit(0) if ENOSYS.
10633 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10635 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10636 thousands separators.
10637 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10638 * stdlib/tst-strtod4.c: New test.
10641 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10642 hexadecimal digit should accept just the initial 0.
10643 * stdlib/tst-strtod2.c (tests): New variable.
10644 (do_test): Run several tests rather than just one.
10646 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10648 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10649 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10651 2007-01-10 Ulrich Drepper <drepper@redhat.com>
10653 * io/fts.c: Make sure fts_cur is always valid after return from
10655 Patch by Miloslav Trmac <mitr@redhat.com>.
10657 2006-10-27 Richard Sandiford <richard@codesourcery.com>
10659 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10660 (R_MIPS_NUM): Bump by 1.
10662 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10664 * posix/execvp.c: Include alloca.h.
10665 (allocate_scripts_argv): Renamed to...
10666 (scripts_argv): ... this. Don't allocate buffer here nor count
10668 (execvp): Use alloca if possible.
10669 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10670 * posix/tst-vfork3.c: New test.
10672 2007-01-03 Ulrich Drepper <drepper@redhat.com>
10674 * string/Makefile (tst-strxfrm2-ENV): Define.
10675 * stdlib/Makefile (tst-strtod3-ENV): Define.
10677 2007-01-02 Ulrich Drepper <drepper@redhat.com>
10679 * posix/getconf.c: Update copyright year.
10680 * nss/getent.c: Likewise.
10681 * iconv/iconvconfig.c: Likewise.
10682 * iconv/iconv_prog.c: Likewise.
10683 * elf/ldconfig.c: Likewise.
10684 * catgets/gencat.c: Likewise.
10685 * csu/version.c: Likewise.
10686 * elf/ldd.bash.in: Likewise.
10687 * elf/sprof.c (print_version): Likewise.
10688 * locale/programs/locale.c: Likewise.
10689 * locale/programs/localedef.c: Likewise.
10690 * nscd/nscd.c (print_version): Likewise.
10691 * debug/xtrace.sh: Likewise.
10692 * malloc/memusage.sh: Likewise.
10693 * malloc/mtrace.pl: Likewise.
10694 * debug/catchsegv.sh: Likewise.
10696 2006-12-24 Ulrich Drepper <drepper@redhat.com>
10698 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10701 2006-12-23 Ulrich Drepper <drepper@redhat.com>
10703 * posix/wordexp.c: Remove some unnecessary tests.
10705 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10707 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10708 blacklist the group till after we look it up.
10710 2006-12-21 Ulrich Drepper <drepper@redhat.com>
10712 * include/atomic.h (atomic_forced_read): New macro.
10714 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10716 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10718 2006-12-19 Jakub Jelinek <jakub@redhat.com>
10720 * nss/getXXbyYY_r.c: Include atomic.h.
10721 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10722 add atomic_write_barrier () in between.
10724 * stdlib/Makefile (tests): Add tst-makecontext.
10725 * stdlib/tst-makecontext.c: New test.
10727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10728 (__makecontext): Don't realign uc_mcontext.uc_regs.
10730 2006-11-28 Jakub Jelinek <jakub@redhat.com>
10732 * elf/dl-support.c: Include dl-procinfo.h.
10733 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10734 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10735 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10737 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10738 hardcoded constants.
10739 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10740 PPC_PLATFORM_* macros for array designators.
10742 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
10744 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10745 names to the beginning.
10746 (_dl_powerpc_platforms): Add "power6x".
10747 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10748 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10749 (_DL_PLATFORMS_COUNT): Increase.
10750 (_dl_string_platform): Handle power6x case.
10751 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10752 PPC_FEATURE_POWER6_EXT): Define.
10753 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10755 2006-12-18 Jakub Jelinek <jakub@redhat.com>
10758 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10759 [-2^31 .. 2^31) range.
10760 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10762 * stdlib/tst-rand48-2.c: New test.
10763 * stdlib/Makefile (tests): Add tst-rand48-2.
10765 2006-12-14 Jakub Jelinek <jakub@redhat.com>
10767 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10769 2006-12-14 Ulrich Drepper <drepper@redhat.com>
10771 * misc/tst-pselect.c (do_test): Make sure the helper process is
10772 terminating when the test is aborted.
10774 2006-12-13 Ulrich Drepper <drepper@redhat.com>
10776 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10777 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10778 Handle relatime mount option.
10781 * libio/Makefile (tests): Add tst-setvbuf1.
10782 * libio/tst-setvbuf1.c: New file.
10784 2006-12-08 Jakub Jelinek <jakub@redhat.com>
10787 * libio/genops.c (__uflow): Fix a typo.
10788 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10789 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
10790 the narrow buffer size.
10792 2006-11-24 Jakub Jelinek <jakub@redhat.com>
10795 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10796 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10797 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10799 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10800 _IO_wstr_finish): Likewise.
10801 * libio/wmemstream.c (open_wmemstream): Likewise.
10802 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10803 even for wide streams.
10805 2006-12-13 Jakub Jelinek <jakub@redhat.com>
10807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10810 2006-12-11 Ulrich Drepper <drepper@redhat.com>
10812 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10813 separators also if no non-zero digits found.
10814 * stdlib/Makefile (tests): Add tst-strtod3.
10816 2006-12-10 Jakub Jelinek <jakub@redhat.com>
10818 * sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
10819 if IFA_MAX is not defined.
10820 (IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
10822 * sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
10823 instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
10825 2006-12-09 Ulrich Drepper <drepper@redhat.com>
10828 * include/features.h: Fix comment about default value for
10832 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10833 empty parsed strings.
10834 * stdlib/Makefile (tests): Add tst-strtod2.
10835 * stdlib/tst-strtod2.c: New file.
10838 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10840 * stdlib/Makefile (tests): Add tst-atof2.
10841 * stdlib/tst-atof2.c: New file.
10844 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10845 correctly if removing trailing zero of hex-float.
10846 * stdlib/Makefile (tests): Add tst-atof1.
10847 * stdlib/tst-atof1.c: New file.
10849 2006-12-09 Jakub Jelinek <jakub@redhat.com>
10851 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10852 Start searching for next comma at p rather than rest.
10853 * misc/Makefile (tests): Add tst-mntent2.
10854 * misc/tst-mntent2.c: New test.
10856 * misc/getusershell.c (initshells): Check for integer overflows.
10857 Make strings buffer one bigger as fgets always succeeds when second
10858 argument is 1. Don't use calloc for shells array. Disallow
10861 2006-12-08 Ulrich Drepper <drepper@redhat.com>
10863 * malloc/memusage.c: Handle realloc with new size of zero and
10864 non-NULL pointer correctly.
10865 (me): Really write first record twice.
10866 (struct entry): Make format bi-arch safe.
10867 (dest): Write out more realloc statistics.
10868 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10870 2006-12-05 Jakub Jelinek <jakub@redhat.com>
10872 * nis/nis_subr.c (nis_getnames): Revert last change.
10874 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10876 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10877 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10878 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10879 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10881 * io/Makefile: Add rules to build and run tst-ttyname_r test.
10882 * io/tst-ttyname_r.c: New test.
10884 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10886 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10888 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
10890 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10891 jump table entries.
10893 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
10895 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10896 `clone' function to ensure proper unwinding stop of gdb.
10897 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10899 2006-12-01 Ulrich Drepper <drepper@redhat.com>
10901 * nscd/nscd.init: Remove obsolete and commented-out -S option
10904 2006-11-23 Jakub Jelinek <jakub@redhat.com>
10907 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10910 * manual/string.texi (strtok): Remove duplicate paragraph.
10912 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10914 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10915 libgcc not supporting `rflags' unwinding (register # >= 17).
10917 2006-11-30 Jakub Jelinek <jakub@redhat.com>
10919 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10922 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
10923 Jakub Jelinek <jakub@redhat.com>
10924 Jan Kratochvil <jan.kratochvil@redhat.com>
10926 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10927 unwind information.
10928 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10929 'restore_rt' even in the 'signal' directory.
10930 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10932 2006-11-27 Jakub Jelinek <jakub@redhat.com>
10935 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10936 malloc crashed. Don't allocate memory unnecessarily in each
10939 2006-10-21 Jakub Jelinek <jakub@redhat.com>
10941 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10943 2006-11-20 Ulrich Drepper <drepper@redhat.com>
10945 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10947 2006-11-18 Bruno Haible <bruno@clisp.org>
10949 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10950 __sysconf only after having tried to call getgroups32.
10952 2006-11-19 Ulrich Drepper <drepper@redhat.com>
10954 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10955 addresses for IPv4 queries if they can be mapped.
10957 2006-11-16 Jakub Jelinek <jakub@redhat.com>
10959 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10960 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10961 (signmask): Add .size directive.
10962 (othermask): Add .type directive.
10964 2006-11-14 Ulrich Drepper <drepper@redhat.com>
10966 * po/nl.po: Update from translation team.
10968 * timezone/zdump.c: Redo fix for BZ #3137.
10970 2006-11-14 Jakub Jelinek <jakub@redhat.com>
10972 * nss/nss_files/files-alias.c (get_next_alias): Set line back
10973 to first_unused after parsing :include: file.
10975 2006-11-10 Ulrich Drepper <drepper@redhat.com>
10977 * timezone/africa: Update from tzdata2006o.
10978 * timezone/antarctica: Likewise.
10979 * timezone/asia: Likewise.
10980 * timezone/australasia: Likewise.
10981 * timezone/backward: Likewise.
10982 * timezone/europe: Likewise.
10983 * timezone/iso3166.tab: Likewise.
10984 * timezone/northamerica: Likewise.
10985 * timezone/southamerica: Likewise.
10986 * timezone/zone.tab: Likewise.
10988 * time/tzfile.c (__tzfile_read): Extend to handle new file format
10989 on machines with 64-bit time_t.
10991 * timezone/checktab.awk: Update from tzcode2006o.
10992 * timezone/ialloc.c: Likewise.
10993 * timezone/private.h: Likewise.
10994 * timezone/scheck.c: Likewise.
10995 * timezone/tzfile.h: Likewise.
10996 * timezone/tzselect.ksh: Likewise.
10997 * timezone/zdump.c: Likewise.
10998 * timezone/zic.c: Likewise.
11001 * elf/ldconfig.c (main): Call setlocale and textdomain.
11002 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11005 * manual/argp.texi: Fix typos.
11006 * manual/charset.texi: Likewise.
11007 * manual/errno.texi: Likewise.
11008 * manual/filesys.texi: Likewise.
11009 * manual/lang.texi: Likewise.
11010 * manual/maint.texi: Likewise.
11011 * manual/memory.texi: Likewise.
11012 * manual/message.texi: Likewise.
11013 * manual/resource.texi: Likewise.
11014 * manual/search.texi: Likewise.
11015 * manual/signal.texi: Likewise.
11016 * manual/startup.texi: Likewise.
11017 * manual/stdio.texi: Likewise.
11018 * manual/sysinfo.texi: Likewise.
11019 * manual/syslog.texi: Likewise.
11020 * manual/time.texi: Likewise.
11021 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11024 * sunrpc/clnt_raw.c: Minimal message improvements.
11025 * sunrpc/pm_getmaps.c: Likewise.
11026 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11027 * nis/nis_print_group_entry.c: Likewise.
11028 * locale/programs/repertoire.c: Likewise.
11029 * locale/programs/charmap.c: Likewise.
11030 * malloc/memusage.sh: Likewise.
11031 * elf/dl-deps.c: Likewise.
11032 * locale/programs/ld-collate.c: Likewise.
11033 * libio/vswprintf.c: Likewise.
11034 * malloc/memusagestat.c: Likewise.
11035 * sunrpc/auth_unix.c: Likewise.
11036 * sunrpc/rpc_main.c: Likewise.
11037 * nscd/cache.c: Likewise.
11038 * locale/programs/repertoire.c: Unify output messages.
11039 * locale/programs/charmap.c: Likewise.
11040 * locale/programs/ld-ctype.c: Likewise.
11041 * locale/programs/ld-monetary.c: Likewise.
11042 * locale/programs/ld-numeric.c: Likewise.
11043 * locale/programs/ld-time.c: Likewise.
11044 * elf/ldconfig.c: Likewise.
11045 * nscd/selinux.c: Likewise.
11046 * elf/cache.c: Likewise.
11047 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11050 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11054 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11056 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11057 if N is one bigger than return value.
11058 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11059 and l1 last arguments, if buf is defined, verify the return value
11060 equals to strlen (buf) and verify no byte beyond passed length
11063 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11065 * po/sv.po: Update from translation team.
11067 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11069 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11070 noinline attribute.
11072 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11074 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11075 noinline attribute.
11077 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11078 Use __new_sys_siglist instead of _sys_siglist_internal as
11079 second macro argument.
11080 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11083 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11086 * posix/unistd.h (sysconf): Remove const attribute.
11088 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11089 temporary or deprecated addresses.
11090 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11092 * string/Makefile (tests): Add tst-strxfrm2.
11093 * string/tst-strxfrm2.c: New file.
11095 2006-10-09 Jakub Jelinek <jakub@redhat.com>
11097 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11098 rather than r->r_brk.
11100 2006-11-08 Jakub Jelinek <jakub@redhat.com>
11102 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11103 optimization even if needed > n.
11105 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11106 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11107 return false, otherwise return true.
11108 (cache_rpath): Return decompose_rpath return value.
11110 2006-11-07 Jakub Jelinek <jakub@redhat.com>
11112 * include/libc-symbols.h (declare_symbol): Rename to...
11113 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11114 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11116 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11118 * sysdeps/gnu/siglist.c: Likewise.
11120 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11122 * sysdeps/powerpc/fpu/bits/mathinline.h
11123 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11124 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11126 2006-11-05 Ulrich Drepper <drepper@redhat.com>
11128 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11129 Update handling of cache descriptor 0x49 for new models.
11130 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11133 2006-11-02 Jakub Jelinek <jakub@redhat.com>
11135 * malloc/memusage.c (dest): Reset not_me back to false after
11136 printing statistics.
11138 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11140 * configure.in: Work around ld --help change and avoid -z relro
11141 test completely if the architecture doesn't care about security.
11143 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11145 * po/sv.po: Update from translation team.
11147 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11149 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11150 generate compatibility version.
11152 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11154 * configure.in: Relax -z relro requirement a bit.
11156 * po/sv.po: Update from translation team.
11158 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11160 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11161 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11162 * elf/dl-close.c (_dl_close_worker): Likewise.
11163 * elf/dl-open.c (_dl_open_worker): Likewise.
11164 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11166 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11168 * configure.in: Require assembler support for visibility, compiler
11169 support for visibility and aliases, linker support for various -z
11171 * Makeconfig: Remove conditional code which now is unnecessary.
11172 * config.h.in: Likewise.
11173 * config.make.in: Likewise.
11174 * dlfcn/Makefile: Likewise.
11175 * elf/Makefile: Likewise.
11176 * elf/dl-load.c: Likewise.
11177 * elf/rtld.c: Likewise.
11178 * include/libc-symbols.h: Likewise.
11179 * include/stdio.h: Likewise.
11180 * io/Makefile: Likewise.
11181 * io/fstat.c: Likewise.
11182 * io/fstat64.c: Likewise.
11183 * io/fstatat.c: Likewise.
11184 * io/fstatat64.c: Likewise.
11185 * io/lstat.c: Likewise.
11186 * io/lstat64.c: Likewise.
11187 * io/mknod.c: Likewise.
11188 * io/mknodat.c: Likewise.
11189 * io/stat.c: Likewise.
11190 * io/stat64.c: Likewise.
11191 * libio/stdio.c: Likewise.
11192 * nscd/Makefile: Likewise.
11193 * stdlib/Makefile: Likewise.
11194 * stdlib/atexit.c: Likewise.
11195 * sysdeps/generic/ldsodefs.h: Likewise.
11196 * sysdeps/i386/dl-machine.h: Likewise.
11197 * sysdeps/i386/sysdep.h: Likewise.
11198 * sysdeps/i386/i686/memcmp.S: Likewise.
11199 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11200 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11201 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11203 * Makerules: USE_TLS support is now default.
11204 * tls.make.c: Likewise.
11205 * csu/Versions: Likewise.
11206 * csu/libc-start.c: Likewise.
11207 * csu/libc-tls.c: Likewise.
11208 * csu/version.c: Likewise.
11209 * dlfcn/dlinfo.c: Likewise.
11210 * elf/dl-addr.c: Likewise.
11211 * elf/dl-cache.c: Likewise.
11212 * elf/dl-close.c: Likewise.
11213 * elf/dl-iteratephdr.c: Likewise.
11214 * elf/dl-load.c: Likewise.
11215 * elf/dl-lookup.c: Likewise.
11216 * elf/dl-object.c: Likewise.
11217 * elf/dl-open.c: Likewise.
11218 * elf/dl-reloc.c: Likewise.
11219 * elf/dl-support.c: Likewise.
11220 * elf/dl-sym.c: Likewise.
11221 * elf/dl-sysdep.c: Likewise.
11222 * elf/dl-tls.c: Likewise.
11223 * elf/ldconfig.c: Likewise.
11224 * elf/rtld.c: Likewise.
11225 * elf/tst-tls-dlinfo.c: Likewise.
11226 * elf/tst-tls1.c: Likewise.
11227 * elf/tst-tls10.h: Likewise.
11228 * elf/tst-tls14.c: Likewise.
11229 * elf/tst-tls2.c: Likewise.
11230 * elf/tst-tls3.c: Likewise.
11231 * elf/tst-tls4.c: Likewise.
11232 * elf/tst-tls5.c: Likewise.
11233 * elf/tst-tls6.c: Likewise.
11234 * elf/tst-tls7.c: Likewise.
11235 * elf/tst-tls8.c: Likewise.
11236 * elf/tst-tls9.c: Likewise.
11237 * elf/tst-tlsmod1.c: Likewise.
11238 * elf/tst-tlsmod13.c: Likewise.
11239 * elf/tst-tlsmod13a.c: Likewise.
11240 * elf/tst-tlsmod14a.c: Likewise.
11241 * elf/tst-tlsmod2.c: Likewise.
11242 * elf/tst-tlsmod3.c: Likewise.
11243 * elf/tst-tlsmod4.c: Likewise.
11244 * elf/tst-tlsmod5.c: Likewise.
11245 * elf/tst-tlsmod6.c: Likewise.
11246 * include/errno.h: Likewise.
11247 * include/link.h: Likewise.
11248 * include/tls.h: Likewise.
11249 * locale/global-locale.c: Likewise.
11250 * locale/localeinfo.h: Likewise.
11251 * malloc/arena.c: Likewise.
11252 * malloc/hooks.c: Likewise.
11253 * malloc/malloc.c: Likewise.
11254 * resolv/Versions: Likewise.
11255 * sysdeps/alpha/dl-machine.h: Likewise.
11256 * sysdeps/alpha/libc-tls.c: Likewise.
11257 * sysdeps/generic/ldsodefs.h: Likewise.
11258 * sysdeps/generic/tls.h: Likewise.
11259 * sysdeps/i386/dl-machine.h: Likewise.
11260 * sysdeps/ia64/dl-machine.h: Likewise.
11261 * sysdeps/ia64/libc-tls.c: Likewise.
11262 * sysdeps/mach/hurd/fork.c: Likewise.
11263 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11264 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11265 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11266 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11267 * sysdeps/s390/libc-tls.c: Likewise.
11268 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11269 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11270 * sysdeps/sh/dl-machine.h: Likewise.
11271 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11272 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11273 * sysdeps/x86_64/dl-machine.h: Likewise.
11275 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11276 split out locking and parameter checking.
11277 (_dl_close): Call _dl_close_worker after locking and checking.
11278 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11280 * elf/Makefile: Add rules to build and run tst-thrlock.
11281 * elf/tst-thrlock.c: New file.
11284 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11288 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11289 we are sure we do not need it anymore for _dl_close. Also move
11290 the asserts inside the lock region.
11291 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11293 2006-10-27 Jakub Jelinek <jakub@redhat.com>
11295 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11297 (_dl_lookup_symbol_x): Adjust caller.
11299 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11301 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11303 * elf/dl-libc.c: Revert l_scope name changes.
11304 * elf/dl-load.c: Likewise.
11305 * elf/dl-object.c: Likewise.
11306 * elf/rtld.c: Likewise.
11307 * elf/dl-close.c (_dl_close): Likewise.
11308 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11309 always use __rtld_mrlock_{change,done}. Always free old scope list
11310 here if not l_scope_mem.
11311 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11312 change. Never free scope list here. Just __rtld_mrlock_lock before
11313 the lookup and __rtld_mrlock_unlock it after the lookup.
11314 * elf/dl-sym.c: Likewise.
11315 * include/link.h (struct r_scoperec): Remove.
11316 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11317 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11319 2006-10-25 Ulrich Drepper <drepper@redhat.com>
11321 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11323 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11325 * configure.in: Disable building profile libraries by default.
11327 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11329 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11330 as signed longs, check for x_base + pos overflow.
11331 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11332 * sunrpc/tst-xdrmem2.c: New test.
11334 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11336 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11337 _dl_lookup_symbol_x code.
11339 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11341 * elf/dl-runtime.c: Include sysdep-cancel.h.
11342 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11343 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
11344 instead of catomic_* macros.
11345 * elf/dl-sym.c: Include sysdep-cancel.h.
11346 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11347 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11348 * elf/dl-close.c: Include sysdep-cancel.h.
11349 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11350 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11351 * elf/dl-open.c: Include sysdep-cancel.h.
11352 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11353 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11355 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11358 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11359 fastbin rather than end of fastbin array.
11361 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11363 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11365 * sysdeps/x86_64/bits/atomic.h
11366 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11367 (catomic_decrement): Use correct body macro.
11369 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11371 * include/atomic.h: Add a unique prefix to all local variables
11373 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11375 2006-10-16 Ulrich Drepper <drepper@redhat.com>
11378 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11381 2006-10-14 Ulrich Drepper <drepper@redhat.com>
11383 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11385 2006-10-13 Ulrich Drepper <drepper@redhat.com>
11388 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11389 determine highest fast bin to consolidate, always look into all of
11391 (do_check_malloc_state): Only require for empty bins for large
11392 sizes in main arena.
11394 * libio/stdio.h: Add more __wur attributes.
11396 * elf/dl-minimal.c (realloc): Optimize last patch.
11398 2006-10-12 Richard Sandiford <richard@codesourcery.com>
11401 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11402 and use memcpy() if it does.
11404 2006-11-12 Andreas Jaeger <aj@suse.de>
11407 * manual/search.texi (Hash Search Function): Clarify.
11408 (Array Search Function): Clarify.
11410 2006-11-12 Joseph Myers <joseph@codesourcery.com>
11413 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11415 * math/atest-exp2.c (read_mpn_hex): Likewise.
11416 * math/atest-sincos.c (main): Likewise.
11418 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11420 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11421 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11422 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11424 * Versions.def: Add GLIBC_2.6 for libc.
11426 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11428 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11430 2006-10-11 Jakub Jelinek <jakub@redhat.com>
11432 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11434 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11436 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11437 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11439 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11441 * include/atomic.c: Define catomic_* operations.
11442 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
11443 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11444 * malloc/memusage.c: Likewise.
11445 * gmon/mcount.c: Likewise.
11446 * elf/dl-close.c: Likewise.
11447 * elf/dl-open.c: Likewise.
11448 * elf/dl-profile.c: Likewise.
11449 * elf/dl-sym.c: Likewise.
11450 * elf/dl-runtime.c: Likewise.
11451 * elf/dl-fptr.c: Likewise.
11452 * resolv/res_libc.c: Likewise.
11454 2006-10-10 Ulrich Drepper <drepper@redhat.com>
11456 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11457 components which lack them.
11459 * nis/nis_subr.c (nis_getnames): Make sure that we always return
11460 at least one entry consisting of the parameter concatenated with
11463 2006-10-10 Roland McGrath <roland@frob.com>
11465 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11466 * sysdeps/mach/hurd/futimes.c: Likewise.
11467 * sysdeps/mach/hurd/lutimes.c: Likewise.
11469 2006-10-09 Ulrich Drepper <drepper@redhat.com>
11470 Jakub Jelinek <jakub@redhat.com>
11472 Implement reference counting of scope records.
11473 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11474 from the list in objects which remain. Always allocate new scope
11476 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11477 don't resize, allocate a new one.
11478 * elf/dl-runtime.c: Update reference counters before using a scope
11480 * elf/dl-sym.c: Likewise.
11481 * elf/dl-libc.c: Adjust for l_scope name change.
11482 * elf/dl-load.c: Likewise.
11483 * elf/dl-object.c: Likewise.
11484 * elf/rtld.c: Likewise.
11485 * include/link.h: Include <rtld-lowlevel.h>. Define struct
11486 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
11487 Add l_scoperec_lock.
11488 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11489 * sysdeps/generic/rtld-lowlevel.h: New file.
11491 * include/atomic.h: Rename atomic_and to atomic_and_val and
11492 atomic_or to atomic_or_val. Define new macros atomic_and and
11493 atomic_or which do not return values.
11494 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11496 * sysdeps/i386/i486/bits/atomic.h: Likewise.
11498 * po/sv.po: Update from translation team.
11500 2006-10-07 Ulrich Drepper <drepper@redhat.com>
11502 * Versions.def: Add GLIBC_2.6 to libpthread.
11504 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11505 (versioned_symbol): Likewise.
11506 (compat_symbol): Likewise.
11508 * po/tr.po: Update from translation team.
11510 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11512 * nis/Banner: Removed. It's been integral part forever and the
11513 author info is incomplete anyway.
11514 * libio/Banner: Likewise.
11516 * nis/nis_table.c (nis_list): If __follow_path fails in the new
11517 code, make sure the nis_freeresult call doesn't crash and that the
11518 result is reported correctly.
11520 2006-09-27 Jakub Jelinek <jakub@redhat.com>
11522 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11523 when callback is NULL.
11525 * nis/Versions (libnss_nisplus): Add
11526 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11527 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11528 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11529 _nss_create_tablename): Rename to...
11530 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11531 ... these. No longer static.
11532 (internal_setgrent): Adjust users.
11533 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11534 Don't use locking around _nss_grp_create_tablename call.
11535 * nis/nss_nisplus/nisplus-initgroups.c: New file.
11537 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11539 * version.h (VERSION): Bump to 2.5.90 for new development tree.
11541 2006-10-06 Andreas Jaeger <aj@suse.de>
11543 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11545 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11547 * po/pl.po: Update from translation team.
11549 * nscd/nscd.c (main): Fix typo in message.
11550 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11552 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11555 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11556 errno.h, signal.h, unistd.h and sysdep-cancel.h.
11557 (__sigprocmask): Define.
11559 2006-10-02 Ulrich Drepper <drepper@redhat.com>
11561 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11564 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11566 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11567 in oldtotal and newtotal calculation.
11568 * nscd/nscd-client.h (struct mapped_database): Add datasize
11570 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11571 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11573 (__nscd_cache_search): Add checks to make sure we never reference
11574 data beyond the current mapping.
11576 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11578 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11579 variables const to avoid compiler warnings.
11581 * io/fts.c (fts_close): Remove redundant checks.
11582 (fts_build): Likewise.
11583 (fts_palloc): Likewise.
11585 * manual/message.texi (Advanced gettext functions,
11586 Using gettextized software): Fix typos.
11588 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11590 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11591 explain why there are no leaks.
11593 2006-09-29 Ulrich Drepper <drepper@redhat.com>
11595 * libio/wmemstream.c: Include <wchar.h>.
11596 * libio/bug-wmemstream1.c: Likewise.
11597 * libio/tst-wmemstream1.c: Likewise.
11598 * libio/tst-wmemstream2.c: Likewise.
11600 * version.h (RELEASE): Bump to 2.5.
11601 * README: Regenerated.
11603 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11606 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11607 found no group members.
11608 Patch by Petr Baudis.
11610 2006-09-29 Jakub Jelinek <jakub@redhat.com>
11612 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11613 assert bootstrap_map.l_tls_modid is zero.
11614 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11617 2006-09-27 Ulrich Drepper <drepper@redhat.com>
11619 * libio/stdio.h: Move open_wmemstream prototype to ...
11620 * wcsmbs/wchar.h: ... here.
11622 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11625 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11626 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11627 __{,l}chown to handle the rest.
11628 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11629 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11630 __{,l}chown to handle the rest.
11631 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11633 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11634 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11637 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11638 time, rather allocate increasingly bigger arrays of pointers, if
11639 possible with alloca, if too large with malloc.
11641 2006-09-24 Jakub Jelinek <jakub@redhat.com>
11643 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11645 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11647 2006-09-24 Ulrich Drepper <drepper@redhat.com>
11649 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11651 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11652 IFA_F_HOMEADDRESS flag for interfaces.
11653 * include/ifaddrs.h (struct in6addrinfo): Define
11656 2006-09-21 Jakub Jelinek <jakub@redhat.com>
11659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11660 PTR_DEMANGLE3): Define.
11661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11662 PTR_DEMANGLE3): Likewise.
11663 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11664 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11666 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11668 2006-09-20 Jakub Jelinek <jakub@redhat.com>
11670 * po/libc.pot: Regenerated.
11671 * po/be.po: Updated.
11672 * po/ca.po: Likewise.
11673 * po/cs.po: Likewise.
11674 * po/da.po: Likewise.
11675 * po/de.po: Likewise.
11676 * po/el.po: Likewise.
11677 * po/en_GB.po: Likewise.
11678 * po/es.po: Likewise.
11679 * po/fi.po: Likewise.
11680 * po/fr.po: Likewise.
11681 * po/gl.po: Likewise.
11682 * po/hr.po: Likewise.
11683 * po/hu.po: Likewise.
11684 * po/ja.po: Likewise.
11685 * po/ko.po: Likewise.
11686 * po/nb.po: Likewise.
11687 * po/nl.po: Likewise.
11688 * po/pl.po: Likewise.
11689 * po/pt_BR.po: Likewise.
11690 * po/ru.po: Likewise.
11691 * po/rw.po: Likewise.
11692 * po/sk.po: Likewise.
11693 * po/sv.po: Likewise.
11694 * po/tr.po: Likewise.
11695 * po/zh_CN.po: Likewise.
11696 * po/zh_TW.po: Likewise.
11699 * iconv/iconv_prog.c (main): Fix spelling in error message.
11700 * iconv/iconvconfig.c (main): Likewise.
11701 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11702 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11703 * locale/programs/localedef.c (main): Likewise.
11704 * locale/programs/repertoire.c (repertoire_read): Likewise.
11705 * timezone/zdump.c (main): Likewise.
11706 * nscd/connections.c (handle_request): Fix spelling in log message.
11707 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11709 2006-09-20 Ulrich Drepper <drepper@redhat.com>
11711 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11714 2006-09-20 Andreas Jaeger <aj@suse.de>
11716 * math/libm-test.inc (lrint_test_upward): Fix typo.
11718 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11721 * math/libm-test.inc (lrint_test_tonearest): New function.
11722 (lrint_test_towardzero): New function.
11723 (lrint_test_downward): New function.
11724 (lrint_test_upward): New function.
11725 (main): Run these new tests.
11726 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11727 of values near to 0.
11728 (two52): Use double not long double.
11729 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11730 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11731 (two23): Use float not double.
11732 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11733 (two23): Use float not double.
11734 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11735 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11736 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11737 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11739 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11741 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11742 Cast sp to unsigned long to avoid compiler warning.
11743 Use __makecontext_ret function instead of a trampoline on the stack.
11744 (__makecontext_ret): New function.
11745 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11747 2006-09-19 Jakub Jelinek <jakub@redhat.com>
11749 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11750 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11753 2006-09-19 Ulrich Drepper <drepper@redhat.com>
11755 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11756 sure no reference to the unloaded map's search list remains in the
11757 dependency's scope.
11759 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11761 * elf/Makefile: Add rules to build and run unload7 test.
11762 * elf/unload7.c: New test.
11763 * elf/unload7mod1.c: New file.
11764 * elf/unload7mod2.c: New file.
11766 2006-09-18 Jakub Jelinek <jakub@redhat.com>
11768 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11769 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11770 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11771 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11772 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11773 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11774 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11775 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11776 PTRACE_GETEVENTMSG): Likewise.
11777 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11780 2006-09-17 Mike Frysinger <vapier@gentoo.org>
11782 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11783 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11784 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11785 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11787 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11789 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11790 write '\0' to the fd.
11791 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11792 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11793 Change regs to unsigned long pointer from unsigned int, fix fscr
11796 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11798 * io/Makefile (CFLAGS-fstatat.c): Set.
11799 (CFLAGS-fstatat64.c): Likewise.
11800 (CFLAGS-mknodat.c): Likewise.
11802 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11803 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11804 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11805 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11807 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11808 Steven Munroe <sjmunroe@us.ibm.com>
11810 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11811 names to the beginning. Rename "cell" to "cellbe".
11812 (_dl_powerpc_platforms): New.
11813 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11814 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11815 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11816 (_DL_HWCAP_PLATFORM): Define to new mask.
11817 (_dl_platform_string, _dl_string_platform): New functions.
11818 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11819 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11821 2006-09-12 Jakub Jelinek <jakub@redhat.com>
11824 * README.libm: Fix a thinko in sqrt algorithm description.
11827 * manual/string.texi (argz_delete): Fix prototype.
11828 Patch by <alpt@freaknet.org>.
11830 2006-08-26 Joseph Myers <joseph@codesourcery.com>
11833 * io/test-lfs.c (do_prepare): Give name_len type size_t.
11834 * io/tst-fcntl.c (do_prepare): Likewise.
11835 * posix/tst-exec.c (do_prepare): Likewise.
11836 * posix/tst-preadwrite.c (do_prepare): Likewise.
11837 * posix/tst-spawn.c (do_prepare): Likewise.
11838 * posix/tst-truncate.c (do_prepare): Likewise.
11839 * rt/tst-aio.c (do_prepare): Likewise.
11840 * rt/tst-aio64.c (do_prepare): Likewise.
11841 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11844 2006-09-09 Ulrich Drepper <drepper@redhat.com>
11847 * time/mktime.c (guess_time_tm): Fix overflow detection.
11848 * time/Makefile (tests): Add bug-mktime1.
11849 * time/bug-mktime1.c: New file.
11852 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11853 (mremap): Likewise.
11855 2006-09-07 Jakub Jelinek <jakub@redhat.com>
11858 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11859 Ensure relocation doesn't clobber any bits outside of the
11860 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11861 R_SPARC_HI22 and R_SPARC_H44.
11864 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11865 (long) (MINSIZE + nb - old_size) is positive.
11867 * malloc/arena.c (grow_heap): When growing bail even if new_size
11871 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11874 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11876 * posix/regex_internal.c (re_string_reconstruct): Handle
11877 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11878 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11879 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11880 re_string_context_at.
11881 * posix/Makefile: Add rules to build and run bug-regex26 test.
11882 * posix/bug-regex26.c: New test.
11884 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11885 rather than col_sym_free. Move seqp declaration earlier.
11887 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11889 2006-09-05 Jakub Jelinek <jakub@redhat.com>
11891 * nscd/initgrcache.c (addinitgroupsX): Move any_success
11892 decl before first goto out.
11894 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11896 * Makerules (shlib.lds): If have-hash-style, put .hash section
11897 at the end of the RO segment.
11899 2006-09-04 Ulrich Drepper <drepper@redhat.com>
11901 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11902 style hash table format is used.
11904 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11906 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11907 randomization rather than before.
11908 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11910 2006-08-31 Jakub Jelinek <jakub@redhat.com>
11912 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11914 * malloc/malloc.c (_int_malloc): Use full list insert and not
11915 shortcut which assumes the list is empty for large requests
11918 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11920 2006-08-30 Jakub Jelinek <jakub@redhat.com>
11922 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11923 and offout arguments to the prototype.
11924 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11925 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11926 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11927 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11928 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11929 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11930 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11931 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11933 2006-08-28 Ulrich Drepper <drepper@redhat.com>
11935 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11937 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11940 2006-08-28 Jakub Jelinek <jakub@redhat.com>
11942 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11943 only if herrno is NETDB_INTERNAL. Handle errors other than
11944 ERANGE outside of the loops, handle TRY_AGAIN.
11946 * locale/programs/ld-ctype.c (translit_flatten): Issue error
11947 if other's ctype category was missing.
11948 * locale/programs/ld-collate.c (collate_read): Return if
11949 copy_locale's collate category is missing.
11951 2006-08-27 Ulrich Drepper <drepper@redhat.com>
11954 * malloc/malloc.c (public_rEALLOc): Try harder by using other
11955 arenas if allocation failed.
11956 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11958 2006-08-26 Ulrich Drepper <drepper@redhat.com>
11960 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11962 (malloc_state): Reduce bins size by 2.
11963 (_int_malloc): Fix test for large enough buffer for early termination.
11964 When no unsorted block matches perfectly and an exiting block has
11965 to be split, use full list insert and not shortcut which assumes
11968 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11971 2006-08-24 Ulrich Drepper <drepper@redhat.com>
11973 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11976 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11977 symbol require exact match (these are PLTs).
11978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11979 (_dl_ppc64_addr_sym_match): Likewise.
11982 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11983 If symbol has a value use it.
11984 * elf/tst-dladdr1.c: New file.
11985 * elf/Makefile: Add rules to build and run tst-addr1.
11987 2006-08-24 Jakub Jelinek <jakub@redhat.com>
11989 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11990 keeps failing and heap growth or new heap creation isn't
11992 * malloc/tst-malloc.c (main): Add new tests.
11994 2006-08-24 Ulrich Drepper <drepper@redhat.com>
11997 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11998 as in the x86-64 code to use bswap.
12000 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12003 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12005 * posix/bits/unistd.h: Likewise.
12007 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12010 * string/strchr.c: Add cast to avoid warning.
12012 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12014 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12015 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12016 limit is needed to avoid the exploding of the address space
12017 requirement for secondary heaps.
12018 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12019 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12021 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12024 * Makerules (depfiles): Handle extra-test-objs the same as
12026 (common-mostlyclean): Likewise.
12027 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12029 * elf/Makefile (extra-objs): Likewise.
12030 * stdlib/Makefile (extra-objs): Likewise.
12032 2006-08-14 Eric Blake <ebb9@byu.net>
12035 * misc/error.h: Assume C89 or better.
12036 * misc/error.c: Likewise.
12038 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12041 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12042 __ASSUME_ATFCTS is defined.
12044 2006-08-19 Ulrich Drepper <drepper@redhat.com>
12046 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12047 to sort in each call.
12049 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12050 is empty simply return and use next service.
12051 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12053 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12054 tells us when not finding a charmap file is an error.
12055 * locale/programs/charmap.h: Adjust charmap_read prototype.
12056 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12057 cannot find a charmap.
12058 * locale/programs/localedef.c (main): Adjust charmap_read call.
12060 2006-08-15 Jakub Jelinek <jakub@redhat.com>
12062 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12063 sysdeps/posix/pause.c implementation instead.
12065 2006-08-09 Jakub Jelinek <jakub@redhat.com>
12067 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12070 2006-08-13 Andreas Schwab <schwab@suse.de>
12072 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12073 Don't clobber caller's LRSAVE.
12074 (_dl_prof_resolve): Likewise.
12076 2006-08-14 Ulrich Drepper <drepper@redhat.com>
12079 * libio/memstream.c (open_memstream): Allocate initial buffer with
12081 * libio/wmemstream.c (open_wmemstream): Likewise.
12082 * libio/strops.c: Pretty printing.
12083 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12084 (enlarge_userbuf): New function.
12085 (_IO_str_seekoff): Call it if seek position is larger than current
12087 * libio/wstrops.c: Likewise.
12088 * libio/vasprintf.c: Add comment as to why we do not have to use
12089 calloc instead of malloc to allocate initial buffer.
12090 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12091 * libio/bug-memstream1.c: New file.
12092 * libio/bug-wmemstream1.c: New file.
12094 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12096 * libio/wstrops.c: Remove dead macro definitions and comments.
12097 * libio/strops.c: Likewise.
12100 * login/utmpname.c (__utmpname): Remove unnecessary test.
12102 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12105 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12108 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12111 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12113 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12114 setting of CPU clocks.
12116 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12119 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12120 since C99 requires the result to promote to 'int' when uint_least8_t
12121 and uint_least16_t promote to 'int'.
12123 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12126 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12127 lenght of one output field, correct bitmask creation.
12128 * locale/programs/ld-time.c: Add alignment.
12131 * misc/error.c: Add space between program name and message if file
12134 2006-08-03 Eric Blake <ebb9@byu.net>
12137 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12139 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12141 * malloc/memusagestat.c: Silence warnings.
12143 * malloc/malloc.c: Dynamically size mmap treshold if the program
12144 frees mmaped blocks.
12145 Patch by Valerie Henson and Arjan van de Ven.
12147 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12149 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12152 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12153 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12154 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12155 Only provide var definitions in strtol_l (or for *ull*
12158 * stdio-common/bug16.c (tests): New array.
12159 (do_tests): Allow the first hexadecimal digit
12160 to be 1, 2, 4 or 8. Do 3 additional tests.
12162 * sysdeps/s390/fpu/libm-test-ulps: Update.
12164 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12165 fchownat syscall if available.
12166 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12167 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12168 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12170 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12172 * nis/nis_xdr.c: Avoid some function calls.
12174 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12175 Ulrich Drepper <drepper@redhat.com>
12177 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12178 short cut if only one name component is stripped away.
12180 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12182 * nis/nis_call.c: Minor cleanups throughout.
12183 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12184 (first_shoot): Add search_parent_first parameter. Only if it is set
12185 search parent server first.
12186 If directory for table found through cold start cache is not the same
12187 as referenced in the cache, don't use it.
12188 (__nisfind_server): Take additional parameter. Pass it on to
12190 (__prepare_niscall): Adjust __nisfind_server call.
12191 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12192 * nis/nis_table.c: Adjust __nisfind_server call.
12193 * nis/nis_lookup.c: Likewise.
12194 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12196 2006-08-03 Ulrich Drepper <drepper@redhat.com>
12199 * math/s_cacosh.c: Return values from positive branch.
12200 * math/s_cacoshf.c: Likewise.
12201 * math/s_cacoshl.c: Likewise.
12204 * sysvipc/sys/msg.h: Change return value to ssize_t.
12205 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12206 * sysvipc/msgrcv.c: Likewise.
12207 * include/sys/msg.h: Likewise.
12209 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12210 test introduced in patch for bz #661.
12211 (getgrouplist): Simplify code a bit. Don't allocate one additional
12212 element for NEWGROUPS.
12215 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12216 'f', use '1' as leading digit not '\1'.
12217 * stdio-common/Makefile (tests): Add bug16.
12218 * stdio-common/bug16.c: New file.
12221 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12222 and don't try to open it. The patch introducing the macro
12223 contained a bug and used the same file name as the new file
12224 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12225 this out completely.
12228 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12229 Patch by Jerry James <Jerry.James@usu.edu>.
12231 * rt/Makefile (tests): Add tst-clock2.
12232 * rt/tst-clock2.c: New file.
12235 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12236 function and its parameters and pass it to new thread.
12237 (__gai_notify): Add support for alternative waiting for completion.
12238 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12239 waiting for completion.
12240 * resolv/getaddrinfo_a.c: Likewise.
12241 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12242 waiting for completion is used.
12243 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12244 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12245 * resolv/gai_error.c: Likewise.
12246 * resolv/gai_sigqueue.c: Likewise.
12248 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12250 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12251 errno to EBADF and return MACH_PORT_NULL.
12253 2006-06-23 Joseph Myers <joseph@codesourcery.com>
12256 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12258 2006-08-02 Ulrich Drepper <drepper@redhat.com>
12260 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12261 walk them instead of the symbol table.
12263 2006-08-01 Ulrich Drepper <drepper@redhat.com>
12266 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12267 status of NSS calls, not the number of returned entries.
12269 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12270 request_key, keyctl.
12272 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12274 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12276 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12278 * elf/tst-auditmod1.c: Fix typo in #error.
12280 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12282 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12284 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12286 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12288 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12289 that the directory is empty even on non-POSIX filesystems.
12291 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12293 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12295 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12296 the backend NSS module. If backend setgrent call failed, don't have
12297 internal_setgrent fail. Just remember this until it is needed.
12298 * nis/nss_compat/compat-pwd.c: Likewise.
12299 * nis/nss_compat/compat-spwd.c: Likewise.
12301 2006-07-30 Roland McGrath <roland@redhat.com>
12303 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12304 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12305 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12306 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12308 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12309 (nanosleep_not_cancel): New macro.
12310 (sigsuspend_not_cancel): new macro.
12311 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12312 (do_sigsuspend): Define as inline.
12313 (__sigsuspend): Always use do_sigsuspend.
12314 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12315 * include/signal.h: Declare __sigsuspend_nocancel.
12316 * sysdeps/posix/pause.c
12317 [! NO_CANCELLATION] (__pause_nocancel): New function.
12319 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12320 * include/time.h (__nanosleep_nocancel): Likewise.
12322 2006-07-30 Ulrich Drepper <drepper@redhat.com>
12324 * locale/programs/localedef.c (add_to_readlist): Rename local
12325 variables to avoid confusion.
12327 * locale/programs/charmap.c (charmap_read): Emit error message if
12328 charmap couldn't be found or read.
12330 2006-07-28 Ulrich Drepper <drepper@redhat.com>
12332 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12333 __ASSUME_FUTEX_LOCK_PI.
12334 * include/time.h: Declare __nanosleep_nocancel.
12335 * include/unistd.h: Declare __pause_nocancel.
12337 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12338 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12339 get the __stack_chk_fail_local definition when it's needed.
12341 2006-07-26 Ulrich Drepper <drepper@redhat.com>
12343 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12344 * dlfcn/bug-atexit3.c: New file.
12345 * dlfcn/bug-atexit3-lib.cc: New file.
12347 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12348 used when the namespace is not the base namespace.
12350 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
12352 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12353 (__new_exitfn): Bump it in every successful call.
12354 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12355 more exit handlers, call them right away.
12356 * stdlib/exit.h: Declare __new_exitfn_called.
12358 2006-07-25 Ulrich Drepper <drepper@redhat.com>
12360 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12361 calling registered handler.
12363 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12364 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12365 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12366 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12367 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12368 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12369 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12370 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12372 2006-07-10 Ulrich Drepper <drepper@redhat.com>
12374 * elf/dl-lookup.c (dl_new_hash): New functions.
12375 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12376 value here. Compute new-style hash value. Pass new hash value
12377 and reference to variable with the old value to do_lookup_x.
12378 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12379 old-style hash table.
12380 (_dl_debug_bindings): Pass new hash value and reference to variable
12381 with the old value to do_lookup_x.
12382 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12383 new-style hash value and change old-style hash value parameter to
12384 be a reference. Reoganize functions to determine whether
12385 new-style hash table is available. Only fall back on old-style
12386 table. If old-style hash value is needed, compute it here.
12387 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12389 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12390 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
12391 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12392 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12393 * Makeconfig: If linker supports --hash-style option add it to all
12394 linker command lines to build DSOs.
12395 * config.make.in: Define have-hash-style.
12396 * configure.in: Test whether linker supports --hash-style option.
12398 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12399 * sysdeps/generic/ldsodefs.h: Adjust prototype.
12401 2006-06-27 Ulrich Drepper <drepper@redhat.com>
12403 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12406 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12407 RPATH of main map twice.
12409 2006-06-22 Ulrich Drepper <drepper@redhat.com>
12411 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12412 look further, return original strings.
12413 (_nl_find_msg): Do not return found translation if the conversion
12414 failed. Either signal the string is unusable or that something went
12415 wrong and the original should be used.
12417 2006-06-21 Ulrich Drepper <drepper@redhat.com>
12419 * string/_strerror.c (__strerror_r): Add __builtin_expect.
12421 2006-06-14 Jakub Jelinek <jakub@redhat.com>
12424 * misc/insremque.c (insque): Handle prev == NULL.
12425 * misc/Makefile (tests): Add tst-insremque.
12426 * misc/tst-insremque.c: New test.
12428 2006-06-17 Ulrich Drepper <drepper@redhat.com>
12431 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12432 conflict with DL_DST_REQUIRED.
12434 2006-06-16 Ulrich Drepper <drepper@redhat.com>
12436 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12437 match what Solaris does.
12439 2006-06-04 Ulrich Drepper <drepper@redhat.com>
12441 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12442 local_setegid instead of seteuid and setegid.
12443 * sysdeps/generic/local-setxid.h: New file.
12444 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12446 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12448 * string/Makefile (tests): Add bug-envz1.
12449 * string/bug-envz1.c: New file.
12451 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12453 * posix/regex_internal.c (re_string_skip_chars): If no character has
12454 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
12455 to the byte which couldn't be converted.
12456 (re_string_reconstruct): Don't clear valid_raw_len before calling
12457 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12458 tip_context using re_string_context_at.
12459 * posix/Makefile: Add rules to build and run bug-regex25 test.
12460 * posix/bug-regex25.c: New test.
12462 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
12465 * string/envz.c (envz_strip): Correct erroneously reversed src
12466 and dest parameters to memmove() invocation.
12468 2006-05-30 Jakub Jelinek <jakub@redhat.com>
12470 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12471 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12472 to make sure the database has been already invalidated.
12473 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
12474 after the cache has been invalidated. Use pthread_mutex_lock rather
12475 than pthread_mutex_trylock if fd != -1.
12476 * nscd/connections.c (invalidate_cache): Add fd argument, write
12477 response to fd if not calling prune_cache, pass fd to prune_cache.
12478 (handle_request): Adjust invalidate_cache caller.
12479 (nscd_run): Pass -1 as fd to prune_cache.
12481 2006-05-30 Ulrich Drepper <drepper@redhat.com>
12483 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12486 2006-05-29 Ulrich Drepper <drepper@redhat.com>
12488 * nscd/nscd.h (struct database_dyn): Add prunelock field.
12489 * nscd/cache.c (prune_cache): Take prunelock before starting the
12490 work. Just return in case it is already taken.
12491 * nscd/connections.c (dbs): Initialize .prunelock.
12493 2006-05-25 Ulrich Drepper <drepper@redhat.com>
12495 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12496 copying. No need to allocate new array for group members. Just
12497 move the pointers and update the size.
12499 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12500 Avoid memory leak in case realloc fails. Simplification for
12501 better code generation.
12503 Avoid deprecation warning because of libc_hidden_proto for
12504 inet6_option_alloc.
12505 * inet/inet6_option.c (option_alloc): Renamed from
12506 inet6_option_alloc. Made static.
12507 (inet6_option_alloc): Now a simple wrapper around option_alloc.
12508 (inet6_option_append): Call option_alloc.
12509 * include/netinet/in.h: Remove libc_hidden_proto for
12510 inet6_option_alloc.
12512 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12513 for cleanup when cb!=NULL [Coverity CID 233].
12515 2006-05-24 Ulrich Drepper <drepper@redhat.com>
12518 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12519 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12520 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12521 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12522 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12523 and inet6_rth_getaddr.
12524 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12526 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12527 Mark inet6_option_* interfaces as deprecated.
12528 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12529 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12530 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12531 inet6_rth_segments, and inet6_rth_getaddr.
12532 * inet/inet6_opt.c: New file.
12533 * inet/inet6_rth.c: New file.
12535 * inet/netinet/icmp6.h: Pretty printing.
12538 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12540 2006-05-23 Ulrich Drepper <drepper@redhat.com>
12542 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12543 doing it all here. When server does not know the answer do not
12544 fail immediate, try parent first.
12546 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12549 2006-05-20 Ulrich Drepper <drepper@redhat.com>
12551 * nis/nis_call.c (__prepare_niscall): New function. Split out
12553 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12555 (__follow_path): New function. Split out from nis_list.
12556 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12558 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12560 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12562 * nis/Versions: Export __prepare_niscall, __create_ib_request,
12563 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12564 from libnsl for version GLIBC_PRIVATE.
12565 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12566 Remove entry parameter from _nss_nisplus_parse_pwent and
12567 _nss_nisplus_parse_grent.
12568 * nis/nss_nisplus/nisplus-parser.c: Likewise.
12569 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12570 again. Rewrite getpwent handling to not use nis_first_entry and
12571 nis_next_entry. Roll out own niscall handling.
12572 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12574 * sunrpc/xdr_rec.c: Fix typo in comment.
12576 2006-05-19 Ulrich Drepper <drepper@redhat.com>
12578 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12581 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12582 to allocate memory for my_pollfd. Better initialization of
12583 cb_is_running. Use TEMP_FAILURE_RETRY.
12585 * malloc/memusage.sh (memusageso): Add quotes.
12586 (memusagestat): Likewise.
12587 * debug/xtrace.sh (pcprofileso): Likewise.
12588 (pcprofiledump): Likewise.
12589 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12591 * malloc/Makefile ($(objpfx)memusage): Likewise.
12593 * nis/nis_callback.c (__nis_create_callback): Calls to
12594 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12595 asprintf call fails.
12597 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12598 no uninitialized memory is passed to sendto.
12600 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12602 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12603 of snprintf+strdup. Handle OOM.
12604 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12605 cb->serv together. Remove now obsolete free calls.
12606 (__nis_destroy_callback): Remove now obsolete free call.
12608 2006-05-18 David Woodhouse <dwmw2@redhat.com>
12610 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12611 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12612 and ULA respectively). Set precedence for IPv4 address to 10 as
12613 defined in RFC3484 for preferring IPv6.
12614 * posix/gai.conf: Update to match the new default tables.
12616 2006-05-18 Jakub Jelinek <jakub@redhat.com>
12618 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12619 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12620 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12621 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12623 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12625 (init_nss_interface): Remove initialization of these variables.
12627 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12629 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12630 nis_free_directory forward to avoid duplication.
12632 2006-05-17 Ulrich Drepper <drepper@redhat.com>
12634 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12635 rec_dirsearch returning NULL.
12636 (first_shoot): Handle __nis_finddirectory returning NULL.
12637 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12639 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12640 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12642 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12644 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12647 2006-05-15 Ulrich Drepper <drepper@redhat.com>
12649 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12651 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12652 * nscd/nscd_getgr_r.c: Likewise.
12654 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12656 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12657 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12659 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12661 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12663 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12665 * include/rpc/auth.h: Mark xdr_des_block_internal and
12666 xdr_opaque_auth_internal as hidden.
12668 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12671 * include/rpc/xdr.h: Mark all _internal functions as hidden.
12673 * misc/getusershell.c (okshells): Don't use static initializers,
12676 * stdlib/fmtmsg.c (keywords): Change type of len element to
12677 uint32_t to not waste space on 64bit machines.
12679 * locale/setlocale.c: Change _nl_category_names into a string.
12680 Add new _nl_category_name_idxs. Change all users.
12681 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12682 Declare _nl_category_name_idxs.
12683 * locale/findlocale.c: Adjust for _nl_category_names change.
12684 * locale/loadlocale.c: Likewise.
12685 * locale/newlocale.c: Likewise.
12686 * intl/dcigettext.c: Likewise.
12688 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12689 (add_alias2): ...here. New function.
12690 (__gconv_read_conf): Simplify builtin alias handling.
12691 (builtin_aliases): Convert to string to avoid relocations.
12692 * iconv/gconv_builtin.h: Add comment about correct formatting.
12694 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12696 * resolv/res_debug.c (loc_ntoa): Make error const.
12698 2006-05-14 Andreas Schwab <schwab@suse.de>
12700 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12702 2006-05-12 Jakub Jelinek <jakub@redhat.com>
12704 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12705 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12706 sizeof (cpu_set_t).
12708 2006-05-11 Ulrich Drepper <drepper@redhat.com>
12710 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12712 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12714 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12715 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12717 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12718 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12720 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12721 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12724 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12725 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12728 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12729 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12731 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12732 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12734 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12735 * include/rpcsvc/nis_callback.h: New file.
12737 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12738 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12740 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12741 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12743 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12744 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12746 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12747 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12749 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12750 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12753 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12754 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12756 * nis/nis_error.c: Remove table of strings. Use position
12757 independent mechanism.
12758 * nis/nis_error.h: New file.
12760 2006-05-11 Jakub Jelinek <jakub@redhat.com>
12762 * locale/programs/ld-time.c (time_finish): If wide era name or
12763 format aren't provided, set both wname and wformat to L"".
12765 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12767 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12768 results if the call was succesful.
12770 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12772 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12775 2006-05-10 Jakub Jelinek <jakub@redhat.com>
12777 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12779 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12781 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12782 caller makes sure this is not the case.
12783 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
12785 2006-05-09 Ulrich Drepper <drepper@redhat.com>
12787 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12790 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12791 [Coverity CID 229, 230]
12793 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12795 (hol_help): Likewise. [Coverity CID 226, 227]
12797 * string/argz-replace.c (__argz_replace): Unconditionally call
12798 free on SRC. [Coverity CID 225]
12800 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12801 the return value of __nis_default_owner and __nis_default_group,
12802 it has been especially allocated. [Coverity CID 224]
12804 * nis/nis_defaults.c (searchXYX): New functions. Used by both
12805 searchgroup and searchowner. Significantly simplified.
12806 (__nis_default_owner): Remove duplication. Do not locally copy the
12807 string before duplicating it.
12808 (__nis_default_group): Likewise.
12810 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12811 we must clear the variable before calling __nisfind_server.
12813 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12814 nis_getnames. [Coverity CID 223]
12816 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12817 xmalloc to allocate local repertoire name. [Coverity CID 222]
12819 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12820 allocate memory for the input to add_bytes. [Coverity CID 221]
12822 * posix/wordexp.c (w_addword): Free word if realloc fails and it
12823 was allocated here. [Coverity CID 219, 220]
12825 * posix/getconf.c (print_all): Free confstr data after printing.
12828 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12829 list allocation fails. [Coverity CID 215]
12831 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12834 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12835 string is NULL. [Coverity CID 212]
12836 * argp/Makefile: Add rules to build and run bug-argp1.
12837 * argp/bug-argp1.c: New file.
12839 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12841 * stdlib/canonicalize.c (__realpath): Likewise.
12843 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12844 pointer. [Coverity CID 206]
12846 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12847 in statically linked code.
12848 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12849 statically built code, be prepared to have no link map.
12852 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12853 dgettext calls. [Coverity CID 204]
12855 * argp/argp-help.c (struct uparams): Remove valid member. Change
12857 (uparam_names): Reduce size. Avoid relative relocations.
12858 Moved to read-only segment.
12859 (fill_in_uparams): Update for new layout.
12861 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12862 assumed to always be != NULL. [Coverity CID 202]
12864 * argp/argp-help.c (hol_entry_help): Remove some dead code
12865 [Coverity CID 200].
12867 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12868 away a few more unconditional yperr2nss calls.
12869 (_nss_nis_getservbyname_r): Likewise.
12871 2006-05-06 Ulrich Drepper <drepper@redhat.com>
12873 * sysdeps/generic/ldsodefs.h: Remove support for non-core
12876 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12877 that unused memory passed to sendto is nevertheless initialized.
12880 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12881 possibly unaligned memory accesses.
12883 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12884 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12885 and __putlong respectively. Correct buffer overflow check for
12888 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12890 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12891 (send_dg): Rewrite error handling to be more compact and avoid
12892 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
12894 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12896 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12897 instead of ns_get16.
12898 (res_queriesmatch): Likewise. Minor optimization.
12901 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12902 __libc_res_nsend might reallocate the buffer for the answer. In
12903 this case we have to reload the HP pointer.
12905 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12907 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
12908 some branch prediction hints.
12910 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12911 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12912 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12913 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12914 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12915 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12916 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12917 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12919 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
12921 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12922 by a GOT relocation to make Scrt1.o position independent.
12923 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12925 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12926 six system call parameters.
12927 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12929 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12931 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12934 * sunrpc/svc_udp.c (BZERO): Remove definition.
12936 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12938 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
12939 (des_SPtrans): Use uint32_t type.
12940 (des_skb): Likewise.
12942 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12944 2006-05-05 Jakub Jelinek <jakub@redhat.com>
12947 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12950 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12952 * locale/programs/ld-address.c (address_finish): Fix one more
12953 place where the iso639 array might be accessed beyond the limits.
12955 2006-05-04 Ulrich Drepper <drepper@redhat.com>
12957 * nis/nis_table.c (nis_list): Avoid clearing res twice before
12958 filling it for the first time.
12960 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12961 Adjust all callers.
12962 Free res object content before returning.
12964 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12966 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12969 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12970 cleanup for initial thread, just the free call on TVP.
12972 * nscd/gai.c (__getline): Define.
12975 See ChangeLog.16 for earlier changes.