1 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
4 instructions cu21 and cu24. Add well-formedness checking
5 parameter and adjust the software implementation.
6 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
8 2010-02-10 Ulrich Drepper <drepper@redhat.com>
11 * io/ftw.c (ftw_startup): Close descriptor for initial directory
12 after changing back to it.
14 2010-02-05 David S. Miller <davem@davemloft.net>
16 * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
17 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
19 (elf_machine_lazy_rel): Likewise.
20 (sparc_fixup_plt): Pull out to...
21 * sysdeps/sparc/sparc32/dl-plt.h: ...here.
22 * sysdeps/sparc/sparc32/dl-irel.h: New file.
23 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
25 (elf_machine_lazy_rel): Likewise.
26 (sparc64_fixup_plt): Pull out to...
27 * sysdeps/sparc/sparc64/dl-plt.h: ...here.
28 * sysdeps/sparc/sparc64/dl-irel.h: New file.
30 2010-02-09 Maxim Kuvyrkov <maxim@codesourcery.com>
32 * elf/elf.h: Define m68k TLS relocations.
34 2010-02-10 Luis Machado <luisgpm@br.ibm.com>
36 * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
37 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
38 * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
39 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
40 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
41 64-bit power7 fpu path.
42 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
43 32-bit power7 fpu math.
45 2010-02-09 Ulrich Drepper <drepper@redhat.com>
47 * sysdeps/i386/rshift.S: More compact unwind information.
49 * sysdeps/i386/lshift.S: Fix unwind information.
51 2010-02-08 Luis Machado <luisgpm@br.ibm.com>
53 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
54 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
55 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
56 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
57 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
58 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
59 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
60 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
61 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
62 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
63 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
64 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
66 2010-02-08 Andreas Schwab <schwab@redhat.com>
68 * include/fenv.h: Add hidden proto for fegetenv.
69 * math/fegetenv.c: Add hidden alias.
70 * sysdeps/i386/fpu/fegetenv.c: Likewise.
71 * sysdeps/ia64/fpu/fegetenv.c: Likewise.
72 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
73 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
74 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
75 * sysdeps/x86_64/fpu/fegetenv.c: Likewise
76 * sysdeps/s390/fpu/fegetenv.c: Likewise. Remove unused headers.
78 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
81 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
84 2010-01-26 Andreas Schwab <schwab@redhat.com>
86 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
88 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
89 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
92 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
95 2010-02-03 Ulrich Drepper <drepper@redhat.com>
98 * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
99 S_IMMUTABLE. Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
100 MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
101 MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
102 MS_ACTIVE, and MS_NOUSER.
103 (MS_RMT_MASK): Update according to current kernels.
106 * misc/getusershell.c (initshells): Allocate one more byte in input
107 buffer so that fgets doesn't loop undefinitely.
109 2010-02-02 Ulrich Drepper <drepper@redhat.com>
111 * stdlib/setenv.c (__add_to_environ): Don't use alloca if
112 __libc_use_alloca tells us not to. Fix memory leak in an error
113 situation. Based partially on patch by Jim Meyering.
115 2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
117 * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
118 get_phys_pages, get_avphys_pages): Add weak aliases.
120 2010-01-25 Andreas Schwab <schwab@redhat.com>
122 * iconv/iconv_prog.c (write_output): Fix check for open failure.
124 2010-01-22 Ulrich Drepper <drepper@redhat.com>
127 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
128 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
130 2010-01-22 Jim Meyering <jim@meyering.net>
133 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
134 buffer length computation.
137 * posix/regexec.c (re_copy_regs): Don't leak when allocation
138 of the start buffer succeeds but allocation of the "end" one fails.
141 * posix/regexec.c (re_search_2_stub): Check for overflow
142 when adding the sizes of the two strings.
145 * posix/regexec.c (re_search_internal): Avoid overflow
146 in computing re_malloc buffer size.
149 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
150 in computing re_malloc buffer size.
153 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
157 * posix/regexec.c (re_search_2_stub): Use simpler method than
158 boolean for freeing internal storage.
160 2010-01-22 Ulrich Drepper <drepper@redhat.com>
162 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
165 2010-01-22 Jim Meyering <jim@meyering.net>
168 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
169 fits in wchar_t. Problem reported by Eric Blake.
172 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
173 and stores into set-but-not-used local, "q".
176 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
177 detection test. Patch by Paul Eggert.
180 * posix/regex_internal.c (re_string_realloc_buffers):
181 Detect and handle internal overflow. Patch by Paul Eggert
183 2010-01-20 Andreas Schwab <schwab@redhat.com>
185 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
186 (CHECK_SP): Fix check for alternate stack.
187 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
188 (CHECK_SP): Likewise.
190 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
192 * sysdeps/i386/i686/multiarch/memmove.S: Also check
193 bit_Fast_Rep_String when SHARED isn't defined.
195 2010-01-19 Ulrich Drepper <drepper@redhat.com>
198 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
200 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
202 * sysdeps/mach/hurd/bits/libc-lock.h
203 (__rtld_lock_recursive_t): New type.
204 (__rtld_lock_initialize): New macro.
206 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
208 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
209 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
213 2010-01-18 Andreas Schwab <schwab@redhat.com>
215 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
216 definitions of O_DSYNC and O_RSYNC.
218 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
221 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
224 2010-01-16 Jakub Jelinek <jakub@redhat.com>
226 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
228 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
229 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
231 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
233 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
234 math_opt_barrier and math_force_eval macros.
236 2010-01-15 Ulrich Drepper <drepper@redhat.com>
238 * posix/regcomp.c: Fix a few more cases of ignored return values.
239 * posix/regex_internal.c: Likewise.
240 * posix/regexec.c: Likewise.
242 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
243 used without _XOPEN_SOURCE. Don't base any decisions on this macro
244 if _XOPEN_SOURCE is not defined as well.
246 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
248 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
249 high gprs kernel facility.
250 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
251 Added high gprs check for DSOs.
252 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
255 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
257 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
259 * elf/dl-open.c (_dl_sysdep_start): Likewise..
260 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
261 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
262 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
265 2010-01-14 Ulrich Drepper <drepper@redhat.com>
268 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
270 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
273 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
277 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
278 re_node_set_insert failure; return REG_ESPACE.
279 Patch by Paul Eggert.
281 * bits/confname.h: Make pre-C99-safe.
283 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
285 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
286 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
287 files are found by GCC.
289 2010-01-14 Ulrich Drepper <drepper@redhat.com>
291 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
294 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
297 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
299 * Versions.def: Add GLIBC_2.12 for libpthread.
302 * malloc/malloc.c (malloc_info): Initialize malloc if not already
303 done. Handle empty bin lists.
305 * posix/unistd.h: Change getpagesize and getdtablesize declaration
306 visibility some more.
308 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
310 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
313 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
316 2010-01-13 Ulrich Drepper <drepper@redhat.com>
318 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
320 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
322 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
324 2010-01-13 Ulrich Drepper <drepper@redhat.com>
326 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
328 2010-01-12 Ulrich Drepper <drepper@redhat.com>
330 * conform/data/complex.h-data: Test for POSIX2008.
332 * conform/data/ctype.h-data: Fix POSIX testing.
334 * conform/data/dirent.h-data: ino_t only needed for XSI.
336 * grp/grp.h: Declare getgrent and endgrent for XPG7.
338 * conform/data/inttypes.h-data: Use same types as the headers.
340 * resolv/netdb.h: Don't define old resolver macros for XPG7.
342 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
344 * conform/conformtest.pl: Implement tag for allow-header.
345 Fix newline handling in allow-header implementation.
347 * conform/data/time.h-data: Use allow-header instead of duplicating
350 * conform/data/time.h-data: Allow sigevent tag.
352 * posix/sched.h: Define time_t and pid_t for XPG7.
354 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
356 * sysdeps/i386/i686/bcopy.S: New file.
358 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
360 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
362 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
363 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
364 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
366 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
368 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
369 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
370 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
371 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
372 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
373 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
374 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
375 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
376 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
377 * sysdeps/i386/i686/multiarch/bzero.S: New file.
378 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
379 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
380 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
381 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
382 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
383 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
384 * sysdeps/i386/i686/multiarch/memmove.S: New file.
385 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
386 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
387 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
388 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
389 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
390 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
391 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
392 * sysdeps/i386/i686/multiarch/memset.S: New file.
393 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
395 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
398 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
399 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
400 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
402 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
404 (__x86_64_data_cache_size): New.
405 (init_cacheinfo): Set __x86_64_data_cache_size.
407 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
408 on bit_Fast_Rep_String for Intel Core i7.
410 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
411 (index_Fast_Rep_String): Likewise.
412 (FEATURE_INDEX_1): Likewise.
413 (FEATURE_INDEX_MAX): Likewise.
414 (cpu_features): Add feature.
416 2010-01-12 Ulrich Drepper <drepper@redhat.com>
418 * conform/data/sys/select.h-data: Fix up for XPG7.
420 2010-01-12 Jakub Jelinek <jakub@redhat.com>
422 * posix/sys/wait.h: Don't define W* macros etc. if
423 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
425 2010-01-11 Ulrich Drepper <drepper@redhat.com>
427 * io/sys/stat.h: Declare fchmod for XPG7.
428 * conform/data/sys/stat.h-data: Fix up for XPG7.
430 * termios/termios.h: Define pid_t for XPG7.
432 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
433 * conform/data/tgmath.h-data: Likewise.
435 * conform/data/time.h-data: Fix POSIX tests.
437 * conform/data/wchar.h-data: Fix up XPG7 tests.
439 * include/features.h: Fix __USE_ISOC95 handling.
441 * conform/data/wordexp.h-data: Fix typo in last change.
443 * conform/data/unistd.h-data: Fix up older POSIX tests.
445 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
446 * posix/unistd.h: Likewise.
448 * posix/unistd.h: Include environments.h also for XPG6 and up.
449 Define intptr_t for XPG6 and up.
451 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
453 * conform/data/sys/types.h-data: Fix up for XPG7.
455 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
456 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
457 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
458 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
459 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
460 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
461 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
462 * sysdeps/unix/sysv/bits/stat.h: Likewise.
463 * sysdeps/mach/hurd/bits/stat.h: Likewise.
465 * bits/confname.h: Fix typo in last change.
467 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
469 2010-01-10 Ulrich Drepper <drepper@redhat.com>
471 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
472 and SA_RESETHAND now available in Base.
473 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
474 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
475 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
476 * conform/data/signal.h-data: Update for XPG7.
478 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
480 * string/strings.h: Don't declare obsolete functions for XPG7.
481 Declare ffs only for XSI.
482 * conform/data/strings.h-data: Update for XPG7.
484 2010-01-10 Jakub Jelinek <jakub@redhat.com>
487 * libio/stdio.h: Define va_list, off_t, and ssize_t.
489 * posix/glob.h: Define size_t.
491 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
493 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
495 2010-01-10 Ulrich Drepper <drepper@redhat.com>
497 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
500 * conform/data/stdio.h-data: Expect off_t and ssize_t.
502 2010-01-09 Ulrich Drepper <drepper@redhat.com>
504 * libio/stdio.h: Define va_list also for XPG7.
506 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
507 * conform/data/ctype.h-data: Likewise.
508 * conform/data/dirent.h-data: Likewise.
509 * conform/data/errno.h-data: Likewise.
510 * conform/data/fcntl.h-data: Likewise.
511 * conform/data/fmtmsg.h-data: Likewise.
512 * conform/data/fnmatch.h-data: Likewise.
513 * conform/data/ftw.h-data: Likewise.
514 * conform/data/glob.h-data: Likewise.
515 * conform/data/grp.h-data: Likewise.
516 * conform/data/iconv.h-data: Likewise.
517 * conform/data/langinfo.h-data: Likewise.
518 * conform/data/libgen.h-data: Likewise.
519 * conform/data/limits.h-data: Likewise.
520 * conform/data/locale.h-data: Likewise.
521 * conform/data/math.h-data: Likewise.
522 * conform/data/monetary.h-data: Likewise.
523 * conform/data/mqueue.h-data: Likewise.
524 * conform/data/ndbm.h-data: Likewise.
525 * conform/data/netdb.h-data: Likewise.
526 * conform/data/pthread.h-data: Likewise.
527 * conform/data/pwd.h-data: Likewise.
528 * conform/data/regex.h-data: Likewise.
529 * conform/data/sched.h-data: Likewise.
530 * conform/data/search.h-data: Likewise.
531 * conform/data/semaphore.h-data: Likewise.
532 * conform/data/setjmp.h-data: Likewise.
533 * conform/data/signal.h-data: Likewise.
534 * conform/data/spawn.h-data: Likewise.
535 * conform/data/stdio.h-data: Likewise.
536 * conform/data/stdlib.h-data: Likewise.
537 * conform/data/string.h-data: Likewise.
538 * conform/data/strings.h-data: Likewise.
539 * conform/data/sys/ipc.h-data: Likewise.
540 * conform/data/sys/msg.h-data: Likewise.
541 * conform/data/sys/resource.h-data: Likewise.
542 * conform/data/sys/sem.h-data: Likewise.
543 * conform/data/sys/shm.h-data: Likewise.
544 * conform/data/sys/socket.h-data: Likewise.
545 * conform/data/sys/stat.h-data: Likewise.
546 * conform/data/sys/time.h-data: Likewise.
547 * conform/data/sys/types.h-data: Likewise.
548 * conform/data/sys/uio.h-data: Likewise.
549 * conform/data/sys/wait.h-data: Likewise.
550 * conform/data/syslog.h-data: Likewise.
551 * conform/data/tar.h-data: Likewise.
552 * conform/data/termios.h-data: Likewise.
553 * conform/data/time.h-data: Likewise.
554 * conform/data/ulimit.h-data: Likewise.
555 * conform/data/unistd.h-data: Likewise.
556 * conform/data/utmpx.h-data: Likewise.
557 * conform/data/wchar.h-data: Likewise.
558 * conform/data/wctype.h-data: Likewise.
559 * conform/data/wordexp.h-data: Likewise.
561 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
562 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
563 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
564 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
565 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
566 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
567 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
568 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
569 * sysdeps/unix/sysv/bits/stat.h: Likewise.
570 * sysdeps/mach/hurd/bits/stat.h: Likewise.
572 * stdlib/stdlib.h: Define wait-related bits for XPG7.
573 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
574 Declare mkstemp and getsubopt for XPG7.
575 Declare posix_openpt for XPG6 XSI.
577 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
578 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
580 * string/string.h: Declare strdup for XPG7.
582 2010-01-08 Ulrich Drepper <drepper@redhat.com>
584 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
585 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
587 * dirent/dirent.h: Really fix feature selection.
589 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
591 * locale/C-address.c: Fix all users.
592 * locale/C-collate.c: Likewise.
593 * locale/C-ctype.c: Likewise.
594 * locale/C-identification.c: Likewise.
595 * locale/C-measurement.c: Likewise.
596 * locale/C-messages.c: Likewise.
597 * locale/C-monetary.c: Likewise.
598 * locale/C-name.c: Likewise.
599 * locale/C-numeric.c: Likewise.
600 * locale/C-paper.c: Likewise.
601 * locale/C-telephone.c: Likewise.
602 * locale/C-time.c: Likewise.
603 * locale/findlocale.c: Likewise.
604 * locale/global-locale.c: Likewise.
605 * locale/loadarchive.c: Likewise.
606 * locale/loadlocale.c: Likewise.
607 * locale/nl_langinfo_l.c: Likewise.
608 * locale/setlocale.c: Likewise.
609 * locale/xlocale.c: Likewise.
610 * locale/xlocale.h: Likewise.
611 * stdio-common/vfscanf.c: Likewise.
612 * stdlib/strfmon_l.c: Likewise.
613 * stdlib/strtod_l.c: Likewise.
614 * stdlib/strtol_l.c: Likewise.
615 * string/strcoll_l.c: Likewise.
616 * string/strxfrm_l.c: Likewise.
617 * time/alt_digit.c: Likewise.
618 * time/asctime.c: Likewise.
619 * time/era.c: Likewise.
620 * time/lc-time-cleanup.c: Likewise.
621 * time/strftime_l.c: Likewise.
622 * time/strptime_l.c: Likewise.
623 * wcsmbs/wcsmbsload.c: Likewise.
624 * wcsmbs/wcsmbsload.h: Likewise.
626 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
627 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
629 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
630 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
631 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
632 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
633 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
634 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
636 2010-01-07 Roland McGrath <roland@redhat.com>
638 * elf/elf.h (PN_XNUM): New macro.
640 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
643 2010-01-06 Ulrich Drepper <drepper@redhat.com>
645 * dirent/dirent.h: Fix typo in feature selection macro use.
647 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
650 * stdlib/tst-makecontext3.c: New file.
651 * stdlib/Makefile (tests): Add new test.
653 * stdlib/tst-setcontext.c (check_called): Fix a typo.
655 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
657 * configure.in: Enable multi-arch by default if the assembler
658 supports gnu_indirect_function symbol type and the architecture
661 2009-12-23 Ulrich Drepper <drepper@redhat.com>
663 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
666 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
668 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
669 MACH_PORT_NULL when id != cttyid.
671 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
673 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
674 __mach_port_deallocate on rootdevid.
676 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
678 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
679 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
680 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
681 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
683 2009-12-21 Ulrich Drepper <drepper@redhat.com>
686 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
687 Patch by Eric Blake <ebb9@byu.net>.
689 2009-12-15 Ulrich Drepper <drepper@redhat.com>
692 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
693 POLLWRBAND also for POSIX 2008.
694 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
695 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
697 * include/link.h (struct link_map): Move l_used into its own word.
698 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
700 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
703 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
705 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
706 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
707 check processor feature.
708 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
709 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
710 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
711 (index_SSE2): Likewise.
713 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
715 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
716 if __ASSEMBLER__ is defined.
717 (bit_SSSE3): New. Defined for __ASSEMBLER__.
718 (bit_SSE4_2): Likewise.
719 (index_SSSE3): Likewise.
720 (index_SSE4_2): Likewise.
721 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
722 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
723 check processor feature.
724 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
725 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
726 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
727 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
728 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
729 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
730 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
732 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
734 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
736 2009-12-01 Mike Frysinger <vapier@gentoo.org>
738 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
740 2009-12-11 Ulrich Drepper <drepper@redhat.com>
742 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
743 O_DSYNC to match 2.6.33+ kernels.
744 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
745 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
746 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
747 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
748 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
749 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
751 2009-12-10 Ulrich Drepper <drepper@redhat.com>
754 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
755 *herrnop before returning.
756 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
758 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
759 TRYAGAIN errors separately.
760 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
761 *name4_r after functions.
763 2009-12-09 Ulrich Drepper <drepper@redhat.com>
766 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
769 2009-11-05 Bruno Haible <bruno@clisp.org>
772 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
773 argv argument as non-NULL.
774 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
776 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
778 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
780 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
781 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
783 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
785 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
787 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
788 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
789 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
791 2009-11-30 Ulrich Drepper <drepper@redhat.com>
793 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
796 2009-11-26 Ulrich Drepper <drepper@redhat.com>
798 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
799 only used on truly ancient kernel if configuration requires a more
802 2009-11-24 Ulrich Drepper <drepper@redhat.com>
805 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
806 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
808 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
809 pass it on to __ptsname_internal.
810 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
811 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
812 All the code from __ptsname_r but take additional parameter. Use that
813 instead of pointer to local stat64 variable.
814 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
816 * include/stdlib.h: Declare __ptsname_internal.
818 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
820 * sysdeps/unix/sysv/linux/grantpt.c: New file.
821 * login/programs/pt_chown.c (main): Don't print message on errors
822 when doing real work.
824 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
827 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
828 irel relocations split out from...
829 (__libc_csu_init): ...here.
830 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
832 2009-11-23 Andreas Schwab <schwab@redhat.com>
834 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
835 for timestamps also if __USE_XOPEN2K8.
836 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
837 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
838 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
839 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
841 2009-11-22 Ulrich Drepper <drepper@redhat.com>
843 * nscd/connections.c (restart): Try harder to re-exec.
845 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
847 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
848 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
849 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
850 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
851 some placeholders. Redirect ntp_gettime to ntp_gettimex.
852 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
854 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
856 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
858 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
861 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
862 than software pipeline. Properly recover from shorter read.
864 2009-11-19 Ulrich Drepper <drepper@redhat.com>
867 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
868 initialized before using it.
869 (_IO_putwc_unlocked): Likewise.
872 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
873 in cast to not throw away const-ness of parameters.
874 (__CPU_EQUAL_S): Likewise.
875 (__CPU_OP_S): Likewise.
877 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
878 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
879 this gratuitous change and we have to keep compatibility.
880 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
881 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
882 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
883 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
884 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
885 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
887 2009-11-17 Ulrich Drepper <drepper@redhat.com>
889 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
890 of parameters of sync_file_range.
891 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
892 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
893 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
894 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
895 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
896 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
898 2009-11-16 Jakub Jelinek <jakub@redhat.com>
900 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
901 Implement using sync_file_range2 syscall if __NR_sync_file_range2
903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
906 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
908 * posix/bug-regex30.c: New file.
909 * posix/Makefile: Add rules to build and run bug-regex30.
910 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
911 character lead bytes when there is a range in a COMPLEX_BRACKET.
912 Reported by Oleg Bylatov.
914 2009-11-17 Ulrich Drepper <drepper@redhat.com>
917 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
918 * locale/tst-duplocale.c: New file.
919 * locale/Makefile (tests): Add tst-duplocale.
922 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
923 Patch by Bruno Haible <bruno@clisp.org>.
924 * locale/tst-locname.c: New file.
925 * locale/Makefile (tests): Add tst-locname.
928 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
929 constants from recent kernels.
930 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
931 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
932 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
933 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
934 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
935 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
937 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
940 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
943 2009-11-09 Mike Frysinger <vapier@gentoo.org>
945 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
946 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
947 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
949 2009-11-06 Mike Frysinger <vapier@gentoo.org>
951 * posix/bug-regex29.c: Include stdio.h.
953 2009-11-14 Ulrich Drepper <drepper@redhat.com>
956 * Versions.def: Define GLIBC_2.12 for libc.
957 * manual/errno.texi: Add ERFKILL entry.
958 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
960 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
961 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
963 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
964 F_GETOWN_EX definitions according to corrected kernel definitions.
965 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
966 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
967 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
968 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
969 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
970 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
972 2009-11-12 Ulrich Drepper <drepper@redhat.com>
974 * version.h: Bump for 2.12 development.
976 2009-11-10 Andreas Schwab <schwab@redhat.com>
978 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
980 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
981 map_v4v6_hostent running out of space.
983 2009-11-10 Ulrich Drepper <drepper@redhat.com>
985 * string/bits/string3.h (memset): If the second parameter is constant
986 and zero there is likely no transposition.
987 Patch by Caolan McNamara <caolanm@redhat.com.
989 2009-11-04 Philippe De Muyter <phdm@macqel.be>
991 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
992 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
994 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
996 * malloc/memusagestat.c (main): Fix spelling in an error message.
998 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1000 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1001 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1003 2009-11-03 Andreas Schwab <schwab@redhat.com>
1005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1008 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1010 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1011 relocate opd entry when resolving prelink conflicts.
1013 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1015 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1016 when -D_FILE_OFFSET_BITS=64.
1018 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1019 of last two arguments when -D_FILE_OFFSET_BITS=64.
1020 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1021 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1022 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1023 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1024 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1025 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1027 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1030 * sysdeps/generic/libgcc_s.h: New file.
1031 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1033 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1035 * malloc/hooks.c (free_check): Restore locking and call _int_free
1038 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1040 * version.h (VERSION): Bump for 2.11 release.
1041 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1043 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1045 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1047 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1049 * stdlib/tst-strtoll.c (tests): Likewise.
1052 * time/strftime_l.c (__strftime_internal): Allow %OC.
1054 * misc/mkostemps.c: New file.
1055 * misc/mkostemps64.c: New file.
1057 2009-10-30 Andreas Schwab <schwab@redhat.com>
1059 * locale/programs/locale-spec.c: Include <error.h> and
1062 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1064 2009-10-28 Roland McGrath <roland@redhat.com>
1066 * Makefile (dist-prepare): New target.
1067 (tag-for-dist): Target removed.
1068 (glibc-%.tar): Pattern rule removed.
1069 (%.tar): New pattern rule, does simple use of git archive.
1070 (dist-version): Remove variable definition.
1071 (dist): Just depend on that. Add .tar.xz dependency.
1072 If dist-version variable not set on command line, depend on
1073 dist-prepare, re-invoke with dist-version set via git describe.
1075 * Makerules (%.xz): New pattern rule.
1077 2009-10-28 Alan Modra <amodra@bigpond.net.au>
1079 * elf/ifuncdep2.c: Include ifunc-sel.h.
1081 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1082 * elf/ifuncmain1.c (global): Delete.
1083 * elf/ifuncmain1vis.c: Likewise.
1084 * elf/ifuncmain2.c: Likewise.
1085 * elf/ifuncmain5.c: Likewise.
1086 * elf/ifuncmod3.c: Likewise.
1087 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1088 (foo_ifunc): Use ifunc_one.
1089 * elf/ifuncmain7.c: Likewise.
1090 * elf/ifuncmod1.c: Include ifunc-sel.h.
1091 (global): Define protected var.
1092 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1093 * elf/ifuncmod5.c: Likewise.
1094 * sysdeps/generic/elf/ifunc-sel.h: New file.
1095 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1097 2009-07-30 Alan Modra <amodra@bigpond.net.au>
1099 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1100 (R_PPC_REL16*): Correct comments.
1101 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1102 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1103 R_PPC64_REL16_HA): Define.
1104 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1105 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1106 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1107 Delete unused "reloc" param.
1108 (__process_machine_rela): Handle R_PPC_IRELATIVE.
1109 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1110 Delete "reloc" param.
1111 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1113 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1114 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1117 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
1120 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1121 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1122 UDP_ENCAP_L2TPINUDP.
1125 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1126 parameter, specifying length of prefix.
1127 * stdio-common/tempname.c: Likewise.
1128 * include/stdio.h: Adjust prototypes.
1129 * libio/oldtmpfile.c: Adjust caller.
1130 * misc/mkdtemp.c: Likewise.
1131 * misc/mkostemp.c: Likewise.
1132 * misc/mkostemp64.c: Likewise.
1133 * misc/mkstemp.c: Likewise.
1134 * misc/mkstemp64.c: Likewise.
1135 * misc/mktemp.c: Likewise.
1136 * stdio-common/tempnam.c: Likewise.
1137 * stdio-common/tmpfile.c: Likewise.
1138 * stdio-common/tmpnam.c: Likewise.
1139 * stdio-common/tmpnam_r.c: Likewise.
1140 * misc/mkstemps.c: New file.
1141 * misc/mkstemps64.c: New file.
1142 * stdlib/stdlib.h: Add prototypes.
1143 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1144 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1146 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1148 * locale/iso-639.def: Add sml entry.
1151 * resolv/res_send.c (send_dg): Initialize resplen.
1154 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1155 definition to the kernel's.
1156 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1158 2009-08-18 Anders Johansson <ajohansson@novell.com>
1160 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1161 offsets and record sizes in assert()s and response sending.
1162 * nscd/grpcache.c: Likewise.
1163 * nscd/hstcache.c: Likewise.
1164 * nscd/initgrcache.c: Likewise.
1165 * nscd/pwdcache.c: Likewise.
1167 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1170 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1171 /etc/hosts does not exist set errnop and herrnop appropriately.
1172 Patch by Steve Langasek <vorlon@debian.org>.
1175 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1176 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1179 * login/utmp_file.c (TIMEOUT): Increase to 10.
1182 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1183 for file names in case the syscall is not available.
1184 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1185 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1186 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1187 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1188 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1189 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1190 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1191 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1192 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1193 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1194 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1195 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1196 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1197 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1198 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1199 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1200 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1203 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1204 creation filed, remove the request from the 'requests' list and signal
1205 the caller that the request is finished.
1208 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1209 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1212 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1213 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1216 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1217 overflows the int return type.
1220 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1221 have to compute maxsize_total, we have to update the variables, and
1222 the also_total handling must happen after the repair.
1225 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1226 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1228 2009-10-27 Andreas Schwab <schwab@redhat.com>
1230 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1231 errno is always set when returning unsuccessfully.
1233 2009-10-29 Andreas Schwab <schwab@redhat.com>
1235 * malloc/memusage.c (update_data): Fix index wraparound handling
1236 so that buffer_cnt is actually reset.
1238 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1241 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1242 of the directory we look at into the static buffer if there is one
1243 at the start of the loop.
1246 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1247 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1250 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1251 __ASSUME_F_GETOWN_EX.
1252 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1254 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1256 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1258 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1259 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1260 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1261 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1262 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1263 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1266 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1270 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1271 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1273 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1275 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1277 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1280 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1281 Reported by Ray Chason.
1283 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1285 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1287 * sysdeps/x86_64/multiarch/strchr.S: New file.
1288 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1289 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1291 2009-10-21 Andreas Schwab <schwab@redhat.com>
1293 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1295 2009-10-19 Andreas Schwab <schwab@redhat.com>
1297 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1298 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1299 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1300 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1301 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1302 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1303 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1304 __ieee751_expl to handle overflow.
1306 2009-10-14 David S. Miller <davem@davemloft.net>
1308 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1309 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1311 2009-10-13 Andreas Schwab <schwab@redhat.com>
1313 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1316 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1319 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1320 Patch in part by Steve Ward <planet36@gmail.com>.
1323 * stdlib/rand_r.c: Fix typo.
1325 * po/cs.po: Update from translation team.
1327 2009-10-06 Andreas Schwab <schwab@redhat.com>
1329 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1330 returning if RTLD_NOLOAD.
1332 2009-10-06 Roland McGrath <roland@redhat.com>
1334 * sysdeps/x86_64/multiarch/strstr-c.c
1335 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1337 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1338 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1340 * sysdeps/x86_64/multiarch/init-arch.h
1341 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1342 (HAS_CPU_FEATURE): New macro.
1343 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1344 * sysdeps/x86_64/multiarch/init-arch.c
1345 (__get_cpu_features): #undef it before definition.
1347 2009-10-05 Andreas Schwab <schwab@redhat.com>
1349 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1350 first_weekday to 1 and first_workday to 2.
1352 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1354 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1356 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1357 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1358 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1359 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1360 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1361 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1363 2009-09-28 Andreas Schwab <schwab@redhat.com>
1365 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1366 * stdio-common/vfprintf.c: Likewise.
1368 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1370 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1371 (mkdirat): Call __directory_name_split_at instead of
1372 __directory_name_split.
1374 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1376 * locale/programs/locale-spec.c (locale_special): If nothing matches
1377 fail with an appropriate message.
1379 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1381 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1384 2009-09-25 Andreas Schwab <schwab@redhat.com>
1386 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1387 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1389 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1391 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1393 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1395 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1396 character size elements in step data.
1398 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1400 * po/hu.po: Update from translation team.
1401 * po/vi.po: Likewise.
1403 2009-09-19 Roland McGrath <roland@redhat.com>
1405 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1407 2009-09-15 Roland McGrath <roland@redhat.com>
1409 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1410 * nptl/sysdeps/pthread/configure: Regenerated.
1411 * nptl/sysdeps/x86_64/configure: Regenerated.
1412 * sysdeps/unix/sysv/linux/configure: Regenerated.
1413 * sysdeps/x86_64/elf/configure: Regenerated.
1415 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1417 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1418 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1419 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1420 * configure: Regenerated.
1422 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1424 * posix/getconf.c (main): Handle -- on command line.
1426 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1428 * configure.in: Support binutils 2.100 and 3.0.
1430 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1432 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1433 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1434 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1435 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1437 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1439 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1440 unnamed_section_defined field.
1441 (collate_read): Test and set unnamed_section_defined.
1443 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1446 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1448 * configure.in: Support binutils 2.20.
1450 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1452 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1453 __strstr_ia32): Add attribute_hidden.
1455 2009-09-01 Andreas Schwab <schwab@redhat.com>
1457 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1458 parsing of group entry.
1460 2009-09-02 Andreas Schwab <schwab@redhat.com>
1462 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1463 external buffer. Always discard readahead in internal buffer.
1464 * libio/Makefile (tests): Add bug-wsetpos.
1465 * libio/bug-wsetpos.c: New file.
1467 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1469 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1470 Add attribute_hidden.
1471 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1472 __strcasestr_sse2): Likewise.
1473 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1474 (__fma_fma): Make static.
1475 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1476 (__fmaf_fma): Make static.
1478 2009-08-31 Andreas Schwab <schwab@redhat.com>
1480 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1481 reformulate in-buffer optimisation check to match code in
1482 _IO_new_file_seekoff.
1484 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1486 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1487 to srwi in 32-bit memcpy for power6.
1489 2009-09-01 Andreas Schwab <schwab@redhat.com>
1491 * include/stdio.h: Declare hidden proto for fflush.
1492 * libio/iofflush.c: Add hidden weak alias for fflush.
1494 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1496 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1497 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1499 2009-08-31 Andreas Schwab <schwab@redhat.com>
1501 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1503 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1506 * malloc/malloc.c: Add local assert definition to avoid problems with
1507 memory allocation in the real one.
1509 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1511 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1513 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1514 turn off SSSE3 on Atom.
1516 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1518 * stdlib/tst-strtol.c (tests): More tests.
1519 * stdlib/tst-strtoll.c (tests): Likewise.
1521 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1523 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1525 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1527 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1529 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1530 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1532 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1534 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1536 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1538 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1540 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1542 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1544 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1545 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1547 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1549 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1550 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1552 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1553 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1555 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1556 leftover YMM_SIZE definition.
1558 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1560 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1562 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1563 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1565 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1567 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1568 and SET_FLOAT_WORD definitions.
1570 2009-08-24 Roland McGrath <roland@redhat.com>
1572 * sysdeps/unix/syscall-template.S: New file.
1573 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1574 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1575 (compile-syscall): Pass mkdep and -g options as normal.
1576 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1577 (common-generated): Don't add them here.
1579 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1581 * math/s_fdim.c: In case of overflows set errno.
1582 * math/s_fdimf.c: Likewise.
1583 * math/s_fdiml.c: Likewise.
1585 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1586 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1587 are using the inline optimizations.
1589 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1590 (__signbitf): Likewise.
1592 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1594 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1596 * posix/Makefile (tests): Add bug-regex29.
1597 * posix/bug-regex29.c: New file.
1599 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1600 older POSIX versions are selected.
1602 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1604 * stdio-common/printf_fphex.c: Likewise.
1605 * stdio-common/tstdiomisc.c: Add more tests.
1607 * locale/locale.h: Include xlocale.h and the thread-local locale
1608 declarations for XPG7, not XPG6.
1610 2009-08-21 Andreas Schwab <schwab@redhat.com>
1612 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1613 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1616 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1617 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1619 2009-08-20 Roland McGrath <roland@redhat.com>
1621 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1622 Use l_addr instead of l_map_start (dli_fbase).
1623 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1624 address when there is no proximate symbol.
1625 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1628 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1630 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1632 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1634 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1635 Also handle SIGINT. In that case only do the cleanup and then
1636 re-raise the signal.
1637 (main): Install handler for SIGINT.
1639 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1641 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1644 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1646 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1647 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1649 (tests): Add tst-audit6 tst-audit7.
1650 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1651 tst-auditmod7a tst-auditmod7b.
1652 ($(objpfx)tst-audit6): New.
1653 ($(objpfx)tst-audit6.out): Likewise.
1654 ($(objpfx)tst-audit7): Likewise.
1655 ($(objpfx)tst-audit7.out): Likewise.
1656 (tst-audit6-ENV): Likewise.
1657 (tst-audit7-ENV): Likewise.
1658 (CFLAGS-tst-auditmod6b.c): Likewise.
1659 (CFLAGS-tst-auditmod6c.c): Likewise.
1660 (CFLAGS-tst-auditmod7b.c): Likewise.
1661 * elf/tst-audit6.c: New file.
1662 * elf/tst-audit7.c: New file.
1663 * elf/tst-auditmod6a.c: New file.
1664 * elf/tst-auditmod6b.c: New file.
1665 * elf/tst-auditmod6c.c: New file.
1666 * elf/tst-auditmod7a.c: New file.
1667 * elf/tst-auditmod7b.c: New file.
1668 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1669 saving and restoring SSE/AVX registers to ...
1670 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1672 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1674 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1675 only if SHARED is defined.
1676 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1678 2009-08-03 Jim Meyering <meyering@redhat.com>
1680 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1682 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1684 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1685 section as the other functions for this architecture.
1686 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1688 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1690 * sysdeps/x86_64/strcmp.S: Add support to compile with
1691 USE_SSSE3. In this case palignr is used.
1692 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1693 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1694 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1695 Add strcmp-ssse3 and strncmp-ssse3.
1696 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1697 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1699 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1700 warning through fake initialization.
1702 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1704 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1706 2009-08-07 Andreas Schwab <schwab@redhat.com>
1708 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1711 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1713 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1714 EBX from EAX = 1. Handle EAX = 11.
1716 2009-08-07 Andreas Schwab <schwab@redhat.com>
1718 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1721 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1723 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1724 hidden IFUNC functions.
1725 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1727 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1729 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1730 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1732 (CFLAGS-strcspn-c.c): Define.
1733 (CFLAGS-strpbrk-c.c): Define.
1734 (CFLAGS-strspn-c.c): Define.
1735 (CFLAGS-strstr.c): Define.
1736 (CFLAGS-strcasestr.c): Define.
1737 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1738 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1739 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1740 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1741 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1742 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1743 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1744 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1745 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1746 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1747 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1748 -16L instead of 0xfffffffffffffff0L.
1749 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1751 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1753 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1755 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1757 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1758 another rewrite. Much smaller and faster.
1759 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1761 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1762 ss_flags from the correct location.
1764 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1766 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1767 * sysdeps/i386/i686/cacheinfo.c: New file.
1768 * sysdeps/i386/i686/multiarch/Makefile: New file.
1769 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1770 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1771 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1772 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1773 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1774 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1775 (__cpuid_count): New. Provide the default.
1776 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1777 (__x86_64_preferred_memory_instruction): Define only if
1778 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1779 (intel_check_word): Use __cpuid.
1780 (handle_intel): Likewise.
1781 (handle_amd): Likewise.
1782 (__cache_sysconf): Likewise.
1783 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1784 (__cache_sysconf): Likewise.
1785 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1786 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1787 (get_common_indeces): Use __cpuid.
1788 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1789 if ENABLE_SSSE3_ON_ATOM is not defined.
1790 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1791 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1792 popcnt instead of popcntq.
1794 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1796 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1798 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1800 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1801 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1802 which always causes a compile error.
1804 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1806 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1808 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1809 which always causes a compile error.
1811 * debug/Makefile (tests): Add tst-longjmp_chk2.
1812 * debug/tst-longjmp_chk2.c: New file.
1814 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1815 Remove incorrect use of BP_SYM.
1816 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1817 here now since it is more complex than just a simple check.
1819 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1820 we make no more progress.
1822 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1824 * math/s_fma.c: Don't define alias if __fma is a macro.
1825 * math/s_fmaf.c: Likewise.
1826 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1827 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1828 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1830 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1831 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1833 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1835 * include/libc-symbols.h (libm_ifunc): Define.
1836 * sysdeps/x86_64/multiarch/Versions: New file.
1838 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1840 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1842 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1844 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1846 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1847 call that registers used in calling conventions need to be preserved.
1848 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1849 to preserve register content if necessary.
1850 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1851 (_dl_x86_64_restore_sse): New function.
1852 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1853 is allowed to modify xmm/ymm registers.
1855 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1856 application's perspective.
1857 * stdio-common/scanf17.c: Likewise.
1859 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1861 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1863 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1865 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1866 two steps to catch bugs.
1868 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1870 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1871 determines which files are used in runtime lookups and only checks
1873 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1875 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1876 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1877 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1880 * elf/dl-open.c: Move _dl_scope_free to...
1881 * elf/dl-scope.c: ...here. New file.
1882 * elf/Makefile (dl-routines): Add scope.
1884 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1885 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1887 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1888 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1889 all the places we handled RES_USE_EDNS0 only before.
1890 Patch by Adam Tkac <atkac@redhat.com>.
1892 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1894 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1895 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1896 Update size when reallocating.
1898 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1900 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1901 functions used in ld.so modify xmm/ymm registers.
1902 * sysdeps/x86_64/Makefile: Hook new test up.
1903 * sysdeps/x86_64/rtld-memchr.c: New file.
1904 * sysdeps/x86_64/rtld-memcmp.c: New file.
1905 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1906 * sysdeps/x86_64/rtld-strchr.S: New file.
1907 * sysdeps/x86_64/rtld-strlen.S: New file.
1908 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1909 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1911 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1913 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1915 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1923 (next_8_bytes): Likewise.
1924 (Byte0): Remove commented out codes.
1925 (unaligned_table): Align jump table at 8 bytes.
1926 Add _sse4_2 to all labels. Always include "../strcmp.S".
1927 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1928 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1929 * sysdeps/x86_64/strncmp.S: New file.
1931 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1934 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1935 kernels, dropped when eventfd2 support was added.
1936 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1937 kernels, dropped when signalfd4 support was added.
1938 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1942 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1945 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1947 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1949 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1950 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1953 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1954 callback we must touch the status to avoid using stale value.
1956 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1959 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1961 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1962 /lib/modules/* headers anymore. We have sane headers in the standard
1965 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1967 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1968 "etf3enh" and "highgprs" added.
1969 (_dl_s390_platforms): "z10" added.
1970 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1971 Increased for the new entries.
1972 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1973 HWCAP_S390_HIGH_GPRS added.
1975 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1976 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1977 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1978 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1979 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1981 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1983 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1984 avoid additional cpuid instructions. Most of the information is
1987 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1989 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1991 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1992 SSSE3 bit for Atoms.
1993 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1996 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1997 structure before copying it to avoid warning.
1998 * posix/tst-rfc3484-2.c (do_test): Likewise.
1999 * posix/tst-rfc3484-3.c (do_test): Likewise.
2002 * include/unistd.h: Make header file suitable for C++ test cases.
2003 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2005 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2006 stack alignment in the exit code.
2008 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2009 potentially be zero.
2011 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2012 unique symbol definition.
2013 Patch by Jakub Jelinek.
2014 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2015 make sure the object with the definition cannot be unloaded. Adjust
2017 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2018 the unique symbol hash table should not be const.
2020 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2022 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2023 unnecesary variables. Comment fixes.
2025 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2027 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2028 Use NONASCII_CASE information provided by the locale to determine
2029 whether optimized string load function can be used. Minor cleanups.
2031 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2033 * string/strcasestr.c (STRCASESTR): New macro.
2034 (__strcasestr): Renamed to ..
2035 (STRCASESTR): ...this.
2036 * string/strstr.c (STRSTR): New macro.
2037 (strstr): Renamed to ..
2039 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2040 strstr-c strcasestr-c
2041 (CFLAGS-strstr.c): New.
2042 (CFLAGS-strcasestr.c): Likewise.
2043 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2044 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2045 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2046 * sysdeps/x86_64/multiarch/strstr.c: New file.
2048 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2050 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2051 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2052 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2053 _NL_CTYPE_NONASCII_CASE.
2054 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2056 (ctype_finish): Check whether there are any 8-bit characters outside
2057 the range ASCII has or whether the mapping isn't the same as for
2058 ASCII (±0x20). Set nonascii_case appropriately.
2059 (ctype_output): Add output handler for nonascii_case.
2061 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2063 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2064 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2066 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2069 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2070 0xffff in the EDNS0 record.
2072 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2074 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2075 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2076 is written before the list head update.
2077 Patch by Andreas Schwab <aschwab@redhat.com>.
2079 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2080 Jakub Jelinek <jakub@redhat.com>
2082 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2083 corruption thread-safe.
2085 2009-07-13 Jakub Jelinek <jakub@redhat.com>
2087 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2088 overrides atomic_compare_and_exchange_val_rel, define to
2089 atomic_compare_and_exchange_val_rel by default, otherwise default
2090 to catomic_compare_and_exchange_val_acq.
2091 (catomic_compare_and_exchange_bool_rel): If arch overrides
2092 atomic_compare_and_exchange_bool_rel, define to
2093 atomic_compare_and_exchange_bool_rel by default.
2094 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2095 Use catomic_compare_and_exchange_val_rel instead of
2096 catomic_compare_and_exchange_val_acq.
2098 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2100 * sysdeps/generic/ldsodefs.h: Add prototype for
2101 _dl_higher_prime_number.
2102 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2104 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2105 restoring of ymm registers a bit.
2107 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
2109 * sysdeps/x86_64/memcmp.S: New file.
2111 2009-07-15 Ulrich Drepper <drepper@redhat.com>
2113 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2114 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
2115 pointers in writable memory.
2117 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2119 * config.h.in: Add HAVE_AVX_SUPPORT entry.
2120 * config.make.in: Add config-cflags-avx entry.
2121 * configure.in: Substitute libc_cv_cc_avx.
2122 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2123 * elf/tst-audit4.c: New file.
2124 * elf/tst-audit5.c: New file.
2125 * elf/tst-auditmod4a.c: New file.
2126 * elf/tst-auditmod4b.c: New file.
2127 * elf/tst-auditmod5a.c: New file.
2128 * elf/tst-auditmod5b.c: New file.
2129 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2131 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2132 (La_x86_64_vector): Likewise.
2133 (La_x86_64_regs): Append lr_vector.
2134 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2135 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2136 saving and restoring SSE registers to ...
2137 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2138 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2140 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2141 La_x86_64_regs. Allocate extra space and jump to memory at
2142 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2143 (save_and_restore_vector_sse): New.
2144 (save_and_restore_vector_avx): Likewise.
2145 (check_avx): Likewise.
2146 (save_and_restore_vector): Likewise.
2147 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2149 * sysdeps/x86_64/link-defines.sym: New file.
2151 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2153 * elf/do-lookup.h: Removed after folding content into...
2154 * elf/dl-lookup.c: ...here.
2156 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2158 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2160 * configure.in: Check for gnu_unique_symbol symbol type.
2161 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2162 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2163 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2164 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2166 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2167 unique symbol table.
2168 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2169 for first namespace.
2170 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2171 unique symbol hash table.
2172 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2173 * elf/tst-unique1.c: New file.
2174 * elf/tst-unique1mod1.c: New file.
2175 * elf/tst-unique1mod2.c: New file.
2176 * elf/tst-unique2.c: New file.
2177 * elf/tst-unique2mod1.c: New file.
2178 * elf/tst-unique2mod2.c: New file.
2180 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2182 * elf/elf.h (STB_GNU_UNIQUE): Define.
2184 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2186 * include/inline-hashtab.h: ...here.
2187 (htab_expand): Adjust for renamed function. Correct memory handling.
2189 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2191 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2193 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2195 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2196 (PPC_FEATURE_HAS_VSX): Likewise.
2198 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2200 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2201 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2203 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2204 aligned to 16 byte boundaries.
2205 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2206 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2207 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2209 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2211 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2212 * config.make.in (config-cflags-sse4): New variable.
2213 * configure.in: Substitute libc_cv_cc_sse4.
2214 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2216 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2217 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2218 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2219 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2220 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2221 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2222 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2223 * sysdeps/x86_64/multiarch/strspn.S: New file.
2225 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2227 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2228 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2229 (tests): Add tst-audit3 for x86_64.
2230 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2231 ($(objpfx)tst-audit3): Define.
2232 ($(objpfx)tst-audit3.out): Define.
2233 (tst-audit3-ENV): Define.
2234 * elf/tst-audit3.c: New file.
2235 * elf/tst-auditmod3a.c: New file.
2236 * elf/tst-auditmod3b.c: New file.
2237 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2240 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2241 (__stpncpy): Renamed to ...
2243 (stpncpy): Create alias only if STPNCPY is not defined.
2244 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2246 (strncpy): Renamed to ...
2248 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2249 stpncpy-c strncpy-c for string.
2250 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2251 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2252 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2253 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2254 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2255 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2257 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2259 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2260 adding to fast bin list.
2262 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2264 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2265 inet_makeaddr. This worked only with class-based networks.
2266 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2269 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2270 recognize all types.
2271 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2272 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2273 be in host byte order.
2275 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2277 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2278 (MODEL_OFFSET): Define.
2279 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2281 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2282 out common code into new function get_common_indeces. Determine
2283 extended family and model for Intel processors.
2285 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2287 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2288 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2290 * resolv/res_send.c (reopen): New function. Broken out of...
2291 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2292 fallback mechanism. If single-request fails switch to
2293 single-request-reopen mode which opens a new socket for the second
2296 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2298 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2301 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2303 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2304 for saved registers.
2305 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2306 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2307 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2309 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2311 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2313 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2315 * po/id.po: Update from translation team.
2317 * po/bg.po: Update from translation team.
2319 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2321 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2323 (strncmp): Renamed to STRNCMP.
2324 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2325 strncmp-c for string.
2326 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2327 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2328 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2329 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2331 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2333 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2334 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2335 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2336 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2337 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2339 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2340 ifuncmain7static, and ifuncmain7picstatic.
2341 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2342 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2343 $(objpfx)ifuncmain7pie.out.
2344 (modules-names): Add ifuncmod5 ifuncmod6
2345 (ifuncmod5.so-no-z-defs): Define.
2346 (ifuncmod6.so-no-z-defs): Define.
2347 (CFLAGS-ifuncmain5pic.c): Define.
2348 (CFLAGS-ifuncmain5picstatic.c): Define.
2349 (CFLAGS-ifuncmain5staticpic.c): Define.
2350 (CFLAGS-ifuncdep5pic.c): Define.
2351 (CFLAGS-ifuncmain7pic.c): Define.
2352 (CFLAGS-ifuncmain7picstatic.c): Define.
2353 (CFLAGS-ifuncmain1staticpie.c): Define.
2354 (CFLAGS-ifuncmain5pie.c): Define.
2355 (CFLAGS-ifuncmain6pie.c): Define.
2356 (CFLAGS-ifuncmain7pie.c): Define.
2357 ($(objpfx)ifuncmain1staticpie.out): Define.
2358 ($(objpfx)ifuncmain1staticpie): Define.
2359 ($(objpfx)ifuncmain5pie.out): Define.
2360 ($(objpfx)ifuncmain5pie): Define.
2361 ($(objpfx)ifuncmain6pie.out): Define.
2362 ($(objpfx)ifuncmain6pie): Define.
2363 ($(objpfx)ifuncmain5): Define.
2364 ($(objpfx)ifuncmain5pic): Define.
2365 ($(objpfx)ifuncmain5static): Define.
2366 ($(objpfx)ifuncmain5staticpic): Define.
2367 ($(objpfx)ifuncmain5picstatic): Define.
2368 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2369 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2371 * elf/b/elf/ifuncmain1staticpie.c: New file.
2372 * elf/ifuncdep5.c: New file.
2373 * elf/ifuncdep5pic.c: New file.
2374 * elf/ifuncmain5.c: New file.
2375 * elf/ifuncmain5pic.c: New file.
2376 * elf/ifuncmain5picstatic.c: New file.
2377 * elf/ifuncmain5pie.c: New file.
2378 * elf/ifuncmain5static.c: New file.
2379 * elf/ifuncmain5staticpic.c: New file.
2380 * elf/ifuncmain6pie.c: New file.
2381 * elf/ifuncmain7.c: New file.
2382 * elf/ifuncmain7pic.c: New file.
2383 * elf/ifuncmain7picstatic.c: New file.
2384 * elf/ifuncmain7pie.c: New file.
2385 * elf/ifuncmain7static.c: New file.
2386 * elf/ifuncmod5.c: New file.
2387 * elf/ifuncmod6.c: New file.
2389 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2392 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2393 (nss_endgrent): New variable.
2394 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2395 fields. Change type of files to bool and adjust all users.
2396 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2397 (internal_endgrent): Call nss_endgrent if necessary.
2398 (add_group): New function. Broken out of...
2399 (check_and_add_group): ...here.
2400 (getgrent_next_nss): Remove test that any callback is available.
2401 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2402 callback. If there is no blacklist we can trust the results returned
2403 by the initgroups_dyn callback. In case there is a callback and we
2404 find a group entry for the group ID but it doesn't contain the
2405 correct member, switch to the slow mode and use getgrent_r.
2406 (internal_getgrent_r): When we see a +: entry, determine whether
2407 there is any callback and which we can use the initgroups_dyn
2410 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2412 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2413 (_int_free): Likewise.
2415 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2417 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2418 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2419 and ARPHRD_IEEE802154_PHY.
2421 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2422 relative to generic Linux version.
2424 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2426 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2427 ($(objpfx)ifuncmain1vispie): Likewise.
2429 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2431 * login/Makefile: Build pt_chown as PIE.
2433 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2435 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2437 * elf/sln.c (usage): Likewise.
2438 * malloc/memusage.sh (do_help): Likewise.
2439 * nss/getent.c (more_help): Likewise.
2440 * posix/getconf.c (main): Likewise.
2441 * sunrpc/rpcinfo.c (usage): Likewise.
2442 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2444 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2446 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2448 * login/Makefile: If necessary link pt_chown with -lcap.
2449 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2450 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2452 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2454 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2456 * string/test-memchr.c (do_random_tests): Test very large lengths
2459 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2461 * Makeconfig (+link-pie): Define.
2462 (+prectorS): Define.
2463 (+postctorS): Define.
2464 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2465 * nscd/Makefile ($(objpfx)nscd): Likewise.
2467 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2470 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2472 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2474 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2476 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2478 * sysdeps/unix/grantpt.c: ...here.
2480 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2482 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2483 chmod if it is necessary.
2486 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2487 when the slave device is in devpts or devfs.
2490 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2493 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2494 of nd_opt_home_agent_info_preference to uint16_t.
2495 Patch by Arnaud Ebalard <arno@natisbad.org>.
2498 * nss/getent.c: Add support for printing gshadow data.
2501 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2502 not just the currently used one and those which follow.
2503 Patch by Joe Landers <jlanders@vmware.com>.
2506 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2507 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2508 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2511 * stdlib/abort.c: Define variable __abort_msg.
2512 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2513 * include/stdlib.h: Declare __abort_msg.
2514 * assert/assert-perr.c: Don't free buffer for message immediately.
2515 Store atomically in __abort_msg and free old buffer if necessary.
2516 * assert/assert.c: Likewise.
2517 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2518 store pointer in __abort_msg, and possibly free old string.
2519 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2521 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2524 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2525 handle leap seconds if they are available.
2526 Patch by Akinori Hattori <hattya@gentoo.org>.
2528 * timezone/tzselect.ksh: Update from tzcode2009i.
2529 * timezone/zdump.c: Likewise.
2530 * timezone/zic.c: Likewise.
2532 * timezone/africa: Update from tzdata2009i.
2533 * timezone/antarctica: Likewise.
2534 * timezone/asia: Likewise.
2535 * timezone/australasia: Likewise.
2536 * timezone/backward: Likewise.
2537 * timezone/etcetera: Likewise.
2538 * timezone/europe: Likewise.
2539 * timezone/factory: Likewise.
2540 * timezone/iso3166.tab: Likewise.
2541 * timezone/leapseconds: Likewise.
2542 * timezone/northamerica: Likewise.
2543 * timezone/pacificnew: Likewise.
2544 * timezone/solar87: Likewise.
2545 * timezone/solar88: Likewise.
2546 * timezone/solar89: Likewise.
2547 * timezone/southamerica: Likewise.
2548 * timezone/systemv: Likewise.
2549 * timezone/yearistype: Likewise.
2550 * timezone/zone.tab: Likewise.
2552 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2554 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2555 STT_GNU_IFUNC symbol or in 8 into type_class.
2557 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2558 instead of Elf64_Addr.
2560 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2562 * po/sv.po: Update from translation team.
2565 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2566 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2567 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2570 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2572 * Versions.def: Add GLIBC_2.11 for libpthread.
2574 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2576 * resolv/res_send.c (send_dg): Remember we switched to
2577 single-request mode.
2579 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2581 * dlfcn/dlfcn.h: Remove comma at end of enum.
2582 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2584 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2585 parsing mode string.
2587 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2589 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2591 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2593 * sysdeps/x86_64/multiarch/strlen.S: New file.
2594 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2595 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2596 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2599 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2602 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2604 * sysdeps/x86_64/strlen.S: Minor optimizations.
2606 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2608 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2609 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2610 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2611 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2612 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2613 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2614 ifuncmain3.c, ifuncmod3.c,.
2615 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2616 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2617 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2618 ifuncmain4picstatic.
2619 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2620 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2621 ifuncmain3, ifuncmain4.
2622 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2623 $(objpfx)ifuncmain1vispie.out.
2624 (modules-names): Add ifuncmod1 ifuncmod3.
2625 (generated): Add ifuncmain1pie ifuncmain1pie.out
2626 ifuncmain1vispie ifuncmain1vispie.out.
2627 Define rules to build and run the tests.
2628 * elf/ifuncdep1.c: New file.
2629 * elf/ifuncdep1pic.c: New file.
2630 * elf/ifuncdep2.c: New file.
2631 * elf/ifuncdep2pic.c: New file.
2632 * elf/ifuncmain1.c: New file.
2633 * elf/ifuncmain1pic.c: New file.
2634 * elf/ifuncmain1picstatic.c: New file.
2635 * elf/ifuncmain1pie.c: New file.
2636 * elf/ifuncmain1static.c: New file.
2637 * elf/ifuncmain1staticpic.c: New file.
2638 * elf/ifuncmain1vis.c: New file..
2639 * elf/ifuncmain1vispic.c: New file..
2640 * elf/ifuncmain1vispie.c: New file.
2641 * elf/ifuncmain2.c: New file.
2642 * elf/ifuncmain2pic.c: New file.
2643 * elf/ifuncmain2picstatic.c: New file.
2644 * elf/ifuncmain2static.c: New file.
2645 * elf/ifuncmain3.c: New file.
2646 * elf/ifuncmain4.c: New file.
2647 * elf/ifuncmain4picstatic.c: New file.
2648 * elf/ifuncmain4static.c: New file.
2649 * elf/ifuncmod1.c: New file.
2650 * elf/ifuncmod3.c: New file.
2652 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2654 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2656 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2659 * posix/Makefile (routines): Add execvpe.
2660 * posix/Versions: Export execvpe for GLIBC_2.11.
2661 * posix/execvp.c: Now only a wrapper. Move code to...
2662 * posix/execvpe.c: ...here. New file.
2663 * posix/unistd.h: Declare execvpe.
2665 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2667 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2668 for STT_GNU_IFUNC handling for efficiency.
2669 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2671 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2673 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2675 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2677 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2680 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2682 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2684 (__rela_iplt_start): New declaration.
2685 (__rela_iplt_end): Likewise.
2686 (__rel_iplt_start): Likewise.
2687 (__rel_iplt_end): Likewise.
2688 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2689 * elf/elf.h (R_386_IRELATIVE): New macro.
2690 (R_X86_64_IRELATIVE): New macro.
2691 (R_386_NUM): Updated.
2692 (R_X86_64_NUM): Likewise.
2693 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2694 (libc_ifunc_hidden_def): New macro.
2695 * sysdeps/generic/dl-irel.h: New file.
2696 * sysdeps/i386/dl-irel.h: New file.
2697 * sysdeps/x86_64/dl-irel.h: New file.
2698 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2699 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2700 Handle R_386_IRELATIVE.
2701 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2702 (elf_machine_lazy_rela): Likewise.
2703 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2705 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2707 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2709 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2710 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2711 are no differences. If an architecture has bits in CPUID index 1
2712 meaning different things the values for the COMMON_CPUID_INDEX_1
2713 index must not be set.
2714 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2715 (HAS_POPCOUNT): ...this. New macro.
2716 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2717 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2718 to set the value for Intel and AMD architectures.
2719 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2720 INTEL_CPUID_INDEX_1.
2721 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2724 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2726 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2729 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2731 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2732 (__expm1l): Set errno to ERANGE on overflow.
2733 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2734 (__tanl): Set errno to EDOM for ±Inf.
2735 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2736 (__cosl): Set errno to EDOM for ±Inf.
2737 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2738 (__sinl): Set errno to EDOM for ±Inf.
2740 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2742 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2743 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2744 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2746 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2748 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2750 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2752 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2754 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2755 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2756 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2757 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2759 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2760 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2761 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2763 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2764 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2766 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2768 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2769 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2770 is, either do nothing at all if __ASSUME_ACCEPT4, or
2771 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2772 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2773 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2775 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2776 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2777 internal_accept4 in socket directory.
2779 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2781 * sysdeps/ia64/configure.in: New file.
2783 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2786 * sysdeps/ia64/memchr.S: Use speculative load.
2788 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2789 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2792 * sysdeps/i386/__longjmp.S: Add .text.
2793 * sysdeps/x86_64/__longjmp.S: Likewise.
2795 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2797 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2798 __ASSUME_ACCEPT4 for IA-64.
2800 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2802 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2804 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2805 (SOCKOP_accept4): Define.
2807 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2809 Sun approved the change of the license.
2810 * sunrpc/auth_des.c: Replace license text.
2811 * sunrpc/auth_none.c: Likewise.
2812 * sunrpc/auth_unix.c: Likewise.
2813 * sunrpc/authdes_prot.c: Likewise.
2814 * sunrpc/authuxprot.c: Likewise.
2815 * sunrpc/bindrsvprt.c: Likewise.
2816 * sunrpc/clnt_gen.c: Likewise.
2817 * sunrpc/clnt_perr.c: Likewise.
2818 * sunrpc/clnt_raw.c: Likewise.
2819 * sunrpc/clnt_simp.c: Likewise.
2820 * sunrpc/clnt_tcp.c: Likewise.
2821 * sunrpc/clnt_udp.c: Likewise.
2822 * sunrpc/clnt_unix.c: Likewise.
2823 * sunrpc/des_crypt.c: Likewise.
2824 * sunrpc/des_soft.c: Likewise.
2825 * sunrpc/get_myaddr.c: Likewise.
2826 * sunrpc/getrpcport.c: Likewise.
2827 * sunrpc/key_call.c: Likewise.
2828 * sunrpc/key_prot.c: Likewise.
2829 * sunrpc/openchild.c: Likewise.
2830 * sunrpc/pm_getmaps.c: Likewise.
2831 * sunrpc/pm_getport.c: Likewise.
2832 * sunrpc/pmap_clnt.c: Likewise.
2833 * sunrpc/pmap_prot.c: Likewise.
2834 * sunrpc/pmap_prot2.c: Likewise.
2835 * sunrpc/pmap_rmt.c: Likewise.
2836 * sunrpc/rpc/auth.h: Likewise.
2837 * sunrpc/rpc/auth_unix.h: Likewise.
2838 * sunrpc/rpc/clnt.h: Likewise.
2839 * sunrpc/rpc/des_crypt.h: Likewise.
2840 * sunrpc/rpc/key_prot.h: Likewise.
2841 * sunrpc/rpc/netdb.h: Likewise.
2842 * sunrpc/rpc/pmap_clnt.h: Likewise.
2843 * sunrpc/rpc/pmap_prot.h: Likewise.
2844 * sunrpc/rpc/pmap_rmt.h: Likewise.
2845 * sunrpc/rpc/rpc.h: Likewise.
2846 * sunrpc/rpc/rpc_des.h: Likewise.
2847 * sunrpc/rpc/rpc_msg.h: Likewise.
2848 * sunrpc/rpc/svc.h: Likewise.
2849 * sunrpc/rpc/svc_auth.h: Likewise.
2850 * sunrpc/rpc/types.h: Likewise.
2851 * sunrpc/rpc/xdr.h: Likewise.
2852 * sunrpc/rpc_clntout.c: Likewise.
2853 * sunrpc/rpc_cmsg.c: Likewise.
2854 * sunrpc/rpc_common.c: Likewise.
2855 * sunrpc/rpc_cout.c: Likewise.
2856 * sunrpc/rpc_dtable.c: Likewise.
2857 * sunrpc/rpc_hout.c: Likewise.
2858 * sunrpc/rpc_main.c: Likewise.
2859 * sunrpc/rpc_parse.c: Likewise.
2860 * sunrpc/rpc_parse.h: Likewise.
2861 * sunrpc/rpc_prot.c: Likewise.
2862 * sunrpc/rpc_sample.c: Likewise.
2863 * sunrpc/rpc_scan.c: Likewise.
2864 * sunrpc/rpc_scan.h: Likewise.
2865 * sunrpc/rpc_svcout.c: Likewise.
2866 * sunrpc/rpc_tblout.c: Likewise.
2867 * sunrpc/rpc_util.c: Likewise.
2868 * sunrpc/rpc_util.h: Likewise.
2869 * sunrpc/rpcinfo.c: Likewise.
2870 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2871 * sunrpc/rpcsvc/key_prot.x: Likewise.
2872 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2873 * sunrpc/rpcsvc/mount.x: Likewise.
2874 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2875 * sunrpc/rpcsvc/rex.x: Likewise.
2876 * sunrpc/rpcsvc/rstat.x: Likewise.
2877 * sunrpc/rpcsvc/rusers.x: Likewise.
2878 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2879 * sunrpc/rpcsvc/spray.x: Likewise.
2880 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2881 * sunrpc/rtime.c: Likewise.
2882 * sunrpc/svc.c: Likewise.
2883 * sunrpc/svc_auth.c: Likewise.
2884 * sunrpc/svc_authux.c: Likewise.
2885 * sunrpc/svc_raw.c: Likewise.
2886 * sunrpc/svc_run.c: Likewise.
2887 * sunrpc/svc_simple.c: Likewise.
2888 * sunrpc/svc_tcp.c: Likewise.
2889 * sunrpc/svc_udp.c: Likewise.
2890 * sunrpc/svc_unix.c: Likewise.
2891 * sunrpc/svcauth_des.c: Likewise.
2892 * sunrpc/xcrypt.c: Likewise.
2893 * sunrpc/xdr.c: Likewise.
2894 * sunrpc/xdr_array.c: Likewise.
2895 * sunrpc/xdr_float.c: Likewise.
2896 * sunrpc/xdr_mem.c: Likewise.
2897 * sunrpc/xdr_rec.c: Likewise.
2898 * sunrpc/xdr_ref.c: Likewise.
2899 * sunrpc/xdr_sizeof.c: Likewise.
2900 * sunrpc/xdr_stdio.c: Likewise.
2902 * po/da.po: Update from translation team.
2904 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2906 * sysdeps/sh/____longjmp_chk.S: New file.
2907 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2908 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2910 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2911 Ulrich Drepper <drepper@redhat.com>
2913 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2914 (__nscd_cache_search): Assume each entry in the
2915 hash chain needs one hashentry and half of datahead. Use
2916 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2918 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2920 * posix/sys/wait.h: Fix typos. Pretty printing.
2921 * stdlib/stdlib.h: Likewise. Correct comments.
2924 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2926 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2929 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2931 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2932 Use it if we absolutely cannot reach any more correct list elements
2933 because that many do not fit into the currently mapped database.
2935 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2937 * nscd/nscd_helper.c: Include stddef.h.
2938 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2939 in a couple of places. Return NULL if trail is not less than
2940 datasize, don't consider dataheads with length smaller than
2941 offsetof (struct datahead, data) + datalen.
2942 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2943 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2944 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2945 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2946 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2947 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2948 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2950 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2952 (fallocate64): ... to this.
2953 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2955 (fallocate64): ... to this.
2956 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2957 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2958 fallocate64@@GLIBC_2.10.
2959 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2960 fallocate64@@GLIBC_2.11.
2961 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2963 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2964 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2966 * nscd/selinux.c (nscd_avc_destroy): Removed.
2967 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2968 * nscd/nscd.c (termination_handler): Don't call
2971 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2973 * include/atomic.h: Formatting.
2974 (catomic_compare_and_exchange_val_acq): Don't define if already
2975 defined by bits/atomic.h.
2977 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2979 * math/libm-test.inc (expm1_test): Add test for range error.
2981 * Versions.def: Add GLIBC_2.11 for libc.
2982 * debug/Makefile (routines): Add longjmp_chk.
2983 Add rules to build and run tst-longjmp_chk.
2984 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2985 * debug/longjmp_chk.c: New file.
2986 * debug/tst-longjmp_chk.c: New file.
2987 * include/bits/setjmp2.: New file.
2988 * include/stdio.h: Mark __fortify_fail as internal_function.
2989 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2990 * setjmp/bits/setjmp2.h: New file.
2991 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2993 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2995 * sysdeps/i386/____longjmp_chk.S: New file.
2996 * sysdeps/x86_64/____longjmp_chk.S: New file.
2997 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2998 * sysdeps/x86_64/__longjmp.S: Likewise.
3000 * version.h: Bump for 2.11 development.
3002 * elf/check-execstack.c: New file.
3003 * elf/Makefile: Add rules to build and run check-execstack.
3005 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3007 * version.h (VERSION): Bump to 2.10.1.
3009 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3010 compatibility functions.
3011 * nss/getXXent_r.c: Likewise.
3012 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3013 * gshadow/getsgnam_r.c: Likewise.
3014 * gshadow/Version: Remove duplicate entries.
3016 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3017 for recent processor.
3018 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3021 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3023 * version.h (VERSION): Bump for 2.10 release.
3024 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3026 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3027 same place we add ASFLAGS-config.
3029 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3032 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3033 or FORMERR and the other NOERROR, don't raise an error.
3035 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3038 * Makeconfig (+asflags): New variable based upon ASFLAG or
3040 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3041 * config.make.in (asflags-cpu): Add variable based upon
3042 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3045 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3046 recognizes power6 instruction set due to passing -mcpu=power6 from
3047 --with-cpu=power6 when compiling .S files.
3048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3055 2009-05-09 Jakub Jelinek <jakub@redhat.com>
3057 * string/stratcliff.c (do_test): Test for zero length
3058 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3059 at the end of the page.
3061 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3063 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3065 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3068 * po/da.po: Update from translation team.
3070 2009-05-05 Jakub Jelinek <jakub@redhat.com>
3072 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3073 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3075 2009-05-05 Ulrich Drepper <drepper@redhat.com>
3077 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3078 and READ_IMPLIES_EXEC.
3080 2009-05-04 Ulrich Drepper <drepper@redhat.com>
3082 * po/da.po: Update from translation team.
3084 2009-04-29 Jakub Jelinek <jakub@redhat.com>
3086 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3089 2009-04-27 Jakub Jelinek <jakub@redhat.com>
3091 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3092 to MAP_ANON in PROT_NONE mmap64 call.
3093 (open_archive): Likewise.
3094 (file_data_available_p): Use mmap64 instead of mremap.
3095 (enlarge_archive): Likewise. Update head if ah->addr changed.
3096 Attempt to reserve address space after mmap64 region.
3098 2009-04-26 Ulrich Drepper <drepper@redhat.com>
3100 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3101 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3102 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3104 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3105 atanh should set ERANGE.
3108 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3109 result of lookup to make call to implement STT_GNU_IFUNC.
3110 (_dl_profile_fixup): Likewise.
3111 Patch by H.J. Lu <hjl.tools@gmail.com>.
3113 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3116 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3119 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3120 label if it is not used.
3122 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3123 of gmon_hist_hdr and gmon_hdr structures and use them.
3124 * elf/sprof.c: Likewise.
3126 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3129 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3131 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3134 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3135 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3137 (iruserok_af): Use ss_family instead of casts.
3139 * gmon/gmon.c (write_hist): Define real-type variant of
3140 gmon_hist_hdr structure and use it.
3141 (write_gmon): Likewise for gmon_hdr.
3143 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3144 function if we are not going to define it.
3145 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3147 * inet/inet6_option.c (option_alloc): Add temporary variable to
3150 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3151 name of VTable element.
3152 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3153 * libio/iovsscanf.c: Likewise.
3154 * libio/vasprintf.c: Likewise.
3155 * libio/vsnprintf.c: Likewise.
3156 * stdio-common/isoc99_vsscanf.c: Likewise.
3157 * stdlib/strfmon_l.c: Likewise.
3158 * debug/vasprintf_chk.c: Likewise.
3159 * debug/vsnprintf_chk.c: Likewise.
3160 * debug/vsprintf_chk.c: Likewise.
3162 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3165 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3167 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3169 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3171 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3173 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3174 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3175 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3176 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3177 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3178 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3179 * math/libm-test.inc: Add tests for errno after tan calls with
3182 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3183 errno value vor pow(+-0,neg).
3184 * math/libm-test.inc (pow_test): Add tests for errno value for
3187 * math/w_fmod.c: Also handle x=±Inf as error.
3188 * math/w_fmodf.c: Likewise.
3189 * math/w_fmodl.c: Likewise.
3190 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3193 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3194 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3195 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3196 * sysdeps/i386/fpu/s_sin.S: Likewise.
3197 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3198 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3199 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3200 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3201 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3202 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3203 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3204 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3205 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3206 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3209 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3210 ERANGE for underflows.
3211 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3213 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3216 * libio/tst-widetext.input: Remove surrogates.
3218 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3220 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3221 for lgamma should set errno to ERANGE, not EDOM.
3222 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3224 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3227 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3230 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3231 space when temporarily mapping the whole content of the old file.
3234 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3237 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3239 * iconvdata/sjis.c (BODY): Don't advance inptr before
3240 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3241 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3244 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3246 * locale/locarchive.h (struct locarhandle): Rename len field to
3247 mmaped and add new reserved field.
3248 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3249 (create_archive): Reserve address space and then map file into it.
3250 (open_archive): Likewise.
3251 (file_data_available_p): New function.
3252 (compare_from_file): New function.
3253 (close_archive): Adjust to member name changes.
3254 (add_locale): Before comparing locale data, check it is mapped.
3255 Otherwise fall back to reading from the file.
3257 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3259 * stdio-common/psiginfo.c: Include <errno.h>.
3261 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3264 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3265 to get consistency between 32 and 64 bit architectures.
3268 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3269 directory for dummy syscall rules.
3270 Patch by Chris Steinbroner <hesh@pobox.com>.
3272 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3275 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3278 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3280 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3281 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3283 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3285 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3286 data from vector to temporary buffer and call PWRITEV after it
3287 instead of vice versa.
3288 * sysdeps/posix/preadv.c: Fix up comment.
3289 * misc/preadv.c: Likewise.
3290 * misc/preadv64.c: Likewise.
3291 * misc/pwritev.c: Likewise.
3292 * misc/pwritev64.c: Likewise.
3293 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3295 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3297 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3299 * shadow/Makefile (tests): Add tst-shadow.
3300 * shadow/tst-shadow.c: New file.
3303 * gshadow/Makefile: New file.
3304 * gshadow/Versions: New file.
3305 * gshadow/fgetsgent.c: New file.
3306 * gshadow/fgetsgent_r.c: New file.
3307 * gshadow/getsgent.c: New file.
3308 * gshadow/getsgent_r.c: New file.
3309 * gshadow/getsgnam.c: New file.
3310 * gshadow/getsgnam_r.c: New file.
3311 * gshadow/gshadow.h: New file.
3312 * gshadow/putsgent.c: New file.
3313 * gshadow/sgetsgent.c: New file.
3314 * gshadow/sgetsgent_r.c: New file.
3315 * gshadow/tst-gshadow.c: New file.
3316 * include/gshadow.h: New file.
3317 * Makeconfig (all-subdirs): Add gshadow.
3318 * Makefile (installed-headers): Add gshadow/gshadow.h.
3319 * nss/Makefile (databases): Add sgrp.
3320 * nss/Versions: Add gshadow functions as private exports.
3321 * nss/nsswitch.conf: Add gshadow entry.
3322 * nss/sgrp-lookup.c: New file.
3323 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3324 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3325 * nss/nss_files/files-sgrp.c: New file.
3326 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3327 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3329 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3331 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3332 * stdio-common/reg-modifier.c: Likewise.
3334 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3336 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3339 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3342 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3343 headers up to 2.6.30.
3345 * po/ca.po: Update from translation team.
3347 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3350 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3351 an object that uses static TLS if the TLS modid is higher than the
3352 reserve we always allocate. At least for multi-threaded code.
3354 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3356 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3357 Numerically stable check for valid width.
3359 * locale/programs/locarchive.c (open_archive): Map the entire file
3360 and not just the administrative data.
3361 (add_locale): When we find a hash sum match compare the content
3364 * malloc/malloc.c (malloc_info): Output address space information.
3366 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3368 * malloc/malloc.c (malloc_info): Also output system memory information.
3370 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3371 architectures have preadv/pwritev in 2.6.30.
3373 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3374 * sysdeps/posix/readv.c: Likewise.
3375 Reported by Markus Armbruster <armbru@redhat.com>.
3377 * malloc/hooks.c (top_check): Force hook value into register.
3379 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3381 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3382 calls to _dl_relocate_object.
3384 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3387 * malloc/malloc.c (force_reg): Define.
3388 (sYSMALLOc): Load hook variable into variable
3389 before test and force into register.
3390 (sYSTRIm): Likewise.
3391 (public_mALLOc): Force hook value into register.
3392 (public_fREe): Likewise.
3393 (public_rEALLOc): Likewise.
3394 (public_mEMALIGn): Likewise.
3395 (public_vALLOc): Likewise.
3396 (public_pVALLOc): Likewise.
3397 (public_cALLOc): Likewise.
3398 (__posix_memalign): Likewise.
3399 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3400 before test and force into register.
3401 * malloc/hooks.c (top_check): Likewise.
3402 (public_sET_STATe): Pretty printing.
3404 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3405 in case we only receive one reply in single-request mode.
3407 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3409 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3410 are dlopened in statically linked program even for __LM_ID_CALLER.
3412 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3414 * resolv/res_send.c (send_dg): Don't switch into single-request
3415 mode if we already are in it.
3417 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3419 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3420 are always at least 4 bytes in the returned line.
3422 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3424 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3425 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3426 instead of 8K. Stop searching in /proc/stat after hitting first
3427 line not starting with cpu.
3428 (next_line): Truncate too long
3429 lines at buffer size * 3/4 instead of pretending there were line
3430 breaks inside of large lines.
3432 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3434 * sysdeps/x86_64/mp_clz_tab.c: New file.
3436 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3437 Ulrich Drepper <drepper@redhat.com>
3439 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3440 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3441 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3443 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3445 * sysdeps/sh/libc-tls.c: New file.
3447 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3449 2009-04-14 Roland McGrath <roland@redhat.com>
3451 * elf/elf.h: Add various missing ARM constants, to match binutils.
3453 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3455 Optimizations from GMP.
3456 * sysdeps/x86_64/add_n.S: New file.
3457 * sysdeps/x86_64/addmul_1.S: New file.
3458 * sysdeps/x86_64/lshift.S: New file.
3459 * sysdeps/x86_64/mul_1.S: New file.
3460 * sysdeps/x86_64/rshift.S: New file.
3461 * sysdeps/x86_64/sub_n.S: New file.
3462 * sysdeps/x86_64/submul_1.S: New file.
3464 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3466 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3467 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3468 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3469 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3471 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3473 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3476 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3478 * sysdeps/x86-64/strrchr.S: New file.
3480 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3482 * stdio-common/printf.h (struct printf_info): Add user element.
3483 New types printf_arginfo_size_function, printf_va_arg_function.
3484 Declare register_printf_specifier, register_printf_modifier,
3485 register_printf_type.
3486 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3487 (union printf_arg): Add pa_user element.
3488 Adjust __printf_arginfo_table type.
3489 Add __printf_va_arg_table, __printf_modifier_table,
3490 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3492 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3493 If registered arginfo call failed try normal specifier.
3494 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3496 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3497 * stdio-common/Versions: Export register_printf_modifier,
3498 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3499 * stdio-common/reg-modifier.c: New file.
3500 * stdio-common/reg-type.c: New file.
3501 * stdio-common/reg-printf.c (__register_printf_specifier): New
3502 function. Mostly the old __register_printf_function function but
3503 uses locking and type of third parameter changed.
3504 (__register_printf_function): Implement using
3505 __register_printf_specifier.
3506 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3507 calls to arginfo functions. Allocate enough memory for user-defined
3508 types. Call new va_arg functions to get user-defined types.
3509 Try installed handlers even for existing format specifiers first.
3511 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3513 * sysdeps/x86_64/rawmemchr.S: New file.
3515 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3516 Simplified code and possible copy problem fixed.
3518 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3519 function if it is not defined. Add some necessary casts.
3520 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3522 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3523 have preadv/pwritev in 2.6.30.
3525 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3527 * malloc/malloc.c (malloc_info): New function.
3528 * malloc/malloc.h: Declare it.
3529 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3531 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3534 * malloc/malloc.c (_int_realloc): Add parameter with old block
3535 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3537 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3539 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3541 * sysdeps/x86_64/strchrnul.S: New file.
3543 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3544 depending libcrypt on -lfreebl3.
3546 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3547 preadv/pwritev in 2.6.30.
3549 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3550 instead of __strcasecmp.
3552 * string/stratcliff.c (do_test): Add memchr tests..
3553 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3554 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3555 first read quad word.
3557 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3559 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3560 * string/tst-svc.input: Add new test case.
3561 * string/tst-svc.expect: Adjust.
3562 * string/Makefile: Don't ignore tst-svc error.
3564 * sysdeps/x86_64/memchr.S: New file.
3566 * resolv/resolv.h (RES_SNGLKUP): Define.
3567 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3568 * resolv/res_send.c (send_dg): If we sent two requests at once and
3569 only get one reply before timeout switch to mode where we send the
3570 second request only after the first answer has been received.
3572 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3574 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3575 * sysdeps/x86_64/strchr.S: Likewise.
3577 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3579 * configure.in: We need to test for the compiler earlier.
3581 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3582 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3584 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3585 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3587 * misc/preadv.c: New file.
3588 * misc/preadv64.c: New file.
3589 * misc/pwritev.c: New file.
3590 * misc/pwritev64.c: New file.
3591 * sysdeps/posx/preadv.c: New file.
3592 * sysdeps/posx/preadv64.c: New file.
3593 * sysdeps/posx/pwritev.c: New file.
3594 * sysdeps/posx/pwritev64.c: New file.
3595 * sysdeps/unix/sysv/linux/preadv.c: New file.
3596 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3597 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3598 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3599 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3600 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3602 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3604 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3606 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3607 __ASSUME_COMPLETE_READV_WRITEV.
3608 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3609 with modern kernels.
3610 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3612 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3613 to free a possible malloced buffer in case of cancellation.
3614 * sysdeps/posix/writev.c: Likewise for write.
3616 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3618 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3620 * configure.in: Recognize --enable-nss-crypt.
3621 * config.make.in: Add nss-crypt entry.
3622 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3623 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3624 and include path for NSS directory to compiler for md5-crypt,
3625 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3626 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3627 function implementation, use NSS. Introduce wrappers around the
3628 hash function calls. Little code size optimization.
3629 * crypt/sha256-crypt.c: Likewise.
3630 * crypt/sha512-crypt.c: Likewise.
3631 * scripts/check-local-headers.sh: Ignore nss3 directory.
3633 * configure.in: Rename pic_default to libc_cv_pic_default.
3634 * config.make.in: Likewise.
3636 2009-04-01 Roland McGrath <roland@redhat.com>
3638 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3639 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3640 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3641 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3642 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3643 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3644 (R_SPARC_NUM): Update.
3645 From Dave Miller <davem@davemloft.net>.
3647 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3649 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3651 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3653 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3654 those which are used.
3655 * elf/dl-addr.c: Likewise.
3656 * elf/dl-caller.c: Likewise.
3657 * elf/dl-fini.c: Likewise.
3658 * elf/dl-iteratephdr.c: Likewise.
3659 * elf/dl-libc.c: Likewise.
3660 * elf/dl-load.c: Likewise.
3661 * elf/dl-support.c: Likewise.
3662 * elf/dl-sym.c: Likewise.
3663 * elf/rtld.c: Likewise.
3664 * sysdeps/generic/ldsodefs.h: Likewise.
3666 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3667 * elf/dl-minimal.c: Likewise.
3668 * elf/dl-misc.c: Likewise.
3669 * elf/rtld.c: Likewise.
3670 * sysdeps/generic/ldsodefs.h: Likewise.
3672 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3674 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3675 Avoid reuse of complex expression.
3677 * po/fr.po: Update from translation team.
3679 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3681 * include/dirent.h: Yet more changes to match sort function type
3683 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3684 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3685 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3687 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3689 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3691 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3693 * nscd/connections.c (restart): Try to preserve the process name
3694 by reading the /proc/self/exe symlink and using the return name.
3695 Patch by Jeff Bastian <jbastian@redhat.com>.
3697 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3700 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3701 if we are not loading a new audit library.
3702 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3703 Only use profiling trampoline for auditing if we are not relocating
3705 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3706 * elf/rtld.c: Likewise.
3707 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3709 * elf/rtld.c (dl_main): Extend help message for --audit option.
3712 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3713 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3714 * dirent/alphasort.c: Adjust implementation to type change.
3715 * dirent/alphasort64.c: Likewise.
3716 * dirent/scandir.c: Likewise.
3717 * dirent/versionsort.c: Likewise.
3718 * dirent/versionsort64.c: Likewise.
3719 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3721 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3725 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3726 correctly. Set segleft member in output as required.
3727 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3728 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3731 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3732 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3733 * inet/Makefile (tests): Add tst-inet6_rth.
3734 * inet/tst-inet6_rth.c: New file.
3737 * string/strlen.c (strlen): Fix omission in the expression to test
3740 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3742 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3744 * elf/dl-runtime.c (reloc_offset): Define.
3745 (reloc_index): Define.
3746 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3747 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3748 computing index from reloc_offset.
3749 (_dl_call_pltexit): Likewise.
3750 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3751 the relocation index to _dl_fixup.
3752 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3754 * sysdeps/x86_64/dl-runtime.c: New file.
3757 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3758 alignment of La_x86_64_regs. Store xmm parameters.
3759 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3762 * string/strverscmp.c (__strverscmp): Fix case of different digits
3763 in fractional part of string.
3764 Patch by Jingyu Liu <jyliu@fortinet.com>.
3765 * string/Makefile (tests): Add tst-svc2.
3766 * string/tst-svc2.c: New file.
3768 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3770 * locale/iso-639.def: Add Min Nan.
3772 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3775 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3777 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3779 * elf/dl-sysdep.c (auxvars): Compress data structure.
3781 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3782 STT_GNU_IFUNC handling.
3783 (elf_machine_rela): Likewise.
3785 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3787 * config.h.in (USE_MULTIARCH): Define.
3788 * configure.in: Handle --enable-multi-arch.
3789 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3790 (_dl_fixup_profile): Likewise.
3791 * elf/do-lookup.c (dl_lookup_x): Likewise.
3792 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3793 * elf/elf.h (STT_GNU_IFUNC): Define.
3794 * include/libc-symbols.h (libc_ifunc): Define.
3795 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3796 framework in init-arch.h to get CPUID values.
3797 * sysdeps/x86_64/multiarch/Makefile: New file.
3798 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3799 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3800 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3802 * config.make.in (experimental-malloc): Define.
3803 * configure.in: Handle --enable-experimental-malloc.
3804 * malloc/Makefile: Handle experimental-malloc flag.
3805 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3806 * malloc/arena.c: Likewise.
3807 * malloc/hooks.c: Likewise.
3808 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3810 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3812 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3813 prediction. A few size optimizations.
3815 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3817 * time/tzset.c: Optimize a bit for size.
3819 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3821 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3822 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3824 * elf/sprof.c: Avoid warning about multi-line comment.
3826 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3828 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3830 * time/tst-posixtz.c: Add tests for quoted timezone names.
3832 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3834 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3835 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3836 200809L instead of 200112L.
3837 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3838 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3840 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3841 instead of __quick_exit_funcs to __run_exit_handlers.
3842 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3843 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3844 (__cxa_at_quick_exit): Remove attribute_hidden.
3845 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3846 to __run_exit_handlers.
3847 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3850 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3852 * po/id.po: Update from translation team.
3854 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3857 .machine push; .machine "power6" and .machine pop around mtfsf
3858 insns outside of _ARCH_PWR6 define.
3859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3864 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3865 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3866 relax_fenv_state): Likewise.
3868 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3870 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3872 (static-only-routines): Add at_quick_exit.
3873 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3875 * stdlib/quick_exit.c: New file.
3876 * stdlib/at_quick_exit.c: New file.
3877 * stdlib/cxa_at_quick_exit.c: New file.
3878 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3880 (__internal_atexit): New function.
3881 (__new_exitfn): Now takes parameter to point to the list to use.
3882 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3883 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3884 (exit): ...here. Just call __run_exit_handlers appropriately.
3885 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3886 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3887 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3888 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3890 * po/id.po: Update from translation team.
3892 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3894 * po/ru.po: Update from translation team.
3896 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3898 * po/nl.po: Update from translation team.
3900 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3902 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3903 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3904 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3905 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3906 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3907 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3908 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3910 * po/pl.po: Update from translation team.
3912 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3915 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3916 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3917 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3918 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3919 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3920 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3921 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3923 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3924 Add fallocate and fallocate64.
3926 * io/fcntl.h: Pretty printing.
3928 2009-03-02 Richard Guenther <rguenther@suse.de>
3930 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3931 attribute also for non-C99 inline semantics variant.
3933 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3935 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3936 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3937 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3938 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3944 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3946 * po/cs.po: Update from translation team.
3948 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3950 * po/bg.po: Update from translation team.
3951 * po/sv.po: Likewise.
3952 * po/fi.po: Likewise.
3953 * po/vi.po: Likewise.
3955 2009-02-27 Roland McGrath <roland@redhat.com>
3957 * Makeconfig (%.v.i): Depend on Makeconfig.
3958 Exclude % lines from initial #-comment removal.
3960 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3962 * po/ko.po: Update from translation team.
3964 2009-02-26 Roland McGrath <roland@redhat.com>
3966 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3967 avoids unused warning.
3969 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3970 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3972 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3973 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3974 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3975 and asm/user.h. Include asm/ptrace.h.
3976 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3977 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3978 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3980 (start_thread): Don't undefine.
3981 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3984 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3986 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3987 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3988 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3989 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3990 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3992 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3993 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3994 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3995 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3996 _SC_THREAD_ROBUST_PRIO_PROTECT.
3997 * posix/unistd.h: fexecve is in POSIX 2008.
3998 * time/time.h: strftime_l is in POSIX 2008.
3999 * io/sys/stat.h: futimens is in POSIX 2008.
4000 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4001 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4002 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4003 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4004 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4005 open_memstream, and vdprintf are in POSIX 2008.
4007 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4009 * include/features.h: Define macros for XPG7/POSIX 2008.
4010 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4011 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4013 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4014 * locale/xlocale.h: Define locale_t type.
4015 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4016 in POSIX 2008. Don't define locale_t here.
4017 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4018 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4019 UTIME_OMIT only with __USE_ATFILE.
4020 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4021 * stdio-common/psiginfo.c: New file.
4022 * stdio-common/psiginfo-data.h: New file.
4023 * stdio-common/psiginfo-define.h: New file.
4024 * stdio-common/Makefile (routines): Add psiginfo.
4025 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4026 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4027 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4028 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4029 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4030 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4031 * io/sys/stat.h: Move mknodat definition into same conditional as
4033 * time/sys/time.h: futimesat is not among the functions accepted
4034 into the POSIX standard.
4036 * include/features.h: If no feature selection given and we select
4037 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4038 * posix/Versions: Export __posix_getopt.
4039 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4040 Use it to alternatively initialize __posixly_correct.
4041 (_getopt_internal_r): Take addition parameter. Pass on to
4043 (_getopt_internal): Take addition parameter. Pass on to
4045 (getopt): Pass additional zero to _getopt_internal.
4046 (__posix_getopt): New function.
4047 * posix/getopt.h: Add redirection for getopt.
4048 * posix/getopt1.c (getopt_long): Pass additional zero to
4050 (getopt_long_only): Likewise.
4051 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4052 (_getopt_long_only_r): Likewise.
4053 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4056 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4058 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4059 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4060 * sysdeps/posix/sysconf.c (__sysconf): Handle
4061 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4062 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4064 2009-02-24 Roland McGrath <roland@redhat.com>
4067 * README.template: Reworded not to use substituted version number.
4069 * README: ... here (no longer generated).
4070 * Makefile (README): Target removed.
4072 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4074 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4075 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4078 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4080 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4082 2009-02-22 Ulrich Drepper <drepper@redhat.com>
4084 * po/bg.po: Update from translation team.
4086 2009-02-16 Jakub Jelinek <jakub@redhat.com>
4088 * stdlib/monetary.h: Uglify function parameter names.
4089 * sunrpc/rpc/pmap_clnt.h: Likewise.
4090 * sunrpc/rpc/svc.h: Likewise.
4091 * sunrpc/rpc/xdr.h: Likewise.
4092 * sunrpc/rpc/clnt.h: Likewise.
4093 * resolv/netdb.h: Likewise.
4094 * resolv/arpa/nameser.h: Likewise.
4095 * resolv/resolv.h: Likewise.
4096 * argp/argp.h: Likewise.
4097 * locale/langinfo.h: Likewise.
4098 * io/sys/stat.h: Likewise.
4099 * posix/spawn.h: Likewise.
4100 * nis/rpcsvc/nislib.h: Likewise.
4101 * malloc/obstack.h: Likewise.
4102 * sysdeps/ia64/bits/link.h: Likewise.
4103 * sysdeps/i386/bits/link.h: Likewise.
4104 * sysdeps/s390/bits/link.h: Likewise.
4105 * sysdeps/powerpc/bits/link.h: Likewise.
4106 * sysdeps/x86_64/bits/link.h: Likewise.
4107 * sysdeps/sparc/bits/link.h: Likewise.
4108 * sysdeps/sh/bits/link.h: Likewise.
4109 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4110 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4111 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4112 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4114 2008-12-01 Fredrik Unger <fred@tree.se>
4116 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4117 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4118 _FP_UNPACK_RAW_2, fix up first argument.
4120 2009-02-15 Ulrich Drepper <drepper@redhat.com>
4122 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4123 (GET_NPROCS_PARSER): Change parameters and use next_line.
4124 (__get_nprocs): Rewrite to not use stdio routines.
4125 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4126 Change parameters and use next_line.
4128 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4131 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4132 Change mempool_alloc prototype.
4133 * nscd/mem.c (gc): Don't handle mem_in_flight.
4134 (mempool_alloc): Third parameter now only indicates whether this is the
4135 first call (to allocate data) or not. If it is, get db rdlock.
4136 Release it on error. Don't handle mem_in_flight.
4137 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4138 Adjust third parameter of mempool_alloc calls.
4139 Nothing to do here in case mempool_alloc fails.
4140 Avoid local variable shadowing parameter. No need to get db rdlock
4141 before calling cache_add.
4142 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4143 no mem_in_flight array anymore.
4144 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4145 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4146 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4147 in case mempool_alloc fails. No need to get db rdlock before calling
4149 * nscd/hstcache.c (cache_addhst): Likewise.
4150 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4151 * nscd/servicescache.c (cache_addserv): Likewise.
4152 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4154 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4156 * po/lt.po: Update from translation team.
4158 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4160 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4161 defined, allow additional data to be added using the optional
4162 MORE_ELF_HEADER_DATA macro.
4163 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4164 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4166 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4168 * include/atomic.h: Define catomic_and if not already defined.
4169 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4170 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4172 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4174 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4176 (_int_realloc): Likewise. Third argument is now padded size
4177 All _int_* functions are now static.
4179 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4180 * malloc/arena.c: Likewise.
4181 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4184 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4187 * malloc/malloc.c: Add branch prediction for use of the hooks.
4189 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4191 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4194 * bits/confname.h: Add SUSv7 macros for getconf environments.
4195 * bits/environments.h: Likewise.
4196 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4197 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4198 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4199 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4200 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4201 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4202 * posix/getconf.c: Likewise.
4203 * posix/sysconf.c: Likewise.
4204 * sysdeps/posix/sysconf.c: Likewise.
4205 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4208 2009-01-16 Petr Baudis <pasky@suse.cz>
4211 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4212 even if we currently have zero nscount.
4214 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4217 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4218 the input line is too long.
4220 * po/Makefile (libc.pot): Add f_print as function taking c-format
4223 * debug/xtrace.sh: Unify translatable messages.
4224 * elf/ldd.bash.in: Likewise.
4225 * elf/sprof.c: Likewise.
4226 * locale/programs/locale.c: Likewise.
4227 * malloc/memusage.sh: Likewise.
4228 * nss/getent.c: Likewise.
4230 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4232 * debug/pcprofiledump.c (print_version,
4233 argp_program_version_hook): New function.
4234 * elf/ldconfig.c (more_help): New function.
4236 * elf/sln.c (usage): New function.
4237 (main): Support --help and --version.
4238 * malloc/memusagestat.c (print_version): New function.
4239 (argp_program_version_hook): New variable.
4240 * nscd/nscd.c (more_help): New function.
4242 * posix/getconf.c (main): Send --version output to stdout.
4244 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4245 arguments. All callers changed.
4246 (print_version): New function.
4247 (parseargs): Support --help and --version.
4248 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4250 (print_version): New function.
4251 (main): Use getopt_long. Support --help and --version.
4252 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4255 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4257 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4258 (update_data): Fix handling of wrapping back
4259 to the beginning of the buffer.
4262 * stdio-common/psignal.c (psignal): Fix test for empty string.
4264 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4266 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4267 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4268 move _null_auth to .rodata.
4270 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4273 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4275 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4276 today than when the original code was written. Use larger
4277 buffers. This also makes it unnecessary to have stat information,
4278 if this causes extra efforts.
4279 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4282 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4284 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4286 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4287 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4288 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4289 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4290 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4291 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4293 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4295 * po/ru.po: Update from translation team.
4297 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4299 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4300 Add _tid slot to maintain consistency with kernel.
4302 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4304 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4305 incomplete characters at end of input buffer.
4306 * libio/Makefile (tests): Add tst-fgetwc.
4307 * libio/tst-fgetwc.c: New file.
4308 * libio/tst-fgetwc.input: New file.
4310 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4312 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4314 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4317 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4318 *OUTBUFSTART unless the whole output fit into the buffer.
4319 * iconv/Makefile (tests): Add tst-iconv4.
4320 * iconv/tst-iconv4.c: New file.
4322 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4324 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4325 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4327 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4329 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4330 newer linker scripts.
4332 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4335 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4336 inotify_rm_watch should have type int.
4338 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4340 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4341 Make aligned_restore_vmx a local symbol.
4342 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4345 2009-01-30 Andreas Jaeger <aj@suse.de>
4347 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4348 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4349 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4350 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4351 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4352 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4353 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4355 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4358 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4359 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4361 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4365 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4367 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4369 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4371 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4372 memcpy instead of memcmp.
4373 (_dl_setup_pointer_guard): Likewise.
4375 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4377 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4378 manipulated brk, use malloc_printerr.
4379 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4382 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4384 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4385 rindex): For C++ add inlines so that they can be recognized as
4387 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4389 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4390 Jakub Jelinek <jakub@redhat.com>
4392 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4393 * wcsmbs/wchar.h: Likewise.
4395 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4397 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4398 (stackinfo_sub_sp): Define.
4400 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4403 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4404 * include/alloca.h (alloca_account): Define.
4405 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4406 (stackinfo_sub_sp): Define.
4408 * nscd/connections.c (nscd_init): If database file access fails
4409 check whether this is due to permission problems and bail in that
4413 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4414 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4416 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4418 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4419 Add "t" to clobber list.
4420 (INTERNAL_SYSCALL_NCS): Likewise.
4422 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4424 * nss/getent.c (print_networks): Don't print comma between aliases.
4426 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4428 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4430 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4432 * misc/Makefile (tests): Add bug-hsearch1.
4433 * misc/bug-hsearch1.c: New file.
4435 2009-01-22 Roland McGrath <roland@redhat.com>
4437 * Makeconfig (%.v.i): Strip trailing # comments,
4438 not only whole-line comments.
4440 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4442 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4443 one parameter. If non-NULL use it to initialize return value.
4444 (_dl_setup_pointer_guard): New function.
4445 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4446 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4447 * elf/rtld.c (security_init): Pass _dl_random to
4448 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4450 * elf/dl-sysdep.c (_dl_random): New variable.
4451 (_dl_sysdep_start): Handle AT_RANDOM.
4452 (_dl_show_auxv): Likewise.
4453 * elf/dl-support.c (_dl_random): New variable.
4454 (_dl_aux_init): Handle AT_RANDOM.
4455 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4456 to _dl_setup_stack_chk_guard.
4458 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4460 2009-01-10 Roland McGrath <roland@redhat.com>
4462 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4464 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4466 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4469 * nss/nss_files/files-parse.c (strtou32): New function.
4470 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4471 across 32-bit and 64-bit platforms.
4472 (INT_FIELD_MAYBE_NULL): Likewise.
4474 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4477 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4478 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4479 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4482 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4485 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4486 being NULL also if there are no backreferences.
4487 * posix/rxspencer/tests: Add testcases.
4489 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4492 * posix/bug-regex17.c: Add testcases.
4493 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4496 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4498 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4499 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4500 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4501 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4503 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4504 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4505 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4506 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4507 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4508 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4510 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4512 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4513 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4514 re_string_skip_chars, re_string_reconstruct): Likewise.
4515 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4517 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4519 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4520 adjust the buffer alignment.
4522 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4524 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4525 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4528 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4529 flavor to description only when flavor is not NULL.
4531 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4532 mutex after SIGIO/SIGURG lookup loop.
4534 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4536 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4538 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4540 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4543 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4545 * sysdeps/unix/sysv/linux/kernel-features.h
4546 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4548 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4549 if no output is written.
4551 * version.h: Bump to 2.10 development.
4553 * posix/getconf.c: Update copyright year.
4554 * nss/getent.c: Likewise.
4555 * iconv/iconvconfig.c: Likewise.
4556 * iconv/iconv_prog.c: Likewise.
4557 * elf/ldconfig.c: Likewise.
4558 * catgets/gencat.c: Likewise.
4559 * csu/version.c: Likewise.
4560 * elf/ldd.bash.in: Likewise.
4561 * elf/sprof.c (print_version): Likewise.
4562 * locale/programs/locale.c: Likewise.
4563 * locale/programs/localedef.c: Likewise.
4564 * nscd/nscd.c (print_version): Likewise.
4565 * debug/xtrace.sh: Likewise.
4566 * malloc/memusage.sh: Likewise.
4567 * malloc/mtrace.pl: Likewise.
4568 * debug/catchsegv.sh: Likewise.
4570 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4572 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4575 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4577 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4578 gethostbyname4_r function call succeeded, just leave the loop.
4581 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4583 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4584 * wctype/Makefile (tests): Add bug-wctypeh.
4585 * wctype/bug-wctypeh.c: New file.
4587 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4588 LOCALDOMAIN is defined.
4589 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4591 * sysdeps/x86_64/bits/select.h: New file.
4593 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4595 2008-12-21 Bruno Haible <bruno@clisp.org>
4598 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4599 if no output is written.
4601 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4603 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4604 libc internal symbol __dup2 to avoid access through the PLT.
4606 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4609 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4610 available only for __USE_GNU.
4612 * inet/Makefile (tests): Add tst-getni2.
4613 * inet/tst-getni2.c: New file.
4616 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4617 NULL when NI_NAMEREQD is set.
4618 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4619 * inet/Makefile (tests): Add tst-getni1.
4620 * inet/tst-getni1.c: New file.
4622 2008-12-03 Petr Baudis <pasky@suse.cz>
4625 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4626 instead of prune_lock.
4627 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4628 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4630 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4632 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4635 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4638 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4639 after reading name server list.
4642 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4643 handling for host name aliases.
4645 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4647 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4648 instead of doing things manually.
4650 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4652 * posix/regex_internal.h (build_wcs_upper_buffer):
4653 Return type is reg_error_t.
4655 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4657 * posix/globtest.sh: Use mktemp to create temporary file and
4660 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4662 (__CPU_CLR_S): Likewise.
4663 (__CPU_ISSET_S): Likewise.
4665 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4666 Ulrich Drepper <drepper@redhat.com>
4668 * scripts/firstversion.awk: Use custom comparison function to compare
4670 * scripts/versions.awk: Use sort invocation which can handle
4671 multi-digit sub-version numbers.
4673 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4675 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4676 * locale/iso-639.def: Add Chhattisgarhi entry.
4678 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4680 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4682 (_nss_dns_gethostbyname4_r): Likewise.
4683 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4684 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4685 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4686 the no_data variable.
4688 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4689 information at the correct index.
4691 * socket/sys/socket.h: Declare accept4.
4692 * socket/accept4.c: New file.
4693 * sysdeps/unix/sysv/linux/accept4.c: New file.
4694 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4695 * socket/Makefile (routines): Add accept4.
4696 * socket/Versions: Export accept4 with version GLIBC_2.10.
4697 * socket/paccept.c: Removed.
4698 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4699 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4700 * Versions.def: Define GLIBC_2.10 for libc.
4701 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4703 * nscd/connections.c: Use accept4.
4705 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4707 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4709 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4712 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4714 * stdlib/Makefile (tests): Add tst-unsetenv1.
4715 * stdlib/tst-unsetenv1.c: New file.
4717 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4719 * login/utmp_file.c (file_writable): New variable.
4720 (setutent_file): Don't try to open file for writing.
4721 (pututline_file): Before writing, make descriptor writable if
4724 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4726 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4727 to IPv4 or IPv6 if an interface has been found.
4729 2008-11-26 Roland McGrath <roland@redhat.com>
4731 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4732 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4734 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4735 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4736 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4738 * elf/elf.h (NT_386_IOPERM): New macro.
4739 (NT_PPC_VSX): New macro.
4741 2008-11-25 Roland McGrath <roland@redhat.com>
4743 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4744 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4745 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4746 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4747 Subdirectories moved to ports repository.
4748 * configure.in (base_machine): Remove alpha case.
4750 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4752 * sysdeps/mach/strerror_l.c: New file.
4754 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4757 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4758 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4760 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4761 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4762 (relax_fenv_state): Same as above.
4763 (FPSCR_29): Reserve bit in ISA 2.05.
4764 (FPSCR_NI): Provide define for compat.
4765 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4767 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4769 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4770 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4771 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4772 access to hwcap to account for hwcap size increase to uint64_t.
4773 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4776 (*setcontext): Likewise.
4777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4782 (*setcontext): dynamically select mtfsf insn based on
4783 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4784 increase to uint64_t.
4785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4786 (*swapcontext): dynamically select mtfsf insn based on
4787 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4788 increase to uint64_t.
4789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4794 (*setcontext): dynamically select mtfsf insn based on
4795 PPC_FEATURE_HAS_DFP.
4796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4797 (*swapcontext): dynamically select mtfsf insn based on
4798 PPC_FEATURE_HAS_DFP.
4800 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4802 * version.h: Bump for 2.9 release.
4803 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4806 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4807 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4810 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4813 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4814 unknown request types for now.
4816 2008-11-11 Roland McGrath <roland@redhat.com>
4818 * sysdeps/x86_64/configure: New file.
4820 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4821 * configure: Regenerated.
4823 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4825 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4826 correct instruction to remove the stack frame.
4828 2008-11-03 Michael Matz <matz@suse.de>
4830 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4831 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4833 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4835 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4838 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4839 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4840 of the thread variable instead of void *.
4841 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4842 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4843 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4844 __libc_tsd_define arguments.
4845 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4846 __libc_tsd_address arguments. Remove union hack.
4847 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4848 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4849 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4850 Adjust __libc_tsd_{set,get} arguments.
4851 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4852 __libc_tsd_define arguments.
4853 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4855 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4856 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4857 (LOCALE): Adjust __libc_tsd_define arguments.
4858 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4860 (LOCALE): Adjust __libc_tsd_define arguments.
4861 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4863 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4866 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4868 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4869 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4871 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4874 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4876 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4877 Ulrich Drepper <drepper@redhat.com>
4879 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4880 definition for GCC 3.1 and later.
4882 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4884 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4885 refetch dtv, as it might have changed.
4886 * elf/Makefile: Add rules to build and run tst-tls18.
4887 * elf/tst-tls18.c: New test.
4888 * elf/tst-tlsmod18a.c: New file.
4890 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4893 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4895 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4898 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4901 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4902 Fix length of copy operation.
4904 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4906 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4907 and fix its calling convention.
4909 2008-10-07 Andreas Schwab <schwab@suse.de>
4912 * resolv/res_send.c (send_vc): Fix last change.
4913 (send_dg): Align here as well.
4915 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4917 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4918 return value in case rlimit is RLIM_INFINITY.
4921 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4923 * resource/Makefile (tests): Add bug-ulimit1.
4924 * resource/bug-ulimit1.c: New file.
4927 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4928 without dot. Properly terminate the string with a null byte.
4929 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4932 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4934 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4938 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4940 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4942 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4943 abort if there is no initgroups_dyn function.
4945 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4946 result if any of the queries really provided an answer.
4948 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4950 * po/lt.po: Update from translation team.
4952 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4954 * po/id.po: Update from translation team.
4956 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4958 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4959 Fix tests for existence of second reply.
4961 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4963 * po/id.po: New file.
4964 Contributed by the Indonesian translation team.
4966 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4968 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4971 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4973 * elf/Makefile: Add rules to build and run tst-tls17.
4974 * elf/tst-tls17.c: New test.
4975 * elf/tst-tlsmod17a.c: New file.
4976 * elf/tst-tlsmod17b.c: Likewise.
4978 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4980 * stdlib/divmod_1.c: Use correct type for dummy variable.
4981 * stdlib/mod_1.c: Likewise.
4983 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4985 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4987 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4989 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4990 __nonnull order for C++.
4991 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4992 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4994 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4996 * stdlib/longlong.h: Update from GCC.
4998 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4999 David S. Miller <davem@davemloft.net>
5001 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5002 make sure any registers used with 64-bit 'branch-on-register'
5003 instructions have their top 32-bits clear.
5004 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5005 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5007 2008-09-18 Andreas Schwab <schwab@suse.de>
5010 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5011 Properly handle partial reads.
5013 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5015 * elf/elf.h (STO_MIPS_PLT): New.
5017 (R_MIPS_JUMP_SLOT): New.
5018 (R_MIPS_NUM): Redefine to 128.
5019 (DT_MIPS_PLTGOT): New.
5020 (DT_MIPS_RWPLT): New.
5021 (DT_MIPS_NUM): Redefine to 0x35.
5023 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5025 * timezone/africa: Update from tzdata2008f.
5026 * timezone/asia: Likewise.
5027 * timezone/australasia: Likewise.
5028 * timezone/europe: Likewise.
5029 * timezone/leapseconds: Likewise.
5030 * timezone/northamerica: Likewise.
5031 * timezone/southamerica: Likewise.
5032 * timezone/zone.tab: Likewise.
5034 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5036 * nscd/connections.c: Disable use of paccept for now.
5038 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5040 * socket/Versions: Remove paccept export for GLIBC_2.9.
5041 * socket/Makefile (routines): Remove paccept.
5042 * socket/sys/socket.h: Remove paccept declaration.
5044 * po/sv.po: Update from translation team.
5046 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5048 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5049 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5051 2008-09-16 Ulrich Drepper <drepper@redhat.com>
5053 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5054 Patch by Olivier Fourdan <ofourdan@redhat.com>.
5056 2008-09-15 Ulrich Drepper <drepper@redhat.com>
5058 * sunrpc/rpc/svc.h: Declare svcfd_create.
5059 Patch by Michael Solberg <msolberg@redhat.com>.
5061 2008-09-12 Flavio Leitner <fleitner@redhat.com>
5062 Ulrich Drepper <drepper@redhat.com>
5064 * malloc/malloc.c (public_vALLOc): Try other arenas in case
5066 (public_pVALLOc): Likewise.
5068 2008-09-02 Andreas Jaeger <aj@suse.de>
5070 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5073 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
5076 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5078 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
5080 * Makefile (check-data): Check data directory in add-ons.
5081 * elf/Makefile (check-data): Likewise.
5083 2008-08-18 Roland McGrath <roland@redhat.com>
5085 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5086 * configure: Regenerated.
5087 * config.make.in (cflags-cpu): New substituted variable.
5088 (with-cpu): Variable removed.
5089 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5091 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
5094 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5095 __signbitl definition and __LONG_DOUBLE_128__ guard from:
5096 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5097 redundant. Functions which call floating point assembler operations
5098 should go into a sysdeps powerpc/fpu directory.
5100 2008-08-15 Ulrich Drepper <drepper@redhat.com>
5102 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5103 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5105 2008-08-14 Ulrich Drepper <drepper@redhat.com>
5107 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5109 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5110 change related to AT_EXECFN. We cannot use that string.
5111 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5113 * elf/dl-support.c: Remove _dl_execfn variable.
5114 (_dl_aux_init): Remove handling of AT_EXECFN.
5115 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5116 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5118 2008-08-13 Ulrich Drepper <drepper@redhat.com>
5121 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
5122 byte gets added to writes and seeks from the end use the length of
5123 the buffer and not the currently terminating NUL byte.
5126 * login/utmp_file.c (getutent_r_file): Take additional parameter.
5127 Set to true if locking failed.
5128 (getutid_r_file): Adjust caller.
5129 (pututline_file): Likewise. Return NULL in this case.
5130 Patch mostly by halesh.s@gmail.com.
5132 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5135 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5137 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5139 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5142 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5143 macro since it is now available in elf/dynamic-link.h.
5145 2008-08-12 Roland McGrath <roland@frob.com>
5147 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5148 in case used outside of libc.
5149 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5151 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5153 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5154 directly instead of going through dn_comp.
5156 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5158 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5159 Fix asm constraints.
5161 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5164 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5165 (IPV6_PMTUDISC_PROBE): Likewise.
5167 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5170 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5172 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5173 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5176 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5177 Added the members 'vsx' and 'arch_2_06'.
5178 (_dl_powerpc_platforms): Add the member 'power7'.
5179 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5180 to reflect the changes required by VSX and ISA 2.06.
5181 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5183 Defined PPC_PLATFORM_POWER7.
5184 (_dl_string_platform): Add support for POWER7.
5185 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5186 capability and ISA 2.06.
5188 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5191 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5192 macro to detect use of 128 bit long double.
5193 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5195 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5197 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5200 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5202 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5203 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5205 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5207 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5208 guaranteed to be large enough to read inotify event. Ignore
5209 EAGAIN error. Better error message. Add branch predicition.
5210 (main_loop_epoll): Likewise.
5212 2008-08-02 Roland McGrath <roland@frob.com>
5214 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5215 Add memory clobbers.
5217 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5219 * manual/arith.texi: Avoid @strong{Note:}.
5220 * manual/creature.texi: Likewise.
5221 * manual/filesys.texi: Likewise.
5222 * manual/math.texi: Likewise.
5223 * manual/memory.texi: Likewise.
5224 * manual/resource.texi: Likewise.
5225 * manual/syslog.texi: Likewise.
5226 * manual/time.texi: Likewise.
5228 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5231 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5233 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5234 new epoll_create1 interface.
5235 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5236 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5237 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5239 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5240 (NS_GET32): Likewise.
5242 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5245 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5246 use the AT_EXECFN value if it is no absolute path.
5247 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5250 * Versions.def: Add GLIBC_2.9 to libresolv.
5251 * include/resolv.h: Remove hidden proto declarations for __ns_*
5252 functions. Add them for __dn_count_labels and __p_secstodate.
5253 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5254 Define ns_msg_getflags macro here.
5255 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5257 * resolv/Versions: Export functions from <arpa/nameser.h> from
5258 libresolv in version GLIBC_2.9.
5259 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5261 * resolv/ns_netint.c: Likewise.
5262 * resolv/ns_parse.c: Likewise.
5263 * resolv/ns_print.c: Likewise.
5264 * resolv/ns_samedomain.c: Likewise.
5265 * resolv/ns_ttl.c: Likewise.
5266 * resolv/arpa/nameser_compat.h: Likewise.
5267 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5269 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5270 instead of ns_get16.
5271 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5272 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5273 (gaih_getanswer_slice): Likewise.
5274 * resolv/Makefile (libresolv-routines): Add ns_date.
5275 * resolv/ns_date.c: New file.
5277 * elf/Makefile (check-localplt.out): Also check libresolv and
5280 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5282 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5285 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5287 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5288 buffer passed to NSS functions.
5290 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5292 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5295 * misc/syslog.c (openlog_internal): Fix compile problem.
5297 2008-07-28 Roland McGrath <roland@redhat.com>
5299 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5301 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5303 * io/ftw.c (add_object): Remove inline to avoid warning.
5305 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5307 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5308 Use it instead of locally defined resplen2 variable.
5309 (res_nsend): Adjust for __libc_res_nsend interface change.
5310 (send_vc): Initialize *resplen2 if necessary. Read length of
5311 package into an appropriately aligned variable. Store converted length
5312 in new variable and use it appropriately.
5313 Add branch prediction help.
5314 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5315 and pass it on to __libc_res_nsend. Adjust all callers.
5316 (__libc_res_nsearch): Likewise.
5317 (__libc_res_nqeurydomain): Likewise.
5318 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5320 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5321 Define resplen2 variable and pass it to __libc_res_nsearch and then
5323 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5324 Add branch prediction.
5325 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5326 (gaih_getanswer): Don't decode second slice if first one failed due
5327 to a too small buffer. Don't let not found status of second
5328 decoder shadow results of the first.
5329 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5330 and __libc_res_nquery interface changes
5331 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5332 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5333 __libc_res_nsearch, and __libc_res_nsend.
5334 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5336 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5337 __libc_res_nsearch interface changes.
5339 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5341 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5343 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5344 file descriptors with close-on-exec set.
5345 (exec_comm_child): Fix the case where the write end of the pipe is
5346 STDOUT_FILENO already. In case it is, clear close-on-exec.
5348 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5349 * io/pipe2.c: Likewise.
5350 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5351 instead of __ASSUME_PACCEPT.
5352 * include/unistd.h: Declare __have_pipe2.
5353 * libio/iopopen.c: Implement "e" flag.
5354 * libio/Makefile (tests): Add tst-popen1.
5355 * libio/tst-popen1.c: New file.
5357 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5358 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5360 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5363 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5364 success call of _IO_SEEKOFF or calls which failed because the
5365 descriptor is for a pipe.
5367 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5370 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5372 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5373 F_SETFD use if we know fopen set the flag.
5375 * login/utmp_file.c (setutent_file): Minor optimization in case
5376 O_CLOEXEC is available.
5378 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5380 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5381 * elf/Makefile: Use pie-ccflag variable.
5382 * nscd/Makefile: Likewise.
5383 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5385 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5388 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5389 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5390 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5391 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5392 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5393 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5394 utmp32, utmpx32 and login32.
5395 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5396 versions of struct utmp functions to libc and libutil.
5397 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5398 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5399 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5400 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5401 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5402 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5403 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5404 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5405 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5406 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5407 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5408 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5409 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5410 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5411 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5412 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5413 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5414 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5415 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5416 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5417 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5418 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5420 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5422 * scripts/gen-as-const.awk: Generate more widely usable code by
5423 using 64-bit arithmetic.
5425 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5426 the same treatment as narrow output code in last patch.
5428 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5431 * elf/dl-load.c (local_strdup): Remove inline.
5432 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5433 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5436 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5438 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5440 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5441 the new syscalls, too.
5443 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5444 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5447 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5448 parameter for end of buffer. If temporary copy is too large use
5450 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5452 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5453 string rewrite when allocating buffer.
5455 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5458 * nscd/connections.c (nscd_init): Clean up fcntl call.
5460 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5461 SOCK_NONBLOCK if possible.
5463 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5464 SOCK_CLOEXEC if available.
5466 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5467 __libc_clntudp_bufcreate_internal.
5468 * include/sys/socket.h: Declare __have_sock_cloexec.
5469 * socket/Makefile (aux): Add have_sock_cloexec.
5470 * socket/have_sock_cloexec.c: New file.
5471 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5472 __libc_clntudp_bufcreate.
5473 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5474 which takes an additional parameter. Create socket with non-blocking
5475 mode and close-on-exec flag set, if wanted.
5476 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5477 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5478 instead of clntudp_create. The socket has already the close-on-exec
5479 flag set if SOCK_CLOEXEC is defined.
5481 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5483 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5484 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5486 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5487 non-blocking mode by using socket, paccept, and inotify_init1.
5489 * Versions.def (glibc): Add GLIBC_2.9.
5490 * io/Makefile (routines): Add dup3 and pipe2.
5491 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5492 * io/dup3.c: New file.
5493 * io/pipe2.c: New file.
5494 * posix/unistd.h: Declare dup3 and pipe2.
5495 * socket/Makefile (routines): Add paccept.
5496 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5497 * socket/paccept.c: New file.
5498 * socket/sys/socket.h: Declare paccept.
5499 * sysdeps/unix/syscalls.list: Add entry for dup3.
5500 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5501 epoll_create2 and inotify_init1.
5502 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5503 * sysdeps/unix/sysv/linux/paccept.c: New file.
5504 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5506 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5507 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5508 inotify_init1, and pipe2 entries.
5509 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5510 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5511 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5512 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5513 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5514 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5516 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5517 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5518 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5519 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5520 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5521 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5522 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5523 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5524 EPOLL_NONBLOCK. Declare epoll_create2.
5525 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5527 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5528 IN_NONBLOCK. Declare inotify_init1.
5529 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5531 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5534 * elf/elf.h: Define AT_EXECFN.
5535 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5537 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5538 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5539 if __ASSUME_AT_EXECFN is defined.
5540 (_dl_aux_init): Handle AT_EXECFN.
5541 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5543 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5544 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5545 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5546 _dl_execfn if available and avoid compatibility code if
5547 __ASSUME_AT_EXECFN is defined.
5549 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5550 _dl_discover_osversion only for older kernels.
5552 2008-07-22 Roland McGrath <roland@frob.com>
5554 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5556 2008-07-21 Roland McGrath <roland@frob.com>
5558 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5559 returned too much data out of line.
5561 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5563 * locale/setlocale.c (setname): Remove inline to avoid compiler
5567 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5569 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5571 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5572 doesn't manage to write anything, fail.
5574 * malloc/hooks.c (__malloc_check_init): Remove printf.
5576 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5578 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5580 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5582 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5584 (main_loop_epoll): Likewise.
5586 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5588 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5590 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5591 if DEBUG is defined.
5593 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5594 query. Adjust buffer size computation for padding.
5596 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5598 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5599 * stdio-common/tst-setvbuf1.c: New file.
5600 * stdio-common/tst-setvbuf1.expect: New file.
5603 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5604 when selecting fully-buffered stream.
5605 Patch by Wang Xin <wxinee@gmail.com>.
5607 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5609 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5610 (__open_2): New function.
5611 (__open64_2): New alias to __open_2.
5612 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5613 (__openat_2): New function.
5614 (__openat64_2): New alias to __openat_2.
5616 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5619 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5621 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5623 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5624 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5625 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5627 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5628 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5629 * sysdeps/mach/hurd/send.c (__send): Likewise.
5630 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5631 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5633 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5635 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5636 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5637 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5638 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5639 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5640 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5642 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5645 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5647 Patch by Petr Baudis.
5649 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5651 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5652 Patch by Peter Jones <pjones@redhat.com>.
5654 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5657 * stdlib/canonicalize.c (__realpath): readlink can write too much
5658 into the buffer on platforms without PATH_MAX.
5660 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5663 * posix/tst-regex.c (main): Rename to...
5664 (do_test): ... this. Remove cmdline option processing.
5666 (TEST_FUNCTION): Define.
5667 (CMDLINE_OPTIONS): Define.
5669 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5672 * configure.in: Add -Werror to -fstack-protector test to catch
5673 unsupported architectures.
5674 Patch by Gilles Esponasse <g.esp@free.fr>.
5676 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5678 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5679 getcontext returns ENOSYS.
5681 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5683 * nscd/connections.c (main_loop_poll): Fix test for read error.
5684 (main_loop_epoll): Likewise.
5686 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5688 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5689 better place so it is not called when nscd is used.
5691 * nscd/connections.c: Also recognize and handle changes to the
5692 resolver configuration file.
5694 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5696 * time/strftime.c: Pass reference to tzset_called around to handle
5700 * time/strftime.c (__strftime_internal): Call tzset() only
5701 when printing timezone-dependent values.
5702 Based on a patch by Petr Baudis <pasky@suse.cz>.
5704 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5705 unconditionally use second gaih_getanswer_slice result.
5707 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5708 (getaddrinfo): RES must always be non-NULL.
5710 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5712 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5714 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5715 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5717 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5720 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5722 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5724 * nscd/connections.c (inotify_fd): New variable.
5725 (nscd_init): Try to open an inotify descriptor.
5726 If successful, watch files for databases using inotify instead of
5727 having prune threads stat the files.
5728 (nscd_run_prune): Recognize clear_cache flag being set and call
5729 prune_cache appropriately.
5730 (main_loop_poll): Add inotify descriptor to wait set and handle the
5732 (main_loop_epoll): Likewise.
5733 * nscd/cache.c (prune_cache): Don't stat files for databases if
5735 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5736 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5738 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5739 fixed-size portion of the record.
5740 * nscd/servicescache.c (cache_addserv): Likewise.
5741 * nscd/pwdcache.c (cache_addpw): Likewise.
5742 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5744 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5746 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5747 out we don't use uninitialized memory.
5749 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5752 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5754 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5755 ignore T_DNAME messages.
5756 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5758 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5760 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5761 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5763 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5765 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5766 instead of portstr to nscd_getserv_r. Patch by
5767 Roman Kagan <rkagan@mail.ru>.
5769 2008-05-26 Jim Meyering <meyering@redhat.com>
5771 Remove more useless "if" tests before "free".
5772 * include/inline-hashtab.h (htab_delete): Likewise.
5773 * libio/freopen.c (freopen): Likewise.
5774 * libio/freopen64.c (freopen64): Likewise.
5775 * locale/programs/ld-collate.c (collate_read): Likewise.
5776 * misc/fstab.c (libc_freeres_fn): Likewise.
5777 * posix/glob.c (globfree): Likewise.
5779 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5781 * string/Makefile (strop-tests): Add memmem.
5782 * string/test-memmem.c: New file.
5783 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5784 (test_init): Size buf1 according to BUF1PAGES.
5786 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5788 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5789 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5790 (CFLAGS-scanf17.c): New.
5791 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5792 * stdio-common/scanf15.c (main): Likewise.
5793 * stdio-common/scanf16.c: New file.
5794 * stdio-common/scanf17.c: New file.
5796 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5798 * resolv/res_send.c (send_dg): If we already have one of two
5799 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5800 use the one answer insted of failing.
5802 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5804 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5805 being executed on PowerPC as the expected result exceeds IBM
5806 long double 128 __LDBL_MAX__.
5808 2008-05-21 Roland McGrath <roland@redhat.com>
5810 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5812 * Makefile (check-data): Use $(abi-name) before other guesses.
5813 Look in $(add-ons) dirs before scripts/data/.
5814 * elf/Makefile (check-data): Likewise.
5816 * scripts/soversions.awk: Grok ABI line.
5817 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5818 Emit definition for abi-name variable.
5820 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5822 * string/endian.h: Define new fixed-size hto* and *toh macros only
5825 * iconvdata/Depend: Add localedata.
5827 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5829 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5831 2008-05-08 David S. Miller <davem@davemloft.net>
5833 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5835 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5836 (__SYSCALL_CLOBBERS): Remove %g* registers.
5837 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5838 (__SYSCALL_CLOBBERS): Likewise.
5839 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5840 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5842 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5844 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5845 (CALL_ERRNO_LOCATION): Define.
5846 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5847 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5848 (CALL_ERRNO_LOCATION): Define.
5849 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5850 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5851 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5853 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5855 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5858 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5860 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5861 (FIRST_FRAME_POINTER): Define.
5863 2008-05-09 David S. Miller <davem@davemloft.net>
5865 * sysdeps/sparc/sparc64/backtrace.c: New file.
5867 2008-05-14 David S. Miller <davem@davemloft.net>
5869 * sysdeps/sparc/machine-gmon.h: New file.
5870 * sysdeps/sparc/sparc-mcount.S: Likewise.
5871 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5872 sysdep_routines in gmon directory.
5874 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5876 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5878 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5880 * resolv/res_query.c (__libc_res_nquery): In case one of two
5881 answer was too short don't try to read that answer's header.
5883 * resolv/res_send.c (send_dg): In case of timeout and there are
5884 two queries and one has been answered, return value indicating
5887 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5889 * nscd/cache.c (cache_add): Take additional parameter specifying
5890 whether this is in response of a cache refill. Check alignment
5891 of package data. Revamp waking of pruning thread.
5892 (prune_cache): Small optimization.
5893 * nscd/nscd.h: Adjust cache_add prototypes.
5894 * nscd/aicache.c: Adjust cache_add calls.
5895 * nscd/grpcache.c: Likewise.
5896 * nscd/hstcache.c: Likewise.
5897 * nscd/initgrcache.c: Likewise.
5898 * nscd/pwdcache.c: Likewise.
5899 * nscd/servicescache.c: Likewise.
5900 * nscd/connections.c (restart): Really disable cache use before
5901 exec attempt. If it fails, reenable cache.
5902 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5903 time to max to be able to notice concurrent cache additions. Unlock
5904 prune_lock while performing gc. Afterwards compute wakeup time with
5905 current wakeup_time value in mind.
5907 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5909 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5911 * nscd/mem.c (gc): Correctly determine highest used array element
5914 * nscd/mem.c (markrange): Add assert to check entries are all
5915 aligned. Small cleanup in bitmap use.
5917 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5918 blockoff of type nscd_ssize_t.
5919 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5920 (mempoll_alloc): Record block offset and not address.
5922 * nscd/mem.c (gc): Fix test for stack overuse.
5924 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5927 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5928 entry is available, believe it.
5930 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5931 no answers return NSS_STATUS_NOTFOUND.
5932 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5933 buffer does not have any content.
5935 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5937 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5939 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5940 lookup, don't assign canon unconditionally.
5942 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5944 * string/Makefile (distribute): Add str-two-way.h.
5946 2008-03-29 Eric Blake <ebb9@byu.net>
5948 Rewrite string searches to O(n) rather than O(n^2).
5949 * string/str-two-way.h: New file. For linear fixed-allocation
5951 * string/memmem.c: New implementation.
5952 * string/strstr.c: New implementation.
5953 * string/strcasestr.c: New implementation.
5955 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5957 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5959 (calc_first): Initialize constraint field.
5960 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5961 Use search_duplicated_node to avoid loops. Fix grammar.
5962 (duplicate_node): Merge constraint field for all node types.
5963 (calc_eclosure_iter): Look at constraint field for all node types.
5964 * posix/regex_internal.c (create_cd_newstate): Don't look at
5967 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5970 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5973 * string/endian.h: Add macros for fixed-size endian conversion.
5974 * bits/byteswap.h: Allow inclusion from <endian.h>.
5975 * sysdeps/i386/bits/byteswap.h: Likewise.
5976 * sysdeps/ia64/bits/byteswap.h: Likewise.
5977 * sysdeps/s390/bits/byteswap.h: Likewise.
5978 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5979 * string/Makefile (tests): Add tst-endian.
5980 * string/tst-endian.c: New file.
5982 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5983 Patch by Reuben Thomas.
5985 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5987 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5989 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5991 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5994 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5996 (BODY for __gconv_transform_internal_ascii): Likewise.
5999 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6000 to be treated like link-local addresses.
6001 (match_prefix): Don't treat IPv4 loopback address special when
6002 converting to v4 mapped addressed.
6004 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6006 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6007 * posix/tst-rfc3484-2.c: Likewise.
6008 * posix/tst-rfc3484-3.c: Likewise.
6010 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6013 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6015 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6017 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6019 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6021 * po/lt.po: New file. From Lituanian translation team.
6023 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6025 Introduce TLS descriptors for i386 and x86_64.
6026 * include/inline-hashtab.h: New file, copied from 2005's
6027 libiberty, with fix for memory leak imported afterwards by
6028 Glauber de Oliveira Costa.
6029 * elf/tlsdeschtab.h: New file.
6030 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6031 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6032 (CHECK_STATIC_TLS): Move to...
6033 * elf/dynamic-link.h: ... this file.
6034 (TRY_STATIC_TLS): New macro.
6035 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6036 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6037 R_386_TLS_DESC): Define.
6038 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6040 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6041 R_X86_64_TLSDESC): Define.
6042 (R_386_NUM, R_X86_64_NUM): Adjust.
6043 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6044 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6045 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6046 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6047 release tlsdesc_table.
6048 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6049 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6050 (elf_machine_rel): Handle R_386_TLS_DESC.
6051 (elf_machine_rela): Likewise.
6052 (elf_machine_lazy_rel): Likewise.
6053 (elf_machine_lazy_rela): Likewise.
6054 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6055 * sysdeps/i386/dl-tlsdesc.S: New file.
6056 * sysdeps/i386/dl-tlsdesc.h: New file.
6057 * sysdeps/i386/tlsdesc.c: New file.
6058 * sysdeps/i386/tlsdesc.sym: New file.
6059 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6061 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6062 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6063 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6064 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6065 release tlsdesc_table.
6066 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6067 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6068 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6069 (elf_machine_rel): Handle R_X86_64_TLSDESC.
6070 (elf_machine_rela): Likewise.
6071 (elf_machine_lazy_rel): Likewise.
6072 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6073 (__tls_get_addr): Do not declare for non-shared compiles.
6074 * sysdeps/x86_64/dl-tlsdesc.S: New file.
6075 * sysdeps/x86_64/dl-tlsdesc.h: New file.
6076 * sysdeps/x86_64/tlsdesc.c: New file.
6077 * sysdeps/x86_64/tlsdesc.sym: New file.
6078 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6079 tlsdesc_table for both 32- and 64-bit structs.
6081 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6083 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6084 its own function. This reduces the frame setup costs and more.
6086 2008-02-11 Joseph Myers <joseph@codesourcery.com>
6089 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6090 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6092 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6094 * io/openat.c (__openat_2): Also pass fd to __openat.
6095 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6096 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6098 * string/tester.c (test_memcmp): Add a few more tests.
6099 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6101 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6103 * nscd/cache.c (cache_add): Before returning with failure and this
6104 is the first use of the record, mark it as unusable.
6105 * nscd/aicache.c: Don't touch the dataset after cache_add returns
6106 reporting a failure.
6107 * nscd/grpcache.c: Likewise
6108 * nscd/hstcache.c: Likewise.
6109 * nscd/initgrcache.c: Likewise.
6110 * nscd/pwdcache.c: Likewise.
6111 * nscd/servicescache.c: Likewise.
6113 2008-05-10 Roland McGrath <roland@redhat.com>
6116 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6118 2008-05-08 David S. Miller <davem@davemloft.net>
6120 * misc/truncate64.c (truncate64): Use __truncate not truncate.
6122 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6123 (__ieee754_y0l): Likewise.
6124 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6125 (__ieee754_y1l): Likewise.
6126 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6127 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6128 frexpl and ldexpl. math_private.h provides them and the latter
6130 (__log1pl): Use __frexpl.
6132 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6134 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6136 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6137 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6138 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6139 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6141 (_nss_nis_gethostbyname4_r): New function.
6142 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6143 Change to also handle af==AF_UNSPEC.
6144 (get_tablename): New function. Use it to avoid duplication.
6145 (_nss_nisplus_gethostbyname4_r): New function.
6146 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6148 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6149 * nss/nss.h: Define struct gaih_addrtuple.
6150 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6152 (_nss_files_gethostbyname4_r): New function.
6153 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6154 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6156 * resolv/res_query.c (__libc_res_nquery): Take two additional
6157 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6158 look up IPv4 and IPv6.
6160 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6161 for an additional query and answer buffer. Pass to send_vc and
6163 (send_vc): Send possibly two requests and receive two answers.
6164 (send_dg): Likewise.
6165 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6167 (_nss_dns_gethostbyname4_r): New function.
6168 (gaih_getanswer_slice): Likewise.
6169 (gaih_getanswer): Likewise.
6170 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6171 __libc_res_nquery call.
6172 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6173 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6174 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6177 2008-05-05 David S. Miller <davem@davemloft.net>
6179 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6180 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6182 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6184 Fix termios bit macros.
6185 Move *DLY definitions where they belong, in termios.h.
6186 Add *[0-3] definitions.
6187 Fixes confusion between VT and FF.
6188 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6189 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6190 are already defined to avoid collision with termios.h.
6191 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6192 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6193 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6194 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6195 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6196 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6197 VTDLY, VT0, VT1): New macros.
6198 [__USE_GNU] (OLCUC): Change value of macro.
6199 [__USE_XOPEN] (OFILL): New macro.
6200 [__USE_BSD] (CRTSCTS): Change value.
6201 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6202 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6203 (B7200, B14400, B28800, B76800): New macros.
6205 2008-05-01 David S. Miller <davem@davemloft.net>
6207 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6208 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6209 (gen-as-const-headers): Add it.
6210 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6211 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6212 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6213 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6215 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6216 six system call parameters.
6217 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6219 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6221 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6223 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6224 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6226 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6228 * stdlib/tst-setcontext.c: Include unistd.h.
6230 2008-04-25 David S. Miller <davem@davemloft.net>
6232 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6233 Pass "union semun" properly in to sys_ipc, it must be passed
6234 by value, not by reference.
6236 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6238 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6239 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6240 * nscd/connections.c (mem_in_flight): Likewise.
6242 * nscd/nscd.h (dbs): Make hidden.
6244 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6245 Avoid returning -1, return 0 instead.
6247 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6249 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6251 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6254 * sysdeps/unix/sysv/linux/times.c: New file.
6257 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6258 mem_in_flight_list variables. Add new parameter to mempool_alloc
6260 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6261 appropriate mem_in_flight element.
6262 (gc): Take allocations which have not yet been committed to the
6263 database into account.
6264 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6265 Reset mem_in_flight before returning.
6266 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6267 cue it up in mem_in_flight_list.
6268 * nscd/aicache.c: Adjust mempool_alloc call.
6269 * nscd/grpcache.c: Likewise.
6270 * nscd/hstcache.c: Likewise.
6271 * nscd/initgrcache.c: Likewise.
6272 * nscd/pwdcache.c: Likewise.
6273 * nscd/servicescache.c: Likewise.
6274 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6277 * nscd/connections.c (handle_request): Provide better error message
6278 in case SELinux forbids the service.
6280 * version.h (VERSION): Bump to 2.8.90.
6282 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6284 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6286 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6288 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6289 Also use for 32-bit.
6290 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6291 __nextafter instead of nextafter to avoid local PLT.
6292 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6293 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6295 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6297 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6299 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6300 <fenv_libc.h> instead of <fenv.h>.
6301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6304 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6306 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6307 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6308 function from fegetexcept and make old name weak alias.
6309 * include/fenv.h: Declare __fegetexcept.
6310 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6312 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6313 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6315 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6316 instead of frexpl to avoid local PLT.
6317 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6318 ilogbl to avoid local PLT.
6319 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6320 instead of ldexpl to avoid local PLT.
6321 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6322 __roundl not roundl to avoid local PLT.
6323 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6324 local PLTs. Use __sincosl instead of separate sinl and cosl
6326 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6328 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6329 version for ppc64 to 2.4.21 since without it makecontext will fail.
6331 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6333 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6335 [__powerpc64__] (TLS_GD): Likewise.
6337 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6340 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6341 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6343 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6344 Likewise. Also account for when x is an odd number between 2^52
6346 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6347 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6348 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6349 detect aforementioned erroneous conditions.
6351 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6353 * configure.in: Check for -fno-section-anchors in addition to
6354 -fno-toplevel-reorder.
6356 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6358 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6360 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6362 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6363 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6364 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6365 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6367 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6370 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6371 * time/alt_digit.c: Likewise.
6372 * wcsmbs/wcsmbsload.c: Likewise.
6374 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6376 * version.h (VERSION): Bump to 2.8.
6378 * timzeone/asia: Update from tzdata2008b.
6379 * timezone/backward: Likewise.
6380 * timezone/europe: Likewise.
6381 * timezone/northamerica: Likewise.
6382 * timezone/southamerica: Likewise.
6383 * timezone/iso3166.tab: Likewise.
6384 * timezone/leapseconds: Likewise.
6385 * timezone/zone.tab: Likewise.
6386 * timezone/private.h: Update from tzcode2008a.
6387 * timezone/zdump.c: Likewise.
6388 * timezone/zic.c: Likewise.
6390 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6393 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6394 Define additonal Data Cache Block instruction macros.
6395 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6396 Replace dcbst with dcbf and sync with sync/isync.
6398 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6400 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6401 Always set ELF_RTYPE_CLASS_PLT.
6402 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6404 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6406 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6407 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6408 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6409 For ISA 2.01 and later replace mftb with mfspr 268.
6411 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6414 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6415 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6417 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6420 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6421 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6422 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6423 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6425 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6427 * stdlib/tst-makecontext.c (othervar): New variable.
6428 (cf): Test sign extending the argument to long.
6430 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6432 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6433 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6434 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6435 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6436 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6437 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6438 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6440 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6442 * elf/Makefile (tests): Substitute tests-vis-yes here.
6443 (tests-vis-yes): Delete.
6444 (modules-name, modules-vis-yes): Similarly.
6446 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6449 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6450 Preserve sign in signgamp when x is zero.
6452 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6454 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6455 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6456 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6457 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6458 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6459 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6461 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6464 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6468 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6469 a reserved error value.
6471 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6472 value to check for correct sign extension.
6475 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6476 Copy 64-bit parameter values even though this is not required in
6479 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6482 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6484 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6487 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6489 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6491 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6494 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6495 in line-buffered stream failed.
6496 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6498 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6501 * scripts/abi-versions.awk: If the version specified by
6502 --enable-oldest-abi is older than the first version for this
6503 architecture, use the default version.
6505 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6506 as well when ignoring the whole category.
6508 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6511 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6512 ETHERTYPE_* definitions.
6513 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6515 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6517 * stdlib/mbtowc.c (__no_r_state): Remove.
6518 (mbtowc): New static state variable. Use it instead of
6520 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6521 (__wctomb_state): New hidden variable.
6522 (wctomb): Use __wctomb_state instead of __no_r_state.
6523 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6524 (__wctomb_state): New extern decl.
6525 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6527 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6530 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6532 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6534 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6536 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6538 * po/nl.po: Update from translation team.
6540 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6543 * string/strfry.c: Handle empty strings again.
6545 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6548 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6549 before looking for translation.
6550 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6551 * locale/freelocale.c: Likewise.
6552 * locale/newlocale.c: Likewise.
6553 * locale/setlocale.c: Likewise.
6554 Based partially on a patch by ryo@np.css.fujitsu.com.
6556 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6558 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6559 acquiring wrlock. Do conv_tab allocation while holding lock.
6560 * intl/Makefile: Add rules to build and run tst-gettext6.
6561 * intl/tst-gettext6.c: New test.
6562 * intl/tst-gettext6.sh: New file.
6564 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6566 * po/nl.po: Update from translation team.
6568 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6569 provided through st_blksize, try the default size before giving up.
6571 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6573 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6576 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6578 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6579 error message. POSIX today does not require the messages to be in
6580 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6583 * sunrpc/auth_unix.c: Unify printed strings.
6584 * sunrpc/clnt_tcp.c: Likewise.
6585 * sunrpc/clnt_udp.c: Likewise.
6586 * sunrpc/clnt_unix.c: Likewise.
6587 * sunrpc/svc_tcp.c: Likewise.
6588 * sunrpc/svc_udp.c: Likewise.
6589 * sunrpc/svc_unix.c: Likewise.
6590 * sunrpc/xdr.c: Likewise.
6591 * sunrpc/xdr_array.c: Likewise.
6592 * sunrpc/xdr_rec.c: Likewise.
6593 * sunrpc/xdr_ref.c: Likewise.
6594 * locale/programs/ld-time.c (time_finish): Unify messages.
6595 * locale/programs/locfile.c (handle_copy): Fix typo.
6596 * nscd/nscd.c (options): Fix typo.
6599 * stdlib/strtod_l.c: Use correct sign for result in one more
6601 Patch by Eric Blake <ebb9@byu.net>.
6603 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6605 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6606 and creat system calls.
6607 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6609 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6612 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6613 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6615 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6617 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6618 <linux/limits.h> has defined it.
6619 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6620 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6622 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6623 it instead of ARG_MAX.
6625 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6627 * posix/gai.conf: Fix comment for scope nullbits.
6628 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6629 default to 128 bits for v4 mapped addresses.
6631 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6633 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6634 ptrace call to get the ieee_instruction_pointer from the kernel.
6635 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6636 ptrace call to set the ieee_instructtion_pointer.
6637 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6638 Add comment that ieee_instruction_pointer is always 0.
6640 2008-03-09 Andreas Jaeger <aj@suse.de>
6643 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6644 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6645 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6647 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6648 (rint_test): Likewise.
6650 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6652 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6654 (__nisfind_server): Similar for open readColdStartFile call.
6655 Patch partially by Jim Meyering.
6656 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6657 around internal_setent call.
6659 * po/vi.po: New Vietnamese translation.
6661 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6664 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6665 remove CLONE_STOPPED.
6667 2008-02-10 Jim Meyering <meyering@redhat.com>
6669 Remove useless "if" before "free":
6670 * elf/ldconfig.c (parse_conf_include): Likewise.
6671 * gmon/gmon.c (weak_alias): Likewise.
6672 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6673 * inet/rcmd.c (__validuser2_sa): Likewise.
6674 * intl/bindtextdom.c (set_binding_values): Likewise.
6675 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6676 * libio/genops.c (save_for_backup): Likewise.
6677 * libio/wgenops.c (save_for_wbackup): Likewise.
6678 * locale/programs/ld-collate.c (collate_read): Likewise.
6679 * locale/programs/linereader.c (get_string): Likewise.
6680 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6681 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6682 * resolv/res_debug.c (do_section): Likewise.
6683 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6684 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6685 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6686 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6687 * time/tzset.c (tzset_internal): Likewise.
6689 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6691 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6694 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6697 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6698 not stream for output file. Open output file here.
6699 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6700 and output file name.
6701 (process_fd): Likewise.
6702 (process_file): Likewise.
6703 (main): Adjust callers of changed functions.
6704 * iconv/iconv_prog.h: Adjust prototype.
6706 2008-03-09 Andreas Jaeger <aj@suse.de>
6709 * sysdeps/ia64/ieee754.h: Use protected namespace
6710 __BIG_ENDIAN/__LITTLE_ENDIAN.
6711 * sysdeps/ieee754/ieee754.h: Likewise.
6712 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6714 2008-03-08 Roland McGrath <roland@frob.com>
6716 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6717 ignore a signal that came from a machine exception, treat it as a
6718 fatal core-dump signal instead.
6719 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6721 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6722 Clear DF bit in thread state's eflags.
6723 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6725 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6728 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6729 of NAN(...) sequence.
6730 * stdlib/Makefile (tests): Add tst-strtod6.
6731 * stdlib/tst-strtod6.c: New file.
6733 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6736 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6737 putting offending option character in quotes. Clean up error
6739 * po/be.po: Adjust msgstr in translation file.
6740 * po/bg.po: Likewise.
6741 * po/ca.po: Likewise.
6742 * po/cs.po: Likewise.
6743 * po/da.po: Likewise.
6744 * po/de.po: Likewise.
6745 * po/es.po: Likewise.
6746 * po/fr.po: Likewise.
6747 * po/hr.po: Likewise.
6748 * po/ko.po: Likewise.
6749 * po/nl.po: Likewise.
6750 * po/rw.po: Likewise.
6751 * po/sk.po: Likewise.
6752 * po/sv.po: Likewise.
6753 * po/tr.po: Likewise.
6754 * po/zh_CN.po: Likewise.
6755 * po/zh_TW.po: Likewise.
6758 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6759 Patch by Roland Bless <roland@bless.de>.
6761 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6763 * elf/Makefile (routines): Add dl-sysdep.
6764 (elide-routines.os): Likewise.
6766 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6769 * elf/dl-sysdep.c: Undefine ROUND after use.
6770 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6771 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6772 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6773 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6775 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6776 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6778 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6780 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6781 _dl_tls_get_addr_soft element.
6782 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6783 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6784 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6786 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6787 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6788 of internal_function.
6790 * stdlib/Makefile (aux): Add tens_in_limb.
6791 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6792 * stdlib/tens_in_limb.c: ...here. New file.
6795 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6796 __statfs_chown_restricted.
6797 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6798 for _PC_CHOWN_RESTRICTED.
6799 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6800 Implement __statfs_chown_restricted.
6801 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6802 _POSIX_CHOWN_RESTRICTED value to zero.
6803 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6806 * sysdeps/x86_64/rtld-memset.c: New file.
6808 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6810 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6812 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6813 Barcelona machine. Make default fall through branch of
6814 __x86_64_preferred_memory_instruction check as the integer code path.
6816 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6818 * sysdeps/x86_64/cacheinfo.c
6819 (__x86_64_preferred_memory_instruction): New variable.
6820 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6822 * sysdeps/x86_64/memset.S: Rewrite.
6824 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6826 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6827 __obstack_printf_chk): New prototypes.
6828 (__vasprintf_chk, __vdprintf_chk,
6829 __obstack_vprintf_chk): Likewise.
6830 Add libc_hidden_proto.
6832 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6833 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6834 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6835 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6836 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6837 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6838 __obstack_vprintf_chk): New prototypes.
6839 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6840 obstack_vprintf): New inlines.
6841 * debug/dprintf_chk.c: New file.
6842 * debug/vdprintf_chk.c: New file.
6843 * debug/asprintf_chk.c: New file.
6844 * debug/vasprintf_chk.c: New file.
6845 * debug/obprintf_chk.c: New file.
6846 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6847 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6848 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6850 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6851 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6852 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6853 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6855 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6856 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6857 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6858 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6859 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6861 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6862 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6863 obstack_vprintf_chk.
6864 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6865 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6866 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6867 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6868 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6869 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6871 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6874 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6875 Patch by Roy Marples <roy@marples.name>.
6878 * malloc/malloc.c: Fix typo in comment.
6881 * locale/iso-639.def: Add Shuswap.
6883 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6886 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6887 overwrite *h_errnop/*errnop values from getanswer_r in case of
6890 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6893 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6894 (verify_persistent_db): Remove one unnecessary test and add a new one
6895 for bad configuration.
6896 (nscd_init): Improve error reported when persistent database cannot
6898 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6899 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6900 .suggested_module and .max_db_size and case config file says the
6902 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6905 * nis/ypclnt.c (yp_order): Fix handling of return value of
6907 Patch by Jeff Moyer <jmoyer@redhat.com>.
6909 * po/fr.po: Update from translation team.
6911 2008-02-22 Andreas Jaeger <aj@suse.de>,
6912 Carlos O'Donell <carlos@systemhalted.org>
6915 * FAQ.in: Describe why glibc needs to be compiled with
6918 2008-02-19 Roland McGrath <roland@redhat.com>
6920 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6922 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6925 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6926 __USE_MISC is defined.
6928 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6930 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6931 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6933 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6934 timerfd_gettime, timerfd_settime.
6935 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6936 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6938 2008-02-08 Roland McGrath <roland@redhat.com>
6940 * elf/elf.h (NT_PPC_SPE): New macro.
6942 2008-02-06 Roland McGrath <roland@redhat.com>
6944 * Makerules ($(common-objpfx)sysd-rules):
6945 Depend on $(sysdep-makeconfigs).
6947 2008-01-31 Roland McGrath <roland@redhat.com>
6950 * configure.in: Use -print-file-name if it yields a directory,
6951 for each of include and include-fixed.
6952 * configure: Regenerated.
6954 * Makeconfig (sysd-rules-targets): New variable.
6955 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6956 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6958 2008-01-30 Roland McGrath <roland@redhat.com>
6960 * manual/libc.texinfo: Update back-cover text.
6962 * elf/elf.h (NT_386_TLS): New macro.
6964 2008-01-29 Roland McGrath <roland@redhat.com>
6966 * Makeconfig (sysd-rules-patterns): New variable.
6967 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6968 (check-inhibit-asm): New canned sequence, replaces ...
6969 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6970 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6971 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6972 (CFLAGS-rtld): Variable removed.
6974 2008-01-24 Roland McGrath <roland@redhat.com>
6976 * configure.in: Let configure fragments set base_os.
6977 * configure: Regenerated.
6979 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6981 * po/ko.po: Update from translation team.
6983 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6985 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6987 2008-01-12 Andreas Jaeger <aj@suse.de>
6990 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6993 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6995 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6996 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6997 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6999 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7001 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7002 * elf/dl-close.c (_dl_close): Check for it.
7003 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7004 (_dl_allocate_static_tls): Likewise.
7005 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7006 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7008 * elf/tst-tls16.c: New file.
7009 * elf/tst-tlsmod16a.c: New file.
7010 * elf/tst-tlsmod16b.c: New file.
7011 * elf/Makefile: Add rules to build and run tst-tls16.
7013 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7016 * bits/shm.h: Fix comment describing shmid_ds.
7017 * sysdeps/gnu/bits/shm.h: Likewise.
7018 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7019 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7020 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7021 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7022 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7023 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7024 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7025 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7026 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7029 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7031 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7032 additional suffixes.
7033 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7034 Add optional functions mq_timedreceive and mq_timedsend.
7035 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7036 * conform/data/pthread.h-data: Fix prototype of
7037 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7038 * conform/data/semaphore.h-data: Allow time.h definitions.
7039 * conform/data/signal.h-data: Likewise.
7040 * conform/data/stdio.h-data: getw and putw are not required in v6.
7041 * conform/data/stdlib.h-data: Change setstate prototype.
7042 * conform/data/string.h-data: Fix strerror_r prototype.
7043 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7044 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7045 Fix readlink prototype.
7046 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7048 * inet/netinet/in.h: Cleanup namespace.
7049 * posix/regex.h: Likewise.
7050 * resolv/netdb.h: Likewise.
7051 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7052 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7053 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7054 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7055 of names of in in6_addr.
7056 (default_precedence): Likewise.
7057 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7060 2008-01-15 Ulrich Drepper <drepper@redhat.com>
7062 * conform/data/fmtmsg.h-data: Add missing allows.
7063 * conform/data/ftw.h-data: Likewise.
7064 * conform/data/inttypes.h-data: Likewise.
7065 * conform/data/math.h-data: Likewise.
7066 * conform/data/signal.h-data: Likewise.
7067 * conform/data/net/if.h-data: Likewise.
7068 * conform/data/netinet/in.h-data: Likewise.
7069 * conform/data/sys/socket.h-data: Likewise.
7072 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7073 (__strtok_r): Simplify.
7074 * string/tester.c (test_strtok_r): Add test case for futile search
7075 with single-character seach string.
7077 2008-01-12 Ulrich Drepper <drepper@redhat.com>
7079 * po/ko.po: Update from translation team.
7081 2008-01-11 Andreas Jaeger <aj@suse.de>
7084 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7085 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7088 2008-01-10 Ulrich Drepper <drepper@redhat.com>
7090 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7091 native interface lookup in all the relevant places.
7093 2008-01-10 Jakub Jelinek <jakub@redhat.com>
7094 Ulrich Drepper <drepper@redhat.com>
7096 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7097 field. Use sockaddr_in6 for source_addr.
7098 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
7099 (match_prefix): Likewise.
7100 (get_label): Likewise.
7101 (get_precedence): Likewise.
7102 (rfc3484_sort): Change to use indirect access to results array.
7103 Adjust to use of sockaddr_in6. Replace service_order test with
7104 simple index comparison.
7105 (getaddrinfo): Define order array. Initialize it. Don't initialize
7106 service_order field. Adjust qsort_t calls. Access sorted result
7107 array indirectly through order array.
7108 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7109 * posix/tst-rfc3484-2.c: Likewise.
7110 * posix/tst-rfc3484-3.c: Likewise.
7112 2008-01-09 Ulrich Drepper <drepper@redhat.com>
7115 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7117 Patch by André Cruz.
7120 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7121 (clnt_spcreateerror): Likewise.
7124 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7125 (public_mEMALIGn): Likewise.
7126 Patch mostly by Daniel Jacobowitz.
7128 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7130 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7131 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7132 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7133 * stdlib/tst-makecontext2.c: New test.
7135 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7137 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7139 (REINIT_PARAMS): Likewise. Undefine before end of file.
7140 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7141 transliteration hooks and REINIT_PARAMS afterwards.
7142 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7144 (REINIT_PARAMS): Define.
7145 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7146 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7147 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7148 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7149 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7150 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7151 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7152 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7153 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7154 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7155 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7156 * iconvdata/tst-iconv7.c: New test.
7158 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7160 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7162 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7165 * nscd/connections.c (restart): Fix condition.
7167 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7169 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7170 __ctype_toupper_loc): Add __THROW.
7172 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7174 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7175 recognition of interface family.
7177 * posix/getconf.c: Update copyright year.
7178 * nss/getent.c: Likewise.
7179 * iconv/iconvconfig.c: Likewise.
7180 * iconv/iconv_prog.c: Likewise.
7181 * elf/ldconfig.c: Likewise.
7182 * catgets/gencat.c: Likewise.
7183 * csu/version.c: Likewise.
7184 * elf/ldd.bash.in: Likewise.
7185 * elf/sprof.c (print_version): Likewise.
7186 * locale/programs/locale.c: Likewise.
7187 * locale/programs/localedef.c: Likewise.
7188 * nscd/nscd.c (print_version): Likewise.
7189 * debug/xtrace.sh: Likewise.
7190 * malloc/memusage.sh: Likewise.
7191 * malloc/mtrace.pl: Likewise.
7192 * debug/catchsegv.sh: Likewise.
7194 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7196 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7199 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7201 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7202 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7204 2007-12-17 Roland McGrath <roland@redhat.com>
7206 * inet/ether_line.c (ether_line): Remove unused variable.
7208 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7210 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7212 * login/openpty.c (openpty): Likewise.
7213 * login/pty.h (openpty, forkpty): Likewise.
7214 * manual/terminal.texi (openpty, forkpty): Likewise.
7216 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7218 * malloc/malloc.c (public_cALLOc): For arenas other than
7219 main_arena, count all bytes inside the mprotect_size range of the
7220 heap as uninitialized.
7222 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7224 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7227 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7228 mTRIm for all of them.
7229 (mTRIm): Additionally iterate over all free blocks and use madvise
7230 to free memory for all those blocks which contain at least one
7232 * malloc/tst-trim1.c: New file.
7233 * malloc/Makefile (tests): Add tst-trim1.
7235 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7237 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7239 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7240 First cast argument to long
7241 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7243 (__vdso_clock_gettime): Likewise.
7244 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7247 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7249 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7250 * locale/nl_langinfo_l.c: Real implementation, copied from
7252 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7254 2007-12-01 Jim Meyering <meyering@redhat.com>
7256 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7257 that would inhibit utf8-optimization of a regexp containing line-
7258 or buffer-anchors, e.g., `^', `$'.
7260 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7262 * time/bug-getdate1.c (do_test): Don't use century values which
7263 aren't valid on 32-bit systems.
7265 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7267 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7268 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7269 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7270 __strcat_g, __strncat_g): Add __asm__.
7272 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7275 * io/fchmodat.c: Fix typo in stub_warning use.
7276 Patch by Petr Salinger.
7278 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7280 * iconvdata/hp-thai8.c: New file.
7281 * iconvdata/Makefile: Add rules for hp-thai8.c.
7282 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7283 * iconvdata/gconv-modules: Likewise.
7286 * iconvdata/hp-greek8.c: New file.
7287 * iconvdata/Makefile: Add rules for hp-greek8.c.
7288 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7289 * iconvdata/gconv-modules: Likewise.
7292 * iconvdata/hp-turkish8.c: New file.
7293 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7294 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7295 * iconvdata/gconv-modules: Likewise.
7297 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7298 (shrink_heap): ... this new function.
7299 (heap_trim): Call shrink_heap instead of grow_heap.
7301 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7302 case don't call alloc_perturb.
7304 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7306 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7308 * sysdeps/unix/sysv/linux/kernel-features.h
7309 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7310 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7312 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7315 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7316 * stdio-common/Makefile (tests): Add bug22.
7317 * stdio-common/bug22.c: New file.
7320 * time/getdate.c: Fix filling in default values.
7321 * time/bug-getdate1.c: New file.
7322 * time/Makefile: Add rules to build and run bug-getdate1.
7324 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7325 * iconvdata/ebcdic-es.c: Likewise.
7326 * iconvdata/ebcdic-es-a.c: Likewise.
7327 * iconvdata/ebcdic-uk.c: Likewise.
7328 * iconvdata/iso8859-16.c: Likewise.
7329 * iconvdata/viscii.c: Likewise.
7330 * iconvdata/iso8859-9e.c: Likewise.
7331 * iconvdata/Makefile: Adjust appropriately.
7334 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7337 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7340 * iconvdata/hp-roman9.c: New file.
7341 * iconvdata/Makefile: Add rules for hp-roman9.c.
7342 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7343 * iconvdata/gconv-modules: Likewise.
7345 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7346 * iconvdata/Makefile: Adjust appropriately.
7349 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7350 structure, it's allocated with alloca.
7351 * stdio-common/Makefile (tests): Add bug21.
7352 * stdio-common/bug21.c: New file.
7354 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7357 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7358 keyword for gcc's braced-groups.
7360 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7363 * inet/ether_line.c: Strip hostname of whitespaces.
7364 * inet/Makefile (tests): Add tst-ether_line.
7365 * inet/tst-ether_line.c: New file.
7367 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7370 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7373 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7375 * stdlib/tst-setcontext.c: Catch the case where the links gets
7376 messed up and we do not reach main again.
7378 * po/ca.po: Update from translation team.
7380 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7382 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7383 * posix/regex.h (REG_ENOSYS): Likewise.
7384 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7386 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7388 * nscd/nscd.h (MAX_STACK_USE): Define.
7389 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7390 (gc): Initialize stack_used based on allocation in prune_cache.
7391 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7392 Clear array before use.
7394 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7395 memory allocation failed.
7396 * nscd/hstcache.c (cache_addhst): Likewise.
7397 * nscd/grpcache.c (cache_addgr): Likewise.
7398 * nscd/servicescache.c (cache_addserv): Likewise.
7399 * nscd/pwdcache.c (cache_addpw): Likewise.
7400 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7402 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7405 and creat system calls.
7407 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7409 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7411 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7413 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7414 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7416 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7417 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7418 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7420 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7422 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7423 strncat): Define as macros to avoid compile errors.
7425 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7428 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7431 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7432 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7433 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7435 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7437 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7438 Return zero in case the thread library is not NPTL.
7441 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7442 initializing interface list.
7445 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7446 use result of nss_getgrgid_r if nothing was found. For other
7447 error return with a failure.
7448 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7450 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7453 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7455 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7456 (get_scope): For IPv4 scope, use scopes table.
7457 (fini): Free scopes table if necessary.
7458 (free_scopelist): New function.
7459 (scopecmp): New function.
7460 (gaiconf_init): Also handle scopev4 entries.
7461 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7462 * posix/tst-rfc3484-2.c (do_test): Likewise.
7463 * posix/gai.conf: Document scopev4 defaults.
7464 * posix/Makefile (tests): Add tst-rfc3484-3.
7465 * posix/tst-rfc3484-3.c: New file.
7467 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7469 * posix/gai.conf: Update for current default tables.
7471 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7473 * po/tr.po: Update from translation team.
7475 2007-11-18 Roland McGrath <roland@frob.com>
7477 * manual/arith.texi (Remainder Functions): Spelling fix.
7478 From Shaun Silk <genix@mysoul.com.au>.
7480 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7482 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7484 * po/zh_CN.po: Update from translation team.
7486 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7487 Add sys/signalfd.h and sys/eventfd.h.
7489 2007-11-15 Bruno Haible <bruno@clisp.org>
7492 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7494 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7495 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7496 it needs only fixed stack space. Delay the initialization of
7497 msgid_len until it is needed.
7499 2007-11-15 Andreas Jaeger <aj@suse.de>
7501 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7502 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7504 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7506 * po/ko.po: Update from translation team.
7508 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7510 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7511 significantly. The device type is also part of the ifinfomsg data.
7513 * po/sv.po: Update from translation team.
7514 * po/nl.po: Likewise.
7516 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7517 to wake up in 24 hours.
7519 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7521 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7523 * po/cs.po: Update from translation team.
7524 * po/pl.po: Likewise.
7526 * include/ifaddrs.h: Remove in6ai_temporary.
7527 (struct in6addrinfo): Add index element.
7528 Declare __check_native.
7529 * inet/Makefile (aux): Add check_native.
7530 * sysdeps/unix/sysv/linux/check_native.c: New file.
7531 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7532 IFA_F_TEMPORARY. Pass back ifa_index.
7533 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7534 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7535 call __check_native if necessary.
7536 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7537 to sort addresses. Pass information about the results.
7538 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7539 of rfc3484_sort interface.
7540 * posix/tst-rfc3484-2.c: Likewise.
7542 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7543 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7545 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7546 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7547 on as third parameter to compare function and _quicksort.
7548 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7549 to the compare function.
7550 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7551 * Versions.def: Add GLIBC_2.8 for libc.
7553 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7554 * posix/tst-rfc3484-2.c: Likewise.
7556 * include/kernel-features.h: Moved to...
7557 * sysdeps/mach/hurd/kernel-features.h: ...here.
7559 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7561 * sysdeps/i386/i586/memcpy_chk.S: New file.
7562 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7563 * sysdeps/i386/i586/memset_chk.S: Likewise.
7565 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7567 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7568 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7569 list of interfaces. Also store prefix length.
7570 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7571 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7572 prefix if source and destination address are in the same subnet.
7573 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7574 Always look for matching record in in6ai list.
7575 Correct source_addr_len value for IPv6->IPv4 converted records.
7577 2007-11-11 Roland McGrath <roland@frob.com>
7579 * include/kernel-features.h: New file.
7581 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7583 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7584 complications for 64-bit platforms.
7586 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7587 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7588 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7590 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7592 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7593 * sysdeps/wordsize-64/alphasort.c: New file.
7594 * sysdeps/wordsize-64/alphasort64.c: New file.
7595 * sysdeps/wordsize-64/fseeko.c: New file.
7596 * sysdeps/wordsize-64/fseeko64.c: New file.
7597 * sysdeps/wordsize-64/ftello.c: New file.
7598 * sysdeps/wordsize-64/ftello64.c: New file.
7599 * sysdeps/wordsize-64/ftw.c: New file.
7600 * sysdeps/wordsize-64/ftw64.c: New file.
7601 * sysdeps/wordsize-64/iofgetpos.c: New file.
7602 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7603 * sysdeps/wordsize-64/iofopen.c: New file.
7604 * sysdeps/wordsize-64/iofopen64.c: New file.
7605 * sysdeps/wordsize-64/iofsetpos.c: New file.
7606 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7607 * sysdeps/wordsize-64/lockf.c: New file.
7608 * sysdeps/wordsize-64/lockf64.c: New file.
7609 * sysdeps/wordsize-64/mkostemp.c: New file.
7610 * sysdeps/wordsize-64/mkostemp64.c: New file.
7611 * sysdeps/wordsize-64/mkstemp.c: New file.
7612 * sysdeps/wordsize-64/mkstemp64.c: New file.
7613 * sysdeps/wordsize-64/scandir.c: New file.
7614 * sysdeps/wordsize-64/scandir64.c: New file.
7615 * sysdeps/wordsize-64/tmpfile.c: New file.
7616 * sysdeps/wordsize-64/tmpfile64.c: New file.
7617 * sysdeps/wordsize-64/versionsort.c: New file.
7618 * sysdeps/wordsize-64/versionsort64.c: New file.
7619 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7620 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7621 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7622 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7623 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7624 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7625 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7626 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7627 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7628 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7629 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7630 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7632 * crypt/sha256-crypt.c: Fix a comment.
7633 * crypt/sha512-crypt.c: Likewise.
7635 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7637 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7639 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7642 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7643 because output buffer is too small break, don't loop.
7644 * iconvdata/Makefile (tests): Add bug-iconv6.
7645 * iconvdata/bug-iconv6.c: New file.
7647 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7649 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7651 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7652 size_t. Add casts where needed.
7654 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7655 old headers, don't call avc_has_perm if we don't have the
7656 permission information.
7658 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7660 * elf/rtld.c (dl_main): Use the page size to find the map start.
7662 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7664 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7665 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7667 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7668 when the lookup call failed.
7670 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7671 Add prune_cond and wakeup_time.
7672 (CACHE_PRUNE_INTERNAL): Define.
7673 Update declarations of prune_cache and setup_thread.
7674 * nscd/connections.c (dbs): Update initializers.
7675 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7676 (nscd_init): Default number of threads is now 4.
7677 (invalidate_cache): Take lock before calling prune_cache.
7678 (handle_request): If SELinux forbids the request, say so.
7679 (readylist_cond): Use static initializer.
7680 (nscd_run_prune): New function. Used only by pruning threads.
7681 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7683 (fd_ready): Update nscd_run reference.
7684 (start_threads): No need to initialize readylist_cond.
7685 Start pruning threads separately.
7686 * nscd/nscd_setup_thread.c: Change return value type to int and always
7688 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7689 to int and return nonzero value if we can use the TID address hack.
7690 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7691 the database is later than the new entry's timeout, update the
7692 wakeup time and wake the cleanup thread.
7693 (prune_cache): Return seconds the next entry in the database is still
7694 valid. Remove locking for pruning here.
7695 * nscd/nscd.conf: Document default number of threads.
7697 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7699 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7700 stack is properly aligned for the target function.
7701 Correct unwind info.
7703 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7704 when using auditing libraries.
7706 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7708 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7709 _nss_dns_getnetbyaddr2_r.
7710 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7711 extra parameter to getanswer_r.
7712 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7713 _nss_dns_getnetbyaddr2_r.
7715 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7717 * nscd/gethstbynm2_r.c: Remove.
7718 * nscd/gethstbynm3_r.c: New file.
7719 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7721 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7722 __gethostbyaddr_r compatibility wrapper.
7723 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7724 determining timeout of entry.
7725 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7727 (addhstbyX): Pass reference to variable for TTL to lookup and
7729 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7730 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7731 and __nss_next2. Remove __nss_services_lookup.
7732 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7734 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7736 * nss/getXXent_r.c: Likewise.
7737 * nss/getnssent_r.c: Likewise.
7738 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7739 does not exist in module, try the optional second name.
7740 (__nss_next2): New function.
7741 (__nss_next): Now wrapper around __nss_next2.
7742 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7743 Declare __nss_next2.
7744 Adjust definition of db_lookup_function type.
7745 * nss/service-lookup.c: Define NO_COMPAT.
7746 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7747 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7748 * inet/ether_ntoh.c: Likewise.
7749 * sunrpc/netname.c: Likewise.
7750 * sunrpc/publickey.c: Likewise.
7751 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7752 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7753 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7754 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7755 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7757 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7759 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7761 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7764 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7765 * crypt/sha512c-test.c: Likewise.
7768 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7769 to keep track of end of %[ format string element.
7770 * stdio-common/Makefile (tests): Add bug20.
7771 * stdio-common/bug20.c: New file.
7774 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7775 path elements in counting mode.
7777 2007-10-27 Andreas Jaeger <aj@suse.de>
7780 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7783 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7784 (__cleanup): Free shared library when exiting.
7785 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7786 (__cleanup): Free shared library when exiting.
7788 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7791 * math/libm-test.inc (check_float_internal): Support
7792 denormalized return.
7794 2007-10-23 Andreas Jaeger <aj@suse.de>
7797 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7798 __LONG_LONG_PAIR to handle little endian byte order.
7799 Suggested by abhishekrai@google.com
7801 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7803 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7805 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7807 * nscd/cache.c (prune_cache): Move test for modified file outside
7810 2007-10-21 Andreas Jaeger <aj@suse.de>
7812 * manual/texinfo.tex: Update to latest version.
7814 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7816 * manual/arith.texi (Status bit operations): Fix formatting.
7818 * manual/errno.texi (Error Messages): Fix formatting.
7820 * manual/sysinfo.texi (System Parameters): Fix formatting.
7822 * manual/libc.texinfo: Update VERSION and UPDATED.
7824 2007-10-19 Roland McGrath <roland@redhat.com>
7826 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7828 2007-10-06 David S. Miller <davem@davemloft.net>
7830 * configure.in: Add sparcv9v2 and sparc64v2.
7831 * scripts/config.sub: Likewise.
7832 * configure: Regenerate.
7833 * elf/elf.h (HWCAP_SPARC_N2): New.
7834 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7835 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7836 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7837 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7838 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7839 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7840 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7842 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7844 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7845 even if the poll result indicates there is data to read.
7846 Patch by Jeff Moyer <jmoyer@redhat.com>.
7848 2007-10-18 Roland McGrath <roland@redhat.com>
7850 * elf/elf.h (NT_PPC_VMX): New macro.
7852 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7854 * version.h (VERSION): Set to 2.7.90.
7856 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7858 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7861 2007-10-17 Roland McGrath <roland@frob.com>
7863 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7864 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7866 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7868 * version.h (VERSION): Bump to 2.7.
7869 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7872 * time/tzset.c (__tz_convert): Don't force testing for a change of
7873 TZ if not called from localtime. But then also see whether the
7874 file changed, in case __use_tzfile is set.
7876 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7877 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7878 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7879 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7880 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7881 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7882 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7883 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7885 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7887 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7888 and admin selects to be able to replace the gai.conf file, lock
7889 data structures around the qsort call.
7891 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7893 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7895 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7896 too high for the improvements. Implement bzero unconditionally for
7899 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7900 Jakub Jelinek <jakub@redhat.com>
7902 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7903 even when time_t is 32-bit.
7904 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7905 timezone data read by __tzfile_default. Ensure __tzname[0] is
7906 always set after the search.
7908 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7910 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7911 unreachable code on 32-bit machines.
7913 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7916 * time/strftime_l.c: Include stdbool.h.
7917 (my_strftime): New wrapper, old function renamed to...
7918 (__strftime_internal): ... new function. Add tzset_called
7919 argument, pass it down to recursive calls, don't call tzset ()
7920 if already true, set to true after call to tzset ().
7922 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7924 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7925 into account when copying TZ string.
7927 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7929 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7930 num_transition rather than num_transitions - 1.
7932 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7934 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7937 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7938 a local label rather than HIDDEN_JUMPTARGET.
7940 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7942 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7943 (init_cacheinfo): Initialize it.
7944 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7945 Always define bzero.
7946 Remove non-glibc code.
7947 * sysdeps/x86_64/bzero.S: Make an empty file.
7949 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7951 * sysdeps/x86_64/cacheinfo.c
7952 (__x86_64_preferred_memory_instruction): New.
7953 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7955 * sysdeps/x86_64/memset.S: Rewrite.
7957 2007-10-15 Roland McGrath <roland@redhat.com>
7959 * po/libc.pot: Regenerated.
7961 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7963 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7967 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7968 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7969 address record to T_A/T_AAAA requests.
7971 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7973 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7975 * posix/glob.c: Add some branch prediction throughout.
7977 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7980 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7982 (rfc3484_sort): Make sure that even if qsort doesn't support
7983 stable sorting out sorting here is stable by comparing service_order.
7984 (getaddrinfo): Initialize service_order.
7985 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7986 service_order field to sorting structure.
7987 * posix/tst-rfc3484-2.c (do_test): Likewise.
7989 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7990 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7991 __tzset_parse_tz and updating of daylight, timezone, tzname into
7993 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7994 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7995 happens in __tz_compute.
7996 * time/tzfile.c (__tzfile_read): Also read TZ string.
7997 (find_transition): Fold into __tzfile_compute.
7998 (__tzfile_compute): For times beyond the last transition try to
8000 * timezone/tst-timezone.c: Information in daylight and tzname does
8001 change for Asia/Tokyo timezone with more concrete information.
8004 * include/stdio.h: Add libc_hidden_proto for ftello.
8005 * libio/ftello.c: Add libc_hidden_def.
8008 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8009 on the specified time and not the last entries in the file. Move
8010 code to determine tzname[] to...
8011 (find_transition): ...here. Add ugly guess for times before the
8014 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8017 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8019 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8020 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8021 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8022 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8024 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8025 read mechanism when there are no group members and avoid no-op
8026 read syscall in this case.
8029 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8030 (__readall): If reading failed due to EAGAIN error wait a bit
8031 and possibly try again.
8032 (__readvall): Likewise.
8034 2007-10-13 Bruno Haible <bruno@clisp.org>
8036 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8037 when we cannot recode the message.
8039 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8042 * libio/__freading.c (__freading): Don't return true for
8043 write-only streams. For read/write streams, check whether we
8044 performed a read operation already.
8045 * libio/Makefile (tests): Add tst-ext2.
8046 * libio/tst-ext2.c: New file.
8048 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8050 * locale/programs/repertoire.c (repertoire_read): Always free
8051 memory for repertoire file name [Coverity CID 270].
8053 * elf/cache.c (save_aux_cache): Free memory allocated for
8054 temporary file name [Coverity CID 267].
8056 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8058 * misc/Makefile (headers): Add bits/error.h.
8060 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8062 * posix/fnmatch_loop.c: Take rule index returned as part of
8063 findidx return value into account when accessing weights.
8064 * posix/regcomp.c: Likewise.
8065 * posix/regexec.c: Likewise.
8067 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8068 (skip_to): Fix problems with parameter of elifdef/elifndef.
8070 2007-10-11 Ulrich Drepper <drepper@redhat.com>
8072 * iconv/gconv_simple.c: Add some branch prediction.
8074 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8076 * locale/programs/ld-collate.c (collate_read): If ignore_content
8077 and nowtok is tok_define, eat any tok_eol tokens.
8079 2007-10-11 Jakub Jelinek <jakub@redhat.com>
8081 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8082 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8084 * inet/netinet/in.h: Don't include bits/socket.h.
8085 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8087 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8089 2007-10-10 Ulrich Drepper <drepper@redhat.com>
8091 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8093 * locale/programs/locfile-kw.gperf: Likewise.
8094 * locale/programs/ld-collate.c: Implement primitive preprocessor.
8096 2007-10-10 Jakub Jelinek <jakub@redhat.com>
8098 * stdio-common/printf-parse.h: Include string.h and wchar.h.
8099 (__find_specwc): Change into __extern_always_inline function.
8100 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
8101 (__parse_one_specmb): Remove ps argument.
8102 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8103 Adjust __find_specmb and __parse_one_specmb callers.
8104 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8105 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8107 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8110 2007-10-09 Ulrich Drepper <drepper@redhat.com>
8112 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8113 with some Pentium Ds.
8115 2007-10-08 Ulrich Drepper <drepper@redhat.com>
8117 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8119 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8122 2007-10-07 Ulrich Drepper <drepper@redhat.com>
8125 * locale/C-time.c: Set week_1stday data to 19971201.
8126 * locale/programs/ld-time.c (time_finish): Default for
8127 first_workday is Monday.
8130 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8133 * posix/glob.c (glob): Recognize patterns starting \/.
8134 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8135 (main): Add test for pattern starting \/.
8137 * misc/error.h: Use __const instead of const.
8138 * misc/bits/error.h: Likewise.
8140 2007-10-07 Andreas Jaeger <aj@suse.de>
8142 * include/bits/error.h: New file.
8144 * misc/bits/error.h (error_at_line): Fix prototype.
8146 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8149 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8150 more little bugs in creating the stack frame when pltexit has to
8153 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8154 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8157 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8158 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8159 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8160 * math/libm-test.inc: Add test for this case.
8163 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8164 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8165 map service succeeded.
8166 (svc_is_mapped): New function.
8167 (svc_unregister): Use it before trying to unmap service.
8169 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8171 * timezone/zic.c: Update from tzcode2007h.
8174 * timezone/africa: Update from tzdata2007h.
8175 * timezone/antarctica: Likewise.
8176 * timezone/asia: Likewise.
8177 * timezone/australasia: Likewise.
8178 * timezone/europe: Likewise.
8179 * timezone/leapseconds: Likewise.
8180 * timezone/northamerica: Likewise.
8181 * timezone/southamerica: Likewise.
8182 * timzeone/zone.tab: Likewise.
8185 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8188 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8189 avoid warning with -Wconversion.
8190 (__strndup): Likewise.
8191 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8194 * nscd/connections.c (restart): Don't resync if database is
8195 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8197 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8198 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8200 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8201 evetnfd_read, eventfd_write.
8202 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8203 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8204 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8205 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8206 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8207 eventfd_write for GLIBC_2.7.
8209 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8210 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8211 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8212 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8214 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8216 * stdlib/msort.c: Include stdint.h.
8217 (struct msort_param): New type.
8218 (msort_with_tmp): Use struct msort_param pointer for unchanging
8219 parameters. Add optimized handling for several common sizes
8220 and indirect sorting mode.
8221 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8223 Suggested by Belazougui Djamel .
8225 * stdlib/Makefile (tests): Add tst-qsort2.
8226 * stdlib/tst-qsort2.c: New test.
8228 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8230 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8231 for dup2 in case another thread races with the current one. Retry
8234 * misc/error.h: Remove support for use outside of libc. We have to
8235 include <features.h> now. Include <bits/error.h> if possible.
8236 * misc/bits/error.h: New file.
8238 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8240 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8241 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8242 __extern_always_inline functions unconditionally, drop macros.
8244 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8245 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8246 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8248 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8249 add __artificial__ attribute.
8251 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8253 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8254 backward to forward direction.
8256 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8259 * locale/programs/ld-collate.c (collate_finish): Compare against last
8260 used section which is known to have rules defined.
8261 (collate_read): After order_start, correctly record order of sections
8262 and queue sections up.
8264 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8267 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8268 the same number of pages.
8269 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8271 * locale/programs/ld-collate.c (collate_read): After initial copy
8272 statement, continue in state 0.
8274 * include/stdio_ext.h (__fsetlocking): Define as macro.
8276 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8278 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8281 * po/pt_BR.po: Fix typo.
8283 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8285 * iconvdata/Makefile (modules): Add ISO8859-9E.
8286 (distribute): Add iso8859-9e.c.
8287 (gen-8bit-gap-modules): Add iso8859-9e.
8288 * iconvdata/iso8859-9e.c: New file.
8289 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8290 * iconvdata/TESTS: Likewise.
8291 * iconvdata/tst-tables.sh: Likewise.
8293 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8295 * locale/iso-639.def: Add several new entries.
8297 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8299 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8300 void * pointers instead of struct link_map **.
8301 (_dl_scope_free): Change argument type to void *.
8302 * include/link.h (struct link_map): Change type of l_reldeps
8303 to struct link_map_reldeps, move l_reldepsact into that
8305 * elf/dl-deps.c: Include atomic.h.
8306 (_dl_map_object_deps): Only change l->l_initfini when it is
8307 fully populated, use _dl_scope_free for freeing it. Optimize
8308 removal of libs from reldeps by using l_reserved flag, when
8309 some removal is needed, allocate a new list instead of
8310 reallocating and free the old with _dl_scope_free. Adjust
8311 for l_reldeps and l_reldepsact changes.
8312 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8313 searching in l_initfini and l_reldeps without holding dl_load_lock.
8314 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8315 l_reldepsact changes.
8316 * elf/dl-close.c (_dl_close_worker): Likewise.
8317 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8319 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8321 * iconvdata/Makefile (modules): Add KOI8-RU.
8322 (distribute): Add koi8-ru.c.
8323 (gen-8bit-gap-modules): Add koi8-ru.
8324 * iconvdata/koi8-ru.c: New file.
8325 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8326 * iconvdata/TESTS: Likewise.
8327 * iconvdata/tst-tables.sh: Likewise.
8329 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8331 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8333 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8334 with __warning__/__error__ attributes.
8335 (__warnattr): Define.
8336 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8337 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8339 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8340 of __*_chk if compile time detectable overflow is found.
8341 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8342 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8344 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8345 instead of __*_chk if compile time detectable overflow is found.
8346 (__gets_alias): Rename to...
8347 (__gets_warn): ... this. Add __warnattr.
8348 (gets): Call __gets_warn instead of __gets_alias.
8349 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8350 aliases with __warnattr.
8351 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8352 time detectable overflow is found.
8353 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8354 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8355 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8356 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8357 __getdomainname_chk_warn): New aliases with __warnattr.
8358 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8359 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8360 __*_chk_warn instead of __*_chk if compile time detectable overflow
8362 (__getgroups_chk): Rename argument to __listlen from listlen.
8363 (__getwd_alias): Rename to...
8364 (__getwd_warn): ... this. Add __warnattr.
8365 (getwd): Call __getwd_warn instead of __getwd_alias.
8366 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8367 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8368 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8369 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8370 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8371 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8372 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8373 compile time detectable overflow is found.
8374 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8375 to use __*_chk or not.
8376 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8377 in comparisons which function should be called and in __*_chk*
8378 arguments. Call __*_chk_warn instead of __*_chk if compile time
8379 detectable overflow is found.
8380 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8382 * debug/tst-chk1.c (do_test): Add a few more tests.
8384 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8387 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8388 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8389 (_nl_unload_domain): Finalize conversions_lock.
8390 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8391 handling table of known conversions.
8393 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8395 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8396 close_not_cancel_no_status instead of close.
8398 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8401 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8402 nrules != 0 for multibyte chars.
8404 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8406 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8407 Provide better error message in case the type is unknown.
8410 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8411 * string/stratcliff.c: Make usable to test wide char functions.
8412 * wcsmbs/wcsatcliff.c: New file.
8413 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8416 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8417 (distribute): Add mac-centraleurope.c.
8418 (gen-8bit-gap-modules): Add mac-centraleurope.
8419 * iconvdata/mac-centraleurope.c: New file.
8420 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8421 * iconvdata/TESTS: Likewise.
8422 * iconvdata/tst-tables.sh: Likewise.
8425 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8427 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8429 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8430 from __x86_64_core_cache_size_half.
8431 (init_cacheinfo): Compute shared cache size for AMD processors with
8432 shared L3 correctly.
8433 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8435 Patch in large parts by Evandro Menezes.
8437 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8439 * elf/dl-lookup.c (add_dependency): Handle failing memory
8440 allocation for dependency list. Remove unnecessary check.
8442 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8443 open/close when determining source addresses.
8445 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8446 sha512-crypt, and sha512.
8447 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8448 (distribute): Add sha256.h and sha512.h.
8449 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8450 and call the appropriate code.
8451 * crypt/sha256-crypt.c: New file.
8452 * crypt/sha256.c: New file.
8453 * crypt/sha256.h: New file.
8454 * crypt/sha256c-test.c: New file.
8455 * crypt/sha256test.c: New file.
8456 * crypt/sha512-crypt.c: New file.
8457 * crypt/sha512.c: New file.
8458 * crypt/sha512.h: New file.
8459 * crypt/sha512c-test.c: New file.
8460 * crypt/sha512test.c: New file.
8462 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8464 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8465 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8468 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8470 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8471 %as in fscanf format strings.
8473 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8474 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8475 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8477 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8480 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8481 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8482 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8483 * elf/dl-sym.c (do_sym): Likewise.
8484 * include/link.h (struct link_map): Add l_serial field.
8485 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8486 * elf/dl-lookup.c (add_dependency): Add flags argument.
8487 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8488 flags, use THREAD_GSCOPE_RESET_FLAG before and
8489 THREAD_GSCOPE_SET_FLAG after
8490 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8491 Don't dereference map until it has been found on some list.
8492 If map->l_serial changed, return -1.
8494 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8496 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8497 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8498 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8500 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8501 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8502 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8503 add libc_hidden_proto.
8504 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8505 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8506 conformance requested.
8507 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8508 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8509 conformance requested.
8510 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8511 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8512 conformance requested.
8513 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8514 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8515 ISO C99 or POSIX conformance requested.
8516 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8517 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8518 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8519 and __isoc99_vsscanf@@GLIBC_2.7.
8520 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8521 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8522 (tests): Add scanf14.
8523 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8524 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8525 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8526 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8527 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8528 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8529 from using internal headers.
8530 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8531 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8532 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8533 and __isoc99_vswscanf@@GLIBC_2.7.
8534 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8535 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8536 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8537 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8538 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8539 * stdio-common/isoc99_scanf.c: New file.
8540 * stdio-common/isoc99_vsscanf.c: New file.
8541 * stdio-common/isoc99_vscanf.c: New file.
8542 * stdio-common/isoc99_vfscanf.c: New file.
8543 * stdio-common/isoc99_fscanf.c: New file.
8544 * stdio-common/isoc99_sscanf.c: New file.
8545 * wcsmbs/isoc99_fwscanf.c: New file.
8546 * wcsmbs/isoc99_vswscanf.c: New file.
8547 * wcsmbs/isoc99_swscanf.c: New file.
8548 * wcsmbs/isoc99_wscanf.c: New file.
8549 * wcsmbs/isoc99_vwscanf.c: New file.
8550 * wcsmbs/isoc99_vfwscanf.c: New file.
8551 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8552 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8553 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8554 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8555 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8556 * stdio-common/scanf14.c: New test.
8557 * stdio-common/scanf15.c: New test.
8558 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8559 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8560 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8561 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8562 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8563 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8564 __nldbl___isoc99_scanf@@GLIBC_2.7,
8565 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8566 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8567 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8568 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8569 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8570 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8571 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8572 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8573 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8574 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8575 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8576 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8577 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8578 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8579 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8580 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8581 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8582 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8583 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8584 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8585 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8586 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8587 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8589 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8590 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8591 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8592 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8593 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8594 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8595 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8596 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8597 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8598 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8599 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8600 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8602 * stdio-common/Makefile (tests): Add scanf13.
8604 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8605 m modifier followed by l.
8606 (STRING_ARG): Add width argument.
8607 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8608 <case L_('C')>: Handle %mlc and %mC.
8609 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8611 * stdio-common/scanf13.c: New test.
8613 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8614 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8616 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8618 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8619 type and __THROW marker of splice, vmsplice, and tee.
8620 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8621 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8622 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8623 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8624 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8625 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8626 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8627 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8628 as cancellation points.
8630 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8632 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8633 parse more than three parts of the version number.
8635 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8637 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8638 modifier. Patch by Jakub Jelinek.
8640 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8642 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8643 call_fallocate in misc subdir.
8644 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8645 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8646 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8647 instead of __fallocate64.
8648 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8650 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8652 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8653 * rt/Makefile (headers): Add bits/mqueue2.h.
8654 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8655 optimizing with GCC and __va_arg_pack_len is defined.
8656 * rt/bits/mqueue2.h: New file.
8657 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8658 (mq_open): New strong_alias.
8659 (__mq_open_2): New function.
8660 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8661 (mq_open): New strong_alias.
8662 (__mq_open_2): New function.
8663 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8664 * Versions.def (librt): Add GLIBC_2.7 version.
8665 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8666 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8668 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8669 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8670 is defined rather than when not C++.
8671 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8672 __openat64_alias): New redirects.
8673 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8674 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8675 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8676 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8677 functions instead of function-like macros.
8679 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8681 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8682 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8683 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8685 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8687 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8688 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8690 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8692 * inet/tst-network.c: Increment ERRORS for failing tests.
8694 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8696 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8697 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8698 implement as __extern_always_inline function.
8699 (vsyslog): Define as __extern_always_inline function unconditionally.
8700 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8701 When __va_arg_pack is defined, implement as __extern_always_inline
8703 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8704 __extern_always_inline functions unconditionally.
8705 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8706 bits/stdio2.h will be included.
8707 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8708 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8709 implement as __extern_always_inline functions.
8710 (vswprintf, vwprintf, vfwprintf): Define as
8711 __extern_always_inline functions unconditionally.
8712 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8714 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8716 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8717 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8719 * include/features.h (__USE_EXTERN_INLINES): Define only when
8720 __extern_inline is defined.
8721 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8722 is defined instead of when not __cplusplus.
8723 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8724 is defined instead of when not __cplusplus.
8725 * socket/sys/socket.h: Include bits/socket2.h when
8726 __extern_always_inline is defined instead of when not __cplusplus.
8727 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8728 is defined instead of when not __cplusplus.
8729 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8730 is defined instead of when not __cplusplus.
8731 * string/string.h: Include bits/string3.h when __extern_always_inline
8732 is defined instead of when not __cplusplus.
8733 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8734 is defined instead of when not __cplusplus.
8735 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8736 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8738 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8739 defined __extern_always_inline instead of !defined __cplusplus.
8740 * libio/bits/stdio-ldbl.h: Likewise.
8741 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8742 * misc/bits/syslog.h (syslog): Don't define for C++.
8743 (vsyslog): Use __extern_always_inline function for C++ instead of
8745 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8746 whenever that macro is defined.
8747 (vprintf): Don't provide the inline for C++.
8748 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8749 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8750 define the macros for C++.
8751 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8752 __extern_always_inline functions for C++.
8753 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8754 stat64, lstat64, fstat64, fstatat64): Don't define if not
8755 __USE_EXTERN_INLINES.
8756 * wcsmbs/bits/wchar2.h: Fix #error message.
8757 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8758 (vswprintf, vwprintf, vfwprintf): Define using
8759 __extern_always_inline functions for C++.
8760 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8761 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8762 strncpy, strcat, strncat): Define as __extern_always_inline
8763 functions instead of macros for C++.
8764 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8765 defined __extern_inline.
8766 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8767 to __extern_inline whenever that macro is defined.
8768 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8769 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8770 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8771 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8772 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8773 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8774 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8775 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8776 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8777 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8778 prototypes. Only provide __extern_inline routines if
8779 __USE_EXTERN_INLINES.
8780 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8782 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8783 For now avoid some *printf tests in C++. Skip all testing
8784 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8786 * debug/tst-chk4.cc: New file.
8787 * debug/tst-chk5.cc: New file.
8788 * debug/tst-chk6.cc: New file.
8789 * debug/tst-lfschk4.cc: New file.
8790 * debug/tst-lfschk5.cc: New file.
8791 * debug/tst-lfschk6.cc: New file.
8792 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8794 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8795 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8796 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8798 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8800 * po/cs.po: Update from translation team.
8802 2007-09-11 Roland McGrath <roland@redhat.com>
8804 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8807 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8809 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8811 2007-09-05 Roland McGrath <roland@redhat.com>
8813 * manual/signal.texi (Signaling Another Process): Typo fix.
8814 From Karl Berry <karl@freefriends.org>.
8816 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8818 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8819 zero if not defined.
8820 (make_request): Recognize optimistic addresses and treat them like
8821 deprecated addresses.
8822 Reported by Neil Horman <nhorman@redhat.com>.
8824 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8826 * nscd/connections.c (send_ro_fd): Also transfer file size.
8827 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8828 file size don't call fstat.
8830 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8831 ahead and map the file. This should always be correct and we can
8832 catch problems later.
8834 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8836 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8838 (__fread_alias, __fread_unlocked_alias): New aliases.
8839 (fread): New extern inline.
8840 (fread_unlocked): Likewise. Undef macro before definition of
8841 the inline function.
8842 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8843 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8844 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8845 and __fread_unlocked_chk@@GLIBC_2.7.
8846 * debug/fread_chk.c: New file.
8847 * debug/fread_u_chk.c: New file.
8848 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8850 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8852 * sysdeps/unix/sysv/linux/syscalls.list
8853 (personality): Change caller to EXTRA.
8855 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8857 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8859 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8861 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8864 * Makerules: Use -p option with mkdir.
8866 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8867 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8868 (_xdr_directory_obj): Likewise.
8869 (xdr_entry_obj): Likewise.
8870 (xdr_group_obj): Likewise.
8871 (xdr_link_obj): Likewise.
8872 (xdr_table_obj): Likewise.
8873 (_xdr_nis_result): Likewise.
8874 (_xdr_ns_request): Likewise.
8875 (_xdr_ib_request): Likewise.
8876 (_xdr_nis_taglist): Likewise.
8877 (xdr_cback_data): Likewise.
8878 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8879 (xdr_ypresp_maplist): Likewise.
8881 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8883 * posix/regex_internal.h: Prevent some declarations and definitions
8884 to be seen when used in tests.
8886 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8887 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8889 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8891 * config.make.in (datarootdir): Add to shut up configure.
8893 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8894 associativity for fully-associative caches.
8896 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8897 requests. Fill on more associativity values for L2.
8898 Patch mostly by Evandro Menezes.
8900 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8902 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8903 (_libc_vdso_platform_setup): Avoid using exported variable by using
8906 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8908 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8909 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8912 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8914 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8915 align stack for call if pltexit is to be used.
8918 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8919 align for function call in case pltexit has to be called later.
8921 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8922 implicit atomic operation when storing function pointer.
8923 (_dl_runtime_profile): Likewise.
8925 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8927 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8930 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8933 * string/strtok.c: Fix typo in comment.
8936 * debug/segfault.c: Fix typos in comments.
8939 * stdio-common/tempnam.c: Fix comment, it is not checked that
8940 TMPDIR points to a writable directory.
8943 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8944 memory allocated for the name server address.
8947 * nscd/connections.c (handle_request): Using sendfile always
8948 requires that mmap is used for the database.
8949 Patch by Petr Baudis <pasky@suse.cz>.
8952 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8953 suddenly has two or more addresses, ignore it and remove the old
8957 * resolv/res_hconf.c: Prepare for compiling outside libc.
8958 * nscd/res_hconf.c: New file.
8959 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8961 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8962 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8964 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8967 * debug/pcprofiledump.c: Turn on internationalization by calling
8968 setlocale. Patch mostly by Benno Schulenberg.
8971 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8973 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8974 * iconvdata/bug-iconv5.c: New file.
8976 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8979 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8980 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8981 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8982 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8983 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8984 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8985 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8986 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8988 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8991 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8992 lookup loop. Suggested by John Reiser.
8994 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8996 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8998 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9000 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9001 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9002 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9003 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9004 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9006 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9008 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9010 * po/nl.po: Update from translation team.
9012 2007-08-16 Andreas Jaeger <aj@suse.de>
9014 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9015 Reported by Peter Festner <peter.festner@ewetel.net>.
9017 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9019 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9021 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9023 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9024 to check for undefined symbols.
9026 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9027 If the syscall fails, set errno to the actual returned error number
9029 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9030 arguments are incorrect, set errno to EINVAL, if the syscall
9031 fails, set errno to the actual returned error number.
9033 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9034 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9036 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9037 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9039 (ASI_PNF, ASI_BLK_P): Don't define.
9040 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9041 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9043 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9044 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9047 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9049 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9050 FE_UNDERFLOW on Niagara CPUs.
9052 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9055 2007-08-14 Jakub Jelinek <jakub@redhat.com>
9057 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9058 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9059 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9060 flush should be used or not inside of the function.
9061 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9063 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9064 __thread_start): Use HIDDEN_JUMPTARGET.
9065 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9066 __thread_start): Likewise.
9067 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9069 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9070 Add libc_hidden_proto.
9071 (STRTOF): Add libc_hidden_proto.
9072 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9073 (strtold_l, wcstold_l): Use them as second argument for
9076 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9078 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
9080 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9082 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
9084 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9086 * po/bg.po: New file. From the translation team.
9088 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9090 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9091 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9092 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9093 when each feature was introduced.
9095 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9096 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9097 (CHECK_HASH): New macro.
9098 (PREPARE_VERSION): Use it.
9100 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9101 prototype if not __ASSUME_PSELECT.
9102 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9103 prototype if not __ASSUME_PPOLL.
9105 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9107 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9108 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9111 2007-08-13 Ulrich Drepper <drepper@redhat.com>
9113 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9114 (_libc_vdso_platform_setup): If vDSO is not available point
9115 __vdso_gettimeofday to the vsyscall.
9116 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9117 __vdso_gettimeofday instead of vsyscall.
9119 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9121 * nscd/servicescache.c: Include kernel-features.h.
9122 * nscd/gai.c: Likewise.
9123 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9124 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9125 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9126 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9127 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9128 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9129 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9130 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9131 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9133 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9135 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9136 and _dl_get_origin defines anymore.
9138 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9139 Build fix for systems which might lack POSIX timer support.
9141 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9142 (_libc_vdso_platform_setup): Mangle function pointers before storing
9144 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9145 Demangle vdso pointer before use.
9146 (INTERNAL_VSYSCALL): Likewise.
9148 * elf/cache.c (primes): Mark as const.
9149 Noted by Roland McGrath.
9151 2007-08-01 Andreas Jaeger <aj@suse.de>
9152 Jakub Jelinek <jakub@redhat.com>
9154 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9155 (options): Add option.
9156 (parse_opt): Handle option.
9157 (manual_link): Adjust process_file caller. Call implicit_soname.
9158 (search_dir): Formatting. Use and populate auxiliary cache.
9159 (main): Load and save auxiliary cache.
9160 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9161 stat64 from fstat64 to caller.
9162 (implicit_soname): New function.
9163 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9164 leave *soname as NULL.
9165 * elf/cache.c: Include libgen.h.
9166 (print_entry, print_cache, compare, save_cache, add_to_cache):
9167 Formatting and cleanups.
9168 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9169 aux_cache_file): New structures.
9170 (AUX_CACHEMAGIC): Define.
9171 (primes): New array.
9172 (aux_hash_size, aux_hash): New variables.
9173 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9174 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9175 load_aux_cache, save_aux_cache): New functions.
9176 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9177 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9178 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9179 (process_file): Adjust prototype.
9181 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9183 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9186 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9188 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9189 r_found_version structure as second parameter.
9190 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9191 (_dl_vdso_vsym): Change type of second parameter accordingly.
9192 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9193 (_libc_vdso_platform_setup): Adjust.
9194 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9195 (_libc_vdso_platform_setup): Likewise.
9197 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9198 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9199 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9200 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9201 * csu/libc-start.c: Pretty printing.
9202 Use VDSO_SETUP if defined.
9203 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9204 and let generic code call into _libc_vdso_platform_setup.
9205 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9206 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9207 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9208 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9209 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9211 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9212 (sysdep_rountines): Add dl-vdso.
9214 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9217 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9218 attribute_hidden to __vdso_gettimeofday prototype.
9220 2007-08-12 Roland McGrath <roland@redhat.com>
9222 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9223 From: Karl Berry <karl@freefriends.org>.
9225 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9227 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9228 an atime update for the files we read.
9230 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9232 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9234 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9237 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9238 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9239 * misc/mkostemp.c: New file.
9240 * misc/mkostemp64.c: New file.
9241 * stdlib/stdlib.h: Declare the new functions.
9242 * sysdeps/posix/tempname.c: Add new parameter which is added to
9243 the flags for open. Remove __GT_BIGFILE handling.
9244 * stdio-common/tempname.c: Likewise.
9245 * include/stdio.h: Adjust __gen_tempname prototype.
9246 Renumber __GT_* constants.
9247 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9248 * misc/mkdtemp.c: Likewise.
9249 * misc/mkstemp.c: Likewise.
9250 * misc/mkstemp64.c: Likewise.
9251 * misc/mktemp.c: Likewise.
9252 * stdio-common/tempnam.c: Likewise.
9253 * stdio-common/tmpfile.c: Likewise.
9254 * stdio-common/tmpfile64.c: Likewise.
9255 * stdio-common/tmpnam.c: Likewise.
9256 * stdio-common/tmpnam_r.c: Likewise.
9258 2007-08-10 Roland McGrath <roland@frob.com>
9260 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9262 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9263 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9265 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9267 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9269 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9270 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9271 * nss/nss_files/files-have_o_cloexec.c: New file.
9273 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9276 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9278 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9279 ___new_wcstold_l): New weak aliases.
9280 (strtold_l, wcstold_l): Use them as second argument for
9283 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9285 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9286 register in test for error.
9288 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9289 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9291 * po/sv.po: Update from translation team.
9293 2007-08-06 Roland McGrath <roland@redhat.com>
9295 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9296 Remove __strto*_l inlines.
9297 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9298 * stdlib/strtod.c: Add libc_hidden_def.
9299 * stdlib/strtod_l.c: Likewise.
9300 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9301 for __new_strtold and __new_wcstold.
9302 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9304 * stdlib/strtol.c: Add libc_hidden_def.
9305 * stdlib/strtol_l.c: Likewise.
9306 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9309 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9311 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9312 * scripts/data/localplt-generic.data: ... here.
9313 * elf/Makefile (check-data): Get generic file if no other.
9314 ($(objpfx)check-localplt.out): Make target unconditional.
9316 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9319 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9321 * po/zh_CN.po: Updated translation from translation team.
9323 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9326 Don't use CGOTSETUP and CGOTRESTORE macros.
9328 2007-08-04 Roland McGrath <roland@redhat.com>
9330 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9332 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9334 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9335 __extension__ around the whole statement expression.
9337 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9339 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9340 elements during initialization.
9342 * po/pl.po: Updated translation from translation team.
9343 * po/tr.po: Likewise.
9344 * po/nl.po: Likewise.
9346 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9348 * rt/aio.h: Add __nonnull attributes.
9350 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9352 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9353 * stdlib/Makefile (tests): Add tst-strtod5.
9354 (tst-strtod5-ENV): New.
9355 * stdlib/tst-strtod5.c: New file.
9357 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9359 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9362 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9365 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9367 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9370 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9372 * io/Makefile (aux): Add have_o_cloexec.
9373 * include/fcntl.h: Declare __have_o_cloexec.
9374 * io/have_o_cloexec.c: New file.
9375 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9376 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9377 fcntl call if not necessary.
9378 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9381 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9382 Avoid memset, add explicit initialization.
9383 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9384 to the end and change into zero-sized array.
9385 Move lock member to fill a hole on 64-bit platforms.
9387 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9389 * include/stdlib.h: Add __strto*_internal prototypes here.
9390 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9392 * include/wchar.h: Add __wcsto*_internal prototypes.
9393 * sysdeps/generic/inttypes.h: No need to protect the declaration
9394 of the __strto*_internal and __wcsto*_internal members here.
9396 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9398 2007-08-02 Roland McGrath <roland@redhat.com>
9400 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9401 $(inst_bindir)/getconf if possible.
9403 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9404 (generated): Add it.
9405 ($(inst_libexecdir)/getconf): Use it.
9407 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9409 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9410 /proc is faster and sufficient. /sys is still needed for
9413 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9415 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9416 syscall as __fallocate64.
9417 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9418 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9420 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9422 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9425 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9426 if off_t is different rank from size_t.
9428 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9429 uw_frame_state_for): Avoid type punning warnings.
9430 * sysdeps/generic/unwind-dw2-fde-glibc.c
9431 (_Unwind_IteratePhdrCallback): Likewise.
9432 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9433 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9434 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9437 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9439 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9440 total processors using sysfs.
9441 (__get_nprocs): Use sysfs to determine which processors are online.
9443 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9445 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9446 syscall arguments count.
9448 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9450 2007-07-30 Roland McGrath <roland@redhat.com>
9452 * manual/libc.texinfo: Update copyrights, formatting magic, and
9453 @dircategory. From Karl Berry <karl@freefriends.org>.
9455 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9458 * io/Makefile (headers): Add bits/fcntl2.h.
9460 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9462 (__CPU_EQUAL_S): Likewise.
9464 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9465 (tests): Add tst-cpuset.
9466 * posix/sched_cpualloc.c: New file.
9467 * posix/sched_cpufree.c: New file.
9468 * posix/tst-cpuset.c: New file.
9469 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9471 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9472 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9473 macros. Define CPU_*_S macros.
9475 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9477 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9481 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9482 #.0g and value rounded to 1.0.
9483 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9485 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9487 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9488 for int_frac_digits and frac_digits.
9490 * login/logout.c (logout): Avoid aliasing violation.
9491 * login/logwtmp.c (logwtmp): Likewise.
9493 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9495 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9497 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9499 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9501 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9504 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9506 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9508 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9509 char * to avoid warning.
9510 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9512 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9514 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9515 allocate_arrays): Cast second argument to charmap_find_symbol
9516 to char * to avoid warnings.
9518 * locale/programs/repertoire.c (repertoire_new_char): Change
9519 from_nr, to_nr and cnt to unsigned long, adjust printf format
9522 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9523 Cast second argument to new_element to char * to avoid warnings.
9525 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9527 * intl/gettextP.h (struct loaded_domain): Change plural to const
9528 struct expression *.
9529 * intl/plural-eval.c (plural_eval): Change first argument to
9530 const struct expression *.
9531 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9532 argument to const struct expression **.
9533 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9535 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9536 in call to __gettext_free_exp.
9538 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9539 unitialized wstring/wpattern var warnings.
9541 * posix/runtests.c (struct a_test): Make data field const char *.
9543 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9544 vars if not LDBL_MANT_DIG >= 106.
9546 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9548 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9549 __find_specmb to avoid warning.
9551 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9553 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9556 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9559 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9560 tv var when it will be actually used.
9562 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9565 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9566 char array resp. pointer.
9567 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9569 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9570 to const unsigned char **.
9571 (ucs4_to_cns11643): Change second argument to unsigned char *.
9572 * iconvdata/euc-tw.c (BODY): Change endp type to
9573 const unsigned char *.
9574 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9576 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9577 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9578 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9579 types to unsigned char pointers/arrays instead of char.
9580 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9582 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9583 * iconvdata/jis0212.h: Include assert.h.
9584 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9585 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9586 of trying to handle that.
9587 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9589 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9590 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9591 two dimensional const unsigned char arrays.
9592 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9593 Initialize endp to inptr to shut up a warning.
9595 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9598 * time/strptime_l.c (__strptime_internal): Silently ignore
9599 strftime modifiers and field width in recursive calls.
9601 * include/time.h (enum ptime_locale_status): Remove.
9602 (__strptime_internal): Remove decided and era_cnt arguments,
9603 add statep argument.
9604 * time/strptime_l.c (__strptime_internal): Remove decided
9605 and era_cnt arguments, add statep argument. Don't recompute
9606 any fields in recursive calls, only update caller's tm
9607 and state, if recursive call fails, don't change tm nor
9609 (get_alt_number): Adjust.
9610 (recursive): Adjust caller.
9611 (strptime): Likewise.
9612 * time/strptime.c (strptime): Likewise.
9614 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9616 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9617 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9618 if from and to charsets are the same.
9619 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9620 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9621 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9623 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9625 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9626 Don't define wint_t when __need_mbstate_t unless it
9628 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9629 in the typedef if possible.
9630 * wctype/wctype.h (wint_t): Define by including
9631 wchar.h with __need_wint_t instead of including stddef.h
9632 with __need_wint_t and as fallback definining it ourselves.
9633 * iconv/gconv.h (__need_wint_t): Define before including
9635 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9636 or _GLIBCPP_USE_WCHAR_T.
9637 (__need_wchar_t): Don't define
9638 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9639 (__need_wint_t): Don't define before including stddef.h,
9640 define before including wchar.h only if _LIBC or
9641 _GLIBCPP_USE_WCHAR_T.
9642 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9643 * sysdeps/mach/hurd/_G_config.h: Likewise.
9644 * sysdeps/generic/_G_config.h: Likewise.
9645 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9646 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9647 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9648 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9650 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9652 * sysdeps/posix/posix_fallocate64.c: Undefine
9653 __posix_fallocate64_l64 before alias handling.
9654 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9655 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9656 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9657 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9659 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9661 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9663 * locale/programs/ld-collate.c (atwc): New variable.
9664 (add_to_tablewc): New toplevel function, moved from collate_output.
9665 (collate_output): Remove add_to_tablewc nested function.
9667 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9668 (name_insert): New function.
9669 (write_output): Remove hash_table and hash_size vars and name_insert
9672 2007-07-24 Roland McGrath <roland@redhat.com>
9674 * Makerules (install-others-programs-nosubdir): New target.
9675 (install-no-libc.a-nosubdir): Depend on it.
9677 * iconv/Makefile (install-others-programs): Set this instead of
9679 * login/Makefile (install-others-programs): Likewise.
9680 * posix/Makefile (install-others-programs): Likewise.
9682 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9685 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9687 * io/Makefile (tests): Add tst-posix_fallocate.
9688 * io/tst-posix_fallocate.c: New file.
9690 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9693 2007-07-22 Roland McGrath <roland@frob.com>
9695 * hurd/getdport.c: Add missing copyright year update.
9697 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9698 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9700 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9702 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9704 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9705 O_CLOEXEC is needed.
9706 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9707 Avoid additional fcntl to set O_CLOEXEC if not needed.
9708 * nis/nss_compat/compat-initgroups.c: Likewise.
9709 * nis/nss_compat/compat-pwd.c: Likewise.
9710 * nis/nss_compat/compat-spwd.c: Likewise.
9712 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9715 * manual/errno.texi: Change ECANCELED value to 119.
9718 * mach/lock-intern.h: Include <sys/cdefs.h>.
9721 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9725 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9728 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9730 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9732 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9734 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9736 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9738 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9739 descriptor received from nscd.
9741 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9743 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9744 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9745 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9746 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9747 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9748 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9750 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9753 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9756 * login/forkpty.c (forkpty): Close master and slave fds on
9757 fork failure. Patch by
9758 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9760 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9762 * include/features.h (__USE_ISOC95): New define.
9763 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9764 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9765 for -std=iso9899:199409.
9766 * CONFORMANCE: Remove comments about unsupported AMD1.
9768 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9770 * sysdeps/ia64/sched_cpucount.c: New file.
9771 * sysdeps/powerpc/sched_cpucount.c: New file.
9773 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9774 __BEGIN_DECLS/__END_DECLS around the prototype.
9775 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9776 pointer to const cpu_set_t.
9778 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9779 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9780 __need_size_t and include stddef.h.
9781 * sysvipc/sys/msg.h: Likewise.
9782 * posix/sched.h: Likewise.
9783 * hurd/hurd/signal.h (__need_size_t): Define.
9785 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9786 neither does signal.h in pedantic ISO C namespaces. stdio.h
9787 no longer defines wint_t or wchar_t.
9789 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9790 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9791 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9792 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9793 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9794 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9795 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9796 * debug/printf_chk.c (__printf_chk): Likewise.
9797 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9798 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9800 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9803 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9804 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9806 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9809 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9810 * malloc/malloc.h (realloc): Likewise.
9812 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9813 if one of proc_file_chain streams has that fileno.
9814 * stdio-common/Makefile (tests): Add tst-popen2.
9815 * stdio-common/tst-popen2.c: New test.
9817 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9819 * elf/ldconfig.c: Allow GPLv2 or any later version.
9820 * elf/readlib.c: Likewise.
9821 * elf/chroot_canon.c: Likewise.
9822 * elf/cache.c: Likewise.
9823 * nscd/mem.c: Likewise.
9824 * nscd/getpwuid_r.c: Likewise.
9825 * nscd/grpcache.c: Likewise.
9826 * nscd/aicache.c: Likewise.
9827 * nscd/getsrvbynm_r.c: Likewise.
9828 * nscd/nscd.c: Likewise.
9829 * nscd/servicescache.c: Likewise.
9830 * nscd/getsrvbypt_r.c: Likewise.
9831 * nscd/initgrcache.c: Likewise.
9832 * nscd/gethstbyad_r.c: Likewise.
9833 * nscd/gethstbynm2_r.c: Likewise.
9834 * nscd/getgrnam_r.c: Likewise.
9835 * nscd/nscd_setup_thread.c: Likewise.
9836 * nscd/getpwnam_r.c: Likewise.
9837 * nscd/gai.c: Likewise.
9838 * nscd/connections.c: Likewise.
9839 * nscd/dbg_log.c: Likewise.
9840 * nscd/cache.c: Likewise.
9841 * nscd/hstcache.c: Likewise.
9842 * nscd/nscd_conf.c: Likewise.
9843 * nscd/getgrgid_r.c: Likewise.
9844 * nscd/pwdcache.c: Likewise.
9845 * catgets/gencat.c: Likewise.
9846 * locale/programs/linereader.h: Likewise.
9847 * locale/programs/locarchive.c: Likewise.
9848 * locale/programs/ld-paper.c: Likewise.
9849 * locale/programs/locfile-kw.h: Likewise.
9850 * locale/programs/ld-address.c: Likewise.
9851 * locale/programs/xmalloc.c: Likewise.
9852 * locale/programs/ld-time.c: Likewise.
9853 * locale/programs/localedef.c: Likewise.
9854 * locale/programs/simple-hash.c: Likewise.
9855 * locale/programs/xstrdup.c: Likewise.
9856 * locale/programs/ld-numeric.c: Likewise.
9857 * locale/programs/locfile-kw.gperf: Likewise.
9858 * locale/programs/ld-collate.c: Likewise.
9859 * locale/programs/charmap-kw.gperf: Likewise.
9860 * locale/programs/charmap.h: Likewise.
9861 * locale/programs/charmap-kw.h: Likewise.
9862 * locale/programs/config.h: Likewise.
9863 * locale/programs/locfile.c: Likewise.
9864 * locale/programs/ld-ctype.c: Likewise.
9865 * locale/programs/charmap.c: Likewise.
9866 * locale/programs/ld-messages.c: Likewise.
9867 * locale/programs/repertoire.h: Likewise.
9868 * locale/programs/locale.c: Likewise.
9869 * locale/programs/ld-name.c: Likewise.
9870 * locale/programs/linereader.c: Likewise.
9871 * locale/programs/locfile.h: Likewise.
9872 * locale/programs/3level.h: Likewise.
9873 * locale/programs/ld-monetary.c: Likewise.
9874 * locale/programs/ld-measurement.c: Likewise.
9875 * locale/programs/charmap-dir.c: Likewise.
9876 * locale/programs/ld-identification.c: Likewise.
9877 * locale/programs/localedef.h: Likewise.
9878 * locale/programs/charmap-dir.h: Likewise.
9879 * locale/programs/repertoire.c: Likewise.
9880 * locale/programs/simple-hash.h: Likewise.
9881 * locale/programs/ld-telephone.c: Likewise.
9882 * locale/programs/locale-spec.c: Likewise.
9883 * locale/programs/locfile-token.h: Likewise.
9884 * posix/getconf.c: Likewise.
9885 * iconv/dummy-repertoire.c: Likewise.
9886 * iconv/iconv_charmap.c: Likewise.
9887 * iconv/iconvconfig.c: Likewise.
9888 * iconv/iconv_prog.c: Likewise.
9889 * malloc/memusagestat.c: Likewise.
9890 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9892 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9894 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9895 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9896 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9897 check for the first argument.
9899 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9902 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9903 (__tgmath_real_type): Fix if expr is const int or other const
9904 qualified integral type.
9905 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9906 expressions and handle const qualified arguments.
9907 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9908 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9909 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9910 statement expressions.
9911 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9912 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9913 (__TGMATH_UNARY_IMAG): Define.
9914 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9915 * math/Makefile (tests): Add test-tgmath2.
9916 (CFLAGS-test-tgmath2.c): Add.
9917 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9918 count_cfloat, count_cldouble): New variables.
9920 (main): Check number of complex calls as well.
9921 (F(compile_test)): Add complex tests and tests with const qualified
9923 (y, z, ccount): Define.
9924 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9925 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9926 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9927 F(cproj)): New functions.
9928 * math/test-tgmath2.c: New test.
9930 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9933 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9934 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9936 * dlfcn/Makefile (distribute): Add glreflib3.c.
9937 (module-names): Add glreflib3.
9938 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9940 (LDFLAGS_glreflib3.so): New.
9941 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9943 * dlfcn/glreflib3.c: New file.
9945 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9946 returned -1, return NULL.
9947 * intl/explodename.c (_nl_explode_name): Return -1 if
9948 _nl_normalize_codeset failed.
9950 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9952 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9953 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9954 and avoid branch misspredicts for > 31 bytes memset case.
9955 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9956 Remove toc ref to __cache_line_size.
9958 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9959 to get ISA-V2.0 branch hints.
9960 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9961 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9962 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9963 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9964 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9965 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9966 Remove toc ref to __cache_line_size.
9968 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9969 Include math_ldbl_opt.h.
9971 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9974 * time/strptime_l.c (__strptime_internal): Implement greedy
9975 matching of weekday and month names.
9977 2007-07-09 Roland McGrath <roland@redhat.com>
9979 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9980 (ELF_NOTE_ABI): Use it.
9981 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9983 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9985 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9986 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9988 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9991 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9992 in loop to look for conversion specifier to avoid testing of
9994 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9995 * stdio-common/bug18.c: New file.
9996 * stdio-common/bug18a.c: New file.
9997 * stdio-common/bug19.c: New file.
9998 * stdio-common/bug19a.c: New file.
10000 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10002 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10003 running awk script.
10005 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10007 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10008 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10009 Return NULL if mmap failed instead of asserting it does not.
10010 (calloc): Check for integer overflow.
10012 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10013 than LONG_MAX / 10.
10015 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10018 * nis/nss-default.c: Include errno.h.
10019 (init): Preserve errno.
10021 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10023 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10025 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10027 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10029 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10031 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10033 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10035 * sysdeps/s390/dl-procinfo.c: New file.
10036 * sysdeps/s390/dl-procinfo.h: New file.
10037 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10039 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10041 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10042 in PT_NOTE segments with multiple notes.
10043 * elf/readelflib.c (process_elf_file): Likewise.
10045 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10047 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10050 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10052 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10054 2007-06-13 Jakub Jelinek <jakub@redhat.com>
10056 * include/link.h: Don't include rtld-lowlevel.h.
10057 (struct link_map): Remove l_scope_lock.
10058 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10059 (_dl_scope_free_list): New field (variable) in _rtld_global.
10060 (DL_LOOKUP_SCOPE_LOCK): Remove.
10061 (_dl_scope_free): New prototype.
10062 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10063 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10064 (_dl_profile_fixup): Likewise.
10065 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
10066 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10067 THREAD_GSCOPE_RESET_FLAG around it.
10068 * elf/dl-close.c (_dl_close_worker): Don't use
10069 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
10070 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
10071 scopes were queued or if l_scope_mem has been abandoned.
10072 * elf/dl-open.c (_dl_scope_free): New function.
10073 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
10074 * elf/dl-support.c (_dl_scope_free_list): New variable.
10075 * elf/dl-lookup.c (add_dependency): Remove flags argument.
10076 Remove DL_LOOKUP_SCOPE_LOCK handling.
10077 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
10079 * elf/dl-object.c (_dl_new_object): Don't use
10080 __rtld_mrlock_initialize.
10082 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10084 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10086 (rtld_global_ro): Likewise.
10088 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10090 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10091 Move PT_LOAD checking to...
10092 (_dl_addr_inside_object): ... here, new function.
10093 * elf/dl-sym.c (do_sym): If not l_contiguous,
10094 call _dl_addr_inside_object.
10095 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10096 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10097 * elf/dl-open.c (dl_open_worker): Likewise.
10098 (_dl_addr_inside_object): New function if IS_IN_rtld.
10099 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10100 holes are present or are PROT_NONE protected.
10101 * include/link.h (struct link_map): Add l_contiguous field.
10102 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10104 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10105 Tomas Janousek <tjanouse@redhat.com>
10106 Ulrich Drepper <drepper@redhat.com>
10109 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
10110 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10112 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
10113 unused member a bitmap.
10114 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10115 servers are configured.
10117 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10119 * elf/rtld.c (dl_main): Don't call init_tls more than once.
10121 2007-06-17 Andreas Schwab <schwab@suse.de>
10123 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10125 2007-06-16 Andreas Jaeger <aj@suse.de>
10128 * sysdeps/unix/sysv/linux/sys/ptrace.h
10129 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10130 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10131 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10132 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10133 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10135 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10136 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10137 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10138 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10140 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10143 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10144 determining whether there are IPv4/IPv6 addresses, ignore loopback
10147 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10149 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10150 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10151 as the return type. Change type of "r" variable to CMPtype.
10152 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10153 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10154 * soft-fp/gedf2.c (__gedf2): Likewise.
10155 * soft-fp/gesf2.c (__gesf2): Likewise.
10156 * soft-fp/getf2.c (__getf2): Likewise.
10157 * soft-fp/ledf2.c (__ledf2): Likewise.
10158 * soft-fp/lesf2.c (__lesf2): Likewise.
10159 * soft-fp/letf2.c (__letf2): Likewise.
10160 * soft-fp/unorddf2 (__unorddf2): Likewise.
10161 * soft-fp/unordsf2 (__unordsf2): Likewise.
10162 * soft-fp/unordtf2 (__unordtf2): Likewise.
10164 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10166 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10167 make sure gcc doesn't mess around with this.
10169 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10171 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10173 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10175 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10176 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10177 at most once per _dl_close_worker.
10179 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10181 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10182 __sched_cpucount as const.
10183 * posix/sched_cpucount.c: Adjust.
10185 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10186 instruction for counting bits.
10187 * sysdeps/x86_64/sched_cpucount.c: New file.
10189 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10191 * configure.in: Avoid variable named BASH.
10192 * config.make.in: Likewise.
10193 Patch in part by Mike Frysinger.
10195 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10198 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10199 pseudo-zeros as zero.
10200 * sysdeps/x86_64/ldbl2mpn.c: New file.
10201 * sysdeps/ia64/ldbl2mpn.c: New file.
10203 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10205 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10206 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10207 Remove unreachable code at the end.
10209 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10211 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10212 ldbl-128ibm in comment.
10213 (fpclassifyl): Correct classification of denormals.
10214 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10215 return value for MIN denormal. Rewrite using long double math too
10216 correctly handle denormals and canonicalize the results.
10218 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10220 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10221 (__mpn_construct_long_double): Fix conversion where result ought
10222 to be smaller than __LDBL_MIN__, or the low double should be
10223 denormal. Fix decision where to negate low double - honor round
10225 * stdio-common/tst-sprintf2.c: Include string.h.
10226 (COMPARE_LDBL): Define.
10227 (TEST): Also test whether a string hexadecimal float representation
10228 can be parsed back to the number.
10229 (main): Add a couple of further tests.
10231 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10233 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10234 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10235 is non-zero, but smaller than 2 * __DBL_MIN__.
10236 * stdio-common/tst-sprintf2.c: New test.
10237 * stdio-common/Makefile (tests): Add tst-sprintf2.
10239 * math/test-misc.c (main): Don't run last batch of tests with
10240 IBM long double format.
10242 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10244 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10245 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10246 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10247 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10248 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10249 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10250 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10251 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10252 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10253 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10277 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10279 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10280 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10281 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10282 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10283 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10284 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10285 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10286 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10288 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10290 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10291 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10293 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10294 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10295 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10296 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10297 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10299 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10301 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10302 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10303 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10304 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10306 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10308 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10309 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10311 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10313 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10314 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10315 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10316 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10318 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10320 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10321 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10323 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10325 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10326 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10328 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10329 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10330 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10331 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10333 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10335 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10336 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10337 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10338 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10340 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10342 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10343 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10345 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10346 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10347 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10349 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10351 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10352 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10353 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10354 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10356 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10358 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10359 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10360 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10364 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10365 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10366 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10367 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10368 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10369 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10370 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10371 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10372 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10373 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10375 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10377 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10378 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10380 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10382 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10383 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10385 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10387 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10388 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10389 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10390 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10391 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10392 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10393 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10394 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10395 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10396 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10398 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10400 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10402 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10404 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10405 branch miss-predicts. Ensure that cache line crossing does not impact
10408 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10410 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10411 "../../powerpc32/power4/memcopy.h".
10412 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10413 "../../powerpc32/power4/wordcopy.c".
10415 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10417 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10418 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10419 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10420 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10421 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10422 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10424 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10426 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10428 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10430 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10431 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10432 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10433 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10434 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10435 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10436 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10437 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10439 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10441 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10443 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10445 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10446 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10447 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10448 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10449 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10450 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10451 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10453 2007-05-29 Roland McGrath <roland@redhat.com>
10455 * po/Makefile (po-sed-cmd): New variable.
10456 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10458 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10460 * crypt/md5-crypt.c: Fix comment.
10462 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10463 of crashing. When this is the case or if the reply is malformed,
10464 don't try to close the new file descriptor since it does not
10466 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10468 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10470 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10471 if __NR_utimensat is not defined.
10473 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10475 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10477 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10479 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10480 (open): Fix comment typos. Don't call __open_2 if flags
10481 is a compile time constant without O_CREAT.
10482 (__open64_2): Add nonnull attribute.
10483 (open64): Fix comment typos. Don't call __open64_2 if flags
10484 is a compile time constant without O_CREAT.
10485 (__openat_2): Add nonnull attribute, fix nonnull attribute
10487 (openat): Fix comment typos. Don't call __openat_2 if flags
10488 is a compile time constant without O_CREAT.
10489 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10491 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10492 is a compile time constant without O_CREAT.
10494 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10496 * Makerules (sysd-rules): Define PTW for ptw-* files.
10497 * Versions: Define GLIBC_2.7 for libc.
10498 * include/stdio.h: Declare __fortify_fail.
10499 * debug/fortify_fail.c: New file.
10500 * debug/Makefile (routines): Add fortify_fail.
10501 * debug/chk_fail.c: Use __fortify_fail.
10502 * debug/stack_chk_fail.c: Likewise.
10503 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10504 __openat64_2 for GLIBC_2.7.
10505 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10506 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10507 and fails if necessary.
10508 * io/open64.c: Likewise.
10509 * io/openat.c: Likewise.
10510 * io/openat64.c: Likewise.
10511 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10512 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10513 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10514 * io/bits/fcntl2.h: New file.
10515 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10517 * include/bits/fcntl2.h: New file.
10518 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10520 * sysdeps/unix/sysv/linux/open_2.c: New file.
10522 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10524 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10525 as second parameter to handle_intel.
10527 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10530 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10532 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10533 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10535 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10536 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10537 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10539 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10541 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10544 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10545 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10546 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10548 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10551 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10552 reinitialize workend at the start of each do_positional format spec
10553 loop, free workstart before do_positional loops.
10554 (printf_unknown): Fix size of work_buffer.
10555 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10557 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10558 (public_sET_STATe): If ms->version < 3, put all chunks into
10559 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10562 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10563 * malloc/hooks.c: Likewise.
10564 * malloc/arena.c: Likewise.
10565 * malloc/malloc.c (do_check_malloc_state): Don't assert
10566 n_mmaps is not greater than n_mmaps_max. This removes the need
10567 for the previous change.
10569 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10572 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10574 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10575 Define for kernel >= 2.6.22.
10577 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10579 * elf/dl-close.c (_dl_close_worker): When removing object from
10580 global scope, wait for all lookups to finish afterwards.
10581 * elf/dl-open.c (add_to_global): When global scope array must
10582 grow, allocate a new one and free old array only after all
10584 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10585 (_dl_lookup_symbol_x): Likewise.
10586 * elf/dl-support.c: Define _dl_wait_lookup_done.
10587 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10588 _dl_wait_lookup_done.
10590 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10591 not overlapping with arena.
10593 * malloc/mcheck.c (reallochook): If size==0, free the block.
10595 * rt/tst-shm.c: Use fstat64 instead of fstat.
10597 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10598 __NR_sync_file_range is not defined.
10600 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10602 Dummy files to prevent stub versions from being used.
10603 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10604 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10605 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10606 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10608 * version.h (VERSION): Set to 2.6.90.
10610 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10612 * version.h (VERSION): Define to 2.6.
10613 * include/features.h (__GLIBC_MINOR__): Define to 6.
10615 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10617 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10620 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10622 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10623 number of mmaps. n_mmaps_max is the target.
10624 * malloc/hooks.c: Likewise.
10625 * malloc/arena.c: Likewise.
10627 2007-05-12 Andreas Jaeger <aj@suse.de>
10629 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10632 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10634 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10635 adding new variables.
10637 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10638 optimize. Completely extend global scope array before making the
10639 new entries visible.
10641 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10643 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10644 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10647 * include/link.h: Move l_version and l_nversion members around to
10650 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10652 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10653 (__sched_setaffinity_new): If syscall was successful and
10654 RESET_VGETCPU_CACHE is defined, use it before returning.
10655 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10657 * io/sys/stat.h: Make sure struct timespec is defined for
10660 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10662 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10663 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10664 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10665 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10666 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10667 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10668 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10669 * io/sys/stat.h: Declare utimensat, futimens.
10670 * io/utimensat.c: New file.
10671 * io/futimens.c: New file.
10672 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10673 * sysdeps/unix/sysv/linux/futimens.c: New file.
10674 * io/Makefile (routines): Add utimensat, futimens.
10675 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10676 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10677 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10680 * include/sys/cdefs.h: Redefine __nonnull so that test for
10681 incorrect parameters in the libc code itself are not omitted.
10683 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10685 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10686 exception in addition to inexact when asked to raise only FE_INEXACT.
10689 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10692 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10695 * string/strfry.c (strfry): Make result more random.
10697 2007-05-07 Richard Henderson <rth@redhat.com>
10699 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10700 if __NO_LONG_DOUBLE_MATH.
10701 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10702 available in the compiler, add .arch directive to the assembly.
10704 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10706 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10707 compat_symbol to GLIBC_2_1.
10708 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10709 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10710 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10711 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10712 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10713 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10714 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10716 (__isnanl): New compat_symbol.
10718 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10719 Jakub Jelinek <jakub@redhat.com>
10721 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10722 (new_heap): Initialize mprotect_size.
10723 (grow_heap): When growing, only mprotect from mprotect_size till
10724 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10725 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10727 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10728 Peter Bergner <bergner@us.ibm.com>
10730 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10731 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10732 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10733 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10734 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10735 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10736 Call __fe_mask_env() if all FP exceptions disabled.
10737 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10738 from old FPSCR to new fenv to propagate DFP rounding modes.
10739 Call __fe_mask_env() if FP exceptions previously enabled.
10740 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10741 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10742 transitioning from all exceptions disabled to any exception enabled
10744 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10745 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10746 when transitioning from all exceptions disabled to any exception
10747 enabled or visa versa.
10748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10755 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10758 * posix/unistd.h: Remove __THROW from fdatasync.
10760 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10763 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10765 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10767 * stdio-common/vfprintf.c (process_string_arg): Optimize
10768 ridiculous precision in wide char code printing multi-byte string.
10769 Reported by Jim Meyering <jim@meyering.net>.
10772 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10773 boundaries to work around systems with overlapping binary loading.
10774 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10776 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10778 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10779 __mbsnrtowcs after last change.
10781 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10782 (get_ident): Likewise.
10784 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10786 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10787 with setting the sticky bit.
10788 * math/test-misc.c (main): Add more truncation tests.
10790 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10792 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10793 double in the function declaration.
10794 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10795 double in the function declaration.
10796 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10797 float in the function declaration.
10798 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10799 float in the function declaration.
10801 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10802 denormal operands. Do not generate FP_EX_DENORM exception.
10803 (FP_UNPACK_RAW_EP): Ditto.
10804 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10805 undefined _FP_UNPACK_RAW_E.
10806 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10807 undefined _FP_UNPACK_RAW_EP.
10808 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10809 undefined _FP_PACK_RAW_E.
10810 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10811 undefined _FP_PACK_RAW_EP.
10813 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10815 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10818 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10819 Jakub Jelinek <jakub@redhat.com>
10821 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10822 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10824 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10826 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10828 * math/test-misc.c (main): Add tests for rounding long double
10829 values close to smallest double denormalized value to double.
10831 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10833 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10834 condition for truncating to 0. Set sticky bit for such
10837 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10839 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10840 fixed length array for ignore.
10842 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10845 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10846 stack for large precisions.
10847 * stdio-common/test-vfprintf.c (main): Add test for large
10850 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10852 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10854 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10857 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10858 account in the size check.
10859 * resolv/tst-inet_ntop.c: New test.
10860 * resolv/Makefile (tests): Add tst-inet_ntop.
10862 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10863 Jakub Jelinek <jakub@redhat.com>
10866 * malloc/malloc.c: Keep separate list for first blocks on the bin
10867 lists with a given size. This helps skipping over list elements
10868 we know won't fit in two places.
10869 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10871 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10874 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10875 label to Teredo tunnel addresses 2001://32.
10877 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10879 * locale/programs/ld-collate.c (collate_read): Allow order_start
10882 * locale/programs/ld-collate.c (collate_read): Fix printing of
10886 * locale/C-translit.h.in: Add entry for U2044.
10889 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10890 hexa-decimal floats without exponent.
10891 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10893 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10895 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10896 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10897 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10898 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10900 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10903 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10905 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10906 of 0 after the out_fail label.
10908 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10911 * iconv/gconv_charset.h (strip): Allow ':'.
10912 * iconv/iconv_open.c (iconv_open): Adjust comment.
10914 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10916 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10919 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10922 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10923 alignment of buffer and tmp_buffer.
10924 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10925 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10926 alignment of buffer.
10927 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10928 bigger than INT_MAX.
10929 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10930 h_errnop arguments. Fail if buflen is too small.
10931 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10933 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10936 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10937 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10939 2007-04-22 Roland McGrath <roland@redhat.com>
10941 * elf/elf.h (NT_PRXFPREG): New macro.
10943 2007-04-19 Andreas Jaeger <aj@suse.de>
10946 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10947 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10950 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10952 * include/sys/mman.h: Mark madvise hidden.
10953 * misc/madvise.c: Add libc_hidden_def.
10955 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10957 * nis/nis_domain_of.c (__nis_domain_of): New function.
10958 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10959 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10960 * nis/nis_call.c (rec_dirsearch): Likewise.
10961 (first_shoot): Likewise. Remove search_parent_first argument.
10962 (struct nis_server_cache): Rename search_parent_first field
10964 (nis_server_cache_search, nis_server_cache_add): Rename
10965 search_parent_first argument to search_parent.
10966 (__nisfind_server): Likewise. If search_parent, call
10969 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10971 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10973 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10976 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10978 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10981 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10983 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10985 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10986 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10987 current number of locales in SUPPORTED.
10988 (create_archive): Initialize serial.
10989 (enlarge_archive): Preserve aliases rather than duplicating
10992 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10994 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10995 after _IO_un_link, not before it.
10997 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10998 special case handling when wcp == wstartp + 1. Fix a comment typo.
10999 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11001 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11003 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11004 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11005 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11007 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11008 _IO_file_xsgetn_maybe_mmap): Likewise.
11009 * libio/oldfileops.c (old_do_write): Likewise.
11010 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11011 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11012 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11013 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11014 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11015 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11016 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11017 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11018 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11019 _IO_file_underflow, _IO_file_underflow_mmap,
11020 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11021 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11022 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11023 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11024 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11025 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11026 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11027 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11028 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11029 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11030 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11031 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11032 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11033 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11034 _IO_adjust_column_internal, _IO_default_uflow_internal,
11035 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11036 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11037 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11038 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11039 _IO_file_close_it_internal, _IO_file_underflow_internal,
11040 _IO_file_overflow_internal, _IO_file_attach_internal,
11041 _IO_file_fopen_internal, _IO_file_sync_internal,
11042 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11043 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11044 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11045 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11046 _IO_seekpos_unlocked): Likewise.
11047 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11048 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11050 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11052 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11053 argument in xmalloc size computation.
11055 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11057 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11058 math_opt_barrier and math_force_eval macros.
11060 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11063 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11064 * sysdeps/i386/fpu/math_private.h: New file.
11065 * sysdeps/x86_64/fpu/math_private.h: New file.
11066 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11067 math_force_eval macros. Use "+m" constraint on asm rather than
11069 * math/s_nextafter.c (__nextafter): Likewise.
11070 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11072 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11073 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11074 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11075 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11076 math_opt_barrier and math_force_eval macros.
11077 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11078 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11079 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11080 (__nexttoward): Use math_opt_barrier and
11081 math_force_eval macros. Use "+m" constraint on asm rather than
11082 "=m" and "m". Only use asm to force double result if
11083 FLT_EVAL_METHOD is 2.
11084 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11085 (__nexttowardf): Use math_opt_barrier and
11086 math_force_eval macros. Use "+m" constraint on asm rather than
11087 "=m" and "m". Only use asm to force double result if
11088 FLT_EVAL_METHOD is not 0.
11089 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11090 (__nexttowardf): Use math_opt_barrier and
11091 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11092 x to float using asm.
11093 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11094 (__nldbl_nexttowardf): Use math_opt_barrier and
11095 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11096 x to float using asm.
11097 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11098 (__nexttowardf): Use math_opt_barrier and math_force_eval
11099 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
11100 * math/bug-nextafter.c (zero, inf): New variables.
11101 (main): Add new tests.
11102 * math/bug-nexttoward.c (zero, inf): New variables.
11103 (main): Add new tests.
11105 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11108 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11109 exceptions both in SW and MXCSR.
11110 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11111 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11112 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11113 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11114 in MXCSR if SSE is available.
11115 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11117 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11119 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11120 Return 0 rather than 1.
11121 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11122 Remove incorrect part of a comment. Fix argument to feraiseexcept.
11123 * math/test-fenv.c (feholdexcept_tests): New function.
11126 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11129 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11132 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11135 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11136 Reported by David Anderson <davea42@earthlink.net>.
11138 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11140 * posix/sys/wait.h: Remove unnecessary forward declaration.
11142 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11144 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11145 with obj->do_servers after first_shoot.
11147 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11149 * posix/Makefile (routines): Add sched_cpucount.
11150 (tests): Add tst-cpucount.
11151 * posix/sched_cpucount.c: New file.
11152 * posix/tst-cpucount.c: New file.
11153 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11154 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11155 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11156 * posix/sched.h: Define CPU_COUNT.
11158 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11160 * posix/fnmatch.c (STRUCT): Define.
11161 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11162 * posix/fnmatch_loop.c (struct STRUCT): New type.
11163 (FCT): Add ends argument. If ends != NULL and normal * is
11164 seen in the pattern, store current pattern and string pointers
11165 and return. Adjust recursive calls.
11166 (EXT): Adjust FCT callers.
11167 (STRUCT): Undef at the end of the file.
11168 * posix/Makefile (tests): Add tst-fnmatch2.
11169 * posix/tst-fnmatch2.c: New test.
11171 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11173 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11176 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11177 Change last argument to unsigned int.
11179 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11181 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11183 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11185 * config.h.in (HAVE_LIBCAP): Add.
11186 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11187 sys/capabilities.h.
11188 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11189 free_caps. Cast away const from 4th cap_set_flag argument.
11191 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11193 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11195 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11196 Add sync_file_range.
11197 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11199 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11201 * sysdeps/powerpc/bits/atomic.h
11202 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11203 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11204 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11205 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11206 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11207 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11208 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11209 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11210 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11211 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11212 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11213 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11214 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11215 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11216 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11217 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11218 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11219 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11220 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11221 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11223 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11225 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11226 (__cache_line_size): Define the variable here. Add
11227 attribute_hidden, remove weak_extern.
11228 (__libc_start_main): Set __cache_line_size
11230 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11231 (__cache_line_size): Define the variable here. Add
11232 attribute_hidden, remove weak_extern.
11233 (DL_PLATFORM_AUXV): Set __cache_line_size
11235 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11236 weak_extern, add attribute_hidden.
11237 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11239 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11241 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11243 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11246 * timezone/africa: Update from tzdata2007d.
11247 * timezone/asia: Likewise.
11248 * timezone/australasia: Likewise.
11249 * timezone/backward: Likewise.
11250 * timezone/europe: Likewise.
11251 * timezone/iso3166.tab: Likewise.
11252 * timezone/leapseconds: Likewise.
11253 * timezone/northamerica: Likewise.
11254 * timezone/southamerica: Likewise.
11255 * timezone/zone.tab: Likewise.
11257 * timezone/private.h: Update from tzcode2007d.
11258 * timezone/zdump.c: Likewise.
11259 * timezone/zic.c: Likewise.
11261 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11263 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11264 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11266 (nis_server_cache_search, nis_server_cache_add): New functions.
11267 (__nisfind_server): Use them. Add dbp and flags argument, if
11268 call __nisbind_create.
11269 (__nisbind_create): Add server_used and current_ep arguments,
11270 only call __nis_findfastest if server_used is ~0.
11271 (__do_niscall2, __prepare_niscall): Adjust callers.
11272 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11273 ckey_cache_euid, ckey_cache_lock): New variables.
11274 (get_ckey): New function.
11275 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11276 __pmap_getnisport. Save __pmap_getnisport result in
11277 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11279 * nis/nis_lookup.c (nis_lookup): Likewise.
11280 * nis/nis_table.c (nis_list): Likewise.
11281 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11284 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11285 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11286 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11287 _nss_nisplus_getservbyport_r): Likewise.
11288 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11289 _nss_nisplus_getnetbyaddr_r): Likewise.
11290 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11291 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11292 _nss_nisplus_getntohost_r): Likewise.
11293 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11294 _nss_nisplus_getrpcbynumber_r): Likewise.
11296 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11298 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11299 * configure: Rebuilt.
11301 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11303 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11305 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11308 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11311 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11313 * nscd/gai.c: Include alloca.h.
11314 (__libc_use_alloca): Define.
11316 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11318 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11320 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11321 (DL_DST_REQUIRED): Adjust user.
11323 * include/dlfcn.h (struct link_map): New forward decl.
11325 * inet/getnameinfo.c: Include stddef.h.
11326 (getnameinfo): Use offsetof.
11328 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11330 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11332 * string/strerror_l.c: Include stdlib.h.
11334 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11335 * config.make.in (gnu89-inline-CFLAGS): New variable.
11336 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11338 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11339 * argp/argp.h: Use it.
11340 * bits/mathinline.h: Likewise.
11341 * bits/sigset.h: Likewise.
11342 * bits/string.h: Likewise.
11343 * ctype/ctype.h: Likewise.
11344 * hurd/hurd.h: Likewise.
11345 * hurd/hurd/fd.h: Likewise.
11346 * hurd/hurd/port.h: Likewise.
11347 * hurd/hurd/signal.h: Likewise.
11348 * hurd/hurd/threadvar.h: Likewise.
11349 * hurd/hurd/userlink.h: Likewise.
11350 * io/sys/stat.h: Likewise.
11351 * libio/bits/stdio.h: Likewise.
11352 * libio/bits/stdio2.h: Likewise.
11353 * mach/lock-intern.h: Likewise.
11354 * mach/mach/mig_support.h: Likewise.
11355 * math/bits/cmathcalls.h: Likewise.
11356 * posix/bits/unistd.h: Likewise.
11357 * socket/bits/socket2.h: Likewise.
11358 * stdlib/bits/stdlib.h: Likewise.
11359 * stdlib/stdlib.h: Likewise.
11360 * string/argz.h: Likewise.
11361 * string/bits/string2.h: Likewise.
11362 * string/bits/string3.h: Likewise.
11363 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11364 * sysdeps/generic/inttypes.h: Likewise.
11365 * sysdeps/generic/machine-lock.h: Likewise.
11366 * sysdeps/generic/machine-sp.h: Likewise.
11367 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11368 * sysdeps/i386/i486/bits/string.h: Likewise.
11369 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11370 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11371 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11372 * sysdeps/mach/i386/machine-lock.h: Likewise.
11373 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11374 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11375 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11376 * sysdeps/s390/bits/string.h: Likewise.
11377 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11378 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11379 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11380 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11381 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11382 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11383 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11384 * wcsmbs/bits/wchar2.h: Likewise.
11385 * wcsmbs/wchar.h: Likewise.
11386 * stdlib/gmp.h: Likewise. Include <features.h> to get
11387 __extern_inline definition.
11389 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11391 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11395 * math/libm-test.inc (log_test): Test -Inf and NaN.
11396 (log10_test, log1p_test, log2_test): Test -Inf.
11397 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11398 FE_INVALID when argument is qNaN.
11399 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11400 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11401 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11402 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11403 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11404 testb $4, %ah and jump if non-zero.
11405 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11406 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11409 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11410 ancestors with the same depths.
11411 Patch by Niels Moeller <nisse@lysator.liu.se>.
11412 (filter_doc): Don't crash if argp is NULL.
11413 * argp/Makefile (tests): Add tst-argp2.
11414 * argp/tst-argp2.c: New test.
11417 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11419 (updwtmp_file): Likewise.
11422 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11423 (inet6_opt_append): Don't check extlen is big enough if extbuf
11425 (inet6_opt_finish): Likewise.
11426 * inet/Makefile (tests): Add test-inet6_opt.
11427 * inet/test-inet6_opt.c: New test.
11429 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11430 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11431 NLMSG_ERR. Instead use a page sized buffer.
11432 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11435 2007-03-14 Richard Henderson <rth@redhat.com>
11437 * sysdeps/alpha/fpu/s_llround.c: New file.
11438 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11439 * sysdeps/alpha/fpu/s_lround.c: New file.
11440 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11441 * sysdeps/alpha/fpu/s_round.c: New file.
11442 * sysdeps/alpha/fpu/s_roundf.c: New file.
11443 * sysdeps/alpha/fpu/s_trunc.c: New file.
11444 * sysdeps/alpha/fpu/s_truncf.c: New file.
11446 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11447 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11448 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11449 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11450 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11451 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11453 * sysdeps/alpha/fpu/s_fmax.S: New file.
11454 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11455 * sysdeps/alpha/fpu/s_fmin.S: New file.
11456 * sysdeps/alpha/fpu/s_fminf.S: New file.
11457 * sysdeps/alpha/fpu/s_isnan.c: New file.
11458 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11459 * sysdeps/alpha/fpu/s_llrint.c: New file.
11460 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11461 * sysdeps/alpha/fpu/s_lrint.c: New file.
11462 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11463 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11464 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11466 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11467 (__fdimf, fdimf, __fdim, fdim): Remove.
11468 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11469 (__isnanf, __isnan, __isnanl): New.
11471 2007-03-13 Richard Henderson <rth@redhat.com>
11473 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11475 2007-03-13 Richard Henderson <rth@redhat.com>
11477 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11478 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11479 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11480 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11481 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11482 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11484 2007-03-13 Richard Henderson <rth@redhat.com>
11486 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11487 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11488 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11489 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11490 Move to dl-auxv.h; initialize instead of extern weak.
11491 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11493 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11494 Extern instead of initialized.
11496 2007-03-13 Richard Henderson <rth@redhat.com>
11498 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11499 __sigsuspend_nocancel.
11501 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11503 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11504 172.16/12 address range.
11506 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11508 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11509 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11512 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11515 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11517 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11519 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11520 for x qNaN and y either +-inf or non-integer value.
11521 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11522 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11523 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11525 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11527 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11528 from sysdep_headers.
11530 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11532 * time/tzfile.c (find_transition): Instead of a linear search try to
11533 guess the transition index, use a linear search if the result is at
11534 most 10 transitions away from the guess or binary search otherwise.
11536 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11538 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11539 memory reallocation.
11541 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11543 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11544 and fix some typos.
11545 Optimize use of TOLOWER.
11548 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11549 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11550 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11553 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11554 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11557 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11558 (open_dir_stream): Likewise.
11559 * io/Makefile (tests): Add bug-ftw5.
11560 * io/bug-ftw5.c: New file.
11562 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11563 * nscd/servicescache.c (cache_addserv): Likewise.
11565 * nscd/grpcache.c (cache_addgr): In case a record changed on
11566 refresh, adjust key_copy.
11569 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11570 refresh, adjust key_copy.
11573 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11575 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11577 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11579 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11582 * stdio-common/vfscanf.c: Small cleanups throughout.
11584 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11587 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11588 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11589 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11590 Patch by Jared Casper <jaredcasper@gmail.com>.
11592 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11593 * sysdeps/unix/opendir.c: Likewise.
11594 * sysdeps/unix/readdir.c: Likewise.
11597 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11599 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11601 * stdio-common/vfscanf.c: Fix problems in width accounting.
11602 * stdio-common/tst-sscanf.c (double_tests): New tests.
11603 (main): Hook them up.
11605 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11606 More simplifications of floating-point reader.
11608 * stdio-common/Makefile (tests): Add tst-swscanf.
11609 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11611 * stdio-common/tst-swscanf.c: New file.
11613 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11616 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11617 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11618 Remove using for __jmp_buf_tag.
11619 * locale/locale.h (struct lconv): Also define in std namespace.
11620 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11623 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11624 using __libc_enable_secure.
11627 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11630 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11631 of names for ellipsises.
11634 * malloc/memusage.sh: Cleanups.
11635 * debug/xtrace.sh: Quoting and trap changes.
11637 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11639 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11641 * locale/iso-3166.def: Update entry for Serbia.
11642 * locale/iso-4217.def: Define RSD, remove CSD.
11644 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11645 and 64-bit operations.
11648 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11651 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11654 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11657 * assert/assert.h (assert): Simplify.
11658 (assert_perror): Likewise.
11659 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11661 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11664 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11665 change: don't pass NULL in place of an integer.
11667 2007-02-02 Bruno Haible <bruno@clisp.org>
11670 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11671 Add mapping for U+327E.
11672 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11673 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11674 mapping of 0xD9 0xE8.
11675 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11677 Reported by Jungshik Shin <jungshik@google.com>.
11680 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11681 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11682 Reported by Jungshik Shin <jungshik@google.com>.
11684 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11686 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11690 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11691 byte variants. Patch mostly be tom@tommay.net.
11693 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11696 * posix/glob.c (attribute_hidden): Define if not defined.
11697 (glob): Unescape dirname, filename or username when needed and not
11698 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11699 is NULL. Handle unescaped [ in pattern without closing ].
11700 Don't pass GLOB_CHECK down to recursive glob for directories.
11701 (__glob_pattern_type): New function.
11702 (__glob_pattern_p): Implement using __glob_pattern_type.
11703 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11704 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11705 Remove unreachable code.
11706 * posix/globtest.sh: Add a couple of new tests.
11708 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11710 * po/ru.po: Update from translation team.
11712 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11714 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11715 to the list of i486+ CPUs.
11716 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11718 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11720 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11721 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11724 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11726 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11728 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11729 * resolv/res_mkquery.c: Define __res_nopt.
11730 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11731 try adding EDNS0 record.
11732 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11733 EDNS0 record was send make sure we don't try it again.
11734 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11735 * include/resolv.h: Declare __res_nopt.
11737 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11740 * time/strptime_l.c (__strptime_internal): Set have_mon for
11741 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11742 have been computed from tm_yday and tm_year. Don't crash
11743 in day_of_the_week or day_of_the_year if not have_mon
11744 and tm_mon contains bogus value.
11745 * time/Makefile (tests): Add tst-strptime3.
11746 * time/tst-strptime3.c: New test.
11748 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11751 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11752 bit for RE_HAT_LISTS_NOT_NEWLINE.
11753 (build_charclass_op): Remove bogus comment.
11754 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11755 * posix/bug-regex27.c: New test.
11756 * posix/bug-regex28.c: New test.
11758 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11760 * po/sv.po: Update from translation team.
11762 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11764 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11766 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11768 * include/locale.h (__uselocale): Add libc_hidden_proto.
11769 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11771 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11774 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11776 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11778 (PTR_DEMANGLE): Real definition now that it's not the same as
11779 PRT_MANGLE anymore.
11780 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11782 * string/strerror_l.c: New file.
11783 * string/Makefile (routines): Add strerror_l.
11784 * string/string.h: Declare strerror_l.
11785 * string/Versions: Export strerror_l for GLIBC_2.6.
11787 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11789 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11790 as parameter. Construct request record. Try sending request
11791 before the first poll use, it usually succeeds. Adjust all
11793 * nscd/nscd-client.h: Define MAXKEYLEN.
11794 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11796 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11798 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11800 * nscd/nscd_helper.c: Include string.h.
11801 (__nscd_cache_search): Remove const qualifier from return value.
11802 On strict alignment architectures check hash entry and data head
11804 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11805 mmapped data during GC cycle contains garbage. If
11806 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11807 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11809 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11810 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11811 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11812 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11813 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11815 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11817 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11819 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11821 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11822 names not numbers in cfi_*.
11824 2007-01-26 Andreas Jaeger <aj@suse.de>
11826 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11827 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11828 Correct values of PER_HPUX and PER_OSF4.
11830 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11832 * elf/dl-minimal.c: Undefine _itoa first.
11833 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11834 * malloc/mtrace.c: Revert last change.
11835 * posix/wordexp.c: Likewise.
11837 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11839 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11840 and __geode__ to the list of i486+ CPUs.
11841 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11843 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11845 * stdio-common/_itoa.c: Include <limits.h>.
11846 * stdio-common/_itowa.c: Likewise.
11848 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11850 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11852 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11854 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11856 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11860 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11861 * stdio-common/Makefile (tests): Add bug17.
11862 * stdio-common/bug17.c: New file.
11864 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11866 * iconvdata/brf.c: New file.
11867 * iconvdata/testdata/BRF: New file.
11868 * iconvdata/testdata/BRF..UTF8: New file.
11869 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11870 * iconvdata/Makefile: Add rules to build BRF.
11871 * iconvdata/TESTS: Add BRF entry.
11872 * iconvdata/gconv-modules: Likewise.
11873 * iconvdata/tst-tables.sh: Likewise.
11875 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11877 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11878 type `long long int', not `long int'.
11879 (wcstoq): Likewise.
11881 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11883 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11884 of values on 64-bit platforms which are too large.
11886 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11887 Joe Kerian <jkerian@us.us.ibm.com>
11890 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11891 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11892 (__copysignl): Use signbit() for comparison.
11893 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11894 SET_LDOUBLE_WORDS64.
11897 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11898 (__ceill): Remove calls to fegetround(), fesetround().
11899 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11900 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11901 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11903 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11905 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11907 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11909 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11911 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11913 * csu/libc-start.c: Likewise.
11915 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11917 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11918 really work anyway.
11920 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11922 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11924 (handle_request): Remove unnecessary tests.
11926 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11928 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11930 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11931 workbits in semi-raw fraction.
11933 * math/test-misc.c: Add new tests.
11935 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11937 * math/basic-test.c: Include test-skeleton.c.
11938 (TEST_TRUNC): Define.
11939 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11940 (main): Rename to ...
11941 (do_test): ...this. Run new tests.
11942 (TEST_FUNCTION): Define.
11944 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11945 Joe Kerian <jkerian@us.us.ibm.com>
11948 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11949 handling for high words.
11950 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11951 and overflow for infinity.
11953 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11955 * nscd/connections.c (handle_request): Add a __builtin_expect.
11957 * nscd/connections.c (serv2db): Change type into structure which
11958 also says whether this is a request for data. Renamed to
11959 servinfo. All users changed.
11960 (handle_request): Much simpler test whether we should search the cache.
11962 * nscd/connections.c (handle_request): Fix thinko in selinux test
11965 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11966 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11967 it before getting dl_load_lock and then relock.
11968 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11969 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11970 case we unlocked the scope.
11971 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11972 _dl_lookup_symbol_x in case we locked the scope.
11973 (_dl_profile_fixup): Likewise.
11974 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11975 set DL_LOOKUP_SCOPE_LOCK.
11977 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11979 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11980 CFLAGS-getsrvbynpt_r.c.
11981 * nscd/getsrvbynm_r.c: New file.
11982 * nscd/getsrvbypt_r.c: New file.
11983 * nscd/nscd_getserv_r.c: New file.
11984 * nscd/servicescache.c: New file.
11985 * nscd/Makefile (routines): Add nscd_getserv_r.
11986 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11987 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11988 CFLAGS-getsrvbypt_r.c.
11989 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11990 table. Add entries for services database.
11991 * nscd/connections.c (serv2str): Mark as const. Add entries for
11993 (dbs): Add .reset_res and servdb initialization.
11994 (serv2db): Add entries for services database.
11995 (verify_persistent_db): Accept dbnr == servdb.
11996 (invalidate_cache): Rewrite database name recognition to use a table.
11997 Call res_init() if .reset_res is set for database.
11998 (handle_request): Add code to handle services database.
11999 * nscd/gai.c: Don't define __getservbyname_r.
12000 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12001 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12002 (serv_response_header): Define.
12003 (struct datahead): Add serv_response_header member.
12004 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12006 * nscd/nscd.conf: Add entries for services database.
12007 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12008 Declare serv_iov_disabled.
12009 Declare addservbyname, readdservbyname, addservbyport, and
12011 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12012 (find_db): Fix error message.
12013 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12014 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12015 * nscd/selinux.c (perms): Add entries for services database.
12016 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12017 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12019 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12020 * nscd/hstcache.c: Likewise.
12021 * nscd/pwdcache.c: Likewise.
12023 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12024 computation of keylen.
12026 * include/string.h: Only redefine strndupa if this is really for
12029 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12031 * nscd/nscd_gethst_r.c: Minor cleanups.
12033 * nscd/connections.c (handle_request): Check selinux permissions
12034 for all non-admin commands.
12036 * sysdeps/i386/i486/bits/atomic.h: Define
12037 atomic_compare_and_exchange_val_acq,
12038 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12039 using __sync_* built-ins for gcc >= 4.1.
12040 * sysdeps/x86_64/bits/atomic.h: Likewise.
12043 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12046 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
12048 * stdlib/tst-makecontext.c: Include errno.h. Change main()
12049 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
12050 (do_test): Check errno and exit(0) if ENOSYS.
12052 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12054 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12055 thousands separators.
12056 * stdlib/Makefile: Add rules to build and run tst-strtod4.
12057 * stdlib/tst-strtod4.c: New test.
12060 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12061 hexadecimal digit should accept just the initial 0.
12062 * stdlib/tst-strtod2.c (tests): New variable.
12063 (do_test): Run several tests rather than just one.
12065 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12067 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12068 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12070 2007-01-10 Ulrich Drepper <drepper@redhat.com>
12072 * io/fts.c: Make sure fts_cur is always valid after return from
12074 Patch by Miloslav Trmac <mitr@redhat.com>.
12076 2006-10-27 Richard Sandiford <richard@codesourcery.com>
12078 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12079 (R_MIPS_NUM): Bump by 1.
12081 2007-01-03 Jakub Jelinek <jakub@redhat.com>
12083 * posix/execvp.c: Include alloca.h.
12084 (allocate_scripts_argv): Renamed to...
12085 (scripts_argv): ... this. Don't allocate buffer here nor count
12087 (execvp): Use alloca if possible.
12088 * posix/Makefile: Add rules to build and run tst-vfork3 test.
12089 * posix/tst-vfork3.c: New test.
12091 2007-01-03 Ulrich Drepper <drepper@redhat.com>
12093 * string/Makefile (tst-strxfrm2-ENV): Define.
12094 * stdlib/Makefile (tst-strtod3-ENV): Define.
12096 2007-01-02 Ulrich Drepper <drepper@redhat.com>
12098 * posix/getconf.c: Update copyright year.
12099 * nss/getent.c: Likewise.
12100 * iconv/iconvconfig.c: Likewise.
12101 * iconv/iconv_prog.c: Likewise.
12102 * elf/ldconfig.c: Likewise.
12103 * catgets/gencat.c: Likewise.
12104 * csu/version.c: Likewise.
12105 * elf/ldd.bash.in: Likewise.
12106 * elf/sprof.c (print_version): Likewise.
12107 * locale/programs/locale.c: Likewise.
12108 * locale/programs/localedef.c: Likewise.
12109 * nscd/nscd.c (print_version): Likewise.
12110 * debug/xtrace.sh: Likewise.
12111 * malloc/memusage.sh: Likewise.
12112 * malloc/mtrace.pl: Likewise.
12113 * debug/catchsegv.sh: Likewise.
12115 2006-12-24 Ulrich Drepper <drepper@redhat.com>
12117 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12120 2006-12-23 Ulrich Drepper <drepper@redhat.com>
12122 * posix/wordexp.c: Remove some unnecessary tests.
12124 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
12126 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12127 blacklist the group till after we look it up.
12129 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12131 * include/atomic.h (atomic_forced_read): New macro.
12133 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12135 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12137 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12139 * nss/getXXbyYY_r.c: Include atomic.h.
12140 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12141 add atomic_write_barrier () in between.
12143 * stdlib/Makefile (tests): Add tst-makecontext.
12144 * stdlib/tst-makecontext.c: New test.
12146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12147 (__makecontext): Don't realign uc_mcontext.uc_regs.
12149 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12151 * elf/dl-support.c: Include dl-procinfo.h.
12152 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12153 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12154 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12156 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12157 hardcoded constants.
12158 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12159 PPC_PLATFORM_* macros for array designators.
12161 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12163 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12164 names to the beginning.
12165 (_dl_powerpc_platforms): Add "power6x".
12166 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12167 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12168 (_DL_PLATFORMS_COUNT): Increase.
12169 (_dl_string_platform): Handle power6x case.
12170 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12171 PPC_FEATURE_POWER6_EXT): Define.
12172 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12174 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12177 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12178 [-2^31 .. 2^31) range.
12179 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12181 * stdlib/tst-rand48-2.c: New test.
12182 * stdlib/Makefile (tests): Add tst-rand48-2.
12184 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12186 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12188 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12190 * misc/tst-pselect.c (do_test): Make sure the helper process is
12191 terminating when the test is aborted.
12193 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12195 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12196 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12197 Handle relatime mount option.
12200 * libio/Makefile (tests): Add tst-setvbuf1.
12201 * libio/tst-setvbuf1.c: New file.
12203 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12206 * libio/genops.c (__uflow): Fix a typo.
12207 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12208 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12209 the narrow buffer size.
12211 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12214 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12215 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12216 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12218 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12219 _IO_wstr_finish): Likewise.
12220 * libio/wmemstream.c (open_wmemstream): Likewise.
12221 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12222 even for wide streams.
12224 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12229 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12231 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12232 separators also if no non-zero digits found.
12233 * stdlib/Makefile (tests): Add tst-strtod3.
12235 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12238 * include/features.h: Fix comment about default value for
12242 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12243 empty parsed strings.
12244 * stdlib/Makefile (tests): Add tst-strtod2.
12245 * stdlib/tst-strtod2.c: New file.
12248 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12250 * stdlib/Makefile (tests): Add tst-atof2.
12251 * stdlib/tst-atof2.c: New file.
12254 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12255 correctly if removing trailing zero of hex-float.
12256 * stdlib/Makefile (tests): Add tst-atof1.
12257 * stdlib/tst-atof1.c: New file.
12259 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12261 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12262 Start searching for next comma at p rather than rest.
12263 * misc/Makefile (tests): Add tst-mntent2.
12264 * misc/tst-mntent2.c: New test.
12266 * misc/getusershell.c (initshells): Check for integer overflows.
12267 Make strings buffer one bigger as fgets always succeeds when second
12268 argument is 1. Don't use calloc for shells array. Disallow
12271 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12273 * malloc/memusage.c: Handle realloc with new size of zero and
12274 non-NULL pointer correctly.
12275 (me): Really write first record twice.
12276 (struct entry): Make format bi-arch safe.
12277 (dest): Write out more realloc statistics.
12278 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12280 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12282 * nis/nis_subr.c (nis_getnames): Revert last change.
12284 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12286 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12287 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12288 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12289 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12291 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12292 * io/tst-ttyname_r.c: New test.
12294 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12296 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12298 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12300 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12301 jump table entries.
12303 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12305 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12306 `clone' function to ensure proper unwinding stop of gdb.
12307 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12309 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12311 * nscd/nscd.init: Remove obsolete and commented-out -S option
12314 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12317 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12320 * manual/string.texi (strtok): Remove duplicate paragraph.
12322 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12324 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12325 libgcc not supporting `rflags' unwinding (register # >= 17).
12327 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12329 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12332 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12333 Jakub Jelinek <jakub@redhat.com>
12334 Jan Kratochvil <jan.kratochvil@redhat.com>
12336 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12337 unwind information.
12338 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12339 'restore_rt' even in the 'signal' directory.
12340 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12342 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12345 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12346 malloc crashed. Don't allocate memory unnecessarily in each
12349 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12351 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12353 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12355 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12357 2006-11-18 Bruno Haible <bruno@clisp.org>
12359 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12360 __sysconf only after having tried to call getgroups32.
12362 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12364 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12365 addresses for IPv4 queries if they can be mapped.
12367 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12369 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12370 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12371 (signmask): Add .size directive.
12372 (othermask): Add .type directive.
12374 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12376 * po/nl.po: Update from translation team.
12378 * timezone/zdump.c: Redo fix for BZ #3137.
12380 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12382 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12383 to first_unused after parsing :include: file.
12385 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12387 * timezone/africa: Update from tzdata2006o.
12388 * timezone/antarctica: Likewise.
12389 * timezone/asia: Likewise.
12390 * timezone/australasia: Likewise.
12391 * timezone/backward: Likewise.
12392 * timezone/europe: Likewise.
12393 * timezone/iso3166.tab: Likewise.
12394 * timezone/northamerica: Likewise.
12395 * timezone/southamerica: Likewise.
12396 * timezone/zone.tab: Likewise.
12398 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12399 on machines with 64-bit time_t.
12401 * timezone/checktab.awk: Update from tzcode2006o.
12402 * timezone/ialloc.c: Likewise.
12403 * timezone/private.h: Likewise.
12404 * timezone/scheck.c: Likewise.
12405 * timezone/tzfile.h: Likewise.
12406 * timezone/tzselect.ksh: Likewise.
12407 * timezone/zdump.c: Likewise.
12408 * timezone/zic.c: Likewise.
12411 * elf/ldconfig.c (main): Call setlocale and textdomain.
12412 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12415 * manual/argp.texi: Fix typos.
12416 * manual/charset.texi: Likewise.
12417 * manual/errno.texi: Likewise.
12418 * manual/filesys.texi: Likewise.
12419 * manual/lang.texi: Likewise.
12420 * manual/maint.texi: Likewise.
12421 * manual/memory.texi: Likewise.
12422 * manual/message.texi: Likewise.
12423 * manual/resource.texi: Likewise.
12424 * manual/search.texi: Likewise.
12425 * manual/signal.texi: Likewise.
12426 * manual/startup.texi: Likewise.
12427 * manual/stdio.texi: Likewise.
12428 * manual/sysinfo.texi: Likewise.
12429 * manual/syslog.texi: Likewise.
12430 * manual/time.texi: Likewise.
12431 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12434 * sunrpc/clnt_raw.c: Minimal message improvements.
12435 * sunrpc/pm_getmaps.c: Likewise.
12436 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12437 * nis/nis_print_group_entry.c: Likewise.
12438 * locale/programs/repertoire.c: Likewise.
12439 * locale/programs/charmap.c: Likewise.
12440 * malloc/memusage.sh: Likewise.
12441 * elf/dl-deps.c: Likewise.
12442 * locale/programs/ld-collate.c: Likewise.
12443 * libio/vswprintf.c: Likewise.
12444 * malloc/memusagestat.c: Likewise.
12445 * sunrpc/auth_unix.c: Likewise.
12446 * sunrpc/rpc_main.c: Likewise.
12447 * nscd/cache.c: Likewise.
12448 * locale/programs/repertoire.c: Unify output messages.
12449 * locale/programs/charmap.c: Likewise.
12450 * locale/programs/ld-ctype.c: Likewise.
12451 * locale/programs/ld-monetary.c: Likewise.
12452 * locale/programs/ld-numeric.c: Likewise.
12453 * locale/programs/ld-time.c: Likewise.
12454 * elf/ldconfig.c: Likewise.
12455 * nscd/selinux.c: Likewise.
12456 * elf/cache.c: Likewise.
12457 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12460 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12464 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12466 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12467 if N is one bigger than return value.
12468 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12469 and l1 last arguments, if buf is defined, verify the return value
12470 equals to strlen (buf) and verify no byte beyond passed length
12473 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12475 * po/sv.po: Update from translation team.
12477 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12479 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12480 noinline attribute.
12482 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12484 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12485 noinline attribute.
12487 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12488 Use __new_sys_siglist instead of _sys_siglist_internal as
12489 second macro argument.
12490 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12493 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12496 * posix/unistd.h (sysconf): Remove const attribute.
12498 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12499 temporary or deprecated addresses.
12500 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12502 * string/Makefile (tests): Add tst-strxfrm2.
12503 * string/tst-strxfrm2.c: New file.
12505 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12507 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12508 rather than r->r_brk.
12510 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12512 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12513 optimization even if needed > n.
12515 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12516 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12517 return false, otherwise return true.
12518 (cache_rpath): Return decompose_rpath return value.
12520 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12522 * include/libc-symbols.h (declare_symbol): Rename to...
12523 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12524 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12526 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12528 * sysdeps/gnu/siglist.c: Likewise.
12530 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12532 * sysdeps/powerpc/fpu/bits/mathinline.h
12533 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12534 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12536 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12538 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12539 Update handling of cache descriptor 0x49 for new models.
12540 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12543 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12545 * malloc/memusage.c (dest): Reset not_me back to false after
12546 printing statistics.
12548 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12550 * configure.in: Work around ld --help change and avoid -z relro
12551 test completely if the architecture doesn't care about security.
12553 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12555 * po/sv.po: Update from translation team.
12557 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12559 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12560 generate compatibility version.
12562 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12564 * configure.in: Relax -z relro requirement a bit.
12566 * po/sv.po: Update from translation team.
12568 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12570 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12571 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12572 * elf/dl-close.c (_dl_close_worker): Likewise.
12573 * elf/dl-open.c (_dl_open_worker): Likewise.
12574 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12576 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12578 * configure.in: Require assembler support for visibility, compiler
12579 support for visibility and aliases, linker support for various -z
12581 * Makeconfig: Remove conditional code which now is unnecessary.
12582 * config.h.in: Likewise.
12583 * config.make.in: Likewise.
12584 * dlfcn/Makefile: Likewise.
12585 * elf/Makefile: Likewise.
12586 * elf/dl-load.c: Likewise.
12587 * elf/rtld.c: Likewise.
12588 * include/libc-symbols.h: Likewise.
12589 * include/stdio.h: Likewise.
12590 * io/Makefile: Likewise.
12591 * io/fstat.c: Likewise.
12592 * io/fstat64.c: Likewise.
12593 * io/fstatat.c: Likewise.
12594 * io/fstatat64.c: Likewise.
12595 * io/lstat.c: Likewise.
12596 * io/lstat64.c: Likewise.
12597 * io/mknod.c: Likewise.
12598 * io/mknodat.c: Likewise.
12599 * io/stat.c: Likewise.
12600 * io/stat64.c: Likewise.
12601 * libio/stdio.c: Likewise.
12602 * nscd/Makefile: Likewise.
12603 * stdlib/Makefile: Likewise.
12604 * stdlib/atexit.c: Likewise.
12605 * sysdeps/generic/ldsodefs.h: Likewise.
12606 * sysdeps/i386/dl-machine.h: Likewise.
12607 * sysdeps/i386/sysdep.h: Likewise.
12608 * sysdeps/i386/i686/memcmp.S: Likewise.
12609 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12610 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12611 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12613 * Makerules: USE_TLS support is now default.
12614 * tls.make.c: Likewise.
12615 * csu/Versions: Likewise.
12616 * csu/libc-start.c: Likewise.
12617 * csu/libc-tls.c: Likewise.
12618 * csu/version.c: Likewise.
12619 * dlfcn/dlinfo.c: Likewise.
12620 * elf/dl-addr.c: Likewise.
12621 * elf/dl-cache.c: Likewise.
12622 * elf/dl-close.c: Likewise.
12623 * elf/dl-iteratephdr.c: Likewise.
12624 * elf/dl-load.c: Likewise.
12625 * elf/dl-lookup.c: Likewise.
12626 * elf/dl-object.c: Likewise.
12627 * elf/dl-open.c: Likewise.
12628 * elf/dl-reloc.c: Likewise.
12629 * elf/dl-support.c: Likewise.
12630 * elf/dl-sym.c: Likewise.
12631 * elf/dl-sysdep.c: Likewise.
12632 * elf/dl-tls.c: Likewise.
12633 * elf/ldconfig.c: Likewise.
12634 * elf/rtld.c: Likewise.
12635 * elf/tst-tls-dlinfo.c: Likewise.
12636 * elf/tst-tls1.c: Likewise.
12637 * elf/tst-tls10.h: Likewise.
12638 * elf/tst-tls14.c: Likewise.
12639 * elf/tst-tls2.c: Likewise.
12640 * elf/tst-tls3.c: Likewise.
12641 * elf/tst-tls4.c: Likewise.
12642 * elf/tst-tls5.c: Likewise.
12643 * elf/tst-tls6.c: Likewise.
12644 * elf/tst-tls7.c: Likewise.
12645 * elf/tst-tls8.c: Likewise.
12646 * elf/tst-tls9.c: Likewise.
12647 * elf/tst-tlsmod1.c: Likewise.
12648 * elf/tst-tlsmod13.c: Likewise.
12649 * elf/tst-tlsmod13a.c: Likewise.
12650 * elf/tst-tlsmod14a.c: Likewise.
12651 * elf/tst-tlsmod2.c: Likewise.
12652 * elf/tst-tlsmod3.c: Likewise.
12653 * elf/tst-tlsmod4.c: Likewise.
12654 * elf/tst-tlsmod5.c: Likewise.
12655 * elf/tst-tlsmod6.c: Likewise.
12656 * include/errno.h: Likewise.
12657 * include/link.h: Likewise.
12658 * include/tls.h: Likewise.
12659 * locale/global-locale.c: Likewise.
12660 * locale/localeinfo.h: Likewise.
12661 * malloc/arena.c: Likewise.
12662 * malloc/hooks.c: Likewise.
12663 * malloc/malloc.c: Likewise.
12664 * resolv/Versions: Likewise.
12665 * sysdeps/alpha/dl-machine.h: Likewise.
12666 * sysdeps/alpha/libc-tls.c: Likewise.
12667 * sysdeps/generic/ldsodefs.h: Likewise.
12668 * sysdeps/generic/tls.h: Likewise.
12669 * sysdeps/i386/dl-machine.h: Likewise.
12670 * sysdeps/ia64/dl-machine.h: Likewise.
12671 * sysdeps/ia64/libc-tls.c: Likewise.
12672 * sysdeps/mach/hurd/fork.c: Likewise.
12673 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12674 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12675 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12676 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12677 * sysdeps/s390/libc-tls.c: Likewise.
12678 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12679 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12680 * sysdeps/sh/dl-machine.h: Likewise.
12681 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12682 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12683 * sysdeps/x86_64/dl-machine.h: Likewise.
12685 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12686 split out locking and parameter checking.
12687 (_dl_close): Call _dl_close_worker after locking and checking.
12688 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12690 * elf/Makefile: Add rules to build and run tst-thrlock.
12691 * elf/tst-thrlock.c: New file.
12694 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12698 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12699 we are sure we do not need it anymore for _dl_close. Also move
12700 the asserts inside the lock region.
12701 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12703 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12705 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12707 (_dl_lookup_symbol_x): Adjust caller.
12709 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12711 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12713 * elf/dl-libc.c: Revert l_scope name changes.
12714 * elf/dl-load.c: Likewise.
12715 * elf/dl-object.c: Likewise.
12716 * elf/rtld.c: Likewise.
12717 * elf/dl-close.c (_dl_close): Likewise.
12718 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12719 always use __rtld_mrlock_{change,done}. Always free old scope list
12720 here if not l_scope_mem.
12721 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12722 change. Never free scope list here. Just __rtld_mrlock_lock before
12723 the lookup and __rtld_mrlock_unlock it after the lookup.
12724 * elf/dl-sym.c: Likewise.
12725 * include/link.h (struct r_scoperec): Remove.
12726 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12727 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12729 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12731 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12733 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12735 * configure.in: Disable building profile libraries by default.
12737 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12739 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12740 as signed longs, check for x_base + pos overflow.
12741 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12742 * sunrpc/tst-xdrmem2.c: New test.
12744 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12746 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12747 _dl_lookup_symbol_x code.
12749 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12751 * elf/dl-runtime.c: Include sysdep-cancel.h.
12752 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12753 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12754 instead of catomic_* macros.
12755 * elf/dl-sym.c: Include sysdep-cancel.h.
12756 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12757 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12758 * elf/dl-close.c: Include sysdep-cancel.h.
12759 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12760 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12761 * elf/dl-open.c: Include sysdep-cancel.h.
12762 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12763 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12765 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12768 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12769 fastbin rather than end of fastbin array.
12771 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12773 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12775 * sysdeps/x86_64/bits/atomic.h
12776 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12777 (catomic_decrement): Use correct body macro.
12779 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12781 * include/atomic.h: Add a unique prefix to all local variables
12783 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12785 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12788 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12791 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12793 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12795 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12798 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12799 determine highest fast bin to consolidate, always look into all of
12801 (do_check_malloc_state): Only require for empty bins for large
12802 sizes in main arena.
12804 * libio/stdio.h: Add more __wur attributes.
12806 * elf/dl-minimal.c (realloc): Optimize last patch.
12808 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12811 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12812 and use memcpy() if it does.
12814 2006-11-12 Andreas Jaeger <aj@suse.de>
12817 * manual/search.texi (Hash Search Function): Clarify.
12818 (Array Search Function): Clarify.
12820 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12823 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12825 * math/atest-exp2.c (read_mpn_hex): Likewise.
12826 * math/atest-sincos.c (main): Likewise.
12828 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12830 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12831 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12832 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12834 * Versions.def: Add GLIBC_2.6 for libc.
12836 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12838 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12840 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12842 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12844 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12846 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12847 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12849 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12851 * include/atomic.c: Define catomic_* operations.
12852 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12853 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12854 * malloc/memusage.c: Likewise.
12855 * gmon/mcount.c: Likewise.
12856 * elf/dl-close.c: Likewise.
12857 * elf/dl-open.c: Likewise.
12858 * elf/dl-profile.c: Likewise.
12859 * elf/dl-sym.c: Likewise.
12860 * elf/dl-runtime.c: Likewise.
12861 * elf/dl-fptr.c: Likewise.
12862 * resolv/res_libc.c: Likewise.
12864 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12866 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12867 components which lack them.
12869 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12870 at least one entry consisting of the parameter concatenated with
12873 2006-10-10 Roland McGrath <roland@frob.com>
12875 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12876 * sysdeps/mach/hurd/futimes.c: Likewise.
12877 * sysdeps/mach/hurd/lutimes.c: Likewise.
12879 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12880 Jakub Jelinek <jakub@redhat.com>
12882 Implement reference counting of scope records.
12883 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12884 from the list in objects which remain. Always allocate new scope
12886 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12887 don't resize, allocate a new one.
12888 * elf/dl-runtime.c: Update reference counters before using a scope
12890 * elf/dl-sym.c: Likewise.
12891 * elf/dl-libc.c: Adjust for l_scope name change.
12892 * elf/dl-load.c: Likewise.
12893 * elf/dl-object.c: Likewise.
12894 * elf/rtld.c: Likewise.
12895 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12896 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12897 Add l_scoperec_lock.
12898 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12899 * sysdeps/generic/rtld-lowlevel.h: New file.
12901 * include/atomic.h: Rename atomic_and to atomic_and_val and
12902 atomic_or to atomic_or_val. Define new macros atomic_and and
12903 atomic_or which do not return values.
12904 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12906 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12908 * po/sv.po: Update from translation team.
12910 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12912 * Versions.def: Add GLIBC_2.6 to libpthread.
12914 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12915 (versioned_symbol): Likewise.
12916 (compat_symbol): Likewise.
12918 * po/tr.po: Update from translation team.
12920 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12922 * nis/Banner: Removed. It's been integral part forever and the
12923 author info is incomplete anyway.
12924 * libio/Banner: Likewise.
12926 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12927 code, make sure the nis_freeresult call doesn't crash and that the
12928 result is reported correctly.
12930 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12932 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12933 when callback is NULL.
12935 * nis/Versions (libnss_nisplus): Add
12936 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12937 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12938 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12939 _nss_create_tablename): Rename to...
12940 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12941 ... these. No longer static.
12942 (internal_setgrent): Adjust users.
12943 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12944 Don't use locking around _nss_grp_create_tablename call.
12945 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12947 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12949 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12951 2006-10-06 Andreas Jaeger <aj@suse.de>
12953 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12955 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12957 * po/pl.po: Update from translation team.
12959 * nscd/nscd.c (main): Fix typo in message.
12960 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12962 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12965 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12966 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12967 (__sigprocmask): Define.
12969 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12971 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12974 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12976 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12977 in oldtotal and newtotal calculation.
12978 * nscd/nscd-client.h (struct mapped_database): Add datasize
12980 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12981 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12983 (__nscd_cache_search): Add checks to make sure we never reference
12984 data beyond the current mapping.
12986 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12988 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12989 variables const to avoid compiler warnings.
12991 * io/fts.c (fts_close): Remove redundant checks.
12992 (fts_build): Likewise.
12993 (fts_palloc): Likewise.
12995 * manual/message.texi (Advanced gettext functions,
12996 Using gettextized software): Fix typos.
12998 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13000 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13001 explain why there are no leaks.
13003 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13005 * libio/wmemstream.c: Include <wchar.h>.
13006 * libio/bug-wmemstream1.c: Likewise.
13007 * libio/tst-wmemstream1.c: Likewise.
13008 * libio/tst-wmemstream2.c: Likewise.
13010 * version.h (RELEASE): Bump to 2.5.
13011 * README: Regenerated.
13013 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13016 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13017 found no group members.
13018 Patch by Petr Baudis.
13020 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13022 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13023 assert bootstrap_map.l_tls_modid is zero.
13024 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13027 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13029 * libio/stdio.h: Move open_wmemstream prototype to ...
13030 * wcsmbs/wchar.h: ... here.
13032 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13035 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13036 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13037 __{,l}chown to handle the rest.
13038 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13039 fchownat syscall and __ASSUME_32BITUIDS case inline, call
13040 __{,l}chown to handle the rest.
13041 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13043 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13044 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13047 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13048 time, rather allocate increasingly bigger arrays of pointers, if
13049 possible with alloca, if too large with malloc.
13051 2006-09-24 Jakub Jelinek <jakub@redhat.com>
13053 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13055 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13057 2006-09-24 Ulrich Drepper <drepper@redhat.com>
13059 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13061 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13062 IFA_F_HOMEADDRESS flag for interfaces.
13063 * include/ifaddrs.h (struct in6addrinfo): Define
13066 2006-09-21 Jakub Jelinek <jakub@redhat.com>
13069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13070 PTR_DEMANGLE3): Define.
13071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13072 PTR_DEMANGLE3): Likewise.
13073 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13074 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13076 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13078 2006-09-20 Jakub Jelinek <jakub@redhat.com>
13080 * po/libc.pot: Regenerated.
13081 * po/be.po: Updated.
13082 * po/ca.po: Likewise.
13083 * po/cs.po: Likewise.
13084 * po/da.po: Likewise.
13085 * po/de.po: Likewise.
13086 * po/el.po: Likewise.
13087 * po/en_GB.po: Likewise.
13088 * po/es.po: Likewise.
13089 * po/fi.po: Likewise.
13090 * po/fr.po: Likewise.
13091 * po/gl.po: Likewise.
13092 * po/hr.po: Likewise.
13093 * po/hu.po: Likewise.
13094 * po/ja.po: Likewise.
13095 * po/ko.po: Likewise.
13096 * po/nb.po: Likewise.
13097 * po/nl.po: Likewise.
13098 * po/pl.po: Likewise.
13099 * po/pt_BR.po: Likewise.
13100 * po/ru.po: Likewise.
13101 * po/rw.po: Likewise.
13102 * po/sk.po: Likewise.
13103 * po/sv.po: Likewise.
13104 * po/tr.po: Likewise.
13105 * po/zh_CN.po: Likewise.
13106 * po/zh_TW.po: Likewise.
13109 * iconv/iconv_prog.c (main): Fix spelling in error message.
13110 * iconv/iconvconfig.c (main): Likewise.
13111 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13112 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13113 * locale/programs/localedef.c (main): Likewise.
13114 * locale/programs/repertoire.c (repertoire_read): Likewise.
13115 * timezone/zdump.c (main): Likewise.
13116 * nscd/connections.c (handle_request): Fix spelling in log message.
13117 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13119 2006-09-20 Ulrich Drepper <drepper@redhat.com>
13121 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13124 2006-09-20 Andreas Jaeger <aj@suse.de>
13126 * math/libm-test.inc (lrint_test_upward): Fix typo.
13128 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13131 * math/libm-test.inc (lrint_test_tonearest): New function.
13132 (lrint_test_towardzero): New function.
13133 (lrint_test_downward): New function.
13134 (lrint_test_upward): New function.
13135 (main): Run these new tests.
13136 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13137 of values near to 0.
13138 (two52): Use double not long double.
13139 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13140 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13141 (two23): Use float not double.
13142 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13143 (two23): Use float not double.
13144 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13145 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13146 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13147 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13149 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13151 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13152 Cast sp to unsigned long to avoid compiler warning.
13153 Use __makecontext_ret function instead of a trampoline on the stack.
13154 (__makecontext_ret): New function.
13155 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13157 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13159 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13160 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13163 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13165 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13166 sure no reference to the unloaded map's search list remains in the
13167 dependency's scope.
13169 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13171 * elf/Makefile: Add rules to build and run unload7 test.
13172 * elf/unload7.c: New test.
13173 * elf/unload7mod1.c: New file.
13174 * elf/unload7mod2.c: New file.
13176 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13178 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13179 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13180 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13181 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13182 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13183 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13184 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13185 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13186 PTRACE_GETEVENTMSG): Likewise.
13187 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13190 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13192 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13193 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13194 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13195 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13197 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13199 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13200 write '\0' to the fd.
13201 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13202 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13203 Change regs to unsigned long pointer from unsigned int, fix fscr
13206 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13208 * io/Makefile (CFLAGS-fstatat.c): Set.
13209 (CFLAGS-fstatat64.c): Likewise.
13210 (CFLAGS-mknodat.c): Likewise.
13212 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13213 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13214 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13215 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13217 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13218 Steven Munroe <sjmunroe@us.ibm.com>
13220 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13221 names to the beginning. Rename "cell" to "cellbe".
13222 (_dl_powerpc_platforms): New.
13223 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13224 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13225 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13226 (_DL_HWCAP_PLATFORM): Define to new mask.
13227 (_dl_platform_string, _dl_string_platform): New functions.
13228 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13229 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13231 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13234 * README.libm: Fix a thinko in sqrt algorithm description.
13237 * manual/string.texi (argz_delete): Fix prototype.
13238 Patch by <alpt@freaknet.org>.
13240 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13243 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13244 * io/tst-fcntl.c (do_prepare): Likewise.
13245 * posix/tst-exec.c (do_prepare): Likewise.
13246 * posix/tst-preadwrite.c (do_prepare): Likewise.
13247 * posix/tst-spawn.c (do_prepare): Likewise.
13248 * posix/tst-truncate.c (do_prepare): Likewise.
13249 * rt/tst-aio.c (do_prepare): Likewise.
13250 * rt/tst-aio64.c (do_prepare): Likewise.
13251 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13254 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13257 * time/mktime.c (guess_time_tm): Fix overflow detection.
13258 * time/Makefile (tests): Add bug-mktime1.
13259 * time/bug-mktime1.c: New file.
13262 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13263 (mremap): Likewise.
13265 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13268 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13269 Ensure relocation doesn't clobber any bits outside of the
13270 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13271 R_SPARC_HI22 and R_SPARC_H44.
13274 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13275 (long) (MINSIZE + nb - old_size) is positive.
13277 * malloc/arena.c (grow_heap): When growing bail even if new_size
13281 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13284 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13286 * posix/regex_internal.c (re_string_reconstruct): Handle
13287 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13288 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13289 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13290 re_string_context_at.
13291 * posix/Makefile: Add rules to build and run bug-regex26 test.
13292 * posix/bug-regex26.c: New test.
13294 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13295 rather than col_sym_free. Move seqp declaration earlier.
13297 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13299 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13301 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13302 decl before first goto out.
13304 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13306 * Makerules (shlib.lds): If have-hash-style, put .hash section
13307 at the end of the RO segment.
13309 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13311 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13312 style hash table format is used.
13314 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13316 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13317 randomization rather than before.
13318 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13320 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13322 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13324 * malloc/malloc.c (_int_malloc): Use full list insert and not
13325 shortcut which assumes the list is empty for large requests
13328 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13330 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13332 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13333 and offout arguments to the prototype.
13334 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13335 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13336 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13337 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13338 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13339 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13340 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13341 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13343 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13345 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13347 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13350 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13352 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13353 only if herrno is NETDB_INTERNAL. Handle errors other than
13354 ERANGE outside of the loops, handle TRY_AGAIN.
13356 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13357 if other's ctype category was missing.
13358 * locale/programs/ld-collate.c (collate_read): Return if
13359 copy_locale's collate category is missing.
13361 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13364 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13365 arenas if allocation failed.
13366 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13368 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13370 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13372 (malloc_state): Reduce bins size by 2.
13373 (_int_malloc): Fix test for large enough buffer for early termination.
13374 When no unsorted block matches perfectly and an exiting block has
13375 to be split, use full list insert and not shortcut which assumes
13378 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13381 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13383 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13386 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13387 symbol require exact match (these are PLTs).
13388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13389 (_dl_ppc64_addr_sym_match): Likewise.
13392 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13393 If symbol has a value use it.
13394 * elf/tst-dladdr1.c: New file.
13395 * elf/Makefile: Add rules to build and run tst-addr1.
13397 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13399 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13400 keeps failing and heap growth or new heap creation isn't
13402 * malloc/tst-malloc.c (main): Add new tests.
13404 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13407 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13408 as in the x86-64 code to use bswap.
13410 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13413 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13415 * posix/bits/unistd.h: Likewise.
13417 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13420 * string/strchr.c: Add cast to avoid warning.
13422 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13424 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13425 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13426 limit is needed to avoid the exploding of the address space
13427 requirement for secondary heaps.
13428 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13429 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13431 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13434 * Makerules (depfiles): Handle extra-test-objs the same as
13436 (common-mostlyclean): Likewise.
13437 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13439 * elf/Makefile (extra-objs): Likewise.
13440 * stdlib/Makefile (extra-objs): Likewise.
13442 2006-08-14 Eric Blake <ebb9@byu.net>
13445 * misc/error.h: Assume C89 or better.
13446 * misc/error.c: Likewise.
13448 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13451 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13452 __ASSUME_ATFCTS is defined.
13454 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13456 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13457 to sort in each call.
13459 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13460 is empty simply return and use next service.
13461 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13463 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13464 tells us when not finding a charmap file is an error.
13465 * locale/programs/charmap.h: Adjust charmap_read prototype.
13466 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13467 cannot find a charmap.
13468 * locale/programs/localedef.c (main): Adjust charmap_read call.
13470 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13472 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13473 sysdeps/posix/pause.c implementation instead.
13475 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13477 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13480 2006-08-13 Andreas Schwab <schwab@suse.de>
13482 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13483 Don't clobber caller's LRSAVE.
13484 (_dl_prof_resolve): Likewise.
13486 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13489 * libio/memstream.c (open_memstream): Allocate initial buffer with
13491 * libio/wmemstream.c (open_wmemstream): Likewise.
13492 * libio/strops.c: Pretty printing.
13493 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13494 (enlarge_userbuf): New function.
13495 (_IO_str_seekoff): Call it if seek position is larger than current
13497 * libio/wstrops.c: Likewise.
13498 * libio/vasprintf.c: Add comment as to why we do not have to use
13499 calloc instead of malloc to allocate initial buffer.
13500 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13501 * libio/bug-memstream1.c: New file.
13502 * libio/bug-wmemstream1.c: New file.
13504 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13506 * libio/wstrops.c: Remove dead macro definitions and comments.
13507 * libio/strops.c: Likewise.
13510 * login/utmpname.c (__utmpname): Remove unnecessary test.
13512 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13515 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13518 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13521 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13523 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13524 setting of CPU clocks.
13526 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13529 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13530 since C99 requires the result to promote to 'int' when uint_least8_t
13531 and uint_least16_t promote to 'int'.
13533 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13536 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13537 lenght of one output field, correct bitmask creation.
13538 * locale/programs/ld-time.c: Add alignment.
13541 * misc/error.c: Add space between program name and message if file
13544 2006-08-03 Eric Blake <ebb9@byu.net>
13547 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13549 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13551 * malloc/memusagestat.c: Silence warnings.
13553 * malloc/malloc.c: Dynamically size mmap treshold if the program
13554 frees mmaped blocks.
13555 Patch by Valerie Henson and Arjan van de Ven.
13557 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13559 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13562 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13563 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13564 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13565 Only provide var definitions in strtol_l (or for *ull*
13568 * stdio-common/bug16.c (tests): New array.
13569 (do_tests): Allow the first hexadecimal digit
13570 to be 1, 2, 4 or 8. Do 3 additional tests.
13572 * sysdeps/s390/fpu/libm-test-ulps: Update.
13574 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13575 fchownat syscall if available.
13576 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13577 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13578 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13580 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13582 * nis/nis_xdr.c: Avoid some function calls.
13584 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13585 Ulrich Drepper <drepper@redhat.com>
13587 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13588 short cut if only one name component is stripped away.
13590 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13592 * nis/nis_call.c: Minor cleanups throughout.
13593 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13594 (first_shoot): Add search_parent_first parameter. Only if it is set
13595 search parent server first.
13596 If directory for table found through cold start cache is not the same
13597 as referenced in the cache, don't use it.
13598 (__nisfind_server): Take additional parameter. Pass it on to
13600 (__prepare_niscall): Adjust __nisfind_server call.
13601 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13602 * nis/nis_table.c: Adjust __nisfind_server call.
13603 * nis/nis_lookup.c: Likewise.
13604 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13606 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13609 * math/s_cacosh.c: Return values from positive branch.
13610 * math/s_cacoshf.c: Likewise.
13611 * math/s_cacoshl.c: Likewise.
13614 * sysvipc/sys/msg.h: Change return value to ssize_t.
13615 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13616 * sysvipc/msgrcv.c: Likewise.
13617 * include/sys/msg.h: Likewise.
13619 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13620 test introduced in patch for bz #661.
13621 (getgrouplist): Simplify code a bit. Don't allocate one additional
13622 element for NEWGROUPS.
13625 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13626 'f', use '1' as leading digit not '\1'.
13627 * stdio-common/Makefile (tests): Add bug16.
13628 * stdio-common/bug16.c: New file.
13631 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13632 and don't try to open it. The patch introducing the macro
13633 contained a bug and used the same file name as the new file
13634 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13635 this out completely.
13638 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13639 Patch by Jerry James <Jerry.James@usu.edu>.
13641 * rt/Makefile (tests): Add tst-clock2.
13642 * rt/tst-clock2.c: New file.
13645 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13646 function and its parameters and pass it to new thread.
13647 (__gai_notify): Add support for alternative waiting for completion.
13648 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13649 waiting for completion.
13650 * resolv/getaddrinfo_a.c: Likewise.
13651 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13652 waiting for completion is used.
13653 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13654 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13655 * resolv/gai_error.c: Likewise.
13656 * resolv/gai_sigqueue.c: Likewise.
13658 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13660 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13661 errno to EBADF and return MACH_PORT_NULL.
13663 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13666 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13668 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13670 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13671 walk them instead of the symbol table.
13673 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13676 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13677 status of NSS calls, not the number of returned entries.
13679 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13680 request_key, keyctl.
13682 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13684 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13686 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13688 * elf/tst-auditmod1.c: Fix typo in #error.
13690 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13692 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13694 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13696 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13698 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13699 that the directory is empty even on non-POSIX filesystems.
13701 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13703 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13705 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13706 the backend NSS module. If backend setgrent call failed, don't have
13707 internal_setgrent fail. Just remember this until it is needed.
13708 * nis/nss_compat/compat-pwd.c: Likewise.
13709 * nis/nss_compat/compat-spwd.c: Likewise.
13711 2006-07-30 Roland McGrath <roland@redhat.com>
13713 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13714 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13715 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13716 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13718 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13719 (nanosleep_not_cancel): New macro.
13720 (sigsuspend_not_cancel): new macro.
13721 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13722 (do_sigsuspend): Define as inline.
13723 (__sigsuspend): Always use do_sigsuspend.
13724 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13725 * include/signal.h: Declare __sigsuspend_nocancel.
13726 * sysdeps/posix/pause.c
13727 [! NO_CANCELLATION] (__pause_nocancel): New function.
13729 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13730 * include/time.h (__nanosleep_nocancel): Likewise.
13732 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13734 * locale/programs/localedef.c (add_to_readlist): Rename local
13735 variables to avoid confusion.
13737 * locale/programs/charmap.c (charmap_read): Emit error message if
13738 charmap couldn't be found or read.
13740 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13742 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13743 __ASSUME_FUTEX_LOCK_PI.
13744 * include/time.h: Declare __nanosleep_nocancel.
13745 * include/unistd.h: Declare __pause_nocancel.
13747 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13748 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13749 get the __stack_chk_fail_local definition when it's needed.
13751 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13753 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13754 * dlfcn/bug-atexit3.c: New file.
13755 * dlfcn/bug-atexit3-lib.cc: New file.
13757 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13758 used when the namespace is not the base namespace.
13760 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13762 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13763 (__new_exitfn): Bump it in every successful call.
13764 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13765 more exit handlers, call them right away.
13766 * stdlib/exit.h: Declare __new_exitfn_called.
13768 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13770 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13771 calling registered handler.
13773 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13774 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13775 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13776 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13777 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13778 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13779 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13780 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13782 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13784 * elf/dl-lookup.c (dl_new_hash): New functions.
13785 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13786 value here. Compute new-style hash value. Pass new hash value
13787 and reference to variable with the old value to do_lookup_x.
13788 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13789 old-style hash table.
13790 (_dl_debug_bindings): Pass new hash value and reference to variable
13791 with the old value to do_lookup_x.
13792 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13793 new-style hash value and change old-style hash value parameter to
13794 be a reference. Reoganize functions to determine whether
13795 new-style hash table is available. Only fall back on old-style
13796 table. If old-style hash value is needed, compute it here.
13797 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13799 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13800 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13801 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13802 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13803 * Makeconfig: If linker supports --hash-style option add it to all
13804 linker command lines to build DSOs.
13805 * config.make.in: Define have-hash-style.
13806 * configure.in: Test whether linker supports --hash-style option.
13808 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13809 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13811 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13813 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13816 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13817 RPATH of main map twice.
13819 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13821 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13822 look further, return original strings.
13823 (_nl_find_msg): Do not return found translation if the conversion
13824 failed. Either signal the string is unusable or that something went
13825 wrong and the original should be used.
13827 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13829 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13831 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13834 * misc/insremque.c (insque): Handle prev == NULL.
13835 * misc/Makefile (tests): Add tst-insremque.
13836 * misc/tst-insremque.c: New test.
13838 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13841 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13842 conflict with DL_DST_REQUIRED.
13844 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13846 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13847 match what Solaris does.
13849 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13851 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13852 local_setegid instead of seteuid and setegid.
13853 * sysdeps/generic/local-setxid.h: New file.
13854 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13856 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13858 * string/Makefile (tests): Add bug-envz1.
13859 * string/bug-envz1.c: New file.
13861 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13863 * posix/regex_internal.c (re_string_skip_chars): If no character has
13864 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13865 to the byte which couldn't be converted.
13866 (re_string_reconstruct): Don't clear valid_raw_len before calling
13867 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13868 tip_context using re_string_context_at.
13869 * posix/Makefile: Add rules to build and run bug-regex25 test.
13870 * posix/bug-regex25.c: New test.
13872 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13875 * string/envz.c (envz_strip): Correct erroneously reversed src
13876 and dest parameters to memmove() invocation.
13878 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13880 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13881 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13882 to make sure the database has been already invalidated.
13883 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13884 after the cache has been invalidated. Use pthread_mutex_lock rather
13885 than pthread_mutex_trylock if fd != -1.
13886 * nscd/connections.c (invalidate_cache): Add fd argument, write
13887 response to fd if not calling prune_cache, pass fd to prune_cache.
13888 (handle_request): Adjust invalidate_cache caller.
13889 (nscd_run): Pass -1 as fd to prune_cache.
13891 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13893 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13896 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13898 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13899 * nscd/cache.c (prune_cache): Take prunelock before starting the
13900 work. Just return in case it is already taken.
13901 * nscd/connections.c (dbs): Initialize .prunelock.
13903 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13905 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13906 copying. No need to allocate new array for group members. Just
13907 move the pointers and update the size.
13909 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13910 Avoid memory leak in case realloc fails. Simplification for
13911 better code generation.
13913 Avoid deprecation warning because of libc_hidden_proto for
13914 inet6_option_alloc.
13915 * inet/inet6_option.c (option_alloc): Renamed from
13916 inet6_option_alloc. Made static.
13917 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13918 (inet6_option_append): Call option_alloc.
13919 * include/netinet/in.h: Remove libc_hidden_proto for
13920 inet6_option_alloc.
13922 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13923 for cleanup when cb!=NULL [Coverity CID 233].
13925 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13928 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13929 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13930 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13931 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13932 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13933 and inet6_rth_getaddr.
13934 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13936 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13937 Mark inet6_option_* interfaces as deprecated.
13938 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13939 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13940 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13941 inet6_rth_segments, and inet6_rth_getaddr.
13942 * inet/inet6_opt.c: New file.
13943 * inet/inet6_rth.c: New file.
13945 * inet/netinet/icmp6.h: Pretty printing.
13948 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13950 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13952 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13953 doing it all here. When server does not know the answer do not
13954 fail immediate, try parent first.
13956 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13959 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13961 * nis/nis_call.c (__prepare_niscall): New function. Split out
13963 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13965 (__follow_path): New function. Split out from nis_list.
13966 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13968 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13970 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13972 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13973 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13974 from libnsl for version GLIBC_PRIVATE.
13975 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13976 Remove entry parameter from _nss_nisplus_parse_pwent and
13977 _nss_nisplus_parse_grent.
13978 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13979 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13980 again. Rewrite getpwent handling to not use nis_first_entry and
13981 nis_next_entry. Roll out own niscall handling.
13982 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13984 * sunrpc/xdr_rec.c: Fix typo in comment.
13986 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13988 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13991 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13992 to allocate memory for my_pollfd. Better initialization of
13993 cb_is_running. Use TEMP_FAILURE_RETRY.
13995 * malloc/memusage.sh (memusageso): Add quotes.
13996 (memusagestat): Likewise.
13997 * debug/xtrace.sh (pcprofileso): Likewise.
13998 (pcprofiledump): Likewise.
13999 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14001 * malloc/Makefile ($(objpfx)memusage): Likewise.
14003 * nis/nis_callback.c (__nis_create_callback): Calls to
14004 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14005 asprintf call fails.
14007 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14008 no uninitialized memory is passed to sendto.
14010 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14012 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14013 of snprintf+strdup. Handle OOM.
14014 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14015 cb->serv together. Remove now obsolete free calls.
14016 (__nis_destroy_callback): Remove now obsolete free call.
14018 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14020 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14021 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14022 and ULA respectively). Set precedence for IPv4 address to 10 as
14023 defined in RFC3484 for preferring IPv6.
14024 * posix/gai.conf: Update to match the new default tables.
14026 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14028 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14029 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14030 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14031 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14033 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14035 (init_nss_interface): Remove initialization of these variables.
14037 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14039 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14040 nis_free_directory forward to avoid duplication.
14042 2006-05-17 Ulrich Drepper <drepper@redhat.com>
14044 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14045 rec_dirsearch returning NULL.
14046 (first_shoot): Handle __nis_finddirectory returning NULL.
14047 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14049 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14050 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14052 2006-05-17 Jakub Jelinek <jakub@redhat.com>
14054 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14057 2006-05-15 Ulrich Drepper <drepper@redhat.com>
14059 * include/rpc/pmap_prot.h: Mark all functions as hidden.
14061 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14062 * nscd/nscd_getgr_r.c: Likewise.
14064 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14066 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14067 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14069 * stdlib/longlong.h (__clz_tab): Mark as hidden.
14071 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14073 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14075 * include/rpc/auth.h: Mark xdr_des_block_internal and
14076 xdr_opaque_auth_internal as hidden.
14078 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14081 * include/rpc/xdr.h: Mark all _internal functions as hidden.
14083 * misc/getusershell.c (okshells): Don't use static initializers,
14086 * stdlib/fmtmsg.c (keywords): Change type of len element to
14087 uint32_t to not waste space on 64bit machines.
14089 * locale/setlocale.c: Change _nl_category_names into a string.
14090 Add new _nl_category_name_idxs. Change all users.
14091 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14092 Declare _nl_category_name_idxs.
14093 * locale/findlocale.c: Adjust for _nl_category_names change.
14094 * locale/loadlocale.c: Likewise.
14095 * locale/newlocale.c: Likewise.
14096 * intl/dcigettext.c: Likewise.
14098 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14099 (add_alias2): ...here. New function.
14100 (__gconv_read_conf): Simplify builtin alias handling.
14101 (builtin_aliases): Convert to string to avoid relocations.
14102 * iconv/gconv_builtin.h: Add comment about correct formatting.
14104 2006-05-15 Jakub Jelinek <jakub@redhat.com>
14106 * resolv/res_debug.c (loc_ntoa): Make error const.
14108 2006-05-14 Andreas Schwab <schwab@suse.de>
14110 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14112 2006-05-12 Jakub Jelinek <jakub@redhat.com>
14114 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14115 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14116 sizeof (cpu_set_t).
14118 2006-05-11 Ulrich Drepper <drepper@redhat.com>
14120 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14122 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14124 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14125 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14127 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14128 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14130 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14131 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14134 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14135 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14138 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14139 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14141 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14142 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14144 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14145 * include/rpcsvc/nis_callback.h: New file.
14147 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14148 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14150 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14151 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14153 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14154 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14156 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14157 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14159 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14160 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14163 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14164 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14166 * nis/nis_error.c: Remove table of strings. Use position
14167 independent mechanism.
14168 * nis/nis_error.h: New file.
14170 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14172 * locale/programs/ld-time.c (time_finish): If wide era name or
14173 format aren't provided, set both wname and wformat to L"".
14175 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14177 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14178 results if the call was succesful.
14180 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14182 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14185 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14187 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14189 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14191 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14192 caller makes sure this is not the case.
14193 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14195 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14197 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14200 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14201 [Coverity CID 229, 230]
14203 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14205 (hol_help): Likewise. [Coverity CID 226, 227]
14207 * string/argz-replace.c (__argz_replace): Unconditionally call
14208 free on SRC. [Coverity CID 225]
14210 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14211 the return value of __nis_default_owner and __nis_default_group,
14212 it has been especially allocated. [Coverity CID 224]
14214 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14215 searchgroup and searchowner. Significantly simplified.
14216 (__nis_default_owner): Remove duplication. Do not locally copy the
14217 string before duplicating it.
14218 (__nis_default_group): Likewise.
14220 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14221 we must clear the variable before calling __nisfind_server.
14223 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14224 nis_getnames. [Coverity CID 223]
14226 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14227 xmalloc to allocate local repertoire name. [Coverity CID 222]
14229 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14230 allocate memory for the input to add_bytes. [Coverity CID 221]
14232 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14233 was allocated here. [Coverity CID 219, 220]
14235 * posix/getconf.c (print_all): Free confstr data after printing.
14238 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14239 list allocation fails. [Coverity CID 215]
14241 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14244 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14245 string is NULL. [Coverity CID 212]
14246 * argp/Makefile: Add rules to build and run bug-argp1.
14247 * argp/bug-argp1.c: New file.
14249 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14251 * stdlib/canonicalize.c (__realpath): Likewise.
14253 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14254 pointer. [Coverity CID 206]
14256 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14257 in statically linked code.
14258 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14259 statically built code, be prepared to have no link map.
14262 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14263 dgettext calls. [Coverity CID 204]
14265 * argp/argp-help.c (struct uparams): Remove valid member. Change
14267 (uparam_names): Reduce size. Avoid relative relocations.
14268 Moved to read-only segment.
14269 (fill_in_uparams): Update for new layout.
14271 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14272 assumed to always be != NULL. [Coverity CID 202]
14274 * argp/argp-help.c (hol_entry_help): Remove some dead code
14275 [Coverity CID 200].
14277 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14278 away a few more unconditional yperr2nss calls.
14279 (_nss_nis_getservbyname_r): Likewise.
14281 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14283 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14286 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14287 that unused memory passed to sendto is nevertheless initialized.
14290 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14291 possibly unaligned memory accesses.
14293 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14294 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14295 and __putlong respectively. Correct buffer overflow check for
14298 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14300 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14301 (send_dg): Rewrite error handling to be more compact and avoid
14302 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14304 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14306 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14307 instead of ns_get16.
14308 (res_queriesmatch): Likewise. Minor optimization.
14311 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14312 __libc_res_nsend might reallocate the buffer for the answer. In
14313 this case we have to reload the HP pointer.
14315 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14317 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14318 some branch prediction hints.
14320 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14321 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14322 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14323 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14324 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14325 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14326 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14327 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14329 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14331 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14332 by a GOT relocation to make Scrt1.o position independent.
14333 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14335 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14336 six system call parameters.
14337 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14339 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14341 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14344 * sunrpc/svc_udp.c (BZERO): Remove definition.
14346 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14348 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14349 (des_SPtrans): Use uint32_t type.
14350 (des_skb): Likewise.
14352 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14354 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14357 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14360 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14362 * locale/programs/ld-address.c (address_finish): Fix one more
14363 place where the iso639 array might be accessed beyond the limits.
14365 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14367 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14368 filling it for the first time.
14370 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14371 Adjust all callers.
14372 Free res object content before returning.
14374 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14376 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14379 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14380 cleanup for initial thread, just the free call on TVP.
14382 * nscd/gai.c (__getline): Define.
14385 See ChangeLog.16 for earlier changes.