1 2009-10-01 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
5 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12 2009-09-28 Andreas Schwab <schwab@redhat.com>
14 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
15 * stdio-common/vfprintf.c: Likewise.
17 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
20 (mkdirat): Call __directory_name_split_at instead of
21 __directory_name_split.
23 2009-09-28 Ulrich Drepper <drepper@redhat.com>
25 * locale/programs/locale-spec.c (locale_special): If nothing matches
26 fail with an appropriate message.
28 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
30 * configure.in: Exclude binutils 2.X. Support binutils 2.100
33 2009-09-25 Andreas Schwab <schwab@redhat.com>
35 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
36 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
38 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
40 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
42 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
44 * iconvdata/iso646.c (gconv_init): Correctly initialize the
45 character size elements in step data.
47 2009-09-20 Ulrich Drepper <drepper@redhat.com>
49 * po/hu.po: Update from translation team.
52 2009-09-19 Roland McGrath <roland@redhat.com>
54 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
56 2009-09-15 Roland McGrath <roland@redhat.com>
58 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
59 * nptl/sysdeps/pthread/configure: Regenerated.
60 * nptl/sysdeps/x86_64/configure: Regenerated.
61 * sysdeps/unix/sysv/linux/configure: Regenerated.
62 * sysdeps/x86_64/elf/configure: Regenerated.
64 * Makefile (autoconf-it): Set execute bit only on top-level configure.
66 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
67 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
68 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
69 * configure: Regenerated.
71 2009-09-09 Ulrich Drepper <drepper@redhat.com>
73 * posix/getconf.c (main): Handle -- on command line.
75 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
77 * configure.in: Support binutils 2.100 and 3.0.
79 2009-09-08 Jakub Jelinek <jakub@redhat.com>
81 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
82 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
83 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
84 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
86 2009-09-07 Ulrich Drepper <drepper@redhat.com>
88 * locale/programs/ld-collate.c (struct locale_collate_t): Add
89 unnamed_section_defined field.
90 (collate_read): Test and set unnamed_section_defined.
92 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
95 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
97 * configure.in: Support binutils 2.20.
99 2009-09-03 Ulrich Drepper <drepper@redhat.com>
101 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
102 __strstr_ia32): Add attribute_hidden.
104 2009-09-01 Andreas Schwab <schwab@redhat.com>
106 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
107 parsing of group entry.
109 2009-09-02 Andreas Schwab <schwab@redhat.com>
111 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
112 external buffer. Always discard readahead in internal buffer.
113 * libio/Makefile (tests): Add bug-wsetpos.
114 * libio/bug-wsetpos.c: New file.
116 2009-09-02 Jakub Jelinek <jakub@redhat.com>
118 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
119 Add attribute_hidden.
120 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
121 __strcasestr_sse2): Likewise.
122 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
123 (__fma_fma): Make static.
124 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
125 (__fmaf_fma): Make static.
127 2009-08-31 Andreas Schwab <schwab@redhat.com>
129 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
130 reformulate in-buffer optimisation check to match code in
131 _IO_new_file_seekoff.
133 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
135 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
136 to srwi in 32-bit memcpy for power6.
138 2009-09-01 Andreas Schwab <schwab@redhat.com>
140 * include/stdio.h: Declare hidden proto for fflush.
141 * libio/iofflush.c: Add hidden weak alias for fflush.
143 2009-09-01 Jakub Jelinek <jakub@redhat.com>
145 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
146 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
148 2009-08-31 Andreas Schwab <schwab@redhat.com>
150 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
152 2009-08-31 Ulrich Drepper <drepper@redhat.com>
155 * malloc/malloc.c: Add local assert definition to avoid problems with
156 memory allocation in the real one.
158 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
160 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
162 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
163 turn off SSSE3 on Atom.
165 2009-08-28 Ulrich Drepper <drepper@redhat.com>
167 * stdlib/tst-strtol.c (tests): More tests.
168 * stdlib/tst-strtoll.c (tests): Likewise.
170 2009-08-26 Ulrich Drepper <drepper@redhat.com>
172 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
174 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
176 2009-08-25 Ulrich Drepper <drepper@redhat.com>
178 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
179 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
181 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
183 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
185 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
187 2009-08-25 Joseph Myers <joseph@codesourcery.com>
189 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
191 2009-08-25 Ulrich Drepper <drepper@redhat.com>
193 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
194 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
196 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
198 * sysdeps/x86_64/fpu/s_signbit.S: New file.
199 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
201 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
202 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
204 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
205 leftover YMM_SIZE definition.
207 2009-08-24 Ulrich Drepper <drepper@redhat.com>
209 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
211 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
212 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
214 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
216 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
217 and SET_FLOAT_WORD definitions.
219 2009-08-24 Roland McGrath <roland@redhat.com>
221 * sysdeps/unix/syscall-template.S: New file.
222 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
223 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
224 (compile-syscall): Pass mkdep and -g options as normal.
225 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
226 (common-generated): Don't add them here.
228 2009-08-24 Ulrich Drepper <drepper@redhat.com>
230 * math/s_fdim.c: In case of overflows set errno.
231 * math/s_fdimf.c: Likewise.
232 * math/s_fdiml.c: Likewise.
234 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
235 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
236 are using the inline optimizations.
238 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
239 (__signbitf): Likewise.
241 2009-08-23 Ulrich Drepper <drepper@redhat.com>
243 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
245 * posix/Makefile (tests): Add bug-regex29.
246 * posix/bug-regex29.c: New file.
248 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
249 older POSIX versions are selected.
251 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
253 * stdio-common/printf_fphex.c: Likewise.
254 * stdio-common/tstdiomisc.c: Add more tests.
256 * locale/locale.h: Include xlocale.h and the thread-local locale
257 declarations for XPG7, not XPG6.
259 2009-08-21 Andreas Schwab <schwab@redhat.com>
261 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
262 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
265 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
266 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
268 2009-08-20 Roland McGrath <roland@redhat.com>
270 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
271 Use l_addr instead of l_map_start (dli_fbase).
272 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
273 address when there is no proximate symbol.
274 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
277 2009-08-16 Ulrich Drepper <drepper@redhat.com>
279 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
281 2009-08-14 Ulrich Drepper <drepper@redhat.com>
283 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
284 Also handle SIGINT. In that case only do the cleanup and then
286 (main): Install handler for SIGINT.
288 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
290 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
293 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
295 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
296 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
298 (tests): Add tst-audit6 tst-audit7.
299 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
300 tst-auditmod7a tst-auditmod7b.
301 ($(objpfx)tst-audit6): New.
302 ($(objpfx)tst-audit6.out): Likewise.
303 ($(objpfx)tst-audit7): Likewise.
304 ($(objpfx)tst-audit7.out): Likewise.
305 (tst-audit6-ENV): Likewise.
306 (tst-audit7-ENV): Likewise.
307 (CFLAGS-tst-auditmod6b.c): Likewise.
308 (CFLAGS-tst-auditmod6c.c): Likewise.
309 (CFLAGS-tst-auditmod7b.c): Likewise.
310 * elf/tst-audit6.c: New file.
311 * elf/tst-audit7.c: New file.
312 * elf/tst-auditmod6a.c: New file.
313 * elf/tst-auditmod6b.c: New file.
314 * elf/tst-auditmod6c.c: New file.
315 * elf/tst-auditmod7a.c: New file.
316 * elf/tst-auditmod7b.c: New file.
317 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
318 saving and restoring SSE/AVX registers to ...
319 * sysdeps/x86_64/dl-trampoline.h: This. New file.
321 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
323 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
324 only if SHARED is defined.
325 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
327 2009-08-03 Jim Meyering <meyering@redhat.com>
329 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
331 2009-08-08 Ulrich Drepper <drepper@redhat.com>
333 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
334 section as the other functions for this architecture.
335 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
337 2009-08-07 Ulrich Drepper <drepper@redhat.com>
339 * sysdeps/x86_64/strcmp.S: Add support to compile with
340 USE_SSSE3. In this case palignr is used.
341 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
342 available but SSSE3 is, pick __str{,n}cmp_ssse3.
343 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
344 Add strcmp-ssse3 and strncmp-ssse3.
345 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
346 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
348 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
349 warning through fake initialization.
351 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
353 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
355 2009-08-07 Andreas Schwab <schwab@redhat.com>
357 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
360 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
362 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
363 EBX from EAX = 1. Handle EAX = 11.
365 2009-08-07 Andreas Schwab <schwab@redhat.com>
367 * Makefile (TAGS): Use separate sed -e expressions to avoid \
370 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
372 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
373 hidden IFUNC functions.
374 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
376 * sysdeps/i386/i686/multiarch/strlen.S: New file.
378 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
379 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
381 (CFLAGS-strcspn-c.c): Define.
382 (CFLAGS-strpbrk-c.c): Define.
383 (CFLAGS-strspn-c.c): Define.
384 (CFLAGS-strstr.c): Define.
385 (CFLAGS-strcasestr.c): Define.
386 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
387 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
388 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
389 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
390 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
391 * sysdeps/i386/i686/multiarch/strspn.S: New file.
392 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
393 * sysdeps/i386/i686/multiarch/strstr.c: New file.
394 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
395 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
396 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
397 -16L instead of 0xfffffffffffffff0L.
398 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
400 2009-08-02 Ulrich Drepper <drepper@redhat.com>
402 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
404 2009-07-31 Ulrich Drepper <drepper@redhat.com>
406 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
407 another rewrite. Much smaller and faster.
408 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
410 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
411 ss_flags from the correct location.
413 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
415 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
416 * sysdeps/i386/i686/cacheinfo.c: New file.
417 * sysdeps/i386/i686/multiarch/Makefile: New file.
418 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
419 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
420 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
421 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
422 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
423 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
424 (__cpuid_count): New. Provide the default.
425 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
426 (__x86_64_preferred_memory_instruction): Define only if
427 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
428 (intel_check_word): Use __cpuid.
429 (handle_intel): Likewise.
430 (handle_amd): Likewise.
431 (__cache_sysconf): Likewise.
432 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
433 (__cache_sysconf): Likewise.
434 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
435 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
436 (get_common_indeces): Use __cpuid.
437 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
438 if ENABLE_SSSE3_ON_ATOM is not defined.
439 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
440 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
441 popcnt instead of popcntq.
443 2009-07-31 Jakub Jelinek <jakub@redhat.com>
445 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
447 2009-07-30 Ulrich Drepper <drepper@redhat.com>
449 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
450 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
451 which always causes a compile error.
453 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
455 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
457 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
458 which always causes a compile error.
460 * debug/Makefile (tests): Add tst-longjmp_chk2.
461 * debug/tst-longjmp_chk2.c: New file.
463 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
464 Remove incorrect use of BP_SYM.
465 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
466 here now since it is more complex than just a simple check.
468 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
469 we make no more progress.
471 2009-07-29 Ulrich Drepper <drepper@redhat.com>
473 * math/s_fma.c: Don't define alias if __fma is a macro.
474 * math/s_fmaf.c: Likewise.
475 * sysdeps/x86_64/multiarch/s_fma.c: New file.
476 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
477 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
479 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
480 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
482 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
484 * include/libc-symbols.h (libm_ifunc): Define.
485 * sysdeps/x86_64/multiarch/Versions: New file.
487 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
489 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
491 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
493 2009-07-29 Ulrich Drepper <drepper@redhat.com>
495 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
496 call that registers used in calling conventions need to be preserved.
497 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
498 to preserve register content if necessary.
499 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
500 (_dl_x86_64_restore_sse): New function.
501 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
502 is allowed to modify xmm/ymm registers.
504 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
505 application's perspective.
506 * stdio-common/scanf17.c: Likewise.
508 2009-07-28 Ulrich Drepper <drepper@redhat.com>
510 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
512 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
514 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
515 two steps to catch bugs.
517 2009-07-27 Ulrich Drepper <drepper@redhat.com>
519 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
520 determines which files are used in runtime lookups and only checks
522 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
524 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
525 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
526 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
529 * elf/dl-open.c: Move _dl_scope_free to...
530 * elf/dl-scope.c: ...here. New file.
531 * elf/Makefile (dl-routines): Add scope.
533 * resolv/resolv.h (RES_USE_DNSSEC): Define.
534 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
536 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
537 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
538 all the places we handled RES_USE_EDNS0 only before.
539 Patch by Adam Tkac <atkac@redhat.com>.
541 2009-07-27 Jakub Jelinek <jakub@redhat.com>
543 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
544 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
545 Update size when reallocating.
547 2009-07-26 Ulrich Drepper <drepper@redhat.com>
549 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
550 functions used in ld.so modify xmm/ymm registers.
551 * sysdeps/x86_64/Makefile: Hook new test up.
552 * sysdeps/x86_64/rtld-memchr.c: New file.
553 * sysdeps/x86_64/rtld-memcmp.c: New file.
554 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
555 * sysdeps/x86_64/rtld-strchr.S: New file.
556 * sysdeps/x86_64/rtld-strlen.S: New file.
557 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
558 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
560 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
562 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
564 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
572 (next_8_bytes): Likewise.
573 (Byte0): Remove commented out codes.
574 (unaligned_table): Align jump table at 8 bytes.
575 Add _sse4_2 to all labels. Always include "../strcmp.S".
576 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
577 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
578 * sysdeps/x86_64/strncmp.S: New file.
580 2009-07-26 Ulrich Drepper <drepper@redhat.com>
583 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
584 kernels, dropped when eventfd2 support was added.
585 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
586 kernels, dropped when signalfd4 support was added.
587 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
591 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
594 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
596 2009-07-25 Ulrich Drepper <drepper@redhat.com>
598 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
599 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
602 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
603 callback we must touch the status to avoid using stale value.
605 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
608 2009-07-24 Ulrich Drepper <drepper@redhat.com>
610 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
611 /lib/modules/* headers anymore. We have sane headers in the standard
614 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
616 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
617 "etf3enh" and "highgprs" added.
618 (_dl_s390_platforms): "z10" added.
619 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
620 Increased for the new entries.
621 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
622 HWCAP_S390_HIGH_GPRS added.
624 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
625 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
626 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
627 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
628 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
630 2009-07-23 Ulrich Drepper <drepper@redhat.com>
632 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
633 avoid additional cpuid instructions. Most of the information is
636 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
638 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
640 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
642 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
645 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
646 structure before copying it to avoid warning.
647 * posix/tst-rfc3484-2.c (do_test): Likewise.
648 * posix/tst-rfc3484-3.c (do_test): Likewise.
651 * include/unistd.h: Make header file suitable for C++ test cases.
652 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
654 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
655 stack alignment in the exit code.
657 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
660 * elf/tst-unique1.c: Extend test to check for unloading DSO with
661 unique symbol definition.
662 Patch by Jakub Jelinek.
663 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
664 make sure the object with the definition cannot be unloaded. Adjust
666 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
667 the unique symbol hash table should not be const.
669 2009-07-21 Ulrich Drepper <drepper@redhat.com>
671 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
672 unnecesary variables. Comment fixes.
674 2009-07-20 Ulrich Drepper <drepper@redhat.com>
676 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
677 Use NONASCII_CASE information provided by the locale to determine
678 whether optimized string load function can be used. Minor cleanups.
680 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
682 * string/strcasestr.c (STRCASESTR): New macro.
683 (__strcasestr): Renamed to ..
684 (STRCASESTR): ...this.
685 * string/strstr.c (STRSTR): New macro.
686 (strstr): Renamed to ..
688 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
689 strstr-c strcasestr-c
690 (CFLAGS-strstr.c): New.
691 (CFLAGS-strcasestr.c): Likewise.
692 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
693 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
694 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
695 * sysdeps/x86_64/multiarch/strstr.c: New file.
697 2009-07-20 Ulrich Drepper <drepper@redhat.com>
699 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
700 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
701 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
702 _NL_CTYPE_NONASCII_CASE.
703 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
705 (ctype_finish): Check whether there are any 8-bit characters outside
706 the range ASCII has or whether the mapping isn't the same as for
707 ASCII (±0x20). Set nonascii_case appropriately.
708 (ctype_output): Add output handler for nonascii_case.
710 2009-07-17 Ulrich Drepper <drepper@redhat.com>
712 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
713 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
715 2009-07-16 Ulrich Drepper <drepper@redhat.com>
718 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
719 0xffff in the EDNS0 record.
721 2009-07-16 Ulrich Drepper <drepper@redhat.com>
723 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
724 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
725 is written before the list head update.
726 Patch by Andreas Schwab <aschwab@redhat.com>.
728 2009-07-16 Ulrich Drepper <drepper@redhat.com>
729 Jakub Jelinek <jakub@redhat.com>
731 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
732 corruption thread-safe.
734 2009-07-13 Jakub Jelinek <jakub@redhat.com>
736 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
737 overrides atomic_compare_and_exchange_val_rel, define to
738 atomic_compare_and_exchange_val_rel by default, otherwise default
739 to catomic_compare_and_exchange_val_acq.
740 (catomic_compare_and_exchange_bool_rel): If arch overrides
741 atomic_compare_and_exchange_bool_rel, define to
742 atomic_compare_and_exchange_bool_rel by default.
743 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
744 Use catomic_compare_and_exchange_val_rel instead of
745 catomic_compare_and_exchange_val_acq.
747 2009-07-16 Ulrich Drepper <drepper@redhat.com>
749 * sysdeps/generic/ldsodefs.h: Add prototype for
750 _dl_higher_prime_number.
751 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
753 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
754 restoring of ymm registers a bit.
756 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
758 * sysdeps/x86_64/memcmp.S: New file.
760 2009-07-15 Ulrich Drepper <drepper@redhat.com>
762 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
763 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
764 pointers in writable memory.
766 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
768 * config.h.in: Add HAVE_AVX_SUPPORT entry.
769 * config.make.in: Add config-cflags-avx entry.
770 * configure.in: Substitute libc_cv_cc_avx.
771 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
772 * elf/tst-audit4.c: New file.
773 * elf/tst-audit5.c: New file.
774 * elf/tst-auditmod4a.c: New file.
775 * elf/tst-auditmod4b.c: New file.
776 * elf/tst-auditmod5a.c: New file.
777 * elf/tst-auditmod5b.c: New file.
778 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
780 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
781 (La_x86_64_vector): Likewise.
782 (La_x86_64_regs): Append lr_vector.
783 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
784 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
785 saving and restoring SSE registers to ...
786 * sysdeps/x86_64/dl-trampoline.h: This. New file.
787 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
789 (_dl_runtime_profile): Use LR_SIZE to allocate space for
790 La_x86_64_regs. Allocate extra space and jump to memory at
791 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
792 (save_and_restore_vector_sse): New.
793 (save_and_restore_vector_avx): Likewise.
794 (check_avx): Likewise.
795 (save_and_restore_vector): Likewise.
796 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
798 * sysdeps/x86_64/link-defines.sym: New file.
800 2009-07-10 Ulrich Drepper <drepper@redhat.com>
802 * elf/do-lookup.h: Removed after folding content into...
803 * elf/dl-lookup.c: ...here.
805 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
807 2009-07-09 Ulrich Drepper <drepper@redhat.com>
809 * configure.in: Check for gnu_unique_symbol symbol type.
810 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
811 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
812 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
813 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
815 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
817 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
819 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
820 unique symbol hash table.
821 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
822 * elf/tst-unique1.c: New file.
823 * elf/tst-unique1mod1.c: New file.
824 * elf/tst-unique1mod2.c: New file.
825 * elf/tst-unique2.c: New file.
826 * elf/tst-unique2mod1.c: New file.
827 * elf/tst-unique2mod2.c: New file.
829 2009-07-07 Ulrich Drepper <drepper@redhat.com>
831 * elf/elf.h (STB_GNU_UNIQUE): Define.
833 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
835 * include/inline-hashtab.h: ...here.
836 (htab_expand): Adjust for renamed function. Correct memory handling.
838 2009-07-06 Ulrich Drepper <drepper@redhat.com>
840 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
842 2009-07-03 Andreas Schwab <aschwab@redhat.com>
844 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
845 (PPC_FEATURE_HAS_VSX): Likewise.
847 2009-07-03 Ulrich Drepper <drepper@redhat.com>
849 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
850 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
852 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
853 aligned to 16 byte boundaries.
854 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
855 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
856 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
858 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
860 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
861 * config.make.in (config-cflags-sse4): New variable.
862 * configure.in: Substitute libc_cv_cc_sse4.
863 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
865 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
866 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
867 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
868 * sysdeps/x86_64/multiarch/strcspn.S: New file.
869 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
870 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
871 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
872 * sysdeps/x86_64/multiarch/strspn.S: New file.
874 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
876 * elf/Makefile (distribute): Remove tst-audit.sh. Add
877 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
878 (tests): Add tst-audit3 for x86_64.
879 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
880 ($(objpfx)tst-audit3): Define.
881 ($(objpfx)tst-audit3.out): Define.
882 (tst-audit3-ENV): Define.
883 * elf/tst-audit3.c: New file.
884 * elf/tst-auditmod3a.c: New file.
885 * elf/tst-auditmod3b.c: New file.
886 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
889 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
890 (__stpncpy): Renamed to ...
892 (stpncpy): Create alias only if STPNCPY is not defined.
893 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
895 (strncpy): Renamed to ...
897 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
898 stpncpy-c strncpy-c for string.
899 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
900 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
901 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
902 * sysdeps/x86_64/multiarch/strcpy.S: New file.
903 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
904 * sysdeps/x86_64/multiarch/strncpy.S: New file.
906 2009-07-02 Ulrich Drepper <drepper@redhat.com>
908 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
909 adding to fast bin list.
911 2009-07-01 Ulrich Drepper <drepper@redhat.com>
913 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
914 inet_makeaddr. This worked only with class-based networks.
915 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
918 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
920 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
921 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
922 be in host byte order.
924 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
926 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
927 (MODEL_OFFSET): Define.
928 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
930 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
931 out common code into new function get_common_indeces. Determine
932 extended family and model for Intel processors.
934 2009-06-26 Ulrich Drepper <drepper@redhat.com>
936 * resolv/resolv.h: Define RES_SNGLKUPREOP.
937 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
939 * resolv/res_send.c (reopen): New function. Broken out of...
940 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
941 fallback mechanism. If single-request fails switch to
942 single-request-reopen mode which opens a new socket for the second
945 2009-06-25 Andreas Schwab <aschwab@redhat.com>
947 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
950 2009-06-24 Andreas Schwab <aschwab@redhat.com>
952 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
954 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
955 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
956 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
958 2009-06-23 Andreas Schwab <aschwab@redhat.com>
960 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
962 2009-06-22 Ulrich Drepper <drepper@redhat.com>
964 * po/id.po: Update from translation team.
966 * po/bg.po: Update from translation team.
968 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
970 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
972 (strncmp): Renamed to STRNCMP.
973 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
974 strncmp-c for string.
975 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
976 * sysdeps/x86_64/multiarch/strcmp.S: New file.
977 * sysdeps/x86_64/multiarch/strncmp.S: New file.
978 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
980 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
982 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
983 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
984 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
985 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
986 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
988 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
989 ifuncmain7static, and ifuncmain7picstatic.
990 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
991 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
992 $(objpfx)ifuncmain7pie.out.
993 (modules-names): Add ifuncmod5 ifuncmod6
994 (ifuncmod5.so-no-z-defs): Define.
995 (ifuncmod6.so-no-z-defs): Define.
996 (CFLAGS-ifuncmain5pic.c): Define.
997 (CFLAGS-ifuncmain5picstatic.c): Define.
998 (CFLAGS-ifuncmain5staticpic.c): Define.
999 (CFLAGS-ifuncdep5pic.c): Define.
1000 (CFLAGS-ifuncmain7pic.c): Define.
1001 (CFLAGS-ifuncmain7picstatic.c): Define.
1002 (CFLAGS-ifuncmain1staticpie.c): Define.
1003 (CFLAGS-ifuncmain5pie.c): Define.
1004 (CFLAGS-ifuncmain6pie.c): Define.
1005 (CFLAGS-ifuncmain7pie.c): Define.
1006 ($(objpfx)ifuncmain1staticpie.out): Define.
1007 ($(objpfx)ifuncmain1staticpie): Define.
1008 ($(objpfx)ifuncmain5pie.out): Define.
1009 ($(objpfx)ifuncmain5pie): Define.
1010 ($(objpfx)ifuncmain6pie.out): Define.
1011 ($(objpfx)ifuncmain6pie): Define.
1012 ($(objpfx)ifuncmain5): Define.
1013 ($(objpfx)ifuncmain5pic): Define.
1014 ($(objpfx)ifuncmain5static): Define.
1015 ($(objpfx)ifuncmain5staticpic): Define.
1016 ($(objpfx)ifuncmain5picstatic): Define.
1017 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1018 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1020 * elf/b/elf/ifuncmain1staticpie.c: New file.
1021 * elf/ifuncdep5.c: New file.
1022 * elf/ifuncdep5pic.c: New file.
1023 * elf/ifuncmain5.c: New file.
1024 * elf/ifuncmain5pic.c: New file.
1025 * elf/ifuncmain5picstatic.c: New file.
1026 * elf/ifuncmain5pie.c: New file.
1027 * elf/ifuncmain5static.c: New file.
1028 * elf/ifuncmain5staticpic.c: New file.
1029 * elf/ifuncmain6pie.c: New file.
1030 * elf/ifuncmain7.c: New file.
1031 * elf/ifuncmain7pic.c: New file.
1032 * elf/ifuncmain7picstatic.c: New file.
1033 * elf/ifuncmain7pie.c: New file.
1034 * elf/ifuncmain7static.c: New file.
1035 * elf/ifuncmod5.c: New file.
1036 * elf/ifuncmod6.c: New file.
1038 2009-06-20 Ulrich Drepper <drepper@redhat.com>
1041 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1042 (nss_endgrent): New variable.
1043 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1044 fields. Change type of files to bool and adjust all users.
1045 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1046 (internal_endgrent): Call nss_endgrent if necessary.
1047 (add_group): New function. Broken out of...
1048 (check_and_add_group): ...here.
1049 (getgrent_next_nss): Remove test that any callback is available.
1050 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1051 callback. If there is no blacklist we can trust the results returned
1052 by the initgroups_dyn callback. In case there is a callback and we
1053 find a group entry for the group ID but it doesn't contain the
1054 correct member, switch to the slow mode and use getgrent_r.
1055 (internal_getgrent_r): When we see a +: entry, determine whether
1056 there is any callback and which we can use the initgroups_dyn
1059 2009-06-18 Ulrich Drepper <drepper@redhat.com>
1061 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1062 (_int_free): Likewise.
1064 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1066 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1067 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1068 and ARPHRD_IEEE802154_PHY.
1070 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1071 relative to generic Linux version.
1073 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1075 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1076 ($(objpfx)ifuncmain1vispie): Likewise.
1078 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1080 * login/Makefile: Build pt_chown as PIE.
1082 2009-06-15 Andreas Schwab <aschwab@redhat.com>
1084 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1086 * elf/sln.c (usage): Likewise.
1087 * malloc/memusage.sh (do_help): Likewise.
1088 * nss/getent.c (more_help): Likewise.
1089 * posix/getconf.c (main): Likewise.
1090 * sunrpc/rpcinfo.c (usage): Likewise.
1091 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1093 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1095 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1097 * login/Makefile: If necessary link pt_chown with -lcap.
1098 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1099 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1101 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1103 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1105 * string/test-memchr.c (do_random_tests): Test very large lengths
1108 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1110 * Makeconfig (+link-pie): Define.
1111 (+prectorS): Define.
1112 (+postctorS): Define.
1113 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1114 * nscd/Makefile ($(objpfx)nscd): Likewise.
1116 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1119 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1121 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1123 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1125 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1127 * sysdeps/unix/grantpt.c: ...here.
1129 2009-06-15 Ulrich Drepper <drepper@redhat.com>
1131 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1132 chmod if it is necessary.
1135 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1136 when the slave device is in devpts or devfs.
1139 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1142 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1143 of nd_opt_home_agent_info_preference to uint16_t.
1144 Patch by Arnaud Ebalard <arno@natisbad.org>.
1147 * nss/getent.c: Add support for printing gshadow data.
1150 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1151 not just the currently used one and those which follow.
1152 Patch by Joe Landers <jlanders@vmware.com>.
1155 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1156 * libio/Makefile: Run tst-fgetwc with necessary envvar.
1157 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1160 * stdlib/abort.c: Define variable __abort_msg.
1161 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1162 * include/stdlib.h: Declare __abort_msg.
1163 * assert/assert-perr.c: Don't free buffer for message immediately.
1164 Store atomically in __abort_msg and free old buffer if necessary.
1165 * assert/assert.c: Likewise.
1166 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1167 store pointer in __abort_msg, and possibly free old string.
1168 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1170 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1173 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1174 handle leap seconds if they are available.
1175 Patch by Akinori Hattori <hattya@gentoo.org>.
1177 * timezone/tzselect.ksh: Update from tzcode2009i.
1178 * timezone/zdump.c: Likewise.
1179 * timezone/zic.c: Likewise.
1181 * timezone/africa: Update from tzdata2009i.
1182 * timezone/antarctica: Likewise.
1183 * timezone/asia: Likewise.
1184 * timezone/australasia: Likewise.
1185 * timezone/backward: Likewise.
1186 * timezone/etcetera: Likewise.
1187 * timezone/europe: Likewise.
1188 * timezone/factory: Likewise.
1189 * timezone/iso3166.tab: Likewise.
1190 * timezone/leapseconds: Likewise.
1191 * timezone/northamerica: Likewise.
1192 * timezone/pacificnew: Likewise.
1193 * timezone/solar87: Likewise.
1194 * timezone/solar88: Likewise.
1195 * timezone/solar89: Likewise.
1196 * timezone/southamerica: Likewise.
1197 * timezone/systemv: Likewise.
1198 * timezone/yearistype: Likewise.
1199 * timezone/zone.tab: Likewise.
1201 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1203 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1204 STT_GNU_IFUNC symbol or in 8 into type_class.
1206 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1207 instead of Elf64_Addr.
1209 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1211 * po/sv.po: Update from translation team.
1214 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1215 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1216 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1219 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1221 * Versions.def: Add GLIBC_2.11 for libpthread.
1223 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1225 * resolv/res_send.c (send_dg): Remember we switched to
1226 single-request mode.
1228 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1230 * dlfcn/dlfcn.h: Remove comma at end of enum.
1231 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1233 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1234 parsing mode string.
1236 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1238 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1240 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1242 * sysdeps/x86_64/multiarch/strlen.S: New file.
1243 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1244 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1245 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1248 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1251 2009-06-04 Ulrich Drepper <drepper@redhat.com>
1253 * sysdeps/x86_64/strlen.S: Minor optimizations.
1255 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1257 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1258 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1259 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1260 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1261 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1262 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1263 ifuncmain3.c, ifuncmod3.c,.
1264 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1265 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1266 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1267 ifuncmain4picstatic.
1268 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1269 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1270 ifuncmain3, ifuncmain4.
1271 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1272 $(objpfx)ifuncmain1vispie.out.
1273 (modules-names): Add ifuncmod1 ifuncmod3.
1274 (generated): Add ifuncmain1pie ifuncmain1pie.out
1275 ifuncmain1vispie ifuncmain1vispie.out.
1276 Define rules to build and run the tests.
1277 * elf/ifuncdep1.c: New file.
1278 * elf/ifuncdep1pic.c: New file.
1279 * elf/ifuncdep2.c: New file.
1280 * elf/ifuncdep2pic.c: New file.
1281 * elf/ifuncmain1.c: New file.
1282 * elf/ifuncmain1pic.c: New file.
1283 * elf/ifuncmain1picstatic.c: New file.
1284 * elf/ifuncmain1pie.c: New file.
1285 * elf/ifuncmain1static.c: New file.
1286 * elf/ifuncmain1staticpic.c: New file.
1287 * elf/ifuncmain1vis.c: New file..
1288 * elf/ifuncmain1vispic.c: New file..
1289 * elf/ifuncmain1vispie.c: New file.
1290 * elf/ifuncmain2.c: New file.
1291 * elf/ifuncmain2pic.c: New file.
1292 * elf/ifuncmain2picstatic.c: New file.
1293 * elf/ifuncmain2static.c: New file.
1294 * elf/ifuncmain3.c: New file.
1295 * elf/ifuncmain4.c: New file.
1296 * elf/ifuncmain4picstatic.c: New file.
1297 * elf/ifuncmain4static.c: New file.
1298 * elf/ifuncmod1.c: New file.
1299 * elf/ifuncmod3.c: New file.
1301 2009-06-03 Ulrich Drepper <drepper@redhat.com>
1303 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1305 2009-06-02 Ulrich Drepper <drepper@redhat.com>
1308 * posix/Makefile (routines): Add execvpe.
1309 * posix/Versions: Export execvpe for GLIBC_2.11.
1310 * posix/execvp.c: Now only a wrapper. Move code to...
1311 * posix/execvpe.c: ...here. New file.
1312 * posix/unistd.h: Declare execvpe.
1314 2009-06-01 Ulrich Drepper <drepper@redhat.com>
1316 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1317 for STT_GNU_IFUNC handling for efficiency.
1318 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1320 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1322 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1324 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1326 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1329 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1331 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1333 (__rela_iplt_start): New declaration.
1334 (__rela_iplt_end): Likewise.
1335 (__rel_iplt_start): Likewise.
1336 (__rel_iplt_end): Likewise.
1337 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1338 * elf/elf.h (R_386_IRELATIVE): New macro.
1339 (R_X86_64_IRELATIVE): New macro.
1340 (R_386_NUM): Updated.
1341 (R_X86_64_NUM): Likewise.
1342 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1343 (libc_ifunc_hidden_def): New macro.
1344 * sysdeps/generic/dl-irel.h: New file.
1345 * sysdeps/i386/dl-irel.h: New file.
1346 * sysdeps/x86_64/dl-irel.h: New file.
1347 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1348 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1349 Handle R_386_IRELATIVE.
1350 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1351 (elf_machine_lazy_rela): Likewise.
1352 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1354 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1356 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1358 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1359 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1360 are no differences. If an architecture has bits in CPUID index 1
1361 meaning different things the values for the COMMON_CPUID_INDEX_1
1362 index must not be set.
1363 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1364 (HAS_POPCOUNT): ...this. New macro.
1365 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1366 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1367 to set the value for Intel and AMD architectures.
1368 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1369 INTEL_CPUID_INDEX_1.
1370 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1373 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1375 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1378 2009-05-29 Jakub Jelinek <jakub@redhat.com>
1380 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1381 (__expm1l): Set errno to ERANGE on overflow.
1382 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1383 (__tanl): Set errno to EDOM for ±Inf.
1384 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1385 (__cosl): Set errno to EDOM for ±Inf.
1386 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1387 (__sinl): Set errno to EDOM for ±Inf.
1389 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1391 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1392 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1393 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1395 2009-05-29 Ulrich Drepper <drepper@redhat.com>
1397 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1399 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1401 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
1403 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
1404 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1405 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1406 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1408 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1409 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1410 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1412 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1413 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1415 2009-05-22 Jakub Jelinek <jakub@redhat.com>
1417 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1418 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1419 is, either do nothing at all if __ASSUME_ACCEPT4, or
1420 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1421 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1422 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1424 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1425 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1426 internal_accept4 in socket directory.
1428 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1430 * sysdeps/ia64/configure.in: New file.
1432 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1435 * sysdeps/ia64/memchr.S: Use speculative load.
1437 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1438 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1441 * sysdeps/i386/__longjmp.S: Add .text.
1442 * sysdeps/x86_64/__longjmp.S: Likewise.
1444 2009-05-21 Ulrich Drepper <drepper@redhat.com>
1446 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1447 __ASSUME_ACCEPT4 for IA-64.
1449 2009-05-21 Jakub Jelinek <jakub@redhat.com>
1451 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1453 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1454 (SOCKOP_accept4): Define.
1456 2009-05-20 Ulrich Drepper <drepper@redhat.com>
1458 Sun approved the change of the license.
1459 * sunrpc/auth_des.c: Replace license text.
1460 * sunrpc/auth_none.c: Likewise.
1461 * sunrpc/auth_unix.c: Likewise.
1462 * sunrpc/authdes_prot.c: Likewise.
1463 * sunrpc/authuxprot.c: Likewise.
1464 * sunrpc/bindrsvprt.c: Likewise.
1465 * sunrpc/clnt_gen.c: Likewise.
1466 * sunrpc/clnt_perr.c: Likewise.
1467 * sunrpc/clnt_raw.c: Likewise.
1468 * sunrpc/clnt_simp.c: Likewise.
1469 * sunrpc/clnt_tcp.c: Likewise.
1470 * sunrpc/clnt_udp.c: Likewise.
1471 * sunrpc/clnt_unix.c: Likewise.
1472 * sunrpc/des_crypt.c: Likewise.
1473 * sunrpc/des_soft.c: Likewise.
1474 * sunrpc/get_myaddr.c: Likewise.
1475 * sunrpc/getrpcport.c: Likewise.
1476 * sunrpc/key_call.c: Likewise.
1477 * sunrpc/key_prot.c: Likewise.
1478 * sunrpc/openchild.c: Likewise.
1479 * sunrpc/pm_getmaps.c: Likewise.
1480 * sunrpc/pm_getport.c: Likewise.
1481 * sunrpc/pmap_clnt.c: Likewise.
1482 * sunrpc/pmap_prot.c: Likewise.
1483 * sunrpc/pmap_prot2.c: Likewise.
1484 * sunrpc/pmap_rmt.c: Likewise.
1485 * sunrpc/rpc/auth.h: Likewise.
1486 * sunrpc/rpc/auth_unix.h: Likewise.
1487 * sunrpc/rpc/clnt.h: Likewise.
1488 * sunrpc/rpc/des_crypt.h: Likewise.
1489 * sunrpc/rpc/key_prot.h: Likewise.
1490 * sunrpc/rpc/netdb.h: Likewise.
1491 * sunrpc/rpc/pmap_clnt.h: Likewise.
1492 * sunrpc/rpc/pmap_prot.h: Likewise.
1493 * sunrpc/rpc/pmap_rmt.h: Likewise.
1494 * sunrpc/rpc/rpc.h: Likewise.
1495 * sunrpc/rpc/rpc_des.h: Likewise.
1496 * sunrpc/rpc/rpc_msg.h: Likewise.
1497 * sunrpc/rpc/svc.h: Likewise.
1498 * sunrpc/rpc/svc_auth.h: Likewise.
1499 * sunrpc/rpc/types.h: Likewise.
1500 * sunrpc/rpc/xdr.h: Likewise.
1501 * sunrpc/rpc_clntout.c: Likewise.
1502 * sunrpc/rpc_cmsg.c: Likewise.
1503 * sunrpc/rpc_common.c: Likewise.
1504 * sunrpc/rpc_cout.c: Likewise.
1505 * sunrpc/rpc_dtable.c: Likewise.
1506 * sunrpc/rpc_hout.c: Likewise.
1507 * sunrpc/rpc_main.c: Likewise.
1508 * sunrpc/rpc_parse.c: Likewise.
1509 * sunrpc/rpc_parse.h: Likewise.
1510 * sunrpc/rpc_prot.c: Likewise.
1511 * sunrpc/rpc_sample.c: Likewise.
1512 * sunrpc/rpc_scan.c: Likewise.
1513 * sunrpc/rpc_scan.h: Likewise.
1514 * sunrpc/rpc_svcout.c: Likewise.
1515 * sunrpc/rpc_tblout.c: Likewise.
1516 * sunrpc/rpc_util.c: Likewise.
1517 * sunrpc/rpc_util.h: Likewise.
1518 * sunrpc/rpcinfo.c: Likewise.
1519 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1520 * sunrpc/rpcsvc/key_prot.x: Likewise.
1521 * sunrpc/rpcsvc/klm_prot.x: Likewise.
1522 * sunrpc/rpcsvc/mount.x: Likewise.
1523 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1524 * sunrpc/rpcsvc/rex.x: Likewise.
1525 * sunrpc/rpcsvc/rstat.x: Likewise.
1526 * sunrpc/rpcsvc/rusers.x: Likewise.
1527 * sunrpc/rpcsvc/sm_inter.x: Likewise.
1528 * sunrpc/rpcsvc/spray.x: Likewise.
1529 * sunrpc/rpcsvc/yppasswd.x: Likewise.
1530 * sunrpc/rtime.c: Likewise.
1531 * sunrpc/svc.c: Likewise.
1532 * sunrpc/svc_auth.c: Likewise.
1533 * sunrpc/svc_authux.c: Likewise.
1534 * sunrpc/svc_raw.c: Likewise.
1535 * sunrpc/svc_run.c: Likewise.
1536 * sunrpc/svc_simple.c: Likewise.
1537 * sunrpc/svc_tcp.c: Likewise.
1538 * sunrpc/svc_udp.c: Likewise.
1539 * sunrpc/svc_unix.c: Likewise.
1540 * sunrpc/svcauth_des.c: Likewise.
1541 * sunrpc/xcrypt.c: Likewise.
1542 * sunrpc/xdr.c: Likewise.
1543 * sunrpc/xdr_array.c: Likewise.
1544 * sunrpc/xdr_float.c: Likewise.
1545 * sunrpc/xdr_mem.c: Likewise.
1546 * sunrpc/xdr_rec.c: Likewise.
1547 * sunrpc/xdr_ref.c: Likewise.
1548 * sunrpc/xdr_sizeof.c: Likewise.
1549 * sunrpc/xdr_stdio.c: Likewise.
1551 * po/da.po: Update from translation team.
1553 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1555 * sysdeps/sh/____longjmp_chk.S: New file.
1556 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1557 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1559 2009-05-18 Jakub Jelinek <jakub@redhat.com>
1560 Ulrich Drepper <drepper@redhat.com>
1562 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1563 (__nscd_cache_search): Assume each entry in the
1564 hash chain needs one hashentry and half of datahead. Use
1565 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1567 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1569 * posix/sys/wait.h: Fix typos. Pretty printing.
1570 * stdlib/stdlib.h: Likewise. Correct comments.
1573 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1575 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1578 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1580 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1581 Use it if we absolutely cannot reach any more correct list elements
1582 because that many do not fit into the currently mapped database.
1584 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1586 * nscd/nscd_helper.c: Include stddef.h.
1587 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
1588 in a couple of places. Return NULL if trail is not less than
1589 datasize, don't consider dataheads with length smaller than
1590 offsetof (struct datahead, data) + datalen.
1591 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1592 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1593 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1594 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1595 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1596 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1597 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1599 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1601 (fallocate64): ... to this.
1602 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1604 (fallocate64): ... to this.
1605 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1606 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1607 fallocate64@@GLIBC_2.10.
1608 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1609 fallocate64@@GLIBC_2.11.
1610 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1612 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1613 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1615 * nscd/selinux.c (nscd_avc_destroy): Removed.
1616 * nscd/selinux.h (nscd_avc_destroy): Likewise.
1617 * nscd/nscd.c (termination_handler): Don't call
1620 2009-05-12 Jakub Jelinek <jakub@redhat.com>
1622 * include/atomic.h: Formatting.
1623 (catomic_compare_and_exchange_val_acq): Don't define if already
1624 defined by bits/atomic.h.
1626 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1628 * math/libm-test.inc (expm1_test): Add test for range error.
1630 * Versions.def: Add GLIBC_2.11 for libc.
1631 * debug/Makefile (routines): Add longjmp_chk.
1632 Add rules to build and run tst-longjmp_chk.
1633 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1634 * debug/longjmp_chk.c: New file.
1635 * debug/tst-longjmp_chk.c: New file.
1636 * include/bits/setjmp2.: New file.
1637 * include/stdio.h: Mark __fortify_fail as internal_function.
1638 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1639 * setjmp/bits/setjmp2.h: New file.
1640 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1642 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1644 * sysdeps/i386/____longjmp_chk.S: New file.
1645 * sysdeps/x86_64/____longjmp_chk.S: New file.
1646 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1647 * sysdeps/x86_64/__longjmp.S: Likewise.
1649 * version.h: Bump for 2.11 development.
1651 * elf/check-execstack.c: New file.
1652 * elf/Makefile: Add rules to build and run check-execstack.
1654 2009-05-10 Ulrich Drepper <drepper@redhat.com>
1656 * version.h (VERSION): Bump to 2.10.1.
1658 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1659 compatibility functions.
1660 * nss/getXXent_r.c: Likewise.
1661 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1662 * gshadow/getsgnam_r.c: Likewise.
1663 * gshadow/Version: Remove duplicate entries.
1665 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1666 for recent processor.
1667 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1670 2009-05-09 Ulrich Drepper <drepper@redhat.com>
1672 * version.h (VERSION): Bump for 2.10 release.
1673 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1675 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1676 same place we add ASFLAGS-config.
1678 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1681 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1682 or FORMERR and the other NOERROR, don't raise an error.
1684 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1687 * Makeconfig (+asflags): New variable based upon ASFLAG or
1689 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1690 * config.make.in (asflags-cpu): Add variable based upon
1691 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1694 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1695 recognizes power6 instruction set due to passing -mcpu=power6 from
1696 --with-cpu=power6 when compiling .S files.
1697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1704 2009-05-09 Jakub Jelinek <jakub@redhat.com>
1706 * string/stratcliff.c (do_test): Test for zero length
1707 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1708 at the end of the page.
1710 2009-05-08 Ulrich Drepper <drepper@redhat.com>
1712 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1714 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1717 * po/da.po: Update from translation team.
1719 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1721 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1722 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1724 2009-05-05 Ulrich Drepper <drepper@redhat.com>
1726 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1727 and READ_IMPLIES_EXEC.
1729 2009-05-04 Ulrich Drepper <drepper@redhat.com>
1731 * po/da.po: Update from translation team.
1733 2009-04-29 Jakub Jelinek <jakub@redhat.com>
1735 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1738 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1740 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1741 to MAP_ANON in PROT_NONE mmap64 call.
1742 (open_archive): Likewise.
1743 (file_data_available_p): Use mmap64 instead of mremap.
1744 (enlarge_archive): Likewise. Update head if ah->addr changed.
1745 Attempt to reserve address space after mmap64 region.
1747 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1749 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1750 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1751 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1753 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1754 atanh should set ERANGE.
1757 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1758 result of lookup to make call to implement STT_GNU_IFUNC.
1759 (_dl_profile_fixup): Likewise.
1760 Patch by H.J. Lu <hjl.tools@gmail.com>.
1762 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1765 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1768 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1769 label if it is not used.
1771 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1772 of gmon_hist_hdr and gmon_hdr structures and use them.
1773 * elf/sprof.c: Likewise.
1775 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1778 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1780 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1783 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1784 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1786 (iruserok_af): Use ss_family instead of casts.
1788 * gmon/gmon.c (write_hist): Define real-type variant of
1789 gmon_hist_hdr structure and use it.
1790 (write_gmon): Likewise for gmon_hdr.
1792 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1793 function if we are not going to define it.
1794 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1796 * inet/inet6_option.c (option_alloc): Add temporary variable to
1799 * libio/strfile.h (struct _IO_streambuf): Use correct type and
1800 name of VTable element.
1801 * libio/iovsprintf.c: Avoid casts to avoid warnings.
1802 * libio/iovsscanf.c: Likewise.
1803 * libio/vasprintf.c: Likewise.
1804 * libio/vsnprintf.c: Likewise.
1805 * stdio-common/isoc99_vsscanf.c: Likewise.
1806 * stdlib/strfmon_l.c: Likewise.
1807 * debug/vasprintf_chk.c: Likewise.
1808 * debug/vsnprintf_chk.c: Likewise.
1809 * debug/vsprintf_chk.c: Likewise.
1811 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1814 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1816 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1818 2009-04-25 Ulrich Drepper <drepper@redhat.com>
1820 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1822 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1823 * sysdeps/i386/fpu/s_tanf.S: Likewise.
1824 * sysdeps/i386/fpu/s_tanl.S: Likewise.
1825 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1826 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1827 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1828 * math/libm-test.inc: Add tests for errno after tan calls with
1831 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1832 errno value vor pow(+-0,neg).
1833 * math/libm-test.inc (pow_test): Add tests for errno value for
1836 * math/w_fmod.c: Also handle x=±Inf as error.
1837 * math/w_fmodf.c: Likewise.
1838 * math/w_fmodl.c: Likewise.
1839 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1842 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1843 * sysdeps/i386/fpu/s_cosf.S: Likewise.
1844 * sysdeps/i386/fpu/s_cosl.S: Likewise.
1845 * sysdeps/i386/fpu/s_sin.S: Likewise.
1846 * sysdeps/i386/fpu/s_sinf.S: Likewise.
1847 * sysdeps/i386/fpu/s_sinl.S: Likewise.
1848 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1849 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1850 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1851 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1852 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1853 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1854 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1855 * math/libm-test.inc: Add tests for errno after sin/cos calls with
1858 * stdlib/strtod_l.c (round_and_return): We have to set errno to
1859 ERANGE for underflows.
1860 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1862 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1865 * libio/tst-widetext.input: Remove surrogates.
1867 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1869 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1870 for lgamma should set errno to ERANGE, not EDOM.
1871 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1873 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1876 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1879 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1880 space when temporarily mapping the whole content of the old file.
1883 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1886 2009-04-24 Jakub Jelinek <jakub@redhat.com>
1888 * iconvdata/sjis.c (BODY): Don't advance inptr before
1889 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1890 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1893 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1895 * locale/locarchive.h (struct locarhandle): Rename len field to
1896 mmaped and add new reserved field.
1897 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1898 (create_archive): Reserve address space and then map file into it.
1899 (open_archive): Likewise.
1900 (file_data_available_p): New function.
1901 (compare_from_file): New function.
1902 (close_archive): Adjust to member name changes.
1903 (add_locale): Before comparing locale data, check it is mapped.
1904 Otherwise fall back to reading from the file.
1906 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
1908 * stdio-common/psiginfo.c: Include <errno.h>.
1910 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1913 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1914 to get consistency between 32 and 64 bit architectures.
1917 * sysdeps/unix/make-syscalls.sh: Add rule to create target
1918 directory for dummy syscall rules.
1919 Patch by Chris Steinbroner <hesh@pobox.com>.
1921 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
1924 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1927 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1929 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
1930 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1932 2009-04-23 Jakub Jelinek <jakub@redhat.com>
1934 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
1935 data from vector to temporary buffer and call PWRITEV after it
1936 instead of vice versa.
1937 * sysdeps/posix/preadv.c: Fix up comment.
1938 * misc/preadv.c: Likewise.
1939 * misc/preadv64.c: Likewise.
1940 * misc/pwritev.c: Likewise.
1941 * misc/pwritev64.c: Likewise.
1942 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1944 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1946 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1948 * shadow/Makefile (tests): Add tst-shadow.
1949 * shadow/tst-shadow.c: New file.
1952 * gshadow/Makefile: New file.
1953 * gshadow/Versions: New file.
1954 * gshadow/fgetsgent.c: New file.
1955 * gshadow/fgetsgent_r.c: New file.
1956 * gshadow/getsgent.c: New file.
1957 * gshadow/getsgent_r.c: New file.
1958 * gshadow/getsgnam.c: New file.
1959 * gshadow/getsgnam_r.c: New file.
1960 * gshadow/gshadow.h: New file.
1961 * gshadow/putsgent.c: New file.
1962 * gshadow/sgetsgent.c: New file.
1963 * gshadow/sgetsgent_r.c: New file.
1964 * gshadow/tst-gshadow.c: New file.
1965 * include/gshadow.h: New file.
1966 * Makeconfig (all-subdirs): Add gshadow.
1967 * Makefile (installed-headers): Add gshadow/gshadow.h.
1968 * nss/Makefile (databases): Add sgrp.
1969 * nss/Versions: Add gshadow functions as private exports.
1970 * nss/nsswitch.conf: Add gshadow entry.
1971 * nss/sgrp-lookup.c: New file.
1972 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
1973 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1974 * nss/nss_files/files-sgrp.c: New file.
1975 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1976 * sysdeps/unix/sysv/linux/paths.h: Likewise.
1978 2009-04-22 Ulrich Drepper <drepper@redhat.com>
1980 * stdio-common/printf.h: Add missing const to register_printf_modifier.
1981 * stdio-common/reg-modifier.c: Likewise.
1983 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
1985 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1988 2009-04-20 Ulrich Drepper <drepper@redhat.com>
1991 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1992 headers up to 2.6.30.
1994 * po/ca.po: Update from translation team.
1996 2009-04-19 Ulrich Drepper <drepper@redhat.com>
1999 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2000 an object that uses static TLS if the TLS modid is higher than the
2001 reserve we always allocate. At least for multi-threaded code.
2003 2009-04-18 Ulrich Drepper <drepper@redhat.com>
2005 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2006 Numerically stable check for valid width.
2008 * locale/programs/locarchive.c (open_archive): Map the entire file
2009 and not just the administrative data.
2010 (add_locale): When we find a hash sum match compare the content
2013 * malloc/malloc.c (malloc_info): Output address space information.
2015 2009-04-17 Ulrich Drepper <drepper@redhat.com>
2017 * malloc/malloc.c (malloc_info): Also output system memory information.
2019 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2020 architectures have preadv/pwritev in 2.6.30.
2022 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2023 * sysdeps/posix/readv.c: Likewise.
2024 Reported by Markus Armbruster <armbru@redhat.com>.
2026 * malloc/hooks.c (top_check): Force hook value into register.
2028 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2030 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2031 calls to _dl_relocate_object.
2033 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2036 * malloc/malloc.c (force_reg): Define.
2037 (sYSMALLOc): Load hook variable into variable
2038 before test and force into register.
2039 (sYSTRIm): Likewise.
2040 (public_mALLOc): Force hook value into register.
2041 (public_fREe): Likewise.
2042 (public_rEALLOc): Likewise.
2043 (public_mEMALIGn): Likewise.
2044 (public_vALLOc): Likewise.
2045 (public_pVALLOc): Likewise.
2046 (public_cALLOc): Likewise.
2047 (__posix_memalign): Likewise.
2048 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2049 before test and force into register.
2050 * malloc/hooks.c (top_check): Likewise.
2051 (public_sET_STATe): Pretty printing.
2053 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2054 in case we only receive one reply in single-request mode.
2056 2009-04-16 Jakub Jelinek <jakub@redhat.com>
2058 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2059 are dlopened in statically linked program even for __LM_ID_CALLER.
2061 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2063 * resolv/res_send.c (send_dg): Don't switch into single-request
2064 mode if we already are in it.
2066 2009-04-15 Ulrich Drepper <drepper@redhat.com>
2068 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2069 are always at least 4 bytes in the returned line.
2071 2009-04-15 Jakub Jelinek <jakub@redhat.com>
2073 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2074 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2075 instead of 8K. Stop searching in /proc/stat after hitting first
2076 line not starting with cpu.
2077 (next_line): Truncate too long
2078 lines at buffer size * 3/4 instead of pretending there were line
2079 breaks inside of large lines.
2081 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2083 * sysdeps/x86_64/mp_clz_tab.c: New file.
2085 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
2086 Ulrich Drepper <drepper@redhat.com>
2088 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2089 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2090 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2092 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
2094 * sysdeps/sh/libc-tls.c: New file.
2096 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2098 2009-04-14 Roland McGrath <roland@redhat.com>
2100 * elf/elf.h: Add various missing ARM constants, to match binutils.
2102 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2104 Optimizations from GMP.
2105 * sysdeps/x86_64/add_n.S: New file.
2106 * sysdeps/x86_64/addmul_1.S: New file.
2107 * sysdeps/x86_64/lshift.S: New file.
2108 * sysdeps/x86_64/mul_1.S: New file.
2109 * sysdeps/x86_64/rshift.S: New file.
2110 * sysdeps/x86_64/sub_n.S: New file.
2111 * sysdeps/x86_64/submul_1.S: New file.
2113 2009-04-14 Jakub Jelinek <jakub@redhat.com>
2115 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2116 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2117 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2118 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2120 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2122 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2125 2009-04-13 Ulrich Drepper <drepper@redhat.com>
2127 * sysdeps/x86-64/strrchr.S: New file.
2129 2009-04-10 Ulrich Drepper <drepper@redhat.com>
2131 * stdio-common/printf.h (struct printf_info): Add user element.
2132 New types printf_arginfo_size_function, printf_va_arg_function.
2133 Declare register_printf_specifier, register_printf_modifier,
2134 register_printf_type.
2135 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2136 (union printf_arg): Add pa_user element.
2137 Adjust __printf_arginfo_table type.
2138 Add __printf_va_arg_table, __printf_modifier_table,
2139 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2141 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2142 If registered arginfo call failed try normal specifier.
2143 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2145 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2146 * stdio-common/Versions: Export register_printf_modifier,
2147 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2148 * stdio-common/reg-modifier.c: New file.
2149 * stdio-common/reg-type.c: New file.
2150 * stdio-common/reg-printf.c (__register_printf_specifier): New
2151 function. Mostly the old __register_printf_function function but
2152 uses locking and type of third parameter changed.
2153 (__register_printf_function): Implement using
2154 __register_printf_specifier.
2155 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2156 calls to arginfo functions. Allocate enough memory for user-defined
2157 types. Call new va_arg functions to get user-defined types.
2158 Try installed handlers even for existing format specifiers first.
2160 2009-04-09 Ulrich Drepper <drepper@redhat.com>
2162 * sysdeps/x86_64/rawmemchr.S: New file.
2164 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2165 Simplified code and possible copy problem fixed.
2167 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2168 function if it is not defined. Add some necessary casts.
2169 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2171 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2172 have preadv/pwritev in 2.6.30.
2174 2009-04-08 Ulrich Drepper <drepper@redhat.com>
2176 * malloc/malloc.c (malloc_info): New function.
2177 * malloc/malloc.h: Declare it.
2178 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2180 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2183 * malloc/malloc.c (_int_realloc): Add parameter with old block
2184 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2186 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2188 2009-04-07 Ulrich Drepper <drepper@redhat.com>
2190 * sysdeps/x86_64/strchrnul.S: New file.
2192 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2193 depending libcrypt on -lfreebl3.
2195 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2196 preadv/pwritev in 2.6.30.
2198 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2199 instead of __strcasecmp.
2201 * string/stratcliff.c (do_test): Add memchr tests..
2202 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2203 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2204 first read quad word.
2206 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2208 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2209 * string/tst-svc.input: Add new test case.
2210 * string/tst-svc.expect: Adjust.
2211 * string/Makefile: Don't ignore tst-svc error.
2213 * sysdeps/x86_64/memchr.S: New file.
2215 * resolv/resolv.h (RES_SNGLKUP): Define.
2216 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2217 * resolv/res_send.c (send_dg): If we sent two requests at once and
2218 only get one reply before timeout switch to mode where we send the
2219 second request only after the first answer has been received.
2221 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2223 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2224 * sysdeps/x86_64/strchr.S: Likewise.
2226 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2228 * configure.in: We need to test for the compiler earlier.
2230 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2231 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2233 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2234 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2236 * misc/preadv.c: New file.
2237 * misc/preadv64.c: New file.
2238 * misc/pwritev.c: New file.
2239 * misc/pwritev64.c: New file.
2240 * sysdeps/posx/preadv.c: New file.
2241 * sysdeps/posx/preadv64.c: New file.
2242 * sysdeps/posx/pwritev.c: New file.
2243 * sysdeps/posx/pwritev64.c: New file.
2244 * sysdeps/unix/sysv/linux/preadv.c: New file.
2245 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2246 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2247 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2248 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2249 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2251 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2253 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2255 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2256 __ASSUME_COMPLETE_READV_WRITEV.
2257 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2258 with modern kernels.
2259 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2261 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2262 to free a possible malloced buffer in case of cancellation.
2263 * sysdeps/posix/writev.c: Likewise for write.
2265 2009-04-02 Ulrich Drepper <drepper@redhat.com>
2267 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2269 * configure.in: Recognize --enable-nss-crypt.
2270 * config.make.in: Add nss-crypt entry.
2271 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2272 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2273 and include path for NSS directory to compiler for md5-crypt,
2274 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2275 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2276 function implementation, use NSS. Introduce wrappers around the
2277 hash function calls. Little code size optimization.
2278 * crypt/sha256-crypt.c: Likewise.
2279 * crypt/sha512-crypt.c: Likewise.
2280 * scripts/check-local-headers.sh: Ignore nss3 directory.
2282 * configure.in: Rename pic_default to libc_cv_pic_default.
2283 * config.make.in: Likewise.
2285 2009-04-01 Roland McGrath <roland@redhat.com>
2287 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2288 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2289 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2290 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2291 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2292 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2293 (R_SPARC_NUM): Update.
2294 From Dave Miller <davem@davemloft.net>.
2296 2009-04-01 Ulrich Drepper <drepper@redhat.com>
2298 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2300 2009-03-31 Ulrich Drepper <drepper@redhat.com>
2302 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2303 those which are used.
2304 * elf/dl-addr.c: Likewise.
2305 * elf/dl-caller.c: Likewise.
2306 * elf/dl-fini.c: Likewise.
2307 * elf/dl-iteratephdr.c: Likewise.
2308 * elf/dl-libc.c: Likewise.
2309 * elf/dl-load.c: Likewise.
2310 * elf/dl-support.c: Likewise.
2311 * elf/dl-sym.c: Likewise.
2312 * elf/rtld.c: Likewise.
2313 * sysdeps/generic/ldsodefs.h: Likewise.
2315 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2316 * elf/dl-minimal.c: Likewise.
2317 * elf/dl-misc.c: Likewise.
2318 * elf/rtld.c: Likewise.
2319 * sysdeps/generic/ldsodefs.h: Likewise.
2321 2009-03-30 Ulrich Drepper <drepper@redhat.com>
2323 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2324 Avoid reuse of complex expression.
2326 * po/fr.po: Update from translation team.
2328 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2330 * include/dirent.h: Yet more changes to match sort function type
2332 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2333 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2334 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2336 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2338 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2340 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2342 * nscd/connections.c (restart): Try to preserve the process name
2343 by reading the /proc/self/exe symlink and using the return name.
2344 Patch by Jeff Bastian <jbastian@redhat.com>.
2346 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2349 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2350 if we are not loading a new audit library.
2351 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2352 Only use profiling trampoline for auditing if we are not relocating
2354 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2355 * elf/rtld.c: Likewise.
2356 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2358 * elf/rtld.c (dl_main): Extend help message for --audit option.
2361 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2362 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2363 * dirent/alphasort.c: Adjust implementation to type change.
2364 * dirent/alphasort64.c: Likewise.
2365 * dirent/scandir.c: Likewise.
2366 * dirent/versionsort.c: Likewise.
2367 * dirent/versionsort64.c: Likewise.
2368 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2370 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2374 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2375 correctly. Set segleft member in output as required.
2376 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2377 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2380 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2381 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2382 * inet/Makefile (tests): Add tst-inet6_rth.
2383 * inet/tst-inet6_rth.c: New file.
2386 * string/strlen.c (strlen): Fix omission in the expression to test
2389 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2391 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2393 * elf/dl-runtime.c (reloc_offset): Define.
2394 (reloc_index): Define.
2395 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2396 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2397 computing index from reloc_offset.
2398 (_dl_call_pltexit): Likewise.
2399 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2400 the relocation index to _dl_fixup.
2401 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2403 * sysdeps/x86_64/dl-runtime.c: New file.
2406 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2407 alignment of La_x86_64_regs. Store xmm parameters.
2408 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2411 * string/strverscmp.c (__strverscmp): Fix case of different digits
2412 in fractional part of string.
2413 Patch by Jingyu Liu <jyliu@fortinet.com>.
2414 * string/Makefile (tests): Add tst-svc2.
2415 * string/tst-svc2.c: New file.
2417 * string/strverscmp.c (__strverscmp): Optimize size of tables.
2419 * locale/iso-639.def: Add Min Nan.
2421 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2424 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2426 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2428 * elf/dl-sysdep.c (auxvars): Compress data structure.
2430 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2431 STT_GNU_IFUNC handling.
2432 (elf_machine_rela): Likewise.
2434 2009-03-13 Ulrich Drepper <drepper@redhat.com>
2436 * config.h.in (USE_MULTIARCH): Define.
2437 * configure.in: Handle --enable-multi-arch.
2438 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2439 (_dl_fixup_profile): Likewise.
2440 * elf/do-lookup.c (dl_lookup_x): Likewise.
2441 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2442 * elf/elf.h (STT_GNU_IFUNC): Define.
2443 * include/libc-symbols.h (libc_ifunc): Define.
2444 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2445 framework in init-arch.h to get CPUID values.
2446 * sysdeps/x86_64/multiarch/Makefile: New file.
2447 * sysdeps/x86_64/multiarch/init-arch.c: New file.
2448 * sysdeps/x86_64/multiarch/init-arch.h: New file.
2449 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2451 * config.make.in (experimental-malloc): Define.
2452 * configure.in: Handle --enable-experimental-malloc.
2453 * malloc/Makefile: Handle experimental-malloc flag.
2454 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2455 * malloc/arena.c: Likewise.
2456 * malloc/hooks.c: Likewise.
2457 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2459 2009-03-11 Ulrich Drepper <drepper@redhat.com>
2461 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2462 prediction. A few size optimizations.
2464 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2466 * time/tzset.c: Optimize a bit for size.
2468 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2470 * include/stdio.h (fmemopen): Add libc_hidden_proto.
2471 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2473 * elf/sprof.c: Avoid warning about multi-line comment.
2475 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2477 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2479 * time/tst-posixtz.c: Add tests for quoted timezone names.
2481 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2483 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2484 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2485 200809L instead of 200112L.
2486 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2487 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2489 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2490 instead of __quick_exit_funcs to __run_exit_handlers.
2491 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2492 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2493 (__cxa_at_quick_exit): Remove attribute_hidden.
2494 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2495 to __run_exit_handlers.
2496 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2499 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2501 * po/id.po: Update from translation team.
2503 2009-02-18 Jakub Jelinek <jakub@redhat.com>
2505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2506 .machine push; .machine "power6" and .machine pop around mtfsf
2507 insns outside of _ARCH_PWR6 define.
2508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2513 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2514 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2515 relax_fenv_state): Likewise.
2517 2009-03-08 Ulrich Drepper <drepper@redhat.com>
2519 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2521 (static-only-routines): Add at_quick_exit.
2522 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2524 * stdlib/quick_exit.c: New file.
2525 * stdlib/at_quick_exit.c: New file.
2526 * stdlib/cxa_at_quick_exit.c: New file.
2527 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
2529 (__internal_atexit): New function.
2530 (__new_exitfn): Now takes parameter to point to the list to use.
2531 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2532 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
2533 (exit): ...here. Just call __run_exit_handlers appropriately.
2534 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2535 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
2536 * stdlib/on_exit.c: Adjust call to __new_exitfn.
2537 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2539 * po/id.po: Update from translation team.
2541 2009-03-07 Ulrich Drepper <drepper@redhat.com>
2543 * po/ru.po: Update from translation team.
2545 2009-03-04 Ulrich Drepper <drepper@redhat.com>
2547 * po/nl.po: Update from translation team.
2549 2009-03-03 Ulrich Drepper <drepper@redhat.com>
2551 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2552 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2553 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2554 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2555 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2556 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2557 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2559 * po/pl.po: Update from translation team.
2561 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2564 * sysdeps/unix/sysv/linux/fallocate.c: New file.
2565 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2566 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2567 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2568 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2569 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2570 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2572 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2573 Add fallocate and fallocate64.
2575 * io/fcntl.h: Pretty printing.
2577 2009-03-02 Richard Guenther <rguenther@suse.de>
2579 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2580 attribute also for non-C99 inline semantics variant.
2582 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2584 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2585 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2586 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2587 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2593 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2595 * po/cs.po: Update from translation team.
2597 2009-02-28 Ulrich Drepper <drepper@redhat.com>
2599 * po/bg.po: Update from translation team.
2600 * po/sv.po: Likewise.
2601 * po/fi.po: Likewise.
2602 * po/vi.po: Likewise.
2604 2009-02-27 Roland McGrath <roland@redhat.com>
2606 * Makeconfig (%.v.i): Depend on Makeconfig.
2607 Exclude % lines from initial #-comment removal.
2609 2009-02-27 Ulrich Drepper <drepper@redhat.com>
2611 * po/ko.po: Update from translation team.
2613 2009-02-26 Roland McGrath <roland@redhat.com>
2615 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2616 avoids unused warning.
2618 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
2619 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2621 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2622 sys/ucontext.h and asm/elf.h. Include sys/user.h.
2623 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2624 and asm/user.h. Include asm/ptrace.h.
2625 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2626 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2627 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2629 (start_thread): Don't undefine.
2630 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2633 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2635 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2636 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2637 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2638 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2639 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2641 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2642 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2643 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2644 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2645 _SC_THREAD_ROBUST_PRIO_PROTECT.
2646 * posix/unistd.h: fexecve is in POSIX 2008.
2647 * time/time.h: strftime_l is in POSIX 2008.
2648 * io/sys/stat.h: futimens is in POSIX 2008.
2649 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2650 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2651 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2652 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2653 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2654 open_memstream, and vdprintf are in POSIX 2008.
2656 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2658 * include/features.h: Define macros for XPG7/POSIX 2008.
2659 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2660 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2662 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2663 * locale/xlocale.h: Define locale_t type.
2664 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2665 in POSIX 2008. Don't define locale_t here.
2666 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2667 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2668 UTIME_OMIT only with __USE_ATFILE.
2669 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2670 * stdio-common/psiginfo.c: New file.
2671 * stdio-common/psiginfo-data.h: New file.
2672 * stdio-common/psiginfo-define.h: New file.
2673 * stdio-common/Makefile (routines): Add psiginfo.
2674 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2675 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2676 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2677 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2678 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2679 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2680 * io/sys/stat.h: Move mknodat definition into same conditional as
2682 * time/sys/time.h: futimesat is not among the functions accepted
2683 into the POSIX standard.
2685 * include/features.h: If no feature selection given and we select
2686 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2687 * posix/Versions: Export __posix_getopt.
2688 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2689 Use it to alternatively initialize __posixly_correct.
2690 (_getopt_internal_r): Take addition parameter. Pass on to
2692 (_getopt_internal): Take addition parameter. Pass on to
2694 (getopt): Pass additional zero to _getopt_internal.
2695 (__posix_getopt): New function.
2696 * posix/getopt.h: Add redirection for getopt.
2697 * posix/getopt1.c (getopt_long): Pass additional zero to
2699 (getopt_long_only): Likewise.
2700 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2701 (_getopt_long_only_r): Likewise.
2702 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2705 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2707 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2708 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2709 * sysdeps/posix/sysconf.c (__sysconf): Handle
2710 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2711 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2713 2009-02-24 Roland McGrath <roland@redhat.com>
2716 * README.template: Reworded not to use substituted version number.
2718 * README: ... here (no longer generated).
2719 * Makefile (README): Target removed.
2721 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2723 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2724 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2727 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2729 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2731 2009-02-22 Ulrich Drepper <drepper@redhat.com>
2733 * po/bg.po: Update from translation team.
2735 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2737 * stdlib/monetary.h: Uglify function parameter names.
2738 * sunrpc/rpc/pmap_clnt.h: Likewise.
2739 * sunrpc/rpc/svc.h: Likewise.
2740 * sunrpc/rpc/xdr.h: Likewise.
2741 * sunrpc/rpc/clnt.h: Likewise.
2742 * resolv/netdb.h: Likewise.
2743 * resolv/arpa/nameser.h: Likewise.
2744 * resolv/resolv.h: Likewise.
2745 * argp/argp.h: Likewise.
2746 * locale/langinfo.h: Likewise.
2747 * io/sys/stat.h: Likewise.
2748 * posix/spawn.h: Likewise.
2749 * nis/rpcsvc/nislib.h: Likewise.
2750 * malloc/obstack.h: Likewise.
2751 * sysdeps/ia64/bits/link.h: Likewise.
2752 * sysdeps/i386/bits/link.h: Likewise.
2753 * sysdeps/s390/bits/link.h: Likewise.
2754 * sysdeps/powerpc/bits/link.h: Likewise.
2755 * sysdeps/x86_64/bits/link.h: Likewise.
2756 * sysdeps/sparc/bits/link.h: Likewise.
2757 * sysdeps/sh/bits/link.h: Likewise.
2758 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2759 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2760 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2761 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2763 2008-12-01 Fredrik Unger <fred@tree.se>
2765 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2766 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2767 _FP_UNPACK_RAW_2, fix up first argument.
2769 2009-02-15 Ulrich Drepper <drepper@redhat.com>
2771 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2772 (GET_NPROCS_PARSER): Change parameters and use next_line.
2773 (__get_nprocs): Rewrite to not use stdio routines.
2774 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2775 Change parameters and use next_line.
2777 2009-02-13 Ulrich Drepper <drepper@redhat.com>
2780 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2781 Change mempool_alloc prototype.
2782 * nscd/mem.c (gc): Don't handle mem_in_flight.
2783 (mempool_alloc): Third parameter now only indicates whether this is the
2784 first call (to allocate data) or not. If it is, get db rdlock.
2785 Release it on error. Don't handle mem_in_flight.
2786 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2787 Adjust third parameter of mempool_alloc calls.
2788 Nothing to do here in case mempool_alloc fails.
2789 Avoid local variable shadowing parameter. No need to get db rdlock
2790 before calling cache_add.
2791 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
2792 no mem_in_flight array anymore.
2793 * nscd/connections.c: Remove definition and handling of mem_in_flight.
2794 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2795 mempool_alloc calls. Mark he parameter as const. Nothing to do here
2796 in case mempool_alloc fails. No need to get db rdlock before calling
2798 * nscd/hstcache.c (cache_addhst): Likewise.
2799 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2800 * nscd/servicescache.c (cache_addserv): Likewise.
2801 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
2803 2009-02-11 Ulrich Drepper <drepper@redhat.com>
2805 * po/lt.po: Update from translation team.
2807 2009-02-10 Ulrich Drepper <drepper@redhat.com>
2809 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2810 defined, allow additional data to be added using the optional
2811 MORE_ELF_HEADER_DATA macro.
2812 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2813 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2815 2009-02-08 Ulrich Drepper <drepper@redhat.com>
2817 * include/atomic.h: Define catomic_and if not already defined.
2818 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2819 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2821 2009-02-07 Ulrich Drepper <drepper@redhat.com>
2823 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2825 (_int_realloc): Likewise. Third argument is now padded size
2826 All _int_* functions are now static.
2828 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2829 * malloc/arena.c: Likewise.
2830 * include/malloc.h: Remove now unnecessary declarations of the _int_*
2833 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2836 * malloc/malloc.c: Add branch prediction for use of the hooks.
2838 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2840 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2843 * bits/confname.h: Add SUSv7 macros for getconf environments.
2844 * bits/environments.h: Likewise.
2845 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2846 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2847 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2848 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2849 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2850 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2851 * posix/getconf.c: Likewise.
2852 * posix/sysconf.c: Likewise.
2853 * sysdeps/posix/sysconf.c: Likewise.
2854 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2857 2009-01-16 Petr Baudis <pasky@suse.cz>
2860 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2861 even if we currently have zero nscount.
2863 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2866 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2867 the input line is too long.
2869 * po/Makefile (libc.pot): Add f_print as function taking c-format
2872 * debug/xtrace.sh: Unify translatable messages.
2873 * elf/ldd.bash.in: Likewise.
2874 * elf/sprof.c: Likewise.
2875 * locale/programs/locale.c: Likewise.
2876 * malloc/memusage.sh: Likewise.
2877 * nss/getent.c: Likewise.
2879 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2881 * debug/pcprofiledump.c (print_version,
2882 argp_program_version_hook): New function.
2883 * elf/ldconfig.c (more_help): New function.
2885 * elf/sln.c (usage): New function.
2886 (main): Support --help and --version.
2887 * malloc/memusagestat.c (print_version): New function.
2888 (argp_program_version_hook): New variable.
2889 * nscd/nscd.c (more_help): New function.
2891 * posix/getconf.c (main): Send --version output to stdout.
2893 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2894 arguments. All callers changed.
2895 (print_version): New function.
2896 (parseargs): Support --help and --version.
2897 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
2899 (print_version): New function.
2900 (main): Use getopt_long. Support --help and --version.
2901 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2904 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2906 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2907 (update_data): Fix handling of wrapping back
2908 to the beginning of the buffer.
2911 * stdio-common/psignal.c (psignal): Fix test for empty string.
2913 2009-02-05 Ulrich Drepper <drepper@redhat.com>
2915 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2916 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
2917 move _null_auth to .rodata.
2919 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2922 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2924 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2925 today than when the original code was written. Use larger
2926 buffers. This also makes it unnecessary to have stat information,
2927 if this causes extra efforts.
2928 (__opendir): In case O_DIRECTORY works, don't call fstat just for
2931 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
2933 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2935 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2936 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2937 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2938 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2939 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2940 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2942 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2944 * po/ru.po: Update from translation team.
2946 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
2948 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2949 Add _tid slot to maintain consistency with kernel.
2951 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2953 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2954 incomplete characters at end of input buffer.
2955 * libio/Makefile (tests): Add tst-fgetwc.
2956 * libio/tst-fgetwc.c: New file.
2957 * libio/tst-fgetwc.input: New file.
2959 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
2961 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2963 2009-02-02 Ulrich Drepper <drepper@redhat.com>
2966 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2967 *OUTBUFSTART unless the whole output fit into the buffer.
2968 * iconv/Makefile (tests): Add tst-iconv4.
2969 * iconv/tst-iconv4.c: New file.
2971 2009-02-01 Ulrich Drepper <drepper@redhat.com>
2973 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2974 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2976 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
2978 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2979 newer linker scripts.
2981 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2984 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2985 inotify_rm_watch should have type int.
2987 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
2989 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2990 Make aligned_restore_vmx a local symbol.
2991 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2994 2009-01-30 Andreas Jaeger <aj@suse.de>
2996 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2997 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2998 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2999 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3000 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3001 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3002 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3004 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3007 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3008 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3010 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3014 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3016 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3018 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3020 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3021 memcpy instead of memcmp.
3022 (_dl_setup_pointer_guard): Likewise.
3024 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3026 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3027 manipulated brk, use malloc_printerr.
3028 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3031 2009-01-30 Jakub Jelinek <jakub@redhat.com>
3033 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3034 rindex): For C++ add inlines so that they can be recognized as
3036 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3038 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3039 Jakub Jelinek <jakub@redhat.com>
3041 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3042 * wcsmbs/wchar.h: Likewise.
3044 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3046 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3047 (stackinfo_sub_sp): Define.
3049 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3052 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3053 * include/alloca.h (alloca_account): Define.
3054 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3055 (stackinfo_sub_sp): Define.
3057 * nscd/connections.c (nscd_init): If database file access fails
3058 check whether this is due to permission problems and bail in that
3062 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3063 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3065 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3067 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3068 Add "t" to clobber list.
3069 (INTERNAL_SYSCALL_NCS): Likewise.
3071 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3073 * nss/getent.c (print_networks): Don't print comma between aliases.
3075 2009-01-23 Ulrich Drepper <drepper@redhat.com>
3077 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3079 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3081 * misc/Makefile (tests): Add bug-hsearch1.
3082 * misc/bug-hsearch1.c: New file.
3084 2009-01-22 Roland McGrath <roland@redhat.com>
3086 * Makeconfig (%.v.i): Strip trailing # comments,
3087 not only whole-line comments.
3089 2009-01-10 Ulrich Drepper <drepper@redhat.com>
3091 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3092 one parameter. If non-NULL use it to initialize return value.
3093 (_dl_setup_pointer_guard): New function.
3094 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3095 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3096 * elf/rtld.c (security_init): Pass _dl_random to
3097 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3099 * elf/dl-sysdep.c (_dl_random): New variable.
3100 (_dl_sysdep_start): Handle AT_RANDOM.
3101 (_dl_show_auxv): Likewise.
3102 * elf/dl-support.c (_dl_random): New variable.
3103 (_dl_aux_init): Handle AT_RANDOM.
3104 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3105 to _dl_setup_stack_chk_guard.
3107 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3109 2009-01-10 Roland McGrath <roland@redhat.com>
3111 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3113 2009-01-08 Ulrich Drepper <drepper@redhat.com>
3115 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3118 * nss/nss_files/files-parse.c (strtou32): New function.
3119 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3120 across 32-bit and 64-bit platforms.
3121 (INT_FIELD_MAYBE_NULL): Likewise.
3123 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3126 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3127 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3128 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3131 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
3134 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3135 being NULL also if there are no backreferences.
3136 * posix/rxspencer/tests: Add testcases.
3138 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
3141 * posix/bug-regex17.c: Add testcases.
3142 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3145 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3147 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3148 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3149 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3150 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3152 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3153 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3154 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3155 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3156 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3157 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3159 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
3161 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3162 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3163 re_string_skip_chars, re_string_reconstruct): Likewise.
3164 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3166 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
3168 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3169 adjust the buffer alignment.
3171 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3173 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3174 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3177 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3178 flavor to description only when flavor is not NULL.
3180 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3181 mutex after SIGIO/SIGURG lookup loop.
3183 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3185 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3187 2009-01-03 Ulrich Drepper <drepper@redhat.com>
3189 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3192 2009-01-02 Ulrich Drepper <drepper@redhat.com>
3194 * sysdeps/unix/sysv/linux/kernel-features.h
3195 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3197 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3198 if no output is written.
3200 * version.h: Bump to 2.10 development.
3202 * posix/getconf.c: Update copyright year.
3203 * nss/getent.c: Likewise.
3204 * iconv/iconvconfig.c: Likewise.
3205 * iconv/iconv_prog.c: Likewise.
3206 * elf/ldconfig.c: Likewise.
3207 * catgets/gencat.c: Likewise.
3208 * csu/version.c: Likewise.
3209 * elf/ldd.bash.in: Likewise.
3210 * elf/sprof.c (print_version): Likewise.
3211 * locale/programs/locale.c: Likewise.
3212 * locale/programs/localedef.c: Likewise.
3213 * nscd/nscd.c (print_version): Likewise.
3214 * debug/xtrace.sh: Likewise.
3215 * malloc/memusage.sh: Likewise.
3216 * malloc/mtrace.pl: Likewise.
3217 * debug/catchsegv.sh: Likewise.
3219 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3221 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3224 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3226 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3227 gethostbyname4_r function call succeeded, just leave the loop.
3230 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3232 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3233 * wctype/Makefile (tests): Add bug-wctypeh.
3234 * wctype/bug-wctypeh.c: New file.
3236 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3237 LOCALDOMAIN is defined.
3238 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3240 * sysdeps/x86_64/bits/select.h: New file.
3242 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3244 2008-12-21 Bruno Haible <bruno@clisp.org>
3247 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3248 if no output is written.
3250 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3252 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3253 libc internal symbol __dup2 to avoid access through the PLT.
3255 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3258 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3259 available only for __USE_GNU.
3261 * inet/Makefile (tests): Add tst-getni2.
3262 * inet/tst-getni2.c: New file.
3265 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3266 NULL when NI_NAMEREQD is set.
3267 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3268 * inet/Makefile (tests): Add tst-getni1.
3269 * inet/tst-getni1.c: New file.
3271 2008-12-03 Petr Baudis <pasky@suse.cz>
3274 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3275 instead of prune_lock.
3276 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3277 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3279 2008-12-07 Ulrich Drepper <drepper@redhat.com>
3281 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3284 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3287 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3288 after reading name server list.
3291 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3292 handling for host name aliases.
3294 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3296 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3297 instead of doing things manually.
3299 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3301 * posix/regex_internal.h (build_wcs_upper_buffer):
3302 Return type is reg_error_t.
3304 2008-12-05 Ulrich Drepper <drepper@redhat.com>
3306 * posix/globtest.sh: Use mktemp to create temporary file and
3309 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3311 (__CPU_CLR_S): Likewise.
3312 (__CPU_ISSET_S): Likewise.
3314 2008-12-05 Joseph Myers <joseph@codesourcery.com>
3315 Ulrich Drepper <drepper@redhat.com>
3317 * scripts/firstversion.awk: Use custom comparison function to compare
3319 * scripts/versions.awk: Use sort invocation which can handle
3320 multi-digit sub-version numbers.
3322 2008-12-04 Ulrich Drepper <drepper@redhat.com>
3324 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3325 * locale/iso-639.def: Add Chhattisgarhi entry.
3327 2008-12-02 Ulrich Drepper <drepper@redhat.com>
3329 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3331 (_nss_dns_gethostbyname4_r): Likewise.
3332 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3333 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3334 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3335 the no_data variable.
3337 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3338 information at the correct index.
3340 * socket/sys/socket.h: Declare accept4.
3341 * socket/accept4.c: New file.
3342 * sysdeps/unix/sysv/linux/accept4.c: New file.
3343 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3344 * socket/Makefile (routines): Add accept4.
3345 * socket/Versions: Export accept4 with version GLIBC_2.10.
3346 * socket/paccept.c: Removed.
3347 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3348 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3349 * Versions.def: Define GLIBC_2.10 for libc.
3350 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3352 * nscd/connections.c: Use accept4.
3354 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3356 2008-12-01 Ulrich Drepper <drepper@redhat.com>
3358 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3361 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3363 * stdlib/Makefile (tests): Add tst-unsetenv1.
3364 * stdlib/tst-unsetenv1.c: New file.
3366 2008-11-29 Ulrich Drepper <drepper@redhat.com>
3368 * login/utmp_file.c (file_writable): New variable.
3369 (setutent_file): Don't try to open file for writing.
3370 (pututline_file): Before writing, make descriptor writable if
3373 2008-11-26 Ulrich Drepper <drepper@redhat.com>
3375 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3376 to IPv4 or IPv6 if an interface has been found.
3378 2008-11-26 Roland McGrath <roland@redhat.com>
3380 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3381 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3383 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3384 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3385 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3387 * elf/elf.h (NT_386_IOPERM): New macro.
3388 (NT_PPC_VSX): New macro.
3390 2008-11-25 Roland McGrath <roland@redhat.com>
3392 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3393 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3394 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3395 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3396 Subdirectories moved to ports repository.
3397 * configure.in (base_machine): Remove alpha case.
3399 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
3401 * sysdeps/mach/strerror_l.c: New file.
3403 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
3406 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3407 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3409 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3410 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3411 (relax_fenv_state): Same as above.
3412 (FPSCR_29): Reserve bit in ISA 2.05.
3413 (FPSCR_NI): Provide define for compat.
3414 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3416 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3418 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
3419 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3420 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3421 access to hwcap to account for hwcap size increase to uint64_t.
3422 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3425 (*setcontext): Likewise.
3426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3431 (*setcontext): dynamically select mtfsf insn based on
3432 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3433 increase to uint64_t.
3434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3435 (*swapcontext): dynamically select mtfsf insn based on
3436 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3437 increase to uint64_t.
3438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3443 (*setcontext): dynamically select mtfsf insn based on
3444 PPC_FEATURE_HAS_DFP.
3445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3446 (*swapcontext): dynamically select mtfsf insn based on
3447 PPC_FEATURE_HAS_DFP.
3449 2008-11-13 Ulrich Drepper <drepper@redhat.com>
3451 * version.h: Bump for 2.9 release.
3452 * include/features.h (__GLIBC_MINOR__): Bump to 9.
3455 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3456 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3459 2008-11-11 Ulrich Drepper <drepper@redhat.com>
3462 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3463 unknown request types for now.
3465 2008-11-11 Roland McGrath <roland@redhat.com>
3467 * sysdeps/x86_64/configure: New file.
3469 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3470 * configure: Regenerated.
3472 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3474 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3475 correct instruction to remove the stack frame.
3477 2008-11-03 Michael Matz <matz@suse.de>
3479 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3480 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3482 2008-11-07 Jakub Jelinek <jakub@redhat.com>
3484 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3487 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3488 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3489 of the thread variable instead of void *.
3490 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3491 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3492 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3493 __libc_tsd_define arguments.
3494 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3495 __libc_tsd_address arguments. Remove union hack.
3496 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3497 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3498 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3499 Adjust __libc_tsd_{set,get} arguments.
3500 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3501 __libc_tsd_define arguments.
3502 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3504 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3505 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3506 (LOCALE): Adjust __libc_tsd_define arguments.
3507 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3509 (LOCALE): Adjust __libc_tsd_define arguments.
3510 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3512 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3515 2008-11-02 Ulrich Drepper <drepper@redhat.com>
3517 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3518 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3520 2008-11-01 Ulrich Drepper <drepper@redhat.com>
3523 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3525 2008-10-24 Joseph Myers <joseph@codesourcery.com>
3526 Ulrich Drepper <drepper@redhat.com>
3528 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3529 definition for GCC 3.1 and later.
3531 2008-10-31 Jakub Jelinek <jakub@redhat.com>
3533 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3534 refetch dtv, as it might have changed.
3535 * elf/Makefile: Add rules to build and run tst-tls18.
3536 * elf/tst-tls18.c: New test.
3537 * elf/tst-tlsmod18a.c: New file.
3539 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
3542 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3544 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3547 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3550 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3551 Fix length of copy operation.
3553 2008-10-02 Pierre Habouzit <madcoder@debian.org>
3555 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3556 and fix its calling convention.
3558 2008-10-07 Andreas Schwab <schwab@suse.de>
3561 * resolv/res_send.c (send_vc): Fix last change.
3562 (send_dg): Align here as well.
3564 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3566 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3567 return value in case rlimit is RLIM_INFINITY.
3570 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3572 * resource/Makefile (tests): Add bug-ulimit1.
3573 * resource/bug-ulimit1.c: New file.
3576 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3577 without dot. Properly terminate the string with a null byte.
3578 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3581 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3583 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3587 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3589 2008-10-30 Ulrich Drepper <drepper@redhat.com>
3591 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3592 abort if there is no initgroups_dyn function.
3594 * resolv/res_send.c (send_dg): On timeout, only return nonzero
3595 result if any of the queries really provided an answer.
3597 2008-10-28 Ulrich Drepper <drepper@redhat.com>
3599 * po/lt.po: Update from translation team.
3601 2008-10-26 Ulrich Drepper <drepper@redhat.com>
3603 * po/id.po: Update from translation team.
3605 2008-10-24 Ulrich Drepper <drepper@redhat.com>
3607 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3608 Fix tests for existence of second reply.
3610 2008-10-23 Ulrich Drepper <drepper@redhat.com>
3612 * po/id.po: New file.
3613 Contributed by the Indonesian translation team.
3615 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
3617 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3620 2008-10-17 Jakub Jelinek <jakub@redhat.com>
3622 * elf/Makefile: Add rules to build and run tst-tls17.
3623 * elf/tst-tls17.c: New test.
3624 * elf/tst-tlsmod17a.c: New file.
3625 * elf/tst-tlsmod17b.c: Likewise.
3627 2008-10-17 Ulrich Drepper <drepper@redhat.com>
3629 * stdlib/divmod_1.c: Use correct type for dummy variable.
3630 * stdlib/mod_1.c: Likewise.
3632 2008-10-16 Ulrich Drepper <drepper@redhat.com>
3634 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3636 2008-10-16 Jakub Jelinek <jakub@redhat.com>
3638 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3639 __nonnull order for C++.
3640 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3641 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3643 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3645 * stdlib/longlong.h: Update from GCC.
3647 2008-10-09 Jakub Jelinek <jakub@redhat.com>
3648 David S. Miller <davem@davemloft.net>
3650 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3651 make sure any registers used with 64-bit 'branch-on-register'
3652 instructions have their top 32-bits clear.
3653 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3654 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3656 2008-09-18 Andreas Schwab <schwab@suse.de>
3659 * resolv/res_send.c (send_vc): Fix use of unaligned address.
3660 Properly handle partial reads.
3662 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3664 * elf/elf.h (STO_MIPS_PLT): New.
3666 (R_MIPS_JUMP_SLOT): New.
3667 (R_MIPS_NUM): Redefine to 128.
3668 (DT_MIPS_PLTGOT): New.
3669 (DT_MIPS_RWPLT): New.
3670 (DT_MIPS_NUM): Redefine to 0x35.
3672 2008-10-01 Ulrich Drepper <drepper@redhat.com>
3674 * timezone/africa: Update from tzdata2008f.
3675 * timezone/asia: Likewise.
3676 * timezone/australasia: Likewise.
3677 * timezone/europe: Likewise.
3678 * timezone/leapseconds: Likewise.
3679 * timezone/northamerica: Likewise.
3680 * timezone/southamerica: Likewise.
3681 * timezone/zone.tab: Likewise.
3683 2008-09-30 Ulrich Drepper <drepper@redhat.com>
3685 * nscd/connections.c: Disable use of paccept for now.
3687 2008-09-29 Ulrich Drepper <drepper@redhat.com>
3689 * socket/Versions: Remove paccept export for GLIBC_2.9.
3690 * socket/Makefile (routines): Remove paccept.
3691 * socket/sys/socket.h: Remove paccept declaration.
3693 * po/sv.po: Update from translation team.
3695 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3697 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3698 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3700 2008-09-16 Ulrich Drepper <drepper@redhat.com>
3702 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3703 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3705 2008-09-15 Ulrich Drepper <drepper@redhat.com>
3707 * sunrpc/rpc/svc.h: Declare svcfd_create.
3708 Patch by Michael Solberg <msolberg@redhat.com>.
3710 2008-09-12 Flavio Leitner <fleitner@redhat.com>
3711 Ulrich Drepper <drepper@redhat.com>
3713 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3715 (public_pVALLOc): Likewise.
3717 2008-09-02 Andreas Jaeger <aj@suse.de>
3719 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3722 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3725 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3727 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3729 * Makefile (check-data): Check data directory in add-ons.
3730 * elf/Makefile (check-data): Likewise.
3732 2008-08-18 Roland McGrath <roland@redhat.com>
3734 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3735 * configure: Regenerated.
3736 * config.make.in (cflags-cpu): New substituted variable.
3737 (with-cpu): Variable removed.
3738 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3740 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3743 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3744 __signbitl definition and __LONG_DOUBLE_128__ guard from:
3745 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3746 redundant. Functions which call floating point assembler operations
3747 should go into a sysdeps powerpc/fpu directory.
3749 2008-08-15 Ulrich Drepper <drepper@redhat.com>
3751 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3752 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3754 2008-08-14 Ulrich Drepper <drepper@redhat.com>
3756 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3758 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3759 change related to AT_EXECFN. We cannot use that string.
3760 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3762 * elf/dl-support.c: Remove _dl_execfn variable.
3763 (_dl_aux_init): Remove handling of AT_EXECFN.
3764 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3765 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3767 2008-08-13 Ulrich Drepper <drepper@redhat.com>
3770 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
3771 byte gets added to writes and seeks from the end use the length of
3772 the buffer and not the currently terminating NUL byte.
3775 * login/utmp_file.c (getutent_r_file): Take additional parameter.
3776 Set to true if locking failed.
3777 (getutid_r_file): Adjust caller.
3778 (pututline_file): Likewise. Return NULL in this case.
3779 Patch mostly by halesh.s@gmail.com.
3781 2008-08-12 Ulrich Drepper <drepper@redhat.com>
3784 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3786 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3788 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3791 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3792 macro since it is now available in elf/dynamic-link.h.
3794 2008-08-12 Roland McGrath <roland@frob.com>
3796 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3797 in case used outside of libc.
3798 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3800 2008-08-11 Ulrich Drepper <drepper@redhat.com>
3802 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3803 directly instead of going through dn_comp.
3805 2008-08-11 Aurelien Jarno <aurel32@debian.org>
3807 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3808 Fix asm constraints.
3810 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3813 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3814 (IPV6_PMTUDISC_PROBE): Likewise.
3816 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3819 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3821 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
3822 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3825 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3826 Added the members 'vsx' and 'arch_2_06'.
3827 (_dl_powerpc_platforms): Add the member 'power7'.
3828 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3829 to reflect the changes required by VSX and ISA 2.06.
3830 Modify _DL_PLATFORMS_COUNT to reflect the addition of
3832 Defined PPC_PLATFORM_POWER7.
3833 (_dl_string_platform): Add support for POWER7.
3834 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3835 capability and ISA 2.06.
3837 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3840 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3841 macro to detect use of 128 bit long double.
3842 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3844 2008-08-05 Ulrich Drepper <drepper@redhat.com>
3846 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3849 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3851 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3852 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3854 2008-08-03 Ulrich Drepper <drepper@redhat.com>
3856 * nscd/connections.c (main_loop_poll): Pass a buffer which is
3857 guaranteed to be large enough to read inotify event. Ignore
3858 EAGAIN error. Better error message. Add branch predicition.
3859 (main_loop_epoll): Likewise.
3861 2008-08-02 Roland McGrath <roland@frob.com>
3863 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3864 Add memory clobbers.
3866 2008-08-02 Ulrich Drepper <drepper@redhat.com>
3868 * manual/arith.texi: Avoid @strong{Note:}.
3869 * manual/creature.texi: Likewise.
3870 * manual/filesys.texi: Likewise.
3871 * manual/math.texi: Likewise.
3872 * manual/memory.texi: Likewise.
3873 * manual/resource.texi: Likewise.
3874 * manual/syslog.texi: Likewise.
3875 * manual/time.texi: Likewise.
3877 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3880 2008-08-01 Ulrich Drepper <drepper@redhat.com>
3882 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3883 new epoll_create1 interface.
3884 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3885 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3886 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3888 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3889 (NS_GET32): Likewise.
3891 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3894 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3895 use the AT_EXECFN value if it is no absolute path.
3896 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3899 * Versions.def: Add GLIBC_2.9 to libresolv.
3900 * include/resolv.h: Remove hidden proto declarations for __ns_*
3901 functions. Add them for __dn_count_labels and __p_secstodate.
3902 * include/arpa/nameser.h: Add a number of hidden proto declarations.
3903 Define ns_msg_getflags macro here.
3904 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3906 * resolv/Versions: Export functions from <arpa/nameser.h> from
3907 libresolv in version GLIBC_2.9.
3908 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
3910 * resolv/ns_netint.c: Likewise.
3911 * resolv/ns_parse.c: Likewise.
3912 * resolv/ns_print.c: Likewise.
3913 * resolv/ns_samedomain.c: Likewise.
3914 * resolv/ns_ttl.c: Likewise.
3915 * resolv/arpa/nameser_compat.h: Likewise.
3916 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
3918 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3919 instead of ns_get16.
3920 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3921 __ns_get32 instead of ns_get16 and ns_get32 respectively.
3922 (gaih_getanswer_slice): Likewise.
3923 * resolv/Makefile (libresolv-routines): Add ns_date.
3924 * resolv/ns_date.c: New file.
3926 * elf/Makefile (check-localplt.out): Also check libresolv and
3929 2008-07-31 Ulrich Drepper <drepper@redhat.com>
3931 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3934 2008-07-30 Ulrich Drepper <drepper@redhat.com>
3936 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3937 buffer passed to NSS functions.
3939 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3941 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3944 * misc/syslog.c (openlog_internal): Fix compile problem.
3946 2008-07-28 Roland McGrath <roland@redhat.com>
3948 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3950 2008-07-28 Ulrich Drepper <drepper@redhat.com>
3952 * io/ftw.c (add_object): Remove inline to avoid warning.
3954 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3956 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3957 Use it instead of locally defined resplen2 variable.
3958 (res_nsend): Adjust for __libc_res_nsend interface change.
3959 (send_vc): Initialize *resplen2 if necessary. Read length of
3960 package into an appropriately aligned variable. Store converted length
3961 in new variable and use it appropriately.
3962 Add branch prediction help.
3963 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3964 and pass it on to __libc_res_nsend. Adjust all callers.
3965 (__libc_res_nsearch): Likewise.
3966 (__libc_res_nqeurydomain): Likewise.
3967 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3969 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3970 Define resplen2 variable and pass it to __libc_res_nsearch and then
3972 (getanswer_r): In case of incorrect DNS data don't overread buffer.
3973 Add branch prediction.
3974 (gaih_getanswer_slice): Likewise. Check for invalid data types.
3975 (gaih_getanswer): Don't decode second slice if first one failed due
3976 to a too small buffer. Don't let not found status of second
3977 decoder shadow results of the first.
3978 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3979 and __libc_res_nquery interface changes
3980 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3981 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3982 __libc_res_nsearch, and __libc_res_nsend.
3983 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3985 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3986 __libc_res_nsearch interface changes.
3988 2008-07-27 Ulrich Drepper <drepper@redhat.com>
3990 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3992 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3993 file descriptors with close-on-exec set.
3994 (exec_comm_child): Fix the case where the write end of the pipe is
3995 STDOUT_FILENO already. In case it is, clear close-on-exec.
3997 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3998 * io/pipe2.c: Likewise.
3999 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4000 instead of __ASSUME_PACCEPT.
4001 * include/unistd.h: Declare __have_pipe2.
4002 * libio/iopopen.c: Implement "e" flag.
4003 * libio/Makefile (tests): Add tst-popen1.
4004 * libio/tst-popen1.c: New file.
4006 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4007 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4009 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4012 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4013 success call of _IO_SEEKOFF or calls which failed because the
4014 descriptor is for a pipe.
4016 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4019 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4021 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4022 F_SETFD use if we know fopen set the flag.
4024 * login/utmp_file.c (setutent_file): Minor optimization in case
4025 O_CLOEXEC is available.
4027 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4029 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4030 * elf/Makefile: Use pie-ccflag variable.
4031 * nscd/Makefile: Likewise.
4032 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4034 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4037 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4038 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4039 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4040 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4041 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4042 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4043 utmp32, utmpx32 and login32.
4044 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4045 versions of struct utmp functions to libc and libutil.
4046 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4047 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4048 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4049 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4050 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4051 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4052 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4053 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4054 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4055 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4056 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4057 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4058 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4059 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4060 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4061 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4062 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4063 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4064 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4065 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4066 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4067 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4069 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4071 * scripts/gen-as-const.awk: Generate more widely usable code by
4072 using 64-bit arithmetic.
4074 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4075 the same treatment as narrow output code in last patch.
4077 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4080 * elf/dl-load.c (local_strdup): Remove inline.
4081 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4082 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4085 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4087 2008-07-25 Ulrich Drepper <drepper@redhat.com>
4089 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4090 the new syscalls, too.
4092 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4093 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4096 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4097 parameter for end of buffer. If temporary copy is too large use
4099 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4101 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4102 string rewrite when allocating buffer.
4104 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4107 * nscd/connections.c (nscd_init): Clean up fcntl call.
4109 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4110 SOCK_NONBLOCK if possible.
4112 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4113 SOCK_CLOEXEC if available.
4115 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4116 __libc_clntudp_bufcreate_internal.
4117 * include/sys/socket.h: Declare __have_sock_cloexec.
4118 * socket/Makefile (aux): Add have_sock_cloexec.
4119 * socket/have_sock_cloexec.c: New file.
4120 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4121 __libc_clntudp_bufcreate.
4122 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4123 which takes an additional parameter. Create socket with non-blocking
4124 mode and close-on-exec flag set, if wanted.
4125 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4126 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4127 instead of clntudp_create. The socket has already the close-on-exec
4128 flag set if SOCK_CLOEXEC is defined.
4130 2008-07-24 Ulrich Drepper <drepper@redhat.com>
4132 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4133 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4135 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4136 non-blocking mode by using socket, paccept, and inotify_init1.
4138 * Versions.def (glibc): Add GLIBC_2.9.
4139 * io/Makefile (routines): Add dup3 and pipe2.
4140 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4141 * io/dup3.c: New file.
4142 * io/pipe2.c: New file.
4143 * posix/unistd.h: Declare dup3 and pipe2.
4144 * socket/Makefile (routines): Add paccept.
4145 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4146 * socket/paccept.c: New file.
4147 * socket/sys/socket.h: Declare paccept.
4148 * sysdeps/unix/syscalls.list: Add entry for dup3.
4149 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4150 epoll_create2 and inotify_init1.
4151 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4152 * sysdeps/unix/sysv/linux/paccept.c: New file.
4153 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4155 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4156 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4157 inotify_init1, and pipe2 entries.
4158 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4159 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4160 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4161 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4162 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4163 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4165 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4166 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4167 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4168 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4169 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4170 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4171 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4172 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4173 EPOLL_NONBLOCK. Declare epoll_create2.
4174 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4176 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4177 IN_NONBLOCK. Declare inotify_init1.
4178 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4180 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4183 * elf/elf.h: Define AT_EXECFN.
4184 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4186 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4187 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4188 if __ASSUME_AT_EXECFN is defined.
4189 (_dl_aux_init): Handle AT_EXECFN.
4190 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4192 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4193 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4194 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4195 _dl_execfn if available and avoid compatibility code if
4196 __ASSUME_AT_EXECFN is defined.
4198 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4199 _dl_discover_osversion only for older kernels.
4201 2008-07-22 Roland McGrath <roland@frob.com>
4203 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4205 2008-07-21 Roland McGrath <roland@frob.com>
4207 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4208 returned too much data out of line.
4210 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4212 * locale/setlocale.c (setname): Remove inline to avoid compiler
4216 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4218 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4220 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4221 doesn't manage to write anything, fail.
4223 * malloc/hooks.c (__malloc_check_init): Remove printf.
4225 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4227 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4229 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4231 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4233 (main_loop_epoll): Likewise.
4235 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4237 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4239 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4240 if DEBUG is defined.
4242 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4243 query. Adjust buffer size computation for padding.
4245 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4247 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4248 * stdio-common/tst-setvbuf1.c: New file.
4249 * stdio-common/tst-setvbuf1.expect: New file.
4252 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4253 when selecting fully-buffered stream.
4254 Patch by Wang Xin <wxinee@gmail.com>.
4256 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4258 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4259 (__open_2): New function.
4260 (__open64_2): New alias to __open_2.
4261 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4262 (__openat_2): New function.
4263 (__openat64_2): New alias to __openat_2.
4265 2008-07-06 Ulrich Drepper <drepper@redhat.com>
4268 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4270 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4272 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4273 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4274 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4276 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4277 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4278 * sysdeps/mach/hurd/send.c (__send): Likewise.
4279 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4280 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4282 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4284 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4285 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4286 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4287 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4288 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4289 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4291 2008-06-27 Ulrich Drepper <drepper@redhat.com>
4294 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4296 Patch by Petr Baudis.
4298 2008-06-26 Ulrich Drepper <drepper@redhat.com>
4300 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4301 Patch by Peter Jones <pjones@redhat.com>.
4303 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4306 * stdlib/canonicalize.c (__realpath): readlink can write too much
4307 into the buffer on platforms without PATH_MAX.
4309 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4312 * posix/tst-regex.c (main): Rename to...
4313 (do_test): ... this. Remove cmdline option processing.
4315 (TEST_FUNCTION): Define.
4316 (CMDLINE_OPTIONS): Define.
4318 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4321 * configure.in: Add -Werror to -fstack-protector test to catch
4322 unsupported architectures.
4323 Patch by Gilles Esponasse <g.esp@free.fr>.
4325 2008-06-17 Joseph Myers <joseph@codesourcery.com>
4327 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4328 getcontext returns ENOSYS.
4330 2008-06-18 Ulrich Drepper <drepper@redhat.com>
4332 * nscd/connections.c (main_loop_poll): Fix test for read error.
4333 (main_loop_epoll): Likewise.
4335 2008-06-13 Ulrich Drepper <drepper@redhat.com>
4337 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4338 better place so it is not called when nscd is used.
4340 * nscd/connections.c: Also recognize and handle changes to the
4341 resolver configuration file.
4343 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4345 * time/strftime.c: Pass reference to tzset_called around to handle
4349 * time/strftime.c (__strftime_internal): Call tzset() only
4350 when printing timezone-dependent values.
4351 Based on a patch by Petr Baudis <pasky@suse.cz>.
4353 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4354 unconditionally use second gaih_getanswer_slice result.
4356 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4357 (getaddrinfo): RES must always be non-NULL.
4359 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4361 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4363 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4364 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4366 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4369 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4371 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4373 * nscd/connections.c (inotify_fd): New variable.
4374 (nscd_init): Try to open an inotify descriptor.
4375 If successful, watch files for databases using inotify instead of
4376 having prune threads stat the files.
4377 (nscd_run_prune): Recognize clear_cache flag being set and call
4378 prune_cache appropriately.
4379 (main_loop_poll): Add inotify descriptor to wait set and handle the
4381 (main_loop_epoll): Likewise.
4382 * nscd/cache.c (prune_cache): Don't stat files for databases if
4384 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4385 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4387 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4388 fixed-size portion of the record.
4389 * nscd/servicescache.c (cache_addserv): Likewise.
4390 * nscd/pwdcache.c (cache_addpw): Likewise.
4391 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4393 2008-06-11 Ulrich Drepper <drepper@redhat.com>
4395 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4396 out we don't use uninitialized memory.
4398 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4401 2008-06-10 Ulrich Drepper <drepper@redhat.com>
4403 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4404 ignore T_DNAME messages.
4405 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4407 2008-06-05 Jakub Jelinek <jakub@redhat.com>
4409 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4410 Avoid segfault if first GETC returns eof/'\0'/'\n'.
4412 2008-06-03 Jakub Jelinek <jakub@redhat.com>
4414 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4415 instead of portstr to nscd_getserv_r. Patch by
4416 Roman Kagan <rkagan@mail.ru>.
4418 2008-05-26 Jim Meyering <meyering@redhat.com>
4420 Remove more useless "if" tests before "free".
4421 * include/inline-hashtab.h (htab_delete): Likewise.
4422 * libio/freopen.c (freopen): Likewise.
4423 * libio/freopen64.c (freopen64): Likewise.
4424 * locale/programs/ld-collate.c (collate_read): Likewise.
4425 * misc/fstab.c (libc_freeres_fn): Likewise.
4426 * posix/glob.c (globfree): Likewise.
4428 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4430 * string/Makefile (strop-tests): Add memmem.
4431 * string/test-memmem.c: New file.
4432 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4433 (test_init): Size buf1 according to BUF1PAGES.
4435 2008-05-24 Jakub Jelinek <jakub@redhat.com>
4437 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4438 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4439 (CFLAGS-scanf17.c): New.
4440 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4441 * stdio-common/scanf15.c (main): Likewise.
4442 * stdio-common/scanf16.c: New file.
4443 * stdio-common/scanf17.c: New file.
4445 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4447 * resolv/res_send.c (send_dg): If we already have one of two
4448 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4449 use the one answer insted of failing.
4451 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
4453 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4454 being executed on PowerPC as the expected result exceeds IBM
4455 long double 128 __LDBL_MAX__.
4457 2008-05-21 Roland McGrath <roland@redhat.com>
4459 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4461 * Makefile (check-data): Use $(abi-name) before other guesses.
4462 Look in $(add-ons) dirs before scripts/data/.
4463 * elf/Makefile (check-data): Likewise.
4465 * scripts/soversions.awk: Grok ABI line.
4466 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4467 Emit definition for abi-name variable.
4469 2008-05-21 Ulrich Drepper <drepper@redhat.com>
4471 * string/endian.h: Define new fixed-size hto* and *toh macros only
4474 * iconvdata/Depend: Add localedata.
4476 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4478 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4480 2008-05-08 David S. Miller <davem@davemloft.net>
4482 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4484 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4485 (__SYSCALL_CLOBBERS): Remove %g* registers.
4486 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4487 (__SYSCALL_CLOBBERS): Likewise.
4488 * scripts/data/localplt-sparc-linux-gnu.data: New file.
4489 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4491 2008-05-21 Jakub Jelinek <jakub@redhat.com>
4493 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4494 (CALL_ERRNO_LOCATION): Define.
4495 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4496 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4497 (CALL_ERRNO_LOCATION): Define.
4498 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4499 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4500 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4502 2008-05-20 Ulrich Drepper <drepper@redhat.com>
4504 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4507 2008-05-20 Jakub Jelinek <jakub@redhat.com>
4509 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4510 (FIRST_FRAME_POINTER): Define.
4512 2008-05-09 David S. Miller <davem@davemloft.net>
4514 * sysdeps/sparc/sparc64/backtrace.c: New file.
4516 2008-05-14 David S. Miller <davem@davemloft.net>
4518 * sysdeps/sparc/machine-gmon.h: New file.
4519 * sysdeps/sparc/sparc-mcount.S: Likewise.
4520 * sysdeps/sparc/Makefile: Add sparc-mcount target to
4521 sysdep_routines in gmon directory.
4523 2008-05-19 Jakub Jelinek <jakub@redhat.com>
4525 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4527 2008-05-19 Ulrich Drepper <drepper@redhat.com>
4529 * resolv/res_query.c (__libc_res_nquery): In case one of two
4530 answer was too short don't try to read that answer's header.
4532 * resolv/res_send.c (send_dg): In case of timeout and there are
4533 two queries and one has been answered, return value indicating
4536 2008-05-18 Ulrich Drepper <drepper@redhat.com>
4538 * nscd/cache.c (cache_add): Take additional parameter specifying
4539 whether this is in response of a cache refill. Check alignment
4540 of package data. Revamp waking of pruning thread.
4541 (prune_cache): Small optimization.
4542 * nscd/nscd.h: Adjust cache_add prototypes.
4543 * nscd/aicache.c: Adjust cache_add calls.
4544 * nscd/grpcache.c: Likewise.
4545 * nscd/hstcache.c: Likewise.
4546 * nscd/initgrcache.c: Likewise.
4547 * nscd/pwdcache.c: Likewise.
4548 * nscd/servicescache.c: Likewise.
4549 * nscd/connections.c (restart): Really disable cache use before
4550 exec attempt. If it fails, reenable cache.
4551 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
4552 time to max to be able to notice concurrent cache additions. Unlock
4553 prune_lock while performing gc. Afterwards compute wakeup time with
4554 current wakeup_time value in mind.
4556 2008-05-17 Ulrich Drepper <drepper@redhat.com>
4558 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4560 * nscd/mem.c (gc): Correctly determine highest used array element
4563 * nscd/mem.c (markrange): Add assert to check entries are all
4564 aligned. Small cleanup in bitmap use.
4566 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4567 blockoff of type nscd_ssize_t.
4568 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4569 (mempoll_alloc): Record block offset and not address.
4571 * nscd/mem.c (gc): Fix test for stack overuse.
4573 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4576 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4577 entry is available, believe it.
4579 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4580 no answers return NSS_STATUS_NOTFOUND.
4581 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4582 buffer does not have any content.
4584 2008-05-16 Ulrich Drepper <drepper@redhat.com>
4586 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4588 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4589 lookup, don't assign canon unconditionally.
4591 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4593 * string/Makefile (distribute): Add str-two-way.h.
4595 2008-03-29 Eric Blake <ebb9@byu.net>
4597 Rewrite string searches to O(n) rather than O(n^2).
4598 * string/str-two-way.h: New file. For linear fixed-allocation
4600 * string/memmem.c: New implementation.
4601 * string/strstr.c: New implementation.
4602 * string/strcasestr.c: New implementation.
4604 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
4606 * posix/regcomp.c (optimize_utf8): Add a note on why we test
4608 (calc_first): Initialize constraint field.
4609 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4610 Use search_duplicated_node to avoid loops. Fix grammar.
4611 (duplicate_node): Merge constraint field for all node types.
4612 (calc_eclosure_iter): Look at constraint field for all node types.
4613 * posix/regex_internal.c (create_cd_newstate): Don't look at
4616 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4619 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4622 * string/endian.h: Add macros for fixed-size endian conversion.
4623 * bits/byteswap.h: Allow inclusion from <endian.h>.
4624 * sysdeps/i386/bits/byteswap.h: Likewise.
4625 * sysdeps/ia64/bits/byteswap.h: Likewise.
4626 * sysdeps/s390/bits/byteswap.h: Likewise.
4627 * sysdeps/x86_64/bits/byteswap.h: Likewise.
4628 * string/Makefile (tests): Add tst-endian.
4629 * string/tst-endian.c: New file.
4631 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4632 Patch by Reuben Thomas.
4634 2008-05-14 Joseph Myers <joseph@codesourcery.com>
4636 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4638 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4640 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4643 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4645 (BODY for __gconv_transform_internal_ascii): Likewise.
4648 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4649 to be treated like link-local addresses.
4650 (match_prefix): Don't treat IPv4 loopback address special when
4651 converting to v4 mapped addressed.
4653 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4655 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4656 * posix/tst-rfc3484-2.c: Likewise.
4657 * posix/tst-rfc3484-3.c: Likewise.
4659 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4662 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4664 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4666 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4668 2008-05-13 Ulrich Drepper <drepper@redhat.com>
4670 * po/lt.po: New file. From Lituanian translation team.
4672 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
4674 Introduce TLS descriptors for i386 and x86_64.
4675 * include/inline-hashtab.h: New file, copied from 2005's
4676 libiberty, with fix for memory leak imported afterwards by
4677 Glauber de Oliveira Costa.
4678 * elf/tlsdeschtab.h: New file.
4679 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4680 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4681 (CHECK_STATIC_TLS): Move to...
4682 * elf/dynamic-link.h: ... this file.
4683 (TRY_STATIC_TLS): New macro.
4684 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4685 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4686 R_386_TLS_DESC): Define.
4687 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4689 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4690 R_X86_64_TLSDESC): Define.
4691 (R_386_NUM, R_X86_64_NUM): Adjust.
4692 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4693 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4694 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4695 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4696 release tlsdesc_table.
4697 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4698 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4699 (elf_machine_rel): Handle R_386_TLS_DESC.
4700 (elf_machine_rela): Likewise.
4701 (elf_machine_lazy_rel): Likewise.
4702 (elf_machine_lazy_rela): Likewise.
4703 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4704 * sysdeps/i386/dl-tlsdesc.S: New file.
4705 * sysdeps/i386/dl-tlsdesc.h: New file.
4706 * sysdeps/i386/tlsdesc.c: New file.
4707 * sysdeps/i386/tlsdesc.sym: New file.
4708 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4710 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4711 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4712 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4713 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4714 release tlsdesc_table.
4715 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4716 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4717 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4718 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4719 (elf_machine_rela): Likewise.
4720 (elf_machine_lazy_rel): Likewise.
4721 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4722 (__tls_get_addr): Do not declare for non-shared compiles.
4723 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4724 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4725 * sysdeps/x86_64/tlsdesc.c: New file.
4726 * sysdeps/x86_64/tlsdesc.sym: New file.
4727 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4728 tlsdesc_table for both 32- and 64-bit structs.
4730 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4732 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4733 its own function. This reduces the frame setup costs and more.
4735 2008-02-11 Joseph Myers <joseph@codesourcery.com>
4738 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4739 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4741 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4743 * io/openat.c (__openat_2): Also pass fd to __openat.
4744 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4745 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4747 * string/tester.c (test_memcmp): Add a few more tests.
4748 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4750 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4752 * nscd/cache.c (cache_add): Before returning with failure and this
4753 is the first use of the record, mark it as unusable.
4754 * nscd/aicache.c: Don't touch the dataset after cache_add returns
4755 reporting a failure.
4756 * nscd/grpcache.c: Likewise
4757 * nscd/hstcache.c: Likewise.
4758 * nscd/initgrcache.c: Likewise.
4759 * nscd/pwdcache.c: Likewise.
4760 * nscd/servicescache.c: Likewise.
4762 2008-05-10 Roland McGrath <roland@redhat.com>
4765 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4767 2008-05-08 David S. Miller <davem@davemloft.net>
4769 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4771 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4772 (__ieee754_y0l): Likewise.
4773 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4774 (__ieee754_y1l): Likewise.
4775 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4776 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4777 frexpl and ldexpl. math_private.h provides them and the latter
4779 (__log1pl): Use __frexpl.
4781 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4783 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4785 * include/arpa/nameser_compat.h: Define T_UNSPEC.
4786 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4787 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4788 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4790 (_nss_nis_gethostbyname4_r): New function.
4791 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4792 Change to also handle af==AF_UNSPEC.
4793 (get_tablename): New function. Use it to avoid duplication.
4794 (_nss_nisplus_gethostbyname4_r): New function.
4795 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4797 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4798 * nss/nss.h: Define struct gaih_addrtuple.
4799 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4801 (_nss_files_gethostbyname4_r): New function.
4802 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4803 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4805 * resolv/res_query.c (__libc_res_nquery): Take two additional
4806 parameters for second answer buffer. Handle type=T_UNSPEC to mean
4807 look up IPv4 and IPv6.
4809 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4810 for an additional query and answer buffer. Pass to send_vc and
4812 (send_vc): Send possibly two requests and receive two answers.
4813 (send_dg): Likewise.
4814 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4816 (_nss_dns_gethostbyname4_r): New function.
4817 (gaih_getanswer_slice): Likewise.
4818 (gaih_getanswer): Likewise.
4819 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4820 __libc_res_nquery call.
4821 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4822 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4823 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4826 2008-05-05 David S. Miller <davem@davemloft.net>
4828 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4829 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4831 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4833 Fix termios bit macros.
4834 Move *DLY definitions where they belong, in termios.h.
4835 Add *[0-3] definitions.
4836 Fixes confusion between VT and FF.
4837 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4838 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4839 are already defined to avoid collision with termios.h.
4840 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4841 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4842 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4843 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4844 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4845 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4846 VTDLY, VT0, VT1): New macros.
4847 [__USE_GNU] (OLCUC): Change value of macro.
4848 [__USE_XOPEN] (OFILL): New macro.
4849 [__USE_BSD] (CRTSCTS): Change value.
4850 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4851 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4852 (B7200, B14400, B28800, B76800): New macros.
4854 2008-05-01 David S. Miller <davem@davemloft.net>
4856 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4857 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4858 (gen-as-const-headers): Add it.
4859 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4860 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4861 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4862 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4864 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4865 six system call parameters.
4866 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4868 2008-04-30 Ulrich Drepper <drepper@redhat.com>
4870 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4872 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4873 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4875 2008-04-30 Jakub Jelinek <jakub@redhat.com>
4877 * stdlib/tst-setcontext.c: Include unistd.h.
4879 2008-04-25 David S. Miller <davem@davemloft.net>
4881 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4882 Pass "union semun" properly in to sys_ipc, it must be passed
4883 by value, not by reference.
4885 2008-04-22 Jakub Jelinek <jakub@redhat.com>
4887 * nscd/Makefile (nscd-cflags): Set back to -fpie.
4888 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4889 * nscd/connections.c (mem_in_flight): Likewise.
4891 * nscd/nscd.h (dbs): Make hidden.
4893 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4894 Avoid returning -1, return 0 instead.
4896 2008-04-19 Ulrich Drepper <drepper@redhat.com>
4898 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4900 2008-04-15 Ulrich Drepper <drepper@redhat.com>
4903 * sysdeps/unix/sysv/linux/times.c: New file.
4906 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4907 mem_in_flight_list variables. Add new parameter to mempool_alloc
4909 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
4910 appropriate mem_in_flight element.
4911 (gc): Take allocations which have not yet been committed to the
4912 database into account.
4913 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4914 Reset mem_in_flight before returning.
4915 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4916 cue it up in mem_in_flight_list.
4917 * nscd/aicache.c: Adjust mempool_alloc call.
4918 * nscd/grpcache.c: Likewise.
4919 * nscd/hstcache.c: Likewise.
4920 * nscd/initgrcache.c: Likewise.
4921 * nscd/pwdcache.c: Likewise.
4922 * nscd/servicescache.c: Likewise.
4923 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4926 * nscd/connections.c (handle_request): Provide better error message
4927 in case SELinux forbids the service.
4929 * version.h (VERSION): Bump to 2.8.90.
4931 2008-04-17 Jakub Jelinek <jakub@redhat.com>
4933 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4935 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4937 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4938 Also use for 32-bit.
4939 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4940 __nextafter instead of nextafter to avoid local PLT.
4941 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4942 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4944 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4946 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4948 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
4949 <fenv_libc.h> instead of <fenv.h>.
4950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4953 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4955 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4956 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4957 function from fegetexcept and make old name weak alias.
4958 * include/fenv.h: Declare __fegetexcept.
4959 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4961 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4962 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4964 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4965 instead of frexpl to avoid local PLT.
4966 * math/s_significandl.c (__significandl): Use __ilogbl instead of
4967 ilogbl to avoid local PLT.
4968 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4969 instead of ldexpl to avoid local PLT.
4970 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4971 __roundl not roundl to avoid local PLT.
4972 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4973 local PLTs. Use __sincosl instead of separate sinl and cosl
4975 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4977 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4978 version for ppc64 to 2.4.21 since without it makecontext will fail.
4980 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4982 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4984 [__powerpc64__] (TLS_GD): Likewise.
4986 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
4989 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4990 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4992 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4993 Likewise. Also account for when x is an odd number between 2^52
4995 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4996 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4997 * math/libm-test.inc (lround_test, llround_test): Added test cases to
4998 detect aforementioned erroneous conditions.
5000 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5002 * configure.in: Check for -fno-section-anchors in addition to
5003 -fno-toplevel-reorder.
5005 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5007 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5009 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5010 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5011 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5012 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5013 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5014 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5016 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5019 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5020 * time/alt_digit.c: Likewise.
5021 * wcsmbs/wcsmbsload.c: Likewise.
5023 2008-04-10 Ulrich Drepper <drepper@redhat.com>
5025 * version.h (VERSION): Bump to 2.8.
5027 * timzeone/asia: Update from tzdata2008b.
5028 * timezone/backward: Likewise.
5029 * timezone/europe: Likewise.
5030 * timezone/northamerica: Likewise.
5031 * timezone/southamerica: Likewise.
5032 * timezone/iso3166.tab: Likewise.
5033 * timezone/leapseconds: Likewise.
5034 * timezone/zone.tab: Likewise.
5035 * timezone/private.h: Update from tzcode2008a.
5036 * timezone/zdump.c: Likewise.
5037 * timezone/zic.c: Likewise.
5039 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5042 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5043 Define additonal Data Cache Block instruction macros.
5044 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5045 Replace dcbst with dcbf and sync with sync/isync.
5047 2008-02-21 Alan Modra <amodra@bigpond.net.au>
5049 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5050 Always set ELF_RTYPE_CLASS_PLT.
5051 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5053 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5055 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5056 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5057 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5058 For ISA 2.01 and later replace mftb with mfspr 268.
5060 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5063 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5064 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5066 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5069 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5070 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5071 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5072 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5074 2008-04-10 Jakub Jelinek <jakub@redhat.com>
5076 * stdlib/tst-makecontext.c (othervar): New variable.
5077 (cf): Test sign extending the argument to long.
5079 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5081 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5082 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5083 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5084 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5085 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5086 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5087 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5089 2008-02-22 Alan Modra <amodra@bigpond.net.au>
5091 * elf/Makefile (tests): Substitute tests-vis-yes here.
5092 (tests-vis-yes): Delete.
5093 (modules-name, modules-vis-yes): Similarly.
5095 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5098 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5099 Preserve sign in signgamp when x is zero.
5101 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5103 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5104 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5105 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5106 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5107 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5108 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5110 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5113 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5117 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5118 a reserved error value.
5120 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5121 value to check for correct sign extension.
5124 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5125 Copy 64-bit parameter values even though this is not required in
5128 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5131 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5133 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5136 2008-04-09 Jakub Jelinek <jakub@redhat.com>
5138 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5140 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5143 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5144 in line-buffered stream failed.
5145 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5147 2008-04-08 Ulrich Drepper <drepper@redhat.com>
5150 * scripts/abi-versions.awk: If the version specified by
5151 --enable-oldest-abi is older than the first version for this
5152 architecture, use the default version.
5154 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5155 as well when ignoring the whole category.
5157 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5160 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5161 ETHERTYPE_* definitions.
5162 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5164 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5166 * stdlib/mbtowc.c (__no_r_state): Remove.
5167 (mbtowc): New static state variable. Use it instead of
5169 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5170 (__wctomb_state): New hidden variable.
5171 (wctomb): Use __wctomb_state instead of __no_r_state.
5172 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5173 (__wctomb_state): New extern decl.
5174 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5176 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5179 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5181 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5183 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5185 2008-04-06 Ulrich Drepper <drepper@redhat.com>
5187 * po/nl.po: Update from translation team.
5189 2008-03-31 Ulrich Drepper <drepper@redhat.com>
5192 * string/strfry.c: Handle empty strings again.
5194 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5197 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5198 before looking for translation.
5199 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5200 * locale/freelocale.c: Likewise.
5201 * locale/newlocale.c: Likewise.
5202 * locale/setlocale.c: Likewise.
5203 Based partially on a patch by ryo@np.css.fujitsu.com.
5205 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5207 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5208 acquiring wrlock. Do conv_tab allocation while holding lock.
5209 * intl/Makefile: Add rules to build and run tst-gettext6.
5210 * intl/tst-gettext6.c: New test.
5211 * intl/tst-gettext6.sh: New file.
5213 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5215 * po/nl.po: Update from translation team.
5217 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5218 provided through st_blksize, try the default size before giving up.
5220 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5222 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5225 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5227 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5228 error message. POSIX today does not require the messages to be in
5229 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5232 * sunrpc/auth_unix.c: Unify printed strings.
5233 * sunrpc/clnt_tcp.c: Likewise.
5234 * sunrpc/clnt_udp.c: Likewise.
5235 * sunrpc/clnt_unix.c: Likewise.
5236 * sunrpc/svc_tcp.c: Likewise.
5237 * sunrpc/svc_udp.c: Likewise.
5238 * sunrpc/svc_unix.c: Likewise.
5239 * sunrpc/xdr.c: Likewise.
5240 * sunrpc/xdr_array.c: Likewise.
5241 * sunrpc/xdr_rec.c: Likewise.
5242 * sunrpc/xdr_ref.c: Likewise.
5243 * locale/programs/ld-time.c (time_finish): Unify messages.
5244 * locale/programs/locfile.c (handle_copy): Fix typo.
5245 * nscd/nscd.c (options): Fix typo.
5248 * stdlib/strtod_l.c: Use correct sign for result in one more
5250 Patch by Eric Blake <ebb9@byu.net>.
5252 2008-03-27 Jakub Jelinek <jakub@redhat.com>
5254 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5255 and creat system calls.
5256 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5258 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5261 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5262 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5264 2008-03-27 Ulrich Drepper <drepper@redhat.com>
5266 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5267 <linux/limits.h> has defined it.
5268 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5269 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5271 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5272 it instead of ARG_MAX.
5274 2008-03-25 Jakub Jelinek <jakub@redhat.com>
5276 * posix/gai.conf: Fix comment for scope nullbits.
5277 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5278 default to 128 bits for v4 mapped addresses.
5280 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5282 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5283 ptrace call to get the ieee_instruction_pointer from the kernel.
5284 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5285 ptrace call to set the ieee_instructtion_pointer.
5286 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5287 Add comment that ieee_instruction_pointer is always 0.
5289 2008-03-09 Andreas Jaeger <aj@suse.de>
5292 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5293 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5294 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5296 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5297 (rint_test): Likewise.
5299 2008-03-24 Ulrich Drepper <drepper@redhat.com>
5301 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5303 (__nisfind_server): Similar for open readColdStartFile call.
5304 Patch partially by Jim Meyering.
5305 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5306 around internal_setent call.
5308 * po/vi.po: New Vietnamese translation.
5310 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5313 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5314 remove CLONE_STOPPED.
5316 2008-02-10 Jim Meyering <meyering@redhat.com>
5318 Remove useless "if" before "free":
5319 * elf/ldconfig.c (parse_conf_include): Likewise.
5320 * gmon/gmon.c (weak_alias): Likewise.
5321 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5322 * inet/rcmd.c (__validuser2_sa): Likewise.
5323 * intl/bindtextdom.c (set_binding_values): Likewise.
5324 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5325 * libio/genops.c (save_for_backup): Likewise.
5326 * libio/wgenops.c (save_for_wbackup): Likewise.
5327 * locale/programs/ld-collate.c (collate_read): Likewise.
5328 * locale/programs/linereader.c (get_string): Likewise.
5329 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5330 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5331 * resolv/res_debug.c (do_section): Likewise.
5332 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5333 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5334 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5335 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5336 * time/tzset.c (tzset_internal): Likewise.
5338 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5340 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5343 2008-03-11 Ulrich Drepper <drepper@redhat.com>
5346 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5347 not stream for output file. Open output file here.
5348 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5349 and output file name.
5350 (process_fd): Likewise.
5351 (process_file): Likewise.
5352 (main): Adjust callers of changed functions.
5353 * iconv/iconv_prog.h: Adjust prototype.
5355 2008-03-09 Andreas Jaeger <aj@suse.de>
5358 * sysdeps/ia64/ieee754.h: Use protected namespace
5359 __BIG_ENDIAN/__LITTLE_ENDIAN.
5360 * sysdeps/ieee754/ieee754.h: Likewise.
5361 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5363 2008-03-08 Roland McGrath <roland@frob.com>
5365 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5366 ignore a signal that came from a machine exception, treat it as a
5367 fatal core-dump signal instead.
5368 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5370 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5371 Clear DF bit in thread state's eflags.
5372 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5374 2008-03-08 Ulrich Drepper <drepper@redhat.com>
5377 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5378 of NAN(...) sequence.
5379 * stdlib/Makefile (tests): Add tst-strtod6.
5380 * stdlib/tst-strtod6.c: New file.
5382 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5385 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5386 putting offending option character in quotes. Clean up error
5388 * po/be.po: Adjust msgstr in translation file.
5389 * po/bg.po: Likewise.
5390 * po/ca.po: Likewise.
5391 * po/cs.po: Likewise.
5392 * po/da.po: Likewise.
5393 * po/de.po: Likewise.
5394 * po/es.po: Likewise.
5395 * po/fr.po: Likewise.
5396 * po/hr.po: Likewise.
5397 * po/ko.po: Likewise.
5398 * po/nl.po: Likewise.
5399 * po/rw.po: Likewise.
5400 * po/sk.po: Likewise.
5401 * po/sv.po: Likewise.
5402 * po/tr.po: Likewise.
5403 * po/zh_CN.po: Likewise.
5404 * po/zh_TW.po: Likewise.
5407 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5408 Patch by Roland Bless <roland@bless.de>.
5410 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5412 * elf/Makefile (routines): Add dl-sysdep.
5413 (elide-routines.os): Likewise.
5415 2008-03-07 Ulrich Drepper <drepper@redhat.com>
5418 * elf/dl-sysdep.c: Undefine ROUND after use.
5419 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5420 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5421 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5422 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5424 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5425 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5427 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5429 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5430 _dl_tls_get_addr_soft element.
5431 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5432 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5433 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5435 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5436 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5437 of internal_function.
5439 * stdlib/Makefile (aux): Add tens_in_limb.
5440 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5441 * stdlib/tens_in_limb.c: ...here. New file.
5444 * sysdeps/unix/sysv/linux/pathconf.h: Declare
5445 __statfs_chown_restricted.
5446 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5447 for _PC_CHOWN_RESTRICTED.
5448 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5449 Implement __statfs_chown_restricted.
5450 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5451 _POSIX_CHOWN_RESTRICTED value to zero.
5452 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5455 * sysdeps/x86_64/rtld-memset.c: New file.
5457 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
5459 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5461 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5462 Barcelona machine. Make default fall through branch of
5463 __x86_64_preferred_memory_instruction check as the integer code path.
5465 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5467 * sysdeps/x86_64/cacheinfo.c
5468 (__x86_64_preferred_memory_instruction): New variable.
5469 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5471 * sysdeps/x86_64/memset.S: Rewrite.
5473 2008-03-04 Jakub Jelinek <jakub@redhat.com>
5475 * include/stdio.h (__asprintf_chk, __dprintf_chk,
5476 __obstack_printf_chk): New prototypes.
5477 (__vasprintf_chk, __vdprintf_chk,
5478 __obstack_vprintf_chk): Likewise.
5479 Add libc_hidden_proto.
5481 (_IO_obstack_jumps): No longer static, add attribute_hidden.
5482 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5483 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5484 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5485 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5486 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5487 __obstack_vprintf_chk): New prototypes.
5488 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5489 obstack_vprintf): New inlines.
5490 * debug/dprintf_chk.c: New file.
5491 * debug/vdprintf_chk.c: New file.
5492 * debug/asprintf_chk.c: New file.
5493 * debug/vasprintf_chk.c: New file.
5494 * debug/obprintf_chk.c: New file.
5495 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5496 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5497 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5499 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5500 vdprintf_chk and obprintf_chk, set CFLAGS for them.
5501 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5502 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5504 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5505 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5506 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5507 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5508 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5510 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5511 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5512 obstack_vprintf_chk.
5513 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5514 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5515 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5516 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5517 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5518 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5520 2008-03-04 Ulrich Drepper <drepper@redhat.com>
5523 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5524 Patch by Roy Marples <roy@marples.name>.
5527 * malloc/malloc.c: Fix typo in comment.
5530 * locale/iso-639.def: Add Shuswap.
5532 2008-02-25 Jakub Jelinek <jakub@redhat.com>
5535 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5536 overwrite *h_errnop/*errnop values from getanswer_r in case of
5539 2008-03-03 Ulrich Drepper <drepper@redhat.com>
5542 * nscd/connections.c (dbs): Add initializers for .suggested_module.
5543 (verify_persistent_db): Remove one unnecessary test and add a new one
5544 for bad configuration.
5545 (nscd_init): Improve error reported when persistent database cannot
5547 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5548 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5549 .suggested_module and .max_db_size and case config file says the
5551 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5554 * nis/ypclnt.c (yp_order): Fix handling of return value of
5556 Patch by Jeff Moyer <jmoyer@redhat.com>.
5558 * po/fr.po: Update from translation team.
5560 2008-02-22 Andreas Jaeger <aj@suse.de>,
5561 Carlos O'Donell <carlos@systemhalted.org>
5564 * FAQ.in: Describe why glibc needs to be compiled with
5567 2008-02-19 Roland McGrath <roland@redhat.com>
5569 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5571 2008-02-15 Ulrich Drepper <drepper@redhat.com>
5574 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5575 __USE_MISC is defined.
5577 2008-02-10 Ulrich Drepper <drepper@redhat.com>
5579 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5580 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5582 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5583 timerfd_gettime, timerfd_settime.
5584 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5585 timerfd_gettime, timerfd_settime for GLIBC_2.8.
5587 2008-02-08 Roland McGrath <roland@redhat.com>
5589 * elf/elf.h (NT_PPC_SPE): New macro.
5591 2008-02-06 Roland McGrath <roland@redhat.com>
5593 * Makerules ($(common-objpfx)sysd-rules):
5594 Depend on $(sysdep-makeconfigs).
5596 2008-01-31 Roland McGrath <roland@redhat.com>
5599 * configure.in: Use -print-file-name if it yields a directory,
5600 for each of include and include-fixed.
5601 * configure: Regenerated.
5603 * Makeconfig (sysd-rules-targets): New variable.
5604 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5605 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5607 2008-01-30 Roland McGrath <roland@redhat.com>
5609 * manual/libc.texinfo: Update back-cover text.
5611 * elf/elf.h (NT_386_TLS): New macro.
5613 2008-01-29 Roland McGrath <roland@redhat.com>
5615 * Makeconfig (sysd-rules-patterns): New variable.
5616 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5617 (check-inhibit-asm): New canned sequence, replaces ...
5618 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5619 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5620 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5621 (CFLAGS-rtld): Variable removed.
5623 2008-01-24 Roland McGrath <roland@redhat.com>
5625 * configure.in: Let configure fragments set base_os.
5626 * configure: Regenerated.
5628 2008-01-22 Ulrich Drepper <drepper@redhat.com>
5630 * po/ko.po: Update from translation team.
5632 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5634 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5636 2008-01-12 Andreas Jaeger <aj@suse.de>
5639 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5642 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5644 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5645 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5646 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5648 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
5650 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5651 * elf/dl-close.c (_dl_close): Check for it.
5652 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5653 (_dl_allocate_static_tls): Likewise.
5654 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5655 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5657 * elf/tst-tls16.c: New file.
5658 * elf/tst-tlsmod16a.c: New file.
5659 * elf/tst-tlsmod16b.c: New file.
5660 * elf/Makefile: Add rules to build and run tst-tls16.
5662 2008-01-16 Ulrich Drepper <drepper@redhat.com>
5665 * bits/shm.h: Fix comment describing shmid_ds.
5666 * sysdeps/gnu/bits/shm.h: Likewise.
5667 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5668 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5669 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5670 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5671 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5672 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5673 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5674 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5675 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5678 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5680 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5681 additional suffixes.
5682 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5683 Add optional functions mq_timedreceive and mq_timedsend.
5684 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5685 * conform/data/pthread.h-data: Fix prototype of
5686 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5687 * conform/data/semaphore.h-data: Allow time.h definitions.
5688 * conform/data/signal.h-data: Likewise.
5689 * conform/data/stdio.h-data: getw and putw are not required in v6.
5690 * conform/data/stdlib.h-data: Change setstate prototype.
5691 * conform/data/string.h-data: Fix strerror_r prototype.
5692 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5693 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5694 Fix readlink prototype.
5695 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5697 * inet/netinet/in.h: Cleanup namespace.
5698 * posix/regex.h: Likewise.
5699 * resolv/netdb.h: Likewise.
5700 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5701 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5702 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5703 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5704 of names of in in6_addr.
5705 (default_precedence): Likewise.
5706 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5709 2008-01-15 Ulrich Drepper <drepper@redhat.com>
5711 * conform/data/fmtmsg.h-data: Add missing allows.
5712 * conform/data/ftw.h-data: Likewise.
5713 * conform/data/inttypes.h-data: Likewise.
5714 * conform/data/math.h-data: Likewise.
5715 * conform/data/signal.h-data: Likewise.
5716 * conform/data/net/if.h-data: Likewise.
5717 * conform/data/netinet/in.h-data: Likewise.
5718 * conform/data/sys/socket.h-data: Likewise.
5721 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5722 (__strtok_r): Simplify.
5723 * string/tester.c (test_strtok_r): Add test case for futile search
5724 with single-character seach string.
5726 2008-01-12 Ulrich Drepper <drepper@redhat.com>
5728 * po/ko.po: Update from translation team.
5730 2008-01-11 Andreas Jaeger <aj@suse.de>
5733 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5734 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5737 2008-01-10 Ulrich Drepper <drepper@redhat.com>
5739 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5740 native interface lookup in all the relevant places.
5742 2008-01-10 Jakub Jelinek <jakub@redhat.com>
5743 Ulrich Drepper <drepper@redhat.com>
5745 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5746 field. Use sockaddr_in6 for source_addr.
5747 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
5748 (match_prefix): Likewise.
5749 (get_label): Likewise.
5750 (get_precedence): Likewise.
5751 (rfc3484_sort): Change to use indirect access to results array.
5752 Adjust to use of sockaddr_in6. Replace service_order test with
5753 simple index comparison.
5754 (getaddrinfo): Define order array. Initialize it. Don't initialize
5755 service_order field. Adjust qsort_t calls. Access sorted result
5756 array indirectly through order array.
5757 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5758 * posix/tst-rfc3484-2.c: Likewise.
5759 * posix/tst-rfc3484-3.c: Likewise.
5761 2008-01-09 Ulrich Drepper <drepper@redhat.com>
5764 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5766 Patch by André Cruz.
5769 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5770 (clnt_spcreateerror): Likewise.
5773 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5774 (public_mEMALIGn): Likewise.
5775 Patch mostly by Daniel Jacobowitz.
5777 2008-01-09 Jakub Jelinek <jakub@redhat.com>
5779 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5780 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5781 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5782 * stdlib/tst-makecontext2.c: New test.
5784 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5786 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5788 (REINIT_PARAMS): Likewise. Undefine before end of file.
5789 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5790 transliteration hooks and REINIT_PARAMS afterwards.
5791 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5793 (REINIT_PARAMS): Define.
5794 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5795 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5796 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5797 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5798 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5799 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5800 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5801 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5802 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5803 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5804 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5805 * iconvdata/tst-iconv7.c: New test.
5807 2008-01-07 Ulrich Drepper <drepper@redhat.com>
5809 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5811 2008-01-05 Jakub Jelinek <jakub@redhat.com>
5814 * nscd/connections.c (restart): Fix condition.
5816 2008-01-03 Jakub Jelinek <jakub@redhat.com>
5818 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5819 __ctype_toupper_loc): Add __THROW.
5821 2008-01-02 Ulrich Drepper <drepper@redhat.com>
5823 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5824 recognition of interface family.
5826 * posix/getconf.c: Update copyright year.
5827 * nss/getent.c: Likewise.
5828 * iconv/iconvconfig.c: Likewise.
5829 * iconv/iconv_prog.c: Likewise.
5830 * elf/ldconfig.c: Likewise.
5831 * catgets/gencat.c: Likewise.
5832 * csu/version.c: Likewise.
5833 * elf/ldd.bash.in: Likewise.
5834 * elf/sprof.c (print_version): Likewise.
5835 * locale/programs/locale.c: Likewise.
5836 * locale/programs/localedef.c: Likewise.
5837 * nscd/nscd.c (print_version): Likewise.
5838 * debug/xtrace.sh: Likewise.
5839 * malloc/memusage.sh: Likewise.
5840 * malloc/mtrace.pl: Likewise.
5841 * debug/catchsegv.sh: Likewise.
5843 2007-12-26 Ulrich Drepper <drepper@redhat.com>
5845 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5848 2007-12-23 Ulrich Drepper <drepper@redhat.com>
5850 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5851 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5853 2007-12-17 Roland McGrath <roland@redhat.com>
5855 * inet/ether_line.c (ether_line): Remove unused variable.
5857 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5859 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5861 * login/openpty.c (openpty): Likewise.
5862 * login/pty.h (openpty, forkpty): Likewise.
5863 * manual/terminal.texi (openpty, forkpty): Likewise.
5865 2007-12-17 Ulrich Drepper <drepper@redhat.com>
5867 * malloc/malloc.c (public_cALLOc): For arenas other than
5868 main_arena, count all bytes inside the mprotect_size range of the
5869 heap as uninitialized.
5871 2007-12-16 Ulrich Drepper <drepper@redhat.com>
5873 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5876 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5877 mTRIm for all of them.
5878 (mTRIm): Additionally iterate over all free blocks and use madvise
5879 to free memory for all those blocks which contain at least one
5881 * malloc/tst-trim1.c: New file.
5882 * malloc/Makefile (tests): Add tst-trim1.
5884 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5886 2007-12-14 Ulrich Drepper <drepper@redhat.com>
5888 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5889 First cast argument to long
5890 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5892 (__vdso_clock_gettime): Likewise.
5893 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5896 2007-12-13 Ulrich Drepper <drepper@redhat.com>
5898 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5899 * locale/nl_langinfo_l.c: Real implementation, copied from
5901 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5903 2007-12-01 Jim Meyering <meyering@redhat.com>
5905 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5906 that would inhibit utf8-optimization of a regexp containing line-
5907 or buffer-anchors, e.g., `^', `$'.
5909 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5911 * time/bug-getdate1.c (do_test): Don't use century values which
5912 aren't valid on 32-bit systems.
5914 2007-12-12 Jakub Jelinek <jakub@redhat.com>
5916 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5917 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5918 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5919 __strcat_g, __strncat_g): Add __asm__.
5921 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5924 * io/fchmodat.c: Fix typo in stub_warning use.
5925 Patch by Petr Salinger.
5927 2007-12-11 Ulrich Drepper <drepper@redhat.com>
5929 * iconvdata/hp-thai8.c: New file.
5930 * iconvdata/Makefile: Add rules for hp-thai8.c.
5931 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5932 * iconvdata/gconv-modules: Likewise.
5935 * iconvdata/hp-greek8.c: New file.
5936 * iconvdata/Makefile: Add rules for hp-greek8.c.
5937 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5938 * iconvdata/gconv-modules: Likewise.
5941 * iconvdata/hp-turkish8.c: New file.
5942 * iconvdata/Makefile: Add rules for hp-turkish8.c.
5943 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5944 * iconvdata/gconv-modules: Likewise.
5946 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5947 (shrink_heap): ... this new function.
5948 (heap_trim): Call shrink_heap instead of grow_heap.
5950 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5951 case don't call alloc_perturb.
5953 2007-12-10 Ulrich Drepper <drepper@redhat.com>
5955 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5957 * sysdeps/unix/sysv/linux/kernel-features.h
5958 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5959 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5961 2007-12-08 Ulrich Drepper <drepper@redhat.com>
5964 * stdio-common/vfprintf.c: Do not overflow when adding to done.
5965 * stdio-common/Makefile (tests): Add bug22.
5966 * stdio-common/bug22.c: New file.
5969 * time/getdate.c: Fix filling in default values.
5970 * time/bug-getdate1.c: New file.
5971 * time/Makefile: Add rules to build and run bug-getdate1.
5973 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5974 * iconvdata/ebcdic-es.c: Likewise.
5975 * iconvdata/ebcdic-es-a.c: Likewise.
5976 * iconvdata/ebcdic-uk.c: Likewise.
5977 * iconvdata/iso8859-16.c: Likewise.
5978 * iconvdata/viscii.c: Likewise.
5979 * iconvdata/iso8859-9e.c: Likewise.
5980 * iconvdata/Makefile: Adjust appropriately.
5983 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5986 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5989 * iconvdata/hp-roman9.c: New file.
5990 * iconvdata/Makefile: Add rules for hp-roman9.c.
5991 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5992 * iconvdata/gconv-modules: Likewise.
5994 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5995 * iconvdata/Makefile: Adjust appropriately.
5998 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5999 structure, it's allocated with alloca.
6000 * stdio-common/Makefile (tests): Add bug21.
6001 * stdio-common/bug21.c: New file.
6003 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6006 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6007 keyword for gcc's braced-groups.
6009 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6012 * inet/ether_line.c: Strip hostname of whitespaces.
6013 * inet/Makefile (tests): Add tst-ether_line.
6014 * inet/tst-ether_line.c: New file.
6016 2007-12-03 Ulrich Drepper <drepper@redhat.com>
6019 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6022 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6024 * stdlib/tst-setcontext.c: Catch the case where the links gets
6025 messed up and we do not reach main again.
6027 * po/ca.po: Update from translation team.
6029 2007-11-26 Ulrich Drepper <drepper@redhat.com>
6031 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6032 * posix/regex.h (REG_ENOSYS): Likewise.
6033 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6035 2007-11-25 Ulrich Drepper <drepper@redhat.com>
6037 * nscd/nscd.h (MAX_STACK_USE): Define.
6038 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6039 (gc): Initialize stack_used based on allocation in prune_cache.
6040 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6041 Clear array before use.
6043 * nscd/aicache.c (addhstaiX): Update statistics counter in case
6044 memory allocation failed.
6045 * nscd/hstcache.c (cache_addhst): Likewise.
6046 * nscd/grpcache.c (cache_addgr): Likewise.
6047 * nscd/servicescache.c (cache_addserv): Likewise.
6048 * nscd/pwdcache.c (cache_addpw): Likewise.
6049 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6051 2007-11-23 Ulrich Drepper <drepper@redhat.com>
6053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6054 and creat system calls.
6056 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6058 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6060 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6062 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6063 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6065 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6066 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6067 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6069 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6071 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6072 strncat): Define as macros to avoid compile errors.
6074 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6077 2007-11-22 Ulrich Drepper <drepper@redhat.com>
6080 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6081 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6082 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6084 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6086 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6087 Return zero in case the thread library is not NPTL.
6090 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6091 initializing interface list.
6094 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6095 use result of nss_getgrgid_r if nothing was found. For other
6096 error return with a failure.
6097 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6099 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6102 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6104 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6105 (get_scope): For IPv4 scope, use scopes table.
6106 (fini): Free scopes table if necessary.
6107 (free_scopelist): New function.
6108 (scopecmp): New function.
6109 (gaiconf_init): Also handle scopev4 entries.
6110 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6111 * posix/tst-rfc3484-2.c (do_test): Likewise.
6112 * posix/gai.conf: Document scopev4 defaults.
6113 * posix/Makefile (tests): Add tst-rfc3484-3.
6114 * posix/tst-rfc3484-3.c: New file.
6116 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6118 * posix/gai.conf: Update for current default tables.
6120 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6122 * po/tr.po: Update from translation team.
6124 2007-11-18 Roland McGrath <roland@frob.com>
6126 * manual/arith.texi (Remainder Functions): Spelling fix.
6127 From Shaun Silk <genix@mysoul.com.au>.
6129 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6131 2007-11-17 Ulrich Drepper <drepper@redhat.com>
6133 * po/zh_CN.po: Update from translation team.
6135 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6136 Add sys/signalfd.h and sys/eventfd.h.
6138 2007-11-15 Bruno Haible <bruno@clisp.org>
6141 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6143 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6144 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6145 it needs only fixed stack space. Delay the initialization of
6146 msgid_len until it is needed.
6148 2007-11-15 Andreas Jaeger <aj@suse.de>
6150 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6151 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6153 2007-11-15 Ulrich Drepper <drepper@redhat.com>
6155 * po/ko.po: Update from translation team.
6157 2007-11-14 Ulrich Drepper <drepper@redhat.com>
6159 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6160 significantly. The device type is also part of the ifinfomsg data.
6162 * po/sv.po: Update from translation team.
6163 * po/nl.po: Likewise.
6165 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6166 to wake up in 24 hours.
6168 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6170 2007-11-13 Ulrich Drepper <drepper@redhat.com>
6172 * po/cs.po: Update from translation team.
6173 * po/pl.po: Likewise.
6175 * include/ifaddrs.h: Remove in6ai_temporary.
6176 (struct in6addrinfo): Add index element.
6177 Declare __check_native.
6178 * inet/Makefile (aux): Add check_native.
6179 * sysdeps/unix/sysv/linux/check_native.c: New file.
6180 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6181 IFA_F_TEMPORARY. Pass back ifa_index.
6182 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6183 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6184 call __check_native if necessary.
6185 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6186 to sort addresses. Pass information about the results.
6187 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6188 of rfc3484_sort interface.
6189 * posix/tst-rfc3484-2.c: Likewise.
6191 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6192 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6194 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6195 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6196 on as third parameter to compare function and _quicksort.
6197 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6198 to the compare function.
6199 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6200 * Versions.def: Add GLIBC_2.8 for libc.
6202 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6203 * posix/tst-rfc3484-2.c: Likewise.
6205 * include/kernel-features.h: Moved to...
6206 * sysdeps/mach/hurd/kernel-features.h: ...here.
6208 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6210 * sysdeps/i386/i586/memcpy_chk.S: New file.
6211 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6212 * sysdeps/i386/i586/memset_chk.S: Likewise.
6214 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6216 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6217 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6218 list of interfaces. Also store prefix length.
6219 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6220 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6221 prefix if source and destination address are in the same subnet.
6222 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6223 Always look for matching record in in6ai list.
6224 Correct source_addr_len value for IPv6->IPv4 converted records.
6226 2007-11-11 Roland McGrath <roland@frob.com>
6228 * include/kernel-features.h: New file.
6230 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6232 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6233 complications for 64-bit platforms.
6235 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6236 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6237 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6239 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6241 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6242 * sysdeps/wordsize-64/alphasort.c: New file.
6243 * sysdeps/wordsize-64/alphasort64.c: New file.
6244 * sysdeps/wordsize-64/fseeko.c: New file.
6245 * sysdeps/wordsize-64/fseeko64.c: New file.
6246 * sysdeps/wordsize-64/ftello.c: New file.
6247 * sysdeps/wordsize-64/ftello64.c: New file.
6248 * sysdeps/wordsize-64/ftw.c: New file.
6249 * sysdeps/wordsize-64/ftw64.c: New file.
6250 * sysdeps/wordsize-64/iofgetpos.c: New file.
6251 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6252 * sysdeps/wordsize-64/iofopen.c: New file.
6253 * sysdeps/wordsize-64/iofopen64.c: New file.
6254 * sysdeps/wordsize-64/iofsetpos.c: New file.
6255 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6256 * sysdeps/wordsize-64/lockf.c: New file.
6257 * sysdeps/wordsize-64/lockf64.c: New file.
6258 * sysdeps/wordsize-64/mkostemp.c: New file.
6259 * sysdeps/wordsize-64/mkostemp64.c: New file.
6260 * sysdeps/wordsize-64/mkstemp.c: New file.
6261 * sysdeps/wordsize-64/mkstemp64.c: New file.
6262 * sysdeps/wordsize-64/scandir.c: New file.
6263 * sysdeps/wordsize-64/scandir64.c: New file.
6264 * sysdeps/wordsize-64/tmpfile.c: New file.
6265 * sysdeps/wordsize-64/tmpfile64.c: New file.
6266 * sysdeps/wordsize-64/versionsort.c: New file.
6267 * sysdeps/wordsize-64/versionsort64.c: New file.
6268 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6269 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6270 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6271 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6272 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6273 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6274 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6275 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6276 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6277 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6278 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6279 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6281 * crypt/sha256-crypt.c: Fix a comment.
6282 * crypt/sha512-crypt.c: Likewise.
6284 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6286 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6288 2007-11-07 Ulrich Drepper <drepper@redhat.com>
6291 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6292 because output buffer is too small break, don't loop.
6293 * iconvdata/Makefile (tests): Add bug-iconv6.
6294 * iconvdata/bug-iconv6.c: New file.
6296 2007-11-06 Ulrich Drepper <drepper@redhat.com>
6298 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6300 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6301 size_t. Add casts where needed.
6303 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6304 old headers, don't call avc_has_perm if we don't have the
6305 permission information.
6307 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6309 * elf/rtld.c (dl_main): Use the page size to find the map start.
6311 2007-11-05 Ulrich Drepper <drepper@redhat.com>
6313 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6314 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6316 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6317 when the lookup call failed.
6319 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6320 Add prune_cond and wakeup_time.
6321 (CACHE_PRUNE_INTERNAL): Define.
6322 Update declarations of prune_cache and setup_thread.
6323 * nscd/connections.c (dbs): Update initializers.
6324 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6325 (nscd_init): Default number of threads is now 4.
6326 (invalidate_cache): Take lock before calling prune_cache.
6327 (handle_request): If SELinux forbids the request, say so.
6328 (readylist_cond): Use static initializer.
6329 (nscd_run_prune): New function. Used only by pruning threads.
6330 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6332 (fd_ready): Update nscd_run reference.
6333 (start_threads): No need to initialize readylist_cond.
6334 Start pruning threads separately.
6335 * nscd/nscd_setup_thread.c: Change return value type to int and always
6337 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6338 to int and return nonzero value if we can use the TID address hack.
6339 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6340 the database is later than the new entry's timeout, update the
6341 wakeup time and wake the cleanup thread.
6342 (prune_cache): Return seconds the next entry in the database is still
6343 valid. Remove locking for pruning here.
6344 * nscd/nscd.conf: Document default number of threads.
6346 2007-10-31 Ulrich Drepper <drepper@redhat.com>
6348 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6349 stack is properly aligned for the target function.
6350 Correct unwind info.
6352 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6353 when using auditing libraries.
6355 2007-10-29 Ulrich Drepper <drepper@redhat.com>
6357 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6358 _nss_dns_getnetbyaddr2_r.
6359 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6360 extra parameter to getanswer_r.
6361 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6362 _nss_dns_getnetbyaddr2_r.
6364 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6366 * nscd/gethstbynm2_r.c: Remove.
6367 * nscd/gethstbynm3_r.c: New file.
6368 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6370 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6371 __gethostbyaddr_r compatibility wrapper.
6372 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6373 determining timeout of entry.
6374 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6376 (addhstbyX): Pass reference to variable for TTL to lookup and
6378 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6379 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6380 and __nss_next2. Remove __nss_services_lookup.
6381 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6383 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6385 * nss/getXXent_r.c: Likewise.
6386 * nss/getnssent_r.c: Likewise.
6387 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6388 does not exist in module, try the optional second name.
6389 (__nss_next2): New function.
6390 (__nss_next): Now wrapper around __nss_next2.
6391 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6392 Declare __nss_next2.
6393 Adjust definition of db_lookup_function type.
6394 * nss/service-lookup.c: Define NO_COMPAT.
6395 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6396 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6397 * inet/ether_ntoh.c: Likewise.
6398 * sunrpc/netname.c: Likewise.
6399 * sunrpc/publickey.c: Likewise.
6400 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
6401 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6402 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6403 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6404 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6406 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6408 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6410 2007-10-28 Ulrich Drepper <drepper@redhat.com>
6413 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6414 * crypt/sha512c-test.c: Likewise.
6417 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6418 to keep track of end of %[ format string element.
6419 * stdio-common/Makefile (tests): Add bug20.
6420 * stdio-common/bug20.c: New file.
6423 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6424 path elements in counting mode.
6426 2007-10-27 Andreas Jaeger <aj@suse.de>
6429 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6432 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6433 (__cleanup): Free shared library when exiting.
6434 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6435 (__cleanup): Free shared library when exiting.
6437 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
6440 * math/libm-test.inc (check_float_internal): Support
6441 denormalized return.
6443 2007-10-23 Andreas Jaeger <aj@suse.de>
6446 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6447 __LONG_LONG_PAIR to handle little endian byte order.
6448 Suggested by abhishekrai@google.com
6450 2007-10-27 Ulrich Drepper <drepper@redhat.com>
6452 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6454 2007-10-26 Ulrich Drepper <drepper@redhat.com>
6456 * nscd/cache.c (prune_cache): Move test for modified file outside
6459 2007-10-21 Andreas Jaeger <aj@suse.de>
6461 * manual/texinfo.tex: Update to latest version.
6463 * manual/sysinfo.texi (System Parameters): Fix Formatting.
6465 * manual/arith.texi (Status bit operations): Fix formatting.
6467 * manual/errno.texi (Error Messages): Fix formatting.
6469 * manual/sysinfo.texi (System Parameters): Fix formatting.
6471 * manual/libc.texinfo: Update VERSION and UPDATED.
6473 2007-10-19 Roland McGrath <roland@redhat.com>
6475 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6477 2007-10-06 David S. Miller <davem@davemloft.net>
6479 * configure.in: Add sparcv9v2 and sparc64v2.
6480 * scripts/config.sub: Likewise.
6481 * configure: Regenerate.
6482 * elf/elf.h (HWCAP_SPARC_N2): New.
6483 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6484 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6485 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6486 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6487 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6488 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6489 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6491 2007-10-18 Ulrich Drepper <drepper@redhat.com>
6493 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6494 even if the poll result indicates there is data to read.
6495 Patch by Jeff Moyer <jmoyer@redhat.com>.
6497 2007-10-18 Roland McGrath <roland@redhat.com>
6499 * elf/elf.h (NT_PPC_VMX): New macro.
6501 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6503 * version.h (VERSION): Set to 2.7.90.
6505 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6507 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
6510 2007-10-17 Roland McGrath <roland@frob.com>
6512 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6513 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6515 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6517 * version.h (VERSION): Bump to 2.7.
6518 * include/features.h (__GLIBC_MINOR__): Bump to 7.
6521 * time/tzset.c (__tz_convert): Don't force testing for a change of
6522 TZ if not called from localtime. But then also see whether the
6523 file changed, in case __use_tzfile is set.
6525 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6526 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6527 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6528 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6529 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6530 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6531 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6532 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6534 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6536 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6537 and admin selects to be able to replace the gai.conf file, lock
6538 data structures around the qsort call.
6540 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6542 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6544 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
6545 too high for the improvements. Implement bzero unconditionally for
6548 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6549 Jakub Jelinek <jakub@redhat.com>
6551 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6552 even when time_t is 32-bit.
6553 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6554 timezone data read by __tzfile_default. Ensure __tzname[0] is
6555 always set after the search.
6557 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6559 * time/tzfile.c (__tzfile_read): Help the compiler recognize
6560 unreachable code on 32-bit machines.
6562 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6565 * time/strftime_l.c: Include stdbool.h.
6566 (my_strftime): New wrapper, old function renamed to...
6567 (__strftime_internal): ... new function. Add tzset_called
6568 argument, pass it down to recursive calls, don't call tzset ()
6569 if already true, set to true after call to tzset ().
6571 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6573 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6574 into account when copying TZ string.
6576 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6578 * time/tzfile.c (__tzfile_compute): For use_last case set i to
6579 num_transition rather than num_transitions - 1.
6581 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6583 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6586 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6587 a local label rather than HIDDEN_JUMPTARGET.
6589 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6591 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6592 (init_cacheinfo): Initialize it.
6593 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6594 Always define bzero.
6595 Remove non-glibc code.
6596 * sysdeps/x86_64/bzero.S: Make an empty file.
6598 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6600 * sysdeps/x86_64/cacheinfo.c
6601 (__x86_64_preferred_memory_instruction): New.
6602 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6604 * sysdeps/x86_64/memset.S: Rewrite.
6606 2007-10-15 Roland McGrath <roland@redhat.com>
6608 * po/libc.pot: Regenerated.
6610 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6612 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6616 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6617 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6618 address record to T_A/T_AAAA requests.
6620 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6622 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6624 * posix/glob.c: Add some branch prediction throughout.
6626 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6629 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6631 (rfc3484_sort): Make sure that even if qsort doesn't support
6632 stable sorting out sorting here is stable by comparing service_order.
6633 (getaddrinfo): Initialize service_order.
6634 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6635 service_order field to sorting structure.
6636 * posix/tst-rfc3484-2.c (do_test): Likewise.
6638 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6639 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6640 __tzset_parse_tz and updating of daylight, timezone, tzname into
6642 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6643 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6644 happens in __tz_compute.
6645 * time/tzfile.c (__tzfile_read): Also read TZ string.
6646 (find_transition): Fold into __tzfile_compute.
6647 (__tzfile_compute): For times beyond the last transition try to
6649 * timezone/tst-timezone.c: Information in daylight and tzname does
6650 change for Asia/Tokyo timezone with more concrete information.
6653 * include/stdio.h: Add libc_hidden_proto for ftello.
6654 * libio/ftello.c: Add libc_hidden_def.
6657 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6658 on the specified time and not the last entries in the file. Move
6659 code to determine tzname[] to...
6660 (find_transition): ...here. Add ugly guess for times before the
6663 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6666 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6668 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6669 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6670 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6671 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6673 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6674 read mechanism when there are no group members and avoid no-op
6675 read syscall in this case.
6678 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6679 (__readall): If reading failed due to EAGAIN error wait a bit
6680 and possibly try again.
6681 (__readvall): Likewise.
6683 2007-10-13 Bruno Haible <bruno@clisp.org>
6685 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6686 when we cannot recode the message.
6688 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6691 * libio/__freading.c (__freading): Don't return true for
6692 write-only streams. For read/write streams, check whether we
6693 performed a read operation already.
6694 * libio/Makefile (tests): Add tst-ext2.
6695 * libio/tst-ext2.c: New file.
6697 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6699 * locale/programs/repertoire.c (repertoire_read): Always free
6700 memory for repertoire file name [Coverity CID 270].
6702 * elf/cache.c (save_aux_cache): Free memory allocated for
6703 temporary file name [Coverity CID 267].
6705 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6707 * misc/Makefile (headers): Add bits/error.h.
6709 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6711 * posix/fnmatch_loop.c: Take rule index returned as part of
6712 findidx return value into account when accessing weights.
6713 * posix/regcomp.c: Likewise.
6714 * posix/regexec.c: Likewise.
6716 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6717 (skip_to): Fix problems with parameter of elifdef/elifndef.
6719 2007-10-11 Ulrich Drepper <drepper@redhat.com>
6721 * iconv/gconv_simple.c: Add some branch prediction.
6723 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6725 * locale/programs/ld-collate.c (collate_read): If ignore_content
6726 and nowtok is tok_define, eat any tok_eol tokens.
6728 2007-10-11 Jakub Jelinek <jakub@redhat.com>
6730 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6731 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6733 * inet/netinet/in.h: Don't include bits/socket.h.
6734 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6736 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6738 2007-10-10 Ulrich Drepper <drepper@redhat.com>
6740 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6742 * locale/programs/locfile-kw.gperf: Likewise.
6743 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6745 2007-10-10 Jakub Jelinek <jakub@redhat.com>
6747 * stdio-common/printf-parse.h: Include string.h and wchar.h.
6748 (__find_specwc): Change into __extern_always_inline function.
6749 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
6750 (__parse_one_specmb): Remove ps argument.
6751 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6752 Adjust __find_specmb and __parse_one_specmb callers.
6753 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6754 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6756 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6759 2007-10-09 Ulrich Drepper <drepper@redhat.com>
6761 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6762 with some Pentium Ds.
6764 2007-10-08 Ulrich Drepper <drepper@redhat.com>
6766 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6768 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6771 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6774 * locale/C-time.c: Set week_1stday data to 19971201.
6775 * locale/programs/ld-time.c (time_finish): Default for
6776 first_workday is Monday.
6779 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6782 * posix/glob.c (glob): Recognize patterns starting \/.
6783 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6784 (main): Add test for pattern starting \/.
6786 * misc/error.h: Use __const instead of const.
6787 * misc/bits/error.h: Likewise.
6789 2007-10-07 Andreas Jaeger <aj@suse.de>
6791 * include/bits/error.h: New file.
6793 * misc/bits/error.h (error_at_line): Fix prototype.
6795 2007-10-06 Ulrich Drepper <drepper@redhat.com>
6798 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6799 more little bugs in creating the stack frame when pltexit has to
6802 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6803 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6806 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6807 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6808 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6809 * math/libm-test.inc: Add test for this case.
6812 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6813 (svc_register): Initialize sc_mapped. Set to TRUE if call to
6814 map service succeeded.
6815 (svc_is_mapped): New function.
6816 (svc_unregister): Use it before trying to unmap service.
6818 2007-10-05 Ulrich Drepper <drepper@redhat.com>
6820 * timezone/zic.c: Update from tzcode2007h.
6823 * timezone/africa: Update from tzdata2007h.
6824 * timezone/antarctica: Likewise.
6825 * timezone/asia: Likewise.
6826 * timezone/australasia: Likewise.
6827 * timezone/europe: Likewise.
6828 * timezone/leapseconds: Likewise.
6829 * timezone/northamerica: Likewise.
6830 * timezone/southamerica: Likewise.
6831 * timzeone/zone.tab: Likewise.
6834 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6837 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6838 avoid warning with -Wconversion.
6839 (__strndup): Likewise.
6840 Half the patch by Christian Iseli <christian.iseli@licr.org>.
6843 * nscd/connections.c (restart): Don't resync if database is
6844 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6846 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6847 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6849 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6850 evetnfd_read, eventfd_write.
6851 * sysdeps/unix/sysv/linux/eventfd.c: New file.
6852 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6853 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6854 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6855 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6856 eventfd_write for GLIBC_2.7.
6858 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6859 * sysdeps/unix/sysv/linux/signalfd.c: New file.
6860 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6861 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6863 2007-10-04 Jakub Jelinek <jakub@redhat.com>
6865 * stdlib/msort.c: Include stdint.h.
6866 (struct msort_param): New type.
6867 (msort_with_tmp): Use struct msort_param pointer for unchanging
6868 parameters. Add optimized handling for several common sizes
6869 and indirect sorting mode.
6870 (qsort): Adjust msort_with_tmp callers. For big S use indirect
6872 Suggested by Belazougui Djamel .
6874 * stdlib/Makefile (tests): Add tst-qsort2.
6875 * stdlib/tst-qsort2.c: New test.
6877 2007-10-04 Ulrich Drepper <drepper@redhat.com>
6879 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6880 for dup2 in case another thread races with the current one. Retry
6883 * misc/error.h: Remove support for use outside of libc. We have to
6884 include <features.h> now. Include <bits/error.h> if possible.
6885 * misc/bits/error.h: New file.
6887 2007-10-03 Jakub Jelinek <jakub@redhat.com>
6889 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6890 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6891 __extern_always_inline functions unconditionally, drop macros.
6893 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6894 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6895 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6897 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6898 add __artificial__ attribute.
6900 2007-10-02 Ulrich Drepper <drepper@redhat.com>
6902 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6903 backward to forward direction.
6905 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6908 * locale/programs/ld-collate.c (collate_finish): Compare against last
6909 used section which is known to have rules defined.
6910 (collate_read): After order_start, correctly record order of sections
6911 and queue sections up.
6913 2007-10-01 Ulrich Drepper <drepper@redhat.com>
6916 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6917 the same number of pages.
6918 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6920 * locale/programs/ld-collate.c (collate_read): After initial copy
6921 statement, continue in state 0.
6923 * include/stdio_ext.h (__fsetlocking): Define as macro.
6925 2007-09-30 Ulrich Drepper <drepper@redhat.com>
6927 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6930 * po/pt_BR.po: Fix typo.
6932 2007-09-29 Ulrich Drepper <drepper@redhat.com>
6934 * iconvdata/Makefile (modules): Add ISO8859-9E.
6935 (distribute): Add iso8859-9e.c.
6936 (gen-8bit-gap-modules): Add iso8859-9e.
6937 * iconvdata/iso8859-9e.c: New file.
6938 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6939 * iconvdata/TESTS: Likewise.
6940 * iconvdata/tst-tables.sh: Likewise.
6942 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6944 * locale/iso-639.def: Add several new entries.
6946 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6948 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6949 void * pointers instead of struct link_map **.
6950 (_dl_scope_free): Change argument type to void *.
6951 * include/link.h (struct link_map): Change type of l_reldeps
6952 to struct link_map_reldeps, move l_reldepsact into that
6954 * elf/dl-deps.c: Include atomic.h.
6955 (_dl_map_object_deps): Only change l->l_initfini when it is
6956 fully populated, use _dl_scope_free for freeing it. Optimize
6957 removal of libs from reldeps by using l_reserved flag, when
6958 some removal is needed, allocate a new list instead of
6959 reallocating and free the old with _dl_scope_free. Adjust
6960 for l_reldeps and l_reldepsact changes.
6961 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
6962 searching in l_initfini and l_reldeps without holding dl_load_lock.
6963 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6964 l_reldepsact changes.
6965 * elf/dl-close.c (_dl_close_worker): Likewise.
6966 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6968 2007-09-28 Ulrich Drepper <drepper@redhat.com>
6970 * iconvdata/Makefile (modules): Add KOI8-RU.
6971 (distribute): Add koi8-ru.c.
6972 (gen-8bit-gap-modules): Add koi8-ru.
6973 * iconvdata/koi8-ru.c: New file.
6974 * iconvdata/gconv-modules: Add entries for KOI8-RU.
6975 * iconvdata/TESTS: Likewise.
6976 * iconvdata/tst-tables.sh: Likewise.
6978 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6980 2007-09-26 Jakub Jelinek <jakub@redhat.com>
6982 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6983 with __warning__/__error__ attributes.
6984 (__warnattr): Define.
6985 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6986 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6988 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6989 of __*_chk if compile time detectable overflow is found.
6990 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6991 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6993 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6994 instead of __*_chk if compile time detectable overflow is found.
6995 (__gets_alias): Rename to...
6996 (__gets_warn): ... this. Add __warnattr.
6997 (gets): Call __gets_warn instead of __gets_alias.
6998 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6999 aliases with __warnattr.
7000 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7001 time detectable overflow is found.
7002 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7003 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7004 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7005 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7006 __getdomainname_chk_warn): New aliases with __warnattr.
7007 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7008 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7009 __*_chk_warn instead of __*_chk if compile time detectable overflow
7011 (__getgroups_chk): Rename argument to __listlen from listlen.
7012 (__getwd_alias): Rename to...
7013 (__getwd_warn): ... this. Add __warnattr.
7014 (getwd): Call __getwd_warn instead of __getwd_alias.
7015 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7016 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7017 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7018 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7019 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7020 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7021 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7022 compile time detectable overflow is found.
7023 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7024 to use __*_chk or not.
7025 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7026 in comparisons which function should be called and in __*_chk*
7027 arguments. Call __*_chk_warn instead of __*_chk if compile time
7028 detectable overflow is found.
7029 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7031 * debug/tst-chk1.c (do_test): Add a few more tests.
7033 2007-09-24 Ulrich Drepper <drepper@redhat.com>
7036 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7037 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7038 (_nl_unload_domain): Finalize conversions_lock.
7039 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7040 handling table of known conversions.
7042 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7044 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7045 close_not_cancel_no_status instead of close.
7047 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7050 * posix/regcomp.c (lookup_collation_sequence_value): Check that
7051 nrules != 0 for multibyte chars.
7053 2007-09-23 Ulrich Drepper <drepper@redhat.com>
7055 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7056 Provide better error message in case the type is unknown.
7059 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7060 * string/stratcliff.c: Make usable to test wide char functions.
7061 * wcsmbs/wcsatcliff.c: New file.
7062 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7065 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7066 (distribute): Add mac-centraleurope.c.
7067 (gen-8bit-gap-modules): Add mac-centraleurope.
7068 * iconvdata/mac-centraleurope.c: New file.
7069 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7070 * iconvdata/TESTS: Likewise.
7071 * iconvdata/tst-tables.sh: Likewise.
7074 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7076 2007-09-21 Ulrich Drepper <drepper@redhat.com>
7078 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7079 from __x86_64_core_cache_size_half.
7080 (init_cacheinfo): Compute shared cache size for AMD processors with
7081 shared L3 correctly.
7082 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7084 Patch in large parts by Evandro Menezes.
7086 2007-09-19 Ulrich Drepper <drepper@redhat.com>
7088 * elf/dl-lookup.c (add_dependency): Handle failing memory
7089 allocation for dependency list. Remove unnecessary check.
7091 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7092 open/close when determining source addresses.
7094 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7095 sha512-crypt, and sha512.
7096 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7097 (distribute): Add sha256.h and sha512.h.
7098 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7099 and call the appropriate code.
7100 * crypt/sha256-crypt.c: New file.
7101 * crypt/sha256.c: New file.
7102 * crypt/sha256.h: New file.
7103 * crypt/sha256c-test.c: New file.
7104 * crypt/sha256test.c: New file.
7105 * crypt/sha512-crypt.c: New file.
7106 * crypt/sha512.c: New file.
7107 * crypt/sha512.h: New file.
7108 * crypt/sha512c-test.c: New file.
7109 * crypt/sha512test.c: New file.
7111 2007-09-19 Jakub Jelinek <jakub@redhat.com>
7113 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7114 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7117 2007-09-18 Jakub Jelinek <jakub@redhat.com>
7119 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7120 %as in fscanf format strings.
7122 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7123 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7124 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7126 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7129 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7130 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7131 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7132 * elf/dl-sym.c (do_sym): Likewise.
7133 * include/link.h (struct link_map): Add l_serial field.
7134 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7135 * elf/dl-lookup.c (add_dependency): Add flags argument.
7136 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7137 flags, use THREAD_GSCOPE_RESET_FLAG before and
7138 THREAD_GSCOPE_SET_FLAG after
7139 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7140 Don't dereference map until it has been found on some list.
7141 If map->l_serial changed, return -1.
7143 2007-09-17 Jakub Jelinek <jakub@redhat.com>
7145 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7146 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7147 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7149 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7150 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7151 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7152 add libc_hidden_proto.
7153 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7154 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7155 conformance requested.
7156 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7157 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7158 conformance requested.
7159 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7160 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7161 conformance requested.
7162 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7163 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7164 ISO C99 or POSIX conformance requested.
7165 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7166 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7167 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7168 and __isoc99_vsscanf@@GLIBC_2.7.
7169 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7170 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7171 (tests): Add scanf14.
7172 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7173 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7174 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7175 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7176 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7177 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7178 from using internal headers.
7179 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7180 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7181 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7182 and __isoc99_vswscanf@@GLIBC_2.7.
7183 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7184 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7185 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7186 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7187 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7188 * stdio-common/isoc99_scanf.c: New file.
7189 * stdio-common/isoc99_vsscanf.c: New file.
7190 * stdio-common/isoc99_vscanf.c: New file.
7191 * stdio-common/isoc99_vfscanf.c: New file.
7192 * stdio-common/isoc99_fscanf.c: New file.
7193 * stdio-common/isoc99_sscanf.c: New file.
7194 * wcsmbs/isoc99_fwscanf.c: New file.
7195 * wcsmbs/isoc99_vswscanf.c: New file.
7196 * wcsmbs/isoc99_swscanf.c: New file.
7197 * wcsmbs/isoc99_wscanf.c: New file.
7198 * wcsmbs/isoc99_vwscanf.c: New file.
7199 * wcsmbs/isoc99_vfwscanf.c: New file.
7200 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7201 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7202 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7203 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7204 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7205 * stdio-common/scanf14.c: New test.
7206 * stdio-common/scanf15.c: New test.
7207 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7208 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7209 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7210 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7211 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7212 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7213 __nldbl___isoc99_scanf@@GLIBC_2.7,
7214 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7215 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7216 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7217 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7218 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7219 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7220 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7221 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7222 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7223 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7224 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7225 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7226 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7227 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7228 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7229 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7230 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7231 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7232 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7233 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7234 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7235 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7236 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7238 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7239 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7240 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7241 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7242 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7243 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7244 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7245 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7246 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7247 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7248 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7249 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7251 * stdio-common/Makefile (tests): Add scanf13.
7253 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7254 m modifier followed by l.
7255 (STRING_ARG): Add width argument.
7256 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7257 <case L_('C')>: Handle %mlc and %mC.
7258 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7260 * stdio-common/scanf13.c: New test.
7262 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7263 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7265 2007-09-18 Ulrich Drepper <drepper@redhat.com>
7267 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7268 type and __THROW marker of splice, vmsplice, and tee.
7269 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7270 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7271 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7272 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7273 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7274 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7275 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7276 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7277 as cancellation points.
7279 2003-11-01 Daniel Jacobowitz <dan@debian.org>
7281 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7282 parse more than three parts of the version number.
7284 2007-09-15 Ulrich Drepper <drepper@redhat.com>
7286 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7287 modifier. Patch by Jakub Jelinek.
7289 2007-08-26 Jakub Jelinek <jakub@redhat.com>
7291 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7292 call_fallocate in misc subdir.
7293 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7294 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7295 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7296 instead of __fallocate64.
7297 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7299 2007-09-15 Jakub Jelinek <jakub@redhat.com>
7301 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7302 * rt/Makefile (headers): Add bits/mqueue2.h.
7303 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7304 optimizing with GCC and __va_arg_pack_len is defined.
7305 * rt/bits/mqueue2.h: New file.
7306 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7307 (mq_open): New strong_alias.
7308 (__mq_open_2): New function.
7309 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7310 (mq_open): New strong_alias.
7311 (__mq_open_2): New function.
7312 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7313 * Versions.def (librt): Add GLIBC_2.7 version.
7314 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7315 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7317 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7318 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7319 is defined rather than when not C++.
7320 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7321 __openat64_alias): New redirects.
7322 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7323 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7324 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7325 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7326 functions instead of function-like macros.
7328 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7330 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7331 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7332 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7334 2007-09-15 Mike Frysinger <vapier@gentoo.org>
7336 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7337 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7339 2007-09-14 Mike Frysinger <vapier@gentoo.org>
7341 * inet/tst-network.c: Increment ERRORS for failing tests.
7343 2007-09-07 Jakub Jelinek <jakub@redhat.com>
7345 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7346 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7347 implement as __extern_always_inline function.
7348 (vsyslog): Define as __extern_always_inline function unconditionally.
7349 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7350 When __va_arg_pack is defined, implement as __extern_always_inline
7352 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7353 __extern_always_inline functions unconditionally.
7354 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7355 bits/stdio2.h will be included.
7356 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7357 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7358 implement as __extern_always_inline functions.
7359 (vswprintf, vwprintf, vfwprintf): Define as
7360 __extern_always_inline functions unconditionally.
7361 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7363 2007-09-03 Jakub Jelinek <jakub@redhat.com>
7365 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7366 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7368 * include/features.h (__USE_EXTERN_INLINES): Define only when
7369 __extern_inline is defined.
7370 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7371 is defined instead of when not __cplusplus.
7372 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7373 is defined instead of when not __cplusplus.
7374 * socket/sys/socket.h: Include bits/socket2.h when
7375 __extern_always_inline is defined instead of when not __cplusplus.
7376 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7377 is defined instead of when not __cplusplus.
7378 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7379 is defined instead of when not __cplusplus.
7380 * string/string.h: Include bits/string3.h when __extern_always_inline
7381 is defined instead of when not __cplusplus.
7382 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7383 is defined instead of when not __cplusplus.
7384 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7385 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7387 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7388 defined __extern_always_inline instead of !defined __cplusplus.
7389 * libio/bits/stdio-ldbl.h: Likewise.
7390 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7391 * misc/bits/syslog.h (syslog): Don't define for C++.
7392 (vsyslog): Use __extern_always_inline function for C++ instead of
7394 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7395 whenever that macro is defined.
7396 (vprintf): Don't provide the inline for C++.
7397 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7398 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7399 define the macros for C++.
7400 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7401 __extern_always_inline functions for C++.
7402 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7403 stat64, lstat64, fstat64, fstatat64): Don't define if not
7404 __USE_EXTERN_INLINES.
7405 * wcsmbs/bits/wchar2.h: Fix #error message.
7406 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7407 (vswprintf, vwprintf, vfwprintf): Define using
7408 __extern_always_inline functions for C++.
7409 * string/bits/string3.h: Don't #undef macros if __cplusplus.
7410 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7411 strncpy, strcat, strncat): Define as __extern_always_inline
7412 functions instead of macros for C++.
7413 * math/bits/cmathcalls.h: Guard __extern_inline routines with
7414 defined __extern_inline.
7415 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7416 to __extern_inline whenever that macro is defined.
7417 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7418 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7419 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7420 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7421 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7422 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7423 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7424 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7425 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7426 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7427 prototypes. Only provide __extern_inline routines if
7428 __USE_EXTERN_INLINES.
7429 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7431 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7432 For now avoid some *printf tests in C++. Skip all testing
7433 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7435 * debug/tst-chk4.cc: New file.
7436 * debug/tst-chk5.cc: New file.
7437 * debug/tst-chk6.cc: New file.
7438 * debug/tst-lfschk4.cc: New file.
7439 * debug/tst-lfschk5.cc: New file.
7440 * debug/tst-lfschk6.cc: New file.
7441 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7443 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7444 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7445 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7447 2007-09-13 Ulrich Drepper <drepper@redhat.com>
7449 * po/cs.po: Update from translation team.
7451 2007-09-11 Roland McGrath <roland@redhat.com>
7453 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7456 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7458 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7460 2007-09-05 Roland McGrath <roland@redhat.com>
7462 * manual/signal.texi (Signaling Another Process): Typo fix.
7463 From Karl Berry <karl@freefriends.org>.
7465 2007-08-29 Ulrich Drepper <drepper@redhat.com>
7467 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7468 zero if not defined.
7469 (make_request): Recognize optimistic addresses and treat them like
7470 deprecated addresses.
7471 Reported by Neil Horman <nhorman@redhat.com>.
7473 2007-08-28 Ulrich Drepper <drepper@redhat.com>
7475 * nscd/connections.c (send_ro_fd): Also transfer file size.
7476 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7477 file size don't call fstat.
7479 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7480 ahead and map the file. This should always be correct and we can
7481 catch problems later.
7483 2007-08-28 Jakub Jelinek <jakub@redhat.com>
7485 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7487 (__fread_alias, __fread_unlocked_alias): New aliases.
7488 (fread): New extern inline.
7489 (fread_unlocked): Likewise. Undef macro before definition of
7490 the inline function.
7491 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7492 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7493 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7494 and __fread_unlocked_chk@@GLIBC_2.7.
7495 * debug/fread_chk.c: New file.
7496 * debug/fread_u_chk.c: New file.
7497 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7499 2007-08-27 Jakub Jelinek <jakub@redhat.com>
7501 * sysdeps/unix/sysv/linux/syscalls.list
7502 (personality): Change caller to EXTRA.
7504 2007-08-25 Ulrich Drepper <drepper@redhat.com>
7506 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7508 * iconvdata/iso-2022-cn.c (BODY): Likewise.
7510 * locale/programs/ld-collate.c (collate_output): Avoid warning if
7513 * Makerules: Use -p option with mkdir.
7515 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7516 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7517 (_xdr_directory_obj): Likewise.
7518 (xdr_entry_obj): Likewise.
7519 (xdr_group_obj): Likewise.
7520 (xdr_link_obj): Likewise.
7521 (xdr_table_obj): Likewise.
7522 (_xdr_nis_result): Likewise.
7523 (_xdr_ns_request): Likewise.
7524 (_xdr_ib_request): Likewise.
7525 (_xdr_nis_taglist): Likewise.
7526 (xdr_cback_data): Likewise.
7527 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7528 (xdr_ypresp_maplist): Likewise.
7530 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7532 * posix/regex_internal.h: Prevent some declarations and definitions
7533 to be seen when used in tests.
7535 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7536 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7538 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7540 * config.make.in (datarootdir): Add to shut up configure.
7542 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7543 associativity for fully-associative caches.
7545 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7546 requests. Fill on more associativity values for L2.
7547 Patch mostly by Evandro Menezes.
7549 2007-08-24 Ulrich Drepper <drepper@redhat.com>
7551 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7552 (_libc_vdso_platform_setup): Avoid using exported variable by using
7555 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7557 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7558 fallocate64 as EXTRA. It is not referenced if the symbol isn't
7561 2007-08-23 Ulrich Drepper <drepper@redhat.com>
7563 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7564 align stack for call if pltexit is to be used.
7567 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7568 align for function call in case pltexit has to be called later.
7570 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7571 implicit atomic operation when storing function pointer.
7572 (_dl_runtime_profile): Likewise.
7574 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7576 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7579 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7582 * string/strtok.c: Fix typo in comment.
7585 * debug/segfault.c: Fix typos in comments.
7588 * stdio-common/tempnam.c: Fix comment, it is not checked that
7589 TMPDIR points to a writable directory.
7592 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7593 memory allocated for the name server address.
7596 * nscd/connections.c (handle_request): Using sendfile always
7597 requires that mmap is used for the database.
7598 Patch by Petr Baudis <pasky@suse.cz>.
7601 * nscd/hstcache.c (cache_addhst): When reloading an entry which
7602 suddenly has two or more addresses, ignore it and remove the old
7606 * resolv/res_hconf.c: Prepare for compiling outside libc.
7607 * nscd/res_hconf.c: New file.
7608 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
7610 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7611 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7613 * nscd/hstcache.c (cache_addhst): Minimal optimization.
7616 * debug/pcprofiledump.c: Turn on internationalization by calling
7617 setlocale. Patch mostly by Benno Schulenberg.
7620 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7622 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7623 * iconvdata/bug-iconv5.c: New file.
7625 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
7628 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7629 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7630 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7631 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7632 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7633 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7634 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7635 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7637 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7640 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7641 lookup loop. Suggested by John Reiser.
7643 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7645 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7647 2007-08-20 Ulrich Drepper <drepper@redhat.com>
7649 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7650 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7651 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7652 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7653 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7655 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7657 2007-08-18 Ulrich Drepper <drepper@redhat.com>
7659 * po/nl.po: Update from translation team.
7661 2007-08-16 Andreas Jaeger <aj@suse.de>
7663 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7664 Reported by Peter Festner <peter.festner@ewetel.net>.
7666 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7668 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7670 2007-08-16 Jakub Jelinek <jakub@redhat.com>
7672 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7673 to check for undefined symbols.
7675 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7676 If the syscall fails, set errno to the actual returned error number
7678 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7679 arguments are incorrect, set errno to EINVAL, if the syscall
7680 fails, set errno to the actual returned error number.
7682 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7683 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7685 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7686 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7688 (ASI_PNF, ASI_BLK_P): Don't define.
7689 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7690 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7692 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7693 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7696 2007-08-15 Jakub Jelinek <jakub@redhat.com>
7698 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7699 FE_UNDERFLOW on Niagara CPUs.
7701 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7704 2007-08-14 Jakub Jelinek <jakub@redhat.com>
7706 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7707 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7708 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7709 flush should be used or not inside of the function.
7710 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7712 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7713 __thread_start): Use HIDDEN_JUMPTARGET.
7714 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7715 __thread_start): Likewise.
7716 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7718 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7719 Add libc_hidden_proto.
7720 (STRTOF): Add libc_hidden_proto.
7721 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7722 (strtold_l, wcstold_l): Use them as second argument for
7725 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7727 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7729 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7731 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7733 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7735 * po/bg.po: New file. From the translation team.
7737 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7739 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7740 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7741 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7742 when each feature was introduced.
7744 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7745 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7746 (CHECK_HASH): New macro.
7747 (PREPARE_VERSION): Use it.
7749 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7750 prototype if not __ASSUME_PSELECT.
7751 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7752 prototype if not __ASSUME_PPOLL.
7754 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7756 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7757 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7760 2007-08-13 Ulrich Drepper <drepper@redhat.com>
7762 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7763 (_libc_vdso_platform_setup): If vDSO is not available point
7764 __vdso_gettimeofday to the vsyscall.
7765 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7766 __vdso_gettimeofday instead of vsyscall.
7768 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7770 * nscd/servicescache.c: Include kernel-features.h.
7771 * nscd/gai.c: Likewise.
7772 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7773 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7774 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7775 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7776 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7777 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7778 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7779 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7780 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7782 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7784 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7785 and _dl_get_origin defines anymore.
7787 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7788 Build fix for systems which might lack POSIX timer support.
7790 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7791 (_libc_vdso_platform_setup): Mangle function pointers before storing
7793 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7794 Demangle vdso pointer before use.
7795 (INTERNAL_VSYSCALL): Likewise.
7797 * elf/cache.c (primes): Mark as const.
7798 Noted by Roland McGrath.
7800 2007-08-01 Andreas Jaeger <aj@suse.de>
7801 Jakub Jelinek <jakub@redhat.com>
7803 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7804 (options): Add option.
7805 (parse_opt): Handle option.
7806 (manual_link): Adjust process_file caller. Call implicit_soname.
7807 (search_dir): Formatting. Use and populate auxiliary cache.
7808 (main): Load and save auxiliary cache.
7809 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
7810 stat64 from fstat64 to caller.
7811 (implicit_soname): New function.
7812 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7813 leave *soname as NULL.
7814 * elf/cache.c: Include libgen.h.
7815 (print_entry, print_cache, compare, save_cache, add_to_cache):
7816 Formatting and cleanups.
7817 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7818 aux_cache_file): New structures.
7819 (AUX_CACHEMAGIC): Define.
7820 (primes): New array.
7821 (aux_hash_size, aux_hash): New variables.
7822 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7823 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7824 load_aux_cache, save_aux_cache): New functions.
7825 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7826 (init_aux_cache, search_aux_cache, add_to_aux_cache,
7827 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7828 (process_file): Adjust prototype.
7830 2007-08-12 Jakub Jelinek <jakub@redhat.com>
7832 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7835 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7837 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7838 r_found_version structure as second parameter.
7839 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7840 (_dl_vdso_vsym): Change type of second parameter accordingly.
7841 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7842 (_libc_vdso_platform_setup): Adjust.
7843 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7844 (_libc_vdso_platform_setup): Likewise.
7846 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7847 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7848 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7849 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7850 * csu/libc-start.c: Pretty printing.
7851 Use VDSO_SETUP if defined.
7852 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7853 and let generic code call into _libc_vdso_platform_setup.
7854 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7855 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7856 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7857 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7858 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7860 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7861 (sysdep_rountines): Add dl-vdso.
7863 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7866 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7867 attribute_hidden to __vdso_gettimeofday prototype.
7869 2007-08-12 Roland McGrath <roland@redhat.com>
7871 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7872 From: Karl Berry <karl@freefriends.org>.
7874 2007-08-11 Ulrich Drepper <drepper@redhat.com>
7876 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7877 an atime update for the files we read.
7879 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7881 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7883 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
7886 * misc/Makefile (routines): Add mkostemp and mkostemp64.
7887 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7888 * misc/mkostemp.c: New file.
7889 * misc/mkostemp64.c: New file.
7890 * stdlib/stdlib.h: Declare the new functions.
7891 * sysdeps/posix/tempname.c: Add new parameter which is added to
7892 the flags for open. Remove __GT_BIGFILE handling.
7893 * stdio-common/tempname.c: Likewise.
7894 * include/stdio.h: Adjust __gen_tempname prototype.
7895 Renumber __GT_* constants.
7896 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7897 * misc/mkdtemp.c: Likewise.
7898 * misc/mkstemp.c: Likewise.
7899 * misc/mkstemp64.c: Likewise.
7900 * misc/mktemp.c: Likewise.
7901 * stdio-common/tempnam.c: Likewise.
7902 * stdio-common/tmpfile.c: Likewise.
7903 * stdio-common/tmpfile64.c: Likewise.
7904 * stdio-common/tmpnam.c: Likewise.
7905 * stdio-common/tmpnam_r.c: Likewise.
7907 2007-08-10 Roland McGrath <roland@frob.com>
7909 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7911 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7912 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7914 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7916 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7918 * nss/nss_files/files-alias.c (internal_setent): Likewise.
7919 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7920 * nss/nss_files/files-have_o_cloexec.c: New file.
7922 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7925 2007-08-10 Jakub Jelinek <jakub@redhat.com>
7927 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7928 ___new_wcstold_l): New weak aliases.
7929 (strtold_l, wcstold_l): Use them as second argument for
7932 2007-08-09 Ulrich Drepper <drepper@redhat.com>
7934 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7935 register in test for error.
7937 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7938 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7940 * po/sv.po: Update from translation team.
7942 2007-08-06 Roland McGrath <roland@redhat.com>
7944 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7945 Remove __strto*_l inlines.
7946 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7947 * stdlib/strtod.c: Add libc_hidden_def.
7948 * stdlib/strtod_l.c: Likewise.
7949 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7950 for __new_strtold and __new_wcstold.
7951 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7953 * stdlib/strtol.c: Add libc_hidden_def.
7954 * stdlib/strtol_l.c: Likewise.
7955 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7958 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7960 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7961 * scripts/data/localplt-generic.data: ... here.
7962 * elf/Makefile (check-data): Get generic file if no other.
7963 ($(objpfx)check-localplt.out): Make target unconditional.
7965 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7968 2007-08-05 Ulrich Drepper <drepper@redhat.com>
7970 * po/zh_CN.po: Updated translation from translation team.
7972 2007-08-05 Jakub Jelinek <jakub@redhat.com>
7974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7975 Don't use CGOTSETUP and CGOTRESTORE macros.
7977 2007-08-04 Roland McGrath <roland@redhat.com>
7979 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7981 2007-08-04 Jakub Jelinek <jakub@redhat.com>
7983 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7984 __extension__ around the whole statement expression.
7986 2007-08-04 Ulrich Drepper <drepper@redhat.com>
7988 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7989 elements during initialization.
7991 * po/pl.po: Updated translation from translation team.
7992 * po/tr.po: Likewise.
7993 * po/nl.po: Likewise.
7995 2007-08-03 Ulrich Drepper <drepper@redhat.com>
7997 * rt/aio.h: Add __nonnull attributes.
7999 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8001 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8002 * stdlib/Makefile (tests): Add tst-strtod5.
8003 (tst-strtod5-ENV): New.
8004 * stdlib/tst-strtod5.c: New file.
8006 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8008 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8011 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8014 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8016 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8019 2007-08-02 Ulrich Drepper <drepper@redhat.com>
8021 * io/Makefile (aux): Add have_o_cloexec.
8022 * include/fcntl.h: Declare __have_o_cloexec.
8023 * io/have_o_cloexec.c: New file.
8024 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8025 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8026 fcntl call if not necessary.
8027 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8030 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8031 Avoid memset, add explicit initialization.
8032 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8033 to the end and change into zero-sized array.
8034 Move lock member to fill a hole on 64-bit platforms.
8036 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8038 * include/stdlib.h: Add __strto*_internal prototypes here.
8039 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8041 * include/wchar.h: Add __wcsto*_internal prototypes.
8042 * sysdeps/generic/inttypes.h: No need to protect the declaration
8043 of the __strto*_internal and __wcsto*_internal members here.
8045 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8047 2007-08-02 Roland McGrath <roland@redhat.com>
8049 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8050 $(inst_bindir)/getconf if possible.
8052 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8053 (generated): Add it.
8054 ($(inst_libexecdir)/getconf): Use it.
8056 2007-08-01 Ulrich Drepper <drepper@redhat.com>
8058 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8059 /proc is faster and sufficient. /sys is still needed for
8062 2007-08-01 Jakub Jelinek <jakub@redhat.com>
8064 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8065 syscall as __fallocate64.
8066 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8067 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8069 2007-07-30 Jakub Jelinek <jakub@redhat.com>
8071 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8074 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8075 if off_t is different rank from size_t.
8077 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8078 uw_frame_state_for): Avoid type punning warnings.
8079 * sysdeps/generic/unwind-dw2-fde-glibc.c
8080 (_Unwind_IteratePhdrCallback): Likewise.
8081 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8082 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8083 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8086 2007-07-31 Ulrich Drepper <drepper@redhat.com>
8088 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8089 total processors using sysfs.
8090 (__get_nprocs): Use sysfs to determine which processors are online.
8092 2007-07-31 Jakub Jelinek <jakub@redhat.com>
8094 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8095 syscall arguments count.
8097 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8099 2007-07-30 Roland McGrath <roland@redhat.com>
8101 * manual/libc.texinfo: Update copyrights, formatting magic, and
8102 @dircategory. From Karl Berry <karl@freefriends.org>.
8104 2007-07-29 Ulrich Drepper <drepper@redhat.com>
8107 * io/Makefile (headers): Add bits/fcntl2.h.
8109 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8111 (__CPU_EQUAL_S): Likewise.
8113 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8114 (tests): Add tst-cpuset.
8115 * posix/sched_cpualloc.c: New file.
8116 * posix/sched_cpufree.c: New file.
8117 * posix/tst-cpuset.c: New file.
8118 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8120 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8121 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8122 macros. Define CPU_*_S macros.
8124 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8126 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8130 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8131 #.0g and value rounded to 1.0.
8132 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8134 2007-07-26 Jakub Jelinek <jakub@redhat.com>
8136 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8137 for int_frac_digits and frac_digits.
8139 * login/logout.c (logout): Avoid aliasing violation.
8140 * login/logwtmp.c (logwtmp): Likewise.
8142 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8144 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8146 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8148 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8150 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8153 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8155 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8157 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8158 char * to avoid warning.
8159 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8161 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8163 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8164 allocate_arrays): Cast second argument to charmap_find_symbol
8165 to char * to avoid warnings.
8167 * locale/programs/repertoire.c (repertoire_new_char): Change
8168 from_nr, to_nr and cnt to unsigned long, adjust printf format
8171 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8172 Cast second argument to new_element to char * to avoid warnings.
8174 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8176 * intl/gettextP.h (struct loaded_domain): Change plural to const
8177 struct expression *.
8178 * intl/plural-eval.c (plural_eval): Change first argument to
8179 const struct expression *.
8180 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8181 argument to const struct expression **.
8182 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8184 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8185 in call to __gettext_free_exp.
8187 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8188 unitialized wstring/wpattern var warnings.
8190 * posix/runtests.c (struct a_test): Make data field const char *.
8192 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8193 vars if not LDBL_MANT_DIG >= 106.
8195 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8197 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8198 __find_specmb to avoid warning.
8200 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8202 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8205 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8208 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8209 tv var when it will be actually used.
8211 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8214 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8215 char array resp. pointer.
8216 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8218 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8219 to const unsigned char **.
8220 (ucs4_to_cns11643): Change second argument to unsigned char *.
8221 * iconvdata/euc-tw.c (BODY): Change endp type to
8222 const unsigned char *.
8223 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8225 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8226 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8227 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8228 types to unsigned char pointers/arrays instead of char.
8229 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8231 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8232 * iconvdata/jis0212.h: Include assert.h.
8233 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8234 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8235 of trying to handle that.
8236 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8238 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8239 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8240 two dimensional const unsigned char arrays.
8241 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8242 Initialize endp to inptr to shut up a warning.
8244 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8247 * time/strptime_l.c (__strptime_internal): Silently ignore
8248 strftime modifiers and field width in recursive calls.
8250 * include/time.h (enum ptime_locale_status): Remove.
8251 (__strptime_internal): Remove decided and era_cnt arguments,
8252 add statep argument.
8253 * time/strptime_l.c (__strptime_internal): Remove decided
8254 and era_cnt arguments, add statep argument. Don't recompute
8255 any fields in recursive calls, only update caller's tm
8256 and state, if recursive call fails, don't change tm nor
8258 (get_alt_number): Adjust.
8259 (recursive): Adjust caller.
8260 (strptime): Likewise.
8261 * time/strptime.c (strptime): Likewise.
8263 2007-07-19 Jakub Jelinek <jakub@redhat.com>
8265 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8266 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8267 if from and to charsets are the same.
8268 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8269 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8270 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8272 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8274 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8275 Don't define wint_t when __need_mbstate_t unless it
8277 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8278 in the typedef if possible.
8279 * wctype/wctype.h (wint_t): Define by including
8280 wchar.h with __need_wint_t instead of including stddef.h
8281 with __need_wint_t and as fallback definining it ourselves.
8282 * iconv/gconv.h (__need_wint_t): Define before including
8284 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8285 or _GLIBCPP_USE_WCHAR_T.
8286 (__need_wchar_t): Don't define
8287 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8288 (__need_wint_t): Don't define before including stddef.h,
8289 define before including wchar.h only if _LIBC or
8290 _GLIBCPP_USE_WCHAR_T.
8291 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8292 * sysdeps/mach/hurd/_G_config.h: Likewise.
8293 * sysdeps/generic/_G_config.h: Likewise.
8294 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8295 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8296 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8297 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8299 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8301 * sysdeps/posix/posix_fallocate64.c: Undefine
8302 __posix_fallocate64_l64 before alias handling.
8303 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8304 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8305 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8306 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8308 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8310 2007-07-23 Jakub Jelinek <jakub@redhat.com>
8312 * locale/programs/ld-collate.c (atwc): New variable.
8313 (add_to_tablewc): New toplevel function, moved from collate_output.
8314 (collate_output): Remove add_to_tablewc nested function.
8316 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8317 (name_insert): New function.
8318 (write_output): Remove hash_table and hash_size vars and name_insert
8321 2007-07-24 Roland McGrath <roland@redhat.com>
8323 * Makerules (install-others-programs-nosubdir): New target.
8324 (install-no-libc.a-nosubdir): Depend on it.
8326 * iconv/Makefile (install-others-programs): Set this instead of
8328 * login/Makefile (install-others-programs): Likewise.
8329 * posix/Makefile (install-others-programs): Likewise.
8331 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8334 2007-07-23 Ulrich Drepper <drepper@redhat.com>
8336 * io/Makefile (tests): Add tst-posix_fallocate.
8337 * io/tst-posix_fallocate.c: New file.
8339 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8342 2007-07-22 Roland McGrath <roland@frob.com>
8344 * hurd/getdport.c: Add missing copyright year update.
8346 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8347 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8349 2007-07-22 Ulrich Drepper <drepper@redhat.com>
8351 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8353 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8354 O_CLOEXEC is needed.
8355 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8356 Avoid additional fcntl to set O_CLOEXEC if not needed.
8357 * nis/nss_compat/compat-initgroups.c: Likewise.
8358 * nis/nss_compat/compat-pwd.c: Likewise.
8359 * nis/nss_compat/compat-spwd.c: Likewise.
8361 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8364 * manual/errno.texi: Change ECANCELED value to 119.
8367 * mach/lock-intern.h: Include <sys/cdefs.h>.
8370 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8374 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8377 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8379 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8381 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8383 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8385 2007-07-21 Ulrich Drepper <drepper@redhat.com>
8387 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8388 descriptor received from nscd.
8390 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8392 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8393 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8394 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8395 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8396 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8397 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8399 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8402 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8405 * login/forkpty.c (forkpty): Close master and slave fds on
8406 fork failure. Patch by
8407 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8409 2007-07-18 Jakub Jelinek <jakub@redhat.com>
8411 * include/features.h (__USE_ISOC95): New define.
8412 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8413 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8414 for -std=iso9899:199409.
8415 * CONFORMANCE: Remove comments about unsupported AMD1.
8417 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8419 * sysdeps/ia64/sched_cpucount.c: New file.
8420 * sysdeps/powerpc/sched_cpucount.c: New file.
8422 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8423 __BEGIN_DECLS/__END_DECLS around the prototype.
8424 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
8425 pointer to const cpu_set_t.
8427 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8428 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8429 __need_size_t and include stddef.h.
8430 * sysvipc/sys/msg.h: Likewise.
8431 * posix/sched.h: Likewise.
8432 * hurd/hurd/signal.h (__need_size_t): Define.
8434 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8435 neither does signal.h in pedantic ISO C namespaces. stdio.h
8436 no longer defines wint_t or wchar_t.
8438 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8439 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8440 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8441 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8442 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8443 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8444 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8445 * debug/printf_chk.c (__printf_chk): Likewise.
8446 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8447 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8449 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8452 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8453 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8455 2007-07-16 Jakub Jelinek <jakub@redhat.com>
8458 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8459 * malloc/malloc.h (realloc): Likewise.
8461 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8462 if one of proc_file_chain streams has that fileno.
8463 * stdio-common/Makefile (tests): Add tst-popen2.
8464 * stdio-common/tst-popen2.c: New test.
8466 2007-07-14 Jakub Jelinek <jakub@redhat.com>
8468 * elf/ldconfig.c: Allow GPLv2 or any later version.
8469 * elf/readlib.c: Likewise.
8470 * elf/chroot_canon.c: Likewise.
8471 * elf/cache.c: Likewise.
8472 * nscd/mem.c: Likewise.
8473 * nscd/getpwuid_r.c: Likewise.
8474 * nscd/grpcache.c: Likewise.
8475 * nscd/aicache.c: Likewise.
8476 * nscd/getsrvbynm_r.c: Likewise.
8477 * nscd/nscd.c: Likewise.
8478 * nscd/servicescache.c: Likewise.
8479 * nscd/getsrvbypt_r.c: Likewise.
8480 * nscd/initgrcache.c: Likewise.
8481 * nscd/gethstbyad_r.c: Likewise.
8482 * nscd/gethstbynm2_r.c: Likewise.
8483 * nscd/getgrnam_r.c: Likewise.
8484 * nscd/nscd_setup_thread.c: Likewise.
8485 * nscd/getpwnam_r.c: Likewise.
8486 * nscd/gai.c: Likewise.
8487 * nscd/connections.c: Likewise.
8488 * nscd/dbg_log.c: Likewise.
8489 * nscd/cache.c: Likewise.
8490 * nscd/hstcache.c: Likewise.
8491 * nscd/nscd_conf.c: Likewise.
8492 * nscd/getgrgid_r.c: Likewise.
8493 * nscd/pwdcache.c: Likewise.
8494 * catgets/gencat.c: Likewise.
8495 * locale/programs/linereader.h: Likewise.
8496 * locale/programs/locarchive.c: Likewise.
8497 * locale/programs/ld-paper.c: Likewise.
8498 * locale/programs/locfile-kw.h: Likewise.
8499 * locale/programs/ld-address.c: Likewise.
8500 * locale/programs/xmalloc.c: Likewise.
8501 * locale/programs/ld-time.c: Likewise.
8502 * locale/programs/localedef.c: Likewise.
8503 * locale/programs/simple-hash.c: Likewise.
8504 * locale/programs/xstrdup.c: Likewise.
8505 * locale/programs/ld-numeric.c: Likewise.
8506 * locale/programs/locfile-kw.gperf: Likewise.
8507 * locale/programs/ld-collate.c: Likewise.
8508 * locale/programs/charmap-kw.gperf: Likewise.
8509 * locale/programs/charmap.h: Likewise.
8510 * locale/programs/charmap-kw.h: Likewise.
8511 * locale/programs/config.h: Likewise.
8512 * locale/programs/locfile.c: Likewise.
8513 * locale/programs/ld-ctype.c: Likewise.
8514 * locale/programs/charmap.c: Likewise.
8515 * locale/programs/ld-messages.c: Likewise.
8516 * locale/programs/repertoire.h: Likewise.
8517 * locale/programs/locale.c: Likewise.
8518 * locale/programs/ld-name.c: Likewise.
8519 * locale/programs/linereader.c: Likewise.
8520 * locale/programs/locfile.h: Likewise.
8521 * locale/programs/3level.h: Likewise.
8522 * locale/programs/ld-monetary.c: Likewise.
8523 * locale/programs/ld-measurement.c: Likewise.
8524 * locale/programs/charmap-dir.c: Likewise.
8525 * locale/programs/ld-identification.c: Likewise.
8526 * locale/programs/localedef.h: Likewise.
8527 * locale/programs/charmap-dir.h: Likewise.
8528 * locale/programs/repertoire.c: Likewise.
8529 * locale/programs/simple-hash.h: Likewise.
8530 * locale/programs/ld-telephone.c: Likewise.
8531 * locale/programs/locale-spec.c: Likewise.
8532 * locale/programs/locfile-token.h: Likewise.
8533 * posix/getconf.c: Likewise.
8534 * iconv/dummy-repertoire.c: Likewise.
8535 * iconv/iconv_charmap.c: Likewise.
8536 * iconv/iconvconfig.c: Likewise.
8537 * iconv/iconv_prog.c: Likewise.
8538 * malloc/memusagestat.c: Likewise.
8539 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8541 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8543 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8544 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8545 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8546 check for the first argument.
8548 2007-07-12 Jakub Jelinek <jakub@redhat.com>
8551 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8552 (__tgmath_real_type): Fix if expr is const int or other const
8553 qualified integral type.
8554 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8555 expressions and handle const qualified arguments.
8556 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8557 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8558 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8559 statement expressions.
8560 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8561 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8562 (__TGMATH_UNARY_IMAG): Define.
8563 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8564 * math/Makefile (tests): Add test-tgmath2.
8565 (CFLAGS-test-tgmath2.c): Add.
8566 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8567 count_cfloat, count_cldouble): New variables.
8569 (main): Check number of complex calls as well.
8570 (F(compile_test)): Add complex tests and tests with const qualified
8572 (y, z, ccount): Define.
8573 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8574 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8575 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8576 F(cproj)): New functions.
8577 * math/test-tgmath2.c: New test.
8579 2007-07-11 Jakub Jelinek <jakub@redhat.com>
8582 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8583 RPATH etc. as "/" rather than "", don't segfault on empty paths,
8585 * dlfcn/Makefile (distribute): Add glreflib3.c.
8586 (module-names): Add glreflib3.
8587 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8589 (LDFLAGS_glreflib3.so): New.
8590 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8592 * dlfcn/glreflib3.c: New file.
8594 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8595 returned -1, return NULL.
8596 * intl/explodename.c (_nl_explode_name): Return -1 if
8597 _nl_normalize_codeset failed.
8599 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
8601 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8602 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
8603 and avoid branch misspredicts for > 31 bytes memset case.
8604 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8605 Remove toc ref to __cache_line_size.
8607 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8608 to get ISA-V2.0 branch hints.
8609 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8610 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8611 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8612 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8613 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8614 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8615 Remove toc ref to __cache_line_size.
8617 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8618 Include math_ldbl_opt.h.
8620 2007-07-10 Ulrich Drepper <drepper@redhat.com>
8623 * time/strptime_l.c (__strptime_internal): Implement greedy
8624 matching of weekday and month names.
8626 2007-07-09 Roland McGrath <roland@redhat.com>
8628 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8629 (ELF_NOTE_ABI): Use it.
8630 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8632 2007-07-09 Ulrich Drepper <drepper@redhat.com>
8634 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8635 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8637 2007-07-07 Ulrich Drepper <drepper@redhat.com>
8640 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8641 in loop to look for conversion specifier to avoid testing of
8643 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8644 * stdio-common/bug18.c: New file.
8645 * stdio-common/bug18a.c: New file.
8646 * stdio-common/bug19.c: New file.
8647 * stdio-common/bug19a.c: New file.
8649 2007-07-05 Mike Frysinger <vapier@gentoo.org>
8651 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8654 2007-07-01 Jakub Jelinek <jakub@redhat.com>
8656 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8657 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8658 Return NULL if mmap failed instead of asserting it does not.
8659 (calloc): Check for integer overflow.
8661 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8664 2007-07-03 Jakub Jelinek <jakub@redhat.com>
8667 * nis/nss-default.c: Include errno.h.
8668 (init): Preserve errno.
8670 2007-07-02 Ulrich Drepper <drepper@redhat.com>
8672 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8674 2007-06-30 Ulrich Drepper <drepper@redhat.com>
8676 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8678 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8680 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8682 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8684 * sysdeps/s390/dl-procinfo.c: New file.
8685 * sysdeps/s390/dl-procinfo.h: New file.
8686 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8688 2007-06-29 Jakub Jelinek <jakub@redhat.com>
8690 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8691 in PT_NOTE segments with multiple notes.
8692 * elf/readelflib.c (process_elf_file): Likewise.
8694 2007-06-22 Ulrich Drepper <drepper@redhat.com>
8696 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8699 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8701 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8703 2007-06-13 Jakub Jelinek <jakub@redhat.com>
8705 * include/link.h: Don't include rtld-lowlevel.h.
8706 (struct link_map): Remove l_scope_lock.
8707 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8708 (_dl_scope_free_list): New field (variable) in _rtld_global.
8709 (DL_LOOKUP_SCOPE_LOCK): Remove.
8710 (_dl_scope_free): New prototype.
8711 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8712 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8713 (_dl_profile_fixup): Likewise.
8714 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8715 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8716 THREAD_GSCOPE_RESET_FLAG around it.
8717 * elf/dl-close.c (_dl_close_worker): Don't use
8718 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8719 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8720 scopes were queued or if l_scope_mem has been abandoned.
8721 * elf/dl-open.c (_dl_scope_free): New function.
8722 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8723 * elf/dl-support.c (_dl_scope_free_list): New variable.
8724 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8725 Remove DL_LOOKUP_SCOPE_LOCK handling.
8726 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8728 * elf/dl-object.c (_dl_new_object): Don't use
8729 __rtld_mrlock_initialize.
8731 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8733 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8735 (rtld_global_ro): Likewise.
8737 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8739 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8740 Move PT_LOAD checking to...
8741 (_dl_addr_inside_object): ... here, new function.
8742 * elf/dl-sym.c (do_sym): If not l_contiguous,
8743 call _dl_addr_inside_object.
8744 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8745 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8746 * elf/dl-open.c (dl_open_worker): Likewise.
8747 (_dl_addr_inside_object): New function if IS_IN_rtld.
8748 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8749 holes are present or are PROT_NONE protected.
8750 * include/link.h (struct link_map): Add l_contiguous field.
8751 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8753 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8754 Tomas Janousek <tjanouse@redhat.com>
8755 Ulrich Drepper <drepper@redhat.com>
8758 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
8759 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8761 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
8762 unused member a bitmap.
8763 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8764 servers are configured.
8766 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8768 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8770 2007-06-17 Andreas Schwab <schwab@suse.de>
8772 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8774 2007-06-16 Andreas Jaeger <aj@suse.de>
8777 * sysdeps/unix/sysv/linux/sys/ptrace.h
8778 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8779 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8780 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8781 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8782 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8784 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8785 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8786 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8787 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8789 2007-06-16 Ulrich Drepper <drepper@redhat.com>
8792 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8793 determining whether there are IPv4/IPv6 addresses, ignore loopback
8796 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8798 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8799 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8800 as the return type. Change type of "r" variable to CMPtype.
8801 * soft-fp/eqsf2.c (__eqsf2): Likewise.
8802 * soft-fp/eqtf2.c (__eqtf2): Likewise.
8803 * soft-fp/gedf2.c (__gedf2): Likewise.
8804 * soft-fp/gesf2.c (__gesf2): Likewise.
8805 * soft-fp/getf2.c (__getf2): Likewise.
8806 * soft-fp/ledf2.c (__ledf2): Likewise.
8807 * soft-fp/lesf2.c (__lesf2): Likewise.
8808 * soft-fp/letf2.c (__letf2): Likewise.
8809 * soft-fp/unorddf2 (__unorddf2): Likewise.
8810 * soft-fp/unordsf2 (__unordsf2): Likewise.
8811 * soft-fp/unordtf2 (__unordtf2): Likewise.
8813 2007-06-09 Ulrich Drepper <drepper@redhat.com>
8815 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8816 make sure gcc doesn't mess around with this.
8818 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8820 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8822 2007-06-08 Jakub Jelinek <jakub@redhat.com>
8824 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8825 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8826 at most once per _dl_close_worker.
8828 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8830 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8831 __sched_cpucount as const.
8832 * posix/sched_cpucount.c: Adjust.
8834 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8835 instruction for counting bits.
8836 * sysdeps/x86_64/sched_cpucount.c: New file.
8838 2007-06-07 Ulrich Drepper <drepper@redhat.com>
8840 * configure.in: Avoid variable named BASH.
8841 * config.make.in: Likewise.
8842 Patch in part by Mike Frysinger.
8844 2007-06-06 Jakub Jelinek <jakub@redhat.com>
8847 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8848 pseudo-zeros as zero.
8849 * sysdeps/x86_64/ldbl2mpn.c: New file.
8850 * sysdeps/ia64/ldbl2mpn.c: New file.
8852 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8854 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8855 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8856 Remove unreachable code at the end.
8858 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8860 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8861 ldbl-128ibm in comment.
8862 (fpclassifyl): Correct classification of denormals.
8863 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8864 return value for MIN denormal. Rewrite using long double math too
8865 correctly handle denormals and canonicalize the results.
8867 2007-06-05 Jakub Jelinek <jakub@redhat.com>
8869 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8870 (__mpn_construct_long_double): Fix conversion where result ought
8871 to be smaller than __LDBL_MIN__, or the low double should be
8872 denormal. Fix decision where to negate low double - honor round
8874 * stdio-common/tst-sprintf2.c: Include string.h.
8875 (COMPARE_LDBL): Define.
8876 (TEST): Also test whether a string hexadecimal float representation
8877 can be parsed back to the number.
8878 (main): Add a couple of further tests.
8880 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8882 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8883 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8884 is non-zero, but smaller than 2 * __DBL_MIN__.
8885 * stdio-common/tst-sprintf2.c: New test.
8886 * stdio-common/Makefile (tests): Add tst-sprintf2.
8888 * math/test-misc.c (main): Don't run last batch of tests with
8889 IBM long double format.
8891 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8893 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8894 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8895 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8896 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8897 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8898 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8899 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8900 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8901 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8902 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8926 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8928 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8929 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8930 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8931 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8932 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8933 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8934 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8935 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8937 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
8939 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8940 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8941 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8942 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8943 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8944 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8945 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8946 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8948 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8950 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8951 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8952 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8953 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8955 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
8957 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8958 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8960 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
8962 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8963 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8964 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8965 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8967 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
8969 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8970 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8972 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8974 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8975 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8977 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8978 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8979 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8980 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8982 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
8984 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8985 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8986 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8987 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8989 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
8991 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8992 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8993 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8994 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8995 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8996 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8998 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9000 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9001 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9002 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9003 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9005 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9007 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9008 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9009 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9010 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9011 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9012 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9013 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9014 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9015 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9016 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9017 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9018 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9019 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9020 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9021 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9022 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9024 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9026 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9027 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9029 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9031 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9032 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9034 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9036 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9037 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9038 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9039 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9040 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9041 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9042 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9043 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9044 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9045 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9047 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9049 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9051 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9053 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9054 branch miss-predicts. Ensure that cache line crossing does not impact
9057 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9059 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9060 "../../powerpc32/power4/memcopy.h".
9061 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9062 "../../powerpc32/power4/wordcopy.c".
9064 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9066 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9067 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9068 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9069 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9070 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9071 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9073 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9075 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9077 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9079 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9080 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9081 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9082 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9083 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9084 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9085 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9086 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9088 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9090 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9092 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9094 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9095 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9096 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9097 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9098 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9099 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9100 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9102 2007-05-29 Roland McGrath <roland@redhat.com>
9104 * po/Makefile (po-sed-cmd): New variable.
9105 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9107 2007-05-29 Ulrich Drepper <drepper@redhat.com>
9109 * crypt/md5-crypt.c: Fix comment.
9111 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9112 of crashing. When this is the case or if the reply is malformed,
9113 don't try to close the new file descriptor since it does not
9115 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9117 2007-05-28 Jakub Jelinek <jakub@redhat.com>
9119 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9120 if __NR_utimensat is not defined.
9122 2007-05-26 Ulrich Drepper <drepper@redhat.com>
9124 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9126 2007-05-25 Jakub Jelinek <jakub@redhat.com>
9128 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9129 (open): Fix comment typos. Don't call __open_2 if flags
9130 is a compile time constant without O_CREAT.
9131 (__open64_2): Add nonnull attribute.
9132 (open64): Fix comment typos. Don't call __open64_2 if flags
9133 is a compile time constant without O_CREAT.
9134 (__openat_2): Add nonnull attribute, fix nonnull attribute
9136 (openat): Fix comment typos. Don't call __openat_2 if flags
9137 is a compile time constant without O_CREAT.
9138 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9140 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9141 is a compile time constant without O_CREAT.
9143 2007-05-24 Ulrich Drepper <drepper@redhat.com>
9145 * Makerules (sysd-rules): Define PTW for ptw-* files.
9146 * Versions: Define GLIBC_2.7 for libc.
9147 * include/stdio.h: Declare __fortify_fail.
9148 * debug/fortify_fail.c: New file.
9149 * debug/Makefile (routines): Add fortify_fail.
9150 * debug/chk_fail.c: Use __fortify_fail.
9151 * debug/stack_chk_fail.c: Likewise.
9152 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9153 __openat64_2 for GLIBC_2.7.
9154 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9155 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9156 and fails if necessary.
9157 * io/open64.c: Likewise.
9158 * io/openat.c: Likewise.
9159 * io/openat64.c: Likewise.
9160 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9161 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9162 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9163 * io/bits/fcntl2.h: New file.
9164 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9166 * include/bits/fcntl2.h: New file.
9167 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9169 * sysdeps/unix/sysv/linux/open_2.c: New file.
9171 2007-05-21 Ulrich Drepper <drepper@redhat.com>
9173 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9174 as second parameter to handle_intel.
9176 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9179 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9181 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9182 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9184 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9185 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9186 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9188 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9190 2007-05-21 Jakub Jelinek <jakub@redhat.com>
9193 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9194 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9195 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9197 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9200 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9201 reinitialize workend at the start of each do_positional format spec
9202 loop, free workstart before do_positional loops.
9203 (printf_unknown): Fix size of work_buffer.
9204 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9206 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9207 (public_sET_STATe): If ms->version < 3, put all chunks into
9208 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9211 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9212 * malloc/hooks.c: Likewise.
9213 * malloc/arena.c: Likewise.
9214 * malloc/malloc.c (do_check_malloc_state): Don't assert
9215 n_mmaps is not greater than n_mmaps_max. This removes the need
9216 for the previous change.
9218 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9221 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9223 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9224 Define for kernel >= 2.6.22.
9226 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9228 * elf/dl-close.c (_dl_close_worker): When removing object from
9229 global scope, wait for all lookups to finish afterwards.
9230 * elf/dl-open.c (add_to_global): When global scope array must
9231 grow, allocate a new one and free old array only after all
9233 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9234 (_dl_lookup_symbol_x): Likewise.
9235 * elf/dl-support.c: Define _dl_wait_lookup_done.
9236 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9237 _dl_wait_lookup_done.
9239 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9240 not overlapping with arena.
9242 * malloc/mcheck.c (reallochook): If size==0, free the block.
9244 * rt/tst-shm.c: Use fstat64 instead of fstat.
9246 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9247 __NR_sync_file_range is not defined.
9249 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9251 Dummy files to prevent stub versions from being used.
9252 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9253 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9254 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9255 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9257 * version.h (VERSION): Set to 2.6.90.
9259 2007-05-14 Ulrich Drepper <drepper@redhat.com>
9261 * version.h (VERSION): Define to 2.6.
9262 * include/features.h (__GLIBC_MINOR__): Define to 6.
9264 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9266 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9269 2007-05-13 Ulrich Drepper <drepper@redhat.com>
9271 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9272 number of mmaps. n_mmaps_max is the target.
9273 * malloc/hooks.c: Likewise.
9274 * malloc/arena.c: Likewise.
9276 2007-05-12 Andreas Jaeger <aj@suse.de>
9278 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9281 2007-05-11 Ulrich Drepper <drepper@redhat.com>
9283 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9284 adding new variables.
9286 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9287 optimize. Completely extend global scope array before making the
9288 new entries visible.
9290 2007-05-10 Ulrich Drepper <drepper@redhat.com>
9292 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9293 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9296 * include/link.h: Move l_version and l_nversion members around to
9299 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9301 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9302 (__sched_setaffinity_new): If syscall was successful and
9303 RESET_VGETCPU_CACHE is defined, use it before returning.
9304 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9306 * io/sys/stat.h: Make sure struct timespec is defined for
9309 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9311 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9312 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9313 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9314 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9315 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9316 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9317 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9318 * io/sys/stat.h: Declare utimensat, futimens.
9319 * io/utimensat.c: New file.
9320 * io/futimens.c: New file.
9321 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9322 * sysdeps/unix/sysv/linux/futimens.c: New file.
9323 * io/Makefile (routines): Add utimensat, futimens.
9324 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9325 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9326 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9329 * include/sys/cdefs.h: Redefine __nonnull so that test for
9330 incorrect parameters in the libc code itself are not omitted.
9332 2007-05-09 Jakub Jelinek <jakub@redhat.com>
9334 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9335 exception in addition to inexact when asked to raise only FE_INEXACT.
9338 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9341 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9344 * string/strfry.c (strfry): Make result more random.
9346 2007-05-07 Richard Henderson <rth@redhat.com>
9348 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9349 if __NO_LONG_DOUBLE_MATH.
9350 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9351 available in the compiler, add .arch directive to the assembly.
9353 2007-05-07 Jakub Jelinek <jakub@redhat.com>
9355 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9356 compat_symbol to GLIBC_2_1.
9357 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9358 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9359 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9360 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9361 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9362 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9363 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9365 (__isnanl): New compat_symbol.
9367 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9368 Jakub Jelinek <jakub@redhat.com>
9370 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9371 (new_heap): Initialize mprotect_size.
9372 (grow_heap): When growing, only mprotect from mprotect_size till
9373 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9374 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9376 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
9377 Peter Bergner <bergner@us.ibm.com>
9379 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9380 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9381 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9382 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9383 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9384 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9385 Call __fe_mask_env() if all FP exceptions disabled.
9386 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9387 from old FPSCR to new fenv to propagate DFP rounding modes.
9388 Call __fe_mask_env() if FP exceptions previously enabled.
9389 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9390 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9391 transitioning from all exceptions disabled to any exception enabled
9393 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9394 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9395 when transitioning from all exceptions disabled to any exception
9396 enabled or visa versa.
9397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9404 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9407 * posix/unistd.h: Remove __THROW from fdatasync.
9409 2007-05-06 Mike Frysinger <vapier@gentoo.org>
9412 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9414 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9416 * stdio-common/vfprintf.c (process_string_arg): Optimize
9417 ridiculous precision in wide char code printing multi-byte string.
9418 Reported by Jim Meyering <jim@meyering.net>.
9421 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9422 boundaries to work around systems with overlapping binary loading.
9423 Based on a patch by Suzuki <suzuki@in.ibm.com>.
9425 2007-05-04 Ulrich Drepper <drepper@redhat.com>
9427 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9428 __mbsnrtowcs after last change.
9430 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9431 (get_ident): Likewise.
9433 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9435 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9436 with setting the sticky bit.
9437 * math/test-misc.c (main): Add more truncation tests.
9439 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
9441 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9442 double in the function declaration.
9443 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9444 double in the function declaration.
9445 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9446 float in the function declaration.
9447 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9448 float in the function declaration.
9450 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9451 denormal operands. Do not generate FP_EX_DENORM exception.
9452 (FP_UNPACK_RAW_EP): Ditto.
9453 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9454 undefined _FP_UNPACK_RAW_E.
9455 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9456 undefined _FP_UNPACK_RAW_EP.
9457 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9458 undefined _FP_PACK_RAW_E.
9459 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9460 undefined _FP_PACK_RAW_EP.
9462 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9464 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9467 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
9468 Jakub Jelinek <jakub@redhat.com>
9470 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9471 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
9473 * soft-fp/op-common.h (FP_TRUNC): Ditto.
9475 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9477 * math/test-misc.c (main): Add tests for rounding long double
9478 values close to smallest double denormalized value to double.
9480 2007-04-30 Joseph Myers <joseph@codesourcery.com>
9482 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9483 condition for truncating to 0. Set sticky bit for such
9486 2007-05-02 Jakub Jelinek <jakub@redhat.com>
9488 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9489 fixed length array for ignore.
9491 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9494 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9495 stack for large precisions.
9496 * stdio-common/test-vfprintf.c (main): Add test for large
9499 2007-04-30 Jakub Jelinek <jakub@redhat.com>
9501 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9503 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9506 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9507 account in the size check.
9508 * resolv/tst-inet_ntop.c: New test.
9509 * resolv/Makefile (tests): Add tst-inet_ntop.
9511 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9512 Jakub Jelinek <jakub@redhat.com>
9515 * malloc/malloc.c: Keep separate list for first blocks on the bin
9516 lists with a given size. This helps skipping over list elements
9517 we know won't fit in two places.
9518 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9520 2007-04-28 Ulrich Drepper <drepper@redhat.com>
9523 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9524 label to Teredo tunnel addresses 2001://32.
9526 2007-04-27 Ulrich Drepper <drepper@redhat.com>
9528 * locale/programs/ld-collate.c (collate_read): Allow order_start
9531 * locale/programs/ld-collate.c (collate_read): Fix printing of
9535 * locale/C-translit.h.in: Add entry for U2044.
9538 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9539 hexa-decimal floats without exponent.
9540 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9542 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9544 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9545 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9546 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9547 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9549 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9552 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9554 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9555 of 0 after the out_fail label.
9557 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9560 * iconv/gconv_charset.h (strip): Allow ':'.
9561 * iconv/iconv_open.c (iconv_open): Adjust comment.
9563 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9565 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9568 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9571 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9572 alignment of buffer and tmp_buffer.
9573 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9574 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9575 alignment of buffer.
9576 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
9577 bigger than INT_MAX.
9578 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
9579 h_errnop arguments. Fail if buflen is too small.
9580 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9582 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9585 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9586 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
9588 2007-04-22 Roland McGrath <roland@redhat.com>
9590 * elf/elf.h (NT_PRXFPREG): New macro.
9592 2007-04-19 Andreas Jaeger <aj@suse.de>
9595 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9596 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9599 2007-04-19 Ulrich Drepper <drepper@redhat.com>
9601 * include/sys/mman.h: Mark madvise hidden.
9602 * misc/madvise.c: Add libc_hidden_def.
9604 2007-04-06 Jakub Jelinek <jakub@redhat.com>
9606 * nis/nis_domain_of.c (__nis_domain_of): New function.
9607 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9608 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9609 * nis/nis_call.c (rec_dirsearch): Likewise.
9610 (first_shoot): Likewise. Remove search_parent_first argument.
9611 (struct nis_server_cache): Rename search_parent_first field
9613 (nis_server_cache_search, nis_server_cache_add): Rename
9614 search_parent_first argument to search_parent.
9615 (__nisfind_server): Likewise. If search_parent, call
9618 2007-04-18 Ulrich Drepper <drepper@redhat.com>
9620 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9622 2007-04-17 Ulrich Drepper <drepper@redhat.com>
9625 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9627 2007-04-16 Ulrich Drepper <drepper@redhat.com>
9630 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9632 2007-04-15 Jakub Jelinek <jakub@redhat.com>
9634 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9635 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9636 current number of locales in SUPPORTED.
9637 (create_archive): Initialize serial.
9638 (enlarge_archive): Preserve aliases rather than duplicating
9641 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9643 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9644 after _IO_un_link, not before it.
9646 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9647 special case handling when wcp == wstartp + 1. Fix a comment typo.
9648 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9650 2007-03-30 Jakub Jelinek <jakub@redhat.com>
9652 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9653 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9654 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9656 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9657 _IO_file_xsgetn_maybe_mmap): Likewise.
9658 * libio/oldfileops.c (old_do_write): Likewise.
9659 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9660 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9661 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9662 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9663 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9664 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9665 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9666 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9667 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9668 _IO_file_underflow, _IO_file_underflow_mmap,
9669 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9670 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9671 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9672 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9673 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9674 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9675 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9676 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9677 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9678 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9679 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9680 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9681 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9682 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9683 _IO_adjust_column_internal, _IO_default_uflow_internal,
9684 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9685 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9686 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9687 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9688 _IO_file_close_it_internal, _IO_file_underflow_internal,
9689 _IO_file_overflow_internal, _IO_file_attach_internal,
9690 _IO_file_fopen_internal, _IO_file_sync_internal,
9691 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9692 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9693 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9694 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9695 _IO_seekpos_unlocked): Likewise.
9696 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9697 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9699 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9701 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9702 argument in xmalloc size computation.
9704 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9706 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9707 math_opt_barrier and math_force_eval macros.
9709 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9712 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9713 * sysdeps/i386/fpu/math_private.h: New file.
9714 * sysdeps/x86_64/fpu/math_private.h: New file.
9715 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9716 math_force_eval macros. Use "+m" constraint on asm rather than
9718 * math/s_nextafter.c (__nextafter): Likewise.
9719 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9721 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9722 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9723 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9724 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9725 math_opt_barrier and math_force_eval macros.
9726 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9727 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9728 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9729 (__nexttoward): Use math_opt_barrier and
9730 math_force_eval macros. Use "+m" constraint on asm rather than
9731 "=m" and "m". Only use asm to force double result if
9732 FLT_EVAL_METHOD is 2.
9733 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9734 (__nexttowardf): Use math_opt_barrier and
9735 math_force_eval macros. Use "+m" constraint on asm rather than
9736 "=m" and "m". Only use asm to force double result if
9737 FLT_EVAL_METHOD is not 0.
9738 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9739 (__nexttowardf): Use math_opt_barrier and
9740 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9741 x to float using asm.
9742 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9743 (__nldbl_nexttowardf): Use math_opt_barrier and
9744 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9745 x to float using asm.
9746 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9747 (__nexttowardf): Use math_opt_barrier and math_force_eval
9748 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
9749 * math/bug-nextafter.c (zero, inf): New variables.
9750 (main): Add new tests.
9751 * math/bug-nexttoward.c (zero, inf): New variables.
9752 (main): Add new tests.
9754 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9757 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9758 exceptions both in SW and MXCSR.
9759 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9760 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9761 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9762 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9763 in MXCSR if SSE is available.
9764 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9766 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9768 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9769 Return 0 rather than 1.
9770 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9771 Remove incorrect part of a comment. Fix argument to feraiseexcept.
9772 * math/test-fenv.c (feholdexcept_tests): New function.
9775 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9778 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9781 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9784 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9785 Reported by David Anderson <davea42@earthlink.net>.
9787 2007-04-07 Ulrich Drepper <drepper@redhat.com>
9789 * posix/sys/wait.h: Remove unnecessary forward declaration.
9791 2007-04-05 Jakub Jelinek <jakub@redhat.com>
9793 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9794 with obj->do_servers after first_shoot.
9796 2007-04-03 Ulrich Drepper <drepper@redhat.com>
9798 * posix/Makefile (routines): Add sched_cpucount.
9799 (tests): Add tst-cpucount.
9800 * posix/sched_cpucount.c: New file.
9801 * posix/tst-cpucount.c: New file.
9802 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9803 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
9804 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9805 * posix/sched.h: Define CPU_COUNT.
9807 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9809 * posix/fnmatch.c (STRUCT): Define.
9810 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9811 * posix/fnmatch_loop.c (struct STRUCT): New type.
9812 (FCT): Add ends argument. If ends != NULL and normal * is
9813 seen in the pattern, store current pattern and string pointers
9814 and return. Adjust recursive calls.
9815 (EXT): Adjust FCT callers.
9816 (STRUCT): Undef at the end of the file.
9817 * posix/Makefile (tests): Add tst-fnmatch2.
9818 * posix/tst-fnmatch2.c: New test.
9820 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9822 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9825 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9826 Change last argument to unsigned int.
9828 2007-03-23 Jakub Jelinek <jakub@redhat.com>
9830 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9832 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9834 * config.h.in (HAVE_LIBCAP): Add.
9835 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9837 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9838 free_caps. Cast away const from 4th cap_set_flag argument.
9840 2007-03-26 Ulrich Drepper <drepper@redhat.com>
9842 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9844 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9845 Add sync_file_range.
9846 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9848 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9850 * sysdeps/powerpc/bits/atomic.h
9851 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9852 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9853 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9854 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9855 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9856 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9857 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9858 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9859 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9860 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9861 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9862 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9863 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9864 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9865 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9866 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9867 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9868 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9869 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9870 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9872 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9874 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9875 (__cache_line_size): Define the variable here. Add
9876 attribute_hidden, remove weak_extern.
9877 (__libc_start_main): Set __cache_line_size
9879 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9880 (__cache_line_size): Define the variable here. Add
9881 attribute_hidden, remove weak_extern.
9882 (DL_PLATFORM_AUXV): Set __cache_line_size
9884 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9885 weak_extern, add attribute_hidden.
9886 (__elf_machine_runtime_setup): Assume __cache_line_size is always
9888 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9890 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9892 2007-03-26 Jakub Jelinek <jakub@redhat.com>
9895 * timezone/africa: Update from tzdata2007d.
9896 * timezone/asia: Likewise.
9897 * timezone/australasia: Likewise.
9898 * timezone/backward: Likewise.
9899 * timezone/europe: Likewise.
9900 * timezone/iso3166.tab: Likewise.
9901 * timezone/leapseconds: Likewise.
9902 * timezone/northamerica: Likewise.
9903 * timezone/southamerica: Likewise.
9904 * timezone/zone.tab: Likewise.
9906 * timezone/private.h: Update from tzcode2007d.
9907 * timezone/zdump.c: Likewise.
9908 * timezone/zic.c: Likewise.
9910 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9912 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9913 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9915 (nis_server_cache_search, nis_server_cache_add): New functions.
9916 (__nisfind_server): Use them. Add dbp and flags argument, if
9917 call __nisbind_create.
9918 (__nisbind_create): Add server_used and current_ep arguments,
9919 only call __nis_findfastest if server_used is ~0.
9920 (__do_niscall2, __prepare_niscall): Adjust callers.
9921 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9922 ckey_cache_euid, ckey_cache_lock): New variables.
9923 (get_ckey): New function.
9924 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9925 __pmap_getnisport. Save __pmap_getnisport result in
9926 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
9928 * nis/nis_lookup.c (nis_lookup): Likewise.
9929 * nis/nis_table.c (nis_list): Likewise.
9930 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9933 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9934 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9935 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9936 _nss_nisplus_getservbyport_r): Likewise.
9937 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9938 _nss_nisplus_getnetbyaddr_r): Likewise.
9939 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9940 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9941 _nss_nisplus_getntohost_r): Likewise.
9942 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9943 _nss_nisplus_getrpcbynumber_r): Likewise.
9945 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9947 * configure.in (libc_cv_gnu89_inline): Only do compile test.
9948 * configure: Rebuilt.
9950 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9952 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9954 2006-06-07 Joseph Myers <joseph@codesourcery.com>
9957 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9960 2007-03-18 Jakub Jelinek <jakub@redhat.com>
9962 * nscd/gai.c: Include alloca.h.
9963 (__libc_use_alloca): Define.
9965 2007-03-16 Jakub Jelinek <jakub@redhat.com>
9967 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9969 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9970 (DL_DST_REQUIRED): Adjust user.
9972 * include/dlfcn.h (struct link_map): New forward decl.
9974 * inet/getnameinfo.c: Include stddef.h.
9975 (getnameinfo): Use offsetof.
9977 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9979 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9981 * string/strerror_l.c: Include stdlib.h.
9983 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9984 * config.make.in (gnu89-inline-CFLAGS): New variable.
9985 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9987 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9988 * argp/argp.h: Use it.
9989 * bits/mathinline.h: Likewise.
9990 * bits/sigset.h: Likewise.
9991 * bits/string.h: Likewise.
9992 * ctype/ctype.h: Likewise.
9993 * hurd/hurd.h: Likewise.
9994 * hurd/hurd/fd.h: Likewise.
9995 * hurd/hurd/port.h: Likewise.
9996 * hurd/hurd/signal.h: Likewise.
9997 * hurd/hurd/threadvar.h: Likewise.
9998 * hurd/hurd/userlink.h: Likewise.
9999 * io/sys/stat.h: Likewise.
10000 * libio/bits/stdio.h: Likewise.
10001 * libio/bits/stdio2.h: Likewise.
10002 * mach/lock-intern.h: Likewise.
10003 * mach/mach/mig_support.h: Likewise.
10004 * math/bits/cmathcalls.h: Likewise.
10005 * posix/bits/unistd.h: Likewise.
10006 * socket/bits/socket2.h: Likewise.
10007 * stdlib/bits/stdlib.h: Likewise.
10008 * stdlib/stdlib.h: Likewise.
10009 * string/argz.h: Likewise.
10010 * string/bits/string2.h: Likewise.
10011 * string/bits/string3.h: Likewise.
10012 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10013 * sysdeps/generic/inttypes.h: Likewise.
10014 * sysdeps/generic/machine-lock.h: Likewise.
10015 * sysdeps/generic/machine-sp.h: Likewise.
10016 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10017 * sysdeps/i386/i486/bits/string.h: Likewise.
10018 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10019 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10020 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10021 * sysdeps/mach/i386/machine-lock.h: Likewise.
10022 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10023 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10024 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10025 * sysdeps/s390/bits/string.h: Likewise.
10026 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10027 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10028 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10029 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10030 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10031 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10032 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10033 * wcsmbs/bits/wchar2.h: Likewise.
10034 * wcsmbs/wchar.h: Likewise.
10035 * stdlib/gmp.h: Likewise. Include <features.h> to get
10036 __extern_inline definition.
10038 2007-03-15 Jakub Jelinek <jakub@redhat.com>
10040 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10044 * math/libm-test.inc (log_test): Test -Inf and NaN.
10045 (log10_test, log1p_test, log2_test): Test -Inf.
10046 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10047 FE_INVALID when argument is qNaN.
10048 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10049 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10050 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10051 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10052 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10053 testb $4, %ah and jump if non-zero.
10054 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10055 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10058 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10059 ancestors with the same depths.
10060 Patch by Niels Moeller <nisse@lysator.liu.se>.
10061 (filter_doc): Don't crash if argp is NULL.
10062 * argp/Makefile (tests): Add tst-argp2.
10063 * argp/tst-argp2.c: New test.
10066 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10068 (updwtmp_file): Likewise.
10071 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10072 (inet6_opt_append): Don't check extlen is big enough if extbuf
10074 (inet6_opt_finish): Likewise.
10075 * inet/Makefile (tests): Add test-inet6_opt.
10076 * inet/test-inet6_opt.c: New test.
10078 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10079 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10080 NLMSG_ERR. Instead use a page sized buffer.
10081 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10084 2007-03-14 Richard Henderson <rth@redhat.com>
10086 * sysdeps/alpha/fpu/s_llround.c: New file.
10087 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10088 * sysdeps/alpha/fpu/s_lround.c: New file.
10089 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10090 * sysdeps/alpha/fpu/s_round.c: New file.
10091 * sysdeps/alpha/fpu/s_roundf.c: New file.
10092 * sysdeps/alpha/fpu/s_trunc.c: New file.
10093 * sysdeps/alpha/fpu/s_truncf.c: New file.
10095 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10096 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10097 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10098 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10099 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10100 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10102 * sysdeps/alpha/fpu/s_fmax.S: New file.
10103 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10104 * sysdeps/alpha/fpu/s_fmin.S: New file.
10105 * sysdeps/alpha/fpu/s_fminf.S: New file.
10106 * sysdeps/alpha/fpu/s_isnan.c: New file.
10107 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10108 * sysdeps/alpha/fpu/s_llrint.c: New file.
10109 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10110 * sysdeps/alpha/fpu/s_lrint.c: New file.
10111 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10112 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10113 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10115 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10116 (__fdimf, fdimf, __fdim, fdim): Remove.
10117 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10118 (__isnanf, __isnan, __isnanl): New.
10120 2007-03-13 Richard Henderson <rth@redhat.com>
10122 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10124 2007-03-13 Richard Henderson <rth@redhat.com>
10126 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10127 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10128 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10129 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10130 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10131 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10133 2007-03-13 Richard Henderson <rth@redhat.com>
10135 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10136 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10137 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10138 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10139 Move to dl-auxv.h; initialize instead of extern weak.
10140 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10142 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10143 Extern instead of initialized.
10145 2007-03-13 Richard Henderson <rth@redhat.com>
10147 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10148 __sigsuspend_nocancel.
10150 2007-03-06 Ulrich Drepper <drepper@redhat.com>
10152 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10153 172.16/12 address range.
10155 2007-03-02 Jakub Jelinek <jakub@redhat.com>
10157 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10158 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10161 2007-03-01 Jakub Jelinek <jakub@redhat.com>
10164 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10166 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10168 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10169 for x qNaN and y either +-inf or non-integer value.
10170 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10171 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10172 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10174 2007-02-10 Mike Frysinger <vapier@gentoo.org>
10176 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10177 from sysdep_headers.
10179 2007-02-28 Jakub Jelinek <jakub@redhat.com>
10181 * time/tzfile.c (find_transition): Instead of a linear search try to
10182 guess the transition index, use a linear search if the result is at
10183 most 10 transitions away from the guess or binary search otherwise.
10185 2007-02-27 Jakub Jelinek <jakub@redhat.com>
10187 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10188 memory reallocation.
10190 2007-02-21 Ulrich Drepper <drepper@redhat.com>
10192 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10193 and fix some typos.
10194 Optimize use of TOLOWER.
10197 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10198 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10199 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10202 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10203 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10206 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10207 (open_dir_stream): Likewise.
10208 * io/Makefile (tests): Add bug-ftw5.
10209 * io/bug-ftw5.c: New file.
10211 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10212 * nscd/servicescache.c (cache_addserv): Likewise.
10214 * nscd/grpcache.c (cache_addgr): In case a record changed on
10215 refresh, adjust key_copy.
10218 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10219 refresh, adjust key_copy.
10222 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10224 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10226 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10228 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10231 * stdio-common/vfscanf.c: Small cleanups throughout.
10233 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10236 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10237 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10238 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10239 Patch by Jared Casper <jaredcasper@gmail.com>.
10241 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10242 * sysdeps/unix/opendir.c: Likewise.
10243 * sysdeps/unix/readdir.c: Likewise.
10246 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10248 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10250 * stdio-common/vfscanf.c: Fix problems in width accounting.
10251 * stdio-common/tst-sscanf.c (double_tests): New tests.
10252 (main): Hook them up.
10254 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10255 More simplifications of floating-point reader.
10257 * stdio-common/Makefile (tests): Add tst-swscanf.
10258 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10260 * stdio-common/tst-swscanf.c: New file.
10262 2007-02-17 Ulrich Drepper <drepper@redhat.com>
10265 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10266 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10267 Remove using for __jmp_buf_tag.
10268 * locale/locale.h (struct lconv): Also define in std namespace.
10269 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10272 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10273 using __libc_enable_secure.
10276 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10279 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10280 of names for ellipsises.
10283 * malloc/memusage.sh: Cleanups.
10284 * debug/xtrace.sh: Quoting and trap changes.
10286 2007-02-16 Ulrich Drepper <drepper@redhat.com>
10288 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10290 * locale/iso-3166.def: Update entry for Serbia.
10291 * locale/iso-4217.def: Define RSD, remove CSD.
10293 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10294 and 64-bit operations.
10297 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10300 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10303 2007-02-15 Ulrich Drepper <drepper@redhat.com>
10306 * assert/assert.h (assert): Simplify.
10307 (assert_perror): Likewise.
10308 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10310 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10313 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10314 change: don't pass NULL in place of an integer.
10316 2007-02-02 Bruno Haible <bruno@clisp.org>
10319 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10320 Add mapping for U+327E.
10321 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10322 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10323 mapping of 0xD9 0xE8.
10324 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10326 Reported by Jungshik Shin <jungshik@google.com>.
10329 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10330 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10331 Reported by Jungshik Shin <jungshik@google.com>.
10333 2007-02-14 Ulrich Drepper <drepper@redhat.com>
10335 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10339 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10340 byte variants. Patch mostly be tom@tommay.net.
10342 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10345 * posix/glob.c (attribute_hidden): Define if not defined.
10346 (glob): Unescape dirname, filename or username when needed and not
10347 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10348 is NULL. Handle unescaped [ in pattern without closing ].
10349 Don't pass GLOB_CHECK down to recursive glob for directories.
10350 (__glob_pattern_type): New function.
10351 (__glob_pattern_p): Implement using __glob_pattern_type.
10352 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10353 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10354 Remove unreachable code.
10355 * posix/globtest.sh: Add a couple of new tests.
10357 2007-02-13 Ulrich Drepper <drepper@redhat.com>
10359 * po/ru.po: Update from translation team.
10361 2007-02-12 Jakub Jelinek <jakub@redhat.com>
10363 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10364 to the list of i486+ CPUs.
10365 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10367 2007-02-12 Ulrich Drepper <drepper@redhat.com>
10369 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10370 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10373 2007-02-09 Ulrich Drepper <drepper@redhat.com>
10375 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10377 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10378 * resolv/res_mkquery.c: Define __res_nopt.
10379 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10380 try adding EDNS0 record.
10381 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10382 EDNS0 record was send make sure we don't try it again.
10383 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10384 * include/resolv.h: Declare __res_nopt.
10386 2007-02-08 Jakub Jelinek <jakub@redhat.com>
10389 * time/strptime_l.c (__strptime_internal): Set have_mon for
10390 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10391 have been computed from tm_yday and tm_year. Don't crash
10392 in day_of_the_week or day_of_the_year if not have_mon
10393 and tm_mon contains bogus value.
10394 * time/Makefile (tests): Add tst-strptime3.
10395 * time/tst-strptime3.c: New test.
10397 2007-02-05 Jakub Jelinek <jakub@redhat.com>
10400 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10401 bit for RE_HAT_LISTS_NOT_NEWLINE.
10402 (build_charclass_op): Remove bogus comment.
10403 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10404 * posix/bug-regex27.c: New test.
10405 * posix/bug-regex28.c: New test.
10407 2007-02-03 Ulrich Drepper <drepper@redhat.com>
10409 * po/sv.po: Update from translation team.
10411 2007-02-02 Ulrich Drepper <drepper@redhat.com>
10413 * nscd/nscd_helper.c (open_socket): Minor size optimization.
10415 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10417 * include/locale.h (__uselocale): Add libc_hidden_proto.
10418 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10420 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10423 2007-02-01 Ulrich Drepper <drepper@redhat.com>
10425 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10427 (PTR_DEMANGLE): Real definition now that it's not the same as
10428 PRT_MANGLE anymore.
10429 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10431 * string/strerror_l.c: New file.
10432 * string/Makefile (routines): Add strerror_l.
10433 * string/string.h: Declare strerror_l.
10434 * string/Versions: Export strerror_l for GLIBC_2.6.
10436 2007-01-31 Ulrich Drepper <drepper@redhat.com>
10438 * nscd/nscd_helper.c (open_socket): Now takes request type and key
10439 as parameter. Construct request record. Try sending request
10440 before the first poll use, it usually succeeds. Adjust all
10442 * nscd/nscd-client.h: Define MAXKEYLEN.
10443 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10445 2007-01-31 Jakub Jelinek <jakub@redhat.com>
10447 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10449 * nscd/nscd_helper.c: Include string.h.
10450 (__nscd_cache_search): Remove const qualifier from return value.
10451 On strict alignment architectures check hash entry and data head
10453 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10454 mmapped data during GC cycle contains garbage. If
10455 __nscd_drop_map_ref fails, decrement mapped->counter when returning
10456 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10458 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10459 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10460 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10461 * nscd/nscd_getai.c (__nscd_getai): Likewise.
10462 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10464 2007-01-30 Ulrich Drepper <drepper@redhat.com>
10466 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10468 2007-01-26 Ulrich Drepper <drepper@redhat.com>
10470 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10471 names not numbers in cfi_*.
10473 2007-01-26 Andreas Jaeger <aj@suse.de>
10475 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10476 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10477 Correct values of PER_HPUX and PER_OSF4.
10479 2007-01-24 Ulrich Drepper <drepper@redhat.com>
10481 * elf/dl-minimal.c: Undefine _itoa first.
10482 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10483 * malloc/mtrace.c: Revert last change.
10484 * posix/wordexp.c: Likewise.
10486 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10488 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10489 and __geode__ to the list of i486+ CPUs.
10490 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10492 2007-01-23 Ulrich Drepper <drepper@redhat.com>
10494 * stdio-common/_itoa.c: Include <limits.h>.
10495 * stdio-common/_itowa.c: Likewise.
10497 2007-01-22 Ulrich Drepper <drepper@redhat.com>
10499 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10501 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10503 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10505 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10509 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10510 * stdio-common/Makefile (tests): Add bug17.
10511 * stdio-common/bug17.c: New file.
10513 2007-01-19 Ulrich Drepper <drepper@redhat.com>
10515 * iconvdata/brf.c: New file.
10516 * iconvdata/testdata/BRF: New file.
10517 * iconvdata/testdata/BRF..UTF8: New file.
10518 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10519 * iconvdata/Makefile: Add rules to build BRF.
10520 * iconvdata/TESTS: Add BRF entry.
10521 * iconvdata/gconv-modules: Likewise.
10522 * iconvdata/tst-tables.sh: Likewise.
10524 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
10526 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10527 type `long long int', not `long int'.
10528 (wcstoq): Likewise.
10530 2007-01-18 Ulrich Drepper <drepper@redhat.com>
10532 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10533 of values on 64-bit platforms which are too large.
10535 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
10536 Joe Kerian <jkerian@us.us.ibm.com>
10539 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10540 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
10541 (__copysignl): Use signbit() for comparison.
10542 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10543 SET_LDOUBLE_WORDS64.
10546 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10547 (__ceill): Remove calls to fegetround(), fesetround().
10548 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10549 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10550 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10552 2007-01-17 Jakub Jelinek <jakub@redhat.com>
10554 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10556 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10558 2007-01-17 Ulrich Drepper <drepper@redhat.com>
10560 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10562 * csu/libc-start.c: Likewise.
10564 2007-01-16 Ulrich Drepper <drepper@redhat.com>
10566 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10567 really work anyway.
10569 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10571 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
10573 (handle_request): Remove unnecessary tests.
10575 * nscd/cache.c (cache_add): Record the failure to add to the cache.
10577 2007-01-15 Jakub Jelinek <jakub@redhat.com>
10579 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10580 workbits in semi-raw fraction.
10582 * math/test-misc.c: Add new tests.
10584 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10586 * math/basic-test.c: Include test-skeleton.c.
10587 (TEST_TRUNC): Define.
10588 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10589 (main): Rename to ...
10590 (do_test): ...this. Run new tests.
10591 (TEST_FUNCTION): Define.
10593 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
10594 Joe Kerian <jkerian@us.us.ibm.com>
10597 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10598 handling for high words.
10599 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10600 and overflow for infinity.
10602 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10604 * nscd/connections.c (handle_request): Add a __builtin_expect.
10606 * nscd/connections.c (serv2db): Change type into structure which
10607 also says whether this is a request for data. Renamed to
10608 servinfo. All users changed.
10609 (handle_request): Much simpler test whether we should search the cache.
10611 * nscd/connections.c (handle_request): Fix thinko in selinux test
10614 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10615 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10616 it before getting dl_load_lock and then relock.
10617 (_dl_lookup_symbol_x): Pass flags to add_dependency.
10618 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10619 case we unlocked the scope.
10620 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10621 _dl_lookup_symbol_x in case we locked the scope.
10622 (_dl_profile_fixup): Likewise.
10623 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10624 set DL_LOOKUP_SCOPE_LOCK.
10626 2007-01-13 Ulrich Drepper <drepper@redhat.com>
10628 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10629 CFLAGS-getsrvbynpt_r.c.
10630 * nscd/getsrvbynm_r.c: New file.
10631 * nscd/getsrvbypt_r.c: New file.
10632 * nscd/nscd_getserv_r.c: New file.
10633 * nscd/servicescache.c: New file.
10634 * nscd/Makefile (routines): Add nscd_getserv_r.
10635 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10636 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10637 CFLAGS-getsrvbypt_r.c.
10638 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10639 table. Add entries for services database.
10640 * nscd/connections.c (serv2str): Mark as const. Add entries for
10642 (dbs): Add .reset_res and servdb initialization.
10643 (serv2db): Add entries for services database.
10644 (verify_persistent_db): Accept dbnr == servdb.
10645 (invalidate_cache): Rewrite database name recognition to use a table.
10646 Call res_init() if .reset_res is set for database.
10647 (handle_request): Add code to handle services database.
10648 * nscd/gai.c: Don't define __getservbyname_r.
10649 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10650 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10651 (serv_response_header): Define.
10652 (struct datahead): Add serv_response_header member.
10653 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10655 * nscd/nscd.conf: Add entries for services database.
10656 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10657 Declare serv_iov_disabled.
10658 Declare addservbyname, readdservbyname, addservbyport, and
10660 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10661 (find_db): Fix error message.
10662 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10663 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10664 * nscd/selinux.c (perms): Add entries for services database.
10665 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10666 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10668 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10669 * nscd/hstcache.c: Likewise.
10670 * nscd/pwdcache.c: Likewise.
10672 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10673 computation of keylen.
10675 * include/string.h: Only redefine strndupa if this is really for
10678 2007-01-12 Ulrich Drepper <drepper@redhat.com>
10680 * nscd/nscd_gethst_r.c: Minor cleanups.
10682 * nscd/connections.c (handle_request): Check selinux permissions
10683 for all non-admin commands.
10685 * sysdeps/i386/i486/bits/atomic.h: Define
10686 atomic_compare_and_exchange_val_acq,
10687 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10688 using __sync_* built-ins for gcc >= 4.1.
10689 * sysdeps/x86_64/bits/atomic.h: Likewise.
10692 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10695 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10697 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10698 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10699 (do_test): Check errno and exit(0) if ENOSYS.
10701 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10703 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10704 thousands separators.
10705 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10706 * stdlib/tst-strtod4.c: New test.
10709 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10710 hexadecimal digit should accept just the initial 0.
10711 * stdlib/tst-strtod2.c (tests): New variable.
10712 (do_test): Run several tests rather than just one.
10714 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10716 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10717 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10719 2007-01-10 Ulrich Drepper <drepper@redhat.com>
10721 * io/fts.c: Make sure fts_cur is always valid after return from
10723 Patch by Miloslav Trmac <mitr@redhat.com>.
10725 2006-10-27 Richard Sandiford <richard@codesourcery.com>
10727 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10728 (R_MIPS_NUM): Bump by 1.
10730 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10732 * posix/execvp.c: Include alloca.h.
10733 (allocate_scripts_argv): Renamed to...
10734 (scripts_argv): ... this. Don't allocate buffer here nor count
10736 (execvp): Use alloca if possible.
10737 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10738 * posix/tst-vfork3.c: New test.
10740 2007-01-03 Ulrich Drepper <drepper@redhat.com>
10742 * string/Makefile (tst-strxfrm2-ENV): Define.
10743 * stdlib/Makefile (tst-strtod3-ENV): Define.
10745 2007-01-02 Ulrich Drepper <drepper@redhat.com>
10747 * posix/getconf.c: Update copyright year.
10748 * nss/getent.c: Likewise.
10749 * iconv/iconvconfig.c: Likewise.
10750 * iconv/iconv_prog.c: Likewise.
10751 * elf/ldconfig.c: Likewise.
10752 * catgets/gencat.c: Likewise.
10753 * csu/version.c: Likewise.
10754 * elf/ldd.bash.in: Likewise.
10755 * elf/sprof.c (print_version): Likewise.
10756 * locale/programs/locale.c: Likewise.
10757 * locale/programs/localedef.c: Likewise.
10758 * nscd/nscd.c (print_version): Likewise.
10759 * debug/xtrace.sh: Likewise.
10760 * malloc/memusage.sh: Likewise.
10761 * malloc/mtrace.pl: Likewise.
10762 * debug/catchsegv.sh: Likewise.
10764 2006-12-24 Ulrich Drepper <drepper@redhat.com>
10766 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10769 2006-12-23 Ulrich Drepper <drepper@redhat.com>
10771 * posix/wordexp.c: Remove some unnecessary tests.
10773 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10775 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10776 blacklist the group till after we look it up.
10778 2006-12-21 Ulrich Drepper <drepper@redhat.com>
10780 * include/atomic.h (atomic_forced_read): New macro.
10782 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10784 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10786 2006-12-19 Jakub Jelinek <jakub@redhat.com>
10788 * nss/getXXbyYY_r.c: Include atomic.h.
10789 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10790 add atomic_write_barrier () in between.
10792 * stdlib/Makefile (tests): Add tst-makecontext.
10793 * stdlib/tst-makecontext.c: New test.
10795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10796 (__makecontext): Don't realign uc_mcontext.uc_regs.
10798 2006-11-28 Jakub Jelinek <jakub@redhat.com>
10800 * elf/dl-support.c: Include dl-procinfo.h.
10801 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10802 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10803 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10805 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10806 hardcoded constants.
10807 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10808 PPC_PLATFORM_* macros for array designators.
10810 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
10812 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10813 names to the beginning.
10814 (_dl_powerpc_platforms): Add "power6x".
10815 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10816 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10817 (_DL_PLATFORMS_COUNT): Increase.
10818 (_dl_string_platform): Handle power6x case.
10819 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10820 PPC_FEATURE_POWER6_EXT): Define.
10821 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10823 2006-12-18 Jakub Jelinek <jakub@redhat.com>
10826 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10827 [-2^31 .. 2^31) range.
10828 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10830 * stdlib/tst-rand48-2.c: New test.
10831 * stdlib/Makefile (tests): Add tst-rand48-2.
10833 2006-12-14 Jakub Jelinek <jakub@redhat.com>
10835 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10837 2006-12-14 Ulrich Drepper <drepper@redhat.com>
10839 * misc/tst-pselect.c (do_test): Make sure the helper process is
10840 terminating when the test is aborted.
10842 2006-12-13 Ulrich Drepper <drepper@redhat.com>
10844 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10845 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10846 Handle relatime mount option.
10849 * libio/Makefile (tests): Add tst-setvbuf1.
10850 * libio/tst-setvbuf1.c: New file.
10852 2006-12-08 Jakub Jelinek <jakub@redhat.com>
10855 * libio/genops.c (__uflow): Fix a typo.
10856 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10857 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
10858 the narrow buffer size.
10860 2006-11-24 Jakub Jelinek <jakub@redhat.com>
10863 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10864 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10865 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10867 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10868 _IO_wstr_finish): Likewise.
10869 * libio/wmemstream.c (open_wmemstream): Likewise.
10870 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10871 even for wide streams.
10873 2006-12-13 Jakub Jelinek <jakub@redhat.com>
10875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10878 2006-12-11 Ulrich Drepper <drepper@redhat.com>
10880 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10881 separators also if no non-zero digits found.
10882 * stdlib/Makefile (tests): Add tst-strtod3.
10884 2006-12-09 Ulrich Drepper <drepper@redhat.com>
10887 * include/features.h: Fix comment about default value for
10891 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10892 empty parsed strings.
10893 * stdlib/Makefile (tests): Add tst-strtod2.
10894 * stdlib/tst-strtod2.c: New file.
10897 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10899 * stdlib/Makefile (tests): Add tst-atof2.
10900 * stdlib/tst-atof2.c: New file.
10903 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10904 correctly if removing trailing zero of hex-float.
10905 * stdlib/Makefile (tests): Add tst-atof1.
10906 * stdlib/tst-atof1.c: New file.
10908 2006-12-09 Jakub Jelinek <jakub@redhat.com>
10910 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10911 Start searching for next comma at p rather than rest.
10912 * misc/Makefile (tests): Add tst-mntent2.
10913 * misc/tst-mntent2.c: New test.
10915 * misc/getusershell.c (initshells): Check for integer overflows.
10916 Make strings buffer one bigger as fgets always succeeds when second
10917 argument is 1. Don't use calloc for shells array. Disallow
10920 2006-12-08 Ulrich Drepper <drepper@redhat.com>
10922 * malloc/memusage.c: Handle realloc with new size of zero and
10923 non-NULL pointer correctly.
10924 (me): Really write first record twice.
10925 (struct entry): Make format bi-arch safe.
10926 (dest): Write out more realloc statistics.
10927 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10929 2006-12-05 Jakub Jelinek <jakub@redhat.com>
10931 * nis/nis_subr.c (nis_getnames): Revert last change.
10933 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10935 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10936 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10937 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10938 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10940 * io/Makefile: Add rules to build and run tst-ttyname_r test.
10941 * io/tst-ttyname_r.c: New test.
10943 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10945 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10947 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
10949 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10950 jump table entries.
10952 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
10954 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10955 `clone' function to ensure proper unwinding stop of gdb.
10956 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10958 2006-12-01 Ulrich Drepper <drepper@redhat.com>
10960 * nscd/nscd.init: Remove obsolete and commented-out -S option
10963 2006-11-23 Jakub Jelinek <jakub@redhat.com>
10966 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10969 * manual/string.texi (strtok): Remove duplicate paragraph.
10971 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10973 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10974 libgcc not supporting `rflags' unwinding (register # >= 17).
10976 2006-11-30 Jakub Jelinek <jakub@redhat.com>
10978 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10981 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
10982 Jakub Jelinek <jakub@redhat.com>
10983 Jan Kratochvil <jan.kratochvil@redhat.com>
10985 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10986 unwind information.
10987 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10988 'restore_rt' even in the 'signal' directory.
10989 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10991 2006-11-27 Jakub Jelinek <jakub@redhat.com>
10994 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10995 malloc crashed. Don't allocate memory unnecessarily in each
10998 2006-10-21 Jakub Jelinek <jakub@redhat.com>
11000 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11002 2006-11-20 Ulrich Drepper <drepper@redhat.com>
11004 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11006 2006-11-18 Bruno Haible <bruno@clisp.org>
11008 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11009 __sysconf only after having tried to call getgroups32.
11011 2006-11-19 Ulrich Drepper <drepper@redhat.com>
11013 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11014 addresses for IPv4 queries if they can be mapped.
11016 2006-11-16 Jakub Jelinek <jakub@redhat.com>
11018 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11019 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11020 (signmask): Add .size directive.
11021 (othermask): Add .type directive.
11023 2006-11-14 Ulrich Drepper <drepper@redhat.com>
11025 * po/nl.po: Update from translation team.
11027 * timezone/zdump.c: Redo fix for BZ #3137.
11029 2006-11-14 Jakub Jelinek <jakub@redhat.com>
11031 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11032 to first_unused after parsing :include: file.
11034 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11036 * timezone/africa: Update from tzdata2006o.
11037 * timezone/antarctica: Likewise.
11038 * timezone/asia: Likewise.
11039 * timezone/australasia: Likewise.
11040 * timezone/backward: Likewise.
11041 * timezone/europe: Likewise.
11042 * timezone/iso3166.tab: Likewise.
11043 * timezone/northamerica: Likewise.
11044 * timezone/southamerica: Likewise.
11045 * timezone/zone.tab: Likewise.
11047 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11048 on machines with 64-bit time_t.
11050 * timezone/checktab.awk: Update from tzcode2006o.
11051 * timezone/ialloc.c: Likewise.
11052 * timezone/private.h: Likewise.
11053 * timezone/scheck.c: Likewise.
11054 * timezone/tzfile.h: Likewise.
11055 * timezone/tzselect.ksh: Likewise.
11056 * timezone/zdump.c: Likewise.
11057 * timezone/zic.c: Likewise.
11060 * elf/ldconfig.c (main): Call setlocale and textdomain.
11061 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11064 * manual/argp.texi: Fix typos.
11065 * manual/charset.texi: Likewise.
11066 * manual/errno.texi: Likewise.
11067 * manual/filesys.texi: Likewise.
11068 * manual/lang.texi: Likewise.
11069 * manual/maint.texi: Likewise.
11070 * manual/memory.texi: Likewise.
11071 * manual/message.texi: Likewise.
11072 * manual/resource.texi: Likewise.
11073 * manual/search.texi: Likewise.
11074 * manual/signal.texi: Likewise.
11075 * manual/startup.texi: Likewise.
11076 * manual/stdio.texi: Likewise.
11077 * manual/sysinfo.texi: Likewise.
11078 * manual/syslog.texi: Likewise.
11079 * manual/time.texi: Likewise.
11080 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11083 * sunrpc/clnt_raw.c: Minimal message improvements.
11084 * sunrpc/pm_getmaps.c: Likewise.
11085 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11086 * nis/nis_print_group_entry.c: Likewise.
11087 * locale/programs/repertoire.c: Likewise.
11088 * locale/programs/charmap.c: Likewise.
11089 * malloc/memusage.sh: Likewise.
11090 * elf/dl-deps.c: Likewise.
11091 * locale/programs/ld-collate.c: Likewise.
11092 * libio/vswprintf.c: Likewise.
11093 * malloc/memusagestat.c: Likewise.
11094 * sunrpc/auth_unix.c: Likewise.
11095 * sunrpc/rpc_main.c: Likewise.
11096 * nscd/cache.c: Likewise.
11097 * locale/programs/repertoire.c: Unify output messages.
11098 * locale/programs/charmap.c: Likewise.
11099 * locale/programs/ld-ctype.c: Likewise.
11100 * locale/programs/ld-monetary.c: Likewise.
11101 * locale/programs/ld-numeric.c: Likewise.
11102 * locale/programs/ld-time.c: Likewise.
11103 * elf/ldconfig.c: Likewise.
11104 * nscd/selinux.c: Likewise.
11105 * elf/cache.c: Likewise.
11106 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11109 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11113 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11115 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11116 if N is one bigger than return value.
11117 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11118 and l1 last arguments, if buf is defined, verify the return value
11119 equals to strlen (buf) and verify no byte beyond passed length
11122 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11124 * po/sv.po: Update from translation team.
11126 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11128 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11129 noinline attribute.
11131 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11133 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11134 noinline attribute.
11136 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11137 Use __new_sys_siglist instead of _sys_siglist_internal as
11138 second macro argument.
11139 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11142 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11145 * posix/unistd.h (sysconf): Remove const attribute.
11147 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11148 temporary or deprecated addresses.
11149 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11151 * string/Makefile (tests): Add tst-strxfrm2.
11152 * string/tst-strxfrm2.c: New file.
11154 2006-10-09 Jakub Jelinek <jakub@redhat.com>
11156 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11157 rather than r->r_brk.
11159 2006-11-08 Jakub Jelinek <jakub@redhat.com>
11161 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11162 optimization even if needed > n.
11164 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11165 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11166 return false, otherwise return true.
11167 (cache_rpath): Return decompose_rpath return value.
11169 2006-11-07 Jakub Jelinek <jakub@redhat.com>
11171 * include/libc-symbols.h (declare_symbol): Rename to...
11172 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11173 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11175 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11177 * sysdeps/gnu/siglist.c: Likewise.
11179 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11181 * sysdeps/powerpc/fpu/bits/mathinline.h
11182 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11183 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11185 2006-11-05 Ulrich Drepper <drepper@redhat.com>
11187 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11188 Update handling of cache descriptor 0x49 for new models.
11189 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11192 2006-11-02 Jakub Jelinek <jakub@redhat.com>
11194 * malloc/memusage.c (dest): Reset not_me back to false after
11195 printing statistics.
11197 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11199 * configure.in: Work around ld --help change and avoid -z relro
11200 test completely if the architecture doesn't care about security.
11202 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11204 * po/sv.po: Update from translation team.
11206 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11208 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11209 generate compatibility version.
11211 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11213 * configure.in: Relax -z relro requirement a bit.
11215 * po/sv.po: Update from translation team.
11217 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11219 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11220 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11221 * elf/dl-close.c (_dl_close_worker): Likewise.
11222 * elf/dl-open.c (_dl_open_worker): Likewise.
11223 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11225 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11227 * configure.in: Require assembler support for visibility, compiler
11228 support for visibility and aliases, linker support for various -z
11230 * Makeconfig: Remove conditional code which now is unnecessary.
11231 * config.h.in: Likewise.
11232 * config.make.in: Likewise.
11233 * dlfcn/Makefile: Likewise.
11234 * elf/Makefile: Likewise.
11235 * elf/dl-load.c: Likewise.
11236 * elf/rtld.c: Likewise.
11237 * include/libc-symbols.h: Likewise.
11238 * include/stdio.h: Likewise.
11239 * io/Makefile: Likewise.
11240 * io/fstat.c: Likewise.
11241 * io/fstat64.c: Likewise.
11242 * io/fstatat.c: Likewise.
11243 * io/fstatat64.c: Likewise.
11244 * io/lstat.c: Likewise.
11245 * io/lstat64.c: Likewise.
11246 * io/mknod.c: Likewise.
11247 * io/mknodat.c: Likewise.
11248 * io/stat.c: Likewise.
11249 * io/stat64.c: Likewise.
11250 * libio/stdio.c: Likewise.
11251 * nscd/Makefile: Likewise.
11252 * stdlib/Makefile: Likewise.
11253 * stdlib/atexit.c: Likewise.
11254 * sysdeps/generic/ldsodefs.h: Likewise.
11255 * sysdeps/i386/dl-machine.h: Likewise.
11256 * sysdeps/i386/sysdep.h: Likewise.
11257 * sysdeps/i386/i686/memcmp.S: Likewise.
11258 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11259 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11260 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11262 * Makerules: USE_TLS support is now default.
11263 * tls.make.c: Likewise.
11264 * csu/Versions: Likewise.
11265 * csu/libc-start.c: Likewise.
11266 * csu/libc-tls.c: Likewise.
11267 * csu/version.c: Likewise.
11268 * dlfcn/dlinfo.c: Likewise.
11269 * elf/dl-addr.c: Likewise.
11270 * elf/dl-cache.c: Likewise.
11271 * elf/dl-close.c: Likewise.
11272 * elf/dl-iteratephdr.c: Likewise.
11273 * elf/dl-load.c: Likewise.
11274 * elf/dl-lookup.c: Likewise.
11275 * elf/dl-object.c: Likewise.
11276 * elf/dl-open.c: Likewise.
11277 * elf/dl-reloc.c: Likewise.
11278 * elf/dl-support.c: Likewise.
11279 * elf/dl-sym.c: Likewise.
11280 * elf/dl-sysdep.c: Likewise.
11281 * elf/dl-tls.c: Likewise.
11282 * elf/ldconfig.c: Likewise.
11283 * elf/rtld.c: Likewise.
11284 * elf/tst-tls-dlinfo.c: Likewise.
11285 * elf/tst-tls1.c: Likewise.
11286 * elf/tst-tls10.h: Likewise.
11287 * elf/tst-tls14.c: Likewise.
11288 * elf/tst-tls2.c: Likewise.
11289 * elf/tst-tls3.c: Likewise.
11290 * elf/tst-tls4.c: Likewise.
11291 * elf/tst-tls5.c: Likewise.
11292 * elf/tst-tls6.c: Likewise.
11293 * elf/tst-tls7.c: Likewise.
11294 * elf/tst-tls8.c: Likewise.
11295 * elf/tst-tls9.c: Likewise.
11296 * elf/tst-tlsmod1.c: Likewise.
11297 * elf/tst-tlsmod13.c: Likewise.
11298 * elf/tst-tlsmod13a.c: Likewise.
11299 * elf/tst-tlsmod14a.c: Likewise.
11300 * elf/tst-tlsmod2.c: Likewise.
11301 * elf/tst-tlsmod3.c: Likewise.
11302 * elf/tst-tlsmod4.c: Likewise.
11303 * elf/tst-tlsmod5.c: Likewise.
11304 * elf/tst-tlsmod6.c: Likewise.
11305 * include/errno.h: Likewise.
11306 * include/link.h: Likewise.
11307 * include/tls.h: Likewise.
11308 * locale/global-locale.c: Likewise.
11309 * locale/localeinfo.h: Likewise.
11310 * malloc/arena.c: Likewise.
11311 * malloc/hooks.c: Likewise.
11312 * malloc/malloc.c: Likewise.
11313 * resolv/Versions: Likewise.
11314 * sysdeps/alpha/dl-machine.h: Likewise.
11315 * sysdeps/alpha/libc-tls.c: Likewise.
11316 * sysdeps/generic/ldsodefs.h: Likewise.
11317 * sysdeps/generic/tls.h: Likewise.
11318 * sysdeps/i386/dl-machine.h: Likewise.
11319 * sysdeps/ia64/dl-machine.h: Likewise.
11320 * sysdeps/ia64/libc-tls.c: Likewise.
11321 * sysdeps/mach/hurd/fork.c: Likewise.
11322 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11323 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11324 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11325 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11326 * sysdeps/s390/libc-tls.c: Likewise.
11327 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11328 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11329 * sysdeps/sh/dl-machine.h: Likewise.
11330 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11331 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11332 * sysdeps/x86_64/dl-machine.h: Likewise.
11334 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11335 split out locking and parameter checking.
11336 (_dl_close): Call _dl_close_worker after locking and checking.
11337 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11339 * elf/Makefile: Add rules to build and run tst-thrlock.
11340 * elf/tst-thrlock.c: New file.
11343 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11347 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11348 we are sure we do not need it anymore for _dl_close. Also move
11349 the asserts inside the lock region.
11350 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11352 2006-10-27 Jakub Jelinek <jakub@redhat.com>
11354 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11356 (_dl_lookup_symbol_x): Adjust caller.
11358 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11360 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11362 * elf/dl-libc.c: Revert l_scope name changes.
11363 * elf/dl-load.c: Likewise.
11364 * elf/dl-object.c: Likewise.
11365 * elf/rtld.c: Likewise.
11366 * elf/dl-close.c (_dl_close): Likewise.
11367 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11368 always use __rtld_mrlock_{change,done}. Always free old scope list
11369 here if not l_scope_mem.
11370 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11371 change. Never free scope list here. Just __rtld_mrlock_lock before
11372 the lookup and __rtld_mrlock_unlock it after the lookup.
11373 * elf/dl-sym.c: Likewise.
11374 * include/link.h (struct r_scoperec): Remove.
11375 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11376 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11378 2006-10-25 Ulrich Drepper <drepper@redhat.com>
11380 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11382 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11384 * configure.in: Disable building profile libraries by default.
11386 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11388 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11389 as signed longs, check for x_base + pos overflow.
11390 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11391 * sunrpc/tst-xdrmem2.c: New test.
11393 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11395 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11396 _dl_lookup_symbol_x code.
11398 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11400 * elf/dl-runtime.c: Include sysdep-cancel.h.
11401 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11402 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
11403 instead of catomic_* macros.
11404 * elf/dl-sym.c: Include sysdep-cancel.h.
11405 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11406 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11407 * elf/dl-close.c: Include sysdep-cancel.h.
11408 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11409 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11410 * elf/dl-open.c: Include sysdep-cancel.h.
11411 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11412 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11414 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11417 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11418 fastbin rather than end of fastbin array.
11420 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11422 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11424 * sysdeps/x86_64/bits/atomic.h
11425 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11426 (catomic_decrement): Use correct body macro.
11428 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11430 * include/atomic.h: Add a unique prefix to all local variables
11432 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11434 2006-10-16 Ulrich Drepper <drepper@redhat.com>
11437 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11440 2006-10-14 Ulrich Drepper <drepper@redhat.com>
11442 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11444 2006-10-13 Ulrich Drepper <drepper@redhat.com>
11447 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11448 determine highest fast bin to consolidate, always look into all of
11450 (do_check_malloc_state): Only require for empty bins for large
11451 sizes in main arena.
11453 * libio/stdio.h: Add more __wur attributes.
11455 * elf/dl-minimal.c (realloc): Optimize last patch.
11457 2006-10-12 Richard Sandiford <richard@codesourcery.com>
11460 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11461 and use memcpy() if it does.
11463 2006-11-12 Andreas Jaeger <aj@suse.de>
11466 * manual/search.texi (Hash Search Function): Clarify.
11467 (Array Search Function): Clarify.
11469 2006-11-12 Joseph Myers <joseph@codesourcery.com>
11472 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11474 * math/atest-exp2.c (read_mpn_hex): Likewise.
11475 * math/atest-sincos.c (main): Likewise.
11477 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11479 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11480 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11481 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11483 * Versions.def: Add GLIBC_2.6 for libc.
11485 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11487 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11489 2006-10-11 Jakub Jelinek <jakub@redhat.com>
11491 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11493 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11495 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11496 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11498 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11500 * include/atomic.c: Define catomic_* operations.
11501 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
11502 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11503 * malloc/memusage.c: Likewise.
11504 * gmon/mcount.c: Likewise.
11505 * elf/dl-close.c: Likewise.
11506 * elf/dl-open.c: Likewise.
11507 * elf/dl-profile.c: Likewise.
11508 * elf/dl-sym.c: Likewise.
11509 * elf/dl-runtime.c: Likewise.
11510 * elf/dl-fptr.c: Likewise.
11511 * resolv/res_libc.c: Likewise.
11513 2006-10-10 Ulrich Drepper <drepper@redhat.com>
11515 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11516 components which lack them.
11518 * nis/nis_subr.c (nis_getnames): Make sure that we always return
11519 at least one entry consisting of the parameter concatenated with
11522 2006-10-10 Roland McGrath <roland@frob.com>
11524 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11525 * sysdeps/mach/hurd/futimes.c: Likewise.
11526 * sysdeps/mach/hurd/lutimes.c: Likewise.
11528 2006-10-09 Ulrich Drepper <drepper@redhat.com>
11529 Jakub Jelinek <jakub@redhat.com>
11531 Implement reference counting of scope records.
11532 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11533 from the list in objects which remain. Always allocate new scope
11535 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11536 don't resize, allocate a new one.
11537 * elf/dl-runtime.c: Update reference counters before using a scope
11539 * elf/dl-sym.c: Likewise.
11540 * elf/dl-libc.c: Adjust for l_scope name change.
11541 * elf/dl-load.c: Likewise.
11542 * elf/dl-object.c: Likewise.
11543 * elf/rtld.c: Likewise.
11544 * include/link.h: Include <rtld-lowlevel.h>. Define struct
11545 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
11546 Add l_scoperec_lock.
11547 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11548 * sysdeps/generic/rtld-lowlevel.h: New file.
11550 * include/atomic.h: Rename atomic_and to atomic_and_val and
11551 atomic_or to atomic_or_val. Define new macros atomic_and and
11552 atomic_or which do not return values.
11553 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11555 * sysdeps/i386/i486/bits/atomic.h: Likewise.
11557 * po/sv.po: Update from translation team.
11559 2006-10-07 Ulrich Drepper <drepper@redhat.com>
11561 * Versions.def: Add GLIBC_2.6 to libpthread.
11563 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11564 (versioned_symbol): Likewise.
11565 (compat_symbol): Likewise.
11567 * po/tr.po: Update from translation team.
11569 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11571 * nis/Banner: Removed. It's been integral part forever and the
11572 author info is incomplete anyway.
11573 * libio/Banner: Likewise.
11575 * nis/nis_table.c (nis_list): If __follow_path fails in the new
11576 code, make sure the nis_freeresult call doesn't crash and that the
11577 result is reported correctly.
11579 2006-09-27 Jakub Jelinek <jakub@redhat.com>
11581 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11582 when callback is NULL.
11584 * nis/Versions (libnss_nisplus): Add
11585 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11586 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11587 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11588 _nss_create_tablename): Rename to...
11589 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11590 ... these. No longer static.
11591 (internal_setgrent): Adjust users.
11592 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11593 Don't use locking around _nss_grp_create_tablename call.
11594 * nis/nss_nisplus/nisplus-initgroups.c: New file.
11596 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11598 * version.h (VERSION): Bump to 2.5.90 for new development tree.
11600 2006-10-06 Andreas Jaeger <aj@suse.de>
11602 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11604 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11606 * po/pl.po: Update from translation team.
11608 * nscd/nscd.c (main): Fix typo in message.
11609 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11611 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11614 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11615 errno.h, signal.h, unistd.h and sysdep-cancel.h.
11616 (__sigprocmask): Define.
11618 2006-10-02 Ulrich Drepper <drepper@redhat.com>
11620 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11623 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11625 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11626 in oldtotal and newtotal calculation.
11627 * nscd/nscd-client.h (struct mapped_database): Add datasize
11629 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11630 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11632 (__nscd_cache_search): Add checks to make sure we never reference
11633 data beyond the current mapping.
11635 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11637 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11638 variables const to avoid compiler warnings.
11640 * io/fts.c (fts_close): Remove redundant checks.
11641 (fts_build): Likewise.
11642 (fts_palloc): Likewise.
11644 * manual/message.texi (Advanced gettext functions,
11645 Using gettextized software): Fix typos.
11647 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11649 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11650 explain why there are no leaks.
11652 2006-09-29 Ulrich Drepper <drepper@redhat.com>
11654 * libio/wmemstream.c: Include <wchar.h>.
11655 * libio/bug-wmemstream1.c: Likewise.
11656 * libio/tst-wmemstream1.c: Likewise.
11657 * libio/tst-wmemstream2.c: Likewise.
11659 * version.h (RELEASE): Bump to 2.5.
11660 * README: Regenerated.
11662 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11665 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11666 found no group members.
11667 Patch by Petr Baudis.
11669 2006-09-29 Jakub Jelinek <jakub@redhat.com>
11671 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11672 assert bootstrap_map.l_tls_modid is zero.
11673 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11676 2006-09-27 Ulrich Drepper <drepper@redhat.com>
11678 * libio/stdio.h: Move open_wmemstream prototype to ...
11679 * wcsmbs/wchar.h: ... here.
11681 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11684 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11685 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11686 __{,l}chown to handle the rest.
11687 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11688 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11689 __{,l}chown to handle the rest.
11690 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11692 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11693 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11696 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11697 time, rather allocate increasingly bigger arrays of pointers, if
11698 possible with alloca, if too large with malloc.
11700 2006-09-24 Jakub Jelinek <jakub@redhat.com>
11702 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11704 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11706 2006-09-24 Ulrich Drepper <drepper@redhat.com>
11708 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11710 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11711 IFA_F_HOMEADDRESS flag for interfaces.
11712 * include/ifaddrs.h (struct in6addrinfo): Define
11715 2006-09-21 Jakub Jelinek <jakub@redhat.com>
11718 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11719 PTR_DEMANGLE3): Define.
11720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11721 PTR_DEMANGLE3): Likewise.
11722 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11723 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11725 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11727 2006-09-20 Jakub Jelinek <jakub@redhat.com>
11729 * po/libc.pot: Regenerated.
11730 * po/be.po: Updated.
11731 * po/ca.po: Likewise.
11732 * po/cs.po: Likewise.
11733 * po/da.po: Likewise.
11734 * po/de.po: Likewise.
11735 * po/el.po: Likewise.
11736 * po/en_GB.po: Likewise.
11737 * po/es.po: Likewise.
11738 * po/fi.po: Likewise.
11739 * po/fr.po: Likewise.
11740 * po/gl.po: Likewise.
11741 * po/hr.po: Likewise.
11742 * po/hu.po: Likewise.
11743 * po/ja.po: Likewise.
11744 * po/ko.po: Likewise.
11745 * po/nb.po: Likewise.
11746 * po/nl.po: Likewise.
11747 * po/pl.po: Likewise.
11748 * po/pt_BR.po: Likewise.
11749 * po/ru.po: Likewise.
11750 * po/rw.po: Likewise.
11751 * po/sk.po: Likewise.
11752 * po/sv.po: Likewise.
11753 * po/tr.po: Likewise.
11754 * po/zh_CN.po: Likewise.
11755 * po/zh_TW.po: Likewise.
11758 * iconv/iconv_prog.c (main): Fix spelling in error message.
11759 * iconv/iconvconfig.c (main): Likewise.
11760 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11761 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11762 * locale/programs/localedef.c (main): Likewise.
11763 * locale/programs/repertoire.c (repertoire_read): Likewise.
11764 * timezone/zdump.c (main): Likewise.
11765 * nscd/connections.c (handle_request): Fix spelling in log message.
11766 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11768 2006-09-20 Ulrich Drepper <drepper@redhat.com>
11770 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11773 2006-09-20 Andreas Jaeger <aj@suse.de>
11775 * math/libm-test.inc (lrint_test_upward): Fix typo.
11777 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11780 * math/libm-test.inc (lrint_test_tonearest): New function.
11781 (lrint_test_towardzero): New function.
11782 (lrint_test_downward): New function.
11783 (lrint_test_upward): New function.
11784 (main): Run these new tests.
11785 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11786 of values near to 0.
11787 (two52): Use double not long double.
11788 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11789 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11790 (two23): Use float not double.
11791 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11792 (two23): Use float not double.
11793 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11794 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11795 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11796 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11798 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11800 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11801 Cast sp to unsigned long to avoid compiler warning.
11802 Use __makecontext_ret function instead of a trampoline on the stack.
11803 (__makecontext_ret): New function.
11804 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11806 2006-09-19 Jakub Jelinek <jakub@redhat.com>
11808 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11809 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11812 2006-09-19 Ulrich Drepper <drepper@redhat.com>
11814 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11815 sure no reference to the unloaded map's search list remains in the
11816 dependency's scope.
11818 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11820 * elf/Makefile: Add rules to build and run unload7 test.
11821 * elf/unload7.c: New test.
11822 * elf/unload7mod1.c: New file.
11823 * elf/unload7mod2.c: New file.
11825 2006-09-18 Jakub Jelinek <jakub@redhat.com>
11827 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11828 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11829 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11830 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11831 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11832 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11833 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11834 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11835 PTRACE_GETEVENTMSG): Likewise.
11836 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11839 2006-09-17 Mike Frysinger <vapier@gentoo.org>
11841 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11842 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11843 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11844 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11846 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11848 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11849 write '\0' to the fd.
11850 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11851 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11852 Change regs to unsigned long pointer from unsigned int, fix fscr
11855 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11857 * io/Makefile (CFLAGS-fstatat.c): Set.
11858 (CFLAGS-fstatat64.c): Likewise.
11859 (CFLAGS-mknodat.c): Likewise.
11861 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11862 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11863 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11864 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11866 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11867 Steven Munroe <sjmunroe@us.ibm.com>
11869 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11870 names to the beginning. Rename "cell" to "cellbe".
11871 (_dl_powerpc_platforms): New.
11872 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11873 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11874 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11875 (_DL_HWCAP_PLATFORM): Define to new mask.
11876 (_dl_platform_string, _dl_string_platform): New functions.
11877 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11878 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11880 2006-09-12 Jakub Jelinek <jakub@redhat.com>
11883 * README.libm: Fix a thinko in sqrt algorithm description.
11886 * manual/string.texi (argz_delete): Fix prototype.
11887 Patch by <alpt@freaknet.org>.
11889 2006-08-26 Joseph Myers <joseph@codesourcery.com>
11892 * io/test-lfs.c (do_prepare): Give name_len type size_t.
11893 * io/tst-fcntl.c (do_prepare): Likewise.
11894 * posix/tst-exec.c (do_prepare): Likewise.
11895 * posix/tst-preadwrite.c (do_prepare): Likewise.
11896 * posix/tst-spawn.c (do_prepare): Likewise.
11897 * posix/tst-truncate.c (do_prepare): Likewise.
11898 * rt/tst-aio.c (do_prepare): Likewise.
11899 * rt/tst-aio64.c (do_prepare): Likewise.
11900 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11903 2006-09-09 Ulrich Drepper <drepper@redhat.com>
11906 * time/mktime.c (guess_time_tm): Fix overflow detection.
11907 * time/Makefile (tests): Add bug-mktime1.
11908 * time/bug-mktime1.c: New file.
11911 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11912 (mremap): Likewise.
11914 2006-09-07 Jakub Jelinek <jakub@redhat.com>
11917 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11918 Ensure relocation doesn't clobber any bits outside of the
11919 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11920 R_SPARC_HI22 and R_SPARC_H44.
11923 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11924 (long) (MINSIZE + nb - old_size) is positive.
11926 * malloc/arena.c (grow_heap): When growing bail even if new_size
11930 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11933 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11935 * posix/regex_internal.c (re_string_reconstruct): Handle
11936 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11937 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11938 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11939 re_string_context_at.
11940 * posix/Makefile: Add rules to build and run bug-regex26 test.
11941 * posix/bug-regex26.c: New test.
11943 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11944 rather than col_sym_free. Move seqp declaration earlier.
11946 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11948 2006-09-05 Jakub Jelinek <jakub@redhat.com>
11950 * nscd/initgrcache.c (addinitgroupsX): Move any_success
11951 decl before first goto out.
11953 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11955 * Makerules (shlib.lds): If have-hash-style, put .hash section
11956 at the end of the RO segment.
11958 2006-09-04 Ulrich Drepper <drepper@redhat.com>
11960 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11961 style hash table format is used.
11963 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11965 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11966 randomization rather than before.
11967 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11969 2006-08-31 Jakub Jelinek <jakub@redhat.com>
11971 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11973 * malloc/malloc.c (_int_malloc): Use full list insert and not
11974 shortcut which assumes the list is empty for large requests
11977 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11979 2006-08-30 Jakub Jelinek <jakub@redhat.com>
11981 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11982 and offout arguments to the prototype.
11983 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11984 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11985 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11986 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11987 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11988 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11989 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11990 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11992 2006-08-28 Ulrich Drepper <drepper@redhat.com>
11994 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11996 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11999 2006-08-28 Jakub Jelinek <jakub@redhat.com>
12001 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12002 only if herrno is NETDB_INTERNAL. Handle errors other than
12003 ERANGE outside of the loops, handle TRY_AGAIN.
12005 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12006 if other's ctype category was missing.
12007 * locale/programs/ld-collate.c (collate_read): Return if
12008 copy_locale's collate category is missing.
12010 2006-08-27 Ulrich Drepper <drepper@redhat.com>
12013 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12014 arenas if allocation failed.
12015 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12017 2006-08-26 Ulrich Drepper <drepper@redhat.com>
12019 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12021 (malloc_state): Reduce bins size by 2.
12022 (_int_malloc): Fix test for large enough buffer for early termination.
12023 When no unsorted block matches perfectly and an exiting block has
12024 to be split, use full list insert and not shortcut which assumes
12027 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12030 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12032 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12035 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12036 symbol require exact match (these are PLTs).
12037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12038 (_dl_ppc64_addr_sym_match): Likewise.
12041 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12042 If symbol has a value use it.
12043 * elf/tst-dladdr1.c: New file.
12044 * elf/Makefile: Add rules to build and run tst-addr1.
12046 2006-08-24 Jakub Jelinek <jakub@redhat.com>
12048 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12049 keeps failing and heap growth or new heap creation isn't
12051 * malloc/tst-malloc.c (main): Add new tests.
12053 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12056 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12057 as in the x86-64 code to use bswap.
12059 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12062 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12064 * posix/bits/unistd.h: Likewise.
12066 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12069 * string/strchr.c: Add cast to avoid warning.
12071 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12073 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12074 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12075 limit is needed to avoid the exploding of the address space
12076 requirement for secondary heaps.
12077 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12078 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12080 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12083 * Makerules (depfiles): Handle extra-test-objs the same as
12085 (common-mostlyclean): Likewise.
12086 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12088 * elf/Makefile (extra-objs): Likewise.
12089 * stdlib/Makefile (extra-objs): Likewise.
12091 2006-08-14 Eric Blake <ebb9@byu.net>
12094 * misc/error.h: Assume C89 or better.
12095 * misc/error.c: Likewise.
12097 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12100 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12101 __ASSUME_ATFCTS is defined.
12103 2006-08-19 Ulrich Drepper <drepper@redhat.com>
12105 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12106 to sort in each call.
12108 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12109 is empty simply return and use next service.
12110 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12112 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12113 tells us when not finding a charmap file is an error.
12114 * locale/programs/charmap.h: Adjust charmap_read prototype.
12115 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12116 cannot find a charmap.
12117 * locale/programs/localedef.c (main): Adjust charmap_read call.
12119 2006-08-15 Jakub Jelinek <jakub@redhat.com>
12121 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12122 sysdeps/posix/pause.c implementation instead.
12124 2006-08-09 Jakub Jelinek <jakub@redhat.com>
12126 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12129 2006-08-13 Andreas Schwab <schwab@suse.de>
12131 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12132 Don't clobber caller's LRSAVE.
12133 (_dl_prof_resolve): Likewise.
12135 2006-08-14 Ulrich Drepper <drepper@redhat.com>
12138 * libio/memstream.c (open_memstream): Allocate initial buffer with
12140 * libio/wmemstream.c (open_wmemstream): Likewise.
12141 * libio/strops.c: Pretty printing.
12142 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12143 (enlarge_userbuf): New function.
12144 (_IO_str_seekoff): Call it if seek position is larger than current
12146 * libio/wstrops.c: Likewise.
12147 * libio/vasprintf.c: Add comment as to why we do not have to use
12148 calloc instead of malloc to allocate initial buffer.
12149 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12150 * libio/bug-memstream1.c: New file.
12151 * libio/bug-wmemstream1.c: New file.
12153 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12155 * libio/wstrops.c: Remove dead macro definitions and comments.
12156 * libio/strops.c: Likewise.
12159 * login/utmpname.c (__utmpname): Remove unnecessary test.
12161 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12164 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12167 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12170 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12172 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12173 setting of CPU clocks.
12175 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12178 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12179 since C99 requires the result to promote to 'int' when uint_least8_t
12180 and uint_least16_t promote to 'int'.
12182 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12185 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12186 lenght of one output field, correct bitmask creation.
12187 * locale/programs/ld-time.c: Add alignment.
12190 * misc/error.c: Add space between program name and message if file
12193 2006-08-03 Eric Blake <ebb9@byu.net>
12196 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12198 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12200 * malloc/memusagestat.c: Silence warnings.
12202 * malloc/malloc.c: Dynamically size mmap treshold if the program
12203 frees mmaped blocks.
12204 Patch by Valerie Henson and Arjan van de Ven.
12206 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12208 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12211 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12212 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12213 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12214 Only provide var definitions in strtol_l (or for *ull*
12217 * stdio-common/bug16.c (tests): New array.
12218 (do_tests): Allow the first hexadecimal digit
12219 to be 1, 2, 4 or 8. Do 3 additional tests.
12221 * sysdeps/s390/fpu/libm-test-ulps: Update.
12223 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12224 fchownat syscall if available.
12225 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12226 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12227 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12229 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12231 * nis/nis_xdr.c: Avoid some function calls.
12233 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12234 Ulrich Drepper <drepper@redhat.com>
12236 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12237 short cut if only one name component is stripped away.
12239 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12241 * nis/nis_call.c: Minor cleanups throughout.
12242 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12243 (first_shoot): Add search_parent_first parameter. Only if it is set
12244 search parent server first.
12245 If directory for table found through cold start cache is not the same
12246 as referenced in the cache, don't use it.
12247 (__nisfind_server): Take additional parameter. Pass it on to
12249 (__prepare_niscall): Adjust __nisfind_server call.
12250 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12251 * nis/nis_table.c: Adjust __nisfind_server call.
12252 * nis/nis_lookup.c: Likewise.
12253 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12255 2006-08-03 Ulrich Drepper <drepper@redhat.com>
12258 * math/s_cacosh.c: Return values from positive branch.
12259 * math/s_cacoshf.c: Likewise.
12260 * math/s_cacoshl.c: Likewise.
12263 * sysvipc/sys/msg.h: Change return value to ssize_t.
12264 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12265 * sysvipc/msgrcv.c: Likewise.
12266 * include/sys/msg.h: Likewise.
12268 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12269 test introduced in patch for bz #661.
12270 (getgrouplist): Simplify code a bit. Don't allocate one additional
12271 element for NEWGROUPS.
12274 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12275 'f', use '1' as leading digit not '\1'.
12276 * stdio-common/Makefile (tests): Add bug16.
12277 * stdio-common/bug16.c: New file.
12280 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12281 and don't try to open it. The patch introducing the macro
12282 contained a bug and used the same file name as the new file
12283 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12284 this out completely.
12287 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12288 Patch by Jerry James <Jerry.James@usu.edu>.
12290 * rt/Makefile (tests): Add tst-clock2.
12291 * rt/tst-clock2.c: New file.
12294 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12295 function and its parameters and pass it to new thread.
12296 (__gai_notify): Add support for alternative waiting for completion.
12297 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12298 waiting for completion.
12299 * resolv/getaddrinfo_a.c: Likewise.
12300 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12301 waiting for completion is used.
12302 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12303 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12304 * resolv/gai_error.c: Likewise.
12305 * resolv/gai_sigqueue.c: Likewise.
12307 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12309 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12310 errno to EBADF and return MACH_PORT_NULL.
12312 2006-06-23 Joseph Myers <joseph@codesourcery.com>
12315 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12317 2006-08-02 Ulrich Drepper <drepper@redhat.com>
12319 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12320 walk them instead of the symbol table.
12322 2006-08-01 Ulrich Drepper <drepper@redhat.com>
12325 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12326 status of NSS calls, not the number of returned entries.
12328 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12329 request_key, keyctl.
12331 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12333 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12335 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12337 * elf/tst-auditmod1.c: Fix typo in #error.
12339 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12341 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12343 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12345 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12347 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12348 that the directory is empty even on non-POSIX filesystems.
12350 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12352 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12354 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12355 the backend NSS module. If backend setgrent call failed, don't have
12356 internal_setgrent fail. Just remember this until it is needed.
12357 * nis/nss_compat/compat-pwd.c: Likewise.
12358 * nis/nss_compat/compat-spwd.c: Likewise.
12360 2006-07-30 Roland McGrath <roland@redhat.com>
12362 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12363 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12364 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12365 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12367 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12368 (nanosleep_not_cancel): New macro.
12369 (sigsuspend_not_cancel): new macro.
12370 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12371 (do_sigsuspend): Define as inline.
12372 (__sigsuspend): Always use do_sigsuspend.
12373 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12374 * include/signal.h: Declare __sigsuspend_nocancel.
12375 * sysdeps/posix/pause.c
12376 [! NO_CANCELLATION] (__pause_nocancel): New function.
12378 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12379 * include/time.h (__nanosleep_nocancel): Likewise.
12381 2006-07-30 Ulrich Drepper <drepper@redhat.com>
12383 * locale/programs/localedef.c (add_to_readlist): Rename local
12384 variables to avoid confusion.
12386 * locale/programs/charmap.c (charmap_read): Emit error message if
12387 charmap couldn't be found or read.
12389 2006-07-28 Ulrich Drepper <drepper@redhat.com>
12391 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12392 __ASSUME_FUTEX_LOCK_PI.
12393 * include/time.h: Declare __nanosleep_nocancel.
12394 * include/unistd.h: Declare __pause_nocancel.
12396 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12397 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12398 get the __stack_chk_fail_local definition when it's needed.
12400 2006-07-26 Ulrich Drepper <drepper@redhat.com>
12402 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12403 * dlfcn/bug-atexit3.c: New file.
12404 * dlfcn/bug-atexit3-lib.cc: New file.
12406 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12407 used when the namespace is not the base namespace.
12409 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
12411 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12412 (__new_exitfn): Bump it in every successful call.
12413 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12414 more exit handlers, call them right away.
12415 * stdlib/exit.h: Declare __new_exitfn_called.
12417 2006-07-25 Ulrich Drepper <drepper@redhat.com>
12419 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12420 calling registered handler.
12422 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12423 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12424 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12425 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12426 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12427 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12428 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12429 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12431 2006-07-10 Ulrich Drepper <drepper@redhat.com>
12433 * elf/dl-lookup.c (dl_new_hash): New functions.
12434 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12435 value here. Compute new-style hash value. Pass new hash value
12436 and reference to variable with the old value to do_lookup_x.
12437 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12438 old-style hash table.
12439 (_dl_debug_bindings): Pass new hash value and reference to variable
12440 with the old value to do_lookup_x.
12441 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12442 new-style hash value and change old-style hash value parameter to
12443 be a reference. Reoganize functions to determine whether
12444 new-style hash table is available. Only fall back on old-style
12445 table. If old-style hash value is needed, compute it here.
12446 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12448 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12449 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
12450 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12451 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12452 * Makeconfig: If linker supports --hash-style option add it to all
12453 linker command lines to build DSOs.
12454 * config.make.in: Define have-hash-style.
12455 * configure.in: Test whether linker supports --hash-style option.
12457 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12458 * sysdeps/generic/ldsodefs.h: Adjust prototype.
12460 2006-06-27 Ulrich Drepper <drepper@redhat.com>
12462 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12465 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12466 RPATH of main map twice.
12468 2006-06-22 Ulrich Drepper <drepper@redhat.com>
12470 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12471 look further, return original strings.
12472 (_nl_find_msg): Do not return found translation if the conversion
12473 failed. Either signal the string is unusable or that something went
12474 wrong and the original should be used.
12476 2006-06-21 Ulrich Drepper <drepper@redhat.com>
12478 * string/_strerror.c (__strerror_r): Add __builtin_expect.
12480 2006-06-14 Jakub Jelinek <jakub@redhat.com>
12483 * misc/insremque.c (insque): Handle prev == NULL.
12484 * misc/Makefile (tests): Add tst-insremque.
12485 * misc/tst-insremque.c: New test.
12487 2006-06-17 Ulrich Drepper <drepper@redhat.com>
12490 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12491 conflict with DL_DST_REQUIRED.
12493 2006-06-16 Ulrich Drepper <drepper@redhat.com>
12495 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12496 match what Solaris does.
12498 2006-06-04 Ulrich Drepper <drepper@redhat.com>
12500 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12501 local_setegid instead of seteuid and setegid.
12502 * sysdeps/generic/local-setxid.h: New file.
12503 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12505 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12507 * string/Makefile (tests): Add bug-envz1.
12508 * string/bug-envz1.c: New file.
12510 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12512 * posix/regex_internal.c (re_string_skip_chars): If no character has
12513 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
12514 to the byte which couldn't be converted.
12515 (re_string_reconstruct): Don't clear valid_raw_len before calling
12516 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12517 tip_context using re_string_context_at.
12518 * posix/Makefile: Add rules to build and run bug-regex25 test.
12519 * posix/bug-regex25.c: New test.
12521 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
12524 * string/envz.c (envz_strip): Correct erroneously reversed src
12525 and dest parameters to memmove() invocation.
12527 2006-05-30 Jakub Jelinek <jakub@redhat.com>
12529 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12530 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12531 to make sure the database has been already invalidated.
12532 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
12533 after the cache has been invalidated. Use pthread_mutex_lock rather
12534 than pthread_mutex_trylock if fd != -1.
12535 * nscd/connections.c (invalidate_cache): Add fd argument, write
12536 response to fd if not calling prune_cache, pass fd to prune_cache.
12537 (handle_request): Adjust invalidate_cache caller.
12538 (nscd_run): Pass -1 as fd to prune_cache.
12540 2006-05-30 Ulrich Drepper <drepper@redhat.com>
12542 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12545 2006-05-29 Ulrich Drepper <drepper@redhat.com>
12547 * nscd/nscd.h (struct database_dyn): Add prunelock field.
12548 * nscd/cache.c (prune_cache): Take prunelock before starting the
12549 work. Just return in case it is already taken.
12550 * nscd/connections.c (dbs): Initialize .prunelock.
12552 2006-05-25 Ulrich Drepper <drepper@redhat.com>
12554 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12555 copying. No need to allocate new array for group members. Just
12556 move the pointers and update the size.
12558 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12559 Avoid memory leak in case realloc fails. Simplification for
12560 better code generation.
12562 Avoid deprecation warning because of libc_hidden_proto for
12563 inet6_option_alloc.
12564 * inet/inet6_option.c (option_alloc): Renamed from
12565 inet6_option_alloc. Made static.
12566 (inet6_option_alloc): Now a simple wrapper around option_alloc.
12567 (inet6_option_append): Call option_alloc.
12568 * include/netinet/in.h: Remove libc_hidden_proto for
12569 inet6_option_alloc.
12571 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12572 for cleanup when cb!=NULL [Coverity CID 233].
12574 2006-05-24 Ulrich Drepper <drepper@redhat.com>
12577 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12578 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12579 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12580 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12581 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12582 and inet6_rth_getaddr.
12583 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12585 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12586 Mark inet6_option_* interfaces as deprecated.
12587 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12588 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12589 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12590 inet6_rth_segments, and inet6_rth_getaddr.
12591 * inet/inet6_opt.c: New file.
12592 * inet/inet6_rth.c: New file.
12594 * inet/netinet/icmp6.h: Pretty printing.
12597 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12599 2006-05-23 Ulrich Drepper <drepper@redhat.com>
12601 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12602 doing it all here. When server does not know the answer do not
12603 fail immediate, try parent first.
12605 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12608 2006-05-20 Ulrich Drepper <drepper@redhat.com>
12610 * nis/nis_call.c (__prepare_niscall): New function. Split out
12612 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12614 (__follow_path): New function. Split out from nis_list.
12615 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12617 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12619 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12621 * nis/Versions: Export __prepare_niscall, __create_ib_request,
12622 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12623 from libnsl for version GLIBC_PRIVATE.
12624 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12625 Remove entry parameter from _nss_nisplus_parse_pwent and
12626 _nss_nisplus_parse_grent.
12627 * nis/nss_nisplus/nisplus-parser.c: Likewise.
12628 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12629 again. Rewrite getpwent handling to not use nis_first_entry and
12630 nis_next_entry. Roll out own niscall handling.
12631 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12633 * sunrpc/xdr_rec.c: Fix typo in comment.
12635 2006-05-19 Ulrich Drepper <drepper@redhat.com>
12637 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12640 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12641 to allocate memory for my_pollfd. Better initialization of
12642 cb_is_running. Use TEMP_FAILURE_RETRY.
12644 * malloc/memusage.sh (memusageso): Add quotes.
12645 (memusagestat): Likewise.
12646 * debug/xtrace.sh (pcprofileso): Likewise.
12647 (pcprofiledump): Likewise.
12648 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12650 * malloc/Makefile ($(objpfx)memusage): Likewise.
12652 * nis/nis_callback.c (__nis_create_callback): Calls to
12653 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12654 asprintf call fails.
12656 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12657 no uninitialized memory is passed to sendto.
12659 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12661 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12662 of snprintf+strdup. Handle OOM.
12663 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12664 cb->serv together. Remove now obsolete free calls.
12665 (__nis_destroy_callback): Remove now obsolete free call.
12667 2006-05-18 David Woodhouse <dwmw2@redhat.com>
12669 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12670 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12671 and ULA respectively). Set precedence for IPv4 address to 10 as
12672 defined in RFC3484 for preferring IPv6.
12673 * posix/gai.conf: Update to match the new default tables.
12675 2006-05-18 Jakub Jelinek <jakub@redhat.com>
12677 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12678 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12679 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12680 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12682 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12684 (init_nss_interface): Remove initialization of these variables.
12686 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12688 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12689 nis_free_directory forward to avoid duplication.
12691 2006-05-17 Ulrich Drepper <drepper@redhat.com>
12693 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12694 rec_dirsearch returning NULL.
12695 (first_shoot): Handle __nis_finddirectory returning NULL.
12696 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12698 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12699 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12701 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12703 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12706 2006-05-15 Ulrich Drepper <drepper@redhat.com>
12708 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12710 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12711 * nscd/nscd_getgr_r.c: Likewise.
12713 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12715 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12716 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12718 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12720 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12722 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12724 * include/rpc/auth.h: Mark xdr_des_block_internal and
12725 xdr_opaque_auth_internal as hidden.
12727 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12730 * include/rpc/xdr.h: Mark all _internal functions as hidden.
12732 * misc/getusershell.c (okshells): Don't use static initializers,
12735 * stdlib/fmtmsg.c (keywords): Change type of len element to
12736 uint32_t to not waste space on 64bit machines.
12738 * locale/setlocale.c: Change _nl_category_names into a string.
12739 Add new _nl_category_name_idxs. Change all users.
12740 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12741 Declare _nl_category_name_idxs.
12742 * locale/findlocale.c: Adjust for _nl_category_names change.
12743 * locale/loadlocale.c: Likewise.
12744 * locale/newlocale.c: Likewise.
12745 * intl/dcigettext.c: Likewise.
12747 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12748 (add_alias2): ...here. New function.
12749 (__gconv_read_conf): Simplify builtin alias handling.
12750 (builtin_aliases): Convert to string to avoid relocations.
12751 * iconv/gconv_builtin.h: Add comment about correct formatting.
12753 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12755 * resolv/res_debug.c (loc_ntoa): Make error const.
12757 2006-05-14 Andreas Schwab <schwab@suse.de>
12759 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12761 2006-05-12 Jakub Jelinek <jakub@redhat.com>
12763 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12764 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12765 sizeof (cpu_set_t).
12767 2006-05-11 Ulrich Drepper <drepper@redhat.com>
12769 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12771 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12773 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12774 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12776 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12777 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12779 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12780 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12783 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12784 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12787 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12788 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12790 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12791 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12793 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12794 * include/rpcsvc/nis_callback.h: New file.
12796 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12797 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12799 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12800 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12802 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12803 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12805 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12806 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12808 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12809 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12812 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12813 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12815 * nis/nis_error.c: Remove table of strings. Use position
12816 independent mechanism.
12817 * nis/nis_error.h: New file.
12819 2006-05-11 Jakub Jelinek <jakub@redhat.com>
12821 * locale/programs/ld-time.c (time_finish): If wide era name or
12822 format aren't provided, set both wname and wformat to L"".
12824 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12826 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12827 results if the call was succesful.
12829 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12831 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12834 2006-05-10 Jakub Jelinek <jakub@redhat.com>
12836 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12838 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12840 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12841 caller makes sure this is not the case.
12842 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
12844 2006-05-09 Ulrich Drepper <drepper@redhat.com>
12846 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12849 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12850 [Coverity CID 229, 230]
12852 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12854 (hol_help): Likewise. [Coverity CID 226, 227]
12856 * string/argz-replace.c (__argz_replace): Unconditionally call
12857 free on SRC. [Coverity CID 225]
12859 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12860 the return value of __nis_default_owner and __nis_default_group,
12861 it has been especially allocated. [Coverity CID 224]
12863 * nis/nis_defaults.c (searchXYX): New functions. Used by both
12864 searchgroup and searchowner. Significantly simplified.
12865 (__nis_default_owner): Remove duplication. Do not locally copy the
12866 string before duplicating it.
12867 (__nis_default_group): Likewise.
12869 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12870 we must clear the variable before calling __nisfind_server.
12872 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12873 nis_getnames. [Coverity CID 223]
12875 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12876 xmalloc to allocate local repertoire name. [Coverity CID 222]
12878 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12879 allocate memory for the input to add_bytes. [Coverity CID 221]
12881 * posix/wordexp.c (w_addword): Free word if realloc fails and it
12882 was allocated here. [Coverity CID 219, 220]
12884 * posix/getconf.c (print_all): Free confstr data after printing.
12887 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12888 list allocation fails. [Coverity CID 215]
12890 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12893 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12894 string is NULL. [Coverity CID 212]
12895 * argp/Makefile: Add rules to build and run bug-argp1.
12896 * argp/bug-argp1.c: New file.
12898 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12900 * stdlib/canonicalize.c (__realpath): Likewise.
12902 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12903 pointer. [Coverity CID 206]
12905 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12906 in statically linked code.
12907 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12908 statically built code, be prepared to have no link map.
12911 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12912 dgettext calls. [Coverity CID 204]
12914 * argp/argp-help.c (struct uparams): Remove valid member. Change
12916 (uparam_names): Reduce size. Avoid relative relocations.
12917 Moved to read-only segment.
12918 (fill_in_uparams): Update for new layout.
12920 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12921 assumed to always be != NULL. [Coverity CID 202]
12923 * argp/argp-help.c (hol_entry_help): Remove some dead code
12924 [Coverity CID 200].
12926 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12927 away a few more unconditional yperr2nss calls.
12928 (_nss_nis_getservbyname_r): Likewise.
12930 2006-05-06 Ulrich Drepper <drepper@redhat.com>
12932 * sysdeps/generic/ldsodefs.h: Remove support for non-core
12935 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12936 that unused memory passed to sendto is nevertheless initialized.
12939 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12940 possibly unaligned memory accesses.
12942 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12943 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12944 and __putlong respectively. Correct buffer overflow check for
12947 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12949 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12950 (send_dg): Rewrite error handling to be more compact and avoid
12951 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
12953 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12955 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12956 instead of ns_get16.
12957 (res_queriesmatch): Likewise. Minor optimization.
12960 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12961 __libc_res_nsend might reallocate the buffer for the answer. In
12962 this case we have to reload the HP pointer.
12964 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12966 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
12967 some branch prediction hints.
12969 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12970 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12971 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12972 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12973 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12974 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12975 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12976 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12978 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
12980 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12981 by a GOT relocation to make Scrt1.o position independent.
12982 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12984 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12985 six system call parameters.
12986 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12988 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12990 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12993 * sunrpc/svc_udp.c (BZERO): Remove definition.
12995 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12997 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
12998 (des_SPtrans): Use uint32_t type.
12999 (des_skb): Likewise.
13001 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13003 2006-05-05 Jakub Jelinek <jakub@redhat.com>
13006 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13009 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13011 * locale/programs/ld-address.c (address_finish): Fix one more
13012 place where the iso639 array might be accessed beyond the limits.
13014 2006-05-04 Ulrich Drepper <drepper@redhat.com>
13016 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13017 filling it for the first time.
13019 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13020 Adjust all callers.
13021 Free res object content before returning.
13023 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13025 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13028 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13029 cleanup for initial thread, just the free call on TVP.
13031 * nscd/gai.c (__getline): Define.
13034 See ChangeLog.16 for earlier changes.