1 2010-02-12 Luis Machado <luisgpm@br.ibm.com>
3 * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
4 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
5 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6 * sysdeps/powerpc/powerpc32/memset.S: Likewise.
7 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9 * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
11 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
12 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
16 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
17 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
18 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
19 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
20 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
21 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
23 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
24 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
25 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
26 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
27 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
28 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
30 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
32 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
34 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
36 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
38 2010-02-12 Alan Modra <amodra@gmail.com>
40 * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
41 Define and use for __powerpc64__ too.
42 [__powerpc__] (TLS_LD): Add r3 to clobbers.
43 [__powerpc__] (TLS_GD): Set asm output. Make __result r3 reg.
44 [__powerpc64__] (TLS_GD): Make __result r3 reg.
45 [__powerpc64__] (TLS_IE): Relax output constraint.
47 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
49 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
50 instructions cu21 and cu24. Add well-formedness checking
51 parameter and adjust the software implementation.
52 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
54 2010-02-10 Ulrich Drepper <drepper@redhat.com>
57 * io/ftw.c (ftw_startup): Close descriptor for initial directory
58 after changing back to it.
60 2010-02-05 David S. Miller <davem@davemloft.net>
62 * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
63 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
65 (elf_machine_lazy_rel): Likewise.
66 (sparc_fixup_plt): Pull out to...
67 * sysdeps/sparc/sparc32/dl-plt.h: ...here.
68 * sysdeps/sparc/sparc32/dl-irel.h: New file.
69 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
71 (elf_machine_lazy_rel): Likewise.
72 (sparc64_fixup_plt): Pull out to...
73 * sysdeps/sparc/sparc64/dl-plt.h: ...here.
74 * sysdeps/sparc/sparc64/dl-irel.h: New file.
76 2010-02-09 Maxim Kuvyrkov <maxim@codesourcery.com>
78 * elf/elf.h: Define m68k TLS relocations.
80 2010-02-10 Luis Machado <luisgpm@br.ibm.com>
82 * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
83 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
84 * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
85 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
86 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
87 64-bit power7 fpu path.
88 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
89 32-bit power7 fpu math.
91 2010-02-09 Ulrich Drepper <drepper@redhat.com>
93 * sysdeps/i386/rshift.S: More compact unwind information.
95 * sysdeps/i386/lshift.S: Fix unwind information.
97 2010-02-08 Luis Machado <luisgpm@br.ibm.com>
99 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
100 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
101 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
102 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
103 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
104 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
105 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
106 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
107 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
108 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
109 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
110 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
112 2010-02-08 Andreas Schwab <schwab@redhat.com>
114 * include/fenv.h: Add hidden proto for fegetenv.
115 * math/fegetenv.c: Add hidden alias.
116 * sysdeps/i386/fpu/fegetenv.c: Likewise.
117 * sysdeps/ia64/fpu/fegetenv.c: Likewise.
118 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
119 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
120 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
121 * sysdeps/x86_64/fpu/fegetenv.c: Likewise
122 * sysdeps/s390/fpu/fegetenv.c: Likewise. Remove unused headers.
124 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
127 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
130 2010-01-26 Andreas Schwab <schwab@redhat.com>
132 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
134 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
135 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
138 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
141 2010-02-03 Ulrich Drepper <drepper@redhat.com>
144 * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
145 S_IMMUTABLE. Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
146 MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
147 MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
148 MS_ACTIVE, and MS_NOUSER.
149 (MS_RMT_MASK): Update according to current kernels.
152 * misc/getusershell.c (initshells): Allocate one more byte in input
153 buffer so that fgets doesn't loop undefinitely.
155 2010-02-02 Ulrich Drepper <drepper@redhat.com>
157 * stdlib/setenv.c (__add_to_environ): Don't use alloca if
158 __libc_use_alloca tells us not to. Fix memory leak in an error
159 situation. Based partially on patch by Jim Meyering.
161 2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
163 * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
164 get_phys_pages, get_avphys_pages): Add weak aliases.
166 2010-01-25 Andreas Schwab <schwab@redhat.com>
168 * iconv/iconv_prog.c (write_output): Fix check for open failure.
170 2010-01-22 Ulrich Drepper <drepper@redhat.com>
173 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
174 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
176 2010-01-22 Jim Meyering <jim@meyering.net>
179 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
180 buffer length computation.
183 * posix/regexec.c (re_copy_regs): Don't leak when allocation
184 of the start buffer succeeds but allocation of the "end" one fails.
187 * posix/regexec.c (re_search_2_stub): Check for overflow
188 when adding the sizes of the two strings.
191 * posix/regexec.c (re_search_internal): Avoid overflow
192 in computing re_malloc buffer size.
195 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
196 in computing re_malloc buffer size.
199 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
203 * posix/regexec.c (re_search_2_stub): Use simpler method than
204 boolean for freeing internal storage.
206 2010-01-22 Ulrich Drepper <drepper@redhat.com>
208 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
211 2010-01-22 Jim Meyering <jim@meyering.net>
214 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
215 fits in wchar_t. Problem reported by Eric Blake.
218 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
219 and stores into set-but-not-used local, "q".
222 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
223 detection test. Patch by Paul Eggert.
226 * posix/regex_internal.c (re_string_realloc_buffers):
227 Detect and handle internal overflow. Patch by Paul Eggert
229 2010-01-20 Andreas Schwab <schwab@redhat.com>
231 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
232 (CHECK_SP): Fix check for alternate stack.
233 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
234 (CHECK_SP): Likewise.
236 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
238 * sysdeps/i386/i686/multiarch/memmove.S: Also check
239 bit_Fast_Rep_String when SHARED isn't defined.
241 2010-01-19 Ulrich Drepper <drepper@redhat.com>
244 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
246 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
248 * sysdeps/mach/hurd/bits/libc-lock.h
249 (__rtld_lock_recursive_t): New type.
250 (__rtld_lock_initialize): New macro.
252 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
254 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
255 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
259 2010-01-18 Andreas Schwab <schwab@redhat.com>
261 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
262 definitions of O_DSYNC and O_RSYNC.
264 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
267 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
270 2010-01-16 Jakub Jelinek <jakub@redhat.com>
272 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
274 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
275 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
277 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
279 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
280 math_opt_barrier and math_force_eval macros.
282 2010-01-15 Ulrich Drepper <drepper@redhat.com>
284 * posix/regcomp.c: Fix a few more cases of ignored return values.
285 * posix/regex_internal.c: Likewise.
286 * posix/regexec.c: Likewise.
288 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
289 used without _XOPEN_SOURCE. Don't base any decisions on this macro
290 if _XOPEN_SOURCE is not defined as well.
292 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
294 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
295 high gprs kernel facility.
296 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
297 Added high gprs check for DSOs.
298 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
301 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
303 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
305 * elf/dl-open.c (_dl_sysdep_start): Likewise..
306 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
307 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
308 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
311 2010-01-14 Ulrich Drepper <drepper@redhat.com>
314 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
316 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
319 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
323 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
324 re_node_set_insert failure; return REG_ESPACE.
325 Patch by Paul Eggert.
327 * bits/confname.h: Make pre-C99-safe.
329 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
331 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
332 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
333 files are found by GCC.
335 2010-01-14 Ulrich Drepper <drepper@redhat.com>
337 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
340 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
343 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
345 * Versions.def: Add GLIBC_2.12 for libpthread.
348 * malloc/malloc.c (malloc_info): Initialize malloc if not already
349 done. Handle empty bin lists.
351 * posix/unistd.h: Change getpagesize and getdtablesize declaration
352 visibility some more.
354 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
356 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
359 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
362 2010-01-13 Ulrich Drepper <drepper@redhat.com>
364 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
366 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
368 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
370 2010-01-13 Ulrich Drepper <drepper@redhat.com>
372 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
374 2010-01-12 Ulrich Drepper <drepper@redhat.com>
376 * conform/data/complex.h-data: Test for POSIX2008.
378 * conform/data/ctype.h-data: Fix POSIX testing.
380 * conform/data/dirent.h-data: ino_t only needed for XSI.
382 * grp/grp.h: Declare getgrent and endgrent for XPG7.
384 * conform/data/inttypes.h-data: Use same types as the headers.
386 * resolv/netdb.h: Don't define old resolver macros for XPG7.
388 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
390 * conform/conformtest.pl: Implement tag for allow-header.
391 Fix newline handling in allow-header implementation.
393 * conform/data/time.h-data: Use allow-header instead of duplicating
396 * conform/data/time.h-data: Allow sigevent tag.
398 * posix/sched.h: Define time_t and pid_t for XPG7.
400 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
402 * sysdeps/i386/i686/bcopy.S: New file.
404 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
406 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
408 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
409 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
410 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
412 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
414 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
415 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
416 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
417 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
418 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
419 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
420 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
421 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
422 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
423 * sysdeps/i386/i686/multiarch/bzero.S: New file.
424 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
425 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
426 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
427 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
428 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
429 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
430 * sysdeps/i386/i686/multiarch/memmove.S: New file.
431 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
432 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
433 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
434 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
435 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
436 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
437 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
438 * sysdeps/i386/i686/multiarch/memset.S: New file.
439 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
441 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
444 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
445 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
446 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
448 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
450 (__x86_64_data_cache_size): New.
451 (init_cacheinfo): Set __x86_64_data_cache_size.
453 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
454 on bit_Fast_Rep_String for Intel Core i7.
456 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
457 (index_Fast_Rep_String): Likewise.
458 (FEATURE_INDEX_1): Likewise.
459 (FEATURE_INDEX_MAX): Likewise.
460 (cpu_features): Add feature.
462 2010-01-12 Ulrich Drepper <drepper@redhat.com>
464 * conform/data/sys/select.h-data: Fix up for XPG7.
466 2010-01-12 Jakub Jelinek <jakub@redhat.com>
468 * posix/sys/wait.h: Don't define W* macros etc. if
469 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
471 2010-01-11 Ulrich Drepper <drepper@redhat.com>
473 * io/sys/stat.h: Declare fchmod for XPG7.
474 * conform/data/sys/stat.h-data: Fix up for XPG7.
476 * termios/termios.h: Define pid_t for XPG7.
478 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
479 * conform/data/tgmath.h-data: Likewise.
481 * conform/data/time.h-data: Fix POSIX tests.
483 * conform/data/wchar.h-data: Fix up XPG7 tests.
485 * include/features.h: Fix __USE_ISOC95 handling.
487 * conform/data/wordexp.h-data: Fix typo in last change.
489 * conform/data/unistd.h-data: Fix up older POSIX tests.
491 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
492 * posix/unistd.h: Likewise.
494 * posix/unistd.h: Include environments.h also for XPG6 and up.
495 Define intptr_t for XPG6 and up.
497 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
499 * conform/data/sys/types.h-data: Fix up for XPG7.
501 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
502 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
503 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
504 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
505 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
506 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
507 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
508 * sysdeps/unix/sysv/bits/stat.h: Likewise.
509 * sysdeps/mach/hurd/bits/stat.h: Likewise.
511 * bits/confname.h: Fix typo in last change.
513 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
515 2010-01-10 Ulrich Drepper <drepper@redhat.com>
517 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
518 and SA_RESETHAND now available in Base.
519 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
520 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
521 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
522 * conform/data/signal.h-data: Update for XPG7.
524 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
526 * string/strings.h: Don't declare obsolete functions for XPG7.
527 Declare ffs only for XSI.
528 * conform/data/strings.h-data: Update for XPG7.
530 2010-01-10 Jakub Jelinek <jakub@redhat.com>
533 * libio/stdio.h: Define va_list, off_t, and ssize_t.
535 * posix/glob.h: Define size_t.
537 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
539 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
541 2010-01-10 Ulrich Drepper <drepper@redhat.com>
543 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
546 * conform/data/stdio.h-data: Expect off_t and ssize_t.
548 2010-01-09 Ulrich Drepper <drepper@redhat.com>
550 * libio/stdio.h: Define va_list also for XPG7.
552 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
553 * conform/data/ctype.h-data: Likewise.
554 * conform/data/dirent.h-data: Likewise.
555 * conform/data/errno.h-data: Likewise.
556 * conform/data/fcntl.h-data: Likewise.
557 * conform/data/fmtmsg.h-data: Likewise.
558 * conform/data/fnmatch.h-data: Likewise.
559 * conform/data/ftw.h-data: Likewise.
560 * conform/data/glob.h-data: Likewise.
561 * conform/data/grp.h-data: Likewise.
562 * conform/data/iconv.h-data: Likewise.
563 * conform/data/langinfo.h-data: Likewise.
564 * conform/data/libgen.h-data: Likewise.
565 * conform/data/limits.h-data: Likewise.
566 * conform/data/locale.h-data: Likewise.
567 * conform/data/math.h-data: Likewise.
568 * conform/data/monetary.h-data: Likewise.
569 * conform/data/mqueue.h-data: Likewise.
570 * conform/data/ndbm.h-data: Likewise.
571 * conform/data/netdb.h-data: Likewise.
572 * conform/data/pthread.h-data: Likewise.
573 * conform/data/pwd.h-data: Likewise.
574 * conform/data/regex.h-data: Likewise.
575 * conform/data/sched.h-data: Likewise.
576 * conform/data/search.h-data: Likewise.
577 * conform/data/semaphore.h-data: Likewise.
578 * conform/data/setjmp.h-data: Likewise.
579 * conform/data/signal.h-data: Likewise.
580 * conform/data/spawn.h-data: Likewise.
581 * conform/data/stdio.h-data: Likewise.
582 * conform/data/stdlib.h-data: Likewise.
583 * conform/data/string.h-data: Likewise.
584 * conform/data/strings.h-data: Likewise.
585 * conform/data/sys/ipc.h-data: Likewise.
586 * conform/data/sys/msg.h-data: Likewise.
587 * conform/data/sys/resource.h-data: Likewise.
588 * conform/data/sys/sem.h-data: Likewise.
589 * conform/data/sys/shm.h-data: Likewise.
590 * conform/data/sys/socket.h-data: Likewise.
591 * conform/data/sys/stat.h-data: Likewise.
592 * conform/data/sys/time.h-data: Likewise.
593 * conform/data/sys/types.h-data: Likewise.
594 * conform/data/sys/uio.h-data: Likewise.
595 * conform/data/sys/wait.h-data: Likewise.
596 * conform/data/syslog.h-data: Likewise.
597 * conform/data/tar.h-data: Likewise.
598 * conform/data/termios.h-data: Likewise.
599 * conform/data/time.h-data: Likewise.
600 * conform/data/ulimit.h-data: Likewise.
601 * conform/data/unistd.h-data: Likewise.
602 * conform/data/utmpx.h-data: Likewise.
603 * conform/data/wchar.h-data: Likewise.
604 * conform/data/wctype.h-data: Likewise.
605 * conform/data/wordexp.h-data: Likewise.
607 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
608 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
609 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
610 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
611 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
612 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
613 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
614 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
615 * sysdeps/unix/sysv/bits/stat.h: Likewise.
616 * sysdeps/mach/hurd/bits/stat.h: Likewise.
618 * stdlib/stdlib.h: Define wait-related bits for XPG7.
619 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
620 Declare mkstemp and getsubopt for XPG7.
621 Declare posix_openpt for XPG6 XSI.
623 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
624 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
626 * string/string.h: Declare strdup for XPG7.
628 2010-01-08 Ulrich Drepper <drepper@redhat.com>
630 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
631 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
633 * dirent/dirent.h: Really fix feature selection.
635 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
637 * locale/C-address.c: Fix all users.
638 * locale/C-collate.c: Likewise.
639 * locale/C-ctype.c: Likewise.
640 * locale/C-identification.c: Likewise.
641 * locale/C-measurement.c: Likewise.
642 * locale/C-messages.c: Likewise.
643 * locale/C-monetary.c: Likewise.
644 * locale/C-name.c: Likewise.
645 * locale/C-numeric.c: Likewise.
646 * locale/C-paper.c: Likewise.
647 * locale/C-telephone.c: Likewise.
648 * locale/C-time.c: Likewise.
649 * locale/findlocale.c: Likewise.
650 * locale/global-locale.c: Likewise.
651 * locale/loadarchive.c: Likewise.
652 * locale/loadlocale.c: Likewise.
653 * locale/nl_langinfo_l.c: Likewise.
654 * locale/setlocale.c: Likewise.
655 * locale/xlocale.c: Likewise.
656 * locale/xlocale.h: Likewise.
657 * stdio-common/vfscanf.c: Likewise.
658 * stdlib/strfmon_l.c: Likewise.
659 * stdlib/strtod_l.c: Likewise.
660 * stdlib/strtol_l.c: Likewise.
661 * string/strcoll_l.c: Likewise.
662 * string/strxfrm_l.c: Likewise.
663 * time/alt_digit.c: Likewise.
664 * time/asctime.c: Likewise.
665 * time/era.c: Likewise.
666 * time/lc-time-cleanup.c: Likewise.
667 * time/strftime_l.c: Likewise.
668 * time/strptime_l.c: Likewise.
669 * wcsmbs/wcsmbsload.c: Likewise.
670 * wcsmbs/wcsmbsload.h: Likewise.
672 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
673 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
675 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
676 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
677 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
678 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
679 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
680 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
682 2010-01-07 Roland McGrath <roland@redhat.com>
684 * elf/elf.h (PN_XNUM): New macro.
686 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
689 2010-01-06 Ulrich Drepper <drepper@redhat.com>
691 * dirent/dirent.h: Fix typo in feature selection macro use.
693 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
696 * stdlib/tst-makecontext3.c: New file.
697 * stdlib/Makefile (tests): Add new test.
699 * stdlib/tst-setcontext.c (check_called): Fix a typo.
701 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
703 * configure.in: Enable multi-arch by default if the assembler
704 supports gnu_indirect_function symbol type and the architecture
707 2009-12-23 Ulrich Drepper <drepper@redhat.com>
709 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
712 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
714 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
715 MACH_PORT_NULL when id != cttyid.
717 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
719 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
720 __mach_port_deallocate on rootdevid.
722 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
724 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
725 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
726 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
727 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
729 2009-12-21 Ulrich Drepper <drepper@redhat.com>
732 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
733 Patch by Eric Blake <ebb9@byu.net>.
735 2009-12-15 Ulrich Drepper <drepper@redhat.com>
738 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
739 POLLWRBAND also for POSIX 2008.
740 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
741 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
743 * include/link.h (struct link_map): Move l_used into its own word.
744 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
746 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
749 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
751 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
752 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
753 check processor feature.
754 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
755 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
756 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
757 (index_SSE2): Likewise.
759 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
761 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
762 if __ASSEMBLER__ is defined.
763 (bit_SSSE3): New. Defined for __ASSEMBLER__.
764 (bit_SSE4_2): Likewise.
765 (index_SSSE3): Likewise.
766 (index_SSE4_2): Likewise.
767 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
768 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
769 check processor feature.
770 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
771 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
772 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
773 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
774 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
775 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
776 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
778 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
780 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
782 2009-12-01 Mike Frysinger <vapier@gentoo.org>
784 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
786 2009-12-11 Ulrich Drepper <drepper@redhat.com>
788 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
789 O_DSYNC to match 2.6.33+ kernels.
790 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
791 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
792 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
793 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
794 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
795 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
797 2009-12-10 Ulrich Drepper <drepper@redhat.com>
800 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
801 *herrnop before returning.
802 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
804 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
805 TRYAGAIN errors separately.
806 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
807 *name4_r after functions.
809 2009-12-09 Ulrich Drepper <drepper@redhat.com>
812 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
815 2009-11-05 Bruno Haible <bruno@clisp.org>
818 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
819 argv argument as non-NULL.
820 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
822 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
824 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
826 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
827 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
829 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
831 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
833 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
834 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
835 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
837 2009-11-30 Ulrich Drepper <drepper@redhat.com>
839 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
842 2009-11-26 Ulrich Drepper <drepper@redhat.com>
844 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
845 only used on truly ancient kernel if configuration requires a more
848 2009-11-24 Ulrich Drepper <drepper@redhat.com>
851 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
852 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
854 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
855 pass it on to __ptsname_internal.
856 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
857 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
858 All the code from __ptsname_r but take additional parameter. Use that
859 instead of pointer to local stat64 variable.
860 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
862 * include/stdlib.h: Declare __ptsname_internal.
864 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
866 * sysdeps/unix/sysv/linux/grantpt.c: New file.
867 * login/programs/pt_chown.c (main): Don't print message on errors
868 when doing real work.
870 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
873 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
874 irel relocations split out from...
875 (__libc_csu_init): ...here.
876 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
878 2009-11-23 Andreas Schwab <schwab@redhat.com>
880 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
881 for timestamps also if __USE_XOPEN2K8.
882 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
883 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
884 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
885 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
887 2009-11-22 Ulrich Drepper <drepper@redhat.com>
889 * nscd/connections.c (restart): Try harder to re-exec.
891 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
893 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
894 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
895 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
896 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
897 some placeholders. Redirect ntp_gettime to ntp_gettimex.
898 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
900 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
902 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
904 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
907 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
908 than software pipeline. Properly recover from shorter read.
910 2009-11-19 Ulrich Drepper <drepper@redhat.com>
913 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
914 initialized before using it.
915 (_IO_putwc_unlocked): Likewise.
918 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
919 in cast to not throw away const-ness of parameters.
920 (__CPU_EQUAL_S): Likewise.
921 (__CPU_OP_S): Likewise.
923 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
924 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
925 this gratuitous change and we have to keep compatibility.
926 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
927 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
928 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
929 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
930 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
931 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
933 2009-11-17 Ulrich Drepper <drepper@redhat.com>
935 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
936 of parameters of sync_file_range.
937 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
938 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
939 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
940 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
941 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
942 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
944 2009-11-16 Jakub Jelinek <jakub@redhat.com>
946 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
947 Implement using sync_file_range2 syscall if __NR_sync_file_range2
949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
952 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
954 * posix/bug-regex30.c: New file.
955 * posix/Makefile: Add rules to build and run bug-regex30.
956 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
957 character lead bytes when there is a range in a COMPLEX_BRACKET.
958 Reported by Oleg Bylatov.
960 2009-11-17 Ulrich Drepper <drepper@redhat.com>
963 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
964 * locale/tst-duplocale.c: New file.
965 * locale/Makefile (tests): Add tst-duplocale.
968 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
969 Patch by Bruno Haible <bruno@clisp.org>.
970 * locale/tst-locname.c: New file.
971 * locale/Makefile (tests): Add tst-locname.
974 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
975 constants from recent kernels.
976 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
977 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
978 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
979 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
980 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
981 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
983 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
986 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
989 2009-11-09 Mike Frysinger <vapier@gentoo.org>
991 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
992 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
993 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
995 2009-11-06 Mike Frysinger <vapier@gentoo.org>
997 * posix/bug-regex29.c: Include stdio.h.
999 2009-11-14 Ulrich Drepper <drepper@redhat.com>
1002 * Versions.def: Define GLIBC_2.12 for libc.
1003 * manual/errno.texi: Add ERFKILL entry.
1004 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1006 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1007 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1009 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1010 F_GETOWN_EX definitions according to corrected kernel definitions.
1011 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1012 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1013 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1014 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1015 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1016 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1018 2009-11-12 Ulrich Drepper <drepper@redhat.com>
1020 * version.h: Bump for 2.12 development.
1022 2009-11-10 Andreas Schwab <schwab@redhat.com>
1024 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1025 out of buffer space.
1026 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1027 map_v4v6_hostent running out of space.
1029 2009-11-10 Ulrich Drepper <drepper@redhat.com>
1031 * string/bits/string3.h (memset): If the second parameter is constant
1032 and zero there is likely no transposition.
1033 Patch by Caolan McNamara <caolanm@redhat.com.
1035 2009-11-04 Philippe De Muyter <phdm@macqel.be>
1037 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1038 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1040 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
1042 * malloc/memusagestat.c (main): Fix spelling in an error message.
1044 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1046 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1047 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1049 2009-11-03 Andreas Schwab <schwab@redhat.com>
1051 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1054 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1056 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1057 relocate opd entry when resolving prelink conflicts.
1059 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1061 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1062 when -D_FILE_OFFSET_BITS=64.
1064 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1065 of last two arguments when -D_FILE_OFFSET_BITS=64.
1066 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1067 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1068 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1069 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1070 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1071 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1073 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1076 * sysdeps/generic/libgcc_s.h: New file.
1077 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1079 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1081 * malloc/hooks.c (free_check): Restore locking and call _int_free
1084 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1086 * version.h (VERSION): Bump for 2.11 release.
1087 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1089 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1091 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1093 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1095 * stdlib/tst-strtoll.c (tests): Likewise.
1098 * time/strftime_l.c (__strftime_internal): Allow %OC.
1100 * misc/mkostemps.c: New file.
1101 * misc/mkostemps64.c: New file.
1103 2009-10-30 Andreas Schwab <schwab@redhat.com>
1105 * locale/programs/locale-spec.c: Include <error.h> and
1108 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1110 2009-10-28 Roland McGrath <roland@redhat.com>
1112 * Makefile (dist-prepare): New target.
1113 (tag-for-dist): Target removed.
1114 (glibc-%.tar): Pattern rule removed.
1115 (%.tar): New pattern rule, does simple use of git archive.
1116 (dist-version): Remove variable definition.
1117 (dist): Just depend on that. Add .tar.xz dependency.
1118 If dist-version variable not set on command line, depend on
1119 dist-prepare, re-invoke with dist-version set via git describe.
1121 * Makerules (%.xz): New pattern rule.
1123 2009-10-28 Alan Modra <amodra@bigpond.net.au>
1125 * elf/ifuncdep2.c: Include ifunc-sel.h.
1127 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1128 * elf/ifuncmain1.c (global): Delete.
1129 * elf/ifuncmain1vis.c: Likewise.
1130 * elf/ifuncmain2.c: Likewise.
1131 * elf/ifuncmain5.c: Likewise.
1132 * elf/ifuncmod3.c: Likewise.
1133 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1134 (foo_ifunc): Use ifunc_one.
1135 * elf/ifuncmain7.c: Likewise.
1136 * elf/ifuncmod1.c: Include ifunc-sel.h.
1137 (global): Define protected var.
1138 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1139 * elf/ifuncmod5.c: Likewise.
1140 * sysdeps/generic/elf/ifunc-sel.h: New file.
1141 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1143 2009-07-30 Alan Modra <amodra@bigpond.net.au>
1145 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1146 (R_PPC_REL16*): Correct comments.
1147 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1148 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1149 R_PPC64_REL16_HA): Define.
1150 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1151 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1152 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1153 Delete unused "reloc" param.
1154 (__process_machine_rela): Handle R_PPC_IRELATIVE.
1155 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1156 Delete "reloc" param.
1157 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1159 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1160 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1163 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
1166 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1167 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1168 UDP_ENCAP_L2TPINUDP.
1171 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1172 parameter, specifying length of prefix.
1173 * stdio-common/tempname.c: Likewise.
1174 * include/stdio.h: Adjust prototypes.
1175 * libio/oldtmpfile.c: Adjust caller.
1176 * misc/mkdtemp.c: Likewise.
1177 * misc/mkostemp.c: Likewise.
1178 * misc/mkostemp64.c: Likewise.
1179 * misc/mkstemp.c: Likewise.
1180 * misc/mkstemp64.c: Likewise.
1181 * misc/mktemp.c: Likewise.
1182 * stdio-common/tempnam.c: Likewise.
1183 * stdio-common/tmpfile.c: Likewise.
1184 * stdio-common/tmpnam.c: Likewise.
1185 * stdio-common/tmpnam_r.c: Likewise.
1186 * misc/mkstemps.c: New file.
1187 * misc/mkstemps64.c: New file.
1188 * stdlib/stdlib.h: Add prototypes.
1189 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1190 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1192 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1194 * locale/iso-639.def: Add sml entry.
1197 * resolv/res_send.c (send_dg): Initialize resplen.
1200 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1201 definition to the kernel's.
1202 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1204 2009-08-18 Anders Johansson <ajohansson@novell.com>
1206 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1207 offsets and record sizes in assert()s and response sending.
1208 * nscd/grpcache.c: Likewise.
1209 * nscd/hstcache.c: Likewise.
1210 * nscd/initgrcache.c: Likewise.
1211 * nscd/pwdcache.c: Likewise.
1213 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1216 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1217 /etc/hosts does not exist set errnop and herrnop appropriately.
1218 Patch by Steve Langasek <vorlon@debian.org>.
1221 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1222 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1225 * login/utmp_file.c (TIMEOUT): Increase to 10.
1228 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1229 for file names in case the syscall is not available.
1230 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1231 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1232 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1233 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1234 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1235 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1236 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1237 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1238 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1239 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1240 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1241 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1242 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1243 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1244 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1245 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1246 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1249 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1250 creation filed, remove the request from the 'requests' list and signal
1251 the caller that the request is finished.
1254 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1255 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1258 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1259 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1262 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1263 overflows the int return type.
1266 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1267 have to compute maxsize_total, we have to update the variables, and
1268 the also_total handling must happen after the repair.
1271 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1272 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1274 2009-10-27 Andreas Schwab <schwab@redhat.com>
1276 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1277 errno is always set when returning unsuccessfully.
1279 2009-10-29 Andreas Schwab <schwab@redhat.com>
1281 * malloc/memusage.c (update_data): Fix index wraparound handling
1282 so that buffer_cnt is actually reset.
1284 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1287 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1288 of the directory we look at into the static buffer if there is one
1289 at the start of the loop.
1292 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1293 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1296 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1297 __ASSUME_F_GETOWN_EX.
1298 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1300 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1302 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1304 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1305 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1306 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1307 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1308 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1309 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1312 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1316 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1317 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1319 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1321 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1323 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1326 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1327 Reported by Ray Chason.
1329 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1331 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1333 * sysdeps/x86_64/multiarch/strchr.S: New file.
1334 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1335 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1337 2009-10-21 Andreas Schwab <schwab@redhat.com>
1339 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1341 2009-10-19 Andreas Schwab <schwab@redhat.com>
1343 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1344 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1345 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1346 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1347 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1348 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1349 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1350 __ieee751_expl to handle overflow.
1352 2009-10-14 David S. Miller <davem@davemloft.net>
1354 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1355 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1357 2009-10-13 Andreas Schwab <schwab@redhat.com>
1359 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1362 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1365 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1366 Patch in part by Steve Ward <planet36@gmail.com>.
1369 * stdlib/rand_r.c: Fix typo.
1371 * po/cs.po: Update from translation team.
1373 2009-10-06 Andreas Schwab <schwab@redhat.com>
1375 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1376 returning if RTLD_NOLOAD.
1378 2009-10-06 Roland McGrath <roland@redhat.com>
1380 * sysdeps/x86_64/multiarch/strstr-c.c
1381 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1383 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1384 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1386 * sysdeps/x86_64/multiarch/init-arch.h
1387 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1388 (HAS_CPU_FEATURE): New macro.
1389 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1390 * sysdeps/x86_64/multiarch/init-arch.c
1391 (__get_cpu_features): #undef it before definition.
1393 2009-10-05 Andreas Schwab <schwab@redhat.com>
1395 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1396 first_weekday to 1 and first_workday to 2.
1398 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1400 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1402 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1403 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1404 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1405 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1406 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1407 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1409 2009-09-28 Andreas Schwab <schwab@redhat.com>
1411 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1412 * stdio-common/vfprintf.c: Likewise.
1414 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1416 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1417 (mkdirat): Call __directory_name_split_at instead of
1418 __directory_name_split.
1420 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1422 * locale/programs/locale-spec.c (locale_special): If nothing matches
1423 fail with an appropriate message.
1425 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1427 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1430 2009-09-25 Andreas Schwab <schwab@redhat.com>
1432 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1433 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1435 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1437 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1439 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1441 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1442 character size elements in step data.
1444 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1446 * po/hu.po: Update from translation team.
1447 * po/vi.po: Likewise.
1449 2009-09-19 Roland McGrath <roland@redhat.com>
1451 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1453 2009-09-15 Roland McGrath <roland@redhat.com>
1455 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1456 * nptl/sysdeps/pthread/configure: Regenerated.
1457 * nptl/sysdeps/x86_64/configure: Regenerated.
1458 * sysdeps/unix/sysv/linux/configure: Regenerated.
1459 * sysdeps/x86_64/elf/configure: Regenerated.
1461 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1463 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1464 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1465 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1466 * configure: Regenerated.
1468 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1470 * posix/getconf.c (main): Handle -- on command line.
1472 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1474 * configure.in: Support binutils 2.100 and 3.0.
1476 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1478 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1479 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1480 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1481 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1483 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1485 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1486 unnamed_section_defined field.
1487 (collate_read): Test and set unnamed_section_defined.
1489 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1492 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1494 * configure.in: Support binutils 2.20.
1496 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1498 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1499 __strstr_ia32): Add attribute_hidden.
1501 2009-09-01 Andreas Schwab <schwab@redhat.com>
1503 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1504 parsing of group entry.
1506 2009-09-02 Andreas Schwab <schwab@redhat.com>
1508 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1509 external buffer. Always discard readahead in internal buffer.
1510 * libio/Makefile (tests): Add bug-wsetpos.
1511 * libio/bug-wsetpos.c: New file.
1513 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1515 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1516 Add attribute_hidden.
1517 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1518 __strcasestr_sse2): Likewise.
1519 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1520 (__fma_fma): Make static.
1521 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1522 (__fmaf_fma): Make static.
1524 2009-08-31 Andreas Schwab <schwab@redhat.com>
1526 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1527 reformulate in-buffer optimisation check to match code in
1528 _IO_new_file_seekoff.
1530 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1532 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1533 to srwi in 32-bit memcpy for power6.
1535 2009-09-01 Andreas Schwab <schwab@redhat.com>
1537 * include/stdio.h: Declare hidden proto for fflush.
1538 * libio/iofflush.c: Add hidden weak alias for fflush.
1540 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1542 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1543 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1545 2009-08-31 Andreas Schwab <schwab@redhat.com>
1547 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1549 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1552 * malloc/malloc.c: Add local assert definition to avoid problems with
1553 memory allocation in the real one.
1555 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1557 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1559 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1560 turn off SSSE3 on Atom.
1562 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1564 * stdlib/tst-strtol.c (tests): More tests.
1565 * stdlib/tst-strtoll.c (tests): Likewise.
1567 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1569 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1571 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1573 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1575 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1576 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1578 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1580 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1582 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1584 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1586 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1588 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1590 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1591 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1593 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1595 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1596 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1598 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1599 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1601 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1602 leftover YMM_SIZE definition.
1604 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1606 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1608 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1609 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1611 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1613 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1614 and SET_FLOAT_WORD definitions.
1616 2009-08-24 Roland McGrath <roland@redhat.com>
1618 * sysdeps/unix/syscall-template.S: New file.
1619 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1620 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1621 (compile-syscall): Pass mkdep and -g options as normal.
1622 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1623 (common-generated): Don't add them here.
1625 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1627 * math/s_fdim.c: In case of overflows set errno.
1628 * math/s_fdimf.c: Likewise.
1629 * math/s_fdiml.c: Likewise.
1631 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1632 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1633 are using the inline optimizations.
1635 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1636 (__signbitf): Likewise.
1638 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1640 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1642 * posix/Makefile (tests): Add bug-regex29.
1643 * posix/bug-regex29.c: New file.
1645 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1646 older POSIX versions are selected.
1648 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1650 * stdio-common/printf_fphex.c: Likewise.
1651 * stdio-common/tstdiomisc.c: Add more tests.
1653 * locale/locale.h: Include xlocale.h and the thread-local locale
1654 declarations for XPG7, not XPG6.
1656 2009-08-21 Andreas Schwab <schwab@redhat.com>
1658 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1659 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1662 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1663 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1665 2009-08-20 Roland McGrath <roland@redhat.com>
1667 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1668 Use l_addr instead of l_map_start (dli_fbase).
1669 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1670 address when there is no proximate symbol.
1671 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1674 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1676 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1678 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1680 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1681 Also handle SIGINT. In that case only do the cleanup and then
1682 re-raise the signal.
1683 (main): Install handler for SIGINT.
1685 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1687 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1690 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1692 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1693 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1695 (tests): Add tst-audit6 tst-audit7.
1696 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1697 tst-auditmod7a tst-auditmod7b.
1698 ($(objpfx)tst-audit6): New.
1699 ($(objpfx)tst-audit6.out): Likewise.
1700 ($(objpfx)tst-audit7): Likewise.
1701 ($(objpfx)tst-audit7.out): Likewise.
1702 (tst-audit6-ENV): Likewise.
1703 (tst-audit7-ENV): Likewise.
1704 (CFLAGS-tst-auditmod6b.c): Likewise.
1705 (CFLAGS-tst-auditmod6c.c): Likewise.
1706 (CFLAGS-tst-auditmod7b.c): Likewise.
1707 * elf/tst-audit6.c: New file.
1708 * elf/tst-audit7.c: New file.
1709 * elf/tst-auditmod6a.c: New file.
1710 * elf/tst-auditmod6b.c: New file.
1711 * elf/tst-auditmod6c.c: New file.
1712 * elf/tst-auditmod7a.c: New file.
1713 * elf/tst-auditmod7b.c: New file.
1714 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1715 saving and restoring SSE/AVX registers to ...
1716 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1718 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1720 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1721 only if SHARED is defined.
1722 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1724 2009-08-03 Jim Meyering <meyering@redhat.com>
1726 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1728 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1730 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1731 section as the other functions for this architecture.
1732 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1734 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1736 * sysdeps/x86_64/strcmp.S: Add support to compile with
1737 USE_SSSE3. In this case palignr is used.
1738 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1739 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1740 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1741 Add strcmp-ssse3 and strncmp-ssse3.
1742 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1743 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1745 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1746 warning through fake initialization.
1748 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1750 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1752 2009-08-07 Andreas Schwab <schwab@redhat.com>
1754 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1757 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1759 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1760 EBX from EAX = 1. Handle EAX = 11.
1762 2009-08-07 Andreas Schwab <schwab@redhat.com>
1764 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1767 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1769 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1770 hidden IFUNC functions.
1771 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1773 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1775 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1776 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1778 (CFLAGS-strcspn-c.c): Define.
1779 (CFLAGS-strpbrk-c.c): Define.
1780 (CFLAGS-strspn-c.c): Define.
1781 (CFLAGS-strstr.c): Define.
1782 (CFLAGS-strcasestr.c): Define.
1783 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1784 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1785 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1786 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1787 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1788 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1789 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1790 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1791 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1792 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1793 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1794 -16L instead of 0xfffffffffffffff0L.
1795 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1797 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1799 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1801 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1803 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1804 another rewrite. Much smaller and faster.
1805 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1807 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1808 ss_flags from the correct location.
1810 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1812 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1813 * sysdeps/i386/i686/cacheinfo.c: New file.
1814 * sysdeps/i386/i686/multiarch/Makefile: New file.
1815 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1816 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1817 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1818 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1819 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1820 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1821 (__cpuid_count): New. Provide the default.
1822 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1823 (__x86_64_preferred_memory_instruction): Define only if
1824 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1825 (intel_check_word): Use __cpuid.
1826 (handle_intel): Likewise.
1827 (handle_amd): Likewise.
1828 (__cache_sysconf): Likewise.
1829 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1830 (__cache_sysconf): Likewise.
1831 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1832 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1833 (get_common_indeces): Use __cpuid.
1834 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1835 if ENABLE_SSSE3_ON_ATOM is not defined.
1836 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1837 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1838 popcnt instead of popcntq.
1840 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1842 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1844 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1846 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1847 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1848 which always causes a compile error.
1850 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1852 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1854 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1855 which always causes a compile error.
1857 * debug/Makefile (tests): Add tst-longjmp_chk2.
1858 * debug/tst-longjmp_chk2.c: New file.
1860 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1861 Remove incorrect use of BP_SYM.
1862 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1863 here now since it is more complex than just a simple check.
1865 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1866 we make no more progress.
1868 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1870 * math/s_fma.c: Don't define alias if __fma is a macro.
1871 * math/s_fmaf.c: Likewise.
1872 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1873 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1874 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1876 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1877 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1879 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1881 * include/libc-symbols.h (libm_ifunc): Define.
1882 * sysdeps/x86_64/multiarch/Versions: New file.
1884 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1886 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1888 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1890 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1892 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1893 call that registers used in calling conventions need to be preserved.
1894 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1895 to preserve register content if necessary.
1896 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1897 (_dl_x86_64_restore_sse): New function.
1898 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1899 is allowed to modify xmm/ymm registers.
1901 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1902 application's perspective.
1903 * stdio-common/scanf17.c: Likewise.
1905 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1907 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1909 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1911 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1912 two steps to catch bugs.
1914 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1916 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1917 determines which files are used in runtime lookups and only checks
1919 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1921 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1922 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1923 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1926 * elf/dl-open.c: Move _dl_scope_free to...
1927 * elf/dl-scope.c: ...here. New file.
1928 * elf/Makefile (dl-routines): Add scope.
1930 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1931 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1933 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1934 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1935 all the places we handled RES_USE_EDNS0 only before.
1936 Patch by Adam Tkac <atkac@redhat.com>.
1938 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1940 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1941 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1942 Update size when reallocating.
1944 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1946 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1947 functions used in ld.so modify xmm/ymm registers.
1948 * sysdeps/x86_64/Makefile: Hook new test up.
1949 * sysdeps/x86_64/rtld-memchr.c: New file.
1950 * sysdeps/x86_64/rtld-memcmp.c: New file.
1951 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1952 * sysdeps/x86_64/rtld-strchr.S: New file.
1953 * sysdeps/x86_64/rtld-strlen.S: New file.
1954 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1955 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1957 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1959 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1961 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1969 (next_8_bytes): Likewise.
1970 (Byte0): Remove commented out codes.
1971 (unaligned_table): Align jump table at 8 bytes.
1972 Add _sse4_2 to all labels. Always include "../strcmp.S".
1973 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1974 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1975 * sysdeps/x86_64/strncmp.S: New file.
1977 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1980 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1981 kernels, dropped when eventfd2 support was added.
1982 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1983 kernels, dropped when signalfd4 support was added.
1984 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1988 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1991 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1993 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1995 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1996 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1999 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2000 callback we must touch the status to avoid using stale value.
2002 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2005 2009-07-24 Ulrich Drepper <drepper@redhat.com>
2007 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2008 /lib/modules/* headers anymore. We have sane headers in the standard
2011 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2013 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2014 "etf3enh" and "highgprs" added.
2015 (_dl_s390_platforms): "z10" added.
2016 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2017 Increased for the new entries.
2018 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2019 HWCAP_S390_HIGH_GPRS added.
2021 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2022 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2023 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2024 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2025 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2027 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2029 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2030 avoid additional cpuid instructions. Most of the information is
2033 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2035 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2037 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2038 SSSE3 bit for Atoms.
2039 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2042 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2043 structure before copying it to avoid warning.
2044 * posix/tst-rfc3484-2.c (do_test): Likewise.
2045 * posix/tst-rfc3484-3.c (do_test): Likewise.
2048 * include/unistd.h: Make header file suitable for C++ test cases.
2049 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2051 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2052 stack alignment in the exit code.
2054 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2055 potentially be zero.
2057 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2058 unique symbol definition.
2059 Patch by Jakub Jelinek.
2060 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2061 make sure the object with the definition cannot be unloaded. Adjust
2063 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2064 the unique symbol hash table should not be const.
2066 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2068 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2069 unnecesary variables. Comment fixes.
2071 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2073 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2074 Use NONASCII_CASE information provided by the locale to determine
2075 whether optimized string load function can be used. Minor cleanups.
2077 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2079 * string/strcasestr.c (STRCASESTR): New macro.
2080 (__strcasestr): Renamed to ..
2081 (STRCASESTR): ...this.
2082 * string/strstr.c (STRSTR): New macro.
2083 (strstr): Renamed to ..
2085 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2086 strstr-c strcasestr-c
2087 (CFLAGS-strstr.c): New.
2088 (CFLAGS-strcasestr.c): Likewise.
2089 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2090 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2091 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2092 * sysdeps/x86_64/multiarch/strstr.c: New file.
2094 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2096 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2097 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2098 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2099 _NL_CTYPE_NONASCII_CASE.
2100 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2102 (ctype_finish): Check whether there are any 8-bit characters outside
2103 the range ASCII has or whether the mapping isn't the same as for
2104 ASCII (±0x20). Set nonascii_case appropriately.
2105 (ctype_output): Add output handler for nonascii_case.
2107 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2109 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2110 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2112 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2115 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2116 0xffff in the EDNS0 record.
2118 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2120 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2121 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2122 is written before the list head update.
2123 Patch by Andreas Schwab <aschwab@redhat.com>.
2125 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2126 Jakub Jelinek <jakub@redhat.com>
2128 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2129 corruption thread-safe.
2131 2009-07-13 Jakub Jelinek <jakub@redhat.com>
2133 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2134 overrides atomic_compare_and_exchange_val_rel, define to
2135 atomic_compare_and_exchange_val_rel by default, otherwise default
2136 to catomic_compare_and_exchange_val_acq.
2137 (catomic_compare_and_exchange_bool_rel): If arch overrides
2138 atomic_compare_and_exchange_bool_rel, define to
2139 atomic_compare_and_exchange_bool_rel by default.
2140 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2141 Use catomic_compare_and_exchange_val_rel instead of
2142 catomic_compare_and_exchange_val_acq.
2144 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2146 * sysdeps/generic/ldsodefs.h: Add prototype for
2147 _dl_higher_prime_number.
2148 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2150 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2151 restoring of ymm registers a bit.
2153 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
2155 * sysdeps/x86_64/memcmp.S: New file.
2157 2009-07-15 Ulrich Drepper <drepper@redhat.com>
2159 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2160 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
2161 pointers in writable memory.
2163 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2165 * config.h.in: Add HAVE_AVX_SUPPORT entry.
2166 * config.make.in: Add config-cflags-avx entry.
2167 * configure.in: Substitute libc_cv_cc_avx.
2168 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2169 * elf/tst-audit4.c: New file.
2170 * elf/tst-audit5.c: New file.
2171 * elf/tst-auditmod4a.c: New file.
2172 * elf/tst-auditmod4b.c: New file.
2173 * elf/tst-auditmod5a.c: New file.
2174 * elf/tst-auditmod5b.c: New file.
2175 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2177 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2178 (La_x86_64_vector): Likewise.
2179 (La_x86_64_regs): Append lr_vector.
2180 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2181 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2182 saving and restoring SSE registers to ...
2183 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2184 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2186 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2187 La_x86_64_regs. Allocate extra space and jump to memory at
2188 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2189 (save_and_restore_vector_sse): New.
2190 (save_and_restore_vector_avx): Likewise.
2191 (check_avx): Likewise.
2192 (save_and_restore_vector): Likewise.
2193 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2195 * sysdeps/x86_64/link-defines.sym: New file.
2197 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2199 * elf/do-lookup.h: Removed after folding content into...
2200 * elf/dl-lookup.c: ...here.
2202 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2204 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2206 * configure.in: Check for gnu_unique_symbol symbol type.
2207 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2208 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2209 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2210 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2212 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2213 unique symbol table.
2214 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2215 for first namespace.
2216 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2217 unique symbol hash table.
2218 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2219 * elf/tst-unique1.c: New file.
2220 * elf/tst-unique1mod1.c: New file.
2221 * elf/tst-unique1mod2.c: New file.
2222 * elf/tst-unique2.c: New file.
2223 * elf/tst-unique2mod1.c: New file.
2224 * elf/tst-unique2mod2.c: New file.
2226 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2228 * elf/elf.h (STB_GNU_UNIQUE): Define.
2230 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2232 * include/inline-hashtab.h: ...here.
2233 (htab_expand): Adjust for renamed function. Correct memory handling.
2235 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2237 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2239 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2241 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2242 (PPC_FEATURE_HAS_VSX): Likewise.
2244 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2246 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2247 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2249 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2250 aligned to 16 byte boundaries.
2251 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2252 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2253 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2255 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2257 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2258 * config.make.in (config-cflags-sse4): New variable.
2259 * configure.in: Substitute libc_cv_cc_sse4.
2260 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2262 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2263 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2264 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2265 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2266 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2267 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2268 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2269 * sysdeps/x86_64/multiarch/strspn.S: New file.
2271 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2273 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2274 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2275 (tests): Add tst-audit3 for x86_64.
2276 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2277 ($(objpfx)tst-audit3): Define.
2278 ($(objpfx)tst-audit3.out): Define.
2279 (tst-audit3-ENV): Define.
2280 * elf/tst-audit3.c: New file.
2281 * elf/tst-auditmod3a.c: New file.
2282 * elf/tst-auditmod3b.c: New file.
2283 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2286 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2287 (__stpncpy): Renamed to ...
2289 (stpncpy): Create alias only if STPNCPY is not defined.
2290 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2292 (strncpy): Renamed to ...
2294 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2295 stpncpy-c strncpy-c for string.
2296 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2297 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2298 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2299 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2300 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2301 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2303 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2305 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2306 adding to fast bin list.
2308 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2310 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2311 inet_makeaddr. This worked only with class-based networks.
2312 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2315 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2316 recognize all types.
2317 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2318 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2319 be in host byte order.
2321 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2323 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2324 (MODEL_OFFSET): Define.
2325 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2327 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2328 out common code into new function get_common_indeces. Determine
2329 extended family and model for Intel processors.
2331 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2333 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2334 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2336 * resolv/res_send.c (reopen): New function. Broken out of...
2337 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2338 fallback mechanism. If single-request fails switch to
2339 single-request-reopen mode which opens a new socket for the second
2342 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2344 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2347 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2349 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2350 for saved registers.
2351 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2352 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2353 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2355 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2357 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2359 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2361 * po/id.po: Update from translation team.
2363 * po/bg.po: Update from translation team.
2365 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2367 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2369 (strncmp): Renamed to STRNCMP.
2370 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2371 strncmp-c for string.
2372 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2373 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2374 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2375 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2377 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2379 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2380 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2381 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2382 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2383 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2385 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2386 ifuncmain7static, and ifuncmain7picstatic.
2387 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2388 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2389 $(objpfx)ifuncmain7pie.out.
2390 (modules-names): Add ifuncmod5 ifuncmod6
2391 (ifuncmod5.so-no-z-defs): Define.
2392 (ifuncmod6.so-no-z-defs): Define.
2393 (CFLAGS-ifuncmain5pic.c): Define.
2394 (CFLAGS-ifuncmain5picstatic.c): Define.
2395 (CFLAGS-ifuncmain5staticpic.c): Define.
2396 (CFLAGS-ifuncdep5pic.c): Define.
2397 (CFLAGS-ifuncmain7pic.c): Define.
2398 (CFLAGS-ifuncmain7picstatic.c): Define.
2399 (CFLAGS-ifuncmain1staticpie.c): Define.
2400 (CFLAGS-ifuncmain5pie.c): Define.
2401 (CFLAGS-ifuncmain6pie.c): Define.
2402 (CFLAGS-ifuncmain7pie.c): Define.
2403 ($(objpfx)ifuncmain1staticpie.out): Define.
2404 ($(objpfx)ifuncmain1staticpie): Define.
2405 ($(objpfx)ifuncmain5pie.out): Define.
2406 ($(objpfx)ifuncmain5pie): Define.
2407 ($(objpfx)ifuncmain6pie.out): Define.
2408 ($(objpfx)ifuncmain6pie): Define.
2409 ($(objpfx)ifuncmain5): Define.
2410 ($(objpfx)ifuncmain5pic): Define.
2411 ($(objpfx)ifuncmain5static): Define.
2412 ($(objpfx)ifuncmain5staticpic): Define.
2413 ($(objpfx)ifuncmain5picstatic): Define.
2414 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2415 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2417 * elf/b/elf/ifuncmain1staticpie.c: New file.
2418 * elf/ifuncdep5.c: New file.
2419 * elf/ifuncdep5pic.c: New file.
2420 * elf/ifuncmain5.c: New file.
2421 * elf/ifuncmain5pic.c: New file.
2422 * elf/ifuncmain5picstatic.c: New file.
2423 * elf/ifuncmain5pie.c: New file.
2424 * elf/ifuncmain5static.c: New file.
2425 * elf/ifuncmain5staticpic.c: New file.
2426 * elf/ifuncmain6pie.c: New file.
2427 * elf/ifuncmain7.c: New file.
2428 * elf/ifuncmain7pic.c: New file.
2429 * elf/ifuncmain7picstatic.c: New file.
2430 * elf/ifuncmain7pie.c: New file.
2431 * elf/ifuncmain7static.c: New file.
2432 * elf/ifuncmod5.c: New file.
2433 * elf/ifuncmod6.c: New file.
2435 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2438 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2439 (nss_endgrent): New variable.
2440 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2441 fields. Change type of files to bool and adjust all users.
2442 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2443 (internal_endgrent): Call nss_endgrent if necessary.
2444 (add_group): New function. Broken out of...
2445 (check_and_add_group): ...here.
2446 (getgrent_next_nss): Remove test that any callback is available.
2447 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2448 callback. If there is no blacklist we can trust the results returned
2449 by the initgroups_dyn callback. In case there is a callback and we
2450 find a group entry for the group ID but it doesn't contain the
2451 correct member, switch to the slow mode and use getgrent_r.
2452 (internal_getgrent_r): When we see a +: entry, determine whether
2453 there is any callback and which we can use the initgroups_dyn
2456 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2458 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2459 (_int_free): Likewise.
2461 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2463 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2464 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2465 and ARPHRD_IEEE802154_PHY.
2467 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2468 relative to generic Linux version.
2470 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2472 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2473 ($(objpfx)ifuncmain1vispie): Likewise.
2475 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2477 * login/Makefile: Build pt_chown as PIE.
2479 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2481 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2483 * elf/sln.c (usage): Likewise.
2484 * malloc/memusage.sh (do_help): Likewise.
2485 * nss/getent.c (more_help): Likewise.
2486 * posix/getconf.c (main): Likewise.
2487 * sunrpc/rpcinfo.c (usage): Likewise.
2488 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2490 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2492 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2494 * login/Makefile: If necessary link pt_chown with -lcap.
2495 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2496 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2498 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2500 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2502 * string/test-memchr.c (do_random_tests): Test very large lengths
2505 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2507 * Makeconfig (+link-pie): Define.
2508 (+prectorS): Define.
2509 (+postctorS): Define.
2510 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2511 * nscd/Makefile ($(objpfx)nscd): Likewise.
2513 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2516 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2518 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2520 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2522 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2524 * sysdeps/unix/grantpt.c: ...here.
2526 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2528 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2529 chmod if it is necessary.
2532 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2533 when the slave device is in devpts or devfs.
2536 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2539 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2540 of nd_opt_home_agent_info_preference to uint16_t.
2541 Patch by Arnaud Ebalard <arno@natisbad.org>.
2544 * nss/getent.c: Add support for printing gshadow data.
2547 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2548 not just the currently used one and those which follow.
2549 Patch by Joe Landers <jlanders@vmware.com>.
2552 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2553 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2554 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2557 * stdlib/abort.c: Define variable __abort_msg.
2558 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2559 * include/stdlib.h: Declare __abort_msg.
2560 * assert/assert-perr.c: Don't free buffer for message immediately.
2561 Store atomically in __abort_msg and free old buffer if necessary.
2562 * assert/assert.c: Likewise.
2563 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2564 store pointer in __abort_msg, and possibly free old string.
2565 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2567 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2570 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2571 handle leap seconds if they are available.
2572 Patch by Akinori Hattori <hattya@gentoo.org>.
2574 * timezone/tzselect.ksh: Update from tzcode2009i.
2575 * timezone/zdump.c: Likewise.
2576 * timezone/zic.c: Likewise.
2578 * timezone/africa: Update from tzdata2009i.
2579 * timezone/antarctica: Likewise.
2580 * timezone/asia: Likewise.
2581 * timezone/australasia: Likewise.
2582 * timezone/backward: Likewise.
2583 * timezone/etcetera: Likewise.
2584 * timezone/europe: Likewise.
2585 * timezone/factory: Likewise.
2586 * timezone/iso3166.tab: Likewise.
2587 * timezone/leapseconds: Likewise.
2588 * timezone/northamerica: Likewise.
2589 * timezone/pacificnew: Likewise.
2590 * timezone/solar87: Likewise.
2591 * timezone/solar88: Likewise.
2592 * timezone/solar89: Likewise.
2593 * timezone/southamerica: Likewise.
2594 * timezone/systemv: Likewise.
2595 * timezone/yearistype: Likewise.
2596 * timezone/zone.tab: Likewise.
2598 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2600 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2601 STT_GNU_IFUNC symbol or in 8 into type_class.
2603 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2604 instead of Elf64_Addr.
2606 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2608 * po/sv.po: Update from translation team.
2611 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2612 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2613 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2616 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2618 * Versions.def: Add GLIBC_2.11 for libpthread.
2620 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2622 * resolv/res_send.c (send_dg): Remember we switched to
2623 single-request mode.
2625 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2627 * dlfcn/dlfcn.h: Remove comma at end of enum.
2628 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2630 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2631 parsing mode string.
2633 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2635 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2637 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2639 * sysdeps/x86_64/multiarch/strlen.S: New file.
2640 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2641 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2642 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2645 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2648 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2650 * sysdeps/x86_64/strlen.S: Minor optimizations.
2652 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2654 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2655 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2656 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2657 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2658 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2659 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2660 ifuncmain3.c, ifuncmod3.c,.
2661 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2662 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2663 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2664 ifuncmain4picstatic.
2665 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2666 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2667 ifuncmain3, ifuncmain4.
2668 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2669 $(objpfx)ifuncmain1vispie.out.
2670 (modules-names): Add ifuncmod1 ifuncmod3.
2671 (generated): Add ifuncmain1pie ifuncmain1pie.out
2672 ifuncmain1vispie ifuncmain1vispie.out.
2673 Define rules to build and run the tests.
2674 * elf/ifuncdep1.c: New file.
2675 * elf/ifuncdep1pic.c: New file.
2676 * elf/ifuncdep2.c: New file.
2677 * elf/ifuncdep2pic.c: New file.
2678 * elf/ifuncmain1.c: New file.
2679 * elf/ifuncmain1pic.c: New file.
2680 * elf/ifuncmain1picstatic.c: New file.
2681 * elf/ifuncmain1pie.c: New file.
2682 * elf/ifuncmain1static.c: New file.
2683 * elf/ifuncmain1staticpic.c: New file.
2684 * elf/ifuncmain1vis.c: New file..
2685 * elf/ifuncmain1vispic.c: New file..
2686 * elf/ifuncmain1vispie.c: New file.
2687 * elf/ifuncmain2.c: New file.
2688 * elf/ifuncmain2pic.c: New file.
2689 * elf/ifuncmain2picstatic.c: New file.
2690 * elf/ifuncmain2static.c: New file.
2691 * elf/ifuncmain3.c: New file.
2692 * elf/ifuncmain4.c: New file.
2693 * elf/ifuncmain4picstatic.c: New file.
2694 * elf/ifuncmain4static.c: New file.
2695 * elf/ifuncmod1.c: New file.
2696 * elf/ifuncmod3.c: New file.
2698 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2700 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2702 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2705 * posix/Makefile (routines): Add execvpe.
2706 * posix/Versions: Export execvpe for GLIBC_2.11.
2707 * posix/execvp.c: Now only a wrapper. Move code to...
2708 * posix/execvpe.c: ...here. New file.
2709 * posix/unistd.h: Declare execvpe.
2711 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2713 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2714 for STT_GNU_IFUNC handling for efficiency.
2715 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2717 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2719 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2721 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2723 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2726 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2728 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2730 (__rela_iplt_start): New declaration.
2731 (__rela_iplt_end): Likewise.
2732 (__rel_iplt_start): Likewise.
2733 (__rel_iplt_end): Likewise.
2734 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2735 * elf/elf.h (R_386_IRELATIVE): New macro.
2736 (R_X86_64_IRELATIVE): New macro.
2737 (R_386_NUM): Updated.
2738 (R_X86_64_NUM): Likewise.
2739 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2740 (libc_ifunc_hidden_def): New macro.
2741 * sysdeps/generic/dl-irel.h: New file.
2742 * sysdeps/i386/dl-irel.h: New file.
2743 * sysdeps/x86_64/dl-irel.h: New file.
2744 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2745 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2746 Handle R_386_IRELATIVE.
2747 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2748 (elf_machine_lazy_rela): Likewise.
2749 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2751 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2753 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2755 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2756 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2757 are no differences. If an architecture has bits in CPUID index 1
2758 meaning different things the values for the COMMON_CPUID_INDEX_1
2759 index must not be set.
2760 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2761 (HAS_POPCOUNT): ...this. New macro.
2762 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2763 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2764 to set the value for Intel and AMD architectures.
2765 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2766 INTEL_CPUID_INDEX_1.
2767 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2770 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2772 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2775 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2777 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2778 (__expm1l): Set errno to ERANGE on overflow.
2779 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2780 (__tanl): Set errno to EDOM for ±Inf.
2781 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2782 (__cosl): Set errno to EDOM for ±Inf.
2783 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2784 (__sinl): Set errno to EDOM for ±Inf.
2786 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2788 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2789 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2790 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2792 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2794 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2796 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2798 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2800 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2801 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2802 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2803 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2805 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2806 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2807 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2809 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2810 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2812 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2814 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2815 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2816 is, either do nothing at all if __ASSUME_ACCEPT4, or
2817 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2818 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2819 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2821 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2822 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2823 internal_accept4 in socket directory.
2825 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2827 * sysdeps/ia64/configure.in: New file.
2829 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2832 * sysdeps/ia64/memchr.S: Use speculative load.
2834 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2835 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2838 * sysdeps/i386/__longjmp.S: Add .text.
2839 * sysdeps/x86_64/__longjmp.S: Likewise.
2841 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2843 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2844 __ASSUME_ACCEPT4 for IA-64.
2846 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2848 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2850 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2851 (SOCKOP_accept4): Define.
2853 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2855 Sun approved the change of the license.
2856 * sunrpc/auth_des.c: Replace license text.
2857 * sunrpc/auth_none.c: Likewise.
2858 * sunrpc/auth_unix.c: Likewise.
2859 * sunrpc/authdes_prot.c: Likewise.
2860 * sunrpc/authuxprot.c: Likewise.
2861 * sunrpc/bindrsvprt.c: Likewise.
2862 * sunrpc/clnt_gen.c: Likewise.
2863 * sunrpc/clnt_perr.c: Likewise.
2864 * sunrpc/clnt_raw.c: Likewise.
2865 * sunrpc/clnt_simp.c: Likewise.
2866 * sunrpc/clnt_tcp.c: Likewise.
2867 * sunrpc/clnt_udp.c: Likewise.
2868 * sunrpc/clnt_unix.c: Likewise.
2869 * sunrpc/des_crypt.c: Likewise.
2870 * sunrpc/des_soft.c: Likewise.
2871 * sunrpc/get_myaddr.c: Likewise.
2872 * sunrpc/getrpcport.c: Likewise.
2873 * sunrpc/key_call.c: Likewise.
2874 * sunrpc/key_prot.c: Likewise.
2875 * sunrpc/openchild.c: Likewise.
2876 * sunrpc/pm_getmaps.c: Likewise.
2877 * sunrpc/pm_getport.c: Likewise.
2878 * sunrpc/pmap_clnt.c: Likewise.
2879 * sunrpc/pmap_prot.c: Likewise.
2880 * sunrpc/pmap_prot2.c: Likewise.
2881 * sunrpc/pmap_rmt.c: Likewise.
2882 * sunrpc/rpc/auth.h: Likewise.
2883 * sunrpc/rpc/auth_unix.h: Likewise.
2884 * sunrpc/rpc/clnt.h: Likewise.
2885 * sunrpc/rpc/des_crypt.h: Likewise.
2886 * sunrpc/rpc/key_prot.h: Likewise.
2887 * sunrpc/rpc/netdb.h: Likewise.
2888 * sunrpc/rpc/pmap_clnt.h: Likewise.
2889 * sunrpc/rpc/pmap_prot.h: Likewise.
2890 * sunrpc/rpc/pmap_rmt.h: Likewise.
2891 * sunrpc/rpc/rpc.h: Likewise.
2892 * sunrpc/rpc/rpc_des.h: Likewise.
2893 * sunrpc/rpc/rpc_msg.h: Likewise.
2894 * sunrpc/rpc/svc.h: Likewise.
2895 * sunrpc/rpc/svc_auth.h: Likewise.
2896 * sunrpc/rpc/types.h: Likewise.
2897 * sunrpc/rpc/xdr.h: Likewise.
2898 * sunrpc/rpc_clntout.c: Likewise.
2899 * sunrpc/rpc_cmsg.c: Likewise.
2900 * sunrpc/rpc_common.c: Likewise.
2901 * sunrpc/rpc_cout.c: Likewise.
2902 * sunrpc/rpc_dtable.c: Likewise.
2903 * sunrpc/rpc_hout.c: Likewise.
2904 * sunrpc/rpc_main.c: Likewise.
2905 * sunrpc/rpc_parse.c: Likewise.
2906 * sunrpc/rpc_parse.h: Likewise.
2907 * sunrpc/rpc_prot.c: Likewise.
2908 * sunrpc/rpc_sample.c: Likewise.
2909 * sunrpc/rpc_scan.c: Likewise.
2910 * sunrpc/rpc_scan.h: Likewise.
2911 * sunrpc/rpc_svcout.c: Likewise.
2912 * sunrpc/rpc_tblout.c: Likewise.
2913 * sunrpc/rpc_util.c: Likewise.
2914 * sunrpc/rpc_util.h: Likewise.
2915 * sunrpc/rpcinfo.c: Likewise.
2916 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2917 * sunrpc/rpcsvc/key_prot.x: Likewise.
2918 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2919 * sunrpc/rpcsvc/mount.x: Likewise.
2920 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2921 * sunrpc/rpcsvc/rex.x: Likewise.
2922 * sunrpc/rpcsvc/rstat.x: Likewise.
2923 * sunrpc/rpcsvc/rusers.x: Likewise.
2924 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2925 * sunrpc/rpcsvc/spray.x: Likewise.
2926 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2927 * sunrpc/rtime.c: Likewise.
2928 * sunrpc/svc.c: Likewise.
2929 * sunrpc/svc_auth.c: Likewise.
2930 * sunrpc/svc_authux.c: Likewise.
2931 * sunrpc/svc_raw.c: Likewise.
2932 * sunrpc/svc_run.c: Likewise.
2933 * sunrpc/svc_simple.c: Likewise.
2934 * sunrpc/svc_tcp.c: Likewise.
2935 * sunrpc/svc_udp.c: Likewise.
2936 * sunrpc/svc_unix.c: Likewise.
2937 * sunrpc/svcauth_des.c: Likewise.
2938 * sunrpc/xcrypt.c: Likewise.
2939 * sunrpc/xdr.c: Likewise.
2940 * sunrpc/xdr_array.c: Likewise.
2941 * sunrpc/xdr_float.c: Likewise.
2942 * sunrpc/xdr_mem.c: Likewise.
2943 * sunrpc/xdr_rec.c: Likewise.
2944 * sunrpc/xdr_ref.c: Likewise.
2945 * sunrpc/xdr_sizeof.c: Likewise.
2946 * sunrpc/xdr_stdio.c: Likewise.
2948 * po/da.po: Update from translation team.
2950 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2952 * sysdeps/sh/____longjmp_chk.S: New file.
2953 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2954 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2956 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2957 Ulrich Drepper <drepper@redhat.com>
2959 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2960 (__nscd_cache_search): Assume each entry in the
2961 hash chain needs one hashentry and half of datahead. Use
2962 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2964 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2966 * posix/sys/wait.h: Fix typos. Pretty printing.
2967 * stdlib/stdlib.h: Likewise. Correct comments.
2970 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2972 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2975 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2977 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2978 Use it if we absolutely cannot reach any more correct list elements
2979 because that many do not fit into the currently mapped database.
2981 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2983 * nscd/nscd_helper.c: Include stddef.h.
2984 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2985 in a couple of places. Return NULL if trail is not less than
2986 datasize, don't consider dataheads with length smaller than
2987 offsetof (struct datahead, data) + datalen.
2988 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2989 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2990 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2991 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2992 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2993 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2994 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2996 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2998 (fallocate64): ... to this.
2999 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3001 (fallocate64): ... to this.
3002 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3003 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3004 fallocate64@@GLIBC_2.10.
3005 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3006 fallocate64@@GLIBC_2.11.
3007 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3009 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3010 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3012 * nscd/selinux.c (nscd_avc_destroy): Removed.
3013 * nscd/selinux.h (nscd_avc_destroy): Likewise.
3014 * nscd/nscd.c (termination_handler): Don't call
3017 2009-05-12 Jakub Jelinek <jakub@redhat.com>
3019 * include/atomic.h: Formatting.
3020 (catomic_compare_and_exchange_val_acq): Don't define if already
3021 defined by bits/atomic.h.
3023 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3025 * math/libm-test.inc (expm1_test): Add test for range error.
3027 * Versions.def: Add GLIBC_2.11 for libc.
3028 * debug/Makefile (routines): Add longjmp_chk.
3029 Add rules to build and run tst-longjmp_chk.
3030 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3031 * debug/longjmp_chk.c: New file.
3032 * debug/tst-longjmp_chk.c: New file.
3033 * include/bits/setjmp2.: New file.
3034 * include/stdio.h: Mark __fortify_fail as internal_function.
3035 * setjmp/Makefile (headers): Add bits/setjmp2.h.
3036 * setjmp/bits/setjmp2.h: New file.
3037 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3039 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3041 * sysdeps/i386/____longjmp_chk.S: New file.
3042 * sysdeps/x86_64/____longjmp_chk.S: New file.
3043 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3044 * sysdeps/x86_64/__longjmp.S: Likewise.
3046 * version.h: Bump for 2.11 development.
3048 * elf/check-execstack.c: New file.
3049 * elf/Makefile: Add rules to build and run check-execstack.
3051 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3053 * version.h (VERSION): Bump to 2.10.1.
3055 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3056 compatibility functions.
3057 * nss/getXXent_r.c: Likewise.
3058 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3059 * gshadow/getsgnam_r.c: Likewise.
3060 * gshadow/Version: Remove duplicate entries.
3062 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3063 for recent processor.
3064 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3067 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3069 * version.h (VERSION): Bump for 2.10 release.
3070 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3072 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3073 same place we add ASFLAGS-config.
3075 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3078 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3079 or FORMERR and the other NOERROR, don't raise an error.
3081 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3084 * Makeconfig (+asflags): New variable based upon ASFLAG or
3086 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3087 * config.make.in (asflags-cpu): Add variable based upon
3088 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3091 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3092 recognizes power6 instruction set due to passing -mcpu=power6 from
3093 --with-cpu=power6 when compiling .S files.
3094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3101 2009-05-09 Jakub Jelinek <jakub@redhat.com>
3103 * string/stratcliff.c (do_test): Test for zero length
3104 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3105 at the end of the page.
3107 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3109 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3111 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3114 * po/da.po: Update from translation team.
3116 2009-05-05 Jakub Jelinek <jakub@redhat.com>
3118 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3119 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3121 2009-05-05 Ulrich Drepper <drepper@redhat.com>
3123 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3124 and READ_IMPLIES_EXEC.
3126 2009-05-04 Ulrich Drepper <drepper@redhat.com>
3128 * po/da.po: Update from translation team.
3130 2009-04-29 Jakub Jelinek <jakub@redhat.com>
3132 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3135 2009-04-27 Jakub Jelinek <jakub@redhat.com>
3137 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3138 to MAP_ANON in PROT_NONE mmap64 call.
3139 (open_archive): Likewise.
3140 (file_data_available_p): Use mmap64 instead of mremap.
3141 (enlarge_archive): Likewise. Update head if ah->addr changed.
3142 Attempt to reserve address space after mmap64 region.
3144 2009-04-26 Ulrich Drepper <drepper@redhat.com>
3146 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3147 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3148 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3150 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3151 atanh should set ERANGE.
3154 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3155 result of lookup to make call to implement STT_GNU_IFUNC.
3156 (_dl_profile_fixup): Likewise.
3157 Patch by H.J. Lu <hjl.tools@gmail.com>.
3159 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3162 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3165 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3166 label if it is not used.
3168 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3169 of gmon_hist_hdr and gmon_hdr structures and use them.
3170 * elf/sprof.c: Likewise.
3172 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3175 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3177 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3180 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3181 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3183 (iruserok_af): Use ss_family instead of casts.
3185 * gmon/gmon.c (write_hist): Define real-type variant of
3186 gmon_hist_hdr structure and use it.
3187 (write_gmon): Likewise for gmon_hdr.
3189 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3190 function if we are not going to define it.
3191 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3193 * inet/inet6_option.c (option_alloc): Add temporary variable to
3196 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3197 name of VTable element.
3198 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3199 * libio/iovsscanf.c: Likewise.
3200 * libio/vasprintf.c: Likewise.
3201 * libio/vsnprintf.c: Likewise.
3202 * stdio-common/isoc99_vsscanf.c: Likewise.
3203 * stdlib/strfmon_l.c: Likewise.
3204 * debug/vasprintf_chk.c: Likewise.
3205 * debug/vsnprintf_chk.c: Likewise.
3206 * debug/vsprintf_chk.c: Likewise.
3208 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3211 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3213 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3215 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3217 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3219 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3220 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3221 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3222 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3223 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3224 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3225 * math/libm-test.inc: Add tests for errno after tan calls with
3228 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3229 errno value vor pow(+-0,neg).
3230 * math/libm-test.inc (pow_test): Add tests for errno value for
3233 * math/w_fmod.c: Also handle x=±Inf as error.
3234 * math/w_fmodf.c: Likewise.
3235 * math/w_fmodl.c: Likewise.
3236 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3239 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3240 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3241 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3242 * sysdeps/i386/fpu/s_sin.S: Likewise.
3243 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3244 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3245 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3246 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3247 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3248 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3249 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3250 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3251 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3252 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3255 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3256 ERANGE for underflows.
3257 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3259 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3262 * libio/tst-widetext.input: Remove surrogates.
3264 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3266 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3267 for lgamma should set errno to ERANGE, not EDOM.
3268 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3270 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3273 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3276 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3277 space when temporarily mapping the whole content of the old file.
3280 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3283 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3285 * iconvdata/sjis.c (BODY): Don't advance inptr before
3286 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3287 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3290 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3292 * locale/locarchive.h (struct locarhandle): Rename len field to
3293 mmaped and add new reserved field.
3294 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3295 (create_archive): Reserve address space and then map file into it.
3296 (open_archive): Likewise.
3297 (file_data_available_p): New function.
3298 (compare_from_file): New function.
3299 (close_archive): Adjust to member name changes.
3300 (add_locale): Before comparing locale data, check it is mapped.
3301 Otherwise fall back to reading from the file.
3303 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3305 * stdio-common/psiginfo.c: Include <errno.h>.
3307 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3310 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3311 to get consistency between 32 and 64 bit architectures.
3314 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3315 directory for dummy syscall rules.
3316 Patch by Chris Steinbroner <hesh@pobox.com>.
3318 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3321 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3324 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3326 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3327 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3329 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3331 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3332 data from vector to temporary buffer and call PWRITEV after it
3333 instead of vice versa.
3334 * sysdeps/posix/preadv.c: Fix up comment.
3335 * misc/preadv.c: Likewise.
3336 * misc/preadv64.c: Likewise.
3337 * misc/pwritev.c: Likewise.
3338 * misc/pwritev64.c: Likewise.
3339 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3341 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3343 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3345 * shadow/Makefile (tests): Add tst-shadow.
3346 * shadow/tst-shadow.c: New file.
3349 * gshadow/Makefile: New file.
3350 * gshadow/Versions: New file.
3351 * gshadow/fgetsgent.c: New file.
3352 * gshadow/fgetsgent_r.c: New file.
3353 * gshadow/getsgent.c: New file.
3354 * gshadow/getsgent_r.c: New file.
3355 * gshadow/getsgnam.c: New file.
3356 * gshadow/getsgnam_r.c: New file.
3357 * gshadow/gshadow.h: New file.
3358 * gshadow/putsgent.c: New file.
3359 * gshadow/sgetsgent.c: New file.
3360 * gshadow/sgetsgent_r.c: New file.
3361 * gshadow/tst-gshadow.c: New file.
3362 * include/gshadow.h: New file.
3363 * Makeconfig (all-subdirs): Add gshadow.
3364 * Makefile (installed-headers): Add gshadow/gshadow.h.
3365 * nss/Makefile (databases): Add sgrp.
3366 * nss/Versions: Add gshadow functions as private exports.
3367 * nss/nsswitch.conf: Add gshadow entry.
3368 * nss/sgrp-lookup.c: New file.
3369 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3370 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3371 * nss/nss_files/files-sgrp.c: New file.
3372 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3373 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3375 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3377 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3378 * stdio-common/reg-modifier.c: Likewise.
3380 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3382 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3385 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3388 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3389 headers up to 2.6.30.
3391 * po/ca.po: Update from translation team.
3393 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3396 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3397 an object that uses static TLS if the TLS modid is higher than the
3398 reserve we always allocate. At least for multi-threaded code.
3400 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3402 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3403 Numerically stable check for valid width.
3405 * locale/programs/locarchive.c (open_archive): Map the entire file
3406 and not just the administrative data.
3407 (add_locale): When we find a hash sum match compare the content
3410 * malloc/malloc.c (malloc_info): Output address space information.
3412 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3414 * malloc/malloc.c (malloc_info): Also output system memory information.
3416 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3417 architectures have preadv/pwritev in 2.6.30.
3419 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3420 * sysdeps/posix/readv.c: Likewise.
3421 Reported by Markus Armbruster <armbru@redhat.com>.
3423 * malloc/hooks.c (top_check): Force hook value into register.
3425 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3427 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3428 calls to _dl_relocate_object.
3430 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3433 * malloc/malloc.c (force_reg): Define.
3434 (sYSMALLOc): Load hook variable into variable
3435 before test and force into register.
3436 (sYSTRIm): Likewise.
3437 (public_mALLOc): Force hook value into register.
3438 (public_fREe): Likewise.
3439 (public_rEALLOc): Likewise.
3440 (public_mEMALIGn): Likewise.
3441 (public_vALLOc): Likewise.
3442 (public_pVALLOc): Likewise.
3443 (public_cALLOc): Likewise.
3444 (__posix_memalign): Likewise.
3445 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3446 before test and force into register.
3447 * malloc/hooks.c (top_check): Likewise.
3448 (public_sET_STATe): Pretty printing.
3450 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3451 in case we only receive one reply in single-request mode.
3453 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3455 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3456 are dlopened in statically linked program even for __LM_ID_CALLER.
3458 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3460 * resolv/res_send.c (send_dg): Don't switch into single-request
3461 mode if we already are in it.
3463 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3465 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3466 are always at least 4 bytes in the returned line.
3468 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3470 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3471 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3472 instead of 8K. Stop searching in /proc/stat after hitting first
3473 line not starting with cpu.
3474 (next_line): Truncate too long
3475 lines at buffer size * 3/4 instead of pretending there were line
3476 breaks inside of large lines.
3478 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3480 * sysdeps/x86_64/mp_clz_tab.c: New file.
3482 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3483 Ulrich Drepper <drepper@redhat.com>
3485 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3486 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3487 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3489 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3491 * sysdeps/sh/libc-tls.c: New file.
3493 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3495 2009-04-14 Roland McGrath <roland@redhat.com>
3497 * elf/elf.h: Add various missing ARM constants, to match binutils.
3499 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3501 Optimizations from GMP.
3502 * sysdeps/x86_64/add_n.S: New file.
3503 * sysdeps/x86_64/addmul_1.S: New file.
3504 * sysdeps/x86_64/lshift.S: New file.
3505 * sysdeps/x86_64/mul_1.S: New file.
3506 * sysdeps/x86_64/rshift.S: New file.
3507 * sysdeps/x86_64/sub_n.S: New file.
3508 * sysdeps/x86_64/submul_1.S: New file.
3510 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3512 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3513 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3514 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3515 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3517 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3519 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3522 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3524 * sysdeps/x86-64/strrchr.S: New file.
3526 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3528 * stdio-common/printf.h (struct printf_info): Add user element.
3529 New types printf_arginfo_size_function, printf_va_arg_function.
3530 Declare register_printf_specifier, register_printf_modifier,
3531 register_printf_type.
3532 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3533 (union printf_arg): Add pa_user element.
3534 Adjust __printf_arginfo_table type.
3535 Add __printf_va_arg_table, __printf_modifier_table,
3536 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3538 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3539 If registered arginfo call failed try normal specifier.
3540 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3542 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3543 * stdio-common/Versions: Export register_printf_modifier,
3544 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3545 * stdio-common/reg-modifier.c: New file.
3546 * stdio-common/reg-type.c: New file.
3547 * stdio-common/reg-printf.c (__register_printf_specifier): New
3548 function. Mostly the old __register_printf_function function but
3549 uses locking and type of third parameter changed.
3550 (__register_printf_function): Implement using
3551 __register_printf_specifier.
3552 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3553 calls to arginfo functions. Allocate enough memory for user-defined
3554 types. Call new va_arg functions to get user-defined types.
3555 Try installed handlers even for existing format specifiers first.
3557 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3559 * sysdeps/x86_64/rawmemchr.S: New file.
3561 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3562 Simplified code and possible copy problem fixed.
3564 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3565 function if it is not defined. Add some necessary casts.
3566 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3568 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3569 have preadv/pwritev in 2.6.30.
3571 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3573 * malloc/malloc.c (malloc_info): New function.
3574 * malloc/malloc.h: Declare it.
3575 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3577 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3580 * malloc/malloc.c (_int_realloc): Add parameter with old block
3581 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3583 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3585 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3587 * sysdeps/x86_64/strchrnul.S: New file.
3589 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3590 depending libcrypt on -lfreebl3.
3592 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3593 preadv/pwritev in 2.6.30.
3595 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3596 instead of __strcasecmp.
3598 * string/stratcliff.c (do_test): Add memchr tests..
3599 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3600 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3601 first read quad word.
3603 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3605 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3606 * string/tst-svc.input: Add new test case.
3607 * string/tst-svc.expect: Adjust.
3608 * string/Makefile: Don't ignore tst-svc error.
3610 * sysdeps/x86_64/memchr.S: New file.
3612 * resolv/resolv.h (RES_SNGLKUP): Define.
3613 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3614 * resolv/res_send.c (send_dg): If we sent two requests at once and
3615 only get one reply before timeout switch to mode where we send the
3616 second request only after the first answer has been received.
3618 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3620 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3621 * sysdeps/x86_64/strchr.S: Likewise.
3623 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3625 * configure.in: We need to test for the compiler earlier.
3627 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3628 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3630 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3631 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3633 * misc/preadv.c: New file.
3634 * misc/preadv64.c: New file.
3635 * misc/pwritev.c: New file.
3636 * misc/pwritev64.c: New file.
3637 * sysdeps/posx/preadv.c: New file.
3638 * sysdeps/posx/preadv64.c: New file.
3639 * sysdeps/posx/pwritev.c: New file.
3640 * sysdeps/posx/pwritev64.c: New file.
3641 * sysdeps/unix/sysv/linux/preadv.c: New file.
3642 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3643 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3644 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3645 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3646 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3648 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3650 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3652 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3653 __ASSUME_COMPLETE_READV_WRITEV.
3654 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3655 with modern kernels.
3656 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3658 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3659 to free a possible malloced buffer in case of cancellation.
3660 * sysdeps/posix/writev.c: Likewise for write.
3662 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3664 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3666 * configure.in: Recognize --enable-nss-crypt.
3667 * config.make.in: Add nss-crypt entry.
3668 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3669 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3670 and include path for NSS directory to compiler for md5-crypt,
3671 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3672 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3673 function implementation, use NSS. Introduce wrappers around the
3674 hash function calls. Little code size optimization.
3675 * crypt/sha256-crypt.c: Likewise.
3676 * crypt/sha512-crypt.c: Likewise.
3677 * scripts/check-local-headers.sh: Ignore nss3 directory.
3679 * configure.in: Rename pic_default to libc_cv_pic_default.
3680 * config.make.in: Likewise.
3682 2009-04-01 Roland McGrath <roland@redhat.com>
3684 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3685 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3686 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3687 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3688 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3689 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3690 (R_SPARC_NUM): Update.
3691 From Dave Miller <davem@davemloft.net>.
3693 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3695 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3697 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3699 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3700 those which are used.
3701 * elf/dl-addr.c: Likewise.
3702 * elf/dl-caller.c: Likewise.
3703 * elf/dl-fini.c: Likewise.
3704 * elf/dl-iteratephdr.c: Likewise.
3705 * elf/dl-libc.c: Likewise.
3706 * elf/dl-load.c: Likewise.
3707 * elf/dl-support.c: Likewise.
3708 * elf/dl-sym.c: Likewise.
3709 * elf/rtld.c: Likewise.
3710 * sysdeps/generic/ldsodefs.h: Likewise.
3712 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3713 * elf/dl-minimal.c: Likewise.
3714 * elf/dl-misc.c: Likewise.
3715 * elf/rtld.c: Likewise.
3716 * sysdeps/generic/ldsodefs.h: Likewise.
3718 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3720 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3721 Avoid reuse of complex expression.
3723 * po/fr.po: Update from translation team.
3725 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3727 * include/dirent.h: Yet more changes to match sort function type
3729 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3730 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3731 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3733 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3735 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3737 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3739 * nscd/connections.c (restart): Try to preserve the process name
3740 by reading the /proc/self/exe symlink and using the return name.
3741 Patch by Jeff Bastian <jbastian@redhat.com>.
3743 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3746 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3747 if we are not loading a new audit library.
3748 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3749 Only use profiling trampoline for auditing if we are not relocating
3751 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3752 * elf/rtld.c: Likewise.
3753 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3755 * elf/rtld.c (dl_main): Extend help message for --audit option.
3758 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3759 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3760 * dirent/alphasort.c: Adjust implementation to type change.
3761 * dirent/alphasort64.c: Likewise.
3762 * dirent/scandir.c: Likewise.
3763 * dirent/versionsort.c: Likewise.
3764 * dirent/versionsort64.c: Likewise.
3765 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3767 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3771 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3772 correctly. Set segleft member in output as required.
3773 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3774 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3777 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3778 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3779 * inet/Makefile (tests): Add tst-inet6_rth.
3780 * inet/tst-inet6_rth.c: New file.
3783 * string/strlen.c (strlen): Fix omission in the expression to test
3786 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3788 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3790 * elf/dl-runtime.c (reloc_offset): Define.
3791 (reloc_index): Define.
3792 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3793 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3794 computing index from reloc_offset.
3795 (_dl_call_pltexit): Likewise.
3796 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3797 the relocation index to _dl_fixup.
3798 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3800 * sysdeps/x86_64/dl-runtime.c: New file.
3803 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3804 alignment of La_x86_64_regs. Store xmm parameters.
3805 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3808 * string/strverscmp.c (__strverscmp): Fix case of different digits
3809 in fractional part of string.
3810 Patch by Jingyu Liu <jyliu@fortinet.com>.
3811 * string/Makefile (tests): Add tst-svc2.
3812 * string/tst-svc2.c: New file.
3814 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3816 * locale/iso-639.def: Add Min Nan.
3818 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3821 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3823 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3825 * elf/dl-sysdep.c (auxvars): Compress data structure.
3827 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3828 STT_GNU_IFUNC handling.
3829 (elf_machine_rela): Likewise.
3831 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3833 * config.h.in (USE_MULTIARCH): Define.
3834 * configure.in: Handle --enable-multi-arch.
3835 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3836 (_dl_fixup_profile): Likewise.
3837 * elf/do-lookup.c (dl_lookup_x): Likewise.
3838 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3839 * elf/elf.h (STT_GNU_IFUNC): Define.
3840 * include/libc-symbols.h (libc_ifunc): Define.
3841 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3842 framework in init-arch.h to get CPUID values.
3843 * sysdeps/x86_64/multiarch/Makefile: New file.
3844 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3845 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3846 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3848 * config.make.in (experimental-malloc): Define.
3849 * configure.in: Handle --enable-experimental-malloc.
3850 * malloc/Makefile: Handle experimental-malloc flag.
3851 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3852 * malloc/arena.c: Likewise.
3853 * malloc/hooks.c: Likewise.
3854 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3856 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3858 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3859 prediction. A few size optimizations.
3861 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3863 * time/tzset.c: Optimize a bit for size.
3865 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3867 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3868 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3870 * elf/sprof.c: Avoid warning about multi-line comment.
3872 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3874 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3876 * time/tst-posixtz.c: Add tests for quoted timezone names.
3878 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3880 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3881 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3882 200809L instead of 200112L.
3883 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3884 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3886 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3887 instead of __quick_exit_funcs to __run_exit_handlers.
3888 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3889 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3890 (__cxa_at_quick_exit): Remove attribute_hidden.
3891 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3892 to __run_exit_handlers.
3893 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3896 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3898 * po/id.po: Update from translation team.
3900 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3903 .machine push; .machine "power6" and .machine pop around mtfsf
3904 insns outside of _ARCH_PWR6 define.
3905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3910 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3911 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3912 relax_fenv_state): Likewise.
3914 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3916 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3918 (static-only-routines): Add at_quick_exit.
3919 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3921 * stdlib/quick_exit.c: New file.
3922 * stdlib/at_quick_exit.c: New file.
3923 * stdlib/cxa_at_quick_exit.c: New file.
3924 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3926 (__internal_atexit): New function.
3927 (__new_exitfn): Now takes parameter to point to the list to use.
3928 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3929 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3930 (exit): ...here. Just call __run_exit_handlers appropriately.
3931 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3932 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3933 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3934 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3936 * po/id.po: Update from translation team.
3938 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3940 * po/ru.po: Update from translation team.
3942 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3944 * po/nl.po: Update from translation team.
3946 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3948 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3949 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3950 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3951 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3952 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3953 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3954 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3956 * po/pl.po: Update from translation team.
3958 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3961 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3962 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3963 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3964 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3965 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3966 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3967 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3969 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3970 Add fallocate and fallocate64.
3972 * io/fcntl.h: Pretty printing.
3974 2009-03-02 Richard Guenther <rguenther@suse.de>
3976 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3977 attribute also for non-C99 inline semantics variant.
3979 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3981 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3982 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3983 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3984 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3990 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3992 * po/cs.po: Update from translation team.
3994 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3996 * po/bg.po: Update from translation team.
3997 * po/sv.po: Likewise.
3998 * po/fi.po: Likewise.
3999 * po/vi.po: Likewise.
4001 2009-02-27 Roland McGrath <roland@redhat.com>
4003 * Makeconfig (%.v.i): Depend on Makeconfig.
4004 Exclude % lines from initial #-comment removal.
4006 2009-02-27 Ulrich Drepper <drepper@redhat.com>
4008 * po/ko.po: Update from translation team.
4010 2009-02-26 Roland McGrath <roland@redhat.com>
4012 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4013 avoids unused warning.
4015 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
4016 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4018 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4019 sys/ucontext.h and asm/elf.h. Include sys/user.h.
4020 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4021 and asm/user.h. Include asm/ptrace.h.
4022 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4023 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4024 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4026 (start_thread): Don't undefine.
4027 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4030 2009-02-26 Ulrich Drepper <drepper@redhat.com>
4032 * wctype/wctype.h: The *_l functions are in POSIX 2008.
4033 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4034 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4035 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4036 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4038 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4039 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4040 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4041 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4042 _SC_THREAD_ROBUST_PRIO_PROTECT.
4043 * posix/unistd.h: fexecve is in POSIX 2008.
4044 * time/time.h: strftime_l is in POSIX 2008.
4045 * io/sys/stat.h: futimens is in POSIX 2008.
4046 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4047 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4048 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4049 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4050 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4051 open_memstream, and vdprintf are in POSIX 2008.
4053 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4055 * include/features.h: Define macros for XPG7/POSIX 2008.
4056 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4057 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4059 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4060 * locale/xlocale.h: Define locale_t type.
4061 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4062 in POSIX 2008. Don't define locale_t here.
4063 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4064 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4065 UTIME_OMIT only with __USE_ATFILE.
4066 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4067 * stdio-common/psiginfo.c: New file.
4068 * stdio-common/psiginfo-data.h: New file.
4069 * stdio-common/psiginfo-define.h: New file.
4070 * stdio-common/Makefile (routines): Add psiginfo.
4071 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4072 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4073 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4074 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4075 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4076 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4077 * io/sys/stat.h: Move mknodat definition into same conditional as
4079 * time/sys/time.h: futimesat is not among the functions accepted
4080 into the POSIX standard.
4082 * include/features.h: If no feature selection given and we select
4083 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4084 * posix/Versions: Export __posix_getopt.
4085 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4086 Use it to alternatively initialize __posixly_correct.
4087 (_getopt_internal_r): Take addition parameter. Pass on to
4089 (_getopt_internal): Take addition parameter. Pass on to
4091 (getopt): Pass additional zero to _getopt_internal.
4092 (__posix_getopt): New function.
4093 * posix/getopt.h: Add redirection for getopt.
4094 * posix/getopt1.c (getopt_long): Pass additional zero to
4096 (getopt_long_only): Likewise.
4097 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4098 (_getopt_long_only_r): Likewise.
4099 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4102 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4104 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4105 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4106 * sysdeps/posix/sysconf.c (__sysconf): Handle
4107 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4108 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4110 2009-02-24 Roland McGrath <roland@redhat.com>
4113 * README.template: Reworded not to use substituted version number.
4115 * README: ... here (no longer generated).
4116 * Makefile (README): Target removed.
4118 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4120 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4121 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4124 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4126 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4128 2009-02-22 Ulrich Drepper <drepper@redhat.com>
4130 * po/bg.po: Update from translation team.
4132 2009-02-16 Jakub Jelinek <jakub@redhat.com>
4134 * stdlib/monetary.h: Uglify function parameter names.
4135 * sunrpc/rpc/pmap_clnt.h: Likewise.
4136 * sunrpc/rpc/svc.h: Likewise.
4137 * sunrpc/rpc/xdr.h: Likewise.
4138 * sunrpc/rpc/clnt.h: Likewise.
4139 * resolv/netdb.h: Likewise.
4140 * resolv/arpa/nameser.h: Likewise.
4141 * resolv/resolv.h: Likewise.
4142 * argp/argp.h: Likewise.
4143 * locale/langinfo.h: Likewise.
4144 * io/sys/stat.h: Likewise.
4145 * posix/spawn.h: Likewise.
4146 * nis/rpcsvc/nislib.h: Likewise.
4147 * malloc/obstack.h: Likewise.
4148 * sysdeps/ia64/bits/link.h: Likewise.
4149 * sysdeps/i386/bits/link.h: Likewise.
4150 * sysdeps/s390/bits/link.h: Likewise.
4151 * sysdeps/powerpc/bits/link.h: Likewise.
4152 * sysdeps/x86_64/bits/link.h: Likewise.
4153 * sysdeps/sparc/bits/link.h: Likewise.
4154 * sysdeps/sh/bits/link.h: Likewise.
4155 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4156 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4157 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4158 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4160 2008-12-01 Fredrik Unger <fred@tree.se>
4162 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4163 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4164 _FP_UNPACK_RAW_2, fix up first argument.
4166 2009-02-15 Ulrich Drepper <drepper@redhat.com>
4168 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4169 (GET_NPROCS_PARSER): Change parameters and use next_line.
4170 (__get_nprocs): Rewrite to not use stdio routines.
4171 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4172 Change parameters and use next_line.
4174 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4177 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4178 Change mempool_alloc prototype.
4179 * nscd/mem.c (gc): Don't handle mem_in_flight.
4180 (mempool_alloc): Third parameter now only indicates whether this is the
4181 first call (to allocate data) or not. If it is, get db rdlock.
4182 Release it on error. Don't handle mem_in_flight.
4183 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4184 Adjust third parameter of mempool_alloc calls.
4185 Nothing to do here in case mempool_alloc fails.
4186 Avoid local variable shadowing parameter. No need to get db rdlock
4187 before calling cache_add.
4188 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4189 no mem_in_flight array anymore.
4190 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4191 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4192 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4193 in case mempool_alloc fails. No need to get db rdlock before calling
4195 * nscd/hstcache.c (cache_addhst): Likewise.
4196 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4197 * nscd/servicescache.c (cache_addserv): Likewise.
4198 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4200 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4202 * po/lt.po: Update from translation team.
4204 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4206 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4207 defined, allow additional data to be added using the optional
4208 MORE_ELF_HEADER_DATA macro.
4209 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4210 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4212 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4214 * include/atomic.h: Define catomic_and if not already defined.
4215 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4216 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4218 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4220 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4222 (_int_realloc): Likewise. Third argument is now padded size
4223 All _int_* functions are now static.
4225 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4226 * malloc/arena.c: Likewise.
4227 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4230 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4233 * malloc/malloc.c: Add branch prediction for use of the hooks.
4235 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4237 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4240 * bits/confname.h: Add SUSv7 macros for getconf environments.
4241 * bits/environments.h: Likewise.
4242 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4243 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4244 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4245 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4246 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4247 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4248 * posix/getconf.c: Likewise.
4249 * posix/sysconf.c: Likewise.
4250 * sysdeps/posix/sysconf.c: Likewise.
4251 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4254 2009-01-16 Petr Baudis <pasky@suse.cz>
4257 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4258 even if we currently have zero nscount.
4260 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4263 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4264 the input line is too long.
4266 * po/Makefile (libc.pot): Add f_print as function taking c-format
4269 * debug/xtrace.sh: Unify translatable messages.
4270 * elf/ldd.bash.in: Likewise.
4271 * elf/sprof.c: Likewise.
4272 * locale/programs/locale.c: Likewise.
4273 * malloc/memusage.sh: Likewise.
4274 * nss/getent.c: Likewise.
4276 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4278 * debug/pcprofiledump.c (print_version,
4279 argp_program_version_hook): New function.
4280 * elf/ldconfig.c (more_help): New function.
4282 * elf/sln.c (usage): New function.
4283 (main): Support --help and --version.
4284 * malloc/memusagestat.c (print_version): New function.
4285 (argp_program_version_hook): New variable.
4286 * nscd/nscd.c (more_help): New function.
4288 * posix/getconf.c (main): Send --version output to stdout.
4290 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4291 arguments. All callers changed.
4292 (print_version): New function.
4293 (parseargs): Support --help and --version.
4294 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4296 (print_version): New function.
4297 (main): Use getopt_long. Support --help and --version.
4298 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4301 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4303 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4304 (update_data): Fix handling of wrapping back
4305 to the beginning of the buffer.
4308 * stdio-common/psignal.c (psignal): Fix test for empty string.
4310 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4312 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4313 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4314 move _null_auth to .rodata.
4316 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4319 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4321 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4322 today than when the original code was written. Use larger
4323 buffers. This also makes it unnecessary to have stat information,
4324 if this causes extra efforts.
4325 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4328 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4330 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4332 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4333 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4334 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4335 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4336 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4337 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4339 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4341 * po/ru.po: Update from translation team.
4343 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4345 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4346 Add _tid slot to maintain consistency with kernel.
4348 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4350 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4351 incomplete characters at end of input buffer.
4352 * libio/Makefile (tests): Add tst-fgetwc.
4353 * libio/tst-fgetwc.c: New file.
4354 * libio/tst-fgetwc.input: New file.
4356 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4358 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4360 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4363 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4364 *OUTBUFSTART unless the whole output fit into the buffer.
4365 * iconv/Makefile (tests): Add tst-iconv4.
4366 * iconv/tst-iconv4.c: New file.
4368 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4370 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4371 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4373 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4375 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4376 newer linker scripts.
4378 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4381 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4382 inotify_rm_watch should have type int.
4384 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4386 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4387 Make aligned_restore_vmx a local symbol.
4388 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4391 2009-01-30 Andreas Jaeger <aj@suse.de>
4393 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4394 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4395 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4396 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4397 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4398 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4399 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4401 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4404 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4405 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4407 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4411 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4413 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4415 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4417 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4418 memcpy instead of memcmp.
4419 (_dl_setup_pointer_guard): Likewise.
4421 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4423 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4424 manipulated brk, use malloc_printerr.
4425 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4428 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4430 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4431 rindex): For C++ add inlines so that they can be recognized as
4433 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4435 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4436 Jakub Jelinek <jakub@redhat.com>
4438 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4439 * wcsmbs/wchar.h: Likewise.
4441 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4443 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4444 (stackinfo_sub_sp): Define.
4446 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4449 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4450 * include/alloca.h (alloca_account): Define.
4451 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4452 (stackinfo_sub_sp): Define.
4454 * nscd/connections.c (nscd_init): If database file access fails
4455 check whether this is due to permission problems and bail in that
4459 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4460 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4462 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4464 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4465 Add "t" to clobber list.
4466 (INTERNAL_SYSCALL_NCS): Likewise.
4468 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4470 * nss/getent.c (print_networks): Don't print comma between aliases.
4472 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4474 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4476 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4478 * misc/Makefile (tests): Add bug-hsearch1.
4479 * misc/bug-hsearch1.c: New file.
4481 2009-01-22 Roland McGrath <roland@redhat.com>
4483 * Makeconfig (%.v.i): Strip trailing # comments,
4484 not only whole-line comments.
4486 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4488 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4489 one parameter. If non-NULL use it to initialize return value.
4490 (_dl_setup_pointer_guard): New function.
4491 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4492 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4493 * elf/rtld.c (security_init): Pass _dl_random to
4494 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4496 * elf/dl-sysdep.c (_dl_random): New variable.
4497 (_dl_sysdep_start): Handle AT_RANDOM.
4498 (_dl_show_auxv): Likewise.
4499 * elf/dl-support.c (_dl_random): New variable.
4500 (_dl_aux_init): Handle AT_RANDOM.
4501 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4502 to _dl_setup_stack_chk_guard.
4504 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4506 2009-01-10 Roland McGrath <roland@redhat.com>
4508 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4510 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4512 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4515 * nss/nss_files/files-parse.c (strtou32): New function.
4516 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4517 across 32-bit and 64-bit platforms.
4518 (INT_FIELD_MAYBE_NULL): Likewise.
4520 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4523 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4524 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4525 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4528 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4531 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4532 being NULL also if there are no backreferences.
4533 * posix/rxspencer/tests: Add testcases.
4535 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4538 * posix/bug-regex17.c: Add testcases.
4539 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4542 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4544 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4545 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4546 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4547 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4549 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4550 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4551 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4552 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4553 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4554 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4556 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4558 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4559 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4560 re_string_skip_chars, re_string_reconstruct): Likewise.
4561 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4563 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4565 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4566 adjust the buffer alignment.
4568 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4570 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4571 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4574 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4575 flavor to description only when flavor is not NULL.
4577 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4578 mutex after SIGIO/SIGURG lookup loop.
4580 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4582 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4584 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4586 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4589 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4591 * sysdeps/unix/sysv/linux/kernel-features.h
4592 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4594 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4595 if no output is written.
4597 * version.h: Bump to 2.10 development.
4599 * posix/getconf.c: Update copyright year.
4600 * nss/getent.c: Likewise.
4601 * iconv/iconvconfig.c: Likewise.
4602 * iconv/iconv_prog.c: Likewise.
4603 * elf/ldconfig.c: Likewise.
4604 * catgets/gencat.c: Likewise.
4605 * csu/version.c: Likewise.
4606 * elf/ldd.bash.in: Likewise.
4607 * elf/sprof.c (print_version): Likewise.
4608 * locale/programs/locale.c: Likewise.
4609 * locale/programs/localedef.c: Likewise.
4610 * nscd/nscd.c (print_version): Likewise.
4611 * debug/xtrace.sh: Likewise.
4612 * malloc/memusage.sh: Likewise.
4613 * malloc/mtrace.pl: Likewise.
4614 * debug/catchsegv.sh: Likewise.
4616 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4618 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4621 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4623 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4624 gethostbyname4_r function call succeeded, just leave the loop.
4627 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4629 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4630 * wctype/Makefile (tests): Add bug-wctypeh.
4631 * wctype/bug-wctypeh.c: New file.
4633 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4634 LOCALDOMAIN is defined.
4635 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4637 * sysdeps/x86_64/bits/select.h: New file.
4639 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4641 2008-12-21 Bruno Haible <bruno@clisp.org>
4644 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4645 if no output is written.
4647 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4649 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4650 libc internal symbol __dup2 to avoid access through the PLT.
4652 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4655 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4656 available only for __USE_GNU.
4658 * inet/Makefile (tests): Add tst-getni2.
4659 * inet/tst-getni2.c: New file.
4662 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4663 NULL when NI_NAMEREQD is set.
4664 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4665 * inet/Makefile (tests): Add tst-getni1.
4666 * inet/tst-getni1.c: New file.
4668 2008-12-03 Petr Baudis <pasky@suse.cz>
4671 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4672 instead of prune_lock.
4673 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4674 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4676 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4678 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4681 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4684 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4685 after reading name server list.
4688 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4689 handling for host name aliases.
4691 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4693 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4694 instead of doing things manually.
4696 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4698 * posix/regex_internal.h (build_wcs_upper_buffer):
4699 Return type is reg_error_t.
4701 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4703 * posix/globtest.sh: Use mktemp to create temporary file and
4706 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4708 (__CPU_CLR_S): Likewise.
4709 (__CPU_ISSET_S): Likewise.
4711 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4712 Ulrich Drepper <drepper@redhat.com>
4714 * scripts/firstversion.awk: Use custom comparison function to compare
4716 * scripts/versions.awk: Use sort invocation which can handle
4717 multi-digit sub-version numbers.
4719 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4721 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4722 * locale/iso-639.def: Add Chhattisgarhi entry.
4724 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4726 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4728 (_nss_dns_gethostbyname4_r): Likewise.
4729 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4730 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4731 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4732 the no_data variable.
4734 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4735 information at the correct index.
4737 * socket/sys/socket.h: Declare accept4.
4738 * socket/accept4.c: New file.
4739 * sysdeps/unix/sysv/linux/accept4.c: New file.
4740 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4741 * socket/Makefile (routines): Add accept4.
4742 * socket/Versions: Export accept4 with version GLIBC_2.10.
4743 * socket/paccept.c: Removed.
4744 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4745 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4746 * Versions.def: Define GLIBC_2.10 for libc.
4747 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4749 * nscd/connections.c: Use accept4.
4751 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4753 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4755 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4758 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4760 * stdlib/Makefile (tests): Add tst-unsetenv1.
4761 * stdlib/tst-unsetenv1.c: New file.
4763 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4765 * login/utmp_file.c (file_writable): New variable.
4766 (setutent_file): Don't try to open file for writing.
4767 (pututline_file): Before writing, make descriptor writable if
4770 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4772 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4773 to IPv4 or IPv6 if an interface has been found.
4775 2008-11-26 Roland McGrath <roland@redhat.com>
4777 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4778 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4780 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4781 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4782 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4784 * elf/elf.h (NT_386_IOPERM): New macro.
4785 (NT_PPC_VSX): New macro.
4787 2008-11-25 Roland McGrath <roland@redhat.com>
4789 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4790 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4791 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4792 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4793 Subdirectories moved to ports repository.
4794 * configure.in (base_machine): Remove alpha case.
4796 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4798 * sysdeps/mach/strerror_l.c: New file.
4800 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4803 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4804 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4806 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4807 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4808 (relax_fenv_state): Same as above.
4809 (FPSCR_29): Reserve bit in ISA 2.05.
4810 (FPSCR_NI): Provide define for compat.
4811 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4813 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4815 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4816 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4817 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4818 access to hwcap to account for hwcap size increase to uint64_t.
4819 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4822 (*setcontext): Likewise.
4823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4828 (*setcontext): dynamically select mtfsf insn based on
4829 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4830 increase to uint64_t.
4831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4832 (*swapcontext): dynamically select mtfsf insn based on
4833 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4834 increase to uint64_t.
4835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4840 (*setcontext): dynamically select mtfsf insn based on
4841 PPC_FEATURE_HAS_DFP.
4842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4843 (*swapcontext): dynamically select mtfsf insn based on
4844 PPC_FEATURE_HAS_DFP.
4846 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4848 * version.h: Bump for 2.9 release.
4849 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4852 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4853 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4856 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4859 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4860 unknown request types for now.
4862 2008-11-11 Roland McGrath <roland@redhat.com>
4864 * sysdeps/x86_64/configure: New file.
4866 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4867 * configure: Regenerated.
4869 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4871 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4872 correct instruction to remove the stack frame.
4874 2008-11-03 Michael Matz <matz@suse.de>
4876 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4877 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4879 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4881 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4884 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4885 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4886 of the thread variable instead of void *.
4887 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4888 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4889 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4890 __libc_tsd_define arguments.
4891 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4892 __libc_tsd_address arguments. Remove union hack.
4893 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4894 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4895 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4896 Adjust __libc_tsd_{set,get} arguments.
4897 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4898 __libc_tsd_define arguments.
4899 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4901 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4902 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4903 (LOCALE): Adjust __libc_tsd_define arguments.
4904 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4906 (LOCALE): Adjust __libc_tsd_define arguments.
4907 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4909 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4912 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4914 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4915 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4917 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4920 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4922 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4923 Ulrich Drepper <drepper@redhat.com>
4925 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4926 definition for GCC 3.1 and later.
4928 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4930 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4931 refetch dtv, as it might have changed.
4932 * elf/Makefile: Add rules to build and run tst-tls18.
4933 * elf/tst-tls18.c: New test.
4934 * elf/tst-tlsmod18a.c: New file.
4936 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4939 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4941 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4944 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4947 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4948 Fix length of copy operation.
4950 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4952 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4953 and fix its calling convention.
4955 2008-10-07 Andreas Schwab <schwab@suse.de>
4958 * resolv/res_send.c (send_vc): Fix last change.
4959 (send_dg): Align here as well.
4961 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4963 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4964 return value in case rlimit is RLIM_INFINITY.
4967 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4969 * resource/Makefile (tests): Add bug-ulimit1.
4970 * resource/bug-ulimit1.c: New file.
4973 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4974 without dot. Properly terminate the string with a null byte.
4975 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4978 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4980 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4984 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4986 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4988 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4989 abort if there is no initgroups_dyn function.
4991 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4992 result if any of the queries really provided an answer.
4994 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4996 * po/lt.po: Update from translation team.
4998 2008-10-26 Ulrich Drepper <drepper@redhat.com>
5000 * po/id.po: Update from translation team.
5002 2008-10-24 Ulrich Drepper <drepper@redhat.com>
5004 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5005 Fix tests for existence of second reply.
5007 2008-10-23 Ulrich Drepper <drepper@redhat.com>
5009 * po/id.po: New file.
5010 Contributed by the Indonesian translation team.
5012 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
5014 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5017 2008-10-17 Jakub Jelinek <jakub@redhat.com>
5019 * elf/Makefile: Add rules to build and run tst-tls17.
5020 * elf/tst-tls17.c: New test.
5021 * elf/tst-tlsmod17a.c: New file.
5022 * elf/tst-tlsmod17b.c: Likewise.
5024 2008-10-17 Ulrich Drepper <drepper@redhat.com>
5026 * stdlib/divmod_1.c: Use correct type for dummy variable.
5027 * stdlib/mod_1.c: Likewise.
5029 2008-10-16 Ulrich Drepper <drepper@redhat.com>
5031 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5033 2008-10-16 Jakub Jelinek <jakub@redhat.com>
5035 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5036 __nonnull order for C++.
5037 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5038 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5040 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
5042 * stdlib/longlong.h: Update from GCC.
5044 2008-10-09 Jakub Jelinek <jakub@redhat.com>
5045 David S. Miller <davem@davemloft.net>
5047 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5048 make sure any registers used with 64-bit 'branch-on-register'
5049 instructions have their top 32-bits clear.
5050 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5051 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5053 2008-09-18 Andreas Schwab <schwab@suse.de>
5056 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5057 Properly handle partial reads.
5059 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5061 * elf/elf.h (STO_MIPS_PLT): New.
5063 (R_MIPS_JUMP_SLOT): New.
5064 (R_MIPS_NUM): Redefine to 128.
5065 (DT_MIPS_PLTGOT): New.
5066 (DT_MIPS_RWPLT): New.
5067 (DT_MIPS_NUM): Redefine to 0x35.
5069 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5071 * timezone/africa: Update from tzdata2008f.
5072 * timezone/asia: Likewise.
5073 * timezone/australasia: Likewise.
5074 * timezone/europe: Likewise.
5075 * timezone/leapseconds: Likewise.
5076 * timezone/northamerica: Likewise.
5077 * timezone/southamerica: Likewise.
5078 * timezone/zone.tab: Likewise.
5080 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5082 * nscd/connections.c: Disable use of paccept for now.
5084 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5086 * socket/Versions: Remove paccept export for GLIBC_2.9.
5087 * socket/Makefile (routines): Remove paccept.
5088 * socket/sys/socket.h: Remove paccept declaration.
5090 * po/sv.po: Update from translation team.
5092 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5094 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5095 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5097 2008-09-16 Ulrich Drepper <drepper@redhat.com>
5099 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5100 Patch by Olivier Fourdan <ofourdan@redhat.com>.
5102 2008-09-15 Ulrich Drepper <drepper@redhat.com>
5104 * sunrpc/rpc/svc.h: Declare svcfd_create.
5105 Patch by Michael Solberg <msolberg@redhat.com>.
5107 2008-09-12 Flavio Leitner <fleitner@redhat.com>
5108 Ulrich Drepper <drepper@redhat.com>
5110 * malloc/malloc.c (public_vALLOc): Try other arenas in case
5112 (public_pVALLOc): Likewise.
5114 2008-09-02 Andreas Jaeger <aj@suse.de>
5116 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5119 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
5122 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5124 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
5126 * Makefile (check-data): Check data directory in add-ons.
5127 * elf/Makefile (check-data): Likewise.
5129 2008-08-18 Roland McGrath <roland@redhat.com>
5131 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5132 * configure: Regenerated.
5133 * config.make.in (cflags-cpu): New substituted variable.
5134 (with-cpu): Variable removed.
5135 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5137 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
5140 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5141 __signbitl definition and __LONG_DOUBLE_128__ guard from:
5142 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5143 redundant. Functions which call floating point assembler operations
5144 should go into a sysdeps powerpc/fpu directory.
5146 2008-08-15 Ulrich Drepper <drepper@redhat.com>
5148 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5149 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5151 2008-08-14 Ulrich Drepper <drepper@redhat.com>
5153 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5155 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5156 change related to AT_EXECFN. We cannot use that string.
5157 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5159 * elf/dl-support.c: Remove _dl_execfn variable.
5160 (_dl_aux_init): Remove handling of AT_EXECFN.
5161 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5162 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5164 2008-08-13 Ulrich Drepper <drepper@redhat.com>
5167 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
5168 byte gets added to writes and seeks from the end use the length of
5169 the buffer and not the currently terminating NUL byte.
5172 * login/utmp_file.c (getutent_r_file): Take additional parameter.
5173 Set to true if locking failed.
5174 (getutid_r_file): Adjust caller.
5175 (pututline_file): Likewise. Return NULL in this case.
5176 Patch mostly by halesh.s@gmail.com.
5178 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5181 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5183 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5185 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5188 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5189 macro since it is now available in elf/dynamic-link.h.
5191 2008-08-12 Roland McGrath <roland@frob.com>
5193 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5194 in case used outside of libc.
5195 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5197 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5199 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5200 directly instead of going through dn_comp.
5202 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5204 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5205 Fix asm constraints.
5207 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5210 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5211 (IPV6_PMTUDISC_PROBE): Likewise.
5213 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5216 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5218 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5219 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5222 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5223 Added the members 'vsx' and 'arch_2_06'.
5224 (_dl_powerpc_platforms): Add the member 'power7'.
5225 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5226 to reflect the changes required by VSX and ISA 2.06.
5227 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5229 Defined PPC_PLATFORM_POWER7.
5230 (_dl_string_platform): Add support for POWER7.
5231 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5232 capability and ISA 2.06.
5234 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5237 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5238 macro to detect use of 128 bit long double.
5239 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5241 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5243 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5246 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5248 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5249 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5251 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5253 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5254 guaranteed to be large enough to read inotify event. Ignore
5255 EAGAIN error. Better error message. Add branch predicition.
5256 (main_loop_epoll): Likewise.
5258 2008-08-02 Roland McGrath <roland@frob.com>
5260 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5261 Add memory clobbers.
5263 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5265 * manual/arith.texi: Avoid @strong{Note:}.
5266 * manual/creature.texi: Likewise.
5267 * manual/filesys.texi: Likewise.
5268 * manual/math.texi: Likewise.
5269 * manual/memory.texi: Likewise.
5270 * manual/resource.texi: Likewise.
5271 * manual/syslog.texi: Likewise.
5272 * manual/time.texi: Likewise.
5274 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5277 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5279 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5280 new epoll_create1 interface.
5281 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5282 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5283 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5285 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5286 (NS_GET32): Likewise.
5288 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5291 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5292 use the AT_EXECFN value if it is no absolute path.
5293 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5296 * Versions.def: Add GLIBC_2.9 to libresolv.
5297 * include/resolv.h: Remove hidden proto declarations for __ns_*
5298 functions. Add them for __dn_count_labels and __p_secstodate.
5299 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5300 Define ns_msg_getflags macro here.
5301 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5303 * resolv/Versions: Export functions from <arpa/nameser.h> from
5304 libresolv in version GLIBC_2.9.
5305 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5307 * resolv/ns_netint.c: Likewise.
5308 * resolv/ns_parse.c: Likewise.
5309 * resolv/ns_print.c: Likewise.
5310 * resolv/ns_samedomain.c: Likewise.
5311 * resolv/ns_ttl.c: Likewise.
5312 * resolv/arpa/nameser_compat.h: Likewise.
5313 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5315 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5316 instead of ns_get16.
5317 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5318 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5319 (gaih_getanswer_slice): Likewise.
5320 * resolv/Makefile (libresolv-routines): Add ns_date.
5321 * resolv/ns_date.c: New file.
5323 * elf/Makefile (check-localplt.out): Also check libresolv and
5326 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5328 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5331 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5333 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5334 buffer passed to NSS functions.
5336 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5338 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5341 * misc/syslog.c (openlog_internal): Fix compile problem.
5343 2008-07-28 Roland McGrath <roland@redhat.com>
5345 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5347 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5349 * io/ftw.c (add_object): Remove inline to avoid warning.
5351 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5353 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5354 Use it instead of locally defined resplen2 variable.
5355 (res_nsend): Adjust for __libc_res_nsend interface change.
5356 (send_vc): Initialize *resplen2 if necessary. Read length of
5357 package into an appropriately aligned variable. Store converted length
5358 in new variable and use it appropriately.
5359 Add branch prediction help.
5360 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5361 and pass it on to __libc_res_nsend. Adjust all callers.
5362 (__libc_res_nsearch): Likewise.
5363 (__libc_res_nqeurydomain): Likewise.
5364 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5366 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5367 Define resplen2 variable and pass it to __libc_res_nsearch and then
5369 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5370 Add branch prediction.
5371 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5372 (gaih_getanswer): Don't decode second slice if first one failed due
5373 to a too small buffer. Don't let not found status of second
5374 decoder shadow results of the first.
5375 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5376 and __libc_res_nquery interface changes
5377 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5378 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5379 __libc_res_nsearch, and __libc_res_nsend.
5380 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5382 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5383 __libc_res_nsearch interface changes.
5385 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5387 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5389 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5390 file descriptors with close-on-exec set.
5391 (exec_comm_child): Fix the case where the write end of the pipe is
5392 STDOUT_FILENO already. In case it is, clear close-on-exec.
5394 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5395 * io/pipe2.c: Likewise.
5396 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5397 instead of __ASSUME_PACCEPT.
5398 * include/unistd.h: Declare __have_pipe2.
5399 * libio/iopopen.c: Implement "e" flag.
5400 * libio/Makefile (tests): Add tst-popen1.
5401 * libio/tst-popen1.c: New file.
5403 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5404 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5406 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5409 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5410 success call of _IO_SEEKOFF or calls which failed because the
5411 descriptor is for a pipe.
5413 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5416 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5418 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5419 F_SETFD use if we know fopen set the flag.
5421 * login/utmp_file.c (setutent_file): Minor optimization in case
5422 O_CLOEXEC is available.
5424 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5426 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5427 * elf/Makefile: Use pie-ccflag variable.
5428 * nscd/Makefile: Likewise.
5429 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5431 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5434 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5435 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5436 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5437 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5438 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5439 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5440 utmp32, utmpx32 and login32.
5441 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5442 versions of struct utmp functions to libc and libutil.
5443 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5444 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5445 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5446 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5447 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5448 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5449 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5450 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5451 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5452 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5453 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5454 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5455 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5456 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5457 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5458 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5459 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5460 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5461 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5462 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5463 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5464 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5466 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5468 * scripts/gen-as-const.awk: Generate more widely usable code by
5469 using 64-bit arithmetic.
5471 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5472 the same treatment as narrow output code in last patch.
5474 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5477 * elf/dl-load.c (local_strdup): Remove inline.
5478 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5479 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5482 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5484 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5486 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5487 the new syscalls, too.
5489 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5490 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5493 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5494 parameter for end of buffer. If temporary copy is too large use
5496 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5498 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5499 string rewrite when allocating buffer.
5501 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5504 * nscd/connections.c (nscd_init): Clean up fcntl call.
5506 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5507 SOCK_NONBLOCK if possible.
5509 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5510 SOCK_CLOEXEC if available.
5512 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5513 __libc_clntudp_bufcreate_internal.
5514 * include/sys/socket.h: Declare __have_sock_cloexec.
5515 * socket/Makefile (aux): Add have_sock_cloexec.
5516 * socket/have_sock_cloexec.c: New file.
5517 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5518 __libc_clntudp_bufcreate.
5519 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5520 which takes an additional parameter. Create socket with non-blocking
5521 mode and close-on-exec flag set, if wanted.
5522 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5523 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5524 instead of clntudp_create. The socket has already the close-on-exec
5525 flag set if SOCK_CLOEXEC is defined.
5527 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5529 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5530 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5532 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5533 non-blocking mode by using socket, paccept, and inotify_init1.
5535 * Versions.def (glibc): Add GLIBC_2.9.
5536 * io/Makefile (routines): Add dup3 and pipe2.
5537 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5538 * io/dup3.c: New file.
5539 * io/pipe2.c: New file.
5540 * posix/unistd.h: Declare dup3 and pipe2.
5541 * socket/Makefile (routines): Add paccept.
5542 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5543 * socket/paccept.c: New file.
5544 * socket/sys/socket.h: Declare paccept.
5545 * sysdeps/unix/syscalls.list: Add entry for dup3.
5546 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5547 epoll_create2 and inotify_init1.
5548 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5549 * sysdeps/unix/sysv/linux/paccept.c: New file.
5550 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5552 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5553 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5554 inotify_init1, and pipe2 entries.
5555 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5556 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5557 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5558 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5559 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5560 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5562 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5563 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5564 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5565 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5566 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5567 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5568 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5569 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5570 EPOLL_NONBLOCK. Declare epoll_create2.
5571 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5573 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5574 IN_NONBLOCK. Declare inotify_init1.
5575 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5577 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5580 * elf/elf.h: Define AT_EXECFN.
5581 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5583 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5584 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5585 if __ASSUME_AT_EXECFN is defined.
5586 (_dl_aux_init): Handle AT_EXECFN.
5587 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5589 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5590 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5591 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5592 _dl_execfn if available and avoid compatibility code if
5593 __ASSUME_AT_EXECFN is defined.
5595 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5596 _dl_discover_osversion only for older kernels.
5598 2008-07-22 Roland McGrath <roland@frob.com>
5600 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5602 2008-07-21 Roland McGrath <roland@frob.com>
5604 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5605 returned too much data out of line.
5607 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5609 * locale/setlocale.c (setname): Remove inline to avoid compiler
5613 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5615 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5617 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5618 doesn't manage to write anything, fail.
5620 * malloc/hooks.c (__malloc_check_init): Remove printf.
5622 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5624 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5626 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5628 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5630 (main_loop_epoll): Likewise.
5632 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5634 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5636 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5637 if DEBUG is defined.
5639 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5640 query. Adjust buffer size computation for padding.
5642 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5644 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5645 * stdio-common/tst-setvbuf1.c: New file.
5646 * stdio-common/tst-setvbuf1.expect: New file.
5649 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5650 when selecting fully-buffered stream.
5651 Patch by Wang Xin <wxinee@gmail.com>.
5653 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5655 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5656 (__open_2): New function.
5657 (__open64_2): New alias to __open_2.
5658 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5659 (__openat_2): New function.
5660 (__openat64_2): New alias to __openat_2.
5662 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5665 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5667 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5669 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5670 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5671 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5673 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5674 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5675 * sysdeps/mach/hurd/send.c (__send): Likewise.
5676 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5677 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5679 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5681 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5682 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5683 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5684 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5685 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5686 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5688 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5691 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5693 Patch by Petr Baudis.
5695 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5697 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5698 Patch by Peter Jones <pjones@redhat.com>.
5700 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5703 * stdlib/canonicalize.c (__realpath): readlink can write too much
5704 into the buffer on platforms without PATH_MAX.
5706 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5709 * posix/tst-regex.c (main): Rename to...
5710 (do_test): ... this. Remove cmdline option processing.
5712 (TEST_FUNCTION): Define.
5713 (CMDLINE_OPTIONS): Define.
5715 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5718 * configure.in: Add -Werror to -fstack-protector test to catch
5719 unsupported architectures.
5720 Patch by Gilles Esponasse <g.esp@free.fr>.
5722 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5724 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5725 getcontext returns ENOSYS.
5727 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5729 * nscd/connections.c (main_loop_poll): Fix test for read error.
5730 (main_loop_epoll): Likewise.
5732 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5734 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5735 better place so it is not called when nscd is used.
5737 * nscd/connections.c: Also recognize and handle changes to the
5738 resolver configuration file.
5740 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5742 * time/strftime.c: Pass reference to tzset_called around to handle
5746 * time/strftime.c (__strftime_internal): Call tzset() only
5747 when printing timezone-dependent values.
5748 Based on a patch by Petr Baudis <pasky@suse.cz>.
5750 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5751 unconditionally use second gaih_getanswer_slice result.
5753 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5754 (getaddrinfo): RES must always be non-NULL.
5756 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5758 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5760 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5761 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5763 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5766 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5768 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5770 * nscd/connections.c (inotify_fd): New variable.
5771 (nscd_init): Try to open an inotify descriptor.
5772 If successful, watch files for databases using inotify instead of
5773 having prune threads stat the files.
5774 (nscd_run_prune): Recognize clear_cache flag being set and call
5775 prune_cache appropriately.
5776 (main_loop_poll): Add inotify descriptor to wait set and handle the
5778 (main_loop_epoll): Likewise.
5779 * nscd/cache.c (prune_cache): Don't stat files for databases if
5781 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5782 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5784 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5785 fixed-size portion of the record.
5786 * nscd/servicescache.c (cache_addserv): Likewise.
5787 * nscd/pwdcache.c (cache_addpw): Likewise.
5788 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5790 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5792 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5793 out we don't use uninitialized memory.
5795 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5798 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5800 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5801 ignore T_DNAME messages.
5802 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5804 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5806 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5807 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5809 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5811 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5812 instead of portstr to nscd_getserv_r. Patch by
5813 Roman Kagan <rkagan@mail.ru>.
5815 2008-05-26 Jim Meyering <meyering@redhat.com>
5817 Remove more useless "if" tests before "free".
5818 * include/inline-hashtab.h (htab_delete): Likewise.
5819 * libio/freopen.c (freopen): Likewise.
5820 * libio/freopen64.c (freopen64): Likewise.
5821 * locale/programs/ld-collate.c (collate_read): Likewise.
5822 * misc/fstab.c (libc_freeres_fn): Likewise.
5823 * posix/glob.c (globfree): Likewise.
5825 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5827 * string/Makefile (strop-tests): Add memmem.
5828 * string/test-memmem.c: New file.
5829 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5830 (test_init): Size buf1 according to BUF1PAGES.
5832 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5834 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5835 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5836 (CFLAGS-scanf17.c): New.
5837 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5838 * stdio-common/scanf15.c (main): Likewise.
5839 * stdio-common/scanf16.c: New file.
5840 * stdio-common/scanf17.c: New file.
5842 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5844 * resolv/res_send.c (send_dg): If we already have one of two
5845 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5846 use the one answer insted of failing.
5848 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5850 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5851 being executed on PowerPC as the expected result exceeds IBM
5852 long double 128 __LDBL_MAX__.
5854 2008-05-21 Roland McGrath <roland@redhat.com>
5856 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5858 * Makefile (check-data): Use $(abi-name) before other guesses.
5859 Look in $(add-ons) dirs before scripts/data/.
5860 * elf/Makefile (check-data): Likewise.
5862 * scripts/soversions.awk: Grok ABI line.
5863 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5864 Emit definition for abi-name variable.
5866 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5868 * string/endian.h: Define new fixed-size hto* and *toh macros only
5871 * iconvdata/Depend: Add localedata.
5873 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5875 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5877 2008-05-08 David S. Miller <davem@davemloft.net>
5879 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5881 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5882 (__SYSCALL_CLOBBERS): Remove %g* registers.
5883 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5884 (__SYSCALL_CLOBBERS): Likewise.
5885 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5886 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5888 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5890 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5891 (CALL_ERRNO_LOCATION): Define.
5892 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5893 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5894 (CALL_ERRNO_LOCATION): Define.
5895 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5896 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5897 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5899 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5901 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5904 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5906 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5907 (FIRST_FRAME_POINTER): Define.
5909 2008-05-09 David S. Miller <davem@davemloft.net>
5911 * sysdeps/sparc/sparc64/backtrace.c: New file.
5913 2008-05-14 David S. Miller <davem@davemloft.net>
5915 * sysdeps/sparc/machine-gmon.h: New file.
5916 * sysdeps/sparc/sparc-mcount.S: Likewise.
5917 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5918 sysdep_routines in gmon directory.
5920 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5922 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5924 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5926 * resolv/res_query.c (__libc_res_nquery): In case one of two
5927 answer was too short don't try to read that answer's header.
5929 * resolv/res_send.c (send_dg): In case of timeout and there are
5930 two queries and one has been answered, return value indicating
5933 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5935 * nscd/cache.c (cache_add): Take additional parameter specifying
5936 whether this is in response of a cache refill. Check alignment
5937 of package data. Revamp waking of pruning thread.
5938 (prune_cache): Small optimization.
5939 * nscd/nscd.h: Adjust cache_add prototypes.
5940 * nscd/aicache.c: Adjust cache_add calls.
5941 * nscd/grpcache.c: Likewise.
5942 * nscd/hstcache.c: Likewise.
5943 * nscd/initgrcache.c: Likewise.
5944 * nscd/pwdcache.c: Likewise.
5945 * nscd/servicescache.c: Likewise.
5946 * nscd/connections.c (restart): Really disable cache use before
5947 exec attempt. If it fails, reenable cache.
5948 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5949 time to max to be able to notice concurrent cache additions. Unlock
5950 prune_lock while performing gc. Afterwards compute wakeup time with
5951 current wakeup_time value in mind.
5953 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5955 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5957 * nscd/mem.c (gc): Correctly determine highest used array element
5960 * nscd/mem.c (markrange): Add assert to check entries are all
5961 aligned. Small cleanup in bitmap use.
5963 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5964 blockoff of type nscd_ssize_t.
5965 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5966 (mempoll_alloc): Record block offset and not address.
5968 * nscd/mem.c (gc): Fix test for stack overuse.
5970 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5973 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5974 entry is available, believe it.
5976 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5977 no answers return NSS_STATUS_NOTFOUND.
5978 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5979 buffer does not have any content.
5981 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5983 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5985 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5986 lookup, don't assign canon unconditionally.
5988 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5990 * string/Makefile (distribute): Add str-two-way.h.
5992 2008-03-29 Eric Blake <ebb9@byu.net>
5994 Rewrite string searches to O(n) rather than O(n^2).
5995 * string/str-two-way.h: New file. For linear fixed-allocation
5997 * string/memmem.c: New implementation.
5998 * string/strstr.c: New implementation.
5999 * string/strcasestr.c: New implementation.
6001 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
6003 * posix/regcomp.c (optimize_utf8): Add a note on why we test
6005 (calc_first): Initialize constraint field.
6006 (duplicate_node_closure): Use it instead of special casing ANCHORS.
6007 Use search_duplicated_node to avoid loops. Fix grammar.
6008 (duplicate_node): Merge constraint field for all node types.
6009 (calc_eclosure_iter): Look at constraint field for all node types.
6010 * posix/regex_internal.c (create_cd_newstate): Don't look at
6013 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6016 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6019 * string/endian.h: Add macros for fixed-size endian conversion.
6020 * bits/byteswap.h: Allow inclusion from <endian.h>.
6021 * sysdeps/i386/bits/byteswap.h: Likewise.
6022 * sysdeps/ia64/bits/byteswap.h: Likewise.
6023 * sysdeps/s390/bits/byteswap.h: Likewise.
6024 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6025 * string/Makefile (tests): Add tst-endian.
6026 * string/tst-endian.c: New file.
6028 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6029 Patch by Reuben Thomas.
6031 2008-05-14 Joseph Myers <joseph@codesourcery.com>
6033 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6035 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6037 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6040 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6042 (BODY for __gconv_transform_internal_ascii): Likewise.
6045 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6046 to be treated like link-local addresses.
6047 (match_prefix): Don't treat IPv4 loopback address special when
6048 converting to v4 mapped addressed.
6050 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6052 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6053 * posix/tst-rfc3484-2.c: Likewise.
6054 * posix/tst-rfc3484-3.c: Likewise.
6056 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6059 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6061 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6063 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6065 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6067 * po/lt.po: New file. From Lituanian translation team.
6069 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6071 Introduce TLS descriptors for i386 and x86_64.
6072 * include/inline-hashtab.h: New file, copied from 2005's
6073 libiberty, with fix for memory leak imported afterwards by
6074 Glauber de Oliveira Costa.
6075 * elf/tlsdeschtab.h: New file.
6076 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6077 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6078 (CHECK_STATIC_TLS): Move to...
6079 * elf/dynamic-link.h: ... this file.
6080 (TRY_STATIC_TLS): New macro.
6081 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6082 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6083 R_386_TLS_DESC): Define.
6084 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6086 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6087 R_X86_64_TLSDESC): Define.
6088 (R_386_NUM, R_X86_64_NUM): Adjust.
6089 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6090 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6091 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6092 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6093 release tlsdesc_table.
6094 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6095 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6096 (elf_machine_rel): Handle R_386_TLS_DESC.
6097 (elf_machine_rela): Likewise.
6098 (elf_machine_lazy_rel): Likewise.
6099 (elf_machine_lazy_rela): Likewise.
6100 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6101 * sysdeps/i386/dl-tlsdesc.S: New file.
6102 * sysdeps/i386/dl-tlsdesc.h: New file.
6103 * sysdeps/i386/tlsdesc.c: New file.
6104 * sysdeps/i386/tlsdesc.sym: New file.
6105 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6107 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6108 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6109 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6110 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6111 release tlsdesc_table.
6112 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6113 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6114 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6115 (elf_machine_rel): Handle R_X86_64_TLSDESC.
6116 (elf_machine_rela): Likewise.
6117 (elf_machine_lazy_rel): Likewise.
6118 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6119 (__tls_get_addr): Do not declare for non-shared compiles.
6120 * sysdeps/x86_64/dl-tlsdesc.S: New file.
6121 * sysdeps/x86_64/dl-tlsdesc.h: New file.
6122 * sysdeps/x86_64/tlsdesc.c: New file.
6123 * sysdeps/x86_64/tlsdesc.sym: New file.
6124 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6125 tlsdesc_table for both 32- and 64-bit structs.
6127 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6129 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6130 its own function. This reduces the frame setup costs and more.
6132 2008-02-11 Joseph Myers <joseph@codesourcery.com>
6135 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6136 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6138 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6140 * io/openat.c (__openat_2): Also pass fd to __openat.
6141 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6142 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6144 * string/tester.c (test_memcmp): Add a few more tests.
6145 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6147 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6149 * nscd/cache.c (cache_add): Before returning with failure and this
6150 is the first use of the record, mark it as unusable.
6151 * nscd/aicache.c: Don't touch the dataset after cache_add returns
6152 reporting a failure.
6153 * nscd/grpcache.c: Likewise
6154 * nscd/hstcache.c: Likewise.
6155 * nscd/initgrcache.c: Likewise.
6156 * nscd/pwdcache.c: Likewise.
6157 * nscd/servicescache.c: Likewise.
6159 2008-05-10 Roland McGrath <roland@redhat.com>
6162 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6164 2008-05-08 David S. Miller <davem@davemloft.net>
6166 * misc/truncate64.c (truncate64): Use __truncate not truncate.
6168 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6169 (__ieee754_y0l): Likewise.
6170 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6171 (__ieee754_y1l): Likewise.
6172 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6173 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6174 frexpl and ldexpl. math_private.h provides them and the latter
6176 (__log1pl): Use __frexpl.
6178 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6180 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6182 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6183 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6184 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6185 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6187 (_nss_nis_gethostbyname4_r): New function.
6188 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6189 Change to also handle af==AF_UNSPEC.
6190 (get_tablename): New function. Use it to avoid duplication.
6191 (_nss_nisplus_gethostbyname4_r): New function.
6192 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6194 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6195 * nss/nss.h: Define struct gaih_addrtuple.
6196 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6198 (_nss_files_gethostbyname4_r): New function.
6199 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6200 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6202 * resolv/res_query.c (__libc_res_nquery): Take two additional
6203 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6204 look up IPv4 and IPv6.
6206 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6207 for an additional query and answer buffer. Pass to send_vc and
6209 (send_vc): Send possibly two requests and receive two answers.
6210 (send_dg): Likewise.
6211 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6213 (_nss_dns_gethostbyname4_r): New function.
6214 (gaih_getanswer_slice): Likewise.
6215 (gaih_getanswer): Likewise.
6216 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6217 __libc_res_nquery call.
6218 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6219 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6220 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6223 2008-05-05 David S. Miller <davem@davemloft.net>
6225 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6226 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6228 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6230 Fix termios bit macros.
6231 Move *DLY definitions where they belong, in termios.h.
6232 Add *[0-3] definitions.
6233 Fixes confusion between VT and FF.
6234 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6235 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6236 are already defined to avoid collision with termios.h.
6237 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6238 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6239 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6240 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6241 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6242 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6243 VTDLY, VT0, VT1): New macros.
6244 [__USE_GNU] (OLCUC): Change value of macro.
6245 [__USE_XOPEN] (OFILL): New macro.
6246 [__USE_BSD] (CRTSCTS): Change value.
6247 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6248 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6249 (B7200, B14400, B28800, B76800): New macros.
6251 2008-05-01 David S. Miller <davem@davemloft.net>
6253 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6254 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6255 (gen-as-const-headers): Add it.
6256 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6257 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6258 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6259 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6261 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6262 six system call parameters.
6263 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6265 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6267 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6269 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6270 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6272 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6274 * stdlib/tst-setcontext.c: Include unistd.h.
6276 2008-04-25 David S. Miller <davem@davemloft.net>
6278 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6279 Pass "union semun" properly in to sys_ipc, it must be passed
6280 by value, not by reference.
6282 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6284 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6285 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6286 * nscd/connections.c (mem_in_flight): Likewise.
6288 * nscd/nscd.h (dbs): Make hidden.
6290 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6291 Avoid returning -1, return 0 instead.
6293 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6295 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6297 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6300 * sysdeps/unix/sysv/linux/times.c: New file.
6303 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6304 mem_in_flight_list variables. Add new parameter to mempool_alloc
6306 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6307 appropriate mem_in_flight element.
6308 (gc): Take allocations which have not yet been committed to the
6309 database into account.
6310 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6311 Reset mem_in_flight before returning.
6312 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6313 cue it up in mem_in_flight_list.
6314 * nscd/aicache.c: Adjust mempool_alloc call.
6315 * nscd/grpcache.c: Likewise.
6316 * nscd/hstcache.c: Likewise.
6317 * nscd/initgrcache.c: Likewise.
6318 * nscd/pwdcache.c: Likewise.
6319 * nscd/servicescache.c: Likewise.
6320 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6323 * nscd/connections.c (handle_request): Provide better error message
6324 in case SELinux forbids the service.
6326 * version.h (VERSION): Bump to 2.8.90.
6328 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6330 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6332 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6334 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6335 Also use for 32-bit.
6336 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6337 __nextafter instead of nextafter to avoid local PLT.
6338 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6339 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6341 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6343 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6345 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6346 <fenv_libc.h> instead of <fenv.h>.
6347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6350 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6352 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6353 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6354 function from fegetexcept and make old name weak alias.
6355 * include/fenv.h: Declare __fegetexcept.
6356 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6358 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6359 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6361 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6362 instead of frexpl to avoid local PLT.
6363 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6364 ilogbl to avoid local PLT.
6365 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6366 instead of ldexpl to avoid local PLT.
6367 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6368 __roundl not roundl to avoid local PLT.
6369 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6370 local PLTs. Use __sincosl instead of separate sinl and cosl
6372 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6374 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6375 version for ppc64 to 2.4.21 since without it makecontext will fail.
6377 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6379 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6381 [__powerpc64__] (TLS_GD): Likewise.
6383 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6386 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6387 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6389 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6390 Likewise. Also account for when x is an odd number between 2^52
6392 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6393 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6394 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6395 detect aforementioned erroneous conditions.
6397 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6399 * configure.in: Check for -fno-section-anchors in addition to
6400 -fno-toplevel-reorder.
6402 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6404 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6406 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6407 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6408 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6409 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6410 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6411 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6413 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6416 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6417 * time/alt_digit.c: Likewise.
6418 * wcsmbs/wcsmbsload.c: Likewise.
6420 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6422 * version.h (VERSION): Bump to 2.8.
6424 * timzeone/asia: Update from tzdata2008b.
6425 * timezone/backward: Likewise.
6426 * timezone/europe: Likewise.
6427 * timezone/northamerica: Likewise.
6428 * timezone/southamerica: Likewise.
6429 * timezone/iso3166.tab: Likewise.
6430 * timezone/leapseconds: Likewise.
6431 * timezone/zone.tab: Likewise.
6432 * timezone/private.h: Update from tzcode2008a.
6433 * timezone/zdump.c: Likewise.
6434 * timezone/zic.c: Likewise.
6436 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6439 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6440 Define additonal Data Cache Block instruction macros.
6441 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6442 Replace dcbst with dcbf and sync with sync/isync.
6444 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6446 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6447 Always set ELF_RTYPE_CLASS_PLT.
6448 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6450 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6452 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6453 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6454 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6455 For ISA 2.01 and later replace mftb with mfspr 268.
6457 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6460 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6461 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6463 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6466 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6467 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6468 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6469 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6471 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6473 * stdlib/tst-makecontext.c (othervar): New variable.
6474 (cf): Test sign extending the argument to long.
6476 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6478 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6479 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6480 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6481 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6482 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6483 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6484 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6486 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6488 * elf/Makefile (tests): Substitute tests-vis-yes here.
6489 (tests-vis-yes): Delete.
6490 (modules-name, modules-vis-yes): Similarly.
6492 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6495 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6496 Preserve sign in signgamp when x is zero.
6498 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6500 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6501 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6502 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6503 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6504 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6505 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6507 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6510 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6514 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6515 a reserved error value.
6517 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6518 value to check for correct sign extension.
6521 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6522 Copy 64-bit parameter values even though this is not required in
6525 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6528 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6530 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6533 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6535 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6537 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6540 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6541 in line-buffered stream failed.
6542 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6544 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6547 * scripts/abi-versions.awk: If the version specified by
6548 --enable-oldest-abi is older than the first version for this
6549 architecture, use the default version.
6551 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6552 as well when ignoring the whole category.
6554 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6557 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6558 ETHERTYPE_* definitions.
6559 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6561 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6563 * stdlib/mbtowc.c (__no_r_state): Remove.
6564 (mbtowc): New static state variable. Use it instead of
6566 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6567 (__wctomb_state): New hidden variable.
6568 (wctomb): Use __wctomb_state instead of __no_r_state.
6569 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6570 (__wctomb_state): New extern decl.
6571 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6573 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6576 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6578 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6580 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6582 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6584 * po/nl.po: Update from translation team.
6586 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6589 * string/strfry.c: Handle empty strings again.
6591 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6594 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6595 before looking for translation.
6596 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6597 * locale/freelocale.c: Likewise.
6598 * locale/newlocale.c: Likewise.
6599 * locale/setlocale.c: Likewise.
6600 Based partially on a patch by ryo@np.css.fujitsu.com.
6602 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6604 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6605 acquiring wrlock. Do conv_tab allocation while holding lock.
6606 * intl/Makefile: Add rules to build and run tst-gettext6.
6607 * intl/tst-gettext6.c: New test.
6608 * intl/tst-gettext6.sh: New file.
6610 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6612 * po/nl.po: Update from translation team.
6614 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6615 provided through st_blksize, try the default size before giving up.
6617 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6619 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6622 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6624 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6625 error message. POSIX today does not require the messages to be in
6626 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6629 * sunrpc/auth_unix.c: Unify printed strings.
6630 * sunrpc/clnt_tcp.c: Likewise.
6631 * sunrpc/clnt_udp.c: Likewise.
6632 * sunrpc/clnt_unix.c: Likewise.
6633 * sunrpc/svc_tcp.c: Likewise.
6634 * sunrpc/svc_udp.c: Likewise.
6635 * sunrpc/svc_unix.c: Likewise.
6636 * sunrpc/xdr.c: Likewise.
6637 * sunrpc/xdr_array.c: Likewise.
6638 * sunrpc/xdr_rec.c: Likewise.
6639 * sunrpc/xdr_ref.c: Likewise.
6640 * locale/programs/ld-time.c (time_finish): Unify messages.
6641 * locale/programs/locfile.c (handle_copy): Fix typo.
6642 * nscd/nscd.c (options): Fix typo.
6645 * stdlib/strtod_l.c: Use correct sign for result in one more
6647 Patch by Eric Blake <ebb9@byu.net>.
6649 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6651 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6652 and creat system calls.
6653 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6655 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6658 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6659 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6661 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6663 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6664 <linux/limits.h> has defined it.
6665 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6666 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6668 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6669 it instead of ARG_MAX.
6671 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6673 * posix/gai.conf: Fix comment for scope nullbits.
6674 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6675 default to 128 bits for v4 mapped addresses.
6677 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6679 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6680 ptrace call to get the ieee_instruction_pointer from the kernel.
6681 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6682 ptrace call to set the ieee_instructtion_pointer.
6683 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6684 Add comment that ieee_instruction_pointer is always 0.
6686 2008-03-09 Andreas Jaeger <aj@suse.de>
6689 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6690 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6691 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6693 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6694 (rint_test): Likewise.
6696 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6698 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6700 (__nisfind_server): Similar for open readColdStartFile call.
6701 Patch partially by Jim Meyering.
6702 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6703 around internal_setent call.
6705 * po/vi.po: New Vietnamese translation.
6707 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6710 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6711 remove CLONE_STOPPED.
6713 2008-02-10 Jim Meyering <meyering@redhat.com>
6715 Remove useless "if" before "free":
6716 * elf/ldconfig.c (parse_conf_include): Likewise.
6717 * gmon/gmon.c (weak_alias): Likewise.
6718 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6719 * inet/rcmd.c (__validuser2_sa): Likewise.
6720 * intl/bindtextdom.c (set_binding_values): Likewise.
6721 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6722 * libio/genops.c (save_for_backup): Likewise.
6723 * libio/wgenops.c (save_for_wbackup): Likewise.
6724 * locale/programs/ld-collate.c (collate_read): Likewise.
6725 * locale/programs/linereader.c (get_string): Likewise.
6726 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6727 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6728 * resolv/res_debug.c (do_section): Likewise.
6729 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6730 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6731 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6732 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6733 * time/tzset.c (tzset_internal): Likewise.
6735 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6737 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6740 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6743 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6744 not stream for output file. Open output file here.
6745 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6746 and output file name.
6747 (process_fd): Likewise.
6748 (process_file): Likewise.
6749 (main): Adjust callers of changed functions.
6750 * iconv/iconv_prog.h: Adjust prototype.
6752 2008-03-09 Andreas Jaeger <aj@suse.de>
6755 * sysdeps/ia64/ieee754.h: Use protected namespace
6756 __BIG_ENDIAN/__LITTLE_ENDIAN.
6757 * sysdeps/ieee754/ieee754.h: Likewise.
6758 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6760 2008-03-08 Roland McGrath <roland@frob.com>
6762 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6763 ignore a signal that came from a machine exception, treat it as a
6764 fatal core-dump signal instead.
6765 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6767 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6768 Clear DF bit in thread state's eflags.
6769 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6771 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6774 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6775 of NAN(...) sequence.
6776 * stdlib/Makefile (tests): Add tst-strtod6.
6777 * stdlib/tst-strtod6.c: New file.
6779 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6782 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6783 putting offending option character in quotes. Clean up error
6785 * po/be.po: Adjust msgstr in translation file.
6786 * po/bg.po: Likewise.
6787 * po/ca.po: Likewise.
6788 * po/cs.po: Likewise.
6789 * po/da.po: Likewise.
6790 * po/de.po: Likewise.
6791 * po/es.po: Likewise.
6792 * po/fr.po: Likewise.
6793 * po/hr.po: Likewise.
6794 * po/ko.po: Likewise.
6795 * po/nl.po: Likewise.
6796 * po/rw.po: Likewise.
6797 * po/sk.po: Likewise.
6798 * po/sv.po: Likewise.
6799 * po/tr.po: Likewise.
6800 * po/zh_CN.po: Likewise.
6801 * po/zh_TW.po: Likewise.
6804 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6805 Patch by Roland Bless <roland@bless.de>.
6807 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6809 * elf/Makefile (routines): Add dl-sysdep.
6810 (elide-routines.os): Likewise.
6812 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6815 * elf/dl-sysdep.c: Undefine ROUND after use.
6816 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6817 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6818 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6819 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6821 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6822 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6824 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6826 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6827 _dl_tls_get_addr_soft element.
6828 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6829 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6830 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6832 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6833 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6834 of internal_function.
6836 * stdlib/Makefile (aux): Add tens_in_limb.
6837 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6838 * stdlib/tens_in_limb.c: ...here. New file.
6841 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6842 __statfs_chown_restricted.
6843 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6844 for _PC_CHOWN_RESTRICTED.
6845 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6846 Implement __statfs_chown_restricted.
6847 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6848 _POSIX_CHOWN_RESTRICTED value to zero.
6849 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6852 * sysdeps/x86_64/rtld-memset.c: New file.
6854 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6856 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6858 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6859 Barcelona machine. Make default fall through branch of
6860 __x86_64_preferred_memory_instruction check as the integer code path.
6862 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6864 * sysdeps/x86_64/cacheinfo.c
6865 (__x86_64_preferred_memory_instruction): New variable.
6866 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6868 * sysdeps/x86_64/memset.S: Rewrite.
6870 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6872 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6873 __obstack_printf_chk): New prototypes.
6874 (__vasprintf_chk, __vdprintf_chk,
6875 __obstack_vprintf_chk): Likewise.
6876 Add libc_hidden_proto.
6878 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6879 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6880 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6881 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6882 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6883 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6884 __obstack_vprintf_chk): New prototypes.
6885 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6886 obstack_vprintf): New inlines.
6887 * debug/dprintf_chk.c: New file.
6888 * debug/vdprintf_chk.c: New file.
6889 * debug/asprintf_chk.c: New file.
6890 * debug/vasprintf_chk.c: New file.
6891 * debug/obprintf_chk.c: New file.
6892 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6893 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6894 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6896 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6897 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6898 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6899 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6901 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6902 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6903 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6904 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6905 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6907 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6908 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6909 obstack_vprintf_chk.
6910 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6911 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6912 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6913 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6914 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6915 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6917 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6920 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6921 Patch by Roy Marples <roy@marples.name>.
6924 * malloc/malloc.c: Fix typo in comment.
6927 * locale/iso-639.def: Add Shuswap.
6929 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6932 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6933 overwrite *h_errnop/*errnop values from getanswer_r in case of
6936 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6939 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6940 (verify_persistent_db): Remove one unnecessary test and add a new one
6941 for bad configuration.
6942 (nscd_init): Improve error reported when persistent database cannot
6944 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6945 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6946 .suggested_module and .max_db_size and case config file says the
6948 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6951 * nis/ypclnt.c (yp_order): Fix handling of return value of
6953 Patch by Jeff Moyer <jmoyer@redhat.com>.
6955 * po/fr.po: Update from translation team.
6957 2008-02-22 Andreas Jaeger <aj@suse.de>,
6958 Carlos O'Donell <carlos@systemhalted.org>
6961 * FAQ.in: Describe why glibc needs to be compiled with
6964 2008-02-19 Roland McGrath <roland@redhat.com>
6966 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6968 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6971 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6972 __USE_MISC is defined.
6974 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6976 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6977 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6979 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6980 timerfd_gettime, timerfd_settime.
6981 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6982 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6984 2008-02-08 Roland McGrath <roland@redhat.com>
6986 * elf/elf.h (NT_PPC_SPE): New macro.
6988 2008-02-06 Roland McGrath <roland@redhat.com>
6990 * Makerules ($(common-objpfx)sysd-rules):
6991 Depend on $(sysdep-makeconfigs).
6993 2008-01-31 Roland McGrath <roland@redhat.com>
6996 * configure.in: Use -print-file-name if it yields a directory,
6997 for each of include and include-fixed.
6998 * configure: Regenerated.
7000 * Makeconfig (sysd-rules-targets): New variable.
7001 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7002 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7004 2008-01-30 Roland McGrath <roland@redhat.com>
7006 * manual/libc.texinfo: Update back-cover text.
7008 * elf/elf.h (NT_386_TLS): New macro.
7010 2008-01-29 Roland McGrath <roland@redhat.com>
7012 * Makeconfig (sysd-rules-patterns): New variable.
7013 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7014 (check-inhibit-asm): New canned sequence, replaces ...
7015 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7016 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7017 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7018 (CFLAGS-rtld): Variable removed.
7020 2008-01-24 Roland McGrath <roland@redhat.com>
7022 * configure.in: Let configure fragments set base_os.
7023 * configure: Regenerated.
7025 2008-01-22 Ulrich Drepper <drepper@redhat.com>
7027 * po/ko.po: Update from translation team.
7029 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
7031 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7033 2008-01-12 Andreas Jaeger <aj@suse.de>
7036 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7039 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
7041 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7042 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7043 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7045 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7047 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7048 * elf/dl-close.c (_dl_close): Check for it.
7049 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7050 (_dl_allocate_static_tls): Likewise.
7051 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7052 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7054 * elf/tst-tls16.c: New file.
7055 * elf/tst-tlsmod16a.c: New file.
7056 * elf/tst-tlsmod16b.c: New file.
7057 * elf/Makefile: Add rules to build and run tst-tls16.
7059 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7062 * bits/shm.h: Fix comment describing shmid_ds.
7063 * sysdeps/gnu/bits/shm.h: Likewise.
7064 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7065 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7066 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7067 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7068 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7069 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7070 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7071 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7072 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7075 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7077 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7078 additional suffixes.
7079 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7080 Add optional functions mq_timedreceive and mq_timedsend.
7081 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7082 * conform/data/pthread.h-data: Fix prototype of
7083 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7084 * conform/data/semaphore.h-data: Allow time.h definitions.
7085 * conform/data/signal.h-data: Likewise.
7086 * conform/data/stdio.h-data: getw and putw are not required in v6.
7087 * conform/data/stdlib.h-data: Change setstate prototype.
7088 * conform/data/string.h-data: Fix strerror_r prototype.
7089 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7090 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7091 Fix readlink prototype.
7092 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7094 * inet/netinet/in.h: Cleanup namespace.
7095 * posix/regex.h: Likewise.
7096 * resolv/netdb.h: Likewise.
7097 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7098 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7099 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7100 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7101 of names of in in6_addr.
7102 (default_precedence): Likewise.
7103 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7106 2008-01-15 Ulrich Drepper <drepper@redhat.com>
7108 * conform/data/fmtmsg.h-data: Add missing allows.
7109 * conform/data/ftw.h-data: Likewise.
7110 * conform/data/inttypes.h-data: Likewise.
7111 * conform/data/math.h-data: Likewise.
7112 * conform/data/signal.h-data: Likewise.
7113 * conform/data/net/if.h-data: Likewise.
7114 * conform/data/netinet/in.h-data: Likewise.
7115 * conform/data/sys/socket.h-data: Likewise.
7118 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7119 (__strtok_r): Simplify.
7120 * string/tester.c (test_strtok_r): Add test case for futile search
7121 with single-character seach string.
7123 2008-01-12 Ulrich Drepper <drepper@redhat.com>
7125 * po/ko.po: Update from translation team.
7127 2008-01-11 Andreas Jaeger <aj@suse.de>
7130 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7131 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7134 2008-01-10 Ulrich Drepper <drepper@redhat.com>
7136 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7137 native interface lookup in all the relevant places.
7139 2008-01-10 Jakub Jelinek <jakub@redhat.com>
7140 Ulrich Drepper <drepper@redhat.com>
7142 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7143 field. Use sockaddr_in6 for source_addr.
7144 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
7145 (match_prefix): Likewise.
7146 (get_label): Likewise.
7147 (get_precedence): Likewise.
7148 (rfc3484_sort): Change to use indirect access to results array.
7149 Adjust to use of sockaddr_in6. Replace service_order test with
7150 simple index comparison.
7151 (getaddrinfo): Define order array. Initialize it. Don't initialize
7152 service_order field. Adjust qsort_t calls. Access sorted result
7153 array indirectly through order array.
7154 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7155 * posix/tst-rfc3484-2.c: Likewise.
7156 * posix/tst-rfc3484-3.c: Likewise.
7158 2008-01-09 Ulrich Drepper <drepper@redhat.com>
7161 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7163 Patch by André Cruz.
7166 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7167 (clnt_spcreateerror): Likewise.
7170 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7171 (public_mEMALIGn): Likewise.
7172 Patch mostly by Daniel Jacobowitz.
7174 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7176 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7177 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7178 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7179 * stdlib/tst-makecontext2.c: New test.
7181 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7183 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7185 (REINIT_PARAMS): Likewise. Undefine before end of file.
7186 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7187 transliteration hooks and REINIT_PARAMS afterwards.
7188 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7190 (REINIT_PARAMS): Define.
7191 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7192 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7193 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7194 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7195 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7196 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7197 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7198 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7199 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7200 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7201 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7202 * iconvdata/tst-iconv7.c: New test.
7204 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7206 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7208 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7211 * nscd/connections.c (restart): Fix condition.
7213 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7215 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7216 __ctype_toupper_loc): Add __THROW.
7218 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7220 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7221 recognition of interface family.
7223 * posix/getconf.c: Update copyright year.
7224 * nss/getent.c: Likewise.
7225 * iconv/iconvconfig.c: Likewise.
7226 * iconv/iconv_prog.c: Likewise.
7227 * elf/ldconfig.c: Likewise.
7228 * catgets/gencat.c: Likewise.
7229 * csu/version.c: Likewise.
7230 * elf/ldd.bash.in: Likewise.
7231 * elf/sprof.c (print_version): Likewise.
7232 * locale/programs/locale.c: Likewise.
7233 * locale/programs/localedef.c: Likewise.
7234 * nscd/nscd.c (print_version): Likewise.
7235 * debug/xtrace.sh: Likewise.
7236 * malloc/memusage.sh: Likewise.
7237 * malloc/mtrace.pl: Likewise.
7238 * debug/catchsegv.sh: Likewise.
7240 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7242 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7245 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7247 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7248 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7250 2007-12-17 Roland McGrath <roland@redhat.com>
7252 * inet/ether_line.c (ether_line): Remove unused variable.
7254 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7256 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7258 * login/openpty.c (openpty): Likewise.
7259 * login/pty.h (openpty, forkpty): Likewise.
7260 * manual/terminal.texi (openpty, forkpty): Likewise.
7262 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7264 * malloc/malloc.c (public_cALLOc): For arenas other than
7265 main_arena, count all bytes inside the mprotect_size range of the
7266 heap as uninitialized.
7268 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7270 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7273 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7274 mTRIm for all of them.
7275 (mTRIm): Additionally iterate over all free blocks and use madvise
7276 to free memory for all those blocks which contain at least one
7278 * malloc/tst-trim1.c: New file.
7279 * malloc/Makefile (tests): Add tst-trim1.
7281 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7283 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7285 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7286 First cast argument to long
7287 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7289 (__vdso_clock_gettime): Likewise.
7290 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7293 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7295 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7296 * locale/nl_langinfo_l.c: Real implementation, copied from
7298 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7300 2007-12-01 Jim Meyering <meyering@redhat.com>
7302 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7303 that would inhibit utf8-optimization of a regexp containing line-
7304 or buffer-anchors, e.g., `^', `$'.
7306 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7308 * time/bug-getdate1.c (do_test): Don't use century values which
7309 aren't valid on 32-bit systems.
7311 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7313 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7314 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7315 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7316 __strcat_g, __strncat_g): Add __asm__.
7318 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7321 * io/fchmodat.c: Fix typo in stub_warning use.
7322 Patch by Petr Salinger.
7324 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7326 * iconvdata/hp-thai8.c: New file.
7327 * iconvdata/Makefile: Add rules for hp-thai8.c.
7328 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7329 * iconvdata/gconv-modules: Likewise.
7332 * iconvdata/hp-greek8.c: New file.
7333 * iconvdata/Makefile: Add rules for hp-greek8.c.
7334 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7335 * iconvdata/gconv-modules: Likewise.
7338 * iconvdata/hp-turkish8.c: New file.
7339 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7340 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7341 * iconvdata/gconv-modules: Likewise.
7343 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7344 (shrink_heap): ... this new function.
7345 (heap_trim): Call shrink_heap instead of grow_heap.
7347 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7348 case don't call alloc_perturb.
7350 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7352 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7354 * sysdeps/unix/sysv/linux/kernel-features.h
7355 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7356 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7358 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7361 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7362 * stdio-common/Makefile (tests): Add bug22.
7363 * stdio-common/bug22.c: New file.
7366 * time/getdate.c: Fix filling in default values.
7367 * time/bug-getdate1.c: New file.
7368 * time/Makefile: Add rules to build and run bug-getdate1.
7370 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7371 * iconvdata/ebcdic-es.c: Likewise.
7372 * iconvdata/ebcdic-es-a.c: Likewise.
7373 * iconvdata/ebcdic-uk.c: Likewise.
7374 * iconvdata/iso8859-16.c: Likewise.
7375 * iconvdata/viscii.c: Likewise.
7376 * iconvdata/iso8859-9e.c: Likewise.
7377 * iconvdata/Makefile: Adjust appropriately.
7380 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7383 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7386 * iconvdata/hp-roman9.c: New file.
7387 * iconvdata/Makefile: Add rules for hp-roman9.c.
7388 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7389 * iconvdata/gconv-modules: Likewise.
7391 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7392 * iconvdata/Makefile: Adjust appropriately.
7395 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7396 structure, it's allocated with alloca.
7397 * stdio-common/Makefile (tests): Add bug21.
7398 * stdio-common/bug21.c: New file.
7400 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7403 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7404 keyword for gcc's braced-groups.
7406 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7409 * inet/ether_line.c: Strip hostname of whitespaces.
7410 * inet/Makefile (tests): Add tst-ether_line.
7411 * inet/tst-ether_line.c: New file.
7413 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7416 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7419 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7421 * stdlib/tst-setcontext.c: Catch the case where the links gets
7422 messed up and we do not reach main again.
7424 * po/ca.po: Update from translation team.
7426 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7428 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7429 * posix/regex.h (REG_ENOSYS): Likewise.
7430 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7432 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7434 * nscd/nscd.h (MAX_STACK_USE): Define.
7435 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7436 (gc): Initialize stack_used based on allocation in prune_cache.
7437 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7438 Clear array before use.
7440 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7441 memory allocation failed.
7442 * nscd/hstcache.c (cache_addhst): Likewise.
7443 * nscd/grpcache.c (cache_addgr): Likewise.
7444 * nscd/servicescache.c (cache_addserv): Likewise.
7445 * nscd/pwdcache.c (cache_addpw): Likewise.
7446 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7448 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7451 and creat system calls.
7453 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7455 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7457 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7459 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7460 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7462 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7463 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7464 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7466 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7468 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7469 strncat): Define as macros to avoid compile errors.
7471 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7474 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7477 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7478 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7479 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7481 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7483 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7484 Return zero in case the thread library is not NPTL.
7487 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7488 initializing interface list.
7491 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7492 use result of nss_getgrgid_r if nothing was found. For other
7493 error return with a failure.
7494 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7496 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7499 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7501 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7502 (get_scope): For IPv4 scope, use scopes table.
7503 (fini): Free scopes table if necessary.
7504 (free_scopelist): New function.
7505 (scopecmp): New function.
7506 (gaiconf_init): Also handle scopev4 entries.
7507 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7508 * posix/tst-rfc3484-2.c (do_test): Likewise.
7509 * posix/gai.conf: Document scopev4 defaults.
7510 * posix/Makefile (tests): Add tst-rfc3484-3.
7511 * posix/tst-rfc3484-3.c: New file.
7513 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7515 * posix/gai.conf: Update for current default tables.
7517 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7519 * po/tr.po: Update from translation team.
7521 2007-11-18 Roland McGrath <roland@frob.com>
7523 * manual/arith.texi (Remainder Functions): Spelling fix.
7524 From Shaun Silk <genix@mysoul.com.au>.
7526 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7528 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7530 * po/zh_CN.po: Update from translation team.
7532 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7533 Add sys/signalfd.h and sys/eventfd.h.
7535 2007-11-15 Bruno Haible <bruno@clisp.org>
7538 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7540 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7541 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7542 it needs only fixed stack space. Delay the initialization of
7543 msgid_len until it is needed.
7545 2007-11-15 Andreas Jaeger <aj@suse.de>
7547 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7548 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7550 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7552 * po/ko.po: Update from translation team.
7554 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7556 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7557 significantly. The device type is also part of the ifinfomsg data.
7559 * po/sv.po: Update from translation team.
7560 * po/nl.po: Likewise.
7562 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7563 to wake up in 24 hours.
7565 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7567 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7569 * po/cs.po: Update from translation team.
7570 * po/pl.po: Likewise.
7572 * include/ifaddrs.h: Remove in6ai_temporary.
7573 (struct in6addrinfo): Add index element.
7574 Declare __check_native.
7575 * inet/Makefile (aux): Add check_native.
7576 * sysdeps/unix/sysv/linux/check_native.c: New file.
7577 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7578 IFA_F_TEMPORARY. Pass back ifa_index.
7579 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7580 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7581 call __check_native if necessary.
7582 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7583 to sort addresses. Pass information about the results.
7584 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7585 of rfc3484_sort interface.
7586 * posix/tst-rfc3484-2.c: Likewise.
7588 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7589 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7591 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7592 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7593 on as third parameter to compare function and _quicksort.
7594 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7595 to the compare function.
7596 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7597 * Versions.def: Add GLIBC_2.8 for libc.
7599 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7600 * posix/tst-rfc3484-2.c: Likewise.
7602 * include/kernel-features.h: Moved to...
7603 * sysdeps/mach/hurd/kernel-features.h: ...here.
7605 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7607 * sysdeps/i386/i586/memcpy_chk.S: New file.
7608 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7609 * sysdeps/i386/i586/memset_chk.S: Likewise.
7611 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7613 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7614 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7615 list of interfaces. Also store prefix length.
7616 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7617 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7618 prefix if source and destination address are in the same subnet.
7619 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7620 Always look for matching record in in6ai list.
7621 Correct source_addr_len value for IPv6->IPv4 converted records.
7623 2007-11-11 Roland McGrath <roland@frob.com>
7625 * include/kernel-features.h: New file.
7627 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7629 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7630 complications for 64-bit platforms.
7632 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7633 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7634 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7636 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7638 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7639 * sysdeps/wordsize-64/alphasort.c: New file.
7640 * sysdeps/wordsize-64/alphasort64.c: New file.
7641 * sysdeps/wordsize-64/fseeko.c: New file.
7642 * sysdeps/wordsize-64/fseeko64.c: New file.
7643 * sysdeps/wordsize-64/ftello.c: New file.
7644 * sysdeps/wordsize-64/ftello64.c: New file.
7645 * sysdeps/wordsize-64/ftw.c: New file.
7646 * sysdeps/wordsize-64/ftw64.c: New file.
7647 * sysdeps/wordsize-64/iofgetpos.c: New file.
7648 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7649 * sysdeps/wordsize-64/iofopen.c: New file.
7650 * sysdeps/wordsize-64/iofopen64.c: New file.
7651 * sysdeps/wordsize-64/iofsetpos.c: New file.
7652 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7653 * sysdeps/wordsize-64/lockf.c: New file.
7654 * sysdeps/wordsize-64/lockf64.c: New file.
7655 * sysdeps/wordsize-64/mkostemp.c: New file.
7656 * sysdeps/wordsize-64/mkostemp64.c: New file.
7657 * sysdeps/wordsize-64/mkstemp.c: New file.
7658 * sysdeps/wordsize-64/mkstemp64.c: New file.
7659 * sysdeps/wordsize-64/scandir.c: New file.
7660 * sysdeps/wordsize-64/scandir64.c: New file.
7661 * sysdeps/wordsize-64/tmpfile.c: New file.
7662 * sysdeps/wordsize-64/tmpfile64.c: New file.
7663 * sysdeps/wordsize-64/versionsort.c: New file.
7664 * sysdeps/wordsize-64/versionsort64.c: New file.
7665 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7666 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7667 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7668 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7669 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7670 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7671 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7672 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7673 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7674 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7675 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7676 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7678 * crypt/sha256-crypt.c: Fix a comment.
7679 * crypt/sha512-crypt.c: Likewise.
7681 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7683 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7685 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7688 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7689 because output buffer is too small break, don't loop.
7690 * iconvdata/Makefile (tests): Add bug-iconv6.
7691 * iconvdata/bug-iconv6.c: New file.
7693 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7695 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7697 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7698 size_t. Add casts where needed.
7700 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7701 old headers, don't call avc_has_perm if we don't have the
7702 permission information.
7704 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7706 * elf/rtld.c (dl_main): Use the page size to find the map start.
7708 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7710 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7711 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7713 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7714 when the lookup call failed.
7716 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7717 Add prune_cond and wakeup_time.
7718 (CACHE_PRUNE_INTERNAL): Define.
7719 Update declarations of prune_cache and setup_thread.
7720 * nscd/connections.c (dbs): Update initializers.
7721 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7722 (nscd_init): Default number of threads is now 4.
7723 (invalidate_cache): Take lock before calling prune_cache.
7724 (handle_request): If SELinux forbids the request, say so.
7725 (readylist_cond): Use static initializer.
7726 (nscd_run_prune): New function. Used only by pruning threads.
7727 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7729 (fd_ready): Update nscd_run reference.
7730 (start_threads): No need to initialize readylist_cond.
7731 Start pruning threads separately.
7732 * nscd/nscd_setup_thread.c: Change return value type to int and always
7734 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7735 to int and return nonzero value if we can use the TID address hack.
7736 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7737 the database is later than the new entry's timeout, update the
7738 wakeup time and wake the cleanup thread.
7739 (prune_cache): Return seconds the next entry in the database is still
7740 valid. Remove locking for pruning here.
7741 * nscd/nscd.conf: Document default number of threads.
7743 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7745 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7746 stack is properly aligned for the target function.
7747 Correct unwind info.
7749 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7750 when using auditing libraries.
7752 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7754 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7755 _nss_dns_getnetbyaddr2_r.
7756 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7757 extra parameter to getanswer_r.
7758 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7759 _nss_dns_getnetbyaddr2_r.
7761 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7763 * nscd/gethstbynm2_r.c: Remove.
7764 * nscd/gethstbynm3_r.c: New file.
7765 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7767 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7768 __gethostbyaddr_r compatibility wrapper.
7769 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7770 determining timeout of entry.
7771 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7773 (addhstbyX): Pass reference to variable for TTL to lookup and
7775 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7776 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7777 and __nss_next2. Remove __nss_services_lookup.
7778 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7780 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7782 * nss/getXXent_r.c: Likewise.
7783 * nss/getnssent_r.c: Likewise.
7784 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7785 does not exist in module, try the optional second name.
7786 (__nss_next2): New function.
7787 (__nss_next): Now wrapper around __nss_next2.
7788 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7789 Declare __nss_next2.
7790 Adjust definition of db_lookup_function type.
7791 * nss/service-lookup.c: Define NO_COMPAT.
7792 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7793 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7794 * inet/ether_ntoh.c: Likewise.
7795 * sunrpc/netname.c: Likewise.
7796 * sunrpc/publickey.c: Likewise.
7797 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7798 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7799 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7800 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7801 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7803 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7805 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7807 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7810 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7811 * crypt/sha512c-test.c: Likewise.
7814 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7815 to keep track of end of %[ format string element.
7816 * stdio-common/Makefile (tests): Add bug20.
7817 * stdio-common/bug20.c: New file.
7820 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7821 path elements in counting mode.
7823 2007-10-27 Andreas Jaeger <aj@suse.de>
7826 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7829 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7830 (__cleanup): Free shared library when exiting.
7831 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7832 (__cleanup): Free shared library when exiting.
7834 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7837 * math/libm-test.inc (check_float_internal): Support
7838 denormalized return.
7840 2007-10-23 Andreas Jaeger <aj@suse.de>
7843 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7844 __LONG_LONG_PAIR to handle little endian byte order.
7845 Suggested by abhishekrai@google.com
7847 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7849 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7851 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7853 * nscd/cache.c (prune_cache): Move test for modified file outside
7856 2007-10-21 Andreas Jaeger <aj@suse.de>
7858 * manual/texinfo.tex: Update to latest version.
7860 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7862 * manual/arith.texi (Status bit operations): Fix formatting.
7864 * manual/errno.texi (Error Messages): Fix formatting.
7866 * manual/sysinfo.texi (System Parameters): Fix formatting.
7868 * manual/libc.texinfo: Update VERSION and UPDATED.
7870 2007-10-19 Roland McGrath <roland@redhat.com>
7872 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7874 2007-10-06 David S. Miller <davem@davemloft.net>
7876 * configure.in: Add sparcv9v2 and sparc64v2.
7877 * scripts/config.sub: Likewise.
7878 * configure: Regenerate.
7879 * elf/elf.h (HWCAP_SPARC_N2): New.
7880 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7881 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7882 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7883 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7884 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7885 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7886 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7888 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7890 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7891 even if the poll result indicates there is data to read.
7892 Patch by Jeff Moyer <jmoyer@redhat.com>.
7894 2007-10-18 Roland McGrath <roland@redhat.com>
7896 * elf/elf.h (NT_PPC_VMX): New macro.
7898 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7900 * version.h (VERSION): Set to 2.7.90.
7902 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7904 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7907 2007-10-17 Roland McGrath <roland@frob.com>
7909 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7910 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7912 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7914 * version.h (VERSION): Bump to 2.7.
7915 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7918 * time/tzset.c (__tz_convert): Don't force testing for a change of
7919 TZ if not called from localtime. But then also see whether the
7920 file changed, in case __use_tzfile is set.
7922 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7923 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7924 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7925 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7926 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7927 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7928 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7929 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7931 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7933 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7934 and admin selects to be able to replace the gai.conf file, lock
7935 data structures around the qsort call.
7937 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7939 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7941 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7942 too high for the improvements. Implement bzero unconditionally for
7945 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7946 Jakub Jelinek <jakub@redhat.com>
7948 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7949 even when time_t is 32-bit.
7950 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7951 timezone data read by __tzfile_default. Ensure __tzname[0] is
7952 always set after the search.
7954 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7956 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7957 unreachable code on 32-bit machines.
7959 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7962 * time/strftime_l.c: Include stdbool.h.
7963 (my_strftime): New wrapper, old function renamed to...
7964 (__strftime_internal): ... new function. Add tzset_called
7965 argument, pass it down to recursive calls, don't call tzset ()
7966 if already true, set to true after call to tzset ().
7968 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7970 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7971 into account when copying TZ string.
7973 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7975 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7976 num_transition rather than num_transitions - 1.
7978 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7980 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7983 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7984 a local label rather than HIDDEN_JUMPTARGET.
7986 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7988 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7989 (init_cacheinfo): Initialize it.
7990 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7991 Always define bzero.
7992 Remove non-glibc code.
7993 * sysdeps/x86_64/bzero.S: Make an empty file.
7995 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7997 * sysdeps/x86_64/cacheinfo.c
7998 (__x86_64_preferred_memory_instruction): New.
7999 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8001 * sysdeps/x86_64/memset.S: Rewrite.
8003 2007-10-15 Roland McGrath <roland@redhat.com>
8005 * po/libc.pot: Regenerated.
8007 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8009 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8013 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8014 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8015 address record to T_A/T_AAAA requests.
8017 2007-10-14 Ulrich Drepper <drepper@redhat.com>
8019 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8021 * posix/glob.c: Add some branch prediction throughout.
8023 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8026 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8028 (rfc3484_sort): Make sure that even if qsort doesn't support
8029 stable sorting out sorting here is stable by comparing service_order.
8030 (getaddrinfo): Initialize service_order.
8031 * posix/tst-rfc3484.c (do_test): Adjust for addition of
8032 service_order field to sorting structure.
8033 * posix/tst-rfc3484-2.c (do_test): Likewise.
8035 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8036 * time/tzset.c (tzset_internal): Break TZ string parsing out into
8037 __tzset_parse_tz and updating of daylight, timezone, tzname into
8039 (__tz_compute): Renamed from tz_compute. Take additional parameters.
8040 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8041 happens in __tz_compute.
8042 * time/tzfile.c (__tzfile_read): Also read TZ string.
8043 (find_transition): Fold into __tzfile_compute.
8044 (__tzfile_compute): For times beyond the last transition try to
8046 * timezone/tst-timezone.c: Information in daylight and tzname does
8047 change for Asia/Tokyo timezone with more concrete information.
8050 * include/stdio.h: Add libc_hidden_proto for ftello.
8051 * libio/ftello.c: Add libc_hidden_def.
8054 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8055 on the specified time and not the last entries in the file. Move
8056 code to determine tzname[] to...
8057 (find_transition): ...here. Add ugly guess for times before the
8060 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8063 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8065 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8066 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8067 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8068 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8070 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8071 read mechanism when there are no group members and avoid no-op
8072 read syscall in this case.
8075 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8076 (__readall): If reading failed due to EAGAIN error wait a bit
8077 and possibly try again.
8078 (__readvall): Likewise.
8080 2007-10-13 Bruno Haible <bruno@clisp.org>
8082 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8083 when we cannot recode the message.
8085 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8088 * libio/__freading.c (__freading): Don't return true for
8089 write-only streams. For read/write streams, check whether we
8090 performed a read operation already.
8091 * libio/Makefile (tests): Add tst-ext2.
8092 * libio/tst-ext2.c: New file.
8094 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8096 * locale/programs/repertoire.c (repertoire_read): Always free
8097 memory for repertoire file name [Coverity CID 270].
8099 * elf/cache.c (save_aux_cache): Free memory allocated for
8100 temporary file name [Coverity CID 267].
8102 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8104 * misc/Makefile (headers): Add bits/error.h.
8106 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8108 * posix/fnmatch_loop.c: Take rule index returned as part of
8109 findidx return value into account when accessing weights.
8110 * posix/regcomp.c: Likewise.
8111 * posix/regexec.c: Likewise.
8113 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8114 (skip_to): Fix problems with parameter of elifdef/elifndef.
8116 2007-10-11 Ulrich Drepper <drepper@redhat.com>
8118 * iconv/gconv_simple.c: Add some branch prediction.
8120 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8122 * locale/programs/ld-collate.c (collate_read): If ignore_content
8123 and nowtok is tok_define, eat any tok_eol tokens.
8125 2007-10-11 Jakub Jelinek <jakub@redhat.com>
8127 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8128 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8130 * inet/netinet/in.h: Don't include bits/socket.h.
8131 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8133 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8135 2007-10-10 Ulrich Drepper <drepper@redhat.com>
8137 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8139 * locale/programs/locfile-kw.gperf: Likewise.
8140 * locale/programs/ld-collate.c: Implement primitive preprocessor.
8142 2007-10-10 Jakub Jelinek <jakub@redhat.com>
8144 * stdio-common/printf-parse.h: Include string.h and wchar.h.
8145 (__find_specwc): Change into __extern_always_inline function.
8146 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
8147 (__parse_one_specmb): Remove ps argument.
8148 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8149 Adjust __find_specmb and __parse_one_specmb callers.
8150 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8151 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8153 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8156 2007-10-09 Ulrich Drepper <drepper@redhat.com>
8158 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8159 with some Pentium Ds.
8161 2007-10-08 Ulrich Drepper <drepper@redhat.com>
8163 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8165 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8168 2007-10-07 Ulrich Drepper <drepper@redhat.com>
8171 * locale/C-time.c: Set week_1stday data to 19971201.
8172 * locale/programs/ld-time.c (time_finish): Default for
8173 first_workday is Monday.
8176 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8179 * posix/glob.c (glob): Recognize patterns starting \/.
8180 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8181 (main): Add test for pattern starting \/.
8183 * misc/error.h: Use __const instead of const.
8184 * misc/bits/error.h: Likewise.
8186 2007-10-07 Andreas Jaeger <aj@suse.de>
8188 * include/bits/error.h: New file.
8190 * misc/bits/error.h (error_at_line): Fix prototype.
8192 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8195 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8196 more little bugs in creating the stack frame when pltexit has to
8199 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8200 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8203 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8204 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8205 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8206 * math/libm-test.inc: Add test for this case.
8209 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8210 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8211 map service succeeded.
8212 (svc_is_mapped): New function.
8213 (svc_unregister): Use it before trying to unmap service.
8215 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8217 * timezone/zic.c: Update from tzcode2007h.
8220 * timezone/africa: Update from tzdata2007h.
8221 * timezone/antarctica: Likewise.
8222 * timezone/asia: Likewise.
8223 * timezone/australasia: Likewise.
8224 * timezone/europe: Likewise.
8225 * timezone/leapseconds: Likewise.
8226 * timezone/northamerica: Likewise.
8227 * timezone/southamerica: Likewise.
8228 * timzeone/zone.tab: Likewise.
8231 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8234 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8235 avoid warning with -Wconversion.
8236 (__strndup): Likewise.
8237 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8240 * nscd/connections.c (restart): Don't resync if database is
8241 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8243 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8244 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8246 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8247 evetnfd_read, eventfd_write.
8248 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8249 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8250 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8251 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8252 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8253 eventfd_write for GLIBC_2.7.
8255 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8256 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8257 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8258 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8260 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8262 * stdlib/msort.c: Include stdint.h.
8263 (struct msort_param): New type.
8264 (msort_with_tmp): Use struct msort_param pointer for unchanging
8265 parameters. Add optimized handling for several common sizes
8266 and indirect sorting mode.
8267 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8269 Suggested by Belazougui Djamel .
8271 * stdlib/Makefile (tests): Add tst-qsort2.
8272 * stdlib/tst-qsort2.c: New test.
8274 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8276 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8277 for dup2 in case another thread races with the current one. Retry
8280 * misc/error.h: Remove support for use outside of libc. We have to
8281 include <features.h> now. Include <bits/error.h> if possible.
8282 * misc/bits/error.h: New file.
8284 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8286 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8287 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8288 __extern_always_inline functions unconditionally, drop macros.
8290 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8291 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8292 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8294 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8295 add __artificial__ attribute.
8297 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8299 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8300 backward to forward direction.
8302 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8305 * locale/programs/ld-collate.c (collate_finish): Compare against last
8306 used section which is known to have rules defined.
8307 (collate_read): After order_start, correctly record order of sections
8308 and queue sections up.
8310 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8313 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8314 the same number of pages.
8315 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8317 * locale/programs/ld-collate.c (collate_read): After initial copy
8318 statement, continue in state 0.
8320 * include/stdio_ext.h (__fsetlocking): Define as macro.
8322 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8324 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8327 * po/pt_BR.po: Fix typo.
8329 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8331 * iconvdata/Makefile (modules): Add ISO8859-9E.
8332 (distribute): Add iso8859-9e.c.
8333 (gen-8bit-gap-modules): Add iso8859-9e.
8334 * iconvdata/iso8859-9e.c: New file.
8335 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8336 * iconvdata/TESTS: Likewise.
8337 * iconvdata/tst-tables.sh: Likewise.
8339 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8341 * locale/iso-639.def: Add several new entries.
8343 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8345 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8346 void * pointers instead of struct link_map **.
8347 (_dl_scope_free): Change argument type to void *.
8348 * include/link.h (struct link_map): Change type of l_reldeps
8349 to struct link_map_reldeps, move l_reldepsact into that
8351 * elf/dl-deps.c: Include atomic.h.
8352 (_dl_map_object_deps): Only change l->l_initfini when it is
8353 fully populated, use _dl_scope_free for freeing it. Optimize
8354 removal of libs from reldeps by using l_reserved flag, when
8355 some removal is needed, allocate a new list instead of
8356 reallocating and free the old with _dl_scope_free. Adjust
8357 for l_reldeps and l_reldepsact changes.
8358 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8359 searching in l_initfini and l_reldeps without holding dl_load_lock.
8360 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8361 l_reldepsact changes.
8362 * elf/dl-close.c (_dl_close_worker): Likewise.
8363 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8365 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8367 * iconvdata/Makefile (modules): Add KOI8-RU.
8368 (distribute): Add koi8-ru.c.
8369 (gen-8bit-gap-modules): Add koi8-ru.
8370 * iconvdata/koi8-ru.c: New file.
8371 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8372 * iconvdata/TESTS: Likewise.
8373 * iconvdata/tst-tables.sh: Likewise.
8375 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8377 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8379 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8380 with __warning__/__error__ attributes.
8381 (__warnattr): Define.
8382 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8383 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8385 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8386 of __*_chk if compile time detectable overflow is found.
8387 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8388 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8390 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8391 instead of __*_chk if compile time detectable overflow is found.
8392 (__gets_alias): Rename to...
8393 (__gets_warn): ... this. Add __warnattr.
8394 (gets): Call __gets_warn instead of __gets_alias.
8395 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8396 aliases with __warnattr.
8397 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8398 time detectable overflow is found.
8399 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8400 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8401 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8402 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8403 __getdomainname_chk_warn): New aliases with __warnattr.
8404 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8405 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8406 __*_chk_warn instead of __*_chk if compile time detectable overflow
8408 (__getgroups_chk): Rename argument to __listlen from listlen.
8409 (__getwd_alias): Rename to...
8410 (__getwd_warn): ... this. Add __warnattr.
8411 (getwd): Call __getwd_warn instead of __getwd_alias.
8412 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8413 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8414 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8415 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8416 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8417 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8418 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8419 compile time detectable overflow is found.
8420 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8421 to use __*_chk or not.
8422 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8423 in comparisons which function should be called and in __*_chk*
8424 arguments. Call __*_chk_warn instead of __*_chk if compile time
8425 detectable overflow is found.
8426 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8428 * debug/tst-chk1.c (do_test): Add a few more tests.
8430 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8433 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8434 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8435 (_nl_unload_domain): Finalize conversions_lock.
8436 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8437 handling table of known conversions.
8439 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8441 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8442 close_not_cancel_no_status instead of close.
8444 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8447 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8448 nrules != 0 for multibyte chars.
8450 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8452 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8453 Provide better error message in case the type is unknown.
8456 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8457 * string/stratcliff.c: Make usable to test wide char functions.
8458 * wcsmbs/wcsatcliff.c: New file.
8459 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8462 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8463 (distribute): Add mac-centraleurope.c.
8464 (gen-8bit-gap-modules): Add mac-centraleurope.
8465 * iconvdata/mac-centraleurope.c: New file.
8466 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8467 * iconvdata/TESTS: Likewise.
8468 * iconvdata/tst-tables.sh: Likewise.
8471 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8473 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8475 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8476 from __x86_64_core_cache_size_half.
8477 (init_cacheinfo): Compute shared cache size for AMD processors with
8478 shared L3 correctly.
8479 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8481 Patch in large parts by Evandro Menezes.
8483 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8485 * elf/dl-lookup.c (add_dependency): Handle failing memory
8486 allocation for dependency list. Remove unnecessary check.
8488 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8489 open/close when determining source addresses.
8491 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8492 sha512-crypt, and sha512.
8493 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8494 (distribute): Add sha256.h and sha512.h.
8495 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8496 and call the appropriate code.
8497 * crypt/sha256-crypt.c: New file.
8498 * crypt/sha256.c: New file.
8499 * crypt/sha256.h: New file.
8500 * crypt/sha256c-test.c: New file.
8501 * crypt/sha256test.c: New file.
8502 * crypt/sha512-crypt.c: New file.
8503 * crypt/sha512.c: New file.
8504 * crypt/sha512.h: New file.
8505 * crypt/sha512c-test.c: New file.
8506 * crypt/sha512test.c: New file.
8508 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8510 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8511 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8514 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8516 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8517 %as in fscanf format strings.
8519 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8520 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8521 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8523 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8526 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8527 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8528 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8529 * elf/dl-sym.c (do_sym): Likewise.
8530 * include/link.h (struct link_map): Add l_serial field.
8531 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8532 * elf/dl-lookup.c (add_dependency): Add flags argument.
8533 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8534 flags, use THREAD_GSCOPE_RESET_FLAG before and
8535 THREAD_GSCOPE_SET_FLAG after
8536 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8537 Don't dereference map until it has been found on some list.
8538 If map->l_serial changed, return -1.
8540 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8542 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8543 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8544 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8546 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8547 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8548 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8549 add libc_hidden_proto.
8550 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8551 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8552 conformance requested.
8553 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8554 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8555 conformance requested.
8556 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8557 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8558 conformance requested.
8559 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8560 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8561 ISO C99 or POSIX conformance requested.
8562 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8563 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8564 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8565 and __isoc99_vsscanf@@GLIBC_2.7.
8566 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8567 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8568 (tests): Add scanf14.
8569 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8570 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8571 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8572 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8573 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8574 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8575 from using internal headers.
8576 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8577 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8578 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8579 and __isoc99_vswscanf@@GLIBC_2.7.
8580 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8581 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8582 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8583 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8584 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8585 * stdio-common/isoc99_scanf.c: New file.
8586 * stdio-common/isoc99_vsscanf.c: New file.
8587 * stdio-common/isoc99_vscanf.c: New file.
8588 * stdio-common/isoc99_vfscanf.c: New file.
8589 * stdio-common/isoc99_fscanf.c: New file.
8590 * stdio-common/isoc99_sscanf.c: New file.
8591 * wcsmbs/isoc99_fwscanf.c: New file.
8592 * wcsmbs/isoc99_vswscanf.c: New file.
8593 * wcsmbs/isoc99_swscanf.c: New file.
8594 * wcsmbs/isoc99_wscanf.c: New file.
8595 * wcsmbs/isoc99_vwscanf.c: New file.
8596 * wcsmbs/isoc99_vfwscanf.c: New file.
8597 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8598 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8599 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8600 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8601 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8602 * stdio-common/scanf14.c: New test.
8603 * stdio-common/scanf15.c: New test.
8604 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8605 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8606 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8607 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8608 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8609 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8610 __nldbl___isoc99_scanf@@GLIBC_2.7,
8611 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8612 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8613 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8614 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8615 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8616 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8617 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8618 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8619 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8620 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8621 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8622 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8623 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8624 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8625 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8626 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8627 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8628 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8629 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8630 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8631 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8632 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8633 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8635 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8636 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8637 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8638 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8639 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8640 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8641 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8642 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8643 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8644 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8645 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8646 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8648 * stdio-common/Makefile (tests): Add scanf13.
8650 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8651 m modifier followed by l.
8652 (STRING_ARG): Add width argument.
8653 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8654 <case L_('C')>: Handle %mlc and %mC.
8655 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8657 * stdio-common/scanf13.c: New test.
8659 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8660 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8662 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8664 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8665 type and __THROW marker of splice, vmsplice, and tee.
8666 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8667 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8668 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8669 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8670 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8671 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8672 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8673 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8674 as cancellation points.
8676 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8678 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8679 parse more than three parts of the version number.
8681 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8683 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8684 modifier. Patch by Jakub Jelinek.
8686 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8688 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8689 call_fallocate in misc subdir.
8690 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8691 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8692 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8693 instead of __fallocate64.
8694 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8696 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8698 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8699 * rt/Makefile (headers): Add bits/mqueue2.h.
8700 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8701 optimizing with GCC and __va_arg_pack_len is defined.
8702 * rt/bits/mqueue2.h: New file.
8703 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8704 (mq_open): New strong_alias.
8705 (__mq_open_2): New function.
8706 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8707 (mq_open): New strong_alias.
8708 (__mq_open_2): New function.
8709 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8710 * Versions.def (librt): Add GLIBC_2.7 version.
8711 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8712 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8714 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8715 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8716 is defined rather than when not C++.
8717 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8718 __openat64_alias): New redirects.
8719 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8720 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8721 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8722 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8723 functions instead of function-like macros.
8725 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8727 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8728 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8729 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8731 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8733 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8734 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8736 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8738 * inet/tst-network.c: Increment ERRORS for failing tests.
8740 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8742 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8743 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8744 implement as __extern_always_inline function.
8745 (vsyslog): Define as __extern_always_inline function unconditionally.
8746 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8747 When __va_arg_pack is defined, implement as __extern_always_inline
8749 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8750 __extern_always_inline functions unconditionally.
8751 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8752 bits/stdio2.h will be included.
8753 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8754 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8755 implement as __extern_always_inline functions.
8756 (vswprintf, vwprintf, vfwprintf): Define as
8757 __extern_always_inline functions unconditionally.
8758 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8760 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8762 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8763 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8765 * include/features.h (__USE_EXTERN_INLINES): Define only when
8766 __extern_inline is defined.
8767 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8768 is defined instead of when not __cplusplus.
8769 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8770 is defined instead of when not __cplusplus.
8771 * socket/sys/socket.h: Include bits/socket2.h when
8772 __extern_always_inline is defined instead of when not __cplusplus.
8773 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8774 is defined instead of when not __cplusplus.
8775 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8776 is defined instead of when not __cplusplus.
8777 * string/string.h: Include bits/string3.h when __extern_always_inline
8778 is defined instead of when not __cplusplus.
8779 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8780 is defined instead of when not __cplusplus.
8781 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8782 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8784 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8785 defined __extern_always_inline instead of !defined __cplusplus.
8786 * libio/bits/stdio-ldbl.h: Likewise.
8787 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8788 * misc/bits/syslog.h (syslog): Don't define for C++.
8789 (vsyslog): Use __extern_always_inline function for C++ instead of
8791 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8792 whenever that macro is defined.
8793 (vprintf): Don't provide the inline for C++.
8794 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8795 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8796 define the macros for C++.
8797 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8798 __extern_always_inline functions for C++.
8799 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8800 stat64, lstat64, fstat64, fstatat64): Don't define if not
8801 __USE_EXTERN_INLINES.
8802 * wcsmbs/bits/wchar2.h: Fix #error message.
8803 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8804 (vswprintf, vwprintf, vfwprintf): Define using
8805 __extern_always_inline functions for C++.
8806 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8807 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8808 strncpy, strcat, strncat): Define as __extern_always_inline
8809 functions instead of macros for C++.
8810 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8811 defined __extern_inline.
8812 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8813 to __extern_inline whenever that macro is defined.
8814 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8815 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8816 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8817 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8818 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8819 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8820 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8821 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8822 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8823 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8824 prototypes. Only provide __extern_inline routines if
8825 __USE_EXTERN_INLINES.
8826 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8828 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8829 For now avoid some *printf tests in C++. Skip all testing
8830 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8832 * debug/tst-chk4.cc: New file.
8833 * debug/tst-chk5.cc: New file.
8834 * debug/tst-chk6.cc: New file.
8835 * debug/tst-lfschk4.cc: New file.
8836 * debug/tst-lfschk5.cc: New file.
8837 * debug/tst-lfschk6.cc: New file.
8838 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8840 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8841 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8842 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8844 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8846 * po/cs.po: Update from translation team.
8848 2007-09-11 Roland McGrath <roland@redhat.com>
8850 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8853 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8855 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8857 2007-09-05 Roland McGrath <roland@redhat.com>
8859 * manual/signal.texi (Signaling Another Process): Typo fix.
8860 From Karl Berry <karl@freefriends.org>.
8862 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8864 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8865 zero if not defined.
8866 (make_request): Recognize optimistic addresses and treat them like
8867 deprecated addresses.
8868 Reported by Neil Horman <nhorman@redhat.com>.
8870 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8872 * nscd/connections.c (send_ro_fd): Also transfer file size.
8873 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8874 file size don't call fstat.
8876 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8877 ahead and map the file. This should always be correct and we can
8878 catch problems later.
8880 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8882 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8884 (__fread_alias, __fread_unlocked_alias): New aliases.
8885 (fread): New extern inline.
8886 (fread_unlocked): Likewise. Undef macro before definition of
8887 the inline function.
8888 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8889 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8890 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8891 and __fread_unlocked_chk@@GLIBC_2.7.
8892 * debug/fread_chk.c: New file.
8893 * debug/fread_u_chk.c: New file.
8894 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8896 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8898 * sysdeps/unix/sysv/linux/syscalls.list
8899 (personality): Change caller to EXTRA.
8901 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8903 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8905 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8907 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8910 * Makerules: Use -p option with mkdir.
8912 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8913 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8914 (_xdr_directory_obj): Likewise.
8915 (xdr_entry_obj): Likewise.
8916 (xdr_group_obj): Likewise.
8917 (xdr_link_obj): Likewise.
8918 (xdr_table_obj): Likewise.
8919 (_xdr_nis_result): Likewise.
8920 (_xdr_ns_request): Likewise.
8921 (_xdr_ib_request): Likewise.
8922 (_xdr_nis_taglist): Likewise.
8923 (xdr_cback_data): Likewise.
8924 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8925 (xdr_ypresp_maplist): Likewise.
8927 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8929 * posix/regex_internal.h: Prevent some declarations and definitions
8930 to be seen when used in tests.
8932 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8933 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8935 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8937 * config.make.in (datarootdir): Add to shut up configure.
8939 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8940 associativity for fully-associative caches.
8942 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8943 requests. Fill on more associativity values for L2.
8944 Patch mostly by Evandro Menezes.
8946 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8948 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8949 (_libc_vdso_platform_setup): Avoid using exported variable by using
8952 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8954 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8955 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8958 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8960 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8961 align stack for call if pltexit is to be used.
8964 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8965 align for function call in case pltexit has to be called later.
8967 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8968 implicit atomic operation when storing function pointer.
8969 (_dl_runtime_profile): Likewise.
8971 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8973 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8976 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8979 * string/strtok.c: Fix typo in comment.
8982 * debug/segfault.c: Fix typos in comments.
8985 * stdio-common/tempnam.c: Fix comment, it is not checked that
8986 TMPDIR points to a writable directory.
8989 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8990 memory allocated for the name server address.
8993 * nscd/connections.c (handle_request): Using sendfile always
8994 requires that mmap is used for the database.
8995 Patch by Petr Baudis <pasky@suse.cz>.
8998 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8999 suddenly has two or more addresses, ignore it and remove the old
9003 * resolv/res_hconf.c: Prepare for compiling outside libc.
9004 * nscd/res_hconf.c: New file.
9005 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
9007 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9008 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9010 * nscd/hstcache.c (cache_addhst): Minimal optimization.
9013 * debug/pcprofiledump.c: Turn on internationalization by calling
9014 setlocale. Patch mostly by Benno Schulenberg.
9017 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9019 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9020 * iconvdata/bug-iconv5.c: New file.
9022 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
9025 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9026 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9027 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9028 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9029 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9030 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9031 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9032 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9034 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9037 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9038 lookup loop. Suggested by John Reiser.
9040 2007-08-21 Jakub Jelinek <jakub@redhat.com>
9042 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9044 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9046 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9047 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9048 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9049 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9050 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9052 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9054 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9056 * po/nl.po: Update from translation team.
9058 2007-08-16 Andreas Jaeger <aj@suse.de>
9060 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9061 Reported by Peter Festner <peter.festner@ewetel.net>.
9063 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9065 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9067 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9069 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9070 to check for undefined symbols.
9072 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9073 If the syscall fails, set errno to the actual returned error number
9075 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9076 arguments are incorrect, set errno to EINVAL, if the syscall
9077 fails, set errno to the actual returned error number.
9079 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9080 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9082 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9083 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9085 (ASI_PNF, ASI_BLK_P): Don't define.
9086 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9087 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9089 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9090 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9093 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9095 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9096 FE_UNDERFLOW on Niagara CPUs.
9098 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9101 2007-08-14 Jakub Jelinek <jakub@redhat.com>
9103 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9104 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9105 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9106 flush should be used or not inside of the function.
9107 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9109 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9110 __thread_start): Use HIDDEN_JUMPTARGET.
9111 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9112 __thread_start): Likewise.
9113 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9115 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9116 Add libc_hidden_proto.
9117 (STRTOF): Add libc_hidden_proto.
9118 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9119 (strtold_l, wcstold_l): Use them as second argument for
9122 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9124 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
9126 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9128 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
9130 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9132 * po/bg.po: New file. From the translation team.
9134 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9136 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9137 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9138 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9139 when each feature was introduced.
9141 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9142 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9143 (CHECK_HASH): New macro.
9144 (PREPARE_VERSION): Use it.
9146 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9147 prototype if not __ASSUME_PSELECT.
9148 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9149 prototype if not __ASSUME_PPOLL.
9151 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9153 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9154 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9157 2007-08-13 Ulrich Drepper <drepper@redhat.com>
9159 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9160 (_libc_vdso_platform_setup): If vDSO is not available point
9161 __vdso_gettimeofday to the vsyscall.
9162 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9163 __vdso_gettimeofday instead of vsyscall.
9165 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9167 * nscd/servicescache.c: Include kernel-features.h.
9168 * nscd/gai.c: Likewise.
9169 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9170 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9171 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9172 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9173 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9174 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9175 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9176 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9177 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9179 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9181 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9182 and _dl_get_origin defines anymore.
9184 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9185 Build fix for systems which might lack POSIX timer support.
9187 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9188 (_libc_vdso_platform_setup): Mangle function pointers before storing
9190 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9191 Demangle vdso pointer before use.
9192 (INTERNAL_VSYSCALL): Likewise.
9194 * elf/cache.c (primes): Mark as const.
9195 Noted by Roland McGrath.
9197 2007-08-01 Andreas Jaeger <aj@suse.de>
9198 Jakub Jelinek <jakub@redhat.com>
9200 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9201 (options): Add option.
9202 (parse_opt): Handle option.
9203 (manual_link): Adjust process_file caller. Call implicit_soname.
9204 (search_dir): Formatting. Use and populate auxiliary cache.
9205 (main): Load and save auxiliary cache.
9206 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9207 stat64 from fstat64 to caller.
9208 (implicit_soname): New function.
9209 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9210 leave *soname as NULL.
9211 * elf/cache.c: Include libgen.h.
9212 (print_entry, print_cache, compare, save_cache, add_to_cache):
9213 Formatting and cleanups.
9214 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9215 aux_cache_file): New structures.
9216 (AUX_CACHEMAGIC): Define.
9217 (primes): New array.
9218 (aux_hash_size, aux_hash): New variables.
9219 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9220 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9221 load_aux_cache, save_aux_cache): New functions.
9222 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9223 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9224 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9225 (process_file): Adjust prototype.
9227 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9229 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9232 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9234 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9235 r_found_version structure as second parameter.
9236 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9237 (_dl_vdso_vsym): Change type of second parameter accordingly.
9238 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9239 (_libc_vdso_platform_setup): Adjust.
9240 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9241 (_libc_vdso_platform_setup): Likewise.
9243 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9244 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9245 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9246 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9247 * csu/libc-start.c: Pretty printing.
9248 Use VDSO_SETUP if defined.
9249 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9250 and let generic code call into _libc_vdso_platform_setup.
9251 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9252 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9253 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9254 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9255 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9257 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9258 (sysdep_rountines): Add dl-vdso.
9260 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9263 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9264 attribute_hidden to __vdso_gettimeofday prototype.
9266 2007-08-12 Roland McGrath <roland@redhat.com>
9268 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9269 From: Karl Berry <karl@freefriends.org>.
9271 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9273 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9274 an atime update for the files we read.
9276 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9278 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9280 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9283 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9284 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9285 * misc/mkostemp.c: New file.
9286 * misc/mkostemp64.c: New file.
9287 * stdlib/stdlib.h: Declare the new functions.
9288 * sysdeps/posix/tempname.c: Add new parameter which is added to
9289 the flags for open. Remove __GT_BIGFILE handling.
9290 * stdio-common/tempname.c: Likewise.
9291 * include/stdio.h: Adjust __gen_tempname prototype.
9292 Renumber __GT_* constants.
9293 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9294 * misc/mkdtemp.c: Likewise.
9295 * misc/mkstemp.c: Likewise.
9296 * misc/mkstemp64.c: Likewise.
9297 * misc/mktemp.c: Likewise.
9298 * stdio-common/tempnam.c: Likewise.
9299 * stdio-common/tmpfile.c: Likewise.
9300 * stdio-common/tmpfile64.c: Likewise.
9301 * stdio-common/tmpnam.c: Likewise.
9302 * stdio-common/tmpnam_r.c: Likewise.
9304 2007-08-10 Roland McGrath <roland@frob.com>
9306 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9308 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9309 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9311 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9313 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9315 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9316 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9317 * nss/nss_files/files-have_o_cloexec.c: New file.
9319 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9322 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9324 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9325 ___new_wcstold_l): New weak aliases.
9326 (strtold_l, wcstold_l): Use them as second argument for
9329 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9331 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9332 register in test for error.
9334 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9335 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9337 * po/sv.po: Update from translation team.
9339 2007-08-06 Roland McGrath <roland@redhat.com>
9341 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9342 Remove __strto*_l inlines.
9343 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9344 * stdlib/strtod.c: Add libc_hidden_def.
9345 * stdlib/strtod_l.c: Likewise.
9346 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9347 for __new_strtold and __new_wcstold.
9348 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9350 * stdlib/strtol.c: Add libc_hidden_def.
9351 * stdlib/strtol_l.c: Likewise.
9352 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9355 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9357 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9358 * scripts/data/localplt-generic.data: ... here.
9359 * elf/Makefile (check-data): Get generic file if no other.
9360 ($(objpfx)check-localplt.out): Make target unconditional.
9362 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9365 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9367 * po/zh_CN.po: Updated translation from translation team.
9369 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9372 Don't use CGOTSETUP and CGOTRESTORE macros.
9374 2007-08-04 Roland McGrath <roland@redhat.com>
9376 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9378 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9380 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9381 __extension__ around the whole statement expression.
9383 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9385 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9386 elements during initialization.
9388 * po/pl.po: Updated translation from translation team.
9389 * po/tr.po: Likewise.
9390 * po/nl.po: Likewise.
9392 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9394 * rt/aio.h: Add __nonnull attributes.
9396 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9398 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9399 * stdlib/Makefile (tests): Add tst-strtod5.
9400 (tst-strtod5-ENV): New.
9401 * stdlib/tst-strtod5.c: New file.
9403 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9405 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9408 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9411 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9413 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9416 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9418 * io/Makefile (aux): Add have_o_cloexec.
9419 * include/fcntl.h: Declare __have_o_cloexec.
9420 * io/have_o_cloexec.c: New file.
9421 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9422 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9423 fcntl call if not necessary.
9424 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9427 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9428 Avoid memset, add explicit initialization.
9429 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9430 to the end and change into zero-sized array.
9431 Move lock member to fill a hole on 64-bit platforms.
9433 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9435 * include/stdlib.h: Add __strto*_internal prototypes here.
9436 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9438 * include/wchar.h: Add __wcsto*_internal prototypes.
9439 * sysdeps/generic/inttypes.h: No need to protect the declaration
9440 of the __strto*_internal and __wcsto*_internal members here.
9442 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9444 2007-08-02 Roland McGrath <roland@redhat.com>
9446 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9447 $(inst_bindir)/getconf if possible.
9449 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9450 (generated): Add it.
9451 ($(inst_libexecdir)/getconf): Use it.
9453 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9455 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9456 /proc is faster and sufficient. /sys is still needed for
9459 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9461 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9462 syscall as __fallocate64.
9463 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9464 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9466 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9468 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9471 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9472 if off_t is different rank from size_t.
9474 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9475 uw_frame_state_for): Avoid type punning warnings.
9476 * sysdeps/generic/unwind-dw2-fde-glibc.c
9477 (_Unwind_IteratePhdrCallback): Likewise.
9478 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9479 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9480 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9483 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9485 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9486 total processors using sysfs.
9487 (__get_nprocs): Use sysfs to determine which processors are online.
9489 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9491 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9492 syscall arguments count.
9494 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9496 2007-07-30 Roland McGrath <roland@redhat.com>
9498 * manual/libc.texinfo: Update copyrights, formatting magic, and
9499 @dircategory. From Karl Berry <karl@freefriends.org>.
9501 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9504 * io/Makefile (headers): Add bits/fcntl2.h.
9506 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9508 (__CPU_EQUAL_S): Likewise.
9510 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9511 (tests): Add tst-cpuset.
9512 * posix/sched_cpualloc.c: New file.
9513 * posix/sched_cpufree.c: New file.
9514 * posix/tst-cpuset.c: New file.
9515 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9517 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9518 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9519 macros. Define CPU_*_S macros.
9521 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9523 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9527 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9528 #.0g and value rounded to 1.0.
9529 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9531 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9533 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9534 for int_frac_digits and frac_digits.
9536 * login/logout.c (logout): Avoid aliasing violation.
9537 * login/logwtmp.c (logwtmp): Likewise.
9539 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9541 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9543 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9545 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9547 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9550 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9552 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9554 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9555 char * to avoid warning.
9556 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9558 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9560 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9561 allocate_arrays): Cast second argument to charmap_find_symbol
9562 to char * to avoid warnings.
9564 * locale/programs/repertoire.c (repertoire_new_char): Change
9565 from_nr, to_nr and cnt to unsigned long, adjust printf format
9568 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9569 Cast second argument to new_element to char * to avoid warnings.
9571 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9573 * intl/gettextP.h (struct loaded_domain): Change plural to const
9574 struct expression *.
9575 * intl/plural-eval.c (plural_eval): Change first argument to
9576 const struct expression *.
9577 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9578 argument to const struct expression **.
9579 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9581 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9582 in call to __gettext_free_exp.
9584 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9585 unitialized wstring/wpattern var warnings.
9587 * posix/runtests.c (struct a_test): Make data field const char *.
9589 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9590 vars if not LDBL_MANT_DIG >= 106.
9592 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9594 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9595 __find_specmb to avoid warning.
9597 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9599 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9602 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9605 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9606 tv var when it will be actually used.
9608 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9611 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9612 char array resp. pointer.
9613 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9615 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9616 to const unsigned char **.
9617 (ucs4_to_cns11643): Change second argument to unsigned char *.
9618 * iconvdata/euc-tw.c (BODY): Change endp type to
9619 const unsigned char *.
9620 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9622 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9623 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9624 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9625 types to unsigned char pointers/arrays instead of char.
9626 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9628 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9629 * iconvdata/jis0212.h: Include assert.h.
9630 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9631 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9632 of trying to handle that.
9633 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9635 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9636 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9637 two dimensional const unsigned char arrays.
9638 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9639 Initialize endp to inptr to shut up a warning.
9641 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9644 * time/strptime_l.c (__strptime_internal): Silently ignore
9645 strftime modifiers and field width in recursive calls.
9647 * include/time.h (enum ptime_locale_status): Remove.
9648 (__strptime_internal): Remove decided and era_cnt arguments,
9649 add statep argument.
9650 * time/strptime_l.c (__strptime_internal): Remove decided
9651 and era_cnt arguments, add statep argument. Don't recompute
9652 any fields in recursive calls, only update caller's tm
9653 and state, if recursive call fails, don't change tm nor
9655 (get_alt_number): Adjust.
9656 (recursive): Adjust caller.
9657 (strptime): Likewise.
9658 * time/strptime.c (strptime): Likewise.
9660 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9662 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9663 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9664 if from and to charsets are the same.
9665 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9666 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9667 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9669 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9671 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9672 Don't define wint_t when __need_mbstate_t unless it
9674 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9675 in the typedef if possible.
9676 * wctype/wctype.h (wint_t): Define by including
9677 wchar.h with __need_wint_t instead of including stddef.h
9678 with __need_wint_t and as fallback definining it ourselves.
9679 * iconv/gconv.h (__need_wint_t): Define before including
9681 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9682 or _GLIBCPP_USE_WCHAR_T.
9683 (__need_wchar_t): Don't define
9684 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9685 (__need_wint_t): Don't define before including stddef.h,
9686 define before including wchar.h only if _LIBC or
9687 _GLIBCPP_USE_WCHAR_T.
9688 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9689 * sysdeps/mach/hurd/_G_config.h: Likewise.
9690 * sysdeps/generic/_G_config.h: Likewise.
9691 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9692 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9693 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9694 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9696 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9698 * sysdeps/posix/posix_fallocate64.c: Undefine
9699 __posix_fallocate64_l64 before alias handling.
9700 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9701 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9702 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9703 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9705 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9707 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9709 * locale/programs/ld-collate.c (atwc): New variable.
9710 (add_to_tablewc): New toplevel function, moved from collate_output.
9711 (collate_output): Remove add_to_tablewc nested function.
9713 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9714 (name_insert): New function.
9715 (write_output): Remove hash_table and hash_size vars and name_insert
9718 2007-07-24 Roland McGrath <roland@redhat.com>
9720 * Makerules (install-others-programs-nosubdir): New target.
9721 (install-no-libc.a-nosubdir): Depend on it.
9723 * iconv/Makefile (install-others-programs): Set this instead of
9725 * login/Makefile (install-others-programs): Likewise.
9726 * posix/Makefile (install-others-programs): Likewise.
9728 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9731 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9733 * io/Makefile (tests): Add tst-posix_fallocate.
9734 * io/tst-posix_fallocate.c: New file.
9736 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9739 2007-07-22 Roland McGrath <roland@frob.com>
9741 * hurd/getdport.c: Add missing copyright year update.
9743 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9744 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9746 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9748 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9750 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9751 O_CLOEXEC is needed.
9752 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9753 Avoid additional fcntl to set O_CLOEXEC if not needed.
9754 * nis/nss_compat/compat-initgroups.c: Likewise.
9755 * nis/nss_compat/compat-pwd.c: Likewise.
9756 * nis/nss_compat/compat-spwd.c: Likewise.
9758 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9761 * manual/errno.texi: Change ECANCELED value to 119.
9764 * mach/lock-intern.h: Include <sys/cdefs.h>.
9767 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9771 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9774 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9776 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9778 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9780 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9782 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9784 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9785 descriptor received from nscd.
9787 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9789 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9790 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9791 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9792 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9793 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9794 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9796 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9799 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9802 * login/forkpty.c (forkpty): Close master and slave fds on
9803 fork failure. Patch by
9804 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9806 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9808 * include/features.h (__USE_ISOC95): New define.
9809 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9810 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9811 for -std=iso9899:199409.
9812 * CONFORMANCE: Remove comments about unsupported AMD1.
9814 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9816 * sysdeps/ia64/sched_cpucount.c: New file.
9817 * sysdeps/powerpc/sched_cpucount.c: New file.
9819 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9820 __BEGIN_DECLS/__END_DECLS around the prototype.
9821 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9822 pointer to const cpu_set_t.
9824 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9825 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9826 __need_size_t and include stddef.h.
9827 * sysvipc/sys/msg.h: Likewise.
9828 * posix/sched.h: Likewise.
9829 * hurd/hurd/signal.h (__need_size_t): Define.
9831 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9832 neither does signal.h in pedantic ISO C namespaces. stdio.h
9833 no longer defines wint_t or wchar_t.
9835 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9836 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9837 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9838 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9839 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9840 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9841 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9842 * debug/printf_chk.c (__printf_chk): Likewise.
9843 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9844 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9846 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9849 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9850 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9852 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9855 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9856 * malloc/malloc.h (realloc): Likewise.
9858 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9859 if one of proc_file_chain streams has that fileno.
9860 * stdio-common/Makefile (tests): Add tst-popen2.
9861 * stdio-common/tst-popen2.c: New test.
9863 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9865 * elf/ldconfig.c: Allow GPLv2 or any later version.
9866 * elf/readlib.c: Likewise.
9867 * elf/chroot_canon.c: Likewise.
9868 * elf/cache.c: Likewise.
9869 * nscd/mem.c: Likewise.
9870 * nscd/getpwuid_r.c: Likewise.
9871 * nscd/grpcache.c: Likewise.
9872 * nscd/aicache.c: Likewise.
9873 * nscd/getsrvbynm_r.c: Likewise.
9874 * nscd/nscd.c: Likewise.
9875 * nscd/servicescache.c: Likewise.
9876 * nscd/getsrvbypt_r.c: Likewise.
9877 * nscd/initgrcache.c: Likewise.
9878 * nscd/gethstbyad_r.c: Likewise.
9879 * nscd/gethstbynm2_r.c: Likewise.
9880 * nscd/getgrnam_r.c: Likewise.
9881 * nscd/nscd_setup_thread.c: Likewise.
9882 * nscd/getpwnam_r.c: Likewise.
9883 * nscd/gai.c: Likewise.
9884 * nscd/connections.c: Likewise.
9885 * nscd/dbg_log.c: Likewise.
9886 * nscd/cache.c: Likewise.
9887 * nscd/hstcache.c: Likewise.
9888 * nscd/nscd_conf.c: Likewise.
9889 * nscd/getgrgid_r.c: Likewise.
9890 * nscd/pwdcache.c: Likewise.
9891 * catgets/gencat.c: Likewise.
9892 * locale/programs/linereader.h: Likewise.
9893 * locale/programs/locarchive.c: Likewise.
9894 * locale/programs/ld-paper.c: Likewise.
9895 * locale/programs/locfile-kw.h: Likewise.
9896 * locale/programs/ld-address.c: Likewise.
9897 * locale/programs/xmalloc.c: Likewise.
9898 * locale/programs/ld-time.c: Likewise.
9899 * locale/programs/localedef.c: Likewise.
9900 * locale/programs/simple-hash.c: Likewise.
9901 * locale/programs/xstrdup.c: Likewise.
9902 * locale/programs/ld-numeric.c: Likewise.
9903 * locale/programs/locfile-kw.gperf: Likewise.
9904 * locale/programs/ld-collate.c: Likewise.
9905 * locale/programs/charmap-kw.gperf: Likewise.
9906 * locale/programs/charmap.h: Likewise.
9907 * locale/programs/charmap-kw.h: Likewise.
9908 * locale/programs/config.h: Likewise.
9909 * locale/programs/locfile.c: Likewise.
9910 * locale/programs/ld-ctype.c: Likewise.
9911 * locale/programs/charmap.c: Likewise.
9912 * locale/programs/ld-messages.c: Likewise.
9913 * locale/programs/repertoire.h: Likewise.
9914 * locale/programs/locale.c: Likewise.
9915 * locale/programs/ld-name.c: Likewise.
9916 * locale/programs/linereader.c: Likewise.
9917 * locale/programs/locfile.h: Likewise.
9918 * locale/programs/3level.h: Likewise.
9919 * locale/programs/ld-monetary.c: Likewise.
9920 * locale/programs/ld-measurement.c: Likewise.
9921 * locale/programs/charmap-dir.c: Likewise.
9922 * locale/programs/ld-identification.c: Likewise.
9923 * locale/programs/localedef.h: Likewise.
9924 * locale/programs/charmap-dir.h: Likewise.
9925 * locale/programs/repertoire.c: Likewise.
9926 * locale/programs/simple-hash.h: Likewise.
9927 * locale/programs/ld-telephone.c: Likewise.
9928 * locale/programs/locale-spec.c: Likewise.
9929 * locale/programs/locfile-token.h: Likewise.
9930 * posix/getconf.c: Likewise.
9931 * iconv/dummy-repertoire.c: Likewise.
9932 * iconv/iconv_charmap.c: Likewise.
9933 * iconv/iconvconfig.c: Likewise.
9934 * iconv/iconv_prog.c: Likewise.
9935 * malloc/memusagestat.c: Likewise.
9936 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9938 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9940 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9941 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9942 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9943 check for the first argument.
9945 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9948 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9949 (__tgmath_real_type): Fix if expr is const int or other const
9950 qualified integral type.
9951 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9952 expressions and handle const qualified arguments.
9953 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9954 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9955 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9956 statement expressions.
9957 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9958 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9959 (__TGMATH_UNARY_IMAG): Define.
9960 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9961 * math/Makefile (tests): Add test-tgmath2.
9962 (CFLAGS-test-tgmath2.c): Add.
9963 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9964 count_cfloat, count_cldouble): New variables.
9966 (main): Check number of complex calls as well.
9967 (F(compile_test)): Add complex tests and tests with const qualified
9969 (y, z, ccount): Define.
9970 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9971 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9972 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9973 F(cproj)): New functions.
9974 * math/test-tgmath2.c: New test.
9976 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9979 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9980 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9982 * dlfcn/Makefile (distribute): Add glreflib3.c.
9983 (module-names): Add glreflib3.
9984 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9986 (LDFLAGS_glreflib3.so): New.
9987 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9989 * dlfcn/glreflib3.c: New file.
9991 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9992 returned -1, return NULL.
9993 * intl/explodename.c (_nl_explode_name): Return -1 if
9994 _nl_normalize_codeset failed.
9996 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9998 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9999 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
10000 and avoid branch misspredicts for > 31 bytes memset case.
10001 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10002 Remove toc ref to __cache_line_size.
10004 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10005 to get ISA-V2.0 branch hints.
10006 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10007 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10008 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10009 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10010 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10011 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10012 Remove toc ref to __cache_line_size.
10014 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10015 Include math_ldbl_opt.h.
10017 2007-07-10 Ulrich Drepper <drepper@redhat.com>
10020 * time/strptime_l.c (__strptime_internal): Implement greedy
10021 matching of weekday and month names.
10023 2007-07-09 Roland McGrath <roland@redhat.com>
10025 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10026 (ELF_NOTE_ABI): Use it.
10027 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10029 2007-07-09 Ulrich Drepper <drepper@redhat.com>
10031 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10032 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10034 2007-07-07 Ulrich Drepper <drepper@redhat.com>
10037 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10038 in loop to look for conversion specifier to avoid testing of
10040 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10041 * stdio-common/bug18.c: New file.
10042 * stdio-common/bug18a.c: New file.
10043 * stdio-common/bug19.c: New file.
10044 * stdio-common/bug19a.c: New file.
10046 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10048 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10049 running awk script.
10051 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10053 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10054 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10055 Return NULL if mmap failed instead of asserting it does not.
10056 (calloc): Check for integer overflow.
10058 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10059 than LONG_MAX / 10.
10061 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10064 * nis/nss-default.c: Include errno.h.
10065 (init): Preserve errno.
10067 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10069 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10071 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10073 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10075 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10077 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10079 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10081 * sysdeps/s390/dl-procinfo.c: New file.
10082 * sysdeps/s390/dl-procinfo.h: New file.
10083 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10085 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10087 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10088 in PT_NOTE segments with multiple notes.
10089 * elf/readelflib.c (process_elf_file): Likewise.
10091 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10093 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10096 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10098 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10100 2007-06-13 Jakub Jelinek <jakub@redhat.com>
10102 * include/link.h: Don't include rtld-lowlevel.h.
10103 (struct link_map): Remove l_scope_lock.
10104 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10105 (_dl_scope_free_list): New field (variable) in _rtld_global.
10106 (DL_LOOKUP_SCOPE_LOCK): Remove.
10107 (_dl_scope_free): New prototype.
10108 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10109 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10110 (_dl_profile_fixup): Likewise.
10111 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
10112 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10113 THREAD_GSCOPE_RESET_FLAG around it.
10114 * elf/dl-close.c (_dl_close_worker): Don't use
10115 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
10116 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
10117 scopes were queued or if l_scope_mem has been abandoned.
10118 * elf/dl-open.c (_dl_scope_free): New function.
10119 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
10120 * elf/dl-support.c (_dl_scope_free_list): New variable.
10121 * elf/dl-lookup.c (add_dependency): Remove flags argument.
10122 Remove DL_LOOKUP_SCOPE_LOCK handling.
10123 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
10125 * elf/dl-object.c (_dl_new_object): Don't use
10126 __rtld_mrlock_initialize.
10128 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10130 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10132 (rtld_global_ro): Likewise.
10134 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10136 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10137 Move PT_LOAD checking to...
10138 (_dl_addr_inside_object): ... here, new function.
10139 * elf/dl-sym.c (do_sym): If not l_contiguous,
10140 call _dl_addr_inside_object.
10141 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10142 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10143 * elf/dl-open.c (dl_open_worker): Likewise.
10144 (_dl_addr_inside_object): New function if IS_IN_rtld.
10145 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10146 holes are present or are PROT_NONE protected.
10147 * include/link.h (struct link_map): Add l_contiguous field.
10148 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10150 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10151 Tomas Janousek <tjanouse@redhat.com>
10152 Ulrich Drepper <drepper@redhat.com>
10155 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
10156 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10158 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
10159 unused member a bitmap.
10160 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10161 servers are configured.
10163 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10165 * elf/rtld.c (dl_main): Don't call init_tls more than once.
10167 2007-06-17 Andreas Schwab <schwab@suse.de>
10169 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10171 2007-06-16 Andreas Jaeger <aj@suse.de>
10174 * sysdeps/unix/sysv/linux/sys/ptrace.h
10175 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10176 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10177 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10178 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10179 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10181 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10182 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10183 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10184 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10186 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10189 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10190 determining whether there are IPv4/IPv6 addresses, ignore loopback
10193 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10195 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10196 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10197 as the return type. Change type of "r" variable to CMPtype.
10198 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10199 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10200 * soft-fp/gedf2.c (__gedf2): Likewise.
10201 * soft-fp/gesf2.c (__gesf2): Likewise.
10202 * soft-fp/getf2.c (__getf2): Likewise.
10203 * soft-fp/ledf2.c (__ledf2): Likewise.
10204 * soft-fp/lesf2.c (__lesf2): Likewise.
10205 * soft-fp/letf2.c (__letf2): Likewise.
10206 * soft-fp/unorddf2 (__unorddf2): Likewise.
10207 * soft-fp/unordsf2 (__unordsf2): Likewise.
10208 * soft-fp/unordtf2 (__unordtf2): Likewise.
10210 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10212 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10213 make sure gcc doesn't mess around with this.
10215 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10217 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10219 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10221 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10222 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10223 at most once per _dl_close_worker.
10225 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10227 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10228 __sched_cpucount as const.
10229 * posix/sched_cpucount.c: Adjust.
10231 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10232 instruction for counting bits.
10233 * sysdeps/x86_64/sched_cpucount.c: New file.
10235 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10237 * configure.in: Avoid variable named BASH.
10238 * config.make.in: Likewise.
10239 Patch in part by Mike Frysinger.
10241 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10244 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10245 pseudo-zeros as zero.
10246 * sysdeps/x86_64/ldbl2mpn.c: New file.
10247 * sysdeps/ia64/ldbl2mpn.c: New file.
10249 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10251 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10252 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10253 Remove unreachable code at the end.
10255 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10257 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10258 ldbl-128ibm in comment.
10259 (fpclassifyl): Correct classification of denormals.
10260 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10261 return value for MIN denormal. Rewrite using long double math too
10262 correctly handle denormals and canonicalize the results.
10264 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10266 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10267 (__mpn_construct_long_double): Fix conversion where result ought
10268 to be smaller than __LDBL_MIN__, or the low double should be
10269 denormal. Fix decision where to negate low double - honor round
10271 * stdio-common/tst-sprintf2.c: Include string.h.
10272 (COMPARE_LDBL): Define.
10273 (TEST): Also test whether a string hexadecimal float representation
10274 can be parsed back to the number.
10275 (main): Add a couple of further tests.
10277 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10279 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10280 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10281 is non-zero, but smaller than 2 * __DBL_MIN__.
10282 * stdio-common/tst-sprintf2.c: New test.
10283 * stdio-common/Makefile (tests): Add tst-sprintf2.
10285 * math/test-misc.c (main): Don't run last batch of tests with
10286 IBM long double format.
10288 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10290 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10291 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10292 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10293 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10294 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10295 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10296 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10297 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10298 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10299 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10316 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10323 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10325 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10326 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10327 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10328 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10329 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10330 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10331 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10332 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10334 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10336 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10337 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10338 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10339 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10340 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10341 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10342 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10343 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10345 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10347 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10348 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10349 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10350 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10352 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10354 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10355 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10357 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10359 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10360 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10361 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10362 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10364 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10366 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10367 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10369 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10371 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10372 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10374 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10375 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10376 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10377 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10379 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10381 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10382 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10383 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10384 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10386 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10388 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10389 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10390 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10391 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10392 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10393 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10395 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10397 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10398 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10399 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10400 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10402 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10404 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10405 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10406 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10407 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10408 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10409 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10410 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10411 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10412 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10413 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10414 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10415 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10416 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10417 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10418 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10419 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10421 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10423 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10424 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10426 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10428 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10429 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10431 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10433 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10434 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10435 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10436 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10437 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10438 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10439 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10440 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10441 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10442 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10444 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10446 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10448 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10450 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10451 branch miss-predicts. Ensure that cache line crossing does not impact
10454 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10456 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10457 "../../powerpc32/power4/memcopy.h".
10458 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10459 "../../powerpc32/power4/wordcopy.c".
10461 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10463 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10464 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10465 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10466 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10467 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10468 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10470 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10472 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10474 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10476 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10477 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10478 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10479 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10480 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10481 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10482 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10483 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10485 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10487 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10489 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10491 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10492 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10493 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10494 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10495 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10496 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10497 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10499 2007-05-29 Roland McGrath <roland@redhat.com>
10501 * po/Makefile (po-sed-cmd): New variable.
10502 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10504 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10506 * crypt/md5-crypt.c: Fix comment.
10508 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10509 of crashing. When this is the case or if the reply is malformed,
10510 don't try to close the new file descriptor since it does not
10512 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10514 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10516 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10517 if __NR_utimensat is not defined.
10519 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10521 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10523 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10525 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10526 (open): Fix comment typos. Don't call __open_2 if flags
10527 is a compile time constant without O_CREAT.
10528 (__open64_2): Add nonnull attribute.
10529 (open64): Fix comment typos. Don't call __open64_2 if flags
10530 is a compile time constant without O_CREAT.
10531 (__openat_2): Add nonnull attribute, fix nonnull attribute
10533 (openat): Fix comment typos. Don't call __openat_2 if flags
10534 is a compile time constant without O_CREAT.
10535 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10537 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10538 is a compile time constant without O_CREAT.
10540 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10542 * Makerules (sysd-rules): Define PTW for ptw-* files.
10543 * Versions: Define GLIBC_2.7 for libc.
10544 * include/stdio.h: Declare __fortify_fail.
10545 * debug/fortify_fail.c: New file.
10546 * debug/Makefile (routines): Add fortify_fail.
10547 * debug/chk_fail.c: Use __fortify_fail.
10548 * debug/stack_chk_fail.c: Likewise.
10549 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10550 __openat64_2 for GLIBC_2.7.
10551 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10552 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10553 and fails if necessary.
10554 * io/open64.c: Likewise.
10555 * io/openat.c: Likewise.
10556 * io/openat64.c: Likewise.
10557 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10558 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10559 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10560 * io/bits/fcntl2.h: New file.
10561 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10563 * include/bits/fcntl2.h: New file.
10564 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10566 * sysdeps/unix/sysv/linux/open_2.c: New file.
10568 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10570 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10571 as second parameter to handle_intel.
10573 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10576 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10578 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10579 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10581 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10582 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10583 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10585 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10587 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10590 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10591 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10592 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10594 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10597 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10598 reinitialize workend at the start of each do_positional format spec
10599 loop, free workstart before do_positional loops.
10600 (printf_unknown): Fix size of work_buffer.
10601 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10603 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10604 (public_sET_STATe): If ms->version < 3, put all chunks into
10605 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10608 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10609 * malloc/hooks.c: Likewise.
10610 * malloc/arena.c: Likewise.
10611 * malloc/malloc.c (do_check_malloc_state): Don't assert
10612 n_mmaps is not greater than n_mmaps_max. This removes the need
10613 for the previous change.
10615 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10618 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10620 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10621 Define for kernel >= 2.6.22.
10623 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10625 * elf/dl-close.c (_dl_close_worker): When removing object from
10626 global scope, wait for all lookups to finish afterwards.
10627 * elf/dl-open.c (add_to_global): When global scope array must
10628 grow, allocate a new one and free old array only after all
10630 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10631 (_dl_lookup_symbol_x): Likewise.
10632 * elf/dl-support.c: Define _dl_wait_lookup_done.
10633 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10634 _dl_wait_lookup_done.
10636 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10637 not overlapping with arena.
10639 * malloc/mcheck.c (reallochook): If size==0, free the block.
10641 * rt/tst-shm.c: Use fstat64 instead of fstat.
10643 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10644 __NR_sync_file_range is not defined.
10646 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10648 Dummy files to prevent stub versions from being used.
10649 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10650 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10651 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10652 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10654 * version.h (VERSION): Set to 2.6.90.
10656 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10658 * version.h (VERSION): Define to 2.6.
10659 * include/features.h (__GLIBC_MINOR__): Define to 6.
10661 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10663 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10666 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10668 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10669 number of mmaps. n_mmaps_max is the target.
10670 * malloc/hooks.c: Likewise.
10671 * malloc/arena.c: Likewise.
10673 2007-05-12 Andreas Jaeger <aj@suse.de>
10675 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10678 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10680 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10681 adding new variables.
10683 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10684 optimize. Completely extend global scope array before making the
10685 new entries visible.
10687 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10689 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10690 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10693 * include/link.h: Move l_version and l_nversion members around to
10696 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10698 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10699 (__sched_setaffinity_new): If syscall was successful and
10700 RESET_VGETCPU_CACHE is defined, use it before returning.
10701 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10703 * io/sys/stat.h: Make sure struct timespec is defined for
10706 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10708 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10709 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10710 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10711 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10712 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10713 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10714 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10715 * io/sys/stat.h: Declare utimensat, futimens.
10716 * io/utimensat.c: New file.
10717 * io/futimens.c: New file.
10718 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10719 * sysdeps/unix/sysv/linux/futimens.c: New file.
10720 * io/Makefile (routines): Add utimensat, futimens.
10721 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10722 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10723 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10726 * include/sys/cdefs.h: Redefine __nonnull so that test for
10727 incorrect parameters in the libc code itself are not omitted.
10729 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10731 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10732 exception in addition to inexact when asked to raise only FE_INEXACT.
10735 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10738 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10741 * string/strfry.c (strfry): Make result more random.
10743 2007-05-07 Richard Henderson <rth@redhat.com>
10745 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10746 if __NO_LONG_DOUBLE_MATH.
10747 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10748 available in the compiler, add .arch directive to the assembly.
10750 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10752 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10753 compat_symbol to GLIBC_2_1.
10754 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10755 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10756 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10757 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10758 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10759 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10760 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10762 (__isnanl): New compat_symbol.
10764 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10765 Jakub Jelinek <jakub@redhat.com>
10767 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10768 (new_heap): Initialize mprotect_size.
10769 (grow_heap): When growing, only mprotect from mprotect_size till
10770 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10771 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10773 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10774 Peter Bergner <bergner@us.ibm.com>
10776 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10777 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10778 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10779 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10780 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10781 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10782 Call __fe_mask_env() if all FP exceptions disabled.
10783 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10784 from old FPSCR to new fenv to propagate DFP rounding modes.
10785 Call __fe_mask_env() if FP exceptions previously enabled.
10786 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10787 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10788 transitioning from all exceptions disabled to any exception enabled
10790 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10791 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10792 when transitioning from all exceptions disabled to any exception
10793 enabled or visa versa.
10794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10801 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10804 * posix/unistd.h: Remove __THROW from fdatasync.
10806 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10809 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10811 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10813 * stdio-common/vfprintf.c (process_string_arg): Optimize
10814 ridiculous precision in wide char code printing multi-byte string.
10815 Reported by Jim Meyering <jim@meyering.net>.
10818 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10819 boundaries to work around systems with overlapping binary loading.
10820 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10822 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10824 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10825 __mbsnrtowcs after last change.
10827 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10828 (get_ident): Likewise.
10830 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10832 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10833 with setting the sticky bit.
10834 * math/test-misc.c (main): Add more truncation tests.
10836 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10838 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10839 double in the function declaration.
10840 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10841 double in the function declaration.
10842 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10843 float in the function declaration.
10844 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10845 float in the function declaration.
10847 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10848 denormal operands. Do not generate FP_EX_DENORM exception.
10849 (FP_UNPACK_RAW_EP): Ditto.
10850 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10851 undefined _FP_UNPACK_RAW_E.
10852 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10853 undefined _FP_UNPACK_RAW_EP.
10854 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10855 undefined _FP_PACK_RAW_E.
10856 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10857 undefined _FP_PACK_RAW_EP.
10859 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10861 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10864 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10865 Jakub Jelinek <jakub@redhat.com>
10867 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10868 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10870 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10872 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10874 * math/test-misc.c (main): Add tests for rounding long double
10875 values close to smallest double denormalized value to double.
10877 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10879 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10880 condition for truncating to 0. Set sticky bit for such
10883 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10885 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10886 fixed length array for ignore.
10888 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10891 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10892 stack for large precisions.
10893 * stdio-common/test-vfprintf.c (main): Add test for large
10896 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10898 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10900 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10903 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10904 account in the size check.
10905 * resolv/tst-inet_ntop.c: New test.
10906 * resolv/Makefile (tests): Add tst-inet_ntop.
10908 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10909 Jakub Jelinek <jakub@redhat.com>
10912 * malloc/malloc.c: Keep separate list for first blocks on the bin
10913 lists with a given size. This helps skipping over list elements
10914 we know won't fit in two places.
10915 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10917 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10920 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10921 label to Teredo tunnel addresses 2001://32.
10923 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10925 * locale/programs/ld-collate.c (collate_read): Allow order_start
10928 * locale/programs/ld-collate.c (collate_read): Fix printing of
10932 * locale/C-translit.h.in: Add entry for U2044.
10935 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10936 hexa-decimal floats without exponent.
10937 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10939 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10941 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10942 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10943 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10944 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10946 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10949 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10951 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10952 of 0 after the out_fail label.
10954 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10957 * iconv/gconv_charset.h (strip): Allow ':'.
10958 * iconv/iconv_open.c (iconv_open): Adjust comment.
10960 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10962 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10965 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10968 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10969 alignment of buffer and tmp_buffer.
10970 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10971 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10972 alignment of buffer.
10973 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10974 bigger than INT_MAX.
10975 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10976 h_errnop arguments. Fail if buflen is too small.
10977 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10979 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10982 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10983 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10985 2007-04-22 Roland McGrath <roland@redhat.com>
10987 * elf/elf.h (NT_PRXFPREG): New macro.
10989 2007-04-19 Andreas Jaeger <aj@suse.de>
10992 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10993 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10996 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10998 * include/sys/mman.h: Mark madvise hidden.
10999 * misc/madvise.c: Add libc_hidden_def.
11001 2007-04-06 Jakub Jelinek <jakub@redhat.com>
11003 * nis/nis_domain_of.c (__nis_domain_of): New function.
11004 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11005 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11006 * nis/nis_call.c (rec_dirsearch): Likewise.
11007 (first_shoot): Likewise. Remove search_parent_first argument.
11008 (struct nis_server_cache): Rename search_parent_first field
11010 (nis_server_cache_search, nis_server_cache_add): Rename
11011 search_parent_first argument to search_parent.
11012 (__nisfind_server): Likewise. If search_parent, call
11015 2007-04-18 Ulrich Drepper <drepper@redhat.com>
11017 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11019 2007-04-17 Ulrich Drepper <drepper@redhat.com>
11022 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11024 2007-04-16 Ulrich Drepper <drepper@redhat.com>
11027 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11029 2007-04-15 Jakub Jelinek <jakub@redhat.com>
11031 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11032 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11033 current number of locales in SUPPORTED.
11034 (create_archive): Initialize serial.
11035 (enlarge_archive): Preserve aliases rather than duplicating
11038 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11040 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11041 after _IO_un_link, not before it.
11043 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11044 special case handling when wcp == wstartp + 1. Fix a comment typo.
11045 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11047 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11049 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11050 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11051 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11053 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11054 _IO_file_xsgetn_maybe_mmap): Likewise.
11055 * libio/oldfileops.c (old_do_write): Likewise.
11056 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11057 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11058 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11059 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11060 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11061 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11062 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11063 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11064 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11065 _IO_file_underflow, _IO_file_underflow_mmap,
11066 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11067 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11068 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11069 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11070 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11071 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11072 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11073 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11074 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11075 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11076 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11077 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11078 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11079 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11080 _IO_adjust_column_internal, _IO_default_uflow_internal,
11081 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11082 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11083 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11084 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11085 _IO_file_close_it_internal, _IO_file_underflow_internal,
11086 _IO_file_overflow_internal, _IO_file_attach_internal,
11087 _IO_file_fopen_internal, _IO_file_sync_internal,
11088 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11089 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11090 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11091 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11092 _IO_seekpos_unlocked): Likewise.
11093 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11094 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11096 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11098 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11099 argument in xmalloc size computation.
11101 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11103 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11104 math_opt_barrier and math_force_eval macros.
11106 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11109 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11110 * sysdeps/i386/fpu/math_private.h: New file.
11111 * sysdeps/x86_64/fpu/math_private.h: New file.
11112 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11113 math_force_eval macros. Use "+m" constraint on asm rather than
11115 * math/s_nextafter.c (__nextafter): Likewise.
11116 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11118 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11119 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11120 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11121 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11122 math_opt_barrier and math_force_eval macros.
11123 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11124 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11125 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11126 (__nexttoward): Use math_opt_barrier and
11127 math_force_eval macros. Use "+m" constraint on asm rather than
11128 "=m" and "m". Only use asm to force double result if
11129 FLT_EVAL_METHOD is 2.
11130 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11131 (__nexttowardf): Use math_opt_barrier and
11132 math_force_eval macros. Use "+m" constraint on asm rather than
11133 "=m" and "m". Only use asm to force double result if
11134 FLT_EVAL_METHOD is not 0.
11135 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11136 (__nexttowardf): Use math_opt_barrier and
11137 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11138 x to float using asm.
11139 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11140 (__nldbl_nexttowardf): Use math_opt_barrier and
11141 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11142 x to float using asm.
11143 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11144 (__nexttowardf): Use math_opt_barrier and math_force_eval
11145 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
11146 * math/bug-nextafter.c (zero, inf): New variables.
11147 (main): Add new tests.
11148 * math/bug-nexttoward.c (zero, inf): New variables.
11149 (main): Add new tests.
11151 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11154 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11155 exceptions both in SW and MXCSR.
11156 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11157 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11158 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11159 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11160 in MXCSR if SSE is available.
11161 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11163 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11165 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11166 Return 0 rather than 1.
11167 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11168 Remove incorrect part of a comment. Fix argument to feraiseexcept.
11169 * math/test-fenv.c (feholdexcept_tests): New function.
11172 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11175 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11178 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11181 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11182 Reported by David Anderson <davea42@earthlink.net>.
11184 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11186 * posix/sys/wait.h: Remove unnecessary forward declaration.
11188 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11190 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11191 with obj->do_servers after first_shoot.
11193 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11195 * posix/Makefile (routines): Add sched_cpucount.
11196 (tests): Add tst-cpucount.
11197 * posix/sched_cpucount.c: New file.
11198 * posix/tst-cpucount.c: New file.
11199 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11200 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11201 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11202 * posix/sched.h: Define CPU_COUNT.
11204 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11206 * posix/fnmatch.c (STRUCT): Define.
11207 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11208 * posix/fnmatch_loop.c (struct STRUCT): New type.
11209 (FCT): Add ends argument. If ends != NULL and normal * is
11210 seen in the pattern, store current pattern and string pointers
11211 and return. Adjust recursive calls.
11212 (EXT): Adjust FCT callers.
11213 (STRUCT): Undef at the end of the file.
11214 * posix/Makefile (tests): Add tst-fnmatch2.
11215 * posix/tst-fnmatch2.c: New test.
11217 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11219 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11222 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11223 Change last argument to unsigned int.
11225 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11227 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11229 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11231 * config.h.in (HAVE_LIBCAP): Add.
11232 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11233 sys/capabilities.h.
11234 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11235 free_caps. Cast away const from 4th cap_set_flag argument.
11237 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11239 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11241 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11242 Add sync_file_range.
11243 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11245 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11247 * sysdeps/powerpc/bits/atomic.h
11248 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11249 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11250 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11251 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11252 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11253 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11254 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11255 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11256 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11257 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11258 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11259 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11260 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11261 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11262 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11263 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11264 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11265 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11266 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11267 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11269 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11271 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11272 (__cache_line_size): Define the variable here. Add
11273 attribute_hidden, remove weak_extern.
11274 (__libc_start_main): Set __cache_line_size
11276 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11277 (__cache_line_size): Define the variable here. Add
11278 attribute_hidden, remove weak_extern.
11279 (DL_PLATFORM_AUXV): Set __cache_line_size
11281 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11282 weak_extern, add attribute_hidden.
11283 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11285 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11287 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11289 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11292 * timezone/africa: Update from tzdata2007d.
11293 * timezone/asia: Likewise.
11294 * timezone/australasia: Likewise.
11295 * timezone/backward: Likewise.
11296 * timezone/europe: Likewise.
11297 * timezone/iso3166.tab: Likewise.
11298 * timezone/leapseconds: Likewise.
11299 * timezone/northamerica: Likewise.
11300 * timezone/southamerica: Likewise.
11301 * timezone/zone.tab: Likewise.
11303 * timezone/private.h: Update from tzcode2007d.
11304 * timezone/zdump.c: Likewise.
11305 * timezone/zic.c: Likewise.
11307 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11309 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11310 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11312 (nis_server_cache_search, nis_server_cache_add): New functions.
11313 (__nisfind_server): Use them. Add dbp and flags argument, if
11314 call __nisbind_create.
11315 (__nisbind_create): Add server_used and current_ep arguments,
11316 only call __nis_findfastest if server_used is ~0.
11317 (__do_niscall2, __prepare_niscall): Adjust callers.
11318 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11319 ckey_cache_euid, ckey_cache_lock): New variables.
11320 (get_ckey): New function.
11321 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11322 __pmap_getnisport. Save __pmap_getnisport result in
11323 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11325 * nis/nis_lookup.c (nis_lookup): Likewise.
11326 * nis/nis_table.c (nis_list): Likewise.
11327 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11330 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11331 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11332 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11333 _nss_nisplus_getservbyport_r): Likewise.
11334 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11335 _nss_nisplus_getnetbyaddr_r): Likewise.
11336 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11337 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11338 _nss_nisplus_getntohost_r): Likewise.
11339 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11340 _nss_nisplus_getrpcbynumber_r): Likewise.
11342 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11344 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11345 * configure: Rebuilt.
11347 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11349 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11351 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11354 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11357 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11359 * nscd/gai.c: Include alloca.h.
11360 (__libc_use_alloca): Define.
11362 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11364 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11366 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11367 (DL_DST_REQUIRED): Adjust user.
11369 * include/dlfcn.h (struct link_map): New forward decl.
11371 * inet/getnameinfo.c: Include stddef.h.
11372 (getnameinfo): Use offsetof.
11374 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11376 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11378 * string/strerror_l.c: Include stdlib.h.
11380 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11381 * config.make.in (gnu89-inline-CFLAGS): New variable.
11382 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11384 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11385 * argp/argp.h: Use it.
11386 * bits/mathinline.h: Likewise.
11387 * bits/sigset.h: Likewise.
11388 * bits/string.h: Likewise.
11389 * ctype/ctype.h: Likewise.
11390 * hurd/hurd.h: Likewise.
11391 * hurd/hurd/fd.h: Likewise.
11392 * hurd/hurd/port.h: Likewise.
11393 * hurd/hurd/signal.h: Likewise.
11394 * hurd/hurd/threadvar.h: Likewise.
11395 * hurd/hurd/userlink.h: Likewise.
11396 * io/sys/stat.h: Likewise.
11397 * libio/bits/stdio.h: Likewise.
11398 * libio/bits/stdio2.h: Likewise.
11399 * mach/lock-intern.h: Likewise.
11400 * mach/mach/mig_support.h: Likewise.
11401 * math/bits/cmathcalls.h: Likewise.
11402 * posix/bits/unistd.h: Likewise.
11403 * socket/bits/socket2.h: Likewise.
11404 * stdlib/bits/stdlib.h: Likewise.
11405 * stdlib/stdlib.h: Likewise.
11406 * string/argz.h: Likewise.
11407 * string/bits/string2.h: Likewise.
11408 * string/bits/string3.h: Likewise.
11409 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11410 * sysdeps/generic/inttypes.h: Likewise.
11411 * sysdeps/generic/machine-lock.h: Likewise.
11412 * sysdeps/generic/machine-sp.h: Likewise.
11413 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11414 * sysdeps/i386/i486/bits/string.h: Likewise.
11415 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11416 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11417 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11418 * sysdeps/mach/i386/machine-lock.h: Likewise.
11419 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11420 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11421 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11422 * sysdeps/s390/bits/string.h: Likewise.
11423 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11424 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11425 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11426 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11427 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11428 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11429 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11430 * wcsmbs/bits/wchar2.h: Likewise.
11431 * wcsmbs/wchar.h: Likewise.
11432 * stdlib/gmp.h: Likewise. Include <features.h> to get
11433 __extern_inline definition.
11435 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11437 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11441 * math/libm-test.inc (log_test): Test -Inf and NaN.
11442 (log10_test, log1p_test, log2_test): Test -Inf.
11443 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11444 FE_INVALID when argument is qNaN.
11445 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11446 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11447 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11448 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11449 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11450 testb $4, %ah and jump if non-zero.
11451 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11452 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11455 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11456 ancestors with the same depths.
11457 Patch by Niels Moeller <nisse@lysator.liu.se>.
11458 (filter_doc): Don't crash if argp is NULL.
11459 * argp/Makefile (tests): Add tst-argp2.
11460 * argp/tst-argp2.c: New test.
11463 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11465 (updwtmp_file): Likewise.
11468 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11469 (inet6_opt_append): Don't check extlen is big enough if extbuf
11471 (inet6_opt_finish): Likewise.
11472 * inet/Makefile (tests): Add test-inet6_opt.
11473 * inet/test-inet6_opt.c: New test.
11475 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11476 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11477 NLMSG_ERR. Instead use a page sized buffer.
11478 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11481 2007-03-14 Richard Henderson <rth@redhat.com>
11483 * sysdeps/alpha/fpu/s_llround.c: New file.
11484 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11485 * sysdeps/alpha/fpu/s_lround.c: New file.
11486 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11487 * sysdeps/alpha/fpu/s_round.c: New file.
11488 * sysdeps/alpha/fpu/s_roundf.c: New file.
11489 * sysdeps/alpha/fpu/s_trunc.c: New file.
11490 * sysdeps/alpha/fpu/s_truncf.c: New file.
11492 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11493 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11494 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11495 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11496 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11497 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11499 * sysdeps/alpha/fpu/s_fmax.S: New file.
11500 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11501 * sysdeps/alpha/fpu/s_fmin.S: New file.
11502 * sysdeps/alpha/fpu/s_fminf.S: New file.
11503 * sysdeps/alpha/fpu/s_isnan.c: New file.
11504 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11505 * sysdeps/alpha/fpu/s_llrint.c: New file.
11506 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11507 * sysdeps/alpha/fpu/s_lrint.c: New file.
11508 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11509 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11510 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11512 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11513 (__fdimf, fdimf, __fdim, fdim): Remove.
11514 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11515 (__isnanf, __isnan, __isnanl): New.
11517 2007-03-13 Richard Henderson <rth@redhat.com>
11519 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11521 2007-03-13 Richard Henderson <rth@redhat.com>
11523 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11524 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11525 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11526 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11527 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11528 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11530 2007-03-13 Richard Henderson <rth@redhat.com>
11532 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11533 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11534 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11535 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11536 Move to dl-auxv.h; initialize instead of extern weak.
11537 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11539 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11540 Extern instead of initialized.
11542 2007-03-13 Richard Henderson <rth@redhat.com>
11544 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11545 __sigsuspend_nocancel.
11547 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11549 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11550 172.16/12 address range.
11552 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11554 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11555 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11558 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11561 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11563 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11565 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11566 for x qNaN and y either +-inf or non-integer value.
11567 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11568 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11569 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11571 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11573 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11574 from sysdep_headers.
11576 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11578 * time/tzfile.c (find_transition): Instead of a linear search try to
11579 guess the transition index, use a linear search if the result is at
11580 most 10 transitions away from the guess or binary search otherwise.
11582 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11584 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11585 memory reallocation.
11587 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11589 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11590 and fix some typos.
11591 Optimize use of TOLOWER.
11594 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11595 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11596 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11599 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11600 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11603 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11604 (open_dir_stream): Likewise.
11605 * io/Makefile (tests): Add bug-ftw5.
11606 * io/bug-ftw5.c: New file.
11608 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11609 * nscd/servicescache.c (cache_addserv): Likewise.
11611 * nscd/grpcache.c (cache_addgr): In case a record changed on
11612 refresh, adjust key_copy.
11615 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11616 refresh, adjust key_copy.
11619 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11621 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11623 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11625 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11628 * stdio-common/vfscanf.c: Small cleanups throughout.
11630 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11633 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11634 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11635 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11636 Patch by Jared Casper <jaredcasper@gmail.com>.
11638 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11639 * sysdeps/unix/opendir.c: Likewise.
11640 * sysdeps/unix/readdir.c: Likewise.
11643 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11645 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11647 * stdio-common/vfscanf.c: Fix problems in width accounting.
11648 * stdio-common/tst-sscanf.c (double_tests): New tests.
11649 (main): Hook them up.
11651 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11652 More simplifications of floating-point reader.
11654 * stdio-common/Makefile (tests): Add tst-swscanf.
11655 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11657 * stdio-common/tst-swscanf.c: New file.
11659 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11662 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11663 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11664 Remove using for __jmp_buf_tag.
11665 * locale/locale.h (struct lconv): Also define in std namespace.
11666 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11669 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11670 using __libc_enable_secure.
11673 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11676 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11677 of names for ellipsises.
11680 * malloc/memusage.sh: Cleanups.
11681 * debug/xtrace.sh: Quoting and trap changes.
11683 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11685 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11687 * locale/iso-3166.def: Update entry for Serbia.
11688 * locale/iso-4217.def: Define RSD, remove CSD.
11690 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11691 and 64-bit operations.
11694 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11697 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11700 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11703 * assert/assert.h (assert): Simplify.
11704 (assert_perror): Likewise.
11705 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11707 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11710 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11711 change: don't pass NULL in place of an integer.
11713 2007-02-02 Bruno Haible <bruno@clisp.org>
11716 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11717 Add mapping for U+327E.
11718 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11719 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11720 mapping of 0xD9 0xE8.
11721 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11723 Reported by Jungshik Shin <jungshik@google.com>.
11726 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11727 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11728 Reported by Jungshik Shin <jungshik@google.com>.
11730 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11732 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11736 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11737 byte variants. Patch mostly be tom@tommay.net.
11739 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11742 * posix/glob.c (attribute_hidden): Define if not defined.
11743 (glob): Unescape dirname, filename or username when needed and not
11744 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11745 is NULL. Handle unescaped [ in pattern without closing ].
11746 Don't pass GLOB_CHECK down to recursive glob for directories.
11747 (__glob_pattern_type): New function.
11748 (__glob_pattern_p): Implement using __glob_pattern_type.
11749 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11750 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11751 Remove unreachable code.
11752 * posix/globtest.sh: Add a couple of new tests.
11754 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11756 * po/ru.po: Update from translation team.
11758 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11760 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11761 to the list of i486+ CPUs.
11762 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11764 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11766 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11767 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11770 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11772 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11774 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11775 * resolv/res_mkquery.c: Define __res_nopt.
11776 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11777 try adding EDNS0 record.
11778 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11779 EDNS0 record was send make sure we don't try it again.
11780 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11781 * include/resolv.h: Declare __res_nopt.
11783 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11786 * time/strptime_l.c (__strptime_internal): Set have_mon for
11787 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11788 have been computed from tm_yday and tm_year. Don't crash
11789 in day_of_the_week or day_of_the_year if not have_mon
11790 and tm_mon contains bogus value.
11791 * time/Makefile (tests): Add tst-strptime3.
11792 * time/tst-strptime3.c: New test.
11794 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11797 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11798 bit for RE_HAT_LISTS_NOT_NEWLINE.
11799 (build_charclass_op): Remove bogus comment.
11800 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11801 * posix/bug-regex27.c: New test.
11802 * posix/bug-regex28.c: New test.
11804 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11806 * po/sv.po: Update from translation team.
11808 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11810 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11812 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11814 * include/locale.h (__uselocale): Add libc_hidden_proto.
11815 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11817 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11820 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11822 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11824 (PTR_DEMANGLE): Real definition now that it's not the same as
11825 PRT_MANGLE anymore.
11826 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11828 * string/strerror_l.c: New file.
11829 * string/Makefile (routines): Add strerror_l.
11830 * string/string.h: Declare strerror_l.
11831 * string/Versions: Export strerror_l for GLIBC_2.6.
11833 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11835 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11836 as parameter. Construct request record. Try sending request
11837 before the first poll use, it usually succeeds. Adjust all
11839 * nscd/nscd-client.h: Define MAXKEYLEN.
11840 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11842 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11844 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11846 * nscd/nscd_helper.c: Include string.h.
11847 (__nscd_cache_search): Remove const qualifier from return value.
11848 On strict alignment architectures check hash entry and data head
11850 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11851 mmapped data during GC cycle contains garbage. If
11852 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11853 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11855 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11856 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11857 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11858 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11859 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11861 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11863 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11865 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11867 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11868 names not numbers in cfi_*.
11870 2007-01-26 Andreas Jaeger <aj@suse.de>
11872 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11873 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11874 Correct values of PER_HPUX and PER_OSF4.
11876 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11878 * elf/dl-minimal.c: Undefine _itoa first.
11879 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11880 * malloc/mtrace.c: Revert last change.
11881 * posix/wordexp.c: Likewise.
11883 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11885 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11886 and __geode__ to the list of i486+ CPUs.
11887 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11889 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11891 * stdio-common/_itoa.c: Include <limits.h>.
11892 * stdio-common/_itowa.c: Likewise.
11894 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11896 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11898 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11900 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11902 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11906 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11907 * stdio-common/Makefile (tests): Add bug17.
11908 * stdio-common/bug17.c: New file.
11910 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11912 * iconvdata/brf.c: New file.
11913 * iconvdata/testdata/BRF: New file.
11914 * iconvdata/testdata/BRF..UTF8: New file.
11915 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11916 * iconvdata/Makefile: Add rules to build BRF.
11917 * iconvdata/TESTS: Add BRF entry.
11918 * iconvdata/gconv-modules: Likewise.
11919 * iconvdata/tst-tables.sh: Likewise.
11921 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11923 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11924 type `long long int', not `long int'.
11925 (wcstoq): Likewise.
11927 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11929 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11930 of values on 64-bit platforms which are too large.
11932 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11933 Joe Kerian <jkerian@us.us.ibm.com>
11936 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11937 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11938 (__copysignl): Use signbit() for comparison.
11939 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11940 SET_LDOUBLE_WORDS64.
11943 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11944 (__ceill): Remove calls to fegetround(), fesetround().
11945 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11946 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11947 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11949 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11951 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11953 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11955 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11957 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11959 * csu/libc-start.c: Likewise.
11961 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11963 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11964 really work anyway.
11966 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11968 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11970 (handle_request): Remove unnecessary tests.
11972 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11974 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11976 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11977 workbits in semi-raw fraction.
11979 * math/test-misc.c: Add new tests.
11981 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11983 * math/basic-test.c: Include test-skeleton.c.
11984 (TEST_TRUNC): Define.
11985 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11986 (main): Rename to ...
11987 (do_test): ...this. Run new tests.
11988 (TEST_FUNCTION): Define.
11990 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11991 Joe Kerian <jkerian@us.us.ibm.com>
11994 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11995 handling for high words.
11996 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11997 and overflow for infinity.
11999 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12001 * nscd/connections.c (handle_request): Add a __builtin_expect.
12003 * nscd/connections.c (serv2db): Change type into structure which
12004 also says whether this is a request for data. Renamed to
12005 servinfo. All users changed.
12006 (handle_request): Much simpler test whether we should search the cache.
12008 * nscd/connections.c (handle_request): Fix thinko in selinux test
12011 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12012 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12013 it before getting dl_load_lock and then relock.
12014 (_dl_lookup_symbol_x): Pass flags to add_dependency.
12015 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12016 case we unlocked the scope.
12017 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12018 _dl_lookup_symbol_x in case we locked the scope.
12019 (_dl_profile_fixup): Likewise.
12020 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12021 set DL_LOOKUP_SCOPE_LOCK.
12023 2007-01-13 Ulrich Drepper <drepper@redhat.com>
12025 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12026 CFLAGS-getsrvbynpt_r.c.
12027 * nscd/getsrvbynm_r.c: New file.
12028 * nscd/getsrvbypt_r.c: New file.
12029 * nscd/nscd_getserv_r.c: New file.
12030 * nscd/servicescache.c: New file.
12031 * nscd/Makefile (routines): Add nscd_getserv_r.
12032 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12033 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12034 CFLAGS-getsrvbypt_r.c.
12035 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12036 table. Add entries for services database.
12037 * nscd/connections.c (serv2str): Mark as const. Add entries for
12039 (dbs): Add .reset_res and servdb initialization.
12040 (serv2db): Add entries for services database.
12041 (verify_persistent_db): Accept dbnr == servdb.
12042 (invalidate_cache): Rewrite database name recognition to use a table.
12043 Call res_init() if .reset_res is set for database.
12044 (handle_request): Add code to handle services database.
12045 * nscd/gai.c: Don't define __getservbyname_r.
12046 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12047 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12048 (serv_response_header): Define.
12049 (struct datahead): Add serv_response_header member.
12050 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12052 * nscd/nscd.conf: Add entries for services database.
12053 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12054 Declare serv_iov_disabled.
12055 Declare addservbyname, readdservbyname, addservbyport, and
12057 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12058 (find_db): Fix error message.
12059 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12060 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12061 * nscd/selinux.c (perms): Add entries for services database.
12062 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12063 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12065 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12066 * nscd/hstcache.c: Likewise.
12067 * nscd/pwdcache.c: Likewise.
12069 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12070 computation of keylen.
12072 * include/string.h: Only redefine strndupa if this is really for
12075 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12077 * nscd/nscd_gethst_r.c: Minor cleanups.
12079 * nscd/connections.c (handle_request): Check selinux permissions
12080 for all non-admin commands.
12082 * sysdeps/i386/i486/bits/atomic.h: Define
12083 atomic_compare_and_exchange_val_acq,
12084 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12085 using __sync_* built-ins for gcc >= 4.1.
12086 * sysdeps/x86_64/bits/atomic.h: Likewise.
12089 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12092 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
12094 * stdlib/tst-makecontext.c: Include errno.h. Change main()
12095 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
12096 (do_test): Check errno and exit(0) if ENOSYS.
12098 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12100 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12101 thousands separators.
12102 * stdlib/Makefile: Add rules to build and run tst-strtod4.
12103 * stdlib/tst-strtod4.c: New test.
12106 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12107 hexadecimal digit should accept just the initial 0.
12108 * stdlib/tst-strtod2.c (tests): New variable.
12109 (do_test): Run several tests rather than just one.
12111 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12113 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12114 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12116 2007-01-10 Ulrich Drepper <drepper@redhat.com>
12118 * io/fts.c: Make sure fts_cur is always valid after return from
12120 Patch by Miloslav Trmac <mitr@redhat.com>.
12122 2006-10-27 Richard Sandiford <richard@codesourcery.com>
12124 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12125 (R_MIPS_NUM): Bump by 1.
12127 2007-01-03 Jakub Jelinek <jakub@redhat.com>
12129 * posix/execvp.c: Include alloca.h.
12130 (allocate_scripts_argv): Renamed to...
12131 (scripts_argv): ... this. Don't allocate buffer here nor count
12133 (execvp): Use alloca if possible.
12134 * posix/Makefile: Add rules to build and run tst-vfork3 test.
12135 * posix/tst-vfork3.c: New test.
12137 2007-01-03 Ulrich Drepper <drepper@redhat.com>
12139 * string/Makefile (tst-strxfrm2-ENV): Define.
12140 * stdlib/Makefile (tst-strtod3-ENV): Define.
12142 2007-01-02 Ulrich Drepper <drepper@redhat.com>
12144 * posix/getconf.c: Update copyright year.
12145 * nss/getent.c: Likewise.
12146 * iconv/iconvconfig.c: Likewise.
12147 * iconv/iconv_prog.c: Likewise.
12148 * elf/ldconfig.c: Likewise.
12149 * catgets/gencat.c: Likewise.
12150 * csu/version.c: Likewise.
12151 * elf/ldd.bash.in: Likewise.
12152 * elf/sprof.c (print_version): Likewise.
12153 * locale/programs/locale.c: Likewise.
12154 * locale/programs/localedef.c: Likewise.
12155 * nscd/nscd.c (print_version): Likewise.
12156 * debug/xtrace.sh: Likewise.
12157 * malloc/memusage.sh: Likewise.
12158 * malloc/mtrace.pl: Likewise.
12159 * debug/catchsegv.sh: Likewise.
12161 2006-12-24 Ulrich Drepper <drepper@redhat.com>
12163 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12166 2006-12-23 Ulrich Drepper <drepper@redhat.com>
12168 * posix/wordexp.c: Remove some unnecessary tests.
12170 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
12172 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12173 blacklist the group till after we look it up.
12175 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12177 * include/atomic.h (atomic_forced_read): New macro.
12179 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12181 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12183 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12185 * nss/getXXbyYY_r.c: Include atomic.h.
12186 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12187 add atomic_write_barrier () in between.
12189 * stdlib/Makefile (tests): Add tst-makecontext.
12190 * stdlib/tst-makecontext.c: New test.
12192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12193 (__makecontext): Don't realign uc_mcontext.uc_regs.
12195 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12197 * elf/dl-support.c: Include dl-procinfo.h.
12198 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12199 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12200 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12202 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12203 hardcoded constants.
12204 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12205 PPC_PLATFORM_* macros for array designators.
12207 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12209 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12210 names to the beginning.
12211 (_dl_powerpc_platforms): Add "power6x".
12212 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12213 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12214 (_DL_PLATFORMS_COUNT): Increase.
12215 (_dl_string_platform): Handle power6x case.
12216 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12217 PPC_FEATURE_POWER6_EXT): Define.
12218 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12220 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12223 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12224 [-2^31 .. 2^31) range.
12225 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12227 * stdlib/tst-rand48-2.c: New test.
12228 * stdlib/Makefile (tests): Add tst-rand48-2.
12230 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12232 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12234 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12236 * misc/tst-pselect.c (do_test): Make sure the helper process is
12237 terminating when the test is aborted.
12239 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12241 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12242 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12243 Handle relatime mount option.
12246 * libio/Makefile (tests): Add tst-setvbuf1.
12247 * libio/tst-setvbuf1.c: New file.
12249 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12252 * libio/genops.c (__uflow): Fix a typo.
12253 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12254 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12255 the narrow buffer size.
12257 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12260 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12261 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12262 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12264 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12265 _IO_wstr_finish): Likewise.
12266 * libio/wmemstream.c (open_wmemstream): Likewise.
12267 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12268 even for wide streams.
12270 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12275 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12277 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12278 separators also if no non-zero digits found.
12279 * stdlib/Makefile (tests): Add tst-strtod3.
12281 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12284 * include/features.h: Fix comment about default value for
12288 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12289 empty parsed strings.
12290 * stdlib/Makefile (tests): Add tst-strtod2.
12291 * stdlib/tst-strtod2.c: New file.
12294 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12296 * stdlib/Makefile (tests): Add tst-atof2.
12297 * stdlib/tst-atof2.c: New file.
12300 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12301 correctly if removing trailing zero of hex-float.
12302 * stdlib/Makefile (tests): Add tst-atof1.
12303 * stdlib/tst-atof1.c: New file.
12305 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12307 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12308 Start searching for next comma at p rather than rest.
12309 * misc/Makefile (tests): Add tst-mntent2.
12310 * misc/tst-mntent2.c: New test.
12312 * misc/getusershell.c (initshells): Check for integer overflows.
12313 Make strings buffer one bigger as fgets always succeeds when second
12314 argument is 1. Don't use calloc for shells array. Disallow
12317 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12319 * malloc/memusage.c: Handle realloc with new size of zero and
12320 non-NULL pointer correctly.
12321 (me): Really write first record twice.
12322 (struct entry): Make format bi-arch safe.
12323 (dest): Write out more realloc statistics.
12324 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12326 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12328 * nis/nis_subr.c (nis_getnames): Revert last change.
12330 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12332 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12333 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12334 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12335 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12337 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12338 * io/tst-ttyname_r.c: New test.
12340 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12342 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12344 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12346 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12347 jump table entries.
12349 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12351 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12352 `clone' function to ensure proper unwinding stop of gdb.
12353 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12355 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12357 * nscd/nscd.init: Remove obsolete and commented-out -S option
12360 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12363 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12366 * manual/string.texi (strtok): Remove duplicate paragraph.
12368 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12370 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12371 libgcc not supporting `rflags' unwinding (register # >= 17).
12373 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12375 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12378 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12379 Jakub Jelinek <jakub@redhat.com>
12380 Jan Kratochvil <jan.kratochvil@redhat.com>
12382 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12383 unwind information.
12384 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12385 'restore_rt' even in the 'signal' directory.
12386 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12388 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12391 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12392 malloc crashed. Don't allocate memory unnecessarily in each
12395 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12397 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12399 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12401 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12403 2006-11-18 Bruno Haible <bruno@clisp.org>
12405 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12406 __sysconf only after having tried to call getgroups32.
12408 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12410 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12411 addresses for IPv4 queries if they can be mapped.
12413 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12415 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12416 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12417 (signmask): Add .size directive.
12418 (othermask): Add .type directive.
12420 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12422 * po/nl.po: Update from translation team.
12424 * timezone/zdump.c: Redo fix for BZ #3137.
12426 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12428 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12429 to first_unused after parsing :include: file.
12431 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12433 * timezone/africa: Update from tzdata2006o.
12434 * timezone/antarctica: Likewise.
12435 * timezone/asia: Likewise.
12436 * timezone/australasia: Likewise.
12437 * timezone/backward: Likewise.
12438 * timezone/europe: Likewise.
12439 * timezone/iso3166.tab: Likewise.
12440 * timezone/northamerica: Likewise.
12441 * timezone/southamerica: Likewise.
12442 * timezone/zone.tab: Likewise.
12444 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12445 on machines with 64-bit time_t.
12447 * timezone/checktab.awk: Update from tzcode2006o.
12448 * timezone/ialloc.c: Likewise.
12449 * timezone/private.h: Likewise.
12450 * timezone/scheck.c: Likewise.
12451 * timezone/tzfile.h: Likewise.
12452 * timezone/tzselect.ksh: Likewise.
12453 * timezone/zdump.c: Likewise.
12454 * timezone/zic.c: Likewise.
12457 * elf/ldconfig.c (main): Call setlocale and textdomain.
12458 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12461 * manual/argp.texi: Fix typos.
12462 * manual/charset.texi: Likewise.
12463 * manual/errno.texi: Likewise.
12464 * manual/filesys.texi: Likewise.
12465 * manual/lang.texi: Likewise.
12466 * manual/maint.texi: Likewise.
12467 * manual/memory.texi: Likewise.
12468 * manual/message.texi: Likewise.
12469 * manual/resource.texi: Likewise.
12470 * manual/search.texi: Likewise.
12471 * manual/signal.texi: Likewise.
12472 * manual/startup.texi: Likewise.
12473 * manual/stdio.texi: Likewise.
12474 * manual/sysinfo.texi: Likewise.
12475 * manual/syslog.texi: Likewise.
12476 * manual/time.texi: Likewise.
12477 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12480 * sunrpc/clnt_raw.c: Minimal message improvements.
12481 * sunrpc/pm_getmaps.c: Likewise.
12482 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12483 * nis/nis_print_group_entry.c: Likewise.
12484 * locale/programs/repertoire.c: Likewise.
12485 * locale/programs/charmap.c: Likewise.
12486 * malloc/memusage.sh: Likewise.
12487 * elf/dl-deps.c: Likewise.
12488 * locale/programs/ld-collate.c: Likewise.
12489 * libio/vswprintf.c: Likewise.
12490 * malloc/memusagestat.c: Likewise.
12491 * sunrpc/auth_unix.c: Likewise.
12492 * sunrpc/rpc_main.c: Likewise.
12493 * nscd/cache.c: Likewise.
12494 * locale/programs/repertoire.c: Unify output messages.
12495 * locale/programs/charmap.c: Likewise.
12496 * locale/programs/ld-ctype.c: Likewise.
12497 * locale/programs/ld-monetary.c: Likewise.
12498 * locale/programs/ld-numeric.c: Likewise.
12499 * locale/programs/ld-time.c: Likewise.
12500 * elf/ldconfig.c: Likewise.
12501 * nscd/selinux.c: Likewise.
12502 * elf/cache.c: Likewise.
12503 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12506 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12510 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12512 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12513 if N is one bigger than return value.
12514 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12515 and l1 last arguments, if buf is defined, verify the return value
12516 equals to strlen (buf) and verify no byte beyond passed length
12519 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12521 * po/sv.po: Update from translation team.
12523 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12525 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12526 noinline attribute.
12528 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12530 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12531 noinline attribute.
12533 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12534 Use __new_sys_siglist instead of _sys_siglist_internal as
12535 second macro argument.
12536 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12539 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12542 * posix/unistd.h (sysconf): Remove const attribute.
12544 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12545 temporary or deprecated addresses.
12546 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12548 * string/Makefile (tests): Add tst-strxfrm2.
12549 * string/tst-strxfrm2.c: New file.
12551 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12553 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12554 rather than r->r_brk.
12556 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12558 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12559 optimization even if needed > n.
12561 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12562 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12563 return false, otherwise return true.
12564 (cache_rpath): Return decompose_rpath return value.
12566 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12568 * include/libc-symbols.h (declare_symbol): Rename to...
12569 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12570 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12572 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12574 * sysdeps/gnu/siglist.c: Likewise.
12576 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12578 * sysdeps/powerpc/fpu/bits/mathinline.h
12579 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12580 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12582 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12584 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12585 Update handling of cache descriptor 0x49 for new models.
12586 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12589 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12591 * malloc/memusage.c (dest): Reset not_me back to false after
12592 printing statistics.
12594 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12596 * configure.in: Work around ld --help change and avoid -z relro
12597 test completely if the architecture doesn't care about security.
12599 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12601 * po/sv.po: Update from translation team.
12603 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12605 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12606 generate compatibility version.
12608 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12610 * configure.in: Relax -z relro requirement a bit.
12612 * po/sv.po: Update from translation team.
12614 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12616 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12617 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12618 * elf/dl-close.c (_dl_close_worker): Likewise.
12619 * elf/dl-open.c (_dl_open_worker): Likewise.
12620 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12622 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12624 * configure.in: Require assembler support for visibility, compiler
12625 support for visibility and aliases, linker support for various -z
12627 * Makeconfig: Remove conditional code which now is unnecessary.
12628 * config.h.in: Likewise.
12629 * config.make.in: Likewise.
12630 * dlfcn/Makefile: Likewise.
12631 * elf/Makefile: Likewise.
12632 * elf/dl-load.c: Likewise.
12633 * elf/rtld.c: Likewise.
12634 * include/libc-symbols.h: Likewise.
12635 * include/stdio.h: Likewise.
12636 * io/Makefile: Likewise.
12637 * io/fstat.c: Likewise.
12638 * io/fstat64.c: Likewise.
12639 * io/fstatat.c: Likewise.
12640 * io/fstatat64.c: Likewise.
12641 * io/lstat.c: Likewise.
12642 * io/lstat64.c: Likewise.
12643 * io/mknod.c: Likewise.
12644 * io/mknodat.c: Likewise.
12645 * io/stat.c: Likewise.
12646 * io/stat64.c: Likewise.
12647 * libio/stdio.c: Likewise.
12648 * nscd/Makefile: Likewise.
12649 * stdlib/Makefile: Likewise.
12650 * stdlib/atexit.c: Likewise.
12651 * sysdeps/generic/ldsodefs.h: Likewise.
12652 * sysdeps/i386/dl-machine.h: Likewise.
12653 * sysdeps/i386/sysdep.h: Likewise.
12654 * sysdeps/i386/i686/memcmp.S: Likewise.
12655 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12656 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12657 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12659 * Makerules: USE_TLS support is now default.
12660 * tls.make.c: Likewise.
12661 * csu/Versions: Likewise.
12662 * csu/libc-start.c: Likewise.
12663 * csu/libc-tls.c: Likewise.
12664 * csu/version.c: Likewise.
12665 * dlfcn/dlinfo.c: Likewise.
12666 * elf/dl-addr.c: Likewise.
12667 * elf/dl-cache.c: Likewise.
12668 * elf/dl-close.c: Likewise.
12669 * elf/dl-iteratephdr.c: Likewise.
12670 * elf/dl-load.c: Likewise.
12671 * elf/dl-lookup.c: Likewise.
12672 * elf/dl-object.c: Likewise.
12673 * elf/dl-open.c: Likewise.
12674 * elf/dl-reloc.c: Likewise.
12675 * elf/dl-support.c: Likewise.
12676 * elf/dl-sym.c: Likewise.
12677 * elf/dl-sysdep.c: Likewise.
12678 * elf/dl-tls.c: Likewise.
12679 * elf/ldconfig.c: Likewise.
12680 * elf/rtld.c: Likewise.
12681 * elf/tst-tls-dlinfo.c: Likewise.
12682 * elf/tst-tls1.c: Likewise.
12683 * elf/tst-tls10.h: Likewise.
12684 * elf/tst-tls14.c: Likewise.
12685 * elf/tst-tls2.c: Likewise.
12686 * elf/tst-tls3.c: Likewise.
12687 * elf/tst-tls4.c: Likewise.
12688 * elf/tst-tls5.c: Likewise.
12689 * elf/tst-tls6.c: Likewise.
12690 * elf/tst-tls7.c: Likewise.
12691 * elf/tst-tls8.c: Likewise.
12692 * elf/tst-tls9.c: Likewise.
12693 * elf/tst-tlsmod1.c: Likewise.
12694 * elf/tst-tlsmod13.c: Likewise.
12695 * elf/tst-tlsmod13a.c: Likewise.
12696 * elf/tst-tlsmod14a.c: Likewise.
12697 * elf/tst-tlsmod2.c: Likewise.
12698 * elf/tst-tlsmod3.c: Likewise.
12699 * elf/tst-tlsmod4.c: Likewise.
12700 * elf/tst-tlsmod5.c: Likewise.
12701 * elf/tst-tlsmod6.c: Likewise.
12702 * include/errno.h: Likewise.
12703 * include/link.h: Likewise.
12704 * include/tls.h: Likewise.
12705 * locale/global-locale.c: Likewise.
12706 * locale/localeinfo.h: Likewise.
12707 * malloc/arena.c: Likewise.
12708 * malloc/hooks.c: Likewise.
12709 * malloc/malloc.c: Likewise.
12710 * resolv/Versions: Likewise.
12711 * sysdeps/alpha/dl-machine.h: Likewise.
12712 * sysdeps/alpha/libc-tls.c: Likewise.
12713 * sysdeps/generic/ldsodefs.h: Likewise.
12714 * sysdeps/generic/tls.h: Likewise.
12715 * sysdeps/i386/dl-machine.h: Likewise.
12716 * sysdeps/ia64/dl-machine.h: Likewise.
12717 * sysdeps/ia64/libc-tls.c: Likewise.
12718 * sysdeps/mach/hurd/fork.c: Likewise.
12719 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12720 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12721 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12722 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12723 * sysdeps/s390/libc-tls.c: Likewise.
12724 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12725 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12726 * sysdeps/sh/dl-machine.h: Likewise.
12727 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12728 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12729 * sysdeps/x86_64/dl-machine.h: Likewise.
12731 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12732 split out locking and parameter checking.
12733 (_dl_close): Call _dl_close_worker after locking and checking.
12734 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12736 * elf/Makefile: Add rules to build and run tst-thrlock.
12737 * elf/tst-thrlock.c: New file.
12740 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12744 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12745 we are sure we do not need it anymore for _dl_close. Also move
12746 the asserts inside the lock region.
12747 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12749 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12751 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12753 (_dl_lookup_symbol_x): Adjust caller.
12755 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12757 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12759 * elf/dl-libc.c: Revert l_scope name changes.
12760 * elf/dl-load.c: Likewise.
12761 * elf/dl-object.c: Likewise.
12762 * elf/rtld.c: Likewise.
12763 * elf/dl-close.c (_dl_close): Likewise.
12764 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12765 always use __rtld_mrlock_{change,done}. Always free old scope list
12766 here if not l_scope_mem.
12767 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12768 change. Never free scope list here. Just __rtld_mrlock_lock before
12769 the lookup and __rtld_mrlock_unlock it after the lookup.
12770 * elf/dl-sym.c: Likewise.
12771 * include/link.h (struct r_scoperec): Remove.
12772 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12773 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12775 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12777 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12779 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12781 * configure.in: Disable building profile libraries by default.
12783 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12785 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12786 as signed longs, check for x_base + pos overflow.
12787 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12788 * sunrpc/tst-xdrmem2.c: New test.
12790 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12792 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12793 _dl_lookup_symbol_x code.
12795 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12797 * elf/dl-runtime.c: Include sysdep-cancel.h.
12798 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12799 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12800 instead of catomic_* macros.
12801 * elf/dl-sym.c: Include sysdep-cancel.h.
12802 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12803 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12804 * elf/dl-close.c: Include sysdep-cancel.h.
12805 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12806 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12807 * elf/dl-open.c: Include sysdep-cancel.h.
12808 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12809 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12811 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12814 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12815 fastbin rather than end of fastbin array.
12817 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12819 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12821 * sysdeps/x86_64/bits/atomic.h
12822 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12823 (catomic_decrement): Use correct body macro.
12825 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12827 * include/atomic.h: Add a unique prefix to all local variables
12829 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12831 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12834 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12837 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12839 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12841 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12844 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12845 determine highest fast bin to consolidate, always look into all of
12847 (do_check_malloc_state): Only require for empty bins for large
12848 sizes in main arena.
12850 * libio/stdio.h: Add more __wur attributes.
12852 * elf/dl-minimal.c (realloc): Optimize last patch.
12854 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12857 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12858 and use memcpy() if it does.
12860 2006-11-12 Andreas Jaeger <aj@suse.de>
12863 * manual/search.texi (Hash Search Function): Clarify.
12864 (Array Search Function): Clarify.
12866 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12869 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12871 * math/atest-exp2.c (read_mpn_hex): Likewise.
12872 * math/atest-sincos.c (main): Likewise.
12874 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12876 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12877 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12878 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12880 * Versions.def: Add GLIBC_2.6 for libc.
12882 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12884 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12886 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12888 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12890 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12892 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12893 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12895 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12897 * include/atomic.c: Define catomic_* operations.
12898 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12899 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12900 * malloc/memusage.c: Likewise.
12901 * gmon/mcount.c: Likewise.
12902 * elf/dl-close.c: Likewise.
12903 * elf/dl-open.c: Likewise.
12904 * elf/dl-profile.c: Likewise.
12905 * elf/dl-sym.c: Likewise.
12906 * elf/dl-runtime.c: Likewise.
12907 * elf/dl-fptr.c: Likewise.
12908 * resolv/res_libc.c: Likewise.
12910 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12912 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12913 components which lack them.
12915 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12916 at least one entry consisting of the parameter concatenated with
12919 2006-10-10 Roland McGrath <roland@frob.com>
12921 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12922 * sysdeps/mach/hurd/futimes.c: Likewise.
12923 * sysdeps/mach/hurd/lutimes.c: Likewise.
12925 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12926 Jakub Jelinek <jakub@redhat.com>
12928 Implement reference counting of scope records.
12929 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12930 from the list in objects which remain. Always allocate new scope
12932 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12933 don't resize, allocate a new one.
12934 * elf/dl-runtime.c: Update reference counters before using a scope
12936 * elf/dl-sym.c: Likewise.
12937 * elf/dl-libc.c: Adjust for l_scope name change.
12938 * elf/dl-load.c: Likewise.
12939 * elf/dl-object.c: Likewise.
12940 * elf/rtld.c: Likewise.
12941 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12942 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12943 Add l_scoperec_lock.
12944 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12945 * sysdeps/generic/rtld-lowlevel.h: New file.
12947 * include/atomic.h: Rename atomic_and to atomic_and_val and
12948 atomic_or to atomic_or_val. Define new macros atomic_and and
12949 atomic_or which do not return values.
12950 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12952 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12954 * po/sv.po: Update from translation team.
12956 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12958 * Versions.def: Add GLIBC_2.6 to libpthread.
12960 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12961 (versioned_symbol): Likewise.
12962 (compat_symbol): Likewise.
12964 * po/tr.po: Update from translation team.
12966 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12968 * nis/Banner: Removed. It's been integral part forever and the
12969 author info is incomplete anyway.
12970 * libio/Banner: Likewise.
12972 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12973 code, make sure the nis_freeresult call doesn't crash and that the
12974 result is reported correctly.
12976 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12978 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12979 when callback is NULL.
12981 * nis/Versions (libnss_nisplus): Add
12982 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12983 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12984 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12985 _nss_create_tablename): Rename to...
12986 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12987 ... these. No longer static.
12988 (internal_setgrent): Adjust users.
12989 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12990 Don't use locking around _nss_grp_create_tablename call.
12991 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12993 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12995 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12997 2006-10-06 Andreas Jaeger <aj@suse.de>
12999 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13001 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13003 * po/pl.po: Update from translation team.
13005 * nscd/nscd.c (main): Fix typo in message.
13006 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13008 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13011 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13012 errno.h, signal.h, unistd.h and sysdep-cancel.h.
13013 (__sigprocmask): Define.
13015 2006-10-02 Ulrich Drepper <drepper@redhat.com>
13017 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13020 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13022 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13023 in oldtotal and newtotal calculation.
13024 * nscd/nscd-client.h (struct mapped_database): Add datasize
13026 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13027 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13029 (__nscd_cache_search): Add checks to make sure we never reference
13030 data beyond the current mapping.
13032 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
13034 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13035 variables const to avoid compiler warnings.
13037 * io/fts.c (fts_close): Remove redundant checks.
13038 (fts_build): Likewise.
13039 (fts_palloc): Likewise.
13041 * manual/message.texi (Advanced gettext functions,
13042 Using gettextized software): Fix typos.
13044 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13046 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13047 explain why there are no leaks.
13049 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13051 * libio/wmemstream.c: Include <wchar.h>.
13052 * libio/bug-wmemstream1.c: Likewise.
13053 * libio/tst-wmemstream1.c: Likewise.
13054 * libio/tst-wmemstream2.c: Likewise.
13056 * version.h (RELEASE): Bump to 2.5.
13057 * README: Regenerated.
13059 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13062 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13063 found no group members.
13064 Patch by Petr Baudis.
13066 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13068 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13069 assert bootstrap_map.l_tls_modid is zero.
13070 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13073 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13075 * libio/stdio.h: Move open_wmemstream prototype to ...
13076 * wcsmbs/wchar.h: ... here.
13078 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13081 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13082 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13083 __{,l}chown to handle the rest.
13084 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13085 fchownat syscall and __ASSUME_32BITUIDS case inline, call
13086 __{,l}chown to handle the rest.
13087 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13089 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13090 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13093 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13094 time, rather allocate increasingly bigger arrays of pointers, if
13095 possible with alloca, if too large with malloc.
13097 2006-09-24 Jakub Jelinek <jakub@redhat.com>
13099 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13101 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13103 2006-09-24 Ulrich Drepper <drepper@redhat.com>
13105 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13107 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13108 IFA_F_HOMEADDRESS flag for interfaces.
13109 * include/ifaddrs.h (struct in6addrinfo): Define
13112 2006-09-21 Jakub Jelinek <jakub@redhat.com>
13115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13116 PTR_DEMANGLE3): Define.
13117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13118 PTR_DEMANGLE3): Likewise.
13119 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13120 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13122 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13124 2006-09-20 Jakub Jelinek <jakub@redhat.com>
13126 * po/libc.pot: Regenerated.
13127 * po/be.po: Updated.
13128 * po/ca.po: Likewise.
13129 * po/cs.po: Likewise.
13130 * po/da.po: Likewise.
13131 * po/de.po: Likewise.
13132 * po/el.po: Likewise.
13133 * po/en_GB.po: Likewise.
13134 * po/es.po: Likewise.
13135 * po/fi.po: Likewise.
13136 * po/fr.po: Likewise.
13137 * po/gl.po: Likewise.
13138 * po/hr.po: Likewise.
13139 * po/hu.po: Likewise.
13140 * po/ja.po: Likewise.
13141 * po/ko.po: Likewise.
13142 * po/nb.po: Likewise.
13143 * po/nl.po: Likewise.
13144 * po/pl.po: Likewise.
13145 * po/pt_BR.po: Likewise.
13146 * po/ru.po: Likewise.
13147 * po/rw.po: Likewise.
13148 * po/sk.po: Likewise.
13149 * po/sv.po: Likewise.
13150 * po/tr.po: Likewise.
13151 * po/zh_CN.po: Likewise.
13152 * po/zh_TW.po: Likewise.
13155 * iconv/iconv_prog.c (main): Fix spelling in error message.
13156 * iconv/iconvconfig.c (main): Likewise.
13157 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13158 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13159 * locale/programs/localedef.c (main): Likewise.
13160 * locale/programs/repertoire.c (repertoire_read): Likewise.
13161 * timezone/zdump.c (main): Likewise.
13162 * nscd/connections.c (handle_request): Fix spelling in log message.
13163 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13165 2006-09-20 Ulrich Drepper <drepper@redhat.com>
13167 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13170 2006-09-20 Andreas Jaeger <aj@suse.de>
13172 * math/libm-test.inc (lrint_test_upward): Fix typo.
13174 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13177 * math/libm-test.inc (lrint_test_tonearest): New function.
13178 (lrint_test_towardzero): New function.
13179 (lrint_test_downward): New function.
13180 (lrint_test_upward): New function.
13181 (main): Run these new tests.
13182 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13183 of values near to 0.
13184 (two52): Use double not long double.
13185 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13186 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13187 (two23): Use float not double.
13188 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13189 (two23): Use float not double.
13190 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13191 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13192 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13193 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13195 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13197 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13198 Cast sp to unsigned long to avoid compiler warning.
13199 Use __makecontext_ret function instead of a trampoline on the stack.
13200 (__makecontext_ret): New function.
13201 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13203 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13205 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13206 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13209 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13211 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13212 sure no reference to the unloaded map's search list remains in the
13213 dependency's scope.
13215 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13217 * elf/Makefile: Add rules to build and run unload7 test.
13218 * elf/unload7.c: New test.
13219 * elf/unload7mod1.c: New file.
13220 * elf/unload7mod2.c: New file.
13222 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13224 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13225 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13226 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13227 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13228 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13229 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13230 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13231 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13232 PTRACE_GETEVENTMSG): Likewise.
13233 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13236 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13238 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13239 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13240 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13241 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13243 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13245 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13246 write '\0' to the fd.
13247 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13248 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13249 Change regs to unsigned long pointer from unsigned int, fix fscr
13252 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13254 * io/Makefile (CFLAGS-fstatat.c): Set.
13255 (CFLAGS-fstatat64.c): Likewise.
13256 (CFLAGS-mknodat.c): Likewise.
13258 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13259 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13260 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13261 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13263 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13264 Steven Munroe <sjmunroe@us.ibm.com>
13266 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13267 names to the beginning. Rename "cell" to "cellbe".
13268 (_dl_powerpc_platforms): New.
13269 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13270 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13271 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13272 (_DL_HWCAP_PLATFORM): Define to new mask.
13273 (_dl_platform_string, _dl_string_platform): New functions.
13274 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13275 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13277 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13280 * README.libm: Fix a thinko in sqrt algorithm description.
13283 * manual/string.texi (argz_delete): Fix prototype.
13284 Patch by <alpt@freaknet.org>.
13286 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13289 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13290 * io/tst-fcntl.c (do_prepare): Likewise.
13291 * posix/tst-exec.c (do_prepare): Likewise.
13292 * posix/tst-preadwrite.c (do_prepare): Likewise.
13293 * posix/tst-spawn.c (do_prepare): Likewise.
13294 * posix/tst-truncate.c (do_prepare): Likewise.
13295 * rt/tst-aio.c (do_prepare): Likewise.
13296 * rt/tst-aio64.c (do_prepare): Likewise.
13297 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13300 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13303 * time/mktime.c (guess_time_tm): Fix overflow detection.
13304 * time/Makefile (tests): Add bug-mktime1.
13305 * time/bug-mktime1.c: New file.
13308 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13309 (mremap): Likewise.
13311 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13314 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13315 Ensure relocation doesn't clobber any bits outside of the
13316 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13317 R_SPARC_HI22 and R_SPARC_H44.
13320 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13321 (long) (MINSIZE + nb - old_size) is positive.
13323 * malloc/arena.c (grow_heap): When growing bail even if new_size
13327 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13330 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13332 * posix/regex_internal.c (re_string_reconstruct): Handle
13333 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13334 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13335 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13336 re_string_context_at.
13337 * posix/Makefile: Add rules to build and run bug-regex26 test.
13338 * posix/bug-regex26.c: New test.
13340 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13341 rather than col_sym_free. Move seqp declaration earlier.
13343 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13345 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13347 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13348 decl before first goto out.
13350 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13352 * Makerules (shlib.lds): If have-hash-style, put .hash section
13353 at the end of the RO segment.
13355 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13357 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13358 style hash table format is used.
13360 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13362 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13363 randomization rather than before.
13364 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13366 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13368 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13370 * malloc/malloc.c (_int_malloc): Use full list insert and not
13371 shortcut which assumes the list is empty for large requests
13374 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13376 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13378 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13379 and offout arguments to the prototype.
13380 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13381 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13382 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13383 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13384 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13385 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13386 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13387 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13389 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13391 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13393 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13396 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13398 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13399 only if herrno is NETDB_INTERNAL. Handle errors other than
13400 ERANGE outside of the loops, handle TRY_AGAIN.
13402 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13403 if other's ctype category was missing.
13404 * locale/programs/ld-collate.c (collate_read): Return if
13405 copy_locale's collate category is missing.
13407 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13410 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13411 arenas if allocation failed.
13412 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13414 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13416 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13418 (malloc_state): Reduce bins size by 2.
13419 (_int_malloc): Fix test for large enough buffer for early termination.
13420 When no unsorted block matches perfectly and an exiting block has
13421 to be split, use full list insert and not shortcut which assumes
13424 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13427 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13429 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13432 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13433 symbol require exact match (these are PLTs).
13434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13435 (_dl_ppc64_addr_sym_match): Likewise.
13438 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13439 If symbol has a value use it.
13440 * elf/tst-dladdr1.c: New file.
13441 * elf/Makefile: Add rules to build and run tst-addr1.
13443 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13445 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13446 keeps failing and heap growth or new heap creation isn't
13448 * malloc/tst-malloc.c (main): Add new tests.
13450 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13453 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13454 as in the x86-64 code to use bswap.
13456 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13459 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13461 * posix/bits/unistd.h: Likewise.
13463 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13466 * string/strchr.c: Add cast to avoid warning.
13468 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13470 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13471 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13472 limit is needed to avoid the exploding of the address space
13473 requirement for secondary heaps.
13474 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13475 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13477 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13480 * Makerules (depfiles): Handle extra-test-objs the same as
13482 (common-mostlyclean): Likewise.
13483 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13485 * elf/Makefile (extra-objs): Likewise.
13486 * stdlib/Makefile (extra-objs): Likewise.
13488 2006-08-14 Eric Blake <ebb9@byu.net>
13491 * misc/error.h: Assume C89 or better.
13492 * misc/error.c: Likewise.
13494 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13497 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13498 __ASSUME_ATFCTS is defined.
13500 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13502 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13503 to sort in each call.
13505 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13506 is empty simply return and use next service.
13507 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13509 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13510 tells us when not finding a charmap file is an error.
13511 * locale/programs/charmap.h: Adjust charmap_read prototype.
13512 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13513 cannot find a charmap.
13514 * locale/programs/localedef.c (main): Adjust charmap_read call.
13516 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13518 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13519 sysdeps/posix/pause.c implementation instead.
13521 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13523 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13526 2006-08-13 Andreas Schwab <schwab@suse.de>
13528 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13529 Don't clobber caller's LRSAVE.
13530 (_dl_prof_resolve): Likewise.
13532 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13535 * libio/memstream.c (open_memstream): Allocate initial buffer with
13537 * libio/wmemstream.c (open_wmemstream): Likewise.
13538 * libio/strops.c: Pretty printing.
13539 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13540 (enlarge_userbuf): New function.
13541 (_IO_str_seekoff): Call it if seek position is larger than current
13543 * libio/wstrops.c: Likewise.
13544 * libio/vasprintf.c: Add comment as to why we do not have to use
13545 calloc instead of malloc to allocate initial buffer.
13546 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13547 * libio/bug-memstream1.c: New file.
13548 * libio/bug-wmemstream1.c: New file.
13550 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13552 * libio/wstrops.c: Remove dead macro definitions and comments.
13553 * libio/strops.c: Likewise.
13556 * login/utmpname.c (__utmpname): Remove unnecessary test.
13558 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13561 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13564 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13567 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13569 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13570 setting of CPU clocks.
13572 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13575 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13576 since C99 requires the result to promote to 'int' when uint_least8_t
13577 and uint_least16_t promote to 'int'.
13579 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13582 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13583 lenght of one output field, correct bitmask creation.
13584 * locale/programs/ld-time.c: Add alignment.
13587 * misc/error.c: Add space between program name and message if file
13590 2006-08-03 Eric Blake <ebb9@byu.net>
13593 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13595 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13597 * malloc/memusagestat.c: Silence warnings.
13599 * malloc/malloc.c: Dynamically size mmap treshold if the program
13600 frees mmaped blocks.
13601 Patch by Valerie Henson and Arjan van de Ven.
13603 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13605 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13608 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13609 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13610 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13611 Only provide var definitions in strtol_l (or for *ull*
13614 * stdio-common/bug16.c (tests): New array.
13615 (do_tests): Allow the first hexadecimal digit
13616 to be 1, 2, 4 or 8. Do 3 additional tests.
13618 * sysdeps/s390/fpu/libm-test-ulps: Update.
13620 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13621 fchownat syscall if available.
13622 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13623 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13624 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13626 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13628 * nis/nis_xdr.c: Avoid some function calls.
13630 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13631 Ulrich Drepper <drepper@redhat.com>
13633 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13634 short cut if only one name component is stripped away.
13636 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13638 * nis/nis_call.c: Minor cleanups throughout.
13639 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13640 (first_shoot): Add search_parent_first parameter. Only if it is set
13641 search parent server first.
13642 If directory for table found through cold start cache is not the same
13643 as referenced in the cache, don't use it.
13644 (__nisfind_server): Take additional parameter. Pass it on to
13646 (__prepare_niscall): Adjust __nisfind_server call.
13647 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13648 * nis/nis_table.c: Adjust __nisfind_server call.
13649 * nis/nis_lookup.c: Likewise.
13650 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13652 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13655 * math/s_cacosh.c: Return values from positive branch.
13656 * math/s_cacoshf.c: Likewise.
13657 * math/s_cacoshl.c: Likewise.
13660 * sysvipc/sys/msg.h: Change return value to ssize_t.
13661 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13662 * sysvipc/msgrcv.c: Likewise.
13663 * include/sys/msg.h: Likewise.
13665 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13666 test introduced in patch for bz #661.
13667 (getgrouplist): Simplify code a bit. Don't allocate one additional
13668 element for NEWGROUPS.
13671 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13672 'f', use '1' as leading digit not '\1'.
13673 * stdio-common/Makefile (tests): Add bug16.
13674 * stdio-common/bug16.c: New file.
13677 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13678 and don't try to open it. The patch introducing the macro
13679 contained a bug and used the same file name as the new file
13680 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13681 this out completely.
13684 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13685 Patch by Jerry James <Jerry.James@usu.edu>.
13687 * rt/Makefile (tests): Add tst-clock2.
13688 * rt/tst-clock2.c: New file.
13691 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13692 function and its parameters and pass it to new thread.
13693 (__gai_notify): Add support for alternative waiting for completion.
13694 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13695 waiting for completion.
13696 * resolv/getaddrinfo_a.c: Likewise.
13697 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13698 waiting for completion is used.
13699 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13700 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13701 * resolv/gai_error.c: Likewise.
13702 * resolv/gai_sigqueue.c: Likewise.
13704 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13706 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13707 errno to EBADF and return MACH_PORT_NULL.
13709 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13712 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13714 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13716 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13717 walk them instead of the symbol table.
13719 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13722 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13723 status of NSS calls, not the number of returned entries.
13725 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13726 request_key, keyctl.
13728 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13730 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13732 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13734 * elf/tst-auditmod1.c: Fix typo in #error.
13736 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13738 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13740 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13742 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13744 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13745 that the directory is empty even on non-POSIX filesystems.
13747 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13749 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13751 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13752 the backend NSS module. If backend setgrent call failed, don't have
13753 internal_setgrent fail. Just remember this until it is needed.
13754 * nis/nss_compat/compat-pwd.c: Likewise.
13755 * nis/nss_compat/compat-spwd.c: Likewise.
13757 2006-07-30 Roland McGrath <roland@redhat.com>
13759 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13760 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13761 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13762 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13764 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13765 (nanosleep_not_cancel): New macro.
13766 (sigsuspend_not_cancel): new macro.
13767 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13768 (do_sigsuspend): Define as inline.
13769 (__sigsuspend): Always use do_sigsuspend.
13770 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13771 * include/signal.h: Declare __sigsuspend_nocancel.
13772 * sysdeps/posix/pause.c
13773 [! NO_CANCELLATION] (__pause_nocancel): New function.
13775 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13776 * include/time.h (__nanosleep_nocancel): Likewise.
13778 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13780 * locale/programs/localedef.c (add_to_readlist): Rename local
13781 variables to avoid confusion.
13783 * locale/programs/charmap.c (charmap_read): Emit error message if
13784 charmap couldn't be found or read.
13786 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13788 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13789 __ASSUME_FUTEX_LOCK_PI.
13790 * include/time.h: Declare __nanosleep_nocancel.
13791 * include/unistd.h: Declare __pause_nocancel.
13793 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13794 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13795 get the __stack_chk_fail_local definition when it's needed.
13797 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13799 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13800 * dlfcn/bug-atexit3.c: New file.
13801 * dlfcn/bug-atexit3-lib.cc: New file.
13803 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13804 used when the namespace is not the base namespace.
13806 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13808 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13809 (__new_exitfn): Bump it in every successful call.
13810 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13811 more exit handlers, call them right away.
13812 * stdlib/exit.h: Declare __new_exitfn_called.
13814 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13816 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13817 calling registered handler.
13819 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13820 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13821 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13822 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13823 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13824 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13825 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13826 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13828 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13830 * elf/dl-lookup.c (dl_new_hash): New functions.
13831 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13832 value here. Compute new-style hash value. Pass new hash value
13833 and reference to variable with the old value to do_lookup_x.
13834 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13835 old-style hash table.
13836 (_dl_debug_bindings): Pass new hash value and reference to variable
13837 with the old value to do_lookup_x.
13838 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13839 new-style hash value and change old-style hash value parameter to
13840 be a reference. Reoganize functions to determine whether
13841 new-style hash table is available. Only fall back on old-style
13842 table. If old-style hash value is needed, compute it here.
13843 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13845 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13846 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13847 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13848 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13849 * Makeconfig: If linker supports --hash-style option add it to all
13850 linker command lines to build DSOs.
13851 * config.make.in: Define have-hash-style.
13852 * configure.in: Test whether linker supports --hash-style option.
13854 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13855 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13857 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13859 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13862 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13863 RPATH of main map twice.
13865 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13867 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13868 look further, return original strings.
13869 (_nl_find_msg): Do not return found translation if the conversion
13870 failed. Either signal the string is unusable or that something went
13871 wrong and the original should be used.
13873 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13875 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13877 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13880 * misc/insremque.c (insque): Handle prev == NULL.
13881 * misc/Makefile (tests): Add tst-insremque.
13882 * misc/tst-insremque.c: New test.
13884 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13887 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13888 conflict with DL_DST_REQUIRED.
13890 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13892 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13893 match what Solaris does.
13895 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13897 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13898 local_setegid instead of seteuid and setegid.
13899 * sysdeps/generic/local-setxid.h: New file.
13900 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13902 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13904 * string/Makefile (tests): Add bug-envz1.
13905 * string/bug-envz1.c: New file.
13907 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13909 * posix/regex_internal.c (re_string_skip_chars): If no character has
13910 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13911 to the byte which couldn't be converted.
13912 (re_string_reconstruct): Don't clear valid_raw_len before calling
13913 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13914 tip_context using re_string_context_at.
13915 * posix/Makefile: Add rules to build and run bug-regex25 test.
13916 * posix/bug-regex25.c: New test.
13918 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13921 * string/envz.c (envz_strip): Correct erroneously reversed src
13922 and dest parameters to memmove() invocation.
13924 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13926 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13927 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13928 to make sure the database has been already invalidated.
13929 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13930 after the cache has been invalidated. Use pthread_mutex_lock rather
13931 than pthread_mutex_trylock if fd != -1.
13932 * nscd/connections.c (invalidate_cache): Add fd argument, write
13933 response to fd if not calling prune_cache, pass fd to prune_cache.
13934 (handle_request): Adjust invalidate_cache caller.
13935 (nscd_run): Pass -1 as fd to prune_cache.
13937 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13939 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13942 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13944 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13945 * nscd/cache.c (prune_cache): Take prunelock before starting the
13946 work. Just return in case it is already taken.
13947 * nscd/connections.c (dbs): Initialize .prunelock.
13949 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13951 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13952 copying. No need to allocate new array for group members. Just
13953 move the pointers and update the size.
13955 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13956 Avoid memory leak in case realloc fails. Simplification for
13957 better code generation.
13959 Avoid deprecation warning because of libc_hidden_proto for
13960 inet6_option_alloc.
13961 * inet/inet6_option.c (option_alloc): Renamed from
13962 inet6_option_alloc. Made static.
13963 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13964 (inet6_option_append): Call option_alloc.
13965 * include/netinet/in.h: Remove libc_hidden_proto for
13966 inet6_option_alloc.
13968 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13969 for cleanup when cb!=NULL [Coverity CID 233].
13971 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13974 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13975 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13976 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13977 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13978 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13979 and inet6_rth_getaddr.
13980 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13982 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13983 Mark inet6_option_* interfaces as deprecated.
13984 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13985 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13986 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13987 inet6_rth_segments, and inet6_rth_getaddr.
13988 * inet/inet6_opt.c: New file.
13989 * inet/inet6_rth.c: New file.
13991 * inet/netinet/icmp6.h: Pretty printing.
13994 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13996 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13998 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13999 doing it all here. When server does not know the answer do not
14000 fail immediate, try parent first.
14002 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14005 2006-05-20 Ulrich Drepper <drepper@redhat.com>
14007 * nis/nis_call.c (__prepare_niscall): New function. Split out
14009 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14011 (__follow_path): New function. Split out from nis_list.
14012 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14014 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14016 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14018 * nis/Versions: Export __prepare_niscall, __create_ib_request,
14019 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14020 from libnsl for version GLIBC_PRIVATE.
14021 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14022 Remove entry parameter from _nss_nisplus_parse_pwent and
14023 _nss_nisplus_parse_grent.
14024 * nis/nss_nisplus/nisplus-parser.c: Likewise.
14025 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14026 again. Rewrite getpwent handling to not use nis_first_entry and
14027 nis_next_entry. Roll out own niscall handling.
14028 * nis/nss_nisplus/nisplus-grp.c: Likewise.
14030 * sunrpc/xdr_rec.c: Fix typo in comment.
14032 2006-05-19 Ulrich Drepper <drepper@redhat.com>
14034 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14037 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14038 to allocate memory for my_pollfd. Better initialization of
14039 cb_is_running. Use TEMP_FAILURE_RETRY.
14041 * malloc/memusage.sh (memusageso): Add quotes.
14042 (memusagestat): Likewise.
14043 * debug/xtrace.sh (pcprofileso): Likewise.
14044 (pcprofiledump): Likewise.
14045 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14047 * malloc/Makefile ($(objpfx)memusage): Likewise.
14049 * nis/nis_callback.c (__nis_create_callback): Calls to
14050 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14051 asprintf call fails.
14053 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14054 no uninitialized memory is passed to sendto.
14056 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14058 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14059 of snprintf+strdup. Handle OOM.
14060 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14061 cb->serv together. Remove now obsolete free calls.
14062 (__nis_destroy_callback): Remove now obsolete free call.
14064 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14066 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14067 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14068 and ULA respectively). Set precedence for IPv4 address to 10 as
14069 defined in RFC3484 for preferring IPv6.
14070 * posix/gai.conf: Update to match the new default tables.
14072 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14074 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14075 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14076 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14077 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14079 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14081 (init_nss_interface): Remove initialization of these variables.
14083 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14085 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14086 nis_free_directory forward to avoid duplication.
14088 2006-05-17 Ulrich Drepper <drepper@redhat.com>
14090 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14091 rec_dirsearch returning NULL.
14092 (first_shoot): Handle __nis_finddirectory returning NULL.
14093 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14095 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14096 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14098 2006-05-17 Jakub Jelinek <jakub@redhat.com>
14100 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14103 2006-05-15 Ulrich Drepper <drepper@redhat.com>
14105 * include/rpc/pmap_prot.h: Mark all functions as hidden.
14107 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14108 * nscd/nscd_getgr_r.c: Likewise.
14110 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14112 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14113 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14115 * stdlib/longlong.h (__clz_tab): Mark as hidden.
14117 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14119 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14121 * include/rpc/auth.h: Mark xdr_des_block_internal and
14122 xdr_opaque_auth_internal as hidden.
14124 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14127 * include/rpc/xdr.h: Mark all _internal functions as hidden.
14129 * misc/getusershell.c (okshells): Don't use static initializers,
14132 * stdlib/fmtmsg.c (keywords): Change type of len element to
14133 uint32_t to not waste space on 64bit machines.
14135 * locale/setlocale.c: Change _nl_category_names into a string.
14136 Add new _nl_category_name_idxs. Change all users.
14137 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14138 Declare _nl_category_name_idxs.
14139 * locale/findlocale.c: Adjust for _nl_category_names change.
14140 * locale/loadlocale.c: Likewise.
14141 * locale/newlocale.c: Likewise.
14142 * intl/dcigettext.c: Likewise.
14144 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14145 (add_alias2): ...here. New function.
14146 (__gconv_read_conf): Simplify builtin alias handling.
14147 (builtin_aliases): Convert to string to avoid relocations.
14148 * iconv/gconv_builtin.h: Add comment about correct formatting.
14150 2006-05-15 Jakub Jelinek <jakub@redhat.com>
14152 * resolv/res_debug.c (loc_ntoa): Make error const.
14154 2006-05-14 Andreas Schwab <schwab@suse.de>
14156 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14158 2006-05-12 Jakub Jelinek <jakub@redhat.com>
14160 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14161 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14162 sizeof (cpu_set_t).
14164 2006-05-11 Ulrich Drepper <drepper@redhat.com>
14166 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14168 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14170 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14171 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14173 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14174 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14176 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14177 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14180 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14181 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14184 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14185 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14187 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14188 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14190 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14191 * include/rpcsvc/nis_callback.h: New file.
14193 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14194 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14196 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14197 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14199 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14200 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14202 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14203 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14205 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14206 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14209 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14210 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14212 * nis/nis_error.c: Remove table of strings. Use position
14213 independent mechanism.
14214 * nis/nis_error.h: New file.
14216 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14218 * locale/programs/ld-time.c (time_finish): If wide era name or
14219 format aren't provided, set both wname and wformat to L"".
14221 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14223 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14224 results if the call was succesful.
14226 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14228 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14231 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14233 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14235 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14237 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14238 caller makes sure this is not the case.
14239 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14241 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14243 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14246 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14247 [Coverity CID 229, 230]
14249 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14251 (hol_help): Likewise. [Coverity CID 226, 227]
14253 * string/argz-replace.c (__argz_replace): Unconditionally call
14254 free on SRC. [Coverity CID 225]
14256 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14257 the return value of __nis_default_owner and __nis_default_group,
14258 it has been especially allocated. [Coverity CID 224]
14260 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14261 searchgroup and searchowner. Significantly simplified.
14262 (__nis_default_owner): Remove duplication. Do not locally copy the
14263 string before duplicating it.
14264 (__nis_default_group): Likewise.
14266 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14267 we must clear the variable before calling __nisfind_server.
14269 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14270 nis_getnames. [Coverity CID 223]
14272 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14273 xmalloc to allocate local repertoire name. [Coverity CID 222]
14275 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14276 allocate memory for the input to add_bytes. [Coverity CID 221]
14278 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14279 was allocated here. [Coverity CID 219, 220]
14281 * posix/getconf.c (print_all): Free confstr data after printing.
14284 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14285 list allocation fails. [Coverity CID 215]
14287 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14290 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14291 string is NULL. [Coverity CID 212]
14292 * argp/Makefile: Add rules to build and run bug-argp1.
14293 * argp/bug-argp1.c: New file.
14295 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14297 * stdlib/canonicalize.c (__realpath): Likewise.
14299 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14300 pointer. [Coverity CID 206]
14302 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14303 in statically linked code.
14304 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14305 statically built code, be prepared to have no link map.
14308 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14309 dgettext calls. [Coverity CID 204]
14311 * argp/argp-help.c (struct uparams): Remove valid member. Change
14313 (uparam_names): Reduce size. Avoid relative relocations.
14314 Moved to read-only segment.
14315 (fill_in_uparams): Update for new layout.
14317 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14318 assumed to always be != NULL. [Coverity CID 202]
14320 * argp/argp-help.c (hol_entry_help): Remove some dead code
14321 [Coverity CID 200].
14323 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14324 away a few more unconditional yperr2nss calls.
14325 (_nss_nis_getservbyname_r): Likewise.
14327 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14329 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14332 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14333 that unused memory passed to sendto is nevertheless initialized.
14336 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14337 possibly unaligned memory accesses.
14339 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14340 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14341 and __putlong respectively. Correct buffer overflow check for
14344 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14346 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14347 (send_dg): Rewrite error handling to be more compact and avoid
14348 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14350 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14352 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14353 instead of ns_get16.
14354 (res_queriesmatch): Likewise. Minor optimization.
14357 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14358 __libc_res_nsend might reallocate the buffer for the answer. In
14359 this case we have to reload the HP pointer.
14361 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14363 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14364 some branch prediction hints.
14366 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14367 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14368 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14369 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14370 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14371 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14372 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14373 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14375 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14377 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14378 by a GOT relocation to make Scrt1.o position independent.
14379 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14381 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14382 six system call parameters.
14383 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14385 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14387 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14390 * sunrpc/svc_udp.c (BZERO): Remove definition.
14392 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14394 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14395 (des_SPtrans): Use uint32_t type.
14396 (des_skb): Likewise.
14398 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14400 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14403 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14406 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14408 * locale/programs/ld-address.c (address_finish): Fix one more
14409 place where the iso639 array might be accessed beyond the limits.
14411 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14413 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14414 filling it for the first time.
14416 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14417 Adjust all callers.
14418 Free res object content before returning.
14420 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14422 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14425 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14426 cleanup for initial thread, just the free call on TVP.
14428 * nscd/gai.c (__getline): Define.
14431 See ChangeLog.16 for earlier changes.