1 2010-02-24 H.J. Lu <hongjiu.lu@intel.com>
3 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
5 Use unsigned conditional jumps.
6 (128bytesormore_nt): Renamed to ...
7 (128bytesormore_endof_L1): This.
8 Use add instead of lea if possible.
10 * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
12 Use unsigned conditional jumps.
13 Use add instead of lea if possible.
16 2010-02-24 Ulrich Drepper <drepper@redhat.com>
19 * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
20 undoing the stream because _IO_FINISH doesn't report failures.
23 * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
24 (public_pVALLOc): Likewise.
27 2010-02-22 Jim Meyering <meyering@redhat.com>
29 * manual/math.texi (BSD Random): Fix a typo: s/are/is/
31 * manual/charset.texi: Adjust grammar.
33 * manual/errno.texi (Error Messages): Fix doubled-words and typos.
34 * manual/charset.texi (Selecting the Conversion): Likewise.
35 * manual/getopt.texi (Getopt Long Options): Likewise.
36 * manual/memory.texi (Resizing the Data Segment): Likewise.
37 * manual/message.texi (GUI program problems): Likewise.
38 * manual/resource.texi (CPU Affinity): Likewise.
39 * manual/stdio.texi (Streams and Threads): Likewise.
40 * manual/time.texi (High Accuracy Clock): Likewise.
42 2009-02-20 David S. Miller <davem@davemloft.net>
44 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
45 Adjust rela->r_offset by l->l_addr when rewriting PLT.
47 * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
50 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
51 (__makecontext): Adjust arg counter properly when copying arg
54 2009-02-20 Joseph Myers <joseph@codesourcery.com>
56 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
57 Adjust rela->r_offset by l->l_addr when rewriting PLT.
59 2010-02-19 Carl Fredrik Hammar <hammy.lite@gmail.com>
61 * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
62 non-existent `tiocsctty_port'.
64 2010-02-16 H.J. Lu <hongjiu.lu@intel.com>
66 * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
67 instead of FEATURE_OFFSET.
68 * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
70 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
71 Fix one unwind info problem.
73 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
75 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
77 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
78 Ulrich Drepper <drepper@redhat.com>
80 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
83 2010-02-17 Carl Fredrik Hammar <hammy.lite@gmail.com>
85 * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
86 (tiocsctty_port): ...this new function.
88 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
91 2010-02-15 Ulrich Drepper <drepper@redhat.com>
93 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
94 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
95 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
96 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
98 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
101 2010-02-12 H.J. Lu <hongjiu.lu@intel.com>
103 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
104 strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
105 memcmp-c, memcmp-ssse3, and memcmp-sse4.
106 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
107 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
108 * sysdeps/i386/i686/multiarch/memcmp.S: New file.
109 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
110 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
111 * sysdeps/i386/i686/multiarch/strcmp.S: New file.
112 * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
113 * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
114 * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
115 * sysdeps/i386/i686/multiarch/strncmp.S: New file.
117 2010-02-12 Luis Machado <luisgpm@br.ibm.com>
119 * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
120 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
121 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
122 * sysdeps/powerpc/powerpc32/memset.S: Likewise.
123 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
124 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
125 * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
127 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
128 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
129 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
130 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
131 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
132 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
133 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
134 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
135 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
136 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
137 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
138 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
139 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
140 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
141 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
142 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
143 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
154 2010-02-12 Alan Modra <amodra@gmail.com>
156 * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
157 Define and use for __powerpc64__ too.
158 [__powerpc__] (TLS_LD): Add r3 to clobbers.
159 [__powerpc__] (TLS_GD): Set asm output. Make __result r3 reg.
160 [__powerpc64__] (TLS_GD): Make __result r3 reg.
161 [__powerpc64__] (TLS_IE): Relax output constraint.
163 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
165 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
166 instructions cu21 and cu24. Add well-formedness checking
167 parameter and adjust the software implementation.
168 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
170 2010-02-10 Ulrich Drepper <drepper@redhat.com>
173 * io/ftw.c (ftw_startup): Close descriptor for initial directory
174 after changing back to it.
176 2010-02-05 David S. Miller <davem@davemloft.net>
178 * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
179 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
181 (elf_machine_lazy_rel): Likewise.
182 (sparc_fixup_plt): Pull out to...
183 * sysdeps/sparc/sparc32/dl-plt.h: ...here.
184 * sysdeps/sparc/sparc32/dl-irel.h: New file.
185 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
187 (elf_machine_lazy_rel): Likewise.
188 (sparc64_fixup_plt): Pull out to...
189 * sysdeps/sparc/sparc64/dl-plt.h: ...here.
190 * sysdeps/sparc/sparc64/dl-irel.h: New file.
192 2010-02-09 Maxim Kuvyrkov <maxim@codesourcery.com>
194 * elf/elf.h: Define m68k TLS relocations.
196 2010-02-10 Luis Machado <luisgpm@br.ibm.com>
198 * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
199 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
200 * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
201 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
203 64-bit power7 fpu path.
204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
205 32-bit power7 fpu math.
207 2010-02-09 Ulrich Drepper <drepper@redhat.com>
209 * sysdeps/i386/rshift.S: More compact unwind information.
211 * sysdeps/i386/lshift.S: Fix unwind information.
213 2010-02-08 Luis Machado <luisgpm@br.ibm.com>
215 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
216 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
217 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
218 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
219 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
220 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
221 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
222 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
223 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
224 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
225 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
226 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
228 2010-02-08 Andreas Schwab <schwab@redhat.com>
230 * include/fenv.h: Add hidden proto for fegetenv.
231 * math/fegetenv.c: Add hidden alias.
232 * sysdeps/i386/fpu/fegetenv.c: Likewise.
233 * sysdeps/ia64/fpu/fegetenv.c: Likewise.
234 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
235 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
236 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
237 * sysdeps/x86_64/fpu/fegetenv.c: Likewise
238 * sysdeps/s390/fpu/fegetenv.c: Likewise. Remove unused headers.
240 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
243 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
246 2010-01-26 Andreas Schwab <schwab@redhat.com>
248 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
250 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
251 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
254 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
257 2010-02-03 Ulrich Drepper <drepper@redhat.com>
260 * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
261 S_IMMUTABLE. Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
262 MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
263 MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
264 MS_ACTIVE, and MS_NOUSER.
265 (MS_RMT_MASK): Update according to current kernels.
268 * misc/getusershell.c (initshells): Allocate one more byte in input
269 buffer so that fgets doesn't loop undefinitely.
271 2010-02-02 Ulrich Drepper <drepper@redhat.com>
273 * stdlib/setenv.c (__add_to_environ): Don't use alloca if
274 __libc_use_alloca tells us not to. Fix memory leak in an error
275 situation. Based partially on patch by Jim Meyering.
277 2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
279 * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
280 get_phys_pages, get_avphys_pages): Add weak aliases.
282 2010-01-25 Andreas Schwab <schwab@redhat.com>
284 * iconv/iconv_prog.c (write_output): Fix check for open failure.
286 2010-01-22 Ulrich Drepper <drepper@redhat.com>
289 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
290 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
292 2010-01-22 Jim Meyering <jim@meyering.net>
295 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
296 buffer length computation.
299 * posix/regexec.c (re_copy_regs): Don't leak when allocation
300 of the start buffer succeeds but allocation of the "end" one fails.
303 * posix/regexec.c (re_search_2_stub): Check for overflow
304 when adding the sizes of the two strings.
307 * posix/regexec.c (re_search_internal): Avoid overflow
308 in computing re_malloc buffer size.
311 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
312 in computing re_malloc buffer size.
315 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
319 * posix/regexec.c (re_search_2_stub): Use simpler method than
320 boolean for freeing internal storage.
322 2010-01-22 Ulrich Drepper <drepper@redhat.com>
324 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
327 2010-01-22 Jim Meyering <jim@meyering.net>
330 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
331 fits in wchar_t. Problem reported by Eric Blake.
334 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
335 and stores into set-but-not-used local, "q".
338 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
339 detection test. Patch by Paul Eggert.
342 * posix/regex_internal.c (re_string_realloc_buffers):
343 Detect and handle internal overflow. Patch by Paul Eggert
345 2010-01-20 Andreas Schwab <schwab@redhat.com>
347 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
348 (CHECK_SP): Fix check for alternate stack.
349 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
350 (CHECK_SP): Likewise.
352 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
354 * sysdeps/i386/i686/multiarch/memmove.S: Also check
355 bit_Fast_Rep_String when SHARED isn't defined.
357 2010-01-19 Ulrich Drepper <drepper@redhat.com>
360 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
362 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
364 * sysdeps/mach/hurd/bits/libc-lock.h
365 (__rtld_lock_recursive_t): New type.
366 (__rtld_lock_initialize): New macro.
368 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
370 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
371 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
375 2010-01-18 Andreas Schwab <schwab@redhat.com>
377 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
378 definitions of O_DSYNC and O_RSYNC.
380 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
383 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
386 2010-01-16 Jakub Jelinek <jakub@redhat.com>
388 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
390 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
391 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
393 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
395 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
396 math_opt_barrier and math_force_eval macros.
398 2010-01-15 Ulrich Drepper <drepper@redhat.com>
400 * posix/regcomp.c: Fix a few more cases of ignored return values.
401 * posix/regex_internal.c: Likewise.
402 * posix/regexec.c: Likewise.
404 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
405 used without _XOPEN_SOURCE. Don't base any decisions on this macro
406 if _XOPEN_SOURCE is not defined as well.
408 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
410 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
411 high gprs kernel facility.
412 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
413 Added high gprs check for DSOs.
414 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
417 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
419 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
421 * elf/dl-open.c (_dl_sysdep_start): Likewise..
422 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
423 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
424 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
427 2010-01-14 Ulrich Drepper <drepper@redhat.com>
430 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
432 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
435 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
439 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
440 re_node_set_insert failure; return REG_ESPACE.
441 Patch by Paul Eggert.
443 * bits/confname.h: Make pre-C99-safe.
445 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
447 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
448 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
449 files are found by GCC.
451 2010-01-14 Ulrich Drepper <drepper@redhat.com>
453 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
456 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
459 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
461 * Versions.def: Add GLIBC_2.12 for libpthread.
464 * malloc/malloc.c (malloc_info): Initialize malloc if not already
465 done. Handle empty bin lists.
467 * posix/unistd.h: Change getpagesize and getdtablesize declaration
468 visibility some more.
470 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
472 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
475 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
478 2010-01-13 Ulrich Drepper <drepper@redhat.com>
480 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
482 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
484 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
486 2010-01-13 Ulrich Drepper <drepper@redhat.com>
488 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
490 2010-01-12 Ulrich Drepper <drepper@redhat.com>
492 * conform/data/complex.h-data: Test for POSIX2008.
494 * conform/data/ctype.h-data: Fix POSIX testing.
496 * conform/data/dirent.h-data: ino_t only needed for XSI.
498 * grp/grp.h: Declare getgrent and endgrent for XPG7.
500 * conform/data/inttypes.h-data: Use same types as the headers.
502 * resolv/netdb.h: Don't define old resolver macros for XPG7.
504 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
506 * conform/conformtest.pl: Implement tag for allow-header.
507 Fix newline handling in allow-header implementation.
509 * conform/data/time.h-data: Use allow-header instead of duplicating
512 * conform/data/time.h-data: Allow sigevent tag.
514 * posix/sched.h: Define time_t and pid_t for XPG7.
516 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
518 * sysdeps/i386/i686/bcopy.S: New file.
520 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
522 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
524 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
525 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
526 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
528 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
530 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
531 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
532 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
533 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
534 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
535 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
536 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
537 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
538 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
539 * sysdeps/i386/i686/multiarch/bzero.S: New file.
540 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
541 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
542 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
543 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
544 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
545 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
546 * sysdeps/i386/i686/multiarch/memmove.S: New file.
547 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
548 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
549 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
550 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
551 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
552 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
553 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
554 * sysdeps/i386/i686/multiarch/memset.S: New file.
555 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
557 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
560 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
561 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
562 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
564 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
566 (__x86_64_data_cache_size): New.
567 (init_cacheinfo): Set __x86_64_data_cache_size.
569 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
570 on bit_Fast_Rep_String for Intel Core i7.
572 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
573 (index_Fast_Rep_String): Likewise.
574 (FEATURE_INDEX_1): Likewise.
575 (FEATURE_INDEX_MAX): Likewise.
576 (cpu_features): Add feature.
578 2010-01-12 Ulrich Drepper <drepper@redhat.com>
580 * conform/data/sys/select.h-data: Fix up for XPG7.
582 2010-01-12 Jakub Jelinek <jakub@redhat.com>
584 * posix/sys/wait.h: Don't define W* macros etc. if
585 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
587 2010-01-11 Ulrich Drepper <drepper@redhat.com>
589 * io/sys/stat.h: Declare fchmod for XPG7.
590 * conform/data/sys/stat.h-data: Fix up for XPG7.
592 * termios/termios.h: Define pid_t for XPG7.
594 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
595 * conform/data/tgmath.h-data: Likewise.
597 * conform/data/time.h-data: Fix POSIX tests.
599 * conform/data/wchar.h-data: Fix up XPG7 tests.
601 * include/features.h: Fix __USE_ISOC95 handling.
603 * conform/data/wordexp.h-data: Fix typo in last change.
605 * conform/data/unistd.h-data: Fix up older POSIX tests.
607 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
608 * posix/unistd.h: Likewise.
610 * posix/unistd.h: Include environments.h also for XPG6 and up.
611 Define intptr_t for XPG6 and up.
613 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
615 * conform/data/sys/types.h-data: Fix up for XPG7.
617 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
618 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
619 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
620 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
621 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
622 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
623 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
624 * sysdeps/unix/sysv/bits/stat.h: Likewise.
625 * sysdeps/mach/hurd/bits/stat.h: Likewise.
627 * bits/confname.h: Fix typo in last change.
629 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
631 2010-01-10 Ulrich Drepper <drepper@redhat.com>
633 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
634 and SA_RESETHAND now available in Base.
635 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
636 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
637 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
638 * conform/data/signal.h-data: Update for XPG7.
640 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
642 * string/strings.h: Don't declare obsolete functions for XPG7.
643 Declare ffs only for XSI.
644 * conform/data/strings.h-data: Update for XPG7.
646 2010-01-10 Jakub Jelinek <jakub@redhat.com>
649 * libio/stdio.h: Define va_list, off_t, and ssize_t.
651 * posix/glob.h: Define size_t.
653 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
655 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
657 2010-01-10 Ulrich Drepper <drepper@redhat.com>
659 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
662 * conform/data/stdio.h-data: Expect off_t and ssize_t.
664 2010-01-09 Ulrich Drepper <drepper@redhat.com>
666 * libio/stdio.h: Define va_list also for XPG7.
668 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
669 * conform/data/ctype.h-data: Likewise.
670 * conform/data/dirent.h-data: Likewise.
671 * conform/data/errno.h-data: Likewise.
672 * conform/data/fcntl.h-data: Likewise.
673 * conform/data/fmtmsg.h-data: Likewise.
674 * conform/data/fnmatch.h-data: Likewise.
675 * conform/data/ftw.h-data: Likewise.
676 * conform/data/glob.h-data: Likewise.
677 * conform/data/grp.h-data: Likewise.
678 * conform/data/iconv.h-data: Likewise.
679 * conform/data/langinfo.h-data: Likewise.
680 * conform/data/libgen.h-data: Likewise.
681 * conform/data/limits.h-data: Likewise.
682 * conform/data/locale.h-data: Likewise.
683 * conform/data/math.h-data: Likewise.
684 * conform/data/monetary.h-data: Likewise.
685 * conform/data/mqueue.h-data: Likewise.
686 * conform/data/ndbm.h-data: Likewise.
687 * conform/data/netdb.h-data: Likewise.
688 * conform/data/pthread.h-data: Likewise.
689 * conform/data/pwd.h-data: Likewise.
690 * conform/data/regex.h-data: Likewise.
691 * conform/data/sched.h-data: Likewise.
692 * conform/data/search.h-data: Likewise.
693 * conform/data/semaphore.h-data: Likewise.
694 * conform/data/setjmp.h-data: Likewise.
695 * conform/data/signal.h-data: Likewise.
696 * conform/data/spawn.h-data: Likewise.
697 * conform/data/stdio.h-data: Likewise.
698 * conform/data/stdlib.h-data: Likewise.
699 * conform/data/string.h-data: Likewise.
700 * conform/data/strings.h-data: Likewise.
701 * conform/data/sys/ipc.h-data: Likewise.
702 * conform/data/sys/msg.h-data: Likewise.
703 * conform/data/sys/resource.h-data: Likewise.
704 * conform/data/sys/sem.h-data: Likewise.
705 * conform/data/sys/shm.h-data: Likewise.
706 * conform/data/sys/socket.h-data: Likewise.
707 * conform/data/sys/stat.h-data: Likewise.
708 * conform/data/sys/time.h-data: Likewise.
709 * conform/data/sys/types.h-data: Likewise.
710 * conform/data/sys/uio.h-data: Likewise.
711 * conform/data/sys/wait.h-data: Likewise.
712 * conform/data/syslog.h-data: Likewise.
713 * conform/data/tar.h-data: Likewise.
714 * conform/data/termios.h-data: Likewise.
715 * conform/data/time.h-data: Likewise.
716 * conform/data/ulimit.h-data: Likewise.
717 * conform/data/unistd.h-data: Likewise.
718 * conform/data/utmpx.h-data: Likewise.
719 * conform/data/wchar.h-data: Likewise.
720 * conform/data/wctype.h-data: Likewise.
721 * conform/data/wordexp.h-data: Likewise.
723 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
724 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
725 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
726 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
727 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
728 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
729 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
730 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
731 * sysdeps/unix/sysv/bits/stat.h: Likewise.
732 * sysdeps/mach/hurd/bits/stat.h: Likewise.
734 * stdlib/stdlib.h: Define wait-related bits for XPG7.
735 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
736 Declare mkstemp and getsubopt for XPG7.
737 Declare posix_openpt for XPG6 XSI.
739 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
740 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
742 * string/string.h: Declare strdup for XPG7.
744 2010-01-08 Ulrich Drepper <drepper@redhat.com>
746 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
747 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
749 * dirent/dirent.h: Really fix feature selection.
751 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
753 * locale/C-address.c: Fix all users.
754 * locale/C-collate.c: Likewise.
755 * locale/C-ctype.c: Likewise.
756 * locale/C-identification.c: Likewise.
757 * locale/C-measurement.c: Likewise.
758 * locale/C-messages.c: Likewise.
759 * locale/C-monetary.c: Likewise.
760 * locale/C-name.c: Likewise.
761 * locale/C-numeric.c: Likewise.
762 * locale/C-paper.c: Likewise.
763 * locale/C-telephone.c: Likewise.
764 * locale/C-time.c: Likewise.
765 * locale/findlocale.c: Likewise.
766 * locale/global-locale.c: Likewise.
767 * locale/loadarchive.c: Likewise.
768 * locale/loadlocale.c: Likewise.
769 * locale/nl_langinfo_l.c: Likewise.
770 * locale/setlocale.c: Likewise.
771 * locale/xlocale.c: Likewise.
772 * locale/xlocale.h: Likewise.
773 * stdio-common/vfscanf.c: Likewise.
774 * stdlib/strfmon_l.c: Likewise.
775 * stdlib/strtod_l.c: Likewise.
776 * stdlib/strtol_l.c: Likewise.
777 * string/strcoll_l.c: Likewise.
778 * string/strxfrm_l.c: Likewise.
779 * time/alt_digit.c: Likewise.
780 * time/asctime.c: Likewise.
781 * time/era.c: Likewise.
782 * time/lc-time-cleanup.c: Likewise.
783 * time/strftime_l.c: Likewise.
784 * time/strptime_l.c: Likewise.
785 * wcsmbs/wcsmbsload.c: Likewise.
786 * wcsmbs/wcsmbsload.h: Likewise.
788 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
789 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
791 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
792 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
793 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
794 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
795 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
796 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
798 2010-01-07 Roland McGrath <roland@redhat.com>
800 * elf/elf.h (PN_XNUM): New macro.
802 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
805 2010-01-06 Ulrich Drepper <drepper@redhat.com>
807 * dirent/dirent.h: Fix typo in feature selection macro use.
809 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
812 * stdlib/tst-makecontext3.c: New file.
813 * stdlib/Makefile (tests): Add new test.
815 * stdlib/tst-setcontext.c (check_called): Fix a typo.
817 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
819 * configure.in: Enable multi-arch by default if the assembler
820 supports gnu_indirect_function symbol type and the architecture
823 2009-12-23 Ulrich Drepper <drepper@redhat.com>
825 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
828 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
830 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
831 MACH_PORT_NULL when id != cttyid.
833 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
835 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
836 __mach_port_deallocate on rootdevid.
838 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
840 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
841 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
842 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
843 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
845 2009-12-21 Ulrich Drepper <drepper@redhat.com>
848 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
849 Patch by Eric Blake <ebb9@byu.net>.
851 2009-12-15 Ulrich Drepper <drepper@redhat.com>
854 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
855 POLLWRBAND also for POSIX 2008.
856 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
857 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
859 * include/link.h (struct link_map): Move l_used into its own word.
860 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
862 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
865 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
867 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
868 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
869 check processor feature.
870 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
871 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
872 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
873 (index_SSE2): Likewise.
875 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
877 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
878 if __ASSEMBLER__ is defined.
879 (bit_SSSE3): New. Defined for __ASSEMBLER__.
880 (bit_SSE4_2): Likewise.
881 (index_SSSE3): Likewise.
882 (index_SSE4_2): Likewise.
883 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
884 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
885 check processor feature.
886 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
887 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
888 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
889 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
890 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
891 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
892 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
894 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
896 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
898 2009-12-01 Mike Frysinger <vapier@gentoo.org>
900 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
902 2009-12-11 Ulrich Drepper <drepper@redhat.com>
904 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
905 O_DSYNC to match 2.6.33+ kernels.
906 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
907 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
908 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
909 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
910 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
911 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
913 2009-12-10 Ulrich Drepper <drepper@redhat.com>
916 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
917 *herrnop before returning.
918 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
920 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
921 TRYAGAIN errors separately.
922 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
923 *name4_r after functions.
925 2009-12-09 Ulrich Drepper <drepper@redhat.com>
928 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
931 2009-11-05 Bruno Haible <bruno@clisp.org>
934 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
935 argv argument as non-NULL.
936 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
938 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
940 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
942 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
943 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
945 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
947 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
949 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
950 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
951 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
953 2009-11-30 Ulrich Drepper <drepper@redhat.com>
955 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
958 2009-11-26 Ulrich Drepper <drepper@redhat.com>
960 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
961 only used on truly ancient kernel if configuration requires a more
964 2009-11-24 Ulrich Drepper <drepper@redhat.com>
967 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
968 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
970 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
971 pass it on to __ptsname_internal.
972 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
973 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
974 All the code from __ptsname_r but take additional parameter. Use that
975 instead of pointer to local stat64 variable.
976 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
978 * include/stdlib.h: Declare __ptsname_internal.
980 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
982 * sysdeps/unix/sysv/linux/grantpt.c: New file.
983 * login/programs/pt_chown.c (main): Don't print message on errors
984 when doing real work.
986 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
989 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
990 irel relocations split out from...
991 (__libc_csu_init): ...here.
992 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
994 2009-11-23 Andreas Schwab <schwab@redhat.com>
996 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
997 for timestamps also if __USE_XOPEN2K8.
998 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
999 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1000 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1001 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1003 2009-11-22 Ulrich Drepper <drepper@redhat.com>
1005 * nscd/connections.c (restart): Try harder to re-exec.
1007 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1009 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
1010 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1011 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1012 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1013 some placeholders. Redirect ntp_gettime to ntp_gettimex.
1014 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1016 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1018 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1020 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
1023 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1024 than software pipeline. Properly recover from shorter read.
1026 2009-11-19 Ulrich Drepper <drepper@redhat.com>
1029 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1030 initialized before using it.
1031 (_IO_putwc_unlocked): Likewise.
1034 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1035 in cast to not throw away const-ness of parameters.
1036 (__CPU_EQUAL_S): Likewise.
1037 (__CPU_OP_S): Likewise.
1039 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1040 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
1041 this gratuitous change and we have to keep compatibility.
1042 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1043 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1044 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1045 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1046 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1047 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1049 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1051 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1052 of parameters of sync_file_range.
1053 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1054 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1055 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1056 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1057 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1058 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1060 2009-11-16 Jakub Jelinek <jakub@redhat.com>
1062 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1063 Implement using sync_file_range2 syscall if __NR_sync_file_range2
1065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1068 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
1070 * posix/bug-regex30.c: New file.
1071 * posix/Makefile: Add rules to build and run bug-regex30.
1072 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1073 character lead bytes when there is a range in a COMPLEX_BRACKET.
1074 Reported by Oleg Bylatov.
1076 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1079 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1080 * locale/tst-duplocale.c: New file.
1081 * locale/Makefile (tests): Add tst-duplocale.
1084 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1085 Patch by Bruno Haible <bruno@clisp.org>.
1086 * locale/tst-locname.c: New file.
1087 * locale/Makefile (tests): Add tst-locname.
1090 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1091 constants from recent kernels.
1092 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1093 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1094 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1095 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1096 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1097 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1099 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
1102 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1105 2009-11-09 Mike Frysinger <vapier@gentoo.org>
1107 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1108 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1109 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1111 2009-11-06 Mike Frysinger <vapier@gentoo.org>
1113 * posix/bug-regex29.c: Include stdio.h.
1115 2009-11-14 Ulrich Drepper <drepper@redhat.com>
1118 * Versions.def: Define GLIBC_2.12 for libc.
1119 * manual/errno.texi: Add ERFKILL entry.
1120 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1122 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1123 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1125 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1126 F_GETOWN_EX definitions according to corrected kernel definitions.
1127 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1128 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1129 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1130 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1131 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1132 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1134 2009-11-12 Ulrich Drepper <drepper@redhat.com>
1136 * version.h: Bump for 2.12 development.
1138 2009-11-10 Andreas Schwab <schwab@redhat.com>
1140 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1141 out of buffer space.
1142 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1143 map_v4v6_hostent running out of space.
1145 2009-11-10 Ulrich Drepper <drepper@redhat.com>
1147 * string/bits/string3.h (memset): If the second parameter is constant
1148 and zero there is likely no transposition.
1149 Patch by Caolan McNamara <caolanm@redhat.com.
1151 2009-11-04 Philippe De Muyter <phdm@macqel.be>
1153 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1154 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1156 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
1158 * malloc/memusagestat.c (main): Fix spelling in an error message.
1160 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1162 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1163 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1165 2009-11-03 Andreas Schwab <schwab@redhat.com>
1167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1170 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1172 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1173 relocate opd entry when resolving prelink conflicts.
1175 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1177 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1178 when -D_FILE_OFFSET_BITS=64.
1180 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1181 of last two arguments when -D_FILE_OFFSET_BITS=64.
1182 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1183 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1184 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1185 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1186 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1187 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1189 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1192 * sysdeps/generic/libgcc_s.h: New file.
1193 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1195 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1197 * malloc/hooks.c (free_check): Restore locking and call _int_free
1200 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1202 * version.h (VERSION): Bump for 2.11 release.
1203 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1205 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1207 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1209 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1211 * stdlib/tst-strtoll.c (tests): Likewise.
1214 * time/strftime_l.c (__strftime_internal): Allow %OC.
1216 * misc/mkostemps.c: New file.
1217 * misc/mkostemps64.c: New file.
1219 2009-10-30 Andreas Schwab <schwab@redhat.com>
1221 * locale/programs/locale-spec.c: Include <error.h> and
1224 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1226 2009-10-28 Roland McGrath <roland@redhat.com>
1228 * Makefile (dist-prepare): New target.
1229 (tag-for-dist): Target removed.
1230 (glibc-%.tar): Pattern rule removed.
1231 (%.tar): New pattern rule, does simple use of git archive.
1232 (dist-version): Remove variable definition.
1233 (dist): Just depend on that. Add .tar.xz dependency.
1234 If dist-version variable not set on command line, depend on
1235 dist-prepare, re-invoke with dist-version set via git describe.
1237 * Makerules (%.xz): New pattern rule.
1239 2009-10-28 Alan Modra <amodra@bigpond.net.au>
1241 * elf/ifuncdep2.c: Include ifunc-sel.h.
1243 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1244 * elf/ifuncmain1.c (global): Delete.
1245 * elf/ifuncmain1vis.c: Likewise.
1246 * elf/ifuncmain2.c: Likewise.
1247 * elf/ifuncmain5.c: Likewise.
1248 * elf/ifuncmod3.c: Likewise.
1249 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1250 (foo_ifunc): Use ifunc_one.
1251 * elf/ifuncmain7.c: Likewise.
1252 * elf/ifuncmod1.c: Include ifunc-sel.h.
1253 (global): Define protected var.
1254 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1255 * elf/ifuncmod5.c: Likewise.
1256 * sysdeps/generic/elf/ifunc-sel.h: New file.
1257 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1259 2009-07-30 Alan Modra <amodra@bigpond.net.au>
1261 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1262 (R_PPC_REL16*): Correct comments.
1263 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1264 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1265 R_PPC64_REL16_HA): Define.
1266 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1267 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1268 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1269 Delete unused "reloc" param.
1270 (__process_machine_rela): Handle R_PPC_IRELATIVE.
1271 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1272 Delete "reloc" param.
1273 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1275 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1276 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1279 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
1282 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1283 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1284 UDP_ENCAP_L2TPINUDP.
1287 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1288 parameter, specifying length of prefix.
1289 * stdio-common/tempname.c: Likewise.
1290 * include/stdio.h: Adjust prototypes.
1291 * libio/oldtmpfile.c: Adjust caller.
1292 * misc/mkdtemp.c: Likewise.
1293 * misc/mkostemp.c: Likewise.
1294 * misc/mkostemp64.c: Likewise.
1295 * misc/mkstemp.c: Likewise.
1296 * misc/mkstemp64.c: Likewise.
1297 * misc/mktemp.c: Likewise.
1298 * stdio-common/tempnam.c: Likewise.
1299 * stdio-common/tmpfile.c: Likewise.
1300 * stdio-common/tmpnam.c: Likewise.
1301 * stdio-common/tmpnam_r.c: Likewise.
1302 * misc/mkstemps.c: New file.
1303 * misc/mkstemps64.c: New file.
1304 * stdlib/stdlib.h: Add prototypes.
1305 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1306 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1308 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1310 * locale/iso-639.def: Add sml entry.
1313 * resolv/res_send.c (send_dg): Initialize resplen.
1316 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1317 definition to the kernel's.
1318 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1320 2009-08-18 Anders Johansson <ajohansson@novell.com>
1322 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1323 offsets and record sizes in assert()s and response sending.
1324 * nscd/grpcache.c: Likewise.
1325 * nscd/hstcache.c: Likewise.
1326 * nscd/initgrcache.c: Likewise.
1327 * nscd/pwdcache.c: Likewise.
1329 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1332 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1333 /etc/hosts does not exist set errnop and herrnop appropriately.
1334 Patch by Steve Langasek <vorlon@debian.org>.
1337 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1338 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1341 * login/utmp_file.c (TIMEOUT): Increase to 10.
1344 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1345 for file names in case the syscall is not available.
1346 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1347 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1348 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1349 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1350 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1351 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1352 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1353 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1354 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1355 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1356 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1357 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1358 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1359 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1360 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1361 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1362 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1365 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1366 creation filed, remove the request from the 'requests' list and signal
1367 the caller that the request is finished.
1370 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1371 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1374 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1375 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1378 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1379 overflows the int return type.
1382 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1383 have to compute maxsize_total, we have to update the variables, and
1384 the also_total handling must happen after the repair.
1387 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1388 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1390 2009-10-27 Andreas Schwab <schwab@redhat.com>
1392 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1393 errno is always set when returning unsuccessfully.
1395 2009-10-29 Andreas Schwab <schwab@redhat.com>
1397 * malloc/memusage.c (update_data): Fix index wraparound handling
1398 so that buffer_cnt is actually reset.
1400 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1403 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1404 of the directory we look at into the static buffer if there is one
1405 at the start of the loop.
1408 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1409 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1412 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1413 __ASSUME_F_GETOWN_EX.
1414 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1416 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1418 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1420 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1421 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1422 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1423 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1424 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1425 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1428 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1432 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1433 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1435 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1437 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1439 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1442 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1443 Reported by Ray Chason.
1445 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1447 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1449 * sysdeps/x86_64/multiarch/strchr.S: New file.
1450 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1451 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1453 2009-10-21 Andreas Schwab <schwab@redhat.com>
1455 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1457 2009-10-19 Andreas Schwab <schwab@redhat.com>
1459 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1460 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1461 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1462 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1463 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1464 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1465 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1466 __ieee751_expl to handle overflow.
1468 2009-10-14 David S. Miller <davem@davemloft.net>
1470 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1471 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1473 2009-10-13 Andreas Schwab <schwab@redhat.com>
1475 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1478 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1481 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1482 Patch in part by Steve Ward <planet36@gmail.com>.
1485 * stdlib/rand_r.c: Fix typo.
1487 * po/cs.po: Update from translation team.
1489 2009-10-06 Andreas Schwab <schwab@redhat.com>
1491 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1492 returning if RTLD_NOLOAD.
1494 2009-10-06 Roland McGrath <roland@redhat.com>
1496 * sysdeps/x86_64/multiarch/strstr-c.c
1497 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1499 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1500 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1502 * sysdeps/x86_64/multiarch/init-arch.h
1503 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1504 (HAS_CPU_FEATURE): New macro.
1505 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1506 * sysdeps/x86_64/multiarch/init-arch.c
1507 (__get_cpu_features): #undef it before definition.
1509 2009-10-05 Andreas Schwab <schwab@redhat.com>
1511 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1512 first_weekday to 1 and first_workday to 2.
1514 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1516 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1518 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1519 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1520 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1521 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1522 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1523 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1525 2009-09-28 Andreas Schwab <schwab@redhat.com>
1527 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1528 * stdio-common/vfprintf.c: Likewise.
1530 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1532 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1533 (mkdirat): Call __directory_name_split_at instead of
1534 __directory_name_split.
1536 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1538 * locale/programs/locale-spec.c (locale_special): If nothing matches
1539 fail with an appropriate message.
1541 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1543 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1546 2009-09-25 Andreas Schwab <schwab@redhat.com>
1548 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1549 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1551 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1553 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1555 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1557 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1558 character size elements in step data.
1560 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1562 * po/hu.po: Update from translation team.
1563 * po/vi.po: Likewise.
1565 2009-09-19 Roland McGrath <roland@redhat.com>
1567 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1569 2009-09-15 Roland McGrath <roland@redhat.com>
1571 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1572 * nptl/sysdeps/pthread/configure: Regenerated.
1573 * nptl/sysdeps/x86_64/configure: Regenerated.
1574 * sysdeps/unix/sysv/linux/configure: Regenerated.
1575 * sysdeps/x86_64/elf/configure: Regenerated.
1577 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1579 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1580 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1581 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1582 * configure: Regenerated.
1584 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1586 * posix/getconf.c (main): Handle -- on command line.
1588 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1590 * configure.in: Support binutils 2.100 and 3.0.
1592 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1594 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1595 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1596 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1597 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1599 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1601 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1602 unnamed_section_defined field.
1603 (collate_read): Test and set unnamed_section_defined.
1605 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1608 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1610 * configure.in: Support binutils 2.20.
1612 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1614 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1615 __strstr_ia32): Add attribute_hidden.
1617 2009-09-01 Andreas Schwab <schwab@redhat.com>
1619 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1620 parsing of group entry.
1622 2009-09-02 Andreas Schwab <schwab@redhat.com>
1624 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1625 external buffer. Always discard readahead in internal buffer.
1626 * libio/Makefile (tests): Add bug-wsetpos.
1627 * libio/bug-wsetpos.c: New file.
1629 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1631 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1632 Add attribute_hidden.
1633 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1634 __strcasestr_sse2): Likewise.
1635 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1636 (__fma_fma): Make static.
1637 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1638 (__fmaf_fma): Make static.
1640 2009-08-31 Andreas Schwab <schwab@redhat.com>
1642 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1643 reformulate in-buffer optimisation check to match code in
1644 _IO_new_file_seekoff.
1646 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1648 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1649 to srwi in 32-bit memcpy for power6.
1651 2009-09-01 Andreas Schwab <schwab@redhat.com>
1653 * include/stdio.h: Declare hidden proto for fflush.
1654 * libio/iofflush.c: Add hidden weak alias for fflush.
1656 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1658 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1659 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1661 2009-08-31 Andreas Schwab <schwab@redhat.com>
1663 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1665 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1668 * malloc/malloc.c: Add local assert definition to avoid problems with
1669 memory allocation in the real one.
1671 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1673 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1675 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1676 turn off SSSE3 on Atom.
1678 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1680 * stdlib/tst-strtol.c (tests): More tests.
1681 * stdlib/tst-strtoll.c (tests): Likewise.
1683 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1685 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1687 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1689 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1691 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1692 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1694 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1696 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1698 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1700 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1702 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1704 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1706 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1707 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1709 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1711 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1712 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1714 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1715 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1717 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1718 leftover YMM_SIZE definition.
1720 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1722 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1724 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1725 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1727 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1729 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1730 and SET_FLOAT_WORD definitions.
1732 2009-08-24 Roland McGrath <roland@redhat.com>
1734 * sysdeps/unix/syscall-template.S: New file.
1735 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1736 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1737 (compile-syscall): Pass mkdep and -g options as normal.
1738 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1739 (common-generated): Don't add them here.
1741 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1743 * math/s_fdim.c: In case of overflows set errno.
1744 * math/s_fdimf.c: Likewise.
1745 * math/s_fdiml.c: Likewise.
1747 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1748 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1749 are using the inline optimizations.
1751 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1752 (__signbitf): Likewise.
1754 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1756 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1758 * posix/Makefile (tests): Add bug-regex29.
1759 * posix/bug-regex29.c: New file.
1761 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1762 older POSIX versions are selected.
1764 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1766 * stdio-common/printf_fphex.c: Likewise.
1767 * stdio-common/tstdiomisc.c: Add more tests.
1769 * locale/locale.h: Include xlocale.h and the thread-local locale
1770 declarations for XPG7, not XPG6.
1772 2009-08-21 Andreas Schwab <schwab@redhat.com>
1774 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1775 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1778 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1779 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1781 2009-08-20 Roland McGrath <roland@redhat.com>
1783 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1784 Use l_addr instead of l_map_start (dli_fbase).
1785 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1786 address when there is no proximate symbol.
1787 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1790 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1792 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1794 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1796 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1797 Also handle SIGINT. In that case only do the cleanup and then
1798 re-raise the signal.
1799 (main): Install handler for SIGINT.
1801 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1803 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1806 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1808 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1809 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1811 (tests): Add tst-audit6 tst-audit7.
1812 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1813 tst-auditmod7a tst-auditmod7b.
1814 ($(objpfx)tst-audit6): New.
1815 ($(objpfx)tst-audit6.out): Likewise.
1816 ($(objpfx)tst-audit7): Likewise.
1817 ($(objpfx)tst-audit7.out): Likewise.
1818 (tst-audit6-ENV): Likewise.
1819 (tst-audit7-ENV): Likewise.
1820 (CFLAGS-tst-auditmod6b.c): Likewise.
1821 (CFLAGS-tst-auditmod6c.c): Likewise.
1822 (CFLAGS-tst-auditmod7b.c): Likewise.
1823 * elf/tst-audit6.c: New file.
1824 * elf/tst-audit7.c: New file.
1825 * elf/tst-auditmod6a.c: New file.
1826 * elf/tst-auditmod6b.c: New file.
1827 * elf/tst-auditmod6c.c: New file.
1828 * elf/tst-auditmod7a.c: New file.
1829 * elf/tst-auditmod7b.c: New file.
1830 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1831 saving and restoring SSE/AVX registers to ...
1832 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1834 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1836 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1837 only if SHARED is defined.
1838 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1840 2009-08-03 Jim Meyering <meyering@redhat.com>
1842 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1844 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1846 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1847 section as the other functions for this architecture.
1848 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1850 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1852 * sysdeps/x86_64/strcmp.S: Add support to compile with
1853 USE_SSSE3. In this case palignr is used.
1854 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1855 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1856 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1857 Add strcmp-ssse3 and strncmp-ssse3.
1858 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1859 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1861 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1862 warning through fake initialization.
1864 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1866 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1868 2009-08-07 Andreas Schwab <schwab@redhat.com>
1870 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1873 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1875 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1876 EBX from EAX = 1. Handle EAX = 11.
1878 2009-08-07 Andreas Schwab <schwab@redhat.com>
1880 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1883 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1885 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1886 hidden IFUNC functions.
1887 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1889 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1891 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1892 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1894 (CFLAGS-strcspn-c.c): Define.
1895 (CFLAGS-strpbrk-c.c): Define.
1896 (CFLAGS-strspn-c.c): Define.
1897 (CFLAGS-strstr.c): Define.
1898 (CFLAGS-strcasestr.c): Define.
1899 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1900 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1901 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1902 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1903 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1904 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1905 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1906 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1907 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1908 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1909 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1910 -16L instead of 0xfffffffffffffff0L.
1911 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1913 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1915 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1917 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1919 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1920 another rewrite. Much smaller and faster.
1921 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1923 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1924 ss_flags from the correct location.
1926 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1928 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1929 * sysdeps/i386/i686/cacheinfo.c: New file.
1930 * sysdeps/i386/i686/multiarch/Makefile: New file.
1931 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1932 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1933 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1934 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1935 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1936 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1937 (__cpuid_count): New. Provide the default.
1938 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1939 (__x86_64_preferred_memory_instruction): Define only if
1940 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1941 (intel_check_word): Use __cpuid.
1942 (handle_intel): Likewise.
1943 (handle_amd): Likewise.
1944 (__cache_sysconf): Likewise.
1945 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1946 (__cache_sysconf): Likewise.
1947 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1948 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1949 (get_common_indeces): Use __cpuid.
1950 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1951 if ENABLE_SSSE3_ON_ATOM is not defined.
1952 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1953 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1954 popcnt instead of popcntq.
1956 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1958 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1960 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1962 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1963 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1964 which always causes a compile error.
1966 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1968 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1970 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1971 which always causes a compile error.
1973 * debug/Makefile (tests): Add tst-longjmp_chk2.
1974 * debug/tst-longjmp_chk2.c: New file.
1976 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1977 Remove incorrect use of BP_SYM.
1978 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1979 here now since it is more complex than just a simple check.
1981 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1982 we make no more progress.
1984 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1986 * math/s_fma.c: Don't define alias if __fma is a macro.
1987 * math/s_fmaf.c: Likewise.
1988 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1989 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1990 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1992 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1993 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1995 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1997 * include/libc-symbols.h (libm_ifunc): Define.
1998 * sysdeps/x86_64/multiarch/Versions: New file.
2000 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2002 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
2004 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2006 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2008 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2009 call that registers used in calling conventions need to be preserved.
2010 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2011 to preserve register content if necessary.
2012 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2013 (_dl_x86_64_restore_sse): New function.
2014 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2015 is allowed to modify xmm/ymm registers.
2017 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
2018 application's perspective.
2019 * stdio-common/scanf17.c: Likewise.
2021 2009-07-28 Ulrich Drepper <drepper@redhat.com>
2023 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2025 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2027 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2028 two steps to catch bugs.
2030 2009-07-27 Ulrich Drepper <drepper@redhat.com>
2032 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
2033 determines which files are used in runtime lookups and only checks
2035 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
2037 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2038 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2039 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2042 * elf/dl-open.c: Move _dl_scope_free to...
2043 * elf/dl-scope.c: ...here. New file.
2044 * elf/Makefile (dl-routines): Add scope.
2046 * resolv/resolv.h (RES_USE_DNSSEC): Define.
2047 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2049 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2050 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2051 all the places we handled RES_USE_EDNS0 only before.
2052 Patch by Adam Tkac <atkac@redhat.com>.
2054 2009-07-27 Jakub Jelinek <jakub@redhat.com>
2056 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2057 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
2058 Update size when reallocating.
2060 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2062 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
2063 functions used in ld.so modify xmm/ymm registers.
2064 * sysdeps/x86_64/Makefile: Hook new test up.
2065 * sysdeps/x86_64/rtld-memchr.c: New file.
2066 * sysdeps/x86_64/rtld-memcmp.c: New file.
2067 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2068 * sysdeps/x86_64/rtld-strchr.S: New file.
2069 * sysdeps/x86_64/rtld-strlen.S: New file.
2070 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2071 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2073 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
2075 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2077 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2085 (next_8_bytes): Likewise.
2086 (Byte0): Remove commented out codes.
2087 (unaligned_table): Align jump table at 8 bytes.
2088 Add _sse4_2 to all labels. Always include "../strcmp.S".
2089 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2090 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2091 * sysdeps/x86_64/strncmp.S: New file.
2093 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2096 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2097 kernels, dropped when eventfd2 support was added.
2098 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2099 kernels, dropped when signalfd4 support was added.
2100 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2104 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2107 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2109 2009-07-25 Ulrich Drepper <drepper@redhat.com>
2111 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2112 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
2115 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2116 callback we must touch the status to avoid using stale value.
2118 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2121 2009-07-24 Ulrich Drepper <drepper@redhat.com>
2123 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2124 /lib/modules/* headers anymore. We have sane headers in the standard
2127 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2129 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2130 "etf3enh" and "highgprs" added.
2131 (_dl_s390_platforms): "z10" added.
2132 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2133 Increased for the new entries.
2134 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2135 HWCAP_S390_HIGH_GPRS added.
2137 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2138 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2139 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2140 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2141 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2143 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2145 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2146 avoid additional cpuid instructions. Most of the information is
2149 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2151 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2153 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2154 SSSE3 bit for Atoms.
2155 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2158 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2159 structure before copying it to avoid warning.
2160 * posix/tst-rfc3484-2.c (do_test): Likewise.
2161 * posix/tst-rfc3484-3.c (do_test): Likewise.
2164 * include/unistd.h: Make header file suitable for C++ test cases.
2165 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2167 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2168 stack alignment in the exit code.
2170 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2171 potentially be zero.
2173 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2174 unique symbol definition.
2175 Patch by Jakub Jelinek.
2176 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2177 make sure the object with the definition cannot be unloaded. Adjust
2179 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2180 the unique symbol hash table should not be const.
2182 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2184 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2185 unnecesary variables. Comment fixes.
2187 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2189 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2190 Use NONASCII_CASE information provided by the locale to determine
2191 whether optimized string load function can be used. Minor cleanups.
2193 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2195 * string/strcasestr.c (STRCASESTR): New macro.
2196 (__strcasestr): Renamed to ..
2197 (STRCASESTR): ...this.
2198 * string/strstr.c (STRSTR): New macro.
2199 (strstr): Renamed to ..
2201 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2202 strstr-c strcasestr-c
2203 (CFLAGS-strstr.c): New.
2204 (CFLAGS-strcasestr.c): Likewise.
2205 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2206 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2207 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2208 * sysdeps/x86_64/multiarch/strstr.c: New file.
2210 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2212 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2213 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2214 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2215 _NL_CTYPE_NONASCII_CASE.
2216 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2218 (ctype_finish): Check whether there are any 8-bit characters outside
2219 the range ASCII has or whether the mapping isn't the same as for
2220 ASCII (±0x20). Set nonascii_case appropriately.
2221 (ctype_output): Add output handler for nonascii_case.
2223 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2225 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2226 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2228 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2231 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2232 0xffff in the EDNS0 record.
2234 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2236 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2237 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2238 is written before the list head update.
2239 Patch by Andreas Schwab <aschwab@redhat.com>.
2241 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2242 Jakub Jelinek <jakub@redhat.com>
2244 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2245 corruption thread-safe.
2247 2009-07-13 Jakub Jelinek <jakub@redhat.com>
2249 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2250 overrides atomic_compare_and_exchange_val_rel, define to
2251 atomic_compare_and_exchange_val_rel by default, otherwise default
2252 to catomic_compare_and_exchange_val_acq.
2253 (catomic_compare_and_exchange_bool_rel): If arch overrides
2254 atomic_compare_and_exchange_bool_rel, define to
2255 atomic_compare_and_exchange_bool_rel by default.
2256 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2257 Use catomic_compare_and_exchange_val_rel instead of
2258 catomic_compare_and_exchange_val_acq.
2260 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2262 * sysdeps/generic/ldsodefs.h: Add prototype for
2263 _dl_higher_prime_number.
2264 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2266 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2267 restoring of ymm registers a bit.
2269 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
2271 * sysdeps/x86_64/memcmp.S: New file.
2273 2009-07-15 Ulrich Drepper <drepper@redhat.com>
2275 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2276 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
2277 pointers in writable memory.
2279 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2281 * config.h.in: Add HAVE_AVX_SUPPORT entry.
2282 * config.make.in: Add config-cflags-avx entry.
2283 * configure.in: Substitute libc_cv_cc_avx.
2284 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2285 * elf/tst-audit4.c: New file.
2286 * elf/tst-audit5.c: New file.
2287 * elf/tst-auditmod4a.c: New file.
2288 * elf/tst-auditmod4b.c: New file.
2289 * elf/tst-auditmod5a.c: New file.
2290 * elf/tst-auditmod5b.c: New file.
2291 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2293 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2294 (La_x86_64_vector): Likewise.
2295 (La_x86_64_regs): Append lr_vector.
2296 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2297 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2298 saving and restoring SSE registers to ...
2299 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2300 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2302 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2303 La_x86_64_regs. Allocate extra space and jump to memory at
2304 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2305 (save_and_restore_vector_sse): New.
2306 (save_and_restore_vector_avx): Likewise.
2307 (check_avx): Likewise.
2308 (save_and_restore_vector): Likewise.
2309 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2311 * sysdeps/x86_64/link-defines.sym: New file.
2313 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2315 * elf/do-lookup.h: Removed after folding content into...
2316 * elf/dl-lookup.c: ...here.
2318 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2320 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2322 * configure.in: Check for gnu_unique_symbol symbol type.
2323 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2324 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2325 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2326 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2328 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2329 unique symbol table.
2330 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2331 for first namespace.
2332 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2333 unique symbol hash table.
2334 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2335 * elf/tst-unique1.c: New file.
2336 * elf/tst-unique1mod1.c: New file.
2337 * elf/tst-unique1mod2.c: New file.
2338 * elf/tst-unique2.c: New file.
2339 * elf/tst-unique2mod1.c: New file.
2340 * elf/tst-unique2mod2.c: New file.
2342 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2344 * elf/elf.h (STB_GNU_UNIQUE): Define.
2346 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2348 * include/inline-hashtab.h: ...here.
2349 (htab_expand): Adjust for renamed function. Correct memory handling.
2351 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2353 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2355 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2357 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2358 (PPC_FEATURE_HAS_VSX): Likewise.
2360 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2362 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2363 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2365 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2366 aligned to 16 byte boundaries.
2367 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2368 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2369 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2371 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2373 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2374 * config.make.in (config-cflags-sse4): New variable.
2375 * configure.in: Substitute libc_cv_cc_sse4.
2376 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2378 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2379 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2380 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2381 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2382 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2383 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2384 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2385 * sysdeps/x86_64/multiarch/strspn.S: New file.
2387 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2389 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2390 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2391 (tests): Add tst-audit3 for x86_64.
2392 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2393 ($(objpfx)tst-audit3): Define.
2394 ($(objpfx)tst-audit3.out): Define.
2395 (tst-audit3-ENV): Define.
2396 * elf/tst-audit3.c: New file.
2397 * elf/tst-auditmod3a.c: New file.
2398 * elf/tst-auditmod3b.c: New file.
2399 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2402 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2403 (__stpncpy): Renamed to ...
2405 (stpncpy): Create alias only if STPNCPY is not defined.
2406 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2408 (strncpy): Renamed to ...
2410 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2411 stpncpy-c strncpy-c for string.
2412 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2413 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2414 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2415 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2416 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2417 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2419 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2421 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2422 adding to fast bin list.
2424 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2426 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2427 inet_makeaddr. This worked only with class-based networks.
2428 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2431 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2432 recognize all types.
2433 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2434 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2435 be in host byte order.
2437 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2439 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2440 (MODEL_OFFSET): Define.
2441 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2443 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2444 out common code into new function get_common_indeces. Determine
2445 extended family and model for Intel processors.
2447 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2449 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2450 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2452 * resolv/res_send.c (reopen): New function. Broken out of...
2453 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2454 fallback mechanism. If single-request fails switch to
2455 single-request-reopen mode which opens a new socket for the second
2458 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2460 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2463 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2465 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2466 for saved registers.
2467 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2468 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2469 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2471 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2473 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2475 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2477 * po/id.po: Update from translation team.
2479 * po/bg.po: Update from translation team.
2481 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2483 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2485 (strncmp): Renamed to STRNCMP.
2486 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2487 strncmp-c for string.
2488 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2489 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2490 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2491 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2493 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2495 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2496 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2497 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2498 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2499 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2501 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2502 ifuncmain7static, and ifuncmain7picstatic.
2503 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2504 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2505 $(objpfx)ifuncmain7pie.out.
2506 (modules-names): Add ifuncmod5 ifuncmod6
2507 (ifuncmod5.so-no-z-defs): Define.
2508 (ifuncmod6.so-no-z-defs): Define.
2509 (CFLAGS-ifuncmain5pic.c): Define.
2510 (CFLAGS-ifuncmain5picstatic.c): Define.
2511 (CFLAGS-ifuncmain5staticpic.c): Define.
2512 (CFLAGS-ifuncdep5pic.c): Define.
2513 (CFLAGS-ifuncmain7pic.c): Define.
2514 (CFLAGS-ifuncmain7picstatic.c): Define.
2515 (CFLAGS-ifuncmain1staticpie.c): Define.
2516 (CFLAGS-ifuncmain5pie.c): Define.
2517 (CFLAGS-ifuncmain6pie.c): Define.
2518 (CFLAGS-ifuncmain7pie.c): Define.
2519 ($(objpfx)ifuncmain1staticpie.out): Define.
2520 ($(objpfx)ifuncmain1staticpie): Define.
2521 ($(objpfx)ifuncmain5pie.out): Define.
2522 ($(objpfx)ifuncmain5pie): Define.
2523 ($(objpfx)ifuncmain6pie.out): Define.
2524 ($(objpfx)ifuncmain6pie): Define.
2525 ($(objpfx)ifuncmain5): Define.
2526 ($(objpfx)ifuncmain5pic): Define.
2527 ($(objpfx)ifuncmain5static): Define.
2528 ($(objpfx)ifuncmain5staticpic): Define.
2529 ($(objpfx)ifuncmain5picstatic): Define.
2530 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2531 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2533 * elf/b/elf/ifuncmain1staticpie.c: New file.
2534 * elf/ifuncdep5.c: New file.
2535 * elf/ifuncdep5pic.c: New file.
2536 * elf/ifuncmain5.c: New file.
2537 * elf/ifuncmain5pic.c: New file.
2538 * elf/ifuncmain5picstatic.c: New file.
2539 * elf/ifuncmain5pie.c: New file.
2540 * elf/ifuncmain5static.c: New file.
2541 * elf/ifuncmain5staticpic.c: New file.
2542 * elf/ifuncmain6pie.c: New file.
2543 * elf/ifuncmain7.c: New file.
2544 * elf/ifuncmain7pic.c: New file.
2545 * elf/ifuncmain7picstatic.c: New file.
2546 * elf/ifuncmain7pie.c: New file.
2547 * elf/ifuncmain7static.c: New file.
2548 * elf/ifuncmod5.c: New file.
2549 * elf/ifuncmod6.c: New file.
2551 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2554 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2555 (nss_endgrent): New variable.
2556 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2557 fields. Change type of files to bool and adjust all users.
2558 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2559 (internal_endgrent): Call nss_endgrent if necessary.
2560 (add_group): New function. Broken out of...
2561 (check_and_add_group): ...here.
2562 (getgrent_next_nss): Remove test that any callback is available.
2563 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2564 callback. If there is no blacklist we can trust the results returned
2565 by the initgroups_dyn callback. In case there is a callback and we
2566 find a group entry for the group ID but it doesn't contain the
2567 correct member, switch to the slow mode and use getgrent_r.
2568 (internal_getgrent_r): When we see a +: entry, determine whether
2569 there is any callback and which we can use the initgroups_dyn
2572 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2574 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2575 (_int_free): Likewise.
2577 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2579 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2580 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2581 and ARPHRD_IEEE802154_PHY.
2583 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2584 relative to generic Linux version.
2586 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2588 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2589 ($(objpfx)ifuncmain1vispie): Likewise.
2591 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2593 * login/Makefile: Build pt_chown as PIE.
2595 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2597 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2599 * elf/sln.c (usage): Likewise.
2600 * malloc/memusage.sh (do_help): Likewise.
2601 * nss/getent.c (more_help): Likewise.
2602 * posix/getconf.c (main): Likewise.
2603 * sunrpc/rpcinfo.c (usage): Likewise.
2604 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2606 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2608 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2610 * login/Makefile: If necessary link pt_chown with -lcap.
2611 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2612 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2614 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2616 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2618 * string/test-memchr.c (do_random_tests): Test very large lengths
2621 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2623 * Makeconfig (+link-pie): Define.
2624 (+prectorS): Define.
2625 (+postctorS): Define.
2626 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2627 * nscd/Makefile ($(objpfx)nscd): Likewise.
2629 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2632 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2634 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2636 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2638 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2640 * sysdeps/unix/grantpt.c: ...here.
2642 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2644 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2645 chmod if it is necessary.
2648 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2649 when the slave device is in devpts or devfs.
2652 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2655 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2656 of nd_opt_home_agent_info_preference to uint16_t.
2657 Patch by Arnaud Ebalard <arno@natisbad.org>.
2660 * nss/getent.c: Add support for printing gshadow data.
2663 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2664 not just the currently used one and those which follow.
2665 Patch by Joe Landers <jlanders@vmware.com>.
2668 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2669 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2670 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2673 * stdlib/abort.c: Define variable __abort_msg.
2674 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2675 * include/stdlib.h: Declare __abort_msg.
2676 * assert/assert-perr.c: Don't free buffer for message immediately.
2677 Store atomically in __abort_msg and free old buffer if necessary.
2678 * assert/assert.c: Likewise.
2679 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2680 store pointer in __abort_msg, and possibly free old string.
2681 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2683 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2686 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2687 handle leap seconds if they are available.
2688 Patch by Akinori Hattori <hattya@gentoo.org>.
2690 * timezone/tzselect.ksh: Update from tzcode2009i.
2691 * timezone/zdump.c: Likewise.
2692 * timezone/zic.c: Likewise.
2694 * timezone/africa: Update from tzdata2009i.
2695 * timezone/antarctica: Likewise.
2696 * timezone/asia: Likewise.
2697 * timezone/australasia: Likewise.
2698 * timezone/backward: Likewise.
2699 * timezone/etcetera: Likewise.
2700 * timezone/europe: Likewise.
2701 * timezone/factory: Likewise.
2702 * timezone/iso3166.tab: Likewise.
2703 * timezone/leapseconds: Likewise.
2704 * timezone/northamerica: Likewise.
2705 * timezone/pacificnew: Likewise.
2706 * timezone/solar87: Likewise.
2707 * timezone/solar88: Likewise.
2708 * timezone/solar89: Likewise.
2709 * timezone/southamerica: Likewise.
2710 * timezone/systemv: Likewise.
2711 * timezone/yearistype: Likewise.
2712 * timezone/zone.tab: Likewise.
2714 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2716 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2717 STT_GNU_IFUNC symbol or in 8 into type_class.
2719 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2720 instead of Elf64_Addr.
2722 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2724 * po/sv.po: Update from translation team.
2727 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2728 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2729 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2732 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2734 * Versions.def: Add GLIBC_2.11 for libpthread.
2736 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2738 * resolv/res_send.c (send_dg): Remember we switched to
2739 single-request mode.
2741 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2743 * dlfcn/dlfcn.h: Remove comma at end of enum.
2744 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2746 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2747 parsing mode string.
2749 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2751 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2753 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2755 * sysdeps/x86_64/multiarch/strlen.S: New file.
2756 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2757 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2758 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2761 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2764 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2766 * sysdeps/x86_64/strlen.S: Minor optimizations.
2768 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2770 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2771 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2772 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2773 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2774 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2775 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2776 ifuncmain3.c, ifuncmod3.c,.
2777 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2778 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2779 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2780 ifuncmain4picstatic.
2781 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2782 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2783 ifuncmain3, ifuncmain4.
2784 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2785 $(objpfx)ifuncmain1vispie.out.
2786 (modules-names): Add ifuncmod1 ifuncmod3.
2787 (generated): Add ifuncmain1pie ifuncmain1pie.out
2788 ifuncmain1vispie ifuncmain1vispie.out.
2789 Define rules to build and run the tests.
2790 * elf/ifuncdep1.c: New file.
2791 * elf/ifuncdep1pic.c: New file.
2792 * elf/ifuncdep2.c: New file.
2793 * elf/ifuncdep2pic.c: New file.
2794 * elf/ifuncmain1.c: New file.
2795 * elf/ifuncmain1pic.c: New file.
2796 * elf/ifuncmain1picstatic.c: New file.
2797 * elf/ifuncmain1pie.c: New file.
2798 * elf/ifuncmain1static.c: New file.
2799 * elf/ifuncmain1staticpic.c: New file.
2800 * elf/ifuncmain1vis.c: New file..
2801 * elf/ifuncmain1vispic.c: New file..
2802 * elf/ifuncmain1vispie.c: New file.
2803 * elf/ifuncmain2.c: New file.
2804 * elf/ifuncmain2pic.c: New file.
2805 * elf/ifuncmain2picstatic.c: New file.
2806 * elf/ifuncmain2static.c: New file.
2807 * elf/ifuncmain3.c: New file.
2808 * elf/ifuncmain4.c: New file.
2809 * elf/ifuncmain4picstatic.c: New file.
2810 * elf/ifuncmain4static.c: New file.
2811 * elf/ifuncmod1.c: New file.
2812 * elf/ifuncmod3.c: New file.
2814 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2816 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2818 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2821 * posix/Makefile (routines): Add execvpe.
2822 * posix/Versions: Export execvpe for GLIBC_2.11.
2823 * posix/execvp.c: Now only a wrapper. Move code to...
2824 * posix/execvpe.c: ...here. New file.
2825 * posix/unistd.h: Declare execvpe.
2827 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2829 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2830 for STT_GNU_IFUNC handling for efficiency.
2831 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2833 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2835 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2837 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2839 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2842 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2844 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2846 (__rela_iplt_start): New declaration.
2847 (__rela_iplt_end): Likewise.
2848 (__rel_iplt_start): Likewise.
2849 (__rel_iplt_end): Likewise.
2850 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2851 * elf/elf.h (R_386_IRELATIVE): New macro.
2852 (R_X86_64_IRELATIVE): New macro.
2853 (R_386_NUM): Updated.
2854 (R_X86_64_NUM): Likewise.
2855 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2856 (libc_ifunc_hidden_def): New macro.
2857 * sysdeps/generic/dl-irel.h: New file.
2858 * sysdeps/i386/dl-irel.h: New file.
2859 * sysdeps/x86_64/dl-irel.h: New file.
2860 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2861 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2862 Handle R_386_IRELATIVE.
2863 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2864 (elf_machine_lazy_rela): Likewise.
2865 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2867 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2869 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2871 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2872 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2873 are no differences. If an architecture has bits in CPUID index 1
2874 meaning different things the values for the COMMON_CPUID_INDEX_1
2875 index must not be set.
2876 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2877 (HAS_POPCOUNT): ...this. New macro.
2878 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2879 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2880 to set the value for Intel and AMD architectures.
2881 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2882 INTEL_CPUID_INDEX_1.
2883 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2886 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2888 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2891 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2893 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2894 (__expm1l): Set errno to ERANGE on overflow.
2895 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2896 (__tanl): Set errno to EDOM for ±Inf.
2897 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2898 (__cosl): Set errno to EDOM for ±Inf.
2899 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2900 (__sinl): Set errno to EDOM for ±Inf.
2902 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2904 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2905 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2906 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2908 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2910 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2912 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2914 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2916 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2917 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2918 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2919 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2921 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2922 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2923 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2925 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2926 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2928 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2930 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2931 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2932 is, either do nothing at all if __ASSUME_ACCEPT4, or
2933 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2934 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2935 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2937 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2938 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2939 internal_accept4 in socket directory.
2941 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2943 * sysdeps/ia64/configure.in: New file.
2945 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2948 * sysdeps/ia64/memchr.S: Use speculative load.
2950 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2951 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2954 * sysdeps/i386/__longjmp.S: Add .text.
2955 * sysdeps/x86_64/__longjmp.S: Likewise.
2957 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2959 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2960 __ASSUME_ACCEPT4 for IA-64.
2962 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2964 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2966 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2967 (SOCKOP_accept4): Define.
2969 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2971 Sun approved the change of the license.
2972 * sunrpc/auth_des.c: Replace license text.
2973 * sunrpc/auth_none.c: Likewise.
2974 * sunrpc/auth_unix.c: Likewise.
2975 * sunrpc/authdes_prot.c: Likewise.
2976 * sunrpc/authuxprot.c: Likewise.
2977 * sunrpc/bindrsvprt.c: Likewise.
2978 * sunrpc/clnt_gen.c: Likewise.
2979 * sunrpc/clnt_perr.c: Likewise.
2980 * sunrpc/clnt_raw.c: Likewise.
2981 * sunrpc/clnt_simp.c: Likewise.
2982 * sunrpc/clnt_tcp.c: Likewise.
2983 * sunrpc/clnt_udp.c: Likewise.
2984 * sunrpc/clnt_unix.c: Likewise.
2985 * sunrpc/des_crypt.c: Likewise.
2986 * sunrpc/des_soft.c: Likewise.
2987 * sunrpc/get_myaddr.c: Likewise.
2988 * sunrpc/getrpcport.c: Likewise.
2989 * sunrpc/key_call.c: Likewise.
2990 * sunrpc/key_prot.c: Likewise.
2991 * sunrpc/openchild.c: Likewise.
2992 * sunrpc/pm_getmaps.c: Likewise.
2993 * sunrpc/pm_getport.c: Likewise.
2994 * sunrpc/pmap_clnt.c: Likewise.
2995 * sunrpc/pmap_prot.c: Likewise.
2996 * sunrpc/pmap_prot2.c: Likewise.
2997 * sunrpc/pmap_rmt.c: Likewise.
2998 * sunrpc/rpc/auth.h: Likewise.
2999 * sunrpc/rpc/auth_unix.h: Likewise.
3000 * sunrpc/rpc/clnt.h: Likewise.
3001 * sunrpc/rpc/des_crypt.h: Likewise.
3002 * sunrpc/rpc/key_prot.h: Likewise.
3003 * sunrpc/rpc/netdb.h: Likewise.
3004 * sunrpc/rpc/pmap_clnt.h: Likewise.
3005 * sunrpc/rpc/pmap_prot.h: Likewise.
3006 * sunrpc/rpc/pmap_rmt.h: Likewise.
3007 * sunrpc/rpc/rpc.h: Likewise.
3008 * sunrpc/rpc/rpc_des.h: Likewise.
3009 * sunrpc/rpc/rpc_msg.h: Likewise.
3010 * sunrpc/rpc/svc.h: Likewise.
3011 * sunrpc/rpc/svc_auth.h: Likewise.
3012 * sunrpc/rpc/types.h: Likewise.
3013 * sunrpc/rpc/xdr.h: Likewise.
3014 * sunrpc/rpc_clntout.c: Likewise.
3015 * sunrpc/rpc_cmsg.c: Likewise.
3016 * sunrpc/rpc_common.c: Likewise.
3017 * sunrpc/rpc_cout.c: Likewise.
3018 * sunrpc/rpc_dtable.c: Likewise.
3019 * sunrpc/rpc_hout.c: Likewise.
3020 * sunrpc/rpc_main.c: Likewise.
3021 * sunrpc/rpc_parse.c: Likewise.
3022 * sunrpc/rpc_parse.h: Likewise.
3023 * sunrpc/rpc_prot.c: Likewise.
3024 * sunrpc/rpc_sample.c: Likewise.
3025 * sunrpc/rpc_scan.c: Likewise.
3026 * sunrpc/rpc_scan.h: Likewise.
3027 * sunrpc/rpc_svcout.c: Likewise.
3028 * sunrpc/rpc_tblout.c: Likewise.
3029 * sunrpc/rpc_util.c: Likewise.
3030 * sunrpc/rpc_util.h: Likewise.
3031 * sunrpc/rpcinfo.c: Likewise.
3032 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3033 * sunrpc/rpcsvc/key_prot.x: Likewise.
3034 * sunrpc/rpcsvc/klm_prot.x: Likewise.
3035 * sunrpc/rpcsvc/mount.x: Likewise.
3036 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3037 * sunrpc/rpcsvc/rex.x: Likewise.
3038 * sunrpc/rpcsvc/rstat.x: Likewise.
3039 * sunrpc/rpcsvc/rusers.x: Likewise.
3040 * sunrpc/rpcsvc/sm_inter.x: Likewise.
3041 * sunrpc/rpcsvc/spray.x: Likewise.
3042 * sunrpc/rpcsvc/yppasswd.x: Likewise.
3043 * sunrpc/rtime.c: Likewise.
3044 * sunrpc/svc.c: Likewise.
3045 * sunrpc/svc_auth.c: Likewise.
3046 * sunrpc/svc_authux.c: Likewise.
3047 * sunrpc/svc_raw.c: Likewise.
3048 * sunrpc/svc_run.c: Likewise.
3049 * sunrpc/svc_simple.c: Likewise.
3050 * sunrpc/svc_tcp.c: Likewise.
3051 * sunrpc/svc_udp.c: Likewise.
3052 * sunrpc/svc_unix.c: Likewise.
3053 * sunrpc/svcauth_des.c: Likewise.
3054 * sunrpc/xcrypt.c: Likewise.
3055 * sunrpc/xdr.c: Likewise.
3056 * sunrpc/xdr_array.c: Likewise.
3057 * sunrpc/xdr_float.c: Likewise.
3058 * sunrpc/xdr_mem.c: Likewise.
3059 * sunrpc/xdr_rec.c: Likewise.
3060 * sunrpc/xdr_ref.c: Likewise.
3061 * sunrpc/xdr_sizeof.c: Likewise.
3062 * sunrpc/xdr_stdio.c: Likewise.
3064 * po/da.po: Update from translation team.
3066 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3068 * sysdeps/sh/____longjmp_chk.S: New file.
3069 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3070 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3072 2009-05-18 Jakub Jelinek <jakub@redhat.com>
3073 Ulrich Drepper <drepper@redhat.com>
3075 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3076 (__nscd_cache_search): Assume each entry in the
3077 hash chain needs one hashentry and half of datahead. Use
3078 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3080 2009-05-16 Ulrich Drepper <drepper@redhat.com>
3082 * posix/sys/wait.h: Fix typos. Pretty printing.
3083 * stdlib/stdlib.h: Likewise. Correct comments.
3086 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3088 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3091 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3093 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3094 Use it if we absolutely cannot reach any more correct list elements
3095 because that many do not fit into the currently mapped database.
3097 2009-05-14 Jakub Jelinek <jakub@redhat.com>
3099 * nscd/nscd_helper.c: Include stddef.h.
3100 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
3101 in a couple of places. Return NULL if trail is not less than
3102 datasize, don't consider dataheads with length smaller than
3103 offsetof (struct datahead, data) + datalen.
3104 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3105 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3106 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3107 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3108 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3109 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3110 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3112 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3114 (fallocate64): ... to this.
3115 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3117 (fallocate64): ... to this.
3118 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3119 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3120 fallocate64@@GLIBC_2.10.
3121 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3122 fallocate64@@GLIBC_2.11.
3123 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3125 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3126 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3128 * nscd/selinux.c (nscd_avc_destroy): Removed.
3129 * nscd/selinux.h (nscd_avc_destroy): Likewise.
3130 * nscd/nscd.c (termination_handler): Don't call
3133 2009-05-12 Jakub Jelinek <jakub@redhat.com>
3135 * include/atomic.h: Formatting.
3136 (catomic_compare_and_exchange_val_acq): Don't define if already
3137 defined by bits/atomic.h.
3139 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3141 * math/libm-test.inc (expm1_test): Add test for range error.
3143 * Versions.def: Add GLIBC_2.11 for libc.
3144 * debug/Makefile (routines): Add longjmp_chk.
3145 Add rules to build and run tst-longjmp_chk.
3146 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3147 * debug/longjmp_chk.c: New file.
3148 * debug/tst-longjmp_chk.c: New file.
3149 * include/bits/setjmp2.: New file.
3150 * include/stdio.h: Mark __fortify_fail as internal_function.
3151 * setjmp/Makefile (headers): Add bits/setjmp2.h.
3152 * setjmp/bits/setjmp2.h: New file.
3153 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3155 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3157 * sysdeps/i386/____longjmp_chk.S: New file.
3158 * sysdeps/x86_64/____longjmp_chk.S: New file.
3159 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3160 * sysdeps/x86_64/__longjmp.S: Likewise.
3162 * version.h: Bump for 2.11 development.
3164 * elf/check-execstack.c: New file.
3165 * elf/Makefile: Add rules to build and run check-execstack.
3167 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3169 * version.h (VERSION): Bump to 2.10.1.
3171 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3172 compatibility functions.
3173 * nss/getXXent_r.c: Likewise.
3174 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3175 * gshadow/getsgnam_r.c: Likewise.
3176 * gshadow/Version: Remove duplicate entries.
3178 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3179 for recent processor.
3180 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3183 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3185 * version.h (VERSION): Bump for 2.10 release.
3186 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3188 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3189 same place we add ASFLAGS-config.
3191 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3194 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3195 or FORMERR and the other NOERROR, don't raise an error.
3197 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3200 * Makeconfig (+asflags): New variable based upon ASFLAG or
3202 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3203 * config.make.in (asflags-cpu): Add variable based upon
3204 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3207 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3208 recognizes power6 instruction set due to passing -mcpu=power6 from
3209 --with-cpu=power6 when compiling .S files.
3210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3217 2009-05-09 Jakub Jelinek <jakub@redhat.com>
3219 * string/stratcliff.c (do_test): Test for zero length
3220 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3221 at the end of the page.
3223 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3225 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3227 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3230 * po/da.po: Update from translation team.
3232 2009-05-05 Jakub Jelinek <jakub@redhat.com>
3234 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3235 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3237 2009-05-05 Ulrich Drepper <drepper@redhat.com>
3239 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3240 and READ_IMPLIES_EXEC.
3242 2009-05-04 Ulrich Drepper <drepper@redhat.com>
3244 * po/da.po: Update from translation team.
3246 2009-04-29 Jakub Jelinek <jakub@redhat.com>
3248 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3251 2009-04-27 Jakub Jelinek <jakub@redhat.com>
3253 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3254 to MAP_ANON in PROT_NONE mmap64 call.
3255 (open_archive): Likewise.
3256 (file_data_available_p): Use mmap64 instead of mremap.
3257 (enlarge_archive): Likewise. Update head if ah->addr changed.
3258 Attempt to reserve address space after mmap64 region.
3260 2009-04-26 Ulrich Drepper <drepper@redhat.com>
3262 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3263 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3264 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3266 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3267 atanh should set ERANGE.
3270 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3271 result of lookup to make call to implement STT_GNU_IFUNC.
3272 (_dl_profile_fixup): Likewise.
3273 Patch by H.J. Lu <hjl.tools@gmail.com>.
3275 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3278 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3281 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3282 label if it is not used.
3284 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3285 of gmon_hist_hdr and gmon_hdr structures and use them.
3286 * elf/sprof.c: Likewise.
3288 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3291 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3293 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3296 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3297 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3299 (iruserok_af): Use ss_family instead of casts.
3301 * gmon/gmon.c (write_hist): Define real-type variant of
3302 gmon_hist_hdr structure and use it.
3303 (write_gmon): Likewise for gmon_hdr.
3305 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3306 function if we are not going to define it.
3307 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3309 * inet/inet6_option.c (option_alloc): Add temporary variable to
3312 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3313 name of VTable element.
3314 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3315 * libio/iovsscanf.c: Likewise.
3316 * libio/vasprintf.c: Likewise.
3317 * libio/vsnprintf.c: Likewise.
3318 * stdio-common/isoc99_vsscanf.c: Likewise.
3319 * stdlib/strfmon_l.c: Likewise.
3320 * debug/vasprintf_chk.c: Likewise.
3321 * debug/vsnprintf_chk.c: Likewise.
3322 * debug/vsprintf_chk.c: Likewise.
3324 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3327 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3329 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3331 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3333 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3335 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3336 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3337 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3338 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3339 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3340 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3341 * math/libm-test.inc: Add tests for errno after tan calls with
3344 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3345 errno value vor pow(+-0,neg).
3346 * math/libm-test.inc (pow_test): Add tests for errno value for
3349 * math/w_fmod.c: Also handle x=±Inf as error.
3350 * math/w_fmodf.c: Likewise.
3351 * math/w_fmodl.c: Likewise.
3352 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3355 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3356 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3357 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3358 * sysdeps/i386/fpu/s_sin.S: Likewise.
3359 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3360 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3361 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3362 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3363 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3364 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3365 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3366 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3367 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3368 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3371 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3372 ERANGE for underflows.
3373 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3375 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3378 * libio/tst-widetext.input: Remove surrogates.
3380 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3382 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3383 for lgamma should set errno to ERANGE, not EDOM.
3384 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3386 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3389 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3392 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3393 space when temporarily mapping the whole content of the old file.
3396 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3399 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3401 * iconvdata/sjis.c (BODY): Don't advance inptr before
3402 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3403 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3406 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3408 * locale/locarchive.h (struct locarhandle): Rename len field to
3409 mmaped and add new reserved field.
3410 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3411 (create_archive): Reserve address space and then map file into it.
3412 (open_archive): Likewise.
3413 (file_data_available_p): New function.
3414 (compare_from_file): New function.
3415 (close_archive): Adjust to member name changes.
3416 (add_locale): Before comparing locale data, check it is mapped.
3417 Otherwise fall back to reading from the file.
3419 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3421 * stdio-common/psiginfo.c: Include <errno.h>.
3423 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3426 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3427 to get consistency between 32 and 64 bit architectures.
3430 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3431 directory for dummy syscall rules.
3432 Patch by Chris Steinbroner <hesh@pobox.com>.
3434 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3437 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3440 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3442 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3443 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3445 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3447 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3448 data from vector to temporary buffer and call PWRITEV after it
3449 instead of vice versa.
3450 * sysdeps/posix/preadv.c: Fix up comment.
3451 * misc/preadv.c: Likewise.
3452 * misc/preadv64.c: Likewise.
3453 * misc/pwritev.c: Likewise.
3454 * misc/pwritev64.c: Likewise.
3455 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3457 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3459 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3461 * shadow/Makefile (tests): Add tst-shadow.
3462 * shadow/tst-shadow.c: New file.
3465 * gshadow/Makefile: New file.
3466 * gshadow/Versions: New file.
3467 * gshadow/fgetsgent.c: New file.
3468 * gshadow/fgetsgent_r.c: New file.
3469 * gshadow/getsgent.c: New file.
3470 * gshadow/getsgent_r.c: New file.
3471 * gshadow/getsgnam.c: New file.
3472 * gshadow/getsgnam_r.c: New file.
3473 * gshadow/gshadow.h: New file.
3474 * gshadow/putsgent.c: New file.
3475 * gshadow/sgetsgent.c: New file.
3476 * gshadow/sgetsgent_r.c: New file.
3477 * gshadow/tst-gshadow.c: New file.
3478 * include/gshadow.h: New file.
3479 * Makeconfig (all-subdirs): Add gshadow.
3480 * Makefile (installed-headers): Add gshadow/gshadow.h.
3481 * nss/Makefile (databases): Add sgrp.
3482 * nss/Versions: Add gshadow functions as private exports.
3483 * nss/nsswitch.conf: Add gshadow entry.
3484 * nss/sgrp-lookup.c: New file.
3485 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3486 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3487 * nss/nss_files/files-sgrp.c: New file.
3488 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3489 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3491 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3493 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3494 * stdio-common/reg-modifier.c: Likewise.
3496 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3498 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3501 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3504 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3505 headers up to 2.6.30.
3507 * po/ca.po: Update from translation team.
3509 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3512 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3513 an object that uses static TLS if the TLS modid is higher than the
3514 reserve we always allocate. At least for multi-threaded code.
3516 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3518 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3519 Numerically stable check for valid width.
3521 * locale/programs/locarchive.c (open_archive): Map the entire file
3522 and not just the administrative data.
3523 (add_locale): When we find a hash sum match compare the content
3526 * malloc/malloc.c (malloc_info): Output address space information.
3528 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3530 * malloc/malloc.c (malloc_info): Also output system memory information.
3532 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3533 architectures have preadv/pwritev in 2.6.30.
3535 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3536 * sysdeps/posix/readv.c: Likewise.
3537 Reported by Markus Armbruster <armbru@redhat.com>.
3539 * malloc/hooks.c (top_check): Force hook value into register.
3541 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3543 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3544 calls to _dl_relocate_object.
3546 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3549 * malloc/malloc.c (force_reg): Define.
3550 (sYSMALLOc): Load hook variable into variable
3551 before test and force into register.
3552 (sYSTRIm): Likewise.
3553 (public_mALLOc): Force hook value into register.
3554 (public_fREe): Likewise.
3555 (public_rEALLOc): Likewise.
3556 (public_mEMALIGn): Likewise.
3557 (public_vALLOc): Likewise.
3558 (public_pVALLOc): Likewise.
3559 (public_cALLOc): Likewise.
3560 (__posix_memalign): Likewise.
3561 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3562 before test and force into register.
3563 * malloc/hooks.c (top_check): Likewise.
3564 (public_sET_STATe): Pretty printing.
3566 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3567 in case we only receive one reply in single-request mode.
3569 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3571 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3572 are dlopened in statically linked program even for __LM_ID_CALLER.
3574 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3576 * resolv/res_send.c (send_dg): Don't switch into single-request
3577 mode if we already are in it.
3579 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3581 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3582 are always at least 4 bytes in the returned line.
3584 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3586 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3587 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3588 instead of 8K. Stop searching in /proc/stat after hitting first
3589 line not starting with cpu.
3590 (next_line): Truncate too long
3591 lines at buffer size * 3/4 instead of pretending there were line
3592 breaks inside of large lines.
3594 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3596 * sysdeps/x86_64/mp_clz_tab.c: New file.
3598 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3599 Ulrich Drepper <drepper@redhat.com>
3601 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3602 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3603 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3605 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3607 * sysdeps/sh/libc-tls.c: New file.
3609 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3611 2009-04-14 Roland McGrath <roland@redhat.com>
3613 * elf/elf.h: Add various missing ARM constants, to match binutils.
3615 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3617 Optimizations from GMP.
3618 * sysdeps/x86_64/add_n.S: New file.
3619 * sysdeps/x86_64/addmul_1.S: New file.
3620 * sysdeps/x86_64/lshift.S: New file.
3621 * sysdeps/x86_64/mul_1.S: New file.
3622 * sysdeps/x86_64/rshift.S: New file.
3623 * sysdeps/x86_64/sub_n.S: New file.
3624 * sysdeps/x86_64/submul_1.S: New file.
3626 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3628 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3629 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3630 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3631 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3633 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3635 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3638 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3640 * sysdeps/x86-64/strrchr.S: New file.
3642 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3644 * stdio-common/printf.h (struct printf_info): Add user element.
3645 New types printf_arginfo_size_function, printf_va_arg_function.
3646 Declare register_printf_specifier, register_printf_modifier,
3647 register_printf_type.
3648 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3649 (union printf_arg): Add pa_user element.
3650 Adjust __printf_arginfo_table type.
3651 Add __printf_va_arg_table, __printf_modifier_table,
3652 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3654 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3655 If registered arginfo call failed try normal specifier.
3656 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3658 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3659 * stdio-common/Versions: Export register_printf_modifier,
3660 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3661 * stdio-common/reg-modifier.c: New file.
3662 * stdio-common/reg-type.c: New file.
3663 * stdio-common/reg-printf.c (__register_printf_specifier): New
3664 function. Mostly the old __register_printf_function function but
3665 uses locking and type of third parameter changed.
3666 (__register_printf_function): Implement using
3667 __register_printf_specifier.
3668 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3669 calls to arginfo functions. Allocate enough memory for user-defined
3670 types. Call new va_arg functions to get user-defined types.
3671 Try installed handlers even for existing format specifiers first.
3673 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3675 * sysdeps/x86_64/rawmemchr.S: New file.
3677 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3678 Simplified code and possible copy problem fixed.
3680 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3681 function if it is not defined. Add some necessary casts.
3682 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3684 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3685 have preadv/pwritev in 2.6.30.
3687 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3689 * malloc/malloc.c (malloc_info): New function.
3690 * malloc/malloc.h: Declare it.
3691 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3693 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3696 * malloc/malloc.c (_int_realloc): Add parameter with old block
3697 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3699 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3701 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3703 * sysdeps/x86_64/strchrnul.S: New file.
3705 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3706 depending libcrypt on -lfreebl3.
3708 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3709 preadv/pwritev in 2.6.30.
3711 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3712 instead of __strcasecmp.
3714 * string/stratcliff.c (do_test): Add memchr tests..
3715 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3716 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3717 first read quad word.
3719 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3721 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3722 * string/tst-svc.input: Add new test case.
3723 * string/tst-svc.expect: Adjust.
3724 * string/Makefile: Don't ignore tst-svc error.
3726 * sysdeps/x86_64/memchr.S: New file.
3728 * resolv/resolv.h (RES_SNGLKUP): Define.
3729 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3730 * resolv/res_send.c (send_dg): If we sent two requests at once and
3731 only get one reply before timeout switch to mode where we send the
3732 second request only after the first answer has been received.
3734 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3736 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3737 * sysdeps/x86_64/strchr.S: Likewise.
3739 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3741 * configure.in: We need to test for the compiler earlier.
3743 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3744 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3746 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3747 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3749 * misc/preadv.c: New file.
3750 * misc/preadv64.c: New file.
3751 * misc/pwritev.c: New file.
3752 * misc/pwritev64.c: New file.
3753 * sysdeps/posx/preadv.c: New file.
3754 * sysdeps/posx/preadv64.c: New file.
3755 * sysdeps/posx/pwritev.c: New file.
3756 * sysdeps/posx/pwritev64.c: New file.
3757 * sysdeps/unix/sysv/linux/preadv.c: New file.
3758 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3759 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3760 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3761 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3762 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3764 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3766 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3768 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3769 __ASSUME_COMPLETE_READV_WRITEV.
3770 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3771 with modern kernels.
3772 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3774 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3775 to free a possible malloced buffer in case of cancellation.
3776 * sysdeps/posix/writev.c: Likewise for write.
3778 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3780 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3782 * configure.in: Recognize --enable-nss-crypt.
3783 * config.make.in: Add nss-crypt entry.
3784 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3785 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3786 and include path for NSS directory to compiler for md5-crypt,
3787 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3788 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3789 function implementation, use NSS. Introduce wrappers around the
3790 hash function calls. Little code size optimization.
3791 * crypt/sha256-crypt.c: Likewise.
3792 * crypt/sha512-crypt.c: Likewise.
3793 * scripts/check-local-headers.sh: Ignore nss3 directory.
3795 * configure.in: Rename pic_default to libc_cv_pic_default.
3796 * config.make.in: Likewise.
3798 2009-04-01 Roland McGrath <roland@redhat.com>
3800 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3801 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3802 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3803 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3804 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3805 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3806 (R_SPARC_NUM): Update.
3807 From Dave Miller <davem@davemloft.net>.
3809 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3811 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3813 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3815 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3816 those which are used.
3817 * elf/dl-addr.c: Likewise.
3818 * elf/dl-caller.c: Likewise.
3819 * elf/dl-fini.c: Likewise.
3820 * elf/dl-iteratephdr.c: Likewise.
3821 * elf/dl-libc.c: Likewise.
3822 * elf/dl-load.c: Likewise.
3823 * elf/dl-support.c: Likewise.
3824 * elf/dl-sym.c: Likewise.
3825 * elf/rtld.c: Likewise.
3826 * sysdeps/generic/ldsodefs.h: Likewise.
3828 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3829 * elf/dl-minimal.c: Likewise.
3830 * elf/dl-misc.c: Likewise.
3831 * elf/rtld.c: Likewise.
3832 * sysdeps/generic/ldsodefs.h: Likewise.
3834 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3836 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3837 Avoid reuse of complex expression.
3839 * po/fr.po: Update from translation team.
3841 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3843 * include/dirent.h: Yet more changes to match sort function type
3845 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3846 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3847 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3849 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3851 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3853 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3855 * nscd/connections.c (restart): Try to preserve the process name
3856 by reading the /proc/self/exe symlink and using the return name.
3857 Patch by Jeff Bastian <jbastian@redhat.com>.
3859 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3862 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3863 if we are not loading a new audit library.
3864 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3865 Only use profiling trampoline for auditing if we are not relocating
3867 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3868 * elf/rtld.c: Likewise.
3869 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3871 * elf/rtld.c (dl_main): Extend help message for --audit option.
3874 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3875 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3876 * dirent/alphasort.c: Adjust implementation to type change.
3877 * dirent/alphasort64.c: Likewise.
3878 * dirent/scandir.c: Likewise.
3879 * dirent/versionsort.c: Likewise.
3880 * dirent/versionsort64.c: Likewise.
3881 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3883 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3887 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3888 correctly. Set segleft member in output as required.
3889 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3890 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3893 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3894 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3895 * inet/Makefile (tests): Add tst-inet6_rth.
3896 * inet/tst-inet6_rth.c: New file.
3899 * string/strlen.c (strlen): Fix omission in the expression to test
3902 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3904 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3906 * elf/dl-runtime.c (reloc_offset): Define.
3907 (reloc_index): Define.
3908 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3909 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3910 computing index from reloc_offset.
3911 (_dl_call_pltexit): Likewise.
3912 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3913 the relocation index to _dl_fixup.
3914 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3916 * sysdeps/x86_64/dl-runtime.c: New file.
3919 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3920 alignment of La_x86_64_regs. Store xmm parameters.
3921 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3924 * string/strverscmp.c (__strverscmp): Fix case of different digits
3925 in fractional part of string.
3926 Patch by Jingyu Liu <jyliu@fortinet.com>.
3927 * string/Makefile (tests): Add tst-svc2.
3928 * string/tst-svc2.c: New file.
3930 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3932 * locale/iso-639.def: Add Min Nan.
3934 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3937 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3939 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3941 * elf/dl-sysdep.c (auxvars): Compress data structure.
3943 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3944 STT_GNU_IFUNC handling.
3945 (elf_machine_rela): Likewise.
3947 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3949 * config.h.in (USE_MULTIARCH): Define.
3950 * configure.in: Handle --enable-multi-arch.
3951 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3952 (_dl_fixup_profile): Likewise.
3953 * elf/do-lookup.c (dl_lookup_x): Likewise.
3954 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3955 * elf/elf.h (STT_GNU_IFUNC): Define.
3956 * include/libc-symbols.h (libc_ifunc): Define.
3957 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3958 framework in init-arch.h to get CPUID values.
3959 * sysdeps/x86_64/multiarch/Makefile: New file.
3960 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3961 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3962 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3964 * config.make.in (experimental-malloc): Define.
3965 * configure.in: Handle --enable-experimental-malloc.
3966 * malloc/Makefile: Handle experimental-malloc flag.
3967 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3968 * malloc/arena.c: Likewise.
3969 * malloc/hooks.c: Likewise.
3970 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3972 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3974 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3975 prediction. A few size optimizations.
3977 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3979 * time/tzset.c: Optimize a bit for size.
3981 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3983 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3984 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3986 * elf/sprof.c: Avoid warning about multi-line comment.
3988 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3990 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3992 * time/tst-posixtz.c: Add tests for quoted timezone names.
3994 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3996 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3997 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3998 200809L instead of 200112L.
3999 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4000 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4002 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4003 instead of __quick_exit_funcs to __run_exit_handlers.
4004 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4005 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4006 (__cxa_at_quick_exit): Remove attribute_hidden.
4007 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4008 to __run_exit_handlers.
4009 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4012 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4014 * po/id.po: Update from translation team.
4016 2009-02-18 Jakub Jelinek <jakub@redhat.com>
4018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4019 .machine push; .machine "power6" and .machine pop around mtfsf
4020 insns outside of _ARCH_PWR6 define.
4021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4022 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4026 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4027 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4028 relax_fenv_state): Likewise.
4030 2009-03-08 Ulrich Drepper <drepper@redhat.com>
4032 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4034 (static-only-routines): Add at_quick_exit.
4035 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4037 * stdlib/quick_exit.c: New file.
4038 * stdlib/at_quick_exit.c: New file.
4039 * stdlib/cxa_at_quick_exit.c: New file.
4040 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
4042 (__internal_atexit): New function.
4043 (__new_exitfn): Now takes parameter to point to the list to use.
4044 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4045 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
4046 (exit): ...here. Just call __run_exit_handlers appropriately.
4047 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4048 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
4049 * stdlib/on_exit.c: Adjust call to __new_exitfn.
4050 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4052 * po/id.po: Update from translation team.
4054 2009-03-07 Ulrich Drepper <drepper@redhat.com>
4056 * po/ru.po: Update from translation team.
4058 2009-03-04 Ulrich Drepper <drepper@redhat.com>
4060 * po/nl.po: Update from translation team.
4062 2009-03-03 Ulrich Drepper <drepper@redhat.com>
4064 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4065 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4066 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4067 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4068 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4069 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4070 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4072 * po/pl.po: Update from translation team.
4074 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4077 * sysdeps/unix/sysv/linux/fallocate.c: New file.
4078 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4079 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4080 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4081 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4082 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4083 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4085 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4086 Add fallocate and fallocate64.
4088 * io/fcntl.h: Pretty printing.
4090 2009-03-02 Richard Guenther <rguenther@suse.de>
4092 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4093 attribute also for non-C99 inline semantics variant.
4095 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4097 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4098 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4099 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4100 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4106 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4108 * po/cs.po: Update from translation team.
4110 2009-02-28 Ulrich Drepper <drepper@redhat.com>
4112 * po/bg.po: Update from translation team.
4113 * po/sv.po: Likewise.
4114 * po/fi.po: Likewise.
4115 * po/vi.po: Likewise.
4117 2009-02-27 Roland McGrath <roland@redhat.com>
4119 * Makeconfig (%.v.i): Depend on Makeconfig.
4120 Exclude % lines from initial #-comment removal.
4122 2009-02-27 Ulrich Drepper <drepper@redhat.com>
4124 * po/ko.po: Update from translation team.
4126 2009-02-26 Roland McGrath <roland@redhat.com>
4128 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4129 avoids unused warning.
4131 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
4132 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4134 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4135 sys/ucontext.h and asm/elf.h. Include sys/user.h.
4136 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4137 and asm/user.h. Include asm/ptrace.h.
4138 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4139 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4140 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4142 (start_thread): Don't undefine.
4143 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4146 2009-02-26 Ulrich Drepper <drepper@redhat.com>
4148 * wctype/wctype.h: The *_l functions are in POSIX 2008.
4149 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4150 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4151 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4152 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4154 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4155 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4156 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4157 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4158 _SC_THREAD_ROBUST_PRIO_PROTECT.
4159 * posix/unistd.h: fexecve is in POSIX 2008.
4160 * time/time.h: strftime_l is in POSIX 2008.
4161 * io/sys/stat.h: futimens is in POSIX 2008.
4162 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4163 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4164 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4165 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4166 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4167 open_memstream, and vdprintf are in POSIX 2008.
4169 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4171 * include/features.h: Define macros for XPG7/POSIX 2008.
4172 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4173 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4175 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4176 * locale/xlocale.h: Define locale_t type.
4177 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4178 in POSIX 2008. Don't define locale_t here.
4179 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4180 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4181 UTIME_OMIT only with __USE_ATFILE.
4182 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4183 * stdio-common/psiginfo.c: New file.
4184 * stdio-common/psiginfo-data.h: New file.
4185 * stdio-common/psiginfo-define.h: New file.
4186 * stdio-common/Makefile (routines): Add psiginfo.
4187 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4188 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4189 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4190 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4191 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4192 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4193 * io/sys/stat.h: Move mknodat definition into same conditional as
4195 * time/sys/time.h: futimesat is not among the functions accepted
4196 into the POSIX standard.
4198 * include/features.h: If no feature selection given and we select
4199 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4200 * posix/Versions: Export __posix_getopt.
4201 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4202 Use it to alternatively initialize __posixly_correct.
4203 (_getopt_internal_r): Take addition parameter. Pass on to
4205 (_getopt_internal): Take addition parameter. Pass on to
4207 (getopt): Pass additional zero to _getopt_internal.
4208 (__posix_getopt): New function.
4209 * posix/getopt.h: Add redirection for getopt.
4210 * posix/getopt1.c (getopt_long): Pass additional zero to
4212 (getopt_long_only): Likewise.
4213 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4214 (_getopt_long_only_r): Likewise.
4215 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4218 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4220 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4221 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4222 * sysdeps/posix/sysconf.c (__sysconf): Handle
4223 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4224 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4226 2009-02-24 Roland McGrath <roland@redhat.com>
4229 * README.template: Reworded not to use substituted version number.
4231 * README: ... here (no longer generated).
4232 * Makefile (README): Target removed.
4234 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4236 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4237 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4240 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4242 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4244 2009-02-22 Ulrich Drepper <drepper@redhat.com>
4246 * po/bg.po: Update from translation team.
4248 2009-02-16 Jakub Jelinek <jakub@redhat.com>
4250 * stdlib/monetary.h: Uglify function parameter names.
4251 * sunrpc/rpc/pmap_clnt.h: Likewise.
4252 * sunrpc/rpc/svc.h: Likewise.
4253 * sunrpc/rpc/xdr.h: Likewise.
4254 * sunrpc/rpc/clnt.h: Likewise.
4255 * resolv/netdb.h: Likewise.
4256 * resolv/arpa/nameser.h: Likewise.
4257 * resolv/resolv.h: Likewise.
4258 * argp/argp.h: Likewise.
4259 * locale/langinfo.h: Likewise.
4260 * io/sys/stat.h: Likewise.
4261 * posix/spawn.h: Likewise.
4262 * nis/rpcsvc/nislib.h: Likewise.
4263 * malloc/obstack.h: Likewise.
4264 * sysdeps/ia64/bits/link.h: Likewise.
4265 * sysdeps/i386/bits/link.h: Likewise.
4266 * sysdeps/s390/bits/link.h: Likewise.
4267 * sysdeps/powerpc/bits/link.h: Likewise.
4268 * sysdeps/x86_64/bits/link.h: Likewise.
4269 * sysdeps/sparc/bits/link.h: Likewise.
4270 * sysdeps/sh/bits/link.h: Likewise.
4271 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4272 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4273 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4274 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4276 2008-12-01 Fredrik Unger <fred@tree.se>
4278 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4279 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4280 _FP_UNPACK_RAW_2, fix up first argument.
4282 2009-02-15 Ulrich Drepper <drepper@redhat.com>
4284 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4285 (GET_NPROCS_PARSER): Change parameters and use next_line.
4286 (__get_nprocs): Rewrite to not use stdio routines.
4287 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4288 Change parameters and use next_line.
4290 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4293 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4294 Change mempool_alloc prototype.
4295 * nscd/mem.c (gc): Don't handle mem_in_flight.
4296 (mempool_alloc): Third parameter now only indicates whether this is the
4297 first call (to allocate data) or not. If it is, get db rdlock.
4298 Release it on error. Don't handle mem_in_flight.
4299 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4300 Adjust third parameter of mempool_alloc calls.
4301 Nothing to do here in case mempool_alloc fails.
4302 Avoid local variable shadowing parameter. No need to get db rdlock
4303 before calling cache_add.
4304 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4305 no mem_in_flight array anymore.
4306 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4307 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4308 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4309 in case mempool_alloc fails. No need to get db rdlock before calling
4311 * nscd/hstcache.c (cache_addhst): Likewise.
4312 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4313 * nscd/servicescache.c (cache_addserv): Likewise.
4314 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4316 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4318 * po/lt.po: Update from translation team.
4320 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4322 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4323 defined, allow additional data to be added using the optional
4324 MORE_ELF_HEADER_DATA macro.
4325 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4326 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4328 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4330 * include/atomic.h: Define catomic_and if not already defined.
4331 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4332 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4334 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4336 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4338 (_int_realloc): Likewise. Third argument is now padded size
4339 All _int_* functions are now static.
4341 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4342 * malloc/arena.c: Likewise.
4343 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4346 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4349 * malloc/malloc.c: Add branch prediction for use of the hooks.
4351 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4353 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4356 * bits/confname.h: Add SUSv7 macros for getconf environments.
4357 * bits/environments.h: Likewise.
4358 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4359 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4360 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4361 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4362 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4363 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4364 * posix/getconf.c: Likewise.
4365 * posix/sysconf.c: Likewise.
4366 * sysdeps/posix/sysconf.c: Likewise.
4367 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4370 2009-01-16 Petr Baudis <pasky@suse.cz>
4373 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4374 even if we currently have zero nscount.
4376 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4379 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4380 the input line is too long.
4382 * po/Makefile (libc.pot): Add f_print as function taking c-format
4385 * debug/xtrace.sh: Unify translatable messages.
4386 * elf/ldd.bash.in: Likewise.
4387 * elf/sprof.c: Likewise.
4388 * locale/programs/locale.c: Likewise.
4389 * malloc/memusage.sh: Likewise.
4390 * nss/getent.c: Likewise.
4392 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4394 * debug/pcprofiledump.c (print_version,
4395 argp_program_version_hook): New function.
4396 * elf/ldconfig.c (more_help): New function.
4398 * elf/sln.c (usage): New function.
4399 (main): Support --help and --version.
4400 * malloc/memusagestat.c (print_version): New function.
4401 (argp_program_version_hook): New variable.
4402 * nscd/nscd.c (more_help): New function.
4404 * posix/getconf.c (main): Send --version output to stdout.
4406 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4407 arguments. All callers changed.
4408 (print_version): New function.
4409 (parseargs): Support --help and --version.
4410 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4412 (print_version): New function.
4413 (main): Use getopt_long. Support --help and --version.
4414 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4417 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4419 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4420 (update_data): Fix handling of wrapping back
4421 to the beginning of the buffer.
4424 * stdio-common/psignal.c (psignal): Fix test for empty string.
4426 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4428 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4429 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4430 move _null_auth to .rodata.
4432 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4435 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4437 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4438 today than when the original code was written. Use larger
4439 buffers. This also makes it unnecessary to have stat information,
4440 if this causes extra efforts.
4441 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4444 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4446 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4448 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4449 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4450 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4451 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4452 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4453 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4455 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4457 * po/ru.po: Update from translation team.
4459 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4461 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4462 Add _tid slot to maintain consistency with kernel.
4464 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4466 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4467 incomplete characters at end of input buffer.
4468 * libio/Makefile (tests): Add tst-fgetwc.
4469 * libio/tst-fgetwc.c: New file.
4470 * libio/tst-fgetwc.input: New file.
4472 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4474 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4476 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4479 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4480 *OUTBUFSTART unless the whole output fit into the buffer.
4481 * iconv/Makefile (tests): Add tst-iconv4.
4482 * iconv/tst-iconv4.c: New file.
4484 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4486 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4487 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4489 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4491 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4492 newer linker scripts.
4494 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4497 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4498 inotify_rm_watch should have type int.
4500 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4502 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4503 Make aligned_restore_vmx a local symbol.
4504 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4507 2009-01-30 Andreas Jaeger <aj@suse.de>
4509 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4510 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4511 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4512 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4513 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4514 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4515 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4517 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4520 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4521 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4523 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4527 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4529 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4531 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4533 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4534 memcpy instead of memcmp.
4535 (_dl_setup_pointer_guard): Likewise.
4537 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4539 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4540 manipulated brk, use malloc_printerr.
4541 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4544 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4546 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4547 rindex): For C++ add inlines so that they can be recognized as
4549 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4551 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4552 Jakub Jelinek <jakub@redhat.com>
4554 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4555 * wcsmbs/wchar.h: Likewise.
4557 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4559 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4560 (stackinfo_sub_sp): Define.
4562 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4565 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4566 * include/alloca.h (alloca_account): Define.
4567 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4568 (stackinfo_sub_sp): Define.
4570 * nscd/connections.c (nscd_init): If database file access fails
4571 check whether this is due to permission problems and bail in that
4575 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4576 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4578 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4580 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4581 Add "t" to clobber list.
4582 (INTERNAL_SYSCALL_NCS): Likewise.
4584 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4586 * nss/getent.c (print_networks): Don't print comma between aliases.
4588 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4590 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4592 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4594 * misc/Makefile (tests): Add bug-hsearch1.
4595 * misc/bug-hsearch1.c: New file.
4597 2009-01-22 Roland McGrath <roland@redhat.com>
4599 * Makeconfig (%.v.i): Strip trailing # comments,
4600 not only whole-line comments.
4602 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4604 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4605 one parameter. If non-NULL use it to initialize return value.
4606 (_dl_setup_pointer_guard): New function.
4607 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4608 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4609 * elf/rtld.c (security_init): Pass _dl_random to
4610 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4612 * elf/dl-sysdep.c (_dl_random): New variable.
4613 (_dl_sysdep_start): Handle AT_RANDOM.
4614 (_dl_show_auxv): Likewise.
4615 * elf/dl-support.c (_dl_random): New variable.
4616 (_dl_aux_init): Handle AT_RANDOM.
4617 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4618 to _dl_setup_stack_chk_guard.
4620 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4622 2009-01-10 Roland McGrath <roland@redhat.com>
4624 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4626 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4628 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4631 * nss/nss_files/files-parse.c (strtou32): New function.
4632 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4633 across 32-bit and 64-bit platforms.
4634 (INT_FIELD_MAYBE_NULL): Likewise.
4636 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4639 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4640 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4641 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4644 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4647 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4648 being NULL also if there are no backreferences.
4649 * posix/rxspencer/tests: Add testcases.
4651 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4654 * posix/bug-regex17.c: Add testcases.
4655 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4658 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4660 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4661 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4662 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4663 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4665 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4666 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4667 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4668 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4669 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4670 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4672 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4674 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4675 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4676 re_string_skip_chars, re_string_reconstruct): Likewise.
4677 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4679 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4681 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4682 adjust the buffer alignment.
4684 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4686 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4687 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4690 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4691 flavor to description only when flavor is not NULL.
4693 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4694 mutex after SIGIO/SIGURG lookup loop.
4696 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4698 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4700 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4702 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4705 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4707 * sysdeps/unix/sysv/linux/kernel-features.h
4708 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4710 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4711 if no output is written.
4713 * version.h: Bump to 2.10 development.
4715 * posix/getconf.c: Update copyright year.
4716 * nss/getent.c: Likewise.
4717 * iconv/iconvconfig.c: Likewise.
4718 * iconv/iconv_prog.c: Likewise.
4719 * elf/ldconfig.c: Likewise.
4720 * catgets/gencat.c: Likewise.
4721 * csu/version.c: Likewise.
4722 * elf/ldd.bash.in: Likewise.
4723 * elf/sprof.c (print_version): Likewise.
4724 * locale/programs/locale.c: Likewise.
4725 * locale/programs/localedef.c: Likewise.
4726 * nscd/nscd.c (print_version): Likewise.
4727 * debug/xtrace.sh: Likewise.
4728 * malloc/memusage.sh: Likewise.
4729 * malloc/mtrace.pl: Likewise.
4730 * debug/catchsegv.sh: Likewise.
4732 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4734 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4737 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4739 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4740 gethostbyname4_r function call succeeded, just leave the loop.
4743 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4745 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4746 * wctype/Makefile (tests): Add bug-wctypeh.
4747 * wctype/bug-wctypeh.c: New file.
4749 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4750 LOCALDOMAIN is defined.
4751 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4753 * sysdeps/x86_64/bits/select.h: New file.
4755 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4757 2008-12-21 Bruno Haible <bruno@clisp.org>
4760 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4761 if no output is written.
4763 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4765 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4766 libc internal symbol __dup2 to avoid access through the PLT.
4768 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4771 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4772 available only for __USE_GNU.
4774 * inet/Makefile (tests): Add tst-getni2.
4775 * inet/tst-getni2.c: New file.
4778 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4779 NULL when NI_NAMEREQD is set.
4780 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4781 * inet/Makefile (tests): Add tst-getni1.
4782 * inet/tst-getni1.c: New file.
4784 2008-12-03 Petr Baudis <pasky@suse.cz>
4787 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4788 instead of prune_lock.
4789 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4790 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4792 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4794 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4797 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4800 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4801 after reading name server list.
4804 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4805 handling for host name aliases.
4807 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4809 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4810 instead of doing things manually.
4812 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4814 * posix/regex_internal.h (build_wcs_upper_buffer):
4815 Return type is reg_error_t.
4817 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4819 * posix/globtest.sh: Use mktemp to create temporary file and
4822 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4824 (__CPU_CLR_S): Likewise.
4825 (__CPU_ISSET_S): Likewise.
4827 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4828 Ulrich Drepper <drepper@redhat.com>
4830 * scripts/firstversion.awk: Use custom comparison function to compare
4832 * scripts/versions.awk: Use sort invocation which can handle
4833 multi-digit sub-version numbers.
4835 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4837 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4838 * locale/iso-639.def: Add Chhattisgarhi entry.
4840 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4842 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4844 (_nss_dns_gethostbyname4_r): Likewise.
4845 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4846 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4847 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4848 the no_data variable.
4850 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4851 information at the correct index.
4853 * socket/sys/socket.h: Declare accept4.
4854 * socket/accept4.c: New file.
4855 * sysdeps/unix/sysv/linux/accept4.c: New file.
4856 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4857 * socket/Makefile (routines): Add accept4.
4858 * socket/Versions: Export accept4 with version GLIBC_2.10.
4859 * socket/paccept.c: Removed.
4860 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4861 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4862 * Versions.def: Define GLIBC_2.10 for libc.
4863 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4865 * nscd/connections.c: Use accept4.
4867 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4869 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4871 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4874 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4876 * stdlib/Makefile (tests): Add tst-unsetenv1.
4877 * stdlib/tst-unsetenv1.c: New file.
4879 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4881 * login/utmp_file.c (file_writable): New variable.
4882 (setutent_file): Don't try to open file for writing.
4883 (pututline_file): Before writing, make descriptor writable if
4886 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4888 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4889 to IPv4 or IPv6 if an interface has been found.
4891 2008-11-26 Roland McGrath <roland@redhat.com>
4893 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4894 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4896 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4897 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4898 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4900 * elf/elf.h (NT_386_IOPERM): New macro.
4901 (NT_PPC_VSX): New macro.
4903 2008-11-25 Roland McGrath <roland@redhat.com>
4905 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4906 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4907 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4908 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4909 Subdirectories moved to ports repository.
4910 * configure.in (base_machine): Remove alpha case.
4912 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4914 * sysdeps/mach/strerror_l.c: New file.
4916 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4919 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4920 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4922 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4923 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4924 (relax_fenv_state): Same as above.
4925 (FPSCR_29): Reserve bit in ISA 2.05.
4926 (FPSCR_NI): Provide define for compat.
4927 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4929 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4931 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4932 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4933 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4934 access to hwcap to account for hwcap size increase to uint64_t.
4935 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4938 (*setcontext): Likewise.
4939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4943 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4944 (*setcontext): dynamically select mtfsf insn based on
4945 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4946 increase to uint64_t.
4947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4948 (*swapcontext): dynamically select mtfsf insn based on
4949 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4950 increase to uint64_t.
4951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4956 (*setcontext): dynamically select mtfsf insn based on
4957 PPC_FEATURE_HAS_DFP.
4958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4959 (*swapcontext): dynamically select mtfsf insn based on
4960 PPC_FEATURE_HAS_DFP.
4962 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4964 * version.h: Bump for 2.9 release.
4965 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4968 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4969 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4972 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4975 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4976 unknown request types for now.
4978 2008-11-11 Roland McGrath <roland@redhat.com>
4980 * sysdeps/x86_64/configure: New file.
4982 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4983 * configure: Regenerated.
4985 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4987 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4988 correct instruction to remove the stack frame.
4990 2008-11-03 Michael Matz <matz@suse.de>
4992 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4993 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4995 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4997 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5000 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5001 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5002 of the thread variable instead of void *.
5003 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5004 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5005 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5006 __libc_tsd_define arguments.
5007 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5008 __libc_tsd_address arguments. Remove union hack.
5009 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5010 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5011 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5012 Adjust __libc_tsd_{set,get} arguments.
5013 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5014 __libc_tsd_define arguments.
5015 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5017 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5018 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5019 (LOCALE): Adjust __libc_tsd_define arguments.
5020 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5022 (LOCALE): Adjust __libc_tsd_define arguments.
5023 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5025 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5028 2008-11-02 Ulrich Drepper <drepper@redhat.com>
5030 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5031 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5033 2008-11-01 Ulrich Drepper <drepper@redhat.com>
5036 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5038 2008-10-24 Joseph Myers <joseph@codesourcery.com>
5039 Ulrich Drepper <drepper@redhat.com>
5041 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5042 definition for GCC 3.1 and later.
5044 2008-10-31 Jakub Jelinek <jakub@redhat.com>
5046 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5047 refetch dtv, as it might have changed.
5048 * elf/Makefile: Add rules to build and run tst-tls18.
5049 * elf/tst-tls18.c: New test.
5050 * elf/tst-tlsmod18a.c: New file.
5052 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
5055 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5057 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5060 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5063 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5064 Fix length of copy operation.
5066 2008-10-02 Pierre Habouzit <madcoder@debian.org>
5068 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5069 and fix its calling convention.
5071 2008-10-07 Andreas Schwab <schwab@suse.de>
5074 * resolv/res_send.c (send_vc): Fix last change.
5075 (send_dg): Align here as well.
5077 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5079 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5080 return value in case rlimit is RLIM_INFINITY.
5083 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5085 * resource/Makefile (tests): Add bug-ulimit1.
5086 * resource/bug-ulimit1.c: New file.
5089 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5090 without dot. Properly terminate the string with a null byte.
5091 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5094 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5096 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5100 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5102 2008-10-30 Ulrich Drepper <drepper@redhat.com>
5104 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5105 abort if there is no initgroups_dyn function.
5107 * resolv/res_send.c (send_dg): On timeout, only return nonzero
5108 result if any of the queries really provided an answer.
5110 2008-10-28 Ulrich Drepper <drepper@redhat.com>
5112 * po/lt.po: Update from translation team.
5114 2008-10-26 Ulrich Drepper <drepper@redhat.com>
5116 * po/id.po: Update from translation team.
5118 2008-10-24 Ulrich Drepper <drepper@redhat.com>
5120 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5121 Fix tests for existence of second reply.
5123 2008-10-23 Ulrich Drepper <drepper@redhat.com>
5125 * po/id.po: New file.
5126 Contributed by the Indonesian translation team.
5128 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
5130 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5133 2008-10-17 Jakub Jelinek <jakub@redhat.com>
5135 * elf/Makefile: Add rules to build and run tst-tls17.
5136 * elf/tst-tls17.c: New test.
5137 * elf/tst-tlsmod17a.c: New file.
5138 * elf/tst-tlsmod17b.c: Likewise.
5140 2008-10-17 Ulrich Drepper <drepper@redhat.com>
5142 * stdlib/divmod_1.c: Use correct type for dummy variable.
5143 * stdlib/mod_1.c: Likewise.
5145 2008-10-16 Ulrich Drepper <drepper@redhat.com>
5147 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5149 2008-10-16 Jakub Jelinek <jakub@redhat.com>
5151 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5152 __nonnull order for C++.
5153 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5154 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5156 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
5158 * stdlib/longlong.h: Update from GCC.
5160 2008-10-09 Jakub Jelinek <jakub@redhat.com>
5161 David S. Miller <davem@davemloft.net>
5163 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5164 make sure any registers used with 64-bit 'branch-on-register'
5165 instructions have their top 32-bits clear.
5166 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5167 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5169 2008-09-18 Andreas Schwab <schwab@suse.de>
5172 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5173 Properly handle partial reads.
5175 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5177 * elf/elf.h (STO_MIPS_PLT): New.
5179 (R_MIPS_JUMP_SLOT): New.
5180 (R_MIPS_NUM): Redefine to 128.
5181 (DT_MIPS_PLTGOT): New.
5182 (DT_MIPS_RWPLT): New.
5183 (DT_MIPS_NUM): Redefine to 0x35.
5185 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5187 * timezone/africa: Update from tzdata2008f.
5188 * timezone/asia: Likewise.
5189 * timezone/australasia: Likewise.
5190 * timezone/europe: Likewise.
5191 * timezone/leapseconds: Likewise.
5192 * timezone/northamerica: Likewise.
5193 * timezone/southamerica: Likewise.
5194 * timezone/zone.tab: Likewise.
5196 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5198 * nscd/connections.c: Disable use of paccept for now.
5200 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5202 * socket/Versions: Remove paccept export for GLIBC_2.9.
5203 * socket/Makefile (routines): Remove paccept.
5204 * socket/sys/socket.h: Remove paccept declaration.
5206 * po/sv.po: Update from translation team.
5208 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5210 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5211 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5213 2008-09-16 Ulrich Drepper <drepper@redhat.com>
5215 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5216 Patch by Olivier Fourdan <ofourdan@redhat.com>.
5218 2008-09-15 Ulrich Drepper <drepper@redhat.com>
5220 * sunrpc/rpc/svc.h: Declare svcfd_create.
5221 Patch by Michael Solberg <msolberg@redhat.com>.
5223 2008-09-12 Flavio Leitner <fleitner@redhat.com>
5224 Ulrich Drepper <drepper@redhat.com>
5226 * malloc/malloc.c (public_vALLOc): Try other arenas in case
5228 (public_pVALLOc): Likewise.
5230 2008-09-02 Andreas Jaeger <aj@suse.de>
5232 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5235 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
5238 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5240 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
5242 * Makefile (check-data): Check data directory in add-ons.
5243 * elf/Makefile (check-data): Likewise.
5245 2008-08-18 Roland McGrath <roland@redhat.com>
5247 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5248 * configure: Regenerated.
5249 * config.make.in (cflags-cpu): New substituted variable.
5250 (with-cpu): Variable removed.
5251 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5253 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
5256 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5257 __signbitl definition and __LONG_DOUBLE_128__ guard from:
5258 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5259 redundant. Functions which call floating point assembler operations
5260 should go into a sysdeps powerpc/fpu directory.
5262 2008-08-15 Ulrich Drepper <drepper@redhat.com>
5264 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5265 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5267 2008-08-14 Ulrich Drepper <drepper@redhat.com>
5269 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5271 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5272 change related to AT_EXECFN. We cannot use that string.
5273 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5275 * elf/dl-support.c: Remove _dl_execfn variable.
5276 (_dl_aux_init): Remove handling of AT_EXECFN.
5277 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5278 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5280 2008-08-13 Ulrich Drepper <drepper@redhat.com>
5283 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
5284 byte gets added to writes and seeks from the end use the length of
5285 the buffer and not the currently terminating NUL byte.
5288 * login/utmp_file.c (getutent_r_file): Take additional parameter.
5289 Set to true if locking failed.
5290 (getutid_r_file): Adjust caller.
5291 (pututline_file): Likewise. Return NULL in this case.
5292 Patch mostly by halesh.s@gmail.com.
5294 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5297 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5299 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5301 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5304 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5305 macro since it is now available in elf/dynamic-link.h.
5307 2008-08-12 Roland McGrath <roland@frob.com>
5309 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5310 in case used outside of libc.
5311 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5313 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5315 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5316 directly instead of going through dn_comp.
5318 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5320 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5321 Fix asm constraints.
5323 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5326 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5327 (IPV6_PMTUDISC_PROBE): Likewise.
5329 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5332 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5334 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5335 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5338 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5339 Added the members 'vsx' and 'arch_2_06'.
5340 (_dl_powerpc_platforms): Add the member 'power7'.
5341 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5342 to reflect the changes required by VSX and ISA 2.06.
5343 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5345 Defined PPC_PLATFORM_POWER7.
5346 (_dl_string_platform): Add support for POWER7.
5347 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5348 capability and ISA 2.06.
5350 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5353 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5354 macro to detect use of 128 bit long double.
5355 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5357 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5359 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5362 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5364 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5365 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5367 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5369 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5370 guaranteed to be large enough to read inotify event. Ignore
5371 EAGAIN error. Better error message. Add branch predicition.
5372 (main_loop_epoll): Likewise.
5374 2008-08-02 Roland McGrath <roland@frob.com>
5376 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5377 Add memory clobbers.
5379 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5381 * manual/arith.texi: Avoid @strong{Note:}.
5382 * manual/creature.texi: Likewise.
5383 * manual/filesys.texi: Likewise.
5384 * manual/math.texi: Likewise.
5385 * manual/memory.texi: Likewise.
5386 * manual/resource.texi: Likewise.
5387 * manual/syslog.texi: Likewise.
5388 * manual/time.texi: Likewise.
5390 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5393 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5395 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5396 new epoll_create1 interface.
5397 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5398 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5399 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5401 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5402 (NS_GET32): Likewise.
5404 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5407 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5408 use the AT_EXECFN value if it is no absolute path.
5409 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5412 * Versions.def: Add GLIBC_2.9 to libresolv.
5413 * include/resolv.h: Remove hidden proto declarations for __ns_*
5414 functions. Add them for __dn_count_labels and __p_secstodate.
5415 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5416 Define ns_msg_getflags macro here.
5417 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5419 * resolv/Versions: Export functions from <arpa/nameser.h> from
5420 libresolv in version GLIBC_2.9.
5421 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5423 * resolv/ns_netint.c: Likewise.
5424 * resolv/ns_parse.c: Likewise.
5425 * resolv/ns_print.c: Likewise.
5426 * resolv/ns_samedomain.c: Likewise.
5427 * resolv/ns_ttl.c: Likewise.
5428 * resolv/arpa/nameser_compat.h: Likewise.
5429 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5431 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5432 instead of ns_get16.
5433 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5434 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5435 (gaih_getanswer_slice): Likewise.
5436 * resolv/Makefile (libresolv-routines): Add ns_date.
5437 * resolv/ns_date.c: New file.
5439 * elf/Makefile (check-localplt.out): Also check libresolv and
5442 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5444 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5447 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5449 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5450 buffer passed to NSS functions.
5452 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5454 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5457 * misc/syslog.c (openlog_internal): Fix compile problem.
5459 2008-07-28 Roland McGrath <roland@redhat.com>
5461 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5463 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5465 * io/ftw.c (add_object): Remove inline to avoid warning.
5467 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5469 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5470 Use it instead of locally defined resplen2 variable.
5471 (res_nsend): Adjust for __libc_res_nsend interface change.
5472 (send_vc): Initialize *resplen2 if necessary. Read length of
5473 package into an appropriately aligned variable. Store converted length
5474 in new variable and use it appropriately.
5475 Add branch prediction help.
5476 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5477 and pass it on to __libc_res_nsend. Adjust all callers.
5478 (__libc_res_nsearch): Likewise.
5479 (__libc_res_nqeurydomain): Likewise.
5480 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5482 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5483 Define resplen2 variable and pass it to __libc_res_nsearch and then
5485 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5486 Add branch prediction.
5487 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5488 (gaih_getanswer): Don't decode second slice if first one failed due
5489 to a too small buffer. Don't let not found status of second
5490 decoder shadow results of the first.
5491 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5492 and __libc_res_nquery interface changes
5493 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5494 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5495 __libc_res_nsearch, and __libc_res_nsend.
5496 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5498 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5499 __libc_res_nsearch interface changes.
5501 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5503 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5505 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5506 file descriptors with close-on-exec set.
5507 (exec_comm_child): Fix the case where the write end of the pipe is
5508 STDOUT_FILENO already. In case it is, clear close-on-exec.
5510 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5511 * io/pipe2.c: Likewise.
5512 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5513 instead of __ASSUME_PACCEPT.
5514 * include/unistd.h: Declare __have_pipe2.
5515 * libio/iopopen.c: Implement "e" flag.
5516 * libio/Makefile (tests): Add tst-popen1.
5517 * libio/tst-popen1.c: New file.
5519 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5520 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5522 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5525 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5526 success call of _IO_SEEKOFF or calls which failed because the
5527 descriptor is for a pipe.
5529 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5532 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5534 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5535 F_SETFD use if we know fopen set the flag.
5537 * login/utmp_file.c (setutent_file): Minor optimization in case
5538 O_CLOEXEC is available.
5540 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5542 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5543 * elf/Makefile: Use pie-ccflag variable.
5544 * nscd/Makefile: Likewise.
5545 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5547 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5550 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5551 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5552 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5553 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5554 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5555 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5556 utmp32, utmpx32 and login32.
5557 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5558 versions of struct utmp functions to libc and libutil.
5559 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5560 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5561 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5562 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5563 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5564 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5565 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5566 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5567 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5568 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5569 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5570 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5571 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5572 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5573 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5574 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5575 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5576 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5577 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5578 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5579 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5580 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5582 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5584 * scripts/gen-as-const.awk: Generate more widely usable code by
5585 using 64-bit arithmetic.
5587 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5588 the same treatment as narrow output code in last patch.
5590 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5593 * elf/dl-load.c (local_strdup): Remove inline.
5594 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5595 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5598 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5600 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5602 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5603 the new syscalls, too.
5605 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5606 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5609 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5610 parameter for end of buffer. If temporary copy is too large use
5612 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5614 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5615 string rewrite when allocating buffer.
5617 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5620 * nscd/connections.c (nscd_init): Clean up fcntl call.
5622 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5623 SOCK_NONBLOCK if possible.
5625 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5626 SOCK_CLOEXEC if available.
5628 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5629 __libc_clntudp_bufcreate_internal.
5630 * include/sys/socket.h: Declare __have_sock_cloexec.
5631 * socket/Makefile (aux): Add have_sock_cloexec.
5632 * socket/have_sock_cloexec.c: New file.
5633 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5634 __libc_clntudp_bufcreate.
5635 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5636 which takes an additional parameter. Create socket with non-blocking
5637 mode and close-on-exec flag set, if wanted.
5638 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5639 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5640 instead of clntudp_create. The socket has already the close-on-exec
5641 flag set if SOCK_CLOEXEC is defined.
5643 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5645 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5646 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5648 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5649 non-blocking mode by using socket, paccept, and inotify_init1.
5651 * Versions.def (glibc): Add GLIBC_2.9.
5652 * io/Makefile (routines): Add dup3 and pipe2.
5653 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5654 * io/dup3.c: New file.
5655 * io/pipe2.c: New file.
5656 * posix/unistd.h: Declare dup3 and pipe2.
5657 * socket/Makefile (routines): Add paccept.
5658 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5659 * socket/paccept.c: New file.
5660 * socket/sys/socket.h: Declare paccept.
5661 * sysdeps/unix/syscalls.list: Add entry for dup3.
5662 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5663 epoll_create2 and inotify_init1.
5664 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5665 * sysdeps/unix/sysv/linux/paccept.c: New file.
5666 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5668 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5669 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5670 inotify_init1, and pipe2 entries.
5671 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5672 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5673 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5674 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5675 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5676 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5678 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5679 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5680 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5681 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5682 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5683 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5684 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5685 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5686 EPOLL_NONBLOCK. Declare epoll_create2.
5687 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5689 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5690 IN_NONBLOCK. Declare inotify_init1.
5691 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5693 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5696 * elf/elf.h: Define AT_EXECFN.
5697 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5699 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5700 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5701 if __ASSUME_AT_EXECFN is defined.
5702 (_dl_aux_init): Handle AT_EXECFN.
5703 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5705 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5706 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5707 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5708 _dl_execfn if available and avoid compatibility code if
5709 __ASSUME_AT_EXECFN is defined.
5711 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5712 _dl_discover_osversion only for older kernels.
5714 2008-07-22 Roland McGrath <roland@frob.com>
5716 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5718 2008-07-21 Roland McGrath <roland@frob.com>
5720 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5721 returned too much data out of line.
5723 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5725 * locale/setlocale.c (setname): Remove inline to avoid compiler
5729 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5731 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5733 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5734 doesn't manage to write anything, fail.
5736 * malloc/hooks.c (__malloc_check_init): Remove printf.
5738 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5740 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5742 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5744 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5746 (main_loop_epoll): Likewise.
5748 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5750 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5752 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5753 if DEBUG is defined.
5755 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5756 query. Adjust buffer size computation for padding.
5758 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5760 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5761 * stdio-common/tst-setvbuf1.c: New file.
5762 * stdio-common/tst-setvbuf1.expect: New file.
5765 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5766 when selecting fully-buffered stream.
5767 Patch by Wang Xin <wxinee@gmail.com>.
5769 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5771 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5772 (__open_2): New function.
5773 (__open64_2): New alias to __open_2.
5774 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5775 (__openat_2): New function.
5776 (__openat64_2): New alias to __openat_2.
5778 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5781 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5783 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5785 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5786 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5787 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5789 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5790 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5791 * sysdeps/mach/hurd/send.c (__send): Likewise.
5792 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5793 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5795 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5797 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5798 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5799 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5800 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5801 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5802 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5804 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5807 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5809 Patch by Petr Baudis.
5811 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5813 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5814 Patch by Peter Jones <pjones@redhat.com>.
5816 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5819 * stdlib/canonicalize.c (__realpath): readlink can write too much
5820 into the buffer on platforms without PATH_MAX.
5822 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5825 * posix/tst-regex.c (main): Rename to...
5826 (do_test): ... this. Remove cmdline option processing.
5828 (TEST_FUNCTION): Define.
5829 (CMDLINE_OPTIONS): Define.
5831 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5834 * configure.in: Add -Werror to -fstack-protector test to catch
5835 unsupported architectures.
5836 Patch by Gilles Esponasse <g.esp@free.fr>.
5838 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5840 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5841 getcontext returns ENOSYS.
5843 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5845 * nscd/connections.c (main_loop_poll): Fix test for read error.
5846 (main_loop_epoll): Likewise.
5848 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5850 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5851 better place so it is not called when nscd is used.
5853 * nscd/connections.c: Also recognize and handle changes to the
5854 resolver configuration file.
5856 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5858 * time/strftime.c: Pass reference to tzset_called around to handle
5862 * time/strftime.c (__strftime_internal): Call tzset() only
5863 when printing timezone-dependent values.
5864 Based on a patch by Petr Baudis <pasky@suse.cz>.
5866 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5867 unconditionally use second gaih_getanswer_slice result.
5869 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5870 (getaddrinfo): RES must always be non-NULL.
5872 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5874 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5876 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5877 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5879 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5882 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5884 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5886 * nscd/connections.c (inotify_fd): New variable.
5887 (nscd_init): Try to open an inotify descriptor.
5888 If successful, watch files for databases using inotify instead of
5889 having prune threads stat the files.
5890 (nscd_run_prune): Recognize clear_cache flag being set and call
5891 prune_cache appropriately.
5892 (main_loop_poll): Add inotify descriptor to wait set and handle the
5894 (main_loop_epoll): Likewise.
5895 * nscd/cache.c (prune_cache): Don't stat files for databases if
5897 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5898 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5900 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5901 fixed-size portion of the record.
5902 * nscd/servicescache.c (cache_addserv): Likewise.
5903 * nscd/pwdcache.c (cache_addpw): Likewise.
5904 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5906 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5908 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5909 out we don't use uninitialized memory.
5911 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5914 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5916 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5917 ignore T_DNAME messages.
5918 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5920 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5922 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5923 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5925 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5927 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5928 instead of portstr to nscd_getserv_r. Patch by
5929 Roman Kagan <rkagan@mail.ru>.
5931 2008-05-26 Jim Meyering <meyering@redhat.com>
5933 Remove more useless "if" tests before "free".
5934 * include/inline-hashtab.h (htab_delete): Likewise.
5935 * libio/freopen.c (freopen): Likewise.
5936 * libio/freopen64.c (freopen64): Likewise.
5937 * locale/programs/ld-collate.c (collate_read): Likewise.
5938 * misc/fstab.c (libc_freeres_fn): Likewise.
5939 * posix/glob.c (globfree): Likewise.
5941 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5943 * string/Makefile (strop-tests): Add memmem.
5944 * string/test-memmem.c: New file.
5945 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5946 (test_init): Size buf1 according to BUF1PAGES.
5948 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5950 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5951 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5952 (CFLAGS-scanf17.c): New.
5953 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5954 * stdio-common/scanf15.c (main): Likewise.
5955 * stdio-common/scanf16.c: New file.
5956 * stdio-common/scanf17.c: New file.
5958 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5960 * resolv/res_send.c (send_dg): If we already have one of two
5961 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5962 use the one answer insted of failing.
5964 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5966 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5967 being executed on PowerPC as the expected result exceeds IBM
5968 long double 128 __LDBL_MAX__.
5970 2008-05-21 Roland McGrath <roland@redhat.com>
5972 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5974 * Makefile (check-data): Use $(abi-name) before other guesses.
5975 Look in $(add-ons) dirs before scripts/data/.
5976 * elf/Makefile (check-data): Likewise.
5978 * scripts/soversions.awk: Grok ABI line.
5979 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5980 Emit definition for abi-name variable.
5982 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5984 * string/endian.h: Define new fixed-size hto* and *toh macros only
5987 * iconvdata/Depend: Add localedata.
5989 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5991 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5993 2008-05-08 David S. Miller <davem@davemloft.net>
5995 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5997 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5998 (__SYSCALL_CLOBBERS): Remove %g* registers.
5999 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6000 (__SYSCALL_CLOBBERS): Likewise.
6001 * scripts/data/localplt-sparc-linux-gnu.data: New file.
6002 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6004 2008-05-21 Jakub Jelinek <jakub@redhat.com>
6006 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6007 (CALL_ERRNO_LOCATION): Define.
6008 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6009 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6010 (CALL_ERRNO_LOCATION): Define.
6011 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6012 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6013 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6015 2008-05-20 Ulrich Drepper <drepper@redhat.com>
6017 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6020 2008-05-20 Jakub Jelinek <jakub@redhat.com>
6022 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6023 (FIRST_FRAME_POINTER): Define.
6025 2008-05-09 David S. Miller <davem@davemloft.net>
6027 * sysdeps/sparc/sparc64/backtrace.c: New file.
6029 2008-05-14 David S. Miller <davem@davemloft.net>
6031 * sysdeps/sparc/machine-gmon.h: New file.
6032 * sysdeps/sparc/sparc-mcount.S: Likewise.
6033 * sysdeps/sparc/Makefile: Add sparc-mcount target to
6034 sysdep_routines in gmon directory.
6036 2008-05-19 Jakub Jelinek <jakub@redhat.com>
6038 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6040 2008-05-19 Ulrich Drepper <drepper@redhat.com>
6042 * resolv/res_query.c (__libc_res_nquery): In case one of two
6043 answer was too short don't try to read that answer's header.
6045 * resolv/res_send.c (send_dg): In case of timeout and there are
6046 two queries and one has been answered, return value indicating
6049 2008-05-18 Ulrich Drepper <drepper@redhat.com>
6051 * nscd/cache.c (cache_add): Take additional parameter specifying
6052 whether this is in response of a cache refill. Check alignment
6053 of package data. Revamp waking of pruning thread.
6054 (prune_cache): Small optimization.
6055 * nscd/nscd.h: Adjust cache_add prototypes.
6056 * nscd/aicache.c: Adjust cache_add calls.
6057 * nscd/grpcache.c: Likewise.
6058 * nscd/hstcache.c: Likewise.
6059 * nscd/initgrcache.c: Likewise.
6060 * nscd/pwdcache.c: Likewise.
6061 * nscd/servicescache.c: Likewise.
6062 * nscd/connections.c (restart): Really disable cache use before
6063 exec attempt. If it fails, reenable cache.
6064 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
6065 time to max to be able to notice concurrent cache additions. Unlock
6066 prune_lock while performing gc. Afterwards compute wakeup time with
6067 current wakeup_time value in mind.
6069 2008-05-17 Ulrich Drepper <drepper@redhat.com>
6071 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6073 * nscd/mem.c (gc): Correctly determine highest used array element
6076 * nscd/mem.c (markrange): Add assert to check entries are all
6077 aligned. Small cleanup in bitmap use.
6079 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6080 blockoff of type nscd_ssize_t.
6081 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6082 (mempoll_alloc): Record block offset and not address.
6084 * nscd/mem.c (gc): Fix test for stack overuse.
6086 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6089 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6090 entry is available, believe it.
6092 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6093 no answers return NSS_STATUS_NOTFOUND.
6094 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6095 buffer does not have any content.
6097 2008-05-16 Ulrich Drepper <drepper@redhat.com>
6099 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6101 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6102 lookup, don't assign canon unconditionally.
6104 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6106 * string/Makefile (distribute): Add str-two-way.h.
6108 2008-03-29 Eric Blake <ebb9@byu.net>
6110 Rewrite string searches to O(n) rather than O(n^2).
6111 * string/str-two-way.h: New file. For linear fixed-allocation
6113 * string/memmem.c: New implementation.
6114 * string/strstr.c: New implementation.
6115 * string/strcasestr.c: New implementation.
6117 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
6119 * posix/regcomp.c (optimize_utf8): Add a note on why we test
6121 (calc_first): Initialize constraint field.
6122 (duplicate_node_closure): Use it instead of special casing ANCHORS.
6123 Use search_duplicated_node to avoid loops. Fix grammar.
6124 (duplicate_node): Merge constraint field for all node types.
6125 (calc_eclosure_iter): Look at constraint field for all node types.
6126 * posix/regex_internal.c (create_cd_newstate): Don't look at
6129 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6132 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6135 * string/endian.h: Add macros for fixed-size endian conversion.
6136 * bits/byteswap.h: Allow inclusion from <endian.h>.
6137 * sysdeps/i386/bits/byteswap.h: Likewise.
6138 * sysdeps/ia64/bits/byteswap.h: Likewise.
6139 * sysdeps/s390/bits/byteswap.h: Likewise.
6140 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6141 * string/Makefile (tests): Add tst-endian.
6142 * string/tst-endian.c: New file.
6144 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6145 Patch by Reuben Thomas.
6147 2008-05-14 Joseph Myers <joseph@codesourcery.com>
6149 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6151 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6153 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6156 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6158 (BODY for __gconv_transform_internal_ascii): Likewise.
6161 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6162 to be treated like link-local addresses.
6163 (match_prefix): Don't treat IPv4 loopback address special when
6164 converting to v4 mapped addressed.
6166 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6168 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6169 * posix/tst-rfc3484-2.c: Likewise.
6170 * posix/tst-rfc3484-3.c: Likewise.
6172 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6175 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6177 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6179 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6181 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6183 * po/lt.po: New file. From Lituanian translation team.
6185 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6187 Introduce TLS descriptors for i386 and x86_64.
6188 * include/inline-hashtab.h: New file, copied from 2005's
6189 libiberty, with fix for memory leak imported afterwards by
6190 Glauber de Oliveira Costa.
6191 * elf/tlsdeschtab.h: New file.
6192 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6193 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6194 (CHECK_STATIC_TLS): Move to...
6195 * elf/dynamic-link.h: ... this file.
6196 (TRY_STATIC_TLS): New macro.
6197 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6198 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6199 R_386_TLS_DESC): Define.
6200 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6202 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6203 R_X86_64_TLSDESC): Define.
6204 (R_386_NUM, R_X86_64_NUM): Adjust.
6205 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6206 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6207 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6208 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6209 release tlsdesc_table.
6210 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6211 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6212 (elf_machine_rel): Handle R_386_TLS_DESC.
6213 (elf_machine_rela): Likewise.
6214 (elf_machine_lazy_rel): Likewise.
6215 (elf_machine_lazy_rela): Likewise.
6216 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6217 * sysdeps/i386/dl-tlsdesc.S: New file.
6218 * sysdeps/i386/dl-tlsdesc.h: New file.
6219 * sysdeps/i386/tlsdesc.c: New file.
6220 * sysdeps/i386/tlsdesc.sym: New file.
6221 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6223 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6224 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6225 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6226 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6227 release tlsdesc_table.
6228 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6229 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6230 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6231 (elf_machine_rel): Handle R_X86_64_TLSDESC.
6232 (elf_machine_rela): Likewise.
6233 (elf_machine_lazy_rel): Likewise.
6234 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6235 (__tls_get_addr): Do not declare for non-shared compiles.
6236 * sysdeps/x86_64/dl-tlsdesc.S: New file.
6237 * sysdeps/x86_64/dl-tlsdesc.h: New file.
6238 * sysdeps/x86_64/tlsdesc.c: New file.
6239 * sysdeps/x86_64/tlsdesc.sym: New file.
6240 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6241 tlsdesc_table for both 32- and 64-bit structs.
6243 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6245 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6246 its own function. This reduces the frame setup costs and more.
6248 2008-02-11 Joseph Myers <joseph@codesourcery.com>
6251 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6252 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6254 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6256 * io/openat.c (__openat_2): Also pass fd to __openat.
6257 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6258 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6260 * string/tester.c (test_memcmp): Add a few more tests.
6261 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6263 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6265 * nscd/cache.c (cache_add): Before returning with failure and this
6266 is the first use of the record, mark it as unusable.
6267 * nscd/aicache.c: Don't touch the dataset after cache_add returns
6268 reporting a failure.
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.
6275 2008-05-10 Roland McGrath <roland@redhat.com>
6278 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6280 2008-05-08 David S. Miller <davem@davemloft.net>
6282 * misc/truncate64.c (truncate64): Use __truncate not truncate.
6284 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6285 (__ieee754_y0l): Likewise.
6286 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6287 (__ieee754_y1l): Likewise.
6288 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6289 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6290 frexpl and ldexpl. math_private.h provides them and the latter
6292 (__log1pl): Use __frexpl.
6294 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6296 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6298 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6299 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6300 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6301 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6303 (_nss_nis_gethostbyname4_r): New function.
6304 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6305 Change to also handle af==AF_UNSPEC.
6306 (get_tablename): New function. Use it to avoid duplication.
6307 (_nss_nisplus_gethostbyname4_r): New function.
6308 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6310 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6311 * nss/nss.h: Define struct gaih_addrtuple.
6312 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6314 (_nss_files_gethostbyname4_r): New function.
6315 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6316 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6318 * resolv/res_query.c (__libc_res_nquery): Take two additional
6319 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6320 look up IPv4 and IPv6.
6322 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6323 for an additional query and answer buffer. Pass to send_vc and
6325 (send_vc): Send possibly two requests and receive two answers.
6326 (send_dg): Likewise.
6327 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6329 (_nss_dns_gethostbyname4_r): New function.
6330 (gaih_getanswer_slice): Likewise.
6331 (gaih_getanswer): Likewise.
6332 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6333 __libc_res_nquery call.
6334 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6335 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6336 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6339 2008-05-05 David S. Miller <davem@davemloft.net>
6341 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6342 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6344 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6346 Fix termios bit macros.
6347 Move *DLY definitions where they belong, in termios.h.
6348 Add *[0-3] definitions.
6349 Fixes confusion between VT and FF.
6350 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6351 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6352 are already defined to avoid collision with termios.h.
6353 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6354 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6355 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6356 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6357 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6358 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6359 VTDLY, VT0, VT1): New macros.
6360 [__USE_GNU] (OLCUC): Change value of macro.
6361 [__USE_XOPEN] (OFILL): New macro.
6362 [__USE_BSD] (CRTSCTS): Change value.
6363 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6364 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6365 (B7200, B14400, B28800, B76800): New macros.
6367 2008-05-01 David S. Miller <davem@davemloft.net>
6369 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6370 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6371 (gen-as-const-headers): Add it.
6372 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6373 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6374 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6375 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6377 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6378 six system call parameters.
6379 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6381 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6383 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6385 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6386 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6388 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6390 * stdlib/tst-setcontext.c: Include unistd.h.
6392 2008-04-25 David S. Miller <davem@davemloft.net>
6394 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6395 Pass "union semun" properly in to sys_ipc, it must be passed
6396 by value, not by reference.
6398 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6400 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6401 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6402 * nscd/connections.c (mem_in_flight): Likewise.
6404 * nscd/nscd.h (dbs): Make hidden.
6406 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6407 Avoid returning -1, return 0 instead.
6409 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6411 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6413 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6416 * sysdeps/unix/sysv/linux/times.c: New file.
6419 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6420 mem_in_flight_list variables. Add new parameter to mempool_alloc
6422 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6423 appropriate mem_in_flight element.
6424 (gc): Take allocations which have not yet been committed to the
6425 database into account.
6426 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6427 Reset mem_in_flight before returning.
6428 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6429 cue it up in mem_in_flight_list.
6430 * nscd/aicache.c: Adjust mempool_alloc call.
6431 * nscd/grpcache.c: Likewise.
6432 * nscd/hstcache.c: Likewise.
6433 * nscd/initgrcache.c: Likewise.
6434 * nscd/pwdcache.c: Likewise.
6435 * nscd/servicescache.c: Likewise.
6436 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6439 * nscd/connections.c (handle_request): Provide better error message
6440 in case SELinux forbids the service.
6442 * version.h (VERSION): Bump to 2.8.90.
6444 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6446 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6448 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6450 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6451 Also use for 32-bit.
6452 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6453 __nextafter instead of nextafter to avoid local PLT.
6454 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6455 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6457 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6459 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6461 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6462 <fenv_libc.h> instead of <fenv.h>.
6463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6466 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6468 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6469 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6470 function from fegetexcept and make old name weak alias.
6471 * include/fenv.h: Declare __fegetexcept.
6472 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6474 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6475 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6477 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6478 instead of frexpl to avoid local PLT.
6479 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6480 ilogbl to avoid local PLT.
6481 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6482 instead of ldexpl to avoid local PLT.
6483 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6484 __roundl not roundl to avoid local PLT.
6485 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6486 local PLTs. Use __sincosl instead of separate sinl and cosl
6488 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6490 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6491 version for ppc64 to 2.4.21 since without it makecontext will fail.
6493 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6495 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6497 [__powerpc64__] (TLS_GD): Likewise.
6499 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6502 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6503 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6505 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6506 Likewise. Also account for when x is an odd number between 2^52
6508 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6509 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6510 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6511 detect aforementioned erroneous conditions.
6513 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6515 * configure.in: Check for -fno-section-anchors in addition to
6516 -fno-toplevel-reorder.
6518 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6520 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6522 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6523 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6524 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6525 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6526 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6527 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6529 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6532 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6533 * time/alt_digit.c: Likewise.
6534 * wcsmbs/wcsmbsload.c: Likewise.
6536 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6538 * version.h (VERSION): Bump to 2.8.
6540 * timzeone/asia: Update from tzdata2008b.
6541 * timezone/backward: Likewise.
6542 * timezone/europe: Likewise.
6543 * timezone/northamerica: Likewise.
6544 * timezone/southamerica: Likewise.
6545 * timezone/iso3166.tab: Likewise.
6546 * timezone/leapseconds: Likewise.
6547 * timezone/zone.tab: Likewise.
6548 * timezone/private.h: Update from tzcode2008a.
6549 * timezone/zdump.c: Likewise.
6550 * timezone/zic.c: Likewise.
6552 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6555 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6556 Define additonal Data Cache Block instruction macros.
6557 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6558 Replace dcbst with dcbf and sync with sync/isync.
6560 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6562 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6563 Always set ELF_RTYPE_CLASS_PLT.
6564 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6566 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6568 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6569 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6570 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6571 For ISA 2.01 and later replace mftb with mfspr 268.
6573 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6576 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6577 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6579 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6582 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6583 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6584 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6585 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6587 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6589 * stdlib/tst-makecontext.c (othervar): New variable.
6590 (cf): Test sign extending the argument to long.
6592 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6594 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6595 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6596 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6597 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6598 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6599 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6600 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6602 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6604 * elf/Makefile (tests): Substitute tests-vis-yes here.
6605 (tests-vis-yes): Delete.
6606 (modules-name, modules-vis-yes): Similarly.
6608 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6611 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6612 Preserve sign in signgamp when x is zero.
6614 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6616 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6617 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6618 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6619 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6620 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6621 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6623 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6626 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6630 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6631 a reserved error value.
6633 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6634 value to check for correct sign extension.
6637 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6638 Copy 64-bit parameter values even though this is not required in
6641 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6644 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6646 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6649 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6651 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6653 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6656 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6657 in line-buffered stream failed.
6658 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6660 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6663 * scripts/abi-versions.awk: If the version specified by
6664 --enable-oldest-abi is older than the first version for this
6665 architecture, use the default version.
6667 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6668 as well when ignoring the whole category.
6670 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6673 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6674 ETHERTYPE_* definitions.
6675 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6677 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6679 * stdlib/mbtowc.c (__no_r_state): Remove.
6680 (mbtowc): New static state variable. Use it instead of
6682 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6683 (__wctomb_state): New hidden variable.
6684 (wctomb): Use __wctomb_state instead of __no_r_state.
6685 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6686 (__wctomb_state): New extern decl.
6687 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6689 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6692 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6694 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6696 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6698 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6700 * po/nl.po: Update from translation team.
6702 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6705 * string/strfry.c: Handle empty strings again.
6707 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6710 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6711 before looking for translation.
6712 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6713 * locale/freelocale.c: Likewise.
6714 * locale/newlocale.c: Likewise.
6715 * locale/setlocale.c: Likewise.
6716 Based partially on a patch by ryo@np.css.fujitsu.com.
6718 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6720 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6721 acquiring wrlock. Do conv_tab allocation while holding lock.
6722 * intl/Makefile: Add rules to build and run tst-gettext6.
6723 * intl/tst-gettext6.c: New test.
6724 * intl/tst-gettext6.sh: New file.
6726 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6728 * po/nl.po: Update from translation team.
6730 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6731 provided through st_blksize, try the default size before giving up.
6733 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6735 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6738 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6740 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6741 error message. POSIX today does not require the messages to be in
6742 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6745 * sunrpc/auth_unix.c: Unify printed strings.
6746 * sunrpc/clnt_tcp.c: Likewise.
6747 * sunrpc/clnt_udp.c: Likewise.
6748 * sunrpc/clnt_unix.c: Likewise.
6749 * sunrpc/svc_tcp.c: Likewise.
6750 * sunrpc/svc_udp.c: Likewise.
6751 * sunrpc/svc_unix.c: Likewise.
6752 * sunrpc/xdr.c: Likewise.
6753 * sunrpc/xdr_array.c: Likewise.
6754 * sunrpc/xdr_rec.c: Likewise.
6755 * sunrpc/xdr_ref.c: Likewise.
6756 * locale/programs/ld-time.c (time_finish): Unify messages.
6757 * locale/programs/locfile.c (handle_copy): Fix typo.
6758 * nscd/nscd.c (options): Fix typo.
6761 * stdlib/strtod_l.c: Use correct sign for result in one more
6763 Patch by Eric Blake <ebb9@byu.net>.
6765 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6767 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6768 and creat system calls.
6769 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6771 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6773 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6774 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6775 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6777 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6779 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6780 <linux/limits.h> has defined it.
6781 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6782 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6784 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6785 it instead of ARG_MAX.
6787 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6789 * posix/gai.conf: Fix comment for scope nullbits.
6790 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6791 default to 128 bits for v4 mapped addresses.
6793 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6795 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6796 ptrace call to get the ieee_instruction_pointer from the kernel.
6797 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6798 ptrace call to set the ieee_instructtion_pointer.
6799 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6800 Add comment that ieee_instruction_pointer is always 0.
6802 2008-03-09 Andreas Jaeger <aj@suse.de>
6805 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6806 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6807 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6809 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6810 (rint_test): Likewise.
6812 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6814 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6816 (__nisfind_server): Similar for open readColdStartFile call.
6817 Patch partially by Jim Meyering.
6818 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6819 around internal_setent call.
6821 * po/vi.po: New Vietnamese translation.
6823 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6826 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6827 remove CLONE_STOPPED.
6829 2008-02-10 Jim Meyering <meyering@redhat.com>
6831 Remove useless "if" before "free":
6832 * elf/ldconfig.c (parse_conf_include): Likewise.
6833 * gmon/gmon.c (weak_alias): Likewise.
6834 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6835 * inet/rcmd.c (__validuser2_sa): Likewise.
6836 * intl/bindtextdom.c (set_binding_values): Likewise.
6837 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6838 * libio/genops.c (save_for_backup): Likewise.
6839 * libio/wgenops.c (save_for_wbackup): Likewise.
6840 * locale/programs/ld-collate.c (collate_read): Likewise.
6841 * locale/programs/linereader.c (get_string): Likewise.
6842 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6843 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6844 * resolv/res_debug.c (do_section): Likewise.
6845 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6846 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6847 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6848 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6849 * time/tzset.c (tzset_internal): Likewise.
6851 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6853 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6856 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6859 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6860 not stream for output file. Open output file here.
6861 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6862 and output file name.
6863 (process_fd): Likewise.
6864 (process_file): Likewise.
6865 (main): Adjust callers of changed functions.
6866 * iconv/iconv_prog.h: Adjust prototype.
6868 2008-03-09 Andreas Jaeger <aj@suse.de>
6871 * sysdeps/ia64/ieee754.h: Use protected namespace
6872 __BIG_ENDIAN/__LITTLE_ENDIAN.
6873 * sysdeps/ieee754/ieee754.h: Likewise.
6874 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6876 2008-03-08 Roland McGrath <roland@frob.com>
6878 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6879 ignore a signal that came from a machine exception, treat it as a
6880 fatal core-dump signal instead.
6881 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6883 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6884 Clear DF bit in thread state's eflags.
6885 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6887 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6890 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6891 of NAN(...) sequence.
6892 * stdlib/Makefile (tests): Add tst-strtod6.
6893 * stdlib/tst-strtod6.c: New file.
6895 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6898 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6899 putting offending option character in quotes. Clean up error
6901 * po/be.po: Adjust msgstr in translation file.
6902 * po/bg.po: Likewise.
6903 * po/ca.po: Likewise.
6904 * po/cs.po: Likewise.
6905 * po/da.po: Likewise.
6906 * po/de.po: Likewise.
6907 * po/es.po: Likewise.
6908 * po/fr.po: Likewise.
6909 * po/hr.po: Likewise.
6910 * po/ko.po: Likewise.
6911 * po/nl.po: Likewise.
6912 * po/rw.po: Likewise.
6913 * po/sk.po: Likewise.
6914 * po/sv.po: Likewise.
6915 * po/tr.po: Likewise.
6916 * po/zh_CN.po: Likewise.
6917 * po/zh_TW.po: Likewise.
6920 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6921 Patch by Roland Bless <roland@bless.de>.
6923 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6925 * elf/Makefile (routines): Add dl-sysdep.
6926 (elide-routines.os): Likewise.
6928 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6931 * elf/dl-sysdep.c: Undefine ROUND after use.
6932 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6933 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6934 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6935 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6937 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6938 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6940 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6942 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6943 _dl_tls_get_addr_soft element.
6944 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6945 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6946 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6948 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6949 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6950 of internal_function.
6952 * stdlib/Makefile (aux): Add tens_in_limb.
6953 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6954 * stdlib/tens_in_limb.c: ...here. New file.
6957 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6958 __statfs_chown_restricted.
6959 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6960 for _PC_CHOWN_RESTRICTED.
6961 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6962 Implement __statfs_chown_restricted.
6963 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6964 _POSIX_CHOWN_RESTRICTED value to zero.
6965 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6968 * sysdeps/x86_64/rtld-memset.c: New file.
6970 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6972 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6974 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6975 Barcelona machine. Make default fall through branch of
6976 __x86_64_preferred_memory_instruction check as the integer code path.
6978 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6980 * sysdeps/x86_64/cacheinfo.c
6981 (__x86_64_preferred_memory_instruction): New variable.
6982 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6984 * sysdeps/x86_64/memset.S: Rewrite.
6986 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6988 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6989 __obstack_printf_chk): New prototypes.
6990 (__vasprintf_chk, __vdprintf_chk,
6991 __obstack_vprintf_chk): Likewise.
6992 Add libc_hidden_proto.
6994 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6995 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6996 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6997 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6998 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6999 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7000 __obstack_vprintf_chk): New prototypes.
7001 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7002 obstack_vprintf): New inlines.
7003 * debug/dprintf_chk.c: New file.
7004 * debug/vdprintf_chk.c: New file.
7005 * debug/asprintf_chk.c: New file.
7006 * debug/vasprintf_chk.c: New file.
7007 * debug/obprintf_chk.c: New file.
7008 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7009 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7010 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7012 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7013 vdprintf_chk and obprintf_chk, set CFLAGS for them.
7014 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7015 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7017 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7018 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7019 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7020 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7021 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7023 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7024 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7025 obstack_vprintf_chk.
7026 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7027 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7028 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7029 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7030 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7031 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7033 2008-03-04 Ulrich Drepper <drepper@redhat.com>
7036 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7037 Patch by Roy Marples <roy@marples.name>.
7040 * malloc/malloc.c: Fix typo in comment.
7043 * locale/iso-639.def: Add Shuswap.
7045 2008-02-25 Jakub Jelinek <jakub@redhat.com>
7048 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7049 overwrite *h_errnop/*errnop values from getanswer_r in case of
7052 2008-03-03 Ulrich Drepper <drepper@redhat.com>
7055 * nscd/connections.c (dbs): Add initializers for .suggested_module.
7056 (verify_persistent_db): Remove one unnecessary test and add a new one
7057 for bad configuration.
7058 (nscd_init): Improve error reported when persistent database cannot
7060 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7061 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7062 .suggested_module and .max_db_size and case config file says the
7064 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7067 * nis/ypclnt.c (yp_order): Fix handling of return value of
7069 Patch by Jeff Moyer <jmoyer@redhat.com>.
7071 * po/fr.po: Update from translation team.
7073 2008-02-22 Andreas Jaeger <aj@suse.de>,
7074 Carlos O'Donell <carlos@systemhalted.org>
7077 * FAQ.in: Describe why glibc needs to be compiled with
7080 2008-02-19 Roland McGrath <roland@redhat.com>
7082 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7084 2008-02-15 Ulrich Drepper <drepper@redhat.com>
7087 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7088 __USE_MISC is defined.
7090 2008-02-10 Ulrich Drepper <drepper@redhat.com>
7092 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7093 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7095 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7096 timerfd_gettime, timerfd_settime.
7097 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7098 timerfd_gettime, timerfd_settime for GLIBC_2.8.
7100 2008-02-08 Roland McGrath <roland@redhat.com>
7102 * elf/elf.h (NT_PPC_SPE): New macro.
7104 2008-02-06 Roland McGrath <roland@redhat.com>
7106 * Makerules ($(common-objpfx)sysd-rules):
7107 Depend on $(sysdep-makeconfigs).
7109 2008-01-31 Roland McGrath <roland@redhat.com>
7112 * configure.in: Use -print-file-name if it yields a directory,
7113 for each of include and include-fixed.
7114 * configure: Regenerated.
7116 * Makeconfig (sysd-rules-targets): New variable.
7117 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7118 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7120 2008-01-30 Roland McGrath <roland@redhat.com>
7122 * manual/libc.texinfo: Update back-cover text.
7124 * elf/elf.h (NT_386_TLS): New macro.
7126 2008-01-29 Roland McGrath <roland@redhat.com>
7128 * Makeconfig (sysd-rules-patterns): New variable.
7129 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7130 (check-inhibit-asm): New canned sequence, replaces ...
7131 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7132 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7133 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7134 (CFLAGS-rtld): Variable removed.
7136 2008-01-24 Roland McGrath <roland@redhat.com>
7138 * configure.in: Let configure fragments set base_os.
7139 * configure: Regenerated.
7141 2008-01-22 Ulrich Drepper <drepper@redhat.com>
7143 * po/ko.po: Update from translation team.
7145 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
7147 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7149 2008-01-12 Andreas Jaeger <aj@suse.de>
7152 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7155 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
7157 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7158 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7159 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7161 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7163 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7164 * elf/dl-close.c (_dl_close): Check for it.
7165 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7166 (_dl_allocate_static_tls): Likewise.
7167 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7168 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7170 * elf/tst-tls16.c: New file.
7171 * elf/tst-tlsmod16a.c: New file.
7172 * elf/tst-tlsmod16b.c: New file.
7173 * elf/Makefile: Add rules to build and run tst-tls16.
7175 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7178 * bits/shm.h: Fix comment describing shmid_ds.
7179 * sysdeps/gnu/bits/shm.h: Likewise.
7180 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7181 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7182 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7183 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7184 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7185 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7186 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7187 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7188 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7191 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7193 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7194 additional suffixes.
7195 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7196 Add optional functions mq_timedreceive and mq_timedsend.
7197 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7198 * conform/data/pthread.h-data: Fix prototype of
7199 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7200 * conform/data/semaphore.h-data: Allow time.h definitions.
7201 * conform/data/signal.h-data: Likewise.
7202 * conform/data/stdio.h-data: getw and putw are not required in v6.
7203 * conform/data/stdlib.h-data: Change setstate prototype.
7204 * conform/data/string.h-data: Fix strerror_r prototype.
7205 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7206 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7207 Fix readlink prototype.
7208 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7210 * inet/netinet/in.h: Cleanup namespace.
7211 * posix/regex.h: Likewise.
7212 * resolv/netdb.h: Likewise.
7213 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7214 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7215 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7216 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7217 of names of in in6_addr.
7218 (default_precedence): Likewise.
7219 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7222 2008-01-15 Ulrich Drepper <drepper@redhat.com>
7224 * conform/data/fmtmsg.h-data: Add missing allows.
7225 * conform/data/ftw.h-data: Likewise.
7226 * conform/data/inttypes.h-data: Likewise.
7227 * conform/data/math.h-data: Likewise.
7228 * conform/data/signal.h-data: Likewise.
7229 * conform/data/net/if.h-data: Likewise.
7230 * conform/data/netinet/in.h-data: Likewise.
7231 * conform/data/sys/socket.h-data: Likewise.
7234 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7235 (__strtok_r): Simplify.
7236 * string/tester.c (test_strtok_r): Add test case for futile search
7237 with single-character seach string.
7239 2008-01-12 Ulrich Drepper <drepper@redhat.com>
7241 * po/ko.po: Update from translation team.
7243 2008-01-11 Andreas Jaeger <aj@suse.de>
7246 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7247 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7250 2008-01-10 Ulrich Drepper <drepper@redhat.com>
7252 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7253 native interface lookup in all the relevant places.
7255 2008-01-10 Jakub Jelinek <jakub@redhat.com>
7256 Ulrich Drepper <drepper@redhat.com>
7258 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7259 field. Use sockaddr_in6 for source_addr.
7260 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
7261 (match_prefix): Likewise.
7262 (get_label): Likewise.
7263 (get_precedence): Likewise.
7264 (rfc3484_sort): Change to use indirect access to results array.
7265 Adjust to use of sockaddr_in6. Replace service_order test with
7266 simple index comparison.
7267 (getaddrinfo): Define order array. Initialize it. Don't initialize
7268 service_order field. Adjust qsort_t calls. Access sorted result
7269 array indirectly through order array.
7270 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7271 * posix/tst-rfc3484-2.c: Likewise.
7272 * posix/tst-rfc3484-3.c: Likewise.
7274 2008-01-09 Ulrich Drepper <drepper@redhat.com>
7277 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7279 Patch by André Cruz.
7282 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7283 (clnt_spcreateerror): Likewise.
7286 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7287 (public_mEMALIGn): Likewise.
7288 Patch mostly by Daniel Jacobowitz.
7290 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7292 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7293 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7294 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7295 * stdlib/tst-makecontext2.c: New test.
7297 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7299 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7301 (REINIT_PARAMS): Likewise. Undefine before end of file.
7302 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7303 transliteration hooks and REINIT_PARAMS afterwards.
7304 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7306 (REINIT_PARAMS): Define.
7307 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7308 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7309 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7310 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7311 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7312 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7313 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7314 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7315 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7316 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7317 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7318 * iconvdata/tst-iconv7.c: New test.
7320 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7322 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7324 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7327 * nscd/connections.c (restart): Fix condition.
7329 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7331 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7332 __ctype_toupper_loc): Add __THROW.
7334 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7336 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7337 recognition of interface family.
7339 * posix/getconf.c: Update copyright year.
7340 * nss/getent.c: Likewise.
7341 * iconv/iconvconfig.c: Likewise.
7342 * iconv/iconv_prog.c: Likewise.
7343 * elf/ldconfig.c: Likewise.
7344 * catgets/gencat.c: Likewise.
7345 * csu/version.c: Likewise.
7346 * elf/ldd.bash.in: Likewise.
7347 * elf/sprof.c (print_version): Likewise.
7348 * locale/programs/locale.c: Likewise.
7349 * locale/programs/localedef.c: Likewise.
7350 * nscd/nscd.c (print_version): Likewise.
7351 * debug/xtrace.sh: Likewise.
7352 * malloc/memusage.sh: Likewise.
7353 * malloc/mtrace.pl: Likewise.
7354 * debug/catchsegv.sh: Likewise.
7356 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7358 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7361 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7363 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7364 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7366 2007-12-17 Roland McGrath <roland@redhat.com>
7368 * inet/ether_line.c (ether_line): Remove unused variable.
7370 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7372 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7374 * login/openpty.c (openpty): Likewise.
7375 * login/pty.h (openpty, forkpty): Likewise.
7376 * manual/terminal.texi (openpty, forkpty): Likewise.
7378 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7380 * malloc/malloc.c (public_cALLOc): For arenas other than
7381 main_arena, count all bytes inside the mprotect_size range of the
7382 heap as uninitialized.
7384 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7386 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7389 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7390 mTRIm for all of them.
7391 (mTRIm): Additionally iterate over all free blocks and use madvise
7392 to free memory for all those blocks which contain at least one
7394 * malloc/tst-trim1.c: New file.
7395 * malloc/Makefile (tests): Add tst-trim1.
7397 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7399 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7401 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7402 First cast argument to long
7403 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7405 (__vdso_clock_gettime): Likewise.
7406 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7409 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7411 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7412 * locale/nl_langinfo_l.c: Real implementation, copied from
7414 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7416 2007-12-01 Jim Meyering <meyering@redhat.com>
7418 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7419 that would inhibit utf8-optimization of a regexp containing line-
7420 or buffer-anchors, e.g., `^', `$'.
7422 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7424 * time/bug-getdate1.c (do_test): Don't use century values which
7425 aren't valid on 32-bit systems.
7427 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7429 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7430 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7431 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7432 __strcat_g, __strncat_g): Add __asm__.
7434 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7437 * io/fchmodat.c: Fix typo in stub_warning use.
7438 Patch by Petr Salinger.
7440 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7442 * iconvdata/hp-thai8.c: New file.
7443 * iconvdata/Makefile: Add rules for hp-thai8.c.
7444 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7445 * iconvdata/gconv-modules: Likewise.
7448 * iconvdata/hp-greek8.c: New file.
7449 * iconvdata/Makefile: Add rules for hp-greek8.c.
7450 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7451 * iconvdata/gconv-modules: Likewise.
7454 * iconvdata/hp-turkish8.c: New file.
7455 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7456 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7457 * iconvdata/gconv-modules: Likewise.
7459 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7460 (shrink_heap): ... this new function.
7461 (heap_trim): Call shrink_heap instead of grow_heap.
7463 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7464 case don't call alloc_perturb.
7466 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7468 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7470 * sysdeps/unix/sysv/linux/kernel-features.h
7471 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7472 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7474 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7477 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7478 * stdio-common/Makefile (tests): Add bug22.
7479 * stdio-common/bug22.c: New file.
7482 * time/getdate.c: Fix filling in default values.
7483 * time/bug-getdate1.c: New file.
7484 * time/Makefile: Add rules to build and run bug-getdate1.
7486 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7487 * iconvdata/ebcdic-es.c: Likewise.
7488 * iconvdata/ebcdic-es-a.c: Likewise.
7489 * iconvdata/ebcdic-uk.c: Likewise.
7490 * iconvdata/iso8859-16.c: Likewise.
7491 * iconvdata/viscii.c: Likewise.
7492 * iconvdata/iso8859-9e.c: Likewise.
7493 * iconvdata/Makefile: Adjust appropriately.
7496 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7499 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7502 * iconvdata/hp-roman9.c: New file.
7503 * iconvdata/Makefile: Add rules for hp-roman9.c.
7504 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7505 * iconvdata/gconv-modules: Likewise.
7507 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7508 * iconvdata/Makefile: Adjust appropriately.
7511 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7512 structure, it's allocated with alloca.
7513 * stdio-common/Makefile (tests): Add bug21.
7514 * stdio-common/bug21.c: New file.
7516 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7519 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7520 keyword for gcc's braced-groups.
7522 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7525 * inet/ether_line.c: Strip hostname of whitespaces.
7526 * inet/Makefile (tests): Add tst-ether_line.
7527 * inet/tst-ether_line.c: New file.
7529 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7532 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7535 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7537 * stdlib/tst-setcontext.c: Catch the case where the links gets
7538 messed up and we do not reach main again.
7540 * po/ca.po: Update from translation team.
7542 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7544 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7545 * posix/regex.h (REG_ENOSYS): Likewise.
7546 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7548 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7550 * nscd/nscd.h (MAX_STACK_USE): Define.
7551 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7552 (gc): Initialize stack_used based on allocation in prune_cache.
7553 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7554 Clear array before use.
7556 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7557 memory allocation failed.
7558 * nscd/hstcache.c (cache_addhst): Likewise.
7559 * nscd/grpcache.c (cache_addgr): Likewise.
7560 * nscd/servicescache.c (cache_addserv): Likewise.
7561 * nscd/pwdcache.c (cache_addpw): Likewise.
7562 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7564 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7567 and creat system calls.
7569 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7571 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7573 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7575 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7576 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7578 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7579 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7580 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7582 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7584 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7585 strncat): Define as macros to avoid compile errors.
7587 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7590 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7593 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7594 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7595 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7597 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7599 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7600 Return zero in case the thread library is not NPTL.
7603 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7604 initializing interface list.
7607 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7608 use result of nss_getgrgid_r if nothing was found. For other
7609 error return with a failure.
7610 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7612 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7615 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7617 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7618 (get_scope): For IPv4 scope, use scopes table.
7619 (fini): Free scopes table if necessary.
7620 (free_scopelist): New function.
7621 (scopecmp): New function.
7622 (gaiconf_init): Also handle scopev4 entries.
7623 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7624 * posix/tst-rfc3484-2.c (do_test): Likewise.
7625 * posix/gai.conf: Document scopev4 defaults.
7626 * posix/Makefile (tests): Add tst-rfc3484-3.
7627 * posix/tst-rfc3484-3.c: New file.
7629 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7631 * posix/gai.conf: Update for current default tables.
7633 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7635 * po/tr.po: Update from translation team.
7637 2007-11-18 Roland McGrath <roland@frob.com>
7639 * manual/arith.texi (Remainder Functions): Spelling fix.
7640 From Shaun Silk <genix@mysoul.com.au>.
7642 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7644 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7646 * po/zh_CN.po: Update from translation team.
7648 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7649 Add sys/signalfd.h and sys/eventfd.h.
7651 2007-11-15 Bruno Haible <bruno@clisp.org>
7654 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7656 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7657 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7658 it needs only fixed stack space. Delay the initialization of
7659 msgid_len until it is needed.
7661 2007-11-15 Andreas Jaeger <aj@suse.de>
7663 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7664 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7666 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7668 * po/ko.po: Update from translation team.
7670 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7672 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7673 significantly. The device type is also part of the ifinfomsg data.
7675 * po/sv.po: Update from translation team.
7676 * po/nl.po: Likewise.
7678 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7679 to wake up in 24 hours.
7681 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7683 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7685 * po/cs.po: Update from translation team.
7686 * po/pl.po: Likewise.
7688 * include/ifaddrs.h: Remove in6ai_temporary.
7689 (struct in6addrinfo): Add index element.
7690 Declare __check_native.
7691 * inet/Makefile (aux): Add check_native.
7692 * sysdeps/unix/sysv/linux/check_native.c: New file.
7693 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7694 IFA_F_TEMPORARY. Pass back ifa_index.
7695 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7696 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7697 call __check_native if necessary.
7698 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7699 to sort addresses. Pass information about the results.
7700 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7701 of rfc3484_sort interface.
7702 * posix/tst-rfc3484-2.c: Likewise.
7704 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7705 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7707 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7708 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7709 on as third parameter to compare function and _quicksort.
7710 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7711 to the compare function.
7712 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7713 * Versions.def: Add GLIBC_2.8 for libc.
7715 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7716 * posix/tst-rfc3484-2.c: Likewise.
7718 * include/kernel-features.h: Moved to...
7719 * sysdeps/mach/hurd/kernel-features.h: ...here.
7721 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7723 * sysdeps/i386/i586/memcpy_chk.S: New file.
7724 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7725 * sysdeps/i386/i586/memset_chk.S: Likewise.
7727 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7729 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7730 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7731 list of interfaces. Also store prefix length.
7732 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7733 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7734 prefix if source and destination address are in the same subnet.
7735 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7736 Always look for matching record in in6ai list.
7737 Correct source_addr_len value for IPv6->IPv4 converted records.
7739 2007-11-11 Roland McGrath <roland@frob.com>
7741 * include/kernel-features.h: New file.
7743 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7745 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7746 complications for 64-bit platforms.
7748 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7749 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7750 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7752 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7754 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7755 * sysdeps/wordsize-64/alphasort.c: New file.
7756 * sysdeps/wordsize-64/alphasort64.c: New file.
7757 * sysdeps/wordsize-64/fseeko.c: New file.
7758 * sysdeps/wordsize-64/fseeko64.c: New file.
7759 * sysdeps/wordsize-64/ftello.c: New file.
7760 * sysdeps/wordsize-64/ftello64.c: New file.
7761 * sysdeps/wordsize-64/ftw.c: New file.
7762 * sysdeps/wordsize-64/ftw64.c: New file.
7763 * sysdeps/wordsize-64/iofgetpos.c: New file.
7764 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7765 * sysdeps/wordsize-64/iofopen.c: New file.
7766 * sysdeps/wordsize-64/iofopen64.c: New file.
7767 * sysdeps/wordsize-64/iofsetpos.c: New file.
7768 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7769 * sysdeps/wordsize-64/lockf.c: New file.
7770 * sysdeps/wordsize-64/lockf64.c: New file.
7771 * sysdeps/wordsize-64/mkostemp.c: New file.
7772 * sysdeps/wordsize-64/mkostemp64.c: New file.
7773 * sysdeps/wordsize-64/mkstemp.c: New file.
7774 * sysdeps/wordsize-64/mkstemp64.c: New file.
7775 * sysdeps/wordsize-64/scandir.c: New file.
7776 * sysdeps/wordsize-64/scandir64.c: New file.
7777 * sysdeps/wordsize-64/tmpfile.c: New file.
7778 * sysdeps/wordsize-64/tmpfile64.c: New file.
7779 * sysdeps/wordsize-64/versionsort.c: New file.
7780 * sysdeps/wordsize-64/versionsort64.c: New file.
7781 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7782 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7783 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7784 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7785 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7786 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7787 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7788 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7789 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7790 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7791 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7792 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7794 * crypt/sha256-crypt.c: Fix a comment.
7795 * crypt/sha512-crypt.c: Likewise.
7797 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7799 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7801 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7804 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7805 because output buffer is too small break, don't loop.
7806 * iconvdata/Makefile (tests): Add bug-iconv6.
7807 * iconvdata/bug-iconv6.c: New file.
7809 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7811 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7813 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7814 size_t. Add casts where needed.
7816 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7817 old headers, don't call avc_has_perm if we don't have the
7818 permission information.
7820 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7822 * elf/rtld.c (dl_main): Use the page size to find the map start.
7824 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7826 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7827 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7829 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7830 when the lookup call failed.
7832 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7833 Add prune_cond and wakeup_time.
7834 (CACHE_PRUNE_INTERNAL): Define.
7835 Update declarations of prune_cache and setup_thread.
7836 * nscd/connections.c (dbs): Update initializers.
7837 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7838 (nscd_init): Default number of threads is now 4.
7839 (invalidate_cache): Take lock before calling prune_cache.
7840 (handle_request): If SELinux forbids the request, say so.
7841 (readylist_cond): Use static initializer.
7842 (nscd_run_prune): New function. Used only by pruning threads.
7843 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7845 (fd_ready): Update nscd_run reference.
7846 (start_threads): No need to initialize readylist_cond.
7847 Start pruning threads separately.
7848 * nscd/nscd_setup_thread.c: Change return value type to int and always
7850 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7851 to int and return nonzero value if we can use the TID address hack.
7852 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7853 the database is later than the new entry's timeout, update the
7854 wakeup time and wake the cleanup thread.
7855 (prune_cache): Return seconds the next entry in the database is still
7856 valid. Remove locking for pruning here.
7857 * nscd/nscd.conf: Document default number of threads.
7859 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7861 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7862 stack is properly aligned for the target function.
7863 Correct unwind info.
7865 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7866 when using auditing libraries.
7868 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7870 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7871 _nss_dns_getnetbyaddr2_r.
7872 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7873 extra parameter to getanswer_r.
7874 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7875 _nss_dns_getnetbyaddr2_r.
7877 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7879 * nscd/gethstbynm2_r.c: Remove.
7880 * nscd/gethstbynm3_r.c: New file.
7881 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7883 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7884 __gethostbyaddr_r compatibility wrapper.
7885 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7886 determining timeout of entry.
7887 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7889 (addhstbyX): Pass reference to variable for TTL to lookup and
7891 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7892 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7893 and __nss_next2. Remove __nss_services_lookup.
7894 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7896 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7898 * nss/getXXent_r.c: Likewise.
7899 * nss/getnssent_r.c: Likewise.
7900 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7901 does not exist in module, try the optional second name.
7902 (__nss_next2): New function.
7903 (__nss_next): Now wrapper around __nss_next2.
7904 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7905 Declare __nss_next2.
7906 Adjust definition of db_lookup_function type.
7907 * nss/service-lookup.c: Define NO_COMPAT.
7908 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7909 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7910 * inet/ether_ntoh.c: Likewise.
7911 * sunrpc/netname.c: Likewise.
7912 * sunrpc/publickey.c: Likewise.
7913 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7914 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7915 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7916 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7917 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7919 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7921 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7923 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7926 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7927 * crypt/sha512c-test.c: Likewise.
7930 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7931 to keep track of end of %[ format string element.
7932 * stdio-common/Makefile (tests): Add bug20.
7933 * stdio-common/bug20.c: New file.
7936 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7937 path elements in counting mode.
7939 2007-10-27 Andreas Jaeger <aj@suse.de>
7942 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7945 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7946 (__cleanup): Free shared library when exiting.
7947 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7948 (__cleanup): Free shared library when exiting.
7950 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7953 * math/libm-test.inc (check_float_internal): Support
7954 denormalized return.
7956 2007-10-23 Andreas Jaeger <aj@suse.de>
7959 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7960 __LONG_LONG_PAIR to handle little endian byte order.
7961 Suggested by abhishekrai@google.com
7963 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7965 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7967 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7969 * nscd/cache.c (prune_cache): Move test for modified file outside
7972 2007-10-21 Andreas Jaeger <aj@suse.de>
7974 * manual/texinfo.tex: Update to latest version.
7976 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7978 * manual/arith.texi (Status bit operations): Fix formatting.
7980 * manual/errno.texi (Error Messages): Fix formatting.
7982 * manual/sysinfo.texi (System Parameters): Fix formatting.
7984 * manual/libc.texinfo: Update VERSION and UPDATED.
7986 2007-10-19 Roland McGrath <roland@redhat.com>
7988 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7990 2007-10-06 David S. Miller <davem@davemloft.net>
7992 * configure.in: Add sparcv9v2 and sparc64v2.
7993 * scripts/config.sub: Likewise.
7994 * configure: Regenerate.
7995 * elf/elf.h (HWCAP_SPARC_N2): New.
7996 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7997 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7998 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7999 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8000 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8001 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8002 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8004 2007-10-18 Ulrich Drepper <drepper@redhat.com>
8006 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8007 even if the poll result indicates there is data to read.
8008 Patch by Jeff Moyer <jmoyer@redhat.com>.
8010 2007-10-18 Roland McGrath <roland@redhat.com>
8012 * elf/elf.h (NT_PPC_VMX): New macro.
8014 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8016 * version.h (VERSION): Set to 2.7.90.
8018 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8020 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
8023 2007-10-17 Roland McGrath <roland@frob.com>
8025 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8026 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8028 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8030 * version.h (VERSION): Bump to 2.7.
8031 * include/features.h (__GLIBC_MINOR__): Bump to 7.
8034 * time/tzset.c (__tz_convert): Don't force testing for a change of
8035 TZ if not called from localtime. But then also see whether the
8036 file changed, in case __use_tzfile is set.
8038 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8039 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8040 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8041 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8042 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8043 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8044 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8045 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8047 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8049 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8050 and admin selects to be able to replace the gai.conf file, lock
8051 data structures around the qsort call.
8053 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8055 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8057 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
8058 too high for the improvements. Implement bzero unconditionally for
8061 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8062 Jakub Jelinek <jakub@redhat.com>
8064 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8065 even when time_t is 32-bit.
8066 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8067 timezone data read by __tzfile_default. Ensure __tzname[0] is
8068 always set after the search.
8070 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8072 * time/tzfile.c (__tzfile_read): Help the compiler recognize
8073 unreachable code on 32-bit machines.
8075 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8078 * time/strftime_l.c: Include stdbool.h.
8079 (my_strftime): New wrapper, old function renamed to...
8080 (__strftime_internal): ... new function. Add tzset_called
8081 argument, pass it down to recursive calls, don't call tzset ()
8082 if already true, set to true after call to tzset ().
8084 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8086 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8087 into account when copying TZ string.
8089 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8091 * time/tzfile.c (__tzfile_compute): For use_last case set i to
8092 num_transition rather than num_transitions - 1.
8094 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8096 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8099 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8100 a local label rather than HIDDEN_JUMPTARGET.
8102 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8104 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8105 (init_cacheinfo): Initialize it.
8106 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8107 Always define bzero.
8108 Remove non-glibc code.
8109 * sysdeps/x86_64/bzero.S: Make an empty file.
8111 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
8113 * sysdeps/x86_64/cacheinfo.c
8114 (__x86_64_preferred_memory_instruction): New.
8115 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8117 * sysdeps/x86_64/memset.S: Rewrite.
8119 2007-10-15 Roland McGrath <roland@redhat.com>
8121 * po/libc.pot: Regenerated.
8123 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8125 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8129 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8130 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8131 address record to T_A/T_AAAA requests.
8133 2007-10-14 Ulrich Drepper <drepper@redhat.com>
8135 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8137 * posix/glob.c: Add some branch prediction throughout.
8139 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8142 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8144 (rfc3484_sort): Make sure that even if qsort doesn't support
8145 stable sorting out sorting here is stable by comparing service_order.
8146 (getaddrinfo): Initialize service_order.
8147 * posix/tst-rfc3484.c (do_test): Adjust for addition of
8148 service_order field to sorting structure.
8149 * posix/tst-rfc3484-2.c (do_test): Likewise.
8151 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8152 * time/tzset.c (tzset_internal): Break TZ string parsing out into
8153 __tzset_parse_tz and updating of daylight, timezone, tzname into
8155 (__tz_compute): Renamed from tz_compute. Take additional parameters.
8156 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8157 happens in __tz_compute.
8158 * time/tzfile.c (__tzfile_read): Also read TZ string.
8159 (find_transition): Fold into __tzfile_compute.
8160 (__tzfile_compute): For times beyond the last transition try to
8162 * timezone/tst-timezone.c: Information in daylight and tzname does
8163 change for Asia/Tokyo timezone with more concrete information.
8166 * include/stdio.h: Add libc_hidden_proto for ftello.
8167 * libio/ftello.c: Add libc_hidden_def.
8170 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8171 on the specified time and not the last entries in the file. Move
8172 code to determine tzname[] to...
8173 (find_transition): ...here. Add ugly guess for times before the
8176 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8179 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8181 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8182 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8183 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8184 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8186 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8187 read mechanism when there are no group members and avoid no-op
8188 read syscall in this case.
8191 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8192 (__readall): If reading failed due to EAGAIN error wait a bit
8193 and possibly try again.
8194 (__readvall): Likewise.
8196 2007-10-13 Bruno Haible <bruno@clisp.org>
8198 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8199 when we cannot recode the message.
8201 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8204 * libio/__freading.c (__freading): Don't return true for
8205 write-only streams. For read/write streams, check whether we
8206 performed a read operation already.
8207 * libio/Makefile (tests): Add tst-ext2.
8208 * libio/tst-ext2.c: New file.
8210 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8212 * locale/programs/repertoire.c (repertoire_read): Always free
8213 memory for repertoire file name [Coverity CID 270].
8215 * elf/cache.c (save_aux_cache): Free memory allocated for
8216 temporary file name [Coverity CID 267].
8218 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8220 * misc/Makefile (headers): Add bits/error.h.
8222 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8224 * posix/fnmatch_loop.c: Take rule index returned as part of
8225 findidx return value into account when accessing weights.
8226 * posix/regcomp.c: Likewise.
8227 * posix/regexec.c: Likewise.
8229 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8230 (skip_to): Fix problems with parameter of elifdef/elifndef.
8232 2007-10-11 Ulrich Drepper <drepper@redhat.com>
8234 * iconv/gconv_simple.c: Add some branch prediction.
8236 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8238 * locale/programs/ld-collate.c (collate_read): If ignore_content
8239 and nowtok is tok_define, eat any tok_eol tokens.
8241 2007-10-11 Jakub Jelinek <jakub@redhat.com>
8243 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8244 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8246 * inet/netinet/in.h: Don't include bits/socket.h.
8247 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8249 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8251 2007-10-10 Ulrich Drepper <drepper@redhat.com>
8253 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8255 * locale/programs/locfile-kw.gperf: Likewise.
8256 * locale/programs/ld-collate.c: Implement primitive preprocessor.
8258 2007-10-10 Jakub Jelinek <jakub@redhat.com>
8260 * stdio-common/printf-parse.h: Include string.h and wchar.h.
8261 (__find_specwc): Change into __extern_always_inline function.
8262 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
8263 (__parse_one_specmb): Remove ps argument.
8264 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8265 Adjust __find_specmb and __parse_one_specmb callers.
8266 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8267 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8269 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8272 2007-10-09 Ulrich Drepper <drepper@redhat.com>
8274 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8275 with some Pentium Ds.
8277 2007-10-08 Ulrich Drepper <drepper@redhat.com>
8279 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8281 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8284 2007-10-07 Ulrich Drepper <drepper@redhat.com>
8287 * locale/C-time.c: Set week_1stday data to 19971201.
8288 * locale/programs/ld-time.c (time_finish): Default for
8289 first_workday is Monday.
8292 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8295 * posix/glob.c (glob): Recognize patterns starting \/.
8296 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8297 (main): Add test for pattern starting \/.
8299 * misc/error.h: Use __const instead of const.
8300 * misc/bits/error.h: Likewise.
8302 2007-10-07 Andreas Jaeger <aj@suse.de>
8304 * include/bits/error.h: New file.
8306 * misc/bits/error.h (error_at_line): Fix prototype.
8308 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8311 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8312 more little bugs in creating the stack frame when pltexit has to
8315 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8316 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8319 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8320 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8321 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8322 * math/libm-test.inc: Add test for this case.
8325 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8326 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8327 map service succeeded.
8328 (svc_is_mapped): New function.
8329 (svc_unregister): Use it before trying to unmap service.
8331 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8333 * timezone/zic.c: Update from tzcode2007h.
8336 * timezone/africa: Update from tzdata2007h.
8337 * timezone/antarctica: Likewise.
8338 * timezone/asia: Likewise.
8339 * timezone/australasia: Likewise.
8340 * timezone/europe: Likewise.
8341 * timezone/leapseconds: Likewise.
8342 * timezone/northamerica: Likewise.
8343 * timezone/southamerica: Likewise.
8344 * timzeone/zone.tab: Likewise.
8347 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8350 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8351 avoid warning with -Wconversion.
8352 (__strndup): Likewise.
8353 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8356 * nscd/connections.c (restart): Don't resync if database is
8357 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8359 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8360 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8362 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8363 evetnfd_read, eventfd_write.
8364 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8365 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8366 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8367 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8368 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8369 eventfd_write for GLIBC_2.7.
8371 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8372 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8373 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8374 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8376 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8378 * stdlib/msort.c: Include stdint.h.
8379 (struct msort_param): New type.
8380 (msort_with_tmp): Use struct msort_param pointer for unchanging
8381 parameters. Add optimized handling for several common sizes
8382 and indirect sorting mode.
8383 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8385 Suggested by Belazougui Djamel .
8387 * stdlib/Makefile (tests): Add tst-qsort2.
8388 * stdlib/tst-qsort2.c: New test.
8390 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8392 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8393 for dup2 in case another thread races with the current one. Retry
8396 * misc/error.h: Remove support for use outside of libc. We have to
8397 include <features.h> now. Include <bits/error.h> if possible.
8398 * misc/bits/error.h: New file.
8400 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8402 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8403 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8404 __extern_always_inline functions unconditionally, drop macros.
8406 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8407 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8408 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8410 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8411 add __artificial__ attribute.
8413 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8415 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8416 backward to forward direction.
8418 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8421 * locale/programs/ld-collate.c (collate_finish): Compare against last
8422 used section which is known to have rules defined.
8423 (collate_read): After order_start, correctly record order of sections
8424 and queue sections up.
8426 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8429 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8430 the same number of pages.
8431 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8433 * locale/programs/ld-collate.c (collate_read): After initial copy
8434 statement, continue in state 0.
8436 * include/stdio_ext.h (__fsetlocking): Define as macro.
8438 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8440 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8443 * po/pt_BR.po: Fix typo.
8445 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8447 * iconvdata/Makefile (modules): Add ISO8859-9E.
8448 (distribute): Add iso8859-9e.c.
8449 (gen-8bit-gap-modules): Add iso8859-9e.
8450 * iconvdata/iso8859-9e.c: New file.
8451 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8452 * iconvdata/TESTS: Likewise.
8453 * iconvdata/tst-tables.sh: Likewise.
8455 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8457 * locale/iso-639.def: Add several new entries.
8459 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8461 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8462 void * pointers instead of struct link_map **.
8463 (_dl_scope_free): Change argument type to void *.
8464 * include/link.h (struct link_map): Change type of l_reldeps
8465 to struct link_map_reldeps, move l_reldepsact into that
8467 * elf/dl-deps.c: Include atomic.h.
8468 (_dl_map_object_deps): Only change l->l_initfini when it is
8469 fully populated, use _dl_scope_free for freeing it. Optimize
8470 removal of libs from reldeps by using l_reserved flag, when
8471 some removal is needed, allocate a new list instead of
8472 reallocating and free the old with _dl_scope_free. Adjust
8473 for l_reldeps and l_reldepsact changes.
8474 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8475 searching in l_initfini and l_reldeps without holding dl_load_lock.
8476 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8477 l_reldepsact changes.
8478 * elf/dl-close.c (_dl_close_worker): Likewise.
8479 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8481 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8483 * iconvdata/Makefile (modules): Add KOI8-RU.
8484 (distribute): Add koi8-ru.c.
8485 (gen-8bit-gap-modules): Add koi8-ru.
8486 * iconvdata/koi8-ru.c: New file.
8487 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8488 * iconvdata/TESTS: Likewise.
8489 * iconvdata/tst-tables.sh: Likewise.
8491 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8493 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8495 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8496 with __warning__/__error__ attributes.
8497 (__warnattr): Define.
8498 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8499 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8501 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8502 of __*_chk if compile time detectable overflow is found.
8503 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8504 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8506 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8507 instead of __*_chk if compile time detectable overflow is found.
8508 (__gets_alias): Rename to...
8509 (__gets_warn): ... this. Add __warnattr.
8510 (gets): Call __gets_warn instead of __gets_alias.
8511 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8512 aliases with __warnattr.
8513 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8514 time detectable overflow is found.
8515 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8516 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8517 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8518 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8519 __getdomainname_chk_warn): New aliases with __warnattr.
8520 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8521 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8522 __*_chk_warn instead of __*_chk if compile time detectable overflow
8524 (__getgroups_chk): Rename argument to __listlen from listlen.
8525 (__getwd_alias): Rename to...
8526 (__getwd_warn): ... this. Add __warnattr.
8527 (getwd): Call __getwd_warn instead of __getwd_alias.
8528 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8529 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8530 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8531 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8532 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8533 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8534 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8535 compile time detectable overflow is found.
8536 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8537 to use __*_chk or not.
8538 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8539 in comparisons which function should be called and in __*_chk*
8540 arguments. Call __*_chk_warn instead of __*_chk if compile time
8541 detectable overflow is found.
8542 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8544 * debug/tst-chk1.c (do_test): Add a few more tests.
8546 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8549 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8550 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8551 (_nl_unload_domain): Finalize conversions_lock.
8552 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8553 handling table of known conversions.
8555 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8557 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8558 close_not_cancel_no_status instead of close.
8560 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8563 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8564 nrules != 0 for multibyte chars.
8566 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8568 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8569 Provide better error message in case the type is unknown.
8572 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8573 * string/stratcliff.c: Make usable to test wide char functions.
8574 * wcsmbs/wcsatcliff.c: New file.
8575 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8578 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8579 (distribute): Add mac-centraleurope.c.
8580 (gen-8bit-gap-modules): Add mac-centraleurope.
8581 * iconvdata/mac-centraleurope.c: New file.
8582 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8583 * iconvdata/TESTS: Likewise.
8584 * iconvdata/tst-tables.sh: Likewise.
8587 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8589 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8591 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8592 from __x86_64_core_cache_size_half.
8593 (init_cacheinfo): Compute shared cache size for AMD processors with
8594 shared L3 correctly.
8595 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8597 Patch in large parts by Evandro Menezes.
8599 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8601 * elf/dl-lookup.c (add_dependency): Handle failing memory
8602 allocation for dependency list. Remove unnecessary check.
8604 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8605 open/close when determining source addresses.
8607 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8608 sha512-crypt, and sha512.
8609 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8610 (distribute): Add sha256.h and sha512.h.
8611 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8612 and call the appropriate code.
8613 * crypt/sha256-crypt.c: New file.
8614 * crypt/sha256.c: New file.
8615 * crypt/sha256.h: New file.
8616 * crypt/sha256c-test.c: New file.
8617 * crypt/sha256test.c: New file.
8618 * crypt/sha512-crypt.c: New file.
8619 * crypt/sha512.c: New file.
8620 * crypt/sha512.h: New file.
8621 * crypt/sha512c-test.c: New file.
8622 * crypt/sha512test.c: New file.
8624 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8626 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8627 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8630 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8632 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8633 %as in fscanf format strings.
8635 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8636 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8637 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8639 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8642 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8643 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8644 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8645 * elf/dl-sym.c (do_sym): Likewise.
8646 * include/link.h (struct link_map): Add l_serial field.
8647 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8648 * elf/dl-lookup.c (add_dependency): Add flags argument.
8649 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8650 flags, use THREAD_GSCOPE_RESET_FLAG before and
8651 THREAD_GSCOPE_SET_FLAG after
8652 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8653 Don't dereference map until it has been found on some list.
8654 If map->l_serial changed, return -1.
8656 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8658 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8659 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8660 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8662 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8663 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8664 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8665 add libc_hidden_proto.
8666 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8667 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8668 conformance requested.
8669 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8670 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8671 conformance requested.
8672 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8673 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8674 conformance requested.
8675 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8676 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8677 ISO C99 or POSIX conformance requested.
8678 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8679 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8680 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8681 and __isoc99_vsscanf@@GLIBC_2.7.
8682 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8683 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8684 (tests): Add scanf14.
8685 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8686 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8687 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8688 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8689 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8690 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8691 from using internal headers.
8692 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8693 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8694 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8695 and __isoc99_vswscanf@@GLIBC_2.7.
8696 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8697 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8698 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8699 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8700 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8701 * stdio-common/isoc99_scanf.c: New file.
8702 * stdio-common/isoc99_vsscanf.c: New file.
8703 * stdio-common/isoc99_vscanf.c: New file.
8704 * stdio-common/isoc99_vfscanf.c: New file.
8705 * stdio-common/isoc99_fscanf.c: New file.
8706 * stdio-common/isoc99_sscanf.c: New file.
8707 * wcsmbs/isoc99_fwscanf.c: New file.
8708 * wcsmbs/isoc99_vswscanf.c: New file.
8709 * wcsmbs/isoc99_swscanf.c: New file.
8710 * wcsmbs/isoc99_wscanf.c: New file.
8711 * wcsmbs/isoc99_vwscanf.c: New file.
8712 * wcsmbs/isoc99_vfwscanf.c: New file.
8713 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8714 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8715 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8716 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8717 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8718 * stdio-common/scanf14.c: New test.
8719 * stdio-common/scanf15.c: New test.
8720 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8721 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8722 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8723 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8724 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8725 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8726 __nldbl___isoc99_scanf@@GLIBC_2.7,
8727 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8728 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8729 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8730 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8731 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8732 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8733 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8734 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8735 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8736 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8737 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8738 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8739 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8740 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8741 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8742 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8743 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8744 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8745 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8746 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8747 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8748 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8749 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8751 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8752 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8753 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8754 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8755 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8756 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8757 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8758 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8759 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8760 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8761 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8762 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8764 * stdio-common/Makefile (tests): Add scanf13.
8766 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8767 m modifier followed by l.
8768 (STRING_ARG): Add width argument.
8769 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8770 <case L_('C')>: Handle %mlc and %mC.
8771 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8773 * stdio-common/scanf13.c: New test.
8775 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8776 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8778 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8780 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8781 type and __THROW marker of splice, vmsplice, and tee.
8782 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8783 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8784 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8785 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8786 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8787 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8788 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8789 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8790 as cancellation points.
8792 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8794 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8795 parse more than three parts of the version number.
8797 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8799 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8800 modifier. Patch by Jakub Jelinek.
8802 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8804 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8805 call_fallocate in misc subdir.
8806 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8807 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8808 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8809 instead of __fallocate64.
8810 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8812 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8814 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8815 * rt/Makefile (headers): Add bits/mqueue2.h.
8816 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8817 optimizing with GCC and __va_arg_pack_len is defined.
8818 * rt/bits/mqueue2.h: New file.
8819 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8820 (mq_open): New strong_alias.
8821 (__mq_open_2): New function.
8822 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8823 (mq_open): New strong_alias.
8824 (__mq_open_2): New function.
8825 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8826 * Versions.def (librt): Add GLIBC_2.7 version.
8827 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8828 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8830 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8831 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8832 is defined rather than when not C++.
8833 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8834 __openat64_alias): New redirects.
8835 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8836 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8837 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8838 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8839 functions instead of function-like macros.
8841 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8843 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8844 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8845 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8847 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8849 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8850 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8852 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8854 * inet/tst-network.c: Increment ERRORS for failing tests.
8856 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8858 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8859 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8860 implement as __extern_always_inline function.
8861 (vsyslog): Define as __extern_always_inline function unconditionally.
8862 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8863 When __va_arg_pack is defined, implement as __extern_always_inline
8865 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8866 __extern_always_inline functions unconditionally.
8867 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8868 bits/stdio2.h will be included.
8869 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8870 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8871 implement as __extern_always_inline functions.
8872 (vswprintf, vwprintf, vfwprintf): Define as
8873 __extern_always_inline functions unconditionally.
8874 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8876 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8878 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8879 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8881 * include/features.h (__USE_EXTERN_INLINES): Define only when
8882 __extern_inline is defined.
8883 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8884 is defined instead of when not __cplusplus.
8885 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8886 is defined instead of when not __cplusplus.
8887 * socket/sys/socket.h: Include bits/socket2.h when
8888 __extern_always_inline is defined instead of when not __cplusplus.
8889 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8890 is defined instead of when not __cplusplus.
8891 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8892 is defined instead of when not __cplusplus.
8893 * string/string.h: Include bits/string3.h when __extern_always_inline
8894 is defined instead of when not __cplusplus.
8895 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8896 is defined instead of when not __cplusplus.
8897 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8898 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8900 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8901 defined __extern_always_inline instead of !defined __cplusplus.
8902 * libio/bits/stdio-ldbl.h: Likewise.
8903 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8904 * misc/bits/syslog.h (syslog): Don't define for C++.
8905 (vsyslog): Use __extern_always_inline function for C++ instead of
8907 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8908 whenever that macro is defined.
8909 (vprintf): Don't provide the inline for C++.
8910 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8911 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8912 define the macros for C++.
8913 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8914 __extern_always_inline functions for C++.
8915 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8916 stat64, lstat64, fstat64, fstatat64): Don't define if not
8917 __USE_EXTERN_INLINES.
8918 * wcsmbs/bits/wchar2.h: Fix #error message.
8919 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8920 (vswprintf, vwprintf, vfwprintf): Define using
8921 __extern_always_inline functions for C++.
8922 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8923 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8924 strncpy, strcat, strncat): Define as __extern_always_inline
8925 functions instead of macros for C++.
8926 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8927 defined __extern_inline.
8928 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8929 to __extern_inline whenever that macro is defined.
8930 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8931 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8932 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8933 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8934 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8935 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8936 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8937 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8938 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8939 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8940 prototypes. Only provide __extern_inline routines if
8941 __USE_EXTERN_INLINES.
8942 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8944 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8945 For now avoid some *printf tests in C++. Skip all testing
8946 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8948 * debug/tst-chk4.cc: New file.
8949 * debug/tst-chk5.cc: New file.
8950 * debug/tst-chk6.cc: New file.
8951 * debug/tst-lfschk4.cc: New file.
8952 * debug/tst-lfschk5.cc: New file.
8953 * debug/tst-lfschk6.cc: New file.
8954 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8956 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8957 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8958 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8960 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8962 * po/cs.po: Update from translation team.
8964 2007-09-11 Roland McGrath <roland@redhat.com>
8966 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8969 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8971 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8973 2007-09-05 Roland McGrath <roland@redhat.com>
8975 * manual/signal.texi (Signaling Another Process): Typo fix.
8976 From Karl Berry <karl@freefriends.org>.
8978 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8980 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8981 zero if not defined.
8982 (make_request): Recognize optimistic addresses and treat them like
8983 deprecated addresses.
8984 Reported by Neil Horman <nhorman@redhat.com>.
8986 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8988 * nscd/connections.c (send_ro_fd): Also transfer file size.
8989 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8990 file size don't call fstat.
8992 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8993 ahead and map the file. This should always be correct and we can
8994 catch problems later.
8996 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8998 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9000 (__fread_alias, __fread_unlocked_alias): New aliases.
9001 (fread): New extern inline.
9002 (fread_unlocked): Likewise. Undef macro before definition of
9003 the inline function.
9004 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9005 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9006 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9007 and __fread_unlocked_chk@@GLIBC_2.7.
9008 * debug/fread_chk.c: New file.
9009 * debug/fread_u_chk.c: New file.
9010 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9012 2007-08-27 Jakub Jelinek <jakub@redhat.com>
9014 * sysdeps/unix/sysv/linux/syscalls.list
9015 (personality): Change caller to EXTRA.
9017 2007-08-25 Ulrich Drepper <drepper@redhat.com>
9019 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9021 * iconvdata/iso-2022-cn.c (BODY): Likewise.
9023 * locale/programs/ld-collate.c (collate_output): Avoid warning if
9026 * Makerules: Use -p option with mkdir.
9028 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9029 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9030 (_xdr_directory_obj): Likewise.
9031 (xdr_entry_obj): Likewise.
9032 (xdr_group_obj): Likewise.
9033 (xdr_link_obj): Likewise.
9034 (xdr_table_obj): Likewise.
9035 (_xdr_nis_result): Likewise.
9036 (_xdr_ns_request): Likewise.
9037 (_xdr_ib_request): Likewise.
9038 (_xdr_nis_taglist): Likewise.
9039 (xdr_cback_data): Likewise.
9040 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9041 (xdr_ypresp_maplist): Likewise.
9043 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9045 * posix/regex_internal.h: Prevent some declarations and definitions
9046 to be seen when used in tests.
9048 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9049 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9051 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9053 * config.make.in (datarootdir): Add to shut up configure.
9055 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9056 associativity for fully-associative caches.
9058 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9059 requests. Fill on more associativity values for L2.
9060 Patch mostly by Evandro Menezes.
9062 2007-08-24 Ulrich Drepper <drepper@redhat.com>
9064 * sysdeps/unix/sysv/linux/x86_64/init-first.c
9065 (_libc_vdso_platform_setup): Avoid using exported variable by using
9068 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9070 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9071 fallocate64 as EXTRA. It is not referenced if the symbol isn't
9074 2007-08-23 Ulrich Drepper <drepper@redhat.com>
9076 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9077 align stack for call if pltexit is to be used.
9080 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9081 align for function call in case pltexit has to be called later.
9083 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9084 implicit atomic operation when storing function pointer.
9085 (_dl_runtime_profile): Likewise.
9087 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9089 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9092 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9095 * string/strtok.c: Fix typo in comment.
9098 * debug/segfault.c: Fix typos in comments.
9101 * stdio-common/tempnam.c: Fix comment, it is not checked that
9102 TMPDIR points to a writable directory.
9105 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9106 memory allocated for the name server address.
9109 * nscd/connections.c (handle_request): Using sendfile always
9110 requires that mmap is used for the database.
9111 Patch by Petr Baudis <pasky@suse.cz>.
9114 * nscd/hstcache.c (cache_addhst): When reloading an entry which
9115 suddenly has two or more addresses, ignore it and remove the old
9119 * resolv/res_hconf.c: Prepare for compiling outside libc.
9120 * nscd/res_hconf.c: New file.
9121 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
9123 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9124 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9126 * nscd/hstcache.c (cache_addhst): Minimal optimization.
9129 * debug/pcprofiledump.c: Turn on internationalization by calling
9130 setlocale. Patch mostly by Benno Schulenberg.
9133 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9135 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9136 * iconvdata/bug-iconv5.c: New file.
9138 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
9141 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9142 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9143 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9144 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9145 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9146 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9147 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9148 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9150 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9153 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9154 lookup loop. Suggested by John Reiser.
9156 2007-08-21 Jakub Jelinek <jakub@redhat.com>
9158 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9160 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9162 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9163 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9164 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9165 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9166 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9168 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9170 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9172 * po/nl.po: Update from translation team.
9174 2007-08-16 Andreas Jaeger <aj@suse.de>
9176 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9177 Reported by Peter Festner <peter.festner@ewetel.net>.
9179 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9181 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9183 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9185 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9186 to check for undefined symbols.
9188 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9189 If the syscall fails, set errno to the actual returned error number
9191 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9192 arguments are incorrect, set errno to EINVAL, if the syscall
9193 fails, set errno to the actual returned error number.
9195 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9196 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9198 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9199 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9201 (ASI_PNF, ASI_BLK_P): Don't define.
9202 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9203 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9205 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9206 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9209 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9211 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9212 FE_UNDERFLOW on Niagara CPUs.
9214 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9217 2007-08-14 Jakub Jelinek <jakub@redhat.com>
9219 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9220 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9221 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9222 flush should be used or not inside of the function.
9223 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9225 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9226 __thread_start): Use HIDDEN_JUMPTARGET.
9227 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9228 __thread_start): Likewise.
9229 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9231 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9232 Add libc_hidden_proto.
9233 (STRTOF): Add libc_hidden_proto.
9234 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9235 (strtold_l, wcstold_l): Use them as second argument for
9238 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9240 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
9242 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9244 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
9246 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9248 * po/bg.po: New file. From the translation team.
9250 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9252 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9253 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9254 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9255 when each feature was introduced.
9257 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9258 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9259 (CHECK_HASH): New macro.
9260 (PREPARE_VERSION): Use it.
9262 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9263 prototype if not __ASSUME_PSELECT.
9264 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9265 prototype if not __ASSUME_PPOLL.
9267 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9269 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9270 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9273 2007-08-13 Ulrich Drepper <drepper@redhat.com>
9275 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9276 (_libc_vdso_platform_setup): If vDSO is not available point
9277 __vdso_gettimeofday to the vsyscall.
9278 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9279 __vdso_gettimeofday instead of vsyscall.
9281 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9283 * nscd/servicescache.c: Include kernel-features.h.
9284 * nscd/gai.c: Likewise.
9285 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9286 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9287 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9288 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9289 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9290 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9291 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9292 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9293 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9295 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9297 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9298 and _dl_get_origin defines anymore.
9300 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9301 Build fix for systems which might lack POSIX timer support.
9303 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9304 (_libc_vdso_platform_setup): Mangle function pointers before storing
9306 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9307 Demangle vdso pointer before use.
9308 (INTERNAL_VSYSCALL): Likewise.
9310 * elf/cache.c (primes): Mark as const.
9311 Noted by Roland McGrath.
9313 2007-08-01 Andreas Jaeger <aj@suse.de>
9314 Jakub Jelinek <jakub@redhat.com>
9316 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9317 (options): Add option.
9318 (parse_opt): Handle option.
9319 (manual_link): Adjust process_file caller. Call implicit_soname.
9320 (search_dir): Formatting. Use and populate auxiliary cache.
9321 (main): Load and save auxiliary cache.
9322 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9323 stat64 from fstat64 to caller.
9324 (implicit_soname): New function.
9325 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9326 leave *soname as NULL.
9327 * elf/cache.c: Include libgen.h.
9328 (print_entry, print_cache, compare, save_cache, add_to_cache):
9329 Formatting and cleanups.
9330 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9331 aux_cache_file): New structures.
9332 (AUX_CACHEMAGIC): Define.
9333 (primes): New array.
9334 (aux_hash_size, aux_hash): New variables.
9335 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9336 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9337 load_aux_cache, save_aux_cache): New functions.
9338 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9339 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9340 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9341 (process_file): Adjust prototype.
9343 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9345 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9348 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9350 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9351 r_found_version structure as second parameter.
9352 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9353 (_dl_vdso_vsym): Change type of second parameter accordingly.
9354 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9355 (_libc_vdso_platform_setup): Adjust.
9356 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9357 (_libc_vdso_platform_setup): Likewise.
9359 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9360 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9361 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9362 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9363 * csu/libc-start.c: Pretty printing.
9364 Use VDSO_SETUP if defined.
9365 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9366 and let generic code call into _libc_vdso_platform_setup.
9367 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9368 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9369 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9370 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9371 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9373 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9374 (sysdep_rountines): Add dl-vdso.
9376 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9379 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9380 attribute_hidden to __vdso_gettimeofday prototype.
9382 2007-08-12 Roland McGrath <roland@redhat.com>
9384 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9385 From: Karl Berry <karl@freefriends.org>.
9387 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9389 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9390 an atime update for the files we read.
9392 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9394 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9396 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9399 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9400 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9401 * misc/mkostemp.c: New file.
9402 * misc/mkostemp64.c: New file.
9403 * stdlib/stdlib.h: Declare the new functions.
9404 * sysdeps/posix/tempname.c: Add new parameter which is added to
9405 the flags for open. Remove __GT_BIGFILE handling.
9406 * stdio-common/tempname.c: Likewise.
9407 * include/stdio.h: Adjust __gen_tempname prototype.
9408 Renumber __GT_* constants.
9409 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9410 * misc/mkdtemp.c: Likewise.
9411 * misc/mkstemp.c: Likewise.
9412 * misc/mkstemp64.c: Likewise.
9413 * misc/mktemp.c: Likewise.
9414 * stdio-common/tempnam.c: Likewise.
9415 * stdio-common/tmpfile.c: Likewise.
9416 * stdio-common/tmpfile64.c: Likewise.
9417 * stdio-common/tmpnam.c: Likewise.
9418 * stdio-common/tmpnam_r.c: Likewise.
9420 2007-08-10 Roland McGrath <roland@frob.com>
9422 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9424 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9425 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9427 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9429 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9431 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9432 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9433 * nss/nss_files/files-have_o_cloexec.c: New file.
9435 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9438 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9440 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9441 ___new_wcstold_l): New weak aliases.
9442 (strtold_l, wcstold_l): Use them as second argument for
9445 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9447 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9448 register in test for error.
9450 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9451 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9453 * po/sv.po: Update from translation team.
9455 2007-08-06 Roland McGrath <roland@redhat.com>
9457 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9458 Remove __strto*_l inlines.
9459 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9460 * stdlib/strtod.c: Add libc_hidden_def.
9461 * stdlib/strtod_l.c: Likewise.
9462 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9463 for __new_strtold and __new_wcstold.
9464 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9466 * stdlib/strtol.c: Add libc_hidden_def.
9467 * stdlib/strtol_l.c: Likewise.
9468 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9471 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9473 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9474 * scripts/data/localplt-generic.data: ... here.
9475 * elf/Makefile (check-data): Get generic file if no other.
9476 ($(objpfx)check-localplt.out): Make target unconditional.
9478 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9481 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9483 * po/zh_CN.po: Updated translation from translation team.
9485 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9488 Don't use CGOTSETUP and CGOTRESTORE macros.
9490 2007-08-04 Roland McGrath <roland@redhat.com>
9492 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9494 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9496 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9497 __extension__ around the whole statement expression.
9499 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9501 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9502 elements during initialization.
9504 * po/pl.po: Updated translation from translation team.
9505 * po/tr.po: Likewise.
9506 * po/nl.po: Likewise.
9508 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9510 * rt/aio.h: Add __nonnull attributes.
9512 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9514 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9515 * stdlib/Makefile (tests): Add tst-strtod5.
9516 (tst-strtod5-ENV): New.
9517 * stdlib/tst-strtod5.c: New file.
9519 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9521 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9524 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9527 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9529 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9532 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9534 * io/Makefile (aux): Add have_o_cloexec.
9535 * include/fcntl.h: Declare __have_o_cloexec.
9536 * io/have_o_cloexec.c: New file.
9537 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9538 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9539 fcntl call if not necessary.
9540 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9543 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9544 Avoid memset, add explicit initialization.
9545 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9546 to the end and change into zero-sized array.
9547 Move lock member to fill a hole on 64-bit platforms.
9549 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9551 * include/stdlib.h: Add __strto*_internal prototypes here.
9552 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9554 * include/wchar.h: Add __wcsto*_internal prototypes.
9555 * sysdeps/generic/inttypes.h: No need to protect the declaration
9556 of the __strto*_internal and __wcsto*_internal members here.
9558 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9560 2007-08-02 Roland McGrath <roland@redhat.com>
9562 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9563 $(inst_bindir)/getconf if possible.
9565 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9566 (generated): Add it.
9567 ($(inst_libexecdir)/getconf): Use it.
9569 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9571 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9572 /proc is faster and sufficient. /sys is still needed for
9575 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9577 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9578 syscall as __fallocate64.
9579 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9580 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9582 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9584 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9587 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9588 if off_t is different rank from size_t.
9590 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9591 uw_frame_state_for): Avoid type punning warnings.
9592 * sysdeps/generic/unwind-dw2-fde-glibc.c
9593 (_Unwind_IteratePhdrCallback): Likewise.
9594 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9595 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9596 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9599 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9601 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9602 total processors using sysfs.
9603 (__get_nprocs): Use sysfs to determine which processors are online.
9605 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9607 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9608 syscall arguments count.
9610 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9612 2007-07-30 Roland McGrath <roland@redhat.com>
9614 * manual/libc.texinfo: Update copyrights, formatting magic, and
9615 @dircategory. From Karl Berry <karl@freefriends.org>.
9617 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9620 * io/Makefile (headers): Add bits/fcntl2.h.
9622 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9624 (__CPU_EQUAL_S): Likewise.
9626 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9627 (tests): Add tst-cpuset.
9628 * posix/sched_cpualloc.c: New file.
9629 * posix/sched_cpufree.c: New file.
9630 * posix/tst-cpuset.c: New file.
9631 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9633 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9634 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9635 macros. Define CPU_*_S macros.
9637 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9639 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9643 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9644 #.0g and value rounded to 1.0.
9645 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9647 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9649 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9650 for int_frac_digits and frac_digits.
9652 * login/logout.c (logout): Avoid aliasing violation.
9653 * login/logwtmp.c (logwtmp): Likewise.
9655 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9657 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9659 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9661 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9663 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9666 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9668 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9670 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9671 char * to avoid warning.
9672 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9674 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9676 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9677 allocate_arrays): Cast second argument to charmap_find_symbol
9678 to char * to avoid warnings.
9680 * locale/programs/repertoire.c (repertoire_new_char): Change
9681 from_nr, to_nr and cnt to unsigned long, adjust printf format
9684 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9685 Cast second argument to new_element to char * to avoid warnings.
9687 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9689 * intl/gettextP.h (struct loaded_domain): Change plural to const
9690 struct expression *.
9691 * intl/plural-eval.c (plural_eval): Change first argument to
9692 const struct expression *.
9693 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9694 argument to const struct expression **.
9695 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9697 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9698 in call to __gettext_free_exp.
9700 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9701 unitialized wstring/wpattern var warnings.
9703 * posix/runtests.c (struct a_test): Make data field const char *.
9705 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9706 vars if not LDBL_MANT_DIG >= 106.
9708 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9710 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9711 __find_specmb to avoid warning.
9713 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9715 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9718 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9721 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9722 tv var when it will be actually used.
9724 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9727 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9728 char array resp. pointer.
9729 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9731 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9732 to const unsigned char **.
9733 (ucs4_to_cns11643): Change second argument to unsigned char *.
9734 * iconvdata/euc-tw.c (BODY): Change endp type to
9735 const unsigned char *.
9736 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9738 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9739 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9740 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9741 types to unsigned char pointers/arrays instead of char.
9742 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9744 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9745 * iconvdata/jis0212.h: Include assert.h.
9746 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9747 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9748 of trying to handle that.
9749 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9751 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9752 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9753 two dimensional const unsigned char arrays.
9754 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9755 Initialize endp to inptr to shut up a warning.
9757 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9760 * time/strptime_l.c (__strptime_internal): Silently ignore
9761 strftime modifiers and field width in recursive calls.
9763 * include/time.h (enum ptime_locale_status): Remove.
9764 (__strptime_internal): Remove decided and era_cnt arguments,
9765 add statep argument.
9766 * time/strptime_l.c (__strptime_internal): Remove decided
9767 and era_cnt arguments, add statep argument. Don't recompute
9768 any fields in recursive calls, only update caller's tm
9769 and state, if recursive call fails, don't change tm nor
9771 (get_alt_number): Adjust.
9772 (recursive): Adjust caller.
9773 (strptime): Likewise.
9774 * time/strptime.c (strptime): Likewise.
9776 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9778 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9779 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9780 if from and to charsets are the same.
9781 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9782 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9783 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9785 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9787 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9788 Don't define wint_t when __need_mbstate_t unless it
9790 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9791 in the typedef if possible.
9792 * wctype/wctype.h (wint_t): Define by including
9793 wchar.h with __need_wint_t instead of including stddef.h
9794 with __need_wint_t and as fallback definining it ourselves.
9795 * iconv/gconv.h (__need_wint_t): Define before including
9797 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9798 or _GLIBCPP_USE_WCHAR_T.
9799 (__need_wchar_t): Don't define
9800 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9801 (__need_wint_t): Don't define before including stddef.h,
9802 define before including wchar.h only if _LIBC or
9803 _GLIBCPP_USE_WCHAR_T.
9804 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9805 * sysdeps/mach/hurd/_G_config.h: Likewise.
9806 * sysdeps/generic/_G_config.h: Likewise.
9807 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9808 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9809 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9810 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9812 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9814 * sysdeps/posix/posix_fallocate64.c: Undefine
9815 __posix_fallocate64_l64 before alias handling.
9816 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9817 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9818 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9819 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9821 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9823 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9825 * locale/programs/ld-collate.c (atwc): New variable.
9826 (add_to_tablewc): New toplevel function, moved from collate_output.
9827 (collate_output): Remove add_to_tablewc nested function.
9829 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9830 (name_insert): New function.
9831 (write_output): Remove hash_table and hash_size vars and name_insert
9834 2007-07-24 Roland McGrath <roland@redhat.com>
9836 * Makerules (install-others-programs-nosubdir): New target.
9837 (install-no-libc.a-nosubdir): Depend on it.
9839 * iconv/Makefile (install-others-programs): Set this instead of
9841 * login/Makefile (install-others-programs): Likewise.
9842 * posix/Makefile (install-others-programs): Likewise.
9844 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9847 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9849 * io/Makefile (tests): Add tst-posix_fallocate.
9850 * io/tst-posix_fallocate.c: New file.
9852 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9855 2007-07-22 Roland McGrath <roland@frob.com>
9857 * hurd/getdport.c: Add missing copyright year update.
9859 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9860 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9862 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9864 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9866 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9867 O_CLOEXEC is needed.
9868 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9869 Avoid additional fcntl to set O_CLOEXEC if not needed.
9870 * nis/nss_compat/compat-initgroups.c: Likewise.
9871 * nis/nss_compat/compat-pwd.c: Likewise.
9872 * nis/nss_compat/compat-spwd.c: Likewise.
9874 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9877 * manual/errno.texi: Change ECANCELED value to 119.
9880 * mach/lock-intern.h: Include <sys/cdefs.h>.
9883 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9887 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9890 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9892 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9894 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9896 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9898 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9900 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9901 descriptor received from nscd.
9903 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9905 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9906 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9907 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9908 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9909 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9910 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9912 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9915 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9918 * login/forkpty.c (forkpty): Close master and slave fds on
9919 fork failure. Patch by
9920 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9922 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9924 * include/features.h (__USE_ISOC95): New define.
9925 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9926 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9927 for -std=iso9899:199409.
9928 * CONFORMANCE: Remove comments about unsupported AMD1.
9930 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9932 * sysdeps/ia64/sched_cpucount.c: New file.
9933 * sysdeps/powerpc/sched_cpucount.c: New file.
9935 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9936 __BEGIN_DECLS/__END_DECLS around the prototype.
9937 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9938 pointer to const cpu_set_t.
9940 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9941 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9942 __need_size_t and include stddef.h.
9943 * sysvipc/sys/msg.h: Likewise.
9944 * posix/sched.h: Likewise.
9945 * hurd/hurd/signal.h (__need_size_t): Define.
9947 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9948 neither does signal.h in pedantic ISO C namespaces. stdio.h
9949 no longer defines wint_t or wchar_t.
9951 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9952 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9953 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9954 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9955 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9956 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9957 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9958 * debug/printf_chk.c (__printf_chk): Likewise.
9959 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9960 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9962 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9965 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9966 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9968 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9971 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9972 * malloc/malloc.h (realloc): Likewise.
9974 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9975 if one of proc_file_chain streams has that fileno.
9976 * stdio-common/Makefile (tests): Add tst-popen2.
9977 * stdio-common/tst-popen2.c: New test.
9979 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9981 * elf/ldconfig.c: Allow GPLv2 or any later version.
9982 * elf/readlib.c: Likewise.
9983 * elf/chroot_canon.c: Likewise.
9984 * elf/cache.c: Likewise.
9985 * nscd/mem.c: Likewise.
9986 * nscd/getpwuid_r.c: Likewise.
9987 * nscd/grpcache.c: Likewise.
9988 * nscd/aicache.c: Likewise.
9989 * nscd/getsrvbynm_r.c: Likewise.
9990 * nscd/nscd.c: Likewise.
9991 * nscd/servicescache.c: Likewise.
9992 * nscd/getsrvbypt_r.c: Likewise.
9993 * nscd/initgrcache.c: Likewise.
9994 * nscd/gethstbyad_r.c: Likewise.
9995 * nscd/gethstbynm2_r.c: Likewise.
9996 * nscd/getgrnam_r.c: Likewise.
9997 * nscd/nscd_setup_thread.c: Likewise.
9998 * nscd/getpwnam_r.c: Likewise.
9999 * nscd/gai.c: Likewise.
10000 * nscd/connections.c: Likewise.
10001 * nscd/dbg_log.c: Likewise.
10002 * nscd/cache.c: Likewise.
10003 * nscd/hstcache.c: Likewise.
10004 * nscd/nscd_conf.c: Likewise.
10005 * nscd/getgrgid_r.c: Likewise.
10006 * nscd/pwdcache.c: Likewise.
10007 * catgets/gencat.c: Likewise.
10008 * locale/programs/linereader.h: Likewise.
10009 * locale/programs/locarchive.c: Likewise.
10010 * locale/programs/ld-paper.c: Likewise.
10011 * locale/programs/locfile-kw.h: Likewise.
10012 * locale/programs/ld-address.c: Likewise.
10013 * locale/programs/xmalloc.c: Likewise.
10014 * locale/programs/ld-time.c: Likewise.
10015 * locale/programs/localedef.c: Likewise.
10016 * locale/programs/simple-hash.c: Likewise.
10017 * locale/programs/xstrdup.c: Likewise.
10018 * locale/programs/ld-numeric.c: Likewise.
10019 * locale/programs/locfile-kw.gperf: Likewise.
10020 * locale/programs/ld-collate.c: Likewise.
10021 * locale/programs/charmap-kw.gperf: Likewise.
10022 * locale/programs/charmap.h: Likewise.
10023 * locale/programs/charmap-kw.h: Likewise.
10024 * locale/programs/config.h: Likewise.
10025 * locale/programs/locfile.c: Likewise.
10026 * locale/programs/ld-ctype.c: Likewise.
10027 * locale/programs/charmap.c: Likewise.
10028 * locale/programs/ld-messages.c: Likewise.
10029 * locale/programs/repertoire.h: Likewise.
10030 * locale/programs/locale.c: Likewise.
10031 * locale/programs/ld-name.c: Likewise.
10032 * locale/programs/linereader.c: Likewise.
10033 * locale/programs/locfile.h: Likewise.
10034 * locale/programs/3level.h: Likewise.
10035 * locale/programs/ld-monetary.c: Likewise.
10036 * locale/programs/ld-measurement.c: Likewise.
10037 * locale/programs/charmap-dir.c: Likewise.
10038 * locale/programs/ld-identification.c: Likewise.
10039 * locale/programs/localedef.h: Likewise.
10040 * locale/programs/charmap-dir.h: Likewise.
10041 * locale/programs/repertoire.c: Likewise.
10042 * locale/programs/simple-hash.h: Likewise.
10043 * locale/programs/ld-telephone.c: Likewise.
10044 * locale/programs/locale-spec.c: Likewise.
10045 * locale/programs/locfile-token.h: Likewise.
10046 * posix/getconf.c: Likewise.
10047 * iconv/dummy-repertoire.c: Likewise.
10048 * iconv/iconv_charmap.c: Likewise.
10049 * iconv/iconvconfig.c: Likewise.
10050 * iconv/iconv_prog.c: Likewise.
10051 * malloc/memusagestat.c: Likewise.
10052 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10054 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10056 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10057 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10058 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10059 check for the first argument.
10061 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10064 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10065 (__tgmath_real_type): Fix if expr is const int or other const
10066 qualified integral type.
10067 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10068 expressions and handle const qualified arguments.
10069 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10070 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10071 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10072 statement expressions.
10073 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10074 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10075 (__TGMATH_UNARY_IMAG): Define.
10076 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10077 * math/Makefile (tests): Add test-tgmath2.
10078 (CFLAGS-test-tgmath2.c): Add.
10079 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10080 count_cfloat, count_cldouble): New variables.
10082 (main): Check number of complex calls as well.
10083 (F(compile_test)): Add complex tests and tests with const qualified
10085 (y, z, ccount): Define.
10086 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10087 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10088 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10089 F(cproj)): New functions.
10090 * math/test-tgmath2.c: New test.
10092 2007-07-11 Jakub Jelinek <jakub@redhat.com>
10095 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10096 RPATH etc. as "/" rather than "", don't segfault on empty paths,
10097 instead output ".".
10098 * dlfcn/Makefile (distribute): Add glreflib3.c.
10099 (module-names): Add glreflib3.
10100 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10102 (LDFLAGS_glreflib3.so): New.
10103 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10105 * dlfcn/glreflib3.c: New file.
10107 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10108 returned -1, return NULL.
10109 * intl/explodename.c (_nl_explode_name): Return -1 if
10110 _nl_normalize_codeset failed.
10112 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
10114 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10115 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
10116 and avoid branch misspredicts for > 31 bytes memset case.
10117 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10118 Remove toc ref to __cache_line_size.
10120 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10121 to get ISA-V2.0 branch hints.
10122 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10123 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10124 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10125 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10126 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10127 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10128 Remove toc ref to __cache_line_size.
10130 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10131 Include math_ldbl_opt.h.
10133 2007-07-10 Ulrich Drepper <drepper@redhat.com>
10136 * time/strptime_l.c (__strptime_internal): Implement greedy
10137 matching of weekday and month names.
10139 2007-07-09 Roland McGrath <roland@redhat.com>
10141 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10142 (ELF_NOTE_ABI): Use it.
10143 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10145 2007-07-09 Ulrich Drepper <drepper@redhat.com>
10147 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10148 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10150 2007-07-07 Ulrich Drepper <drepper@redhat.com>
10153 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10154 in loop to look for conversion specifier to avoid testing of
10156 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10157 * stdio-common/bug18.c: New file.
10158 * stdio-common/bug18a.c: New file.
10159 * stdio-common/bug19.c: New file.
10160 * stdio-common/bug19a.c: New file.
10162 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10164 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10165 running awk script.
10167 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10169 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10170 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10171 Return NULL if mmap failed instead of asserting it does not.
10172 (calloc): Check for integer overflow.
10174 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10175 than LONG_MAX / 10.
10177 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10180 * nis/nss-default.c: Include errno.h.
10181 (init): Preserve errno.
10183 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10185 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10187 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10189 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10191 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10193 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10195 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10197 * sysdeps/s390/dl-procinfo.c: New file.
10198 * sysdeps/s390/dl-procinfo.h: New file.
10199 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10201 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10203 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10204 in PT_NOTE segments with multiple notes.
10205 * elf/readelflib.c (process_elf_file): Likewise.
10207 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10209 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10212 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10214 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10216 2007-06-13 Jakub Jelinek <jakub@redhat.com>
10218 * include/link.h: Don't include rtld-lowlevel.h.
10219 (struct link_map): Remove l_scope_lock.
10220 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10221 (_dl_scope_free_list): New field (variable) in _rtld_global.
10222 (DL_LOOKUP_SCOPE_LOCK): Remove.
10223 (_dl_scope_free): New prototype.
10224 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10225 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10226 (_dl_profile_fixup): Likewise.
10227 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
10228 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10229 THREAD_GSCOPE_RESET_FLAG around it.
10230 * elf/dl-close.c (_dl_close_worker): Don't use
10231 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
10232 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
10233 scopes were queued or if l_scope_mem has been abandoned.
10234 * elf/dl-open.c (_dl_scope_free): New function.
10235 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
10236 * elf/dl-support.c (_dl_scope_free_list): New variable.
10237 * elf/dl-lookup.c (add_dependency): Remove flags argument.
10238 Remove DL_LOOKUP_SCOPE_LOCK handling.
10239 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
10241 * elf/dl-object.c (_dl_new_object): Don't use
10242 __rtld_mrlock_initialize.
10244 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10246 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10248 (rtld_global_ro): Likewise.
10250 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10252 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10253 Move PT_LOAD checking to...
10254 (_dl_addr_inside_object): ... here, new function.
10255 * elf/dl-sym.c (do_sym): If not l_contiguous,
10256 call _dl_addr_inside_object.
10257 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10258 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10259 * elf/dl-open.c (dl_open_worker): Likewise.
10260 (_dl_addr_inside_object): New function if IS_IN_rtld.
10261 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10262 holes are present or are PROT_NONE protected.
10263 * include/link.h (struct link_map): Add l_contiguous field.
10264 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10266 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10267 Tomas Janousek <tjanouse@redhat.com>
10268 Ulrich Drepper <drepper@redhat.com>
10271 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
10272 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10274 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
10275 unused member a bitmap.
10276 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10277 servers are configured.
10279 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10281 * elf/rtld.c (dl_main): Don't call init_tls more than once.
10283 2007-06-17 Andreas Schwab <schwab@suse.de>
10285 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10287 2007-06-16 Andreas Jaeger <aj@suse.de>
10290 * sysdeps/unix/sysv/linux/sys/ptrace.h
10291 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10292 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10293 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10294 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10295 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10297 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10298 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10299 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10300 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10302 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10305 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10306 determining whether there are IPv4/IPv6 addresses, ignore loopback
10309 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10311 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10312 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10313 as the return type. Change type of "r" variable to CMPtype.
10314 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10315 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10316 * soft-fp/gedf2.c (__gedf2): Likewise.
10317 * soft-fp/gesf2.c (__gesf2): Likewise.
10318 * soft-fp/getf2.c (__getf2): Likewise.
10319 * soft-fp/ledf2.c (__ledf2): Likewise.
10320 * soft-fp/lesf2.c (__lesf2): Likewise.
10321 * soft-fp/letf2.c (__letf2): Likewise.
10322 * soft-fp/unorddf2 (__unorddf2): Likewise.
10323 * soft-fp/unordsf2 (__unordsf2): Likewise.
10324 * soft-fp/unordtf2 (__unordtf2): Likewise.
10326 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10328 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10329 make sure gcc doesn't mess around with this.
10331 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10333 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10335 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10337 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10338 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10339 at most once per _dl_close_worker.
10341 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10343 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10344 __sched_cpucount as const.
10345 * posix/sched_cpucount.c: Adjust.
10347 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10348 instruction for counting bits.
10349 * sysdeps/x86_64/sched_cpucount.c: New file.
10351 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10353 * configure.in: Avoid variable named BASH.
10354 * config.make.in: Likewise.
10355 Patch in part by Mike Frysinger.
10357 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10360 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10361 pseudo-zeros as zero.
10362 * sysdeps/x86_64/ldbl2mpn.c: New file.
10363 * sysdeps/ia64/ldbl2mpn.c: New file.
10365 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10367 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10368 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10369 Remove unreachable code at the end.
10371 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10373 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10374 ldbl-128ibm in comment.
10375 (fpclassifyl): Correct classification of denormals.
10376 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10377 return value for MIN denormal. Rewrite using long double math too
10378 correctly handle denormals and canonicalize the results.
10380 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10382 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10383 (__mpn_construct_long_double): Fix conversion where result ought
10384 to be smaller than __LDBL_MIN__, or the low double should be
10385 denormal. Fix decision where to negate low double - honor round
10387 * stdio-common/tst-sprintf2.c: Include string.h.
10388 (COMPARE_LDBL): Define.
10389 (TEST): Also test whether a string hexadecimal float representation
10390 can be parsed back to the number.
10391 (main): Add a couple of further tests.
10393 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10395 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10396 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10397 is non-zero, but smaller than 2 * __DBL_MIN__.
10398 * stdio-common/tst-sprintf2.c: New test.
10399 * stdio-common/Makefile (tests): Add tst-sprintf2.
10401 * math/test-misc.c (main): Don't run last batch of tests with
10402 IBM long double format.
10404 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10406 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10407 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10408 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10409 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10410 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10411 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10412 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10413 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10414 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10415 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10419 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10439 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10441 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10442 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10443 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10444 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10445 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10446 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10447 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10448 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10450 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10452 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10453 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10454 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10455 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10456 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10457 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10458 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10459 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10461 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10463 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10464 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10465 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10466 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10468 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10470 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10471 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10473 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10475 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10476 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10477 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10478 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10480 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10482 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10483 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10485 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10487 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10488 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10490 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10491 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10492 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10493 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10495 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10497 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10498 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10499 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10500 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10502 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10504 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10505 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10506 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10507 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10508 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10509 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10511 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10513 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10514 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10515 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10516 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10518 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10520 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10521 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10522 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10523 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10524 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10525 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10526 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10527 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10528 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10529 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10530 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10531 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10532 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10533 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10534 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10535 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10537 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10539 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10540 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10542 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10544 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10545 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10547 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10549 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10550 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10551 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10552 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10553 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10554 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10555 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10556 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10557 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10558 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10560 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10562 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10564 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10566 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10567 branch miss-predicts. Ensure that cache line crossing does not impact
10570 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10572 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10573 "../../powerpc32/power4/memcopy.h".
10574 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10575 "../../powerpc32/power4/wordcopy.c".
10577 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10579 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10580 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10581 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10582 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10583 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10584 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10586 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10588 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10590 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10592 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10593 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10594 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10595 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10596 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10597 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10598 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10599 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10601 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10603 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10605 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10607 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10608 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10609 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10610 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10611 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10612 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10613 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10615 2007-05-29 Roland McGrath <roland@redhat.com>
10617 * po/Makefile (po-sed-cmd): New variable.
10618 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10620 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10622 * crypt/md5-crypt.c: Fix comment.
10624 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10625 of crashing. When this is the case or if the reply is malformed,
10626 don't try to close the new file descriptor since it does not
10628 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10630 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10632 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10633 if __NR_utimensat is not defined.
10635 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10637 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10639 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10641 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10642 (open): Fix comment typos. Don't call __open_2 if flags
10643 is a compile time constant without O_CREAT.
10644 (__open64_2): Add nonnull attribute.
10645 (open64): Fix comment typos. Don't call __open64_2 if flags
10646 is a compile time constant without O_CREAT.
10647 (__openat_2): Add nonnull attribute, fix nonnull attribute
10649 (openat): Fix comment typos. Don't call __openat_2 if flags
10650 is a compile time constant without O_CREAT.
10651 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10653 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10654 is a compile time constant without O_CREAT.
10656 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10658 * Makerules (sysd-rules): Define PTW for ptw-* files.
10659 * Versions: Define GLIBC_2.7 for libc.
10660 * include/stdio.h: Declare __fortify_fail.
10661 * debug/fortify_fail.c: New file.
10662 * debug/Makefile (routines): Add fortify_fail.
10663 * debug/chk_fail.c: Use __fortify_fail.
10664 * debug/stack_chk_fail.c: Likewise.
10665 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10666 __openat64_2 for GLIBC_2.7.
10667 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10668 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10669 and fails if necessary.
10670 * io/open64.c: Likewise.
10671 * io/openat.c: Likewise.
10672 * io/openat64.c: Likewise.
10673 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10674 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10675 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10676 * io/bits/fcntl2.h: New file.
10677 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10679 * include/bits/fcntl2.h: New file.
10680 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10682 * sysdeps/unix/sysv/linux/open_2.c: New file.
10684 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10686 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10687 as second parameter to handle_intel.
10689 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10692 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10694 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10695 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10697 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10698 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10699 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10701 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10703 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10706 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10707 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10708 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10710 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10713 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10714 reinitialize workend at the start of each do_positional format spec
10715 loop, free workstart before do_positional loops.
10716 (printf_unknown): Fix size of work_buffer.
10717 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10719 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10720 (public_sET_STATe): If ms->version < 3, put all chunks into
10721 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10724 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10725 * malloc/hooks.c: Likewise.
10726 * malloc/arena.c: Likewise.
10727 * malloc/malloc.c (do_check_malloc_state): Don't assert
10728 n_mmaps is not greater than n_mmaps_max. This removes the need
10729 for the previous change.
10731 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10734 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10736 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10737 Define for kernel >= 2.6.22.
10739 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10741 * elf/dl-close.c (_dl_close_worker): When removing object from
10742 global scope, wait for all lookups to finish afterwards.
10743 * elf/dl-open.c (add_to_global): When global scope array must
10744 grow, allocate a new one and free old array only after all
10746 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10747 (_dl_lookup_symbol_x): Likewise.
10748 * elf/dl-support.c: Define _dl_wait_lookup_done.
10749 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10750 _dl_wait_lookup_done.
10752 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10753 not overlapping with arena.
10755 * malloc/mcheck.c (reallochook): If size==0, free the block.
10757 * rt/tst-shm.c: Use fstat64 instead of fstat.
10759 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10760 __NR_sync_file_range is not defined.
10762 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10764 Dummy files to prevent stub versions from being used.
10765 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10766 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10767 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10768 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10770 * version.h (VERSION): Set to 2.6.90.
10772 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10774 * version.h (VERSION): Define to 2.6.
10775 * include/features.h (__GLIBC_MINOR__): Define to 6.
10777 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10779 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10782 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10784 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10785 number of mmaps. n_mmaps_max is the target.
10786 * malloc/hooks.c: Likewise.
10787 * malloc/arena.c: Likewise.
10789 2007-05-12 Andreas Jaeger <aj@suse.de>
10791 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10794 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10796 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10797 adding new variables.
10799 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10800 optimize. Completely extend global scope array before making the
10801 new entries visible.
10803 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10805 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10806 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10809 * include/link.h: Move l_version and l_nversion members around to
10812 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10814 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10815 (__sched_setaffinity_new): If syscall was successful and
10816 RESET_VGETCPU_CACHE is defined, use it before returning.
10817 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10819 * io/sys/stat.h: Make sure struct timespec is defined for
10822 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10824 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10825 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10826 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10827 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10828 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10829 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10830 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10831 * io/sys/stat.h: Declare utimensat, futimens.
10832 * io/utimensat.c: New file.
10833 * io/futimens.c: New file.
10834 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10835 * sysdeps/unix/sysv/linux/futimens.c: New file.
10836 * io/Makefile (routines): Add utimensat, futimens.
10837 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10838 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10839 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10842 * include/sys/cdefs.h: Redefine __nonnull so that test for
10843 incorrect parameters in the libc code itself are not omitted.
10845 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10847 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10848 exception in addition to inexact when asked to raise only FE_INEXACT.
10851 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10854 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10857 * string/strfry.c (strfry): Make result more random.
10859 2007-05-07 Richard Henderson <rth@redhat.com>
10861 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10862 if __NO_LONG_DOUBLE_MATH.
10863 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10864 available in the compiler, add .arch directive to the assembly.
10866 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10868 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10869 compat_symbol to GLIBC_2_1.
10870 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10871 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10872 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10873 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10874 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10875 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10876 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10878 (__isnanl): New compat_symbol.
10880 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10881 Jakub Jelinek <jakub@redhat.com>
10883 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10884 (new_heap): Initialize mprotect_size.
10885 (grow_heap): When growing, only mprotect from mprotect_size till
10886 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10887 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10889 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10890 Peter Bergner <bergner@us.ibm.com>
10892 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10893 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10894 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10895 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10896 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10897 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10898 Call __fe_mask_env() if all FP exceptions disabled.
10899 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10900 from old FPSCR to new fenv to propagate DFP rounding modes.
10901 Call __fe_mask_env() if FP exceptions previously enabled.
10902 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10903 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10904 transitioning from all exceptions disabled to any exception enabled
10906 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10907 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10908 when transitioning from all exceptions disabled to any exception
10909 enabled or visa versa.
10910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10917 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10920 * posix/unistd.h: Remove __THROW from fdatasync.
10922 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10925 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10927 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10929 * stdio-common/vfprintf.c (process_string_arg): Optimize
10930 ridiculous precision in wide char code printing multi-byte string.
10931 Reported by Jim Meyering <jim@meyering.net>.
10934 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10935 boundaries to work around systems with overlapping binary loading.
10936 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10938 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10940 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10941 __mbsnrtowcs after last change.
10943 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10944 (get_ident): Likewise.
10946 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10948 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10949 with setting the sticky bit.
10950 * math/test-misc.c (main): Add more truncation tests.
10952 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10954 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10955 double in the function declaration.
10956 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10957 double in the function declaration.
10958 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10959 float in the function declaration.
10960 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10961 float in the function declaration.
10963 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10964 denormal operands. Do not generate FP_EX_DENORM exception.
10965 (FP_UNPACK_RAW_EP): Ditto.
10966 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10967 undefined _FP_UNPACK_RAW_E.
10968 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10969 undefined _FP_UNPACK_RAW_EP.
10970 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10971 undefined _FP_PACK_RAW_E.
10972 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10973 undefined _FP_PACK_RAW_EP.
10975 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10977 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10980 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10981 Jakub Jelinek <jakub@redhat.com>
10983 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10984 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10986 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10988 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10990 * math/test-misc.c (main): Add tests for rounding long double
10991 values close to smallest double denormalized value to double.
10993 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10995 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10996 condition for truncating to 0. Set sticky bit for such
10999 2007-05-02 Jakub Jelinek <jakub@redhat.com>
11001 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11002 fixed length array for ignore.
11004 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11007 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11008 stack for large precisions.
11009 * stdio-common/test-vfprintf.c (main): Add test for large
11012 2007-04-30 Jakub Jelinek <jakub@redhat.com>
11014 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11016 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11019 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11020 account in the size check.
11021 * resolv/tst-inet_ntop.c: New test.
11022 * resolv/Makefile (tests): Add tst-inet_ntop.
11024 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11025 Jakub Jelinek <jakub@redhat.com>
11028 * malloc/malloc.c: Keep separate list for first blocks on the bin
11029 lists with a given size. This helps skipping over list elements
11030 we know won't fit in two places.
11031 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11033 2007-04-28 Ulrich Drepper <drepper@redhat.com>
11036 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11037 label to Teredo tunnel addresses 2001://32.
11039 2007-04-27 Ulrich Drepper <drepper@redhat.com>
11041 * locale/programs/ld-collate.c (collate_read): Allow order_start
11044 * locale/programs/ld-collate.c (collate_read): Fix printing of
11048 * locale/C-translit.h.in: Add entry for U2044.
11051 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11052 hexa-decimal floats without exponent.
11053 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11055 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11057 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11058 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11059 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11060 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11062 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11065 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11067 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11068 of 0 after the out_fail label.
11070 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11073 * iconv/gconv_charset.h (strip): Allow ':'.
11074 * iconv/iconv_open.c (iconv_open): Adjust comment.
11076 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11078 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11081 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11084 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11085 alignment of buffer and tmp_buffer.
11086 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11087 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11088 alignment of buffer.
11089 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
11090 bigger than INT_MAX.
11091 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
11092 h_errnop arguments. Fail if buflen is too small.
11093 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11095 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11098 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11099 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
11101 2007-04-22 Roland McGrath <roland@redhat.com>
11103 * elf/elf.h (NT_PRXFPREG): New macro.
11105 2007-04-19 Andreas Jaeger <aj@suse.de>
11108 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11109 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11112 2007-04-19 Ulrich Drepper <drepper@redhat.com>
11114 * include/sys/mman.h: Mark madvise hidden.
11115 * misc/madvise.c: Add libc_hidden_def.
11117 2007-04-06 Jakub Jelinek <jakub@redhat.com>
11119 * nis/nis_domain_of.c (__nis_domain_of): New function.
11120 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11121 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11122 * nis/nis_call.c (rec_dirsearch): Likewise.
11123 (first_shoot): Likewise. Remove search_parent_first argument.
11124 (struct nis_server_cache): Rename search_parent_first field
11126 (nis_server_cache_search, nis_server_cache_add): Rename
11127 search_parent_first argument to search_parent.
11128 (__nisfind_server): Likewise. If search_parent, call
11131 2007-04-18 Ulrich Drepper <drepper@redhat.com>
11133 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11135 2007-04-17 Ulrich Drepper <drepper@redhat.com>
11138 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11140 2007-04-16 Ulrich Drepper <drepper@redhat.com>
11143 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11145 2007-04-15 Jakub Jelinek <jakub@redhat.com>
11147 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11148 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11149 current number of locales in SUPPORTED.
11150 (create_archive): Initialize serial.
11151 (enlarge_archive): Preserve aliases rather than duplicating
11154 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11156 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11157 after _IO_un_link, not before it.
11159 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11160 special case handling when wcp == wstartp + 1. Fix a comment typo.
11161 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11163 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11165 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11166 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11167 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11169 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11170 _IO_file_xsgetn_maybe_mmap): Likewise.
11171 * libio/oldfileops.c (old_do_write): Likewise.
11172 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11173 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11174 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11175 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11176 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11177 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11178 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11179 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11180 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11181 _IO_file_underflow, _IO_file_underflow_mmap,
11182 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11183 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11184 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11185 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11186 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11187 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11188 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11189 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11190 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11191 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11192 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11193 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11194 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11195 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11196 _IO_adjust_column_internal, _IO_default_uflow_internal,
11197 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11198 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11199 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11200 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11201 _IO_file_close_it_internal, _IO_file_underflow_internal,
11202 _IO_file_overflow_internal, _IO_file_attach_internal,
11203 _IO_file_fopen_internal, _IO_file_sync_internal,
11204 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11205 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11206 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11207 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11208 _IO_seekpos_unlocked): Likewise.
11209 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11210 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11212 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11214 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11215 argument in xmalloc size computation.
11217 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11219 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11220 math_opt_barrier and math_force_eval macros.
11222 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11225 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11226 * sysdeps/i386/fpu/math_private.h: New file.
11227 * sysdeps/x86_64/fpu/math_private.h: New file.
11228 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11229 math_force_eval macros. Use "+m" constraint on asm rather than
11231 * math/s_nextafter.c (__nextafter): Likewise.
11232 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11234 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11235 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11236 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11237 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11238 math_opt_barrier and math_force_eval macros.
11239 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11240 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11241 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11242 (__nexttoward): Use math_opt_barrier and
11243 math_force_eval macros. Use "+m" constraint on asm rather than
11244 "=m" and "m". Only use asm to force double result if
11245 FLT_EVAL_METHOD is 2.
11246 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11247 (__nexttowardf): Use math_opt_barrier and
11248 math_force_eval macros. Use "+m" constraint on asm rather than
11249 "=m" and "m". Only use asm to force double result if
11250 FLT_EVAL_METHOD is not 0.
11251 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11252 (__nexttowardf): Use math_opt_barrier and
11253 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11254 x to float using asm.
11255 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11256 (__nldbl_nexttowardf): Use math_opt_barrier and
11257 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11258 x to float using asm.
11259 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11260 (__nexttowardf): Use math_opt_barrier and math_force_eval
11261 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
11262 * math/bug-nextafter.c (zero, inf): New variables.
11263 (main): Add new tests.
11264 * math/bug-nexttoward.c (zero, inf): New variables.
11265 (main): Add new tests.
11267 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11270 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11271 exceptions both in SW and MXCSR.
11272 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11273 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11274 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11275 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11276 in MXCSR if SSE is available.
11277 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11279 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11281 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11282 Return 0 rather than 1.
11283 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11284 Remove incorrect part of a comment. Fix argument to feraiseexcept.
11285 * math/test-fenv.c (feholdexcept_tests): New function.
11288 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11291 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11294 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11297 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11298 Reported by David Anderson <davea42@earthlink.net>.
11300 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11302 * posix/sys/wait.h: Remove unnecessary forward declaration.
11304 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11306 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11307 with obj->do_servers after first_shoot.
11309 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11311 * posix/Makefile (routines): Add sched_cpucount.
11312 (tests): Add tst-cpucount.
11313 * posix/sched_cpucount.c: New file.
11314 * posix/tst-cpucount.c: New file.
11315 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11316 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11317 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11318 * posix/sched.h: Define CPU_COUNT.
11320 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11322 * posix/fnmatch.c (STRUCT): Define.
11323 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11324 * posix/fnmatch_loop.c (struct STRUCT): New type.
11325 (FCT): Add ends argument. If ends != NULL and normal * is
11326 seen in the pattern, store current pattern and string pointers
11327 and return. Adjust recursive calls.
11328 (EXT): Adjust FCT callers.
11329 (STRUCT): Undef at the end of the file.
11330 * posix/Makefile (tests): Add tst-fnmatch2.
11331 * posix/tst-fnmatch2.c: New test.
11333 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11335 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11338 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11339 Change last argument to unsigned int.
11341 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11343 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11345 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11347 * config.h.in (HAVE_LIBCAP): Add.
11348 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11349 sys/capabilities.h.
11350 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11351 free_caps. Cast away const from 4th cap_set_flag argument.
11353 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11355 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11357 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11358 Add sync_file_range.
11359 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11361 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11363 * sysdeps/powerpc/bits/atomic.h
11364 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11365 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11366 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11367 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11368 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11369 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11370 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11371 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11372 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11373 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11374 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11375 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11376 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11377 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11378 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11379 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11380 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11381 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11382 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11383 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11385 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11387 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11388 (__cache_line_size): Define the variable here. Add
11389 attribute_hidden, remove weak_extern.
11390 (__libc_start_main): Set __cache_line_size
11392 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11393 (__cache_line_size): Define the variable here. Add
11394 attribute_hidden, remove weak_extern.
11395 (DL_PLATFORM_AUXV): Set __cache_line_size
11397 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11398 weak_extern, add attribute_hidden.
11399 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11401 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11403 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11405 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11408 * timezone/africa: Update from tzdata2007d.
11409 * timezone/asia: Likewise.
11410 * timezone/australasia: Likewise.
11411 * timezone/backward: Likewise.
11412 * timezone/europe: Likewise.
11413 * timezone/iso3166.tab: Likewise.
11414 * timezone/leapseconds: Likewise.
11415 * timezone/northamerica: Likewise.
11416 * timezone/southamerica: Likewise.
11417 * timezone/zone.tab: Likewise.
11419 * timezone/private.h: Update from tzcode2007d.
11420 * timezone/zdump.c: Likewise.
11421 * timezone/zic.c: Likewise.
11423 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11425 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11426 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11428 (nis_server_cache_search, nis_server_cache_add): New functions.
11429 (__nisfind_server): Use them. Add dbp and flags argument, if
11430 call __nisbind_create.
11431 (__nisbind_create): Add server_used and current_ep arguments,
11432 only call __nis_findfastest if server_used is ~0.
11433 (__do_niscall2, __prepare_niscall): Adjust callers.
11434 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11435 ckey_cache_euid, ckey_cache_lock): New variables.
11436 (get_ckey): New function.
11437 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11438 __pmap_getnisport. Save __pmap_getnisport result in
11439 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11441 * nis/nis_lookup.c (nis_lookup): Likewise.
11442 * nis/nis_table.c (nis_list): Likewise.
11443 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11446 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11447 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11448 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11449 _nss_nisplus_getservbyport_r): Likewise.
11450 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11451 _nss_nisplus_getnetbyaddr_r): Likewise.
11452 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11453 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11454 _nss_nisplus_getntohost_r): Likewise.
11455 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11456 _nss_nisplus_getrpcbynumber_r): Likewise.
11458 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11460 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11461 * configure: Rebuilt.
11463 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11465 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11467 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11470 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11473 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11475 * nscd/gai.c: Include alloca.h.
11476 (__libc_use_alloca): Define.
11478 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11480 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11482 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11483 (DL_DST_REQUIRED): Adjust user.
11485 * include/dlfcn.h (struct link_map): New forward decl.
11487 * inet/getnameinfo.c: Include stddef.h.
11488 (getnameinfo): Use offsetof.
11490 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11492 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11494 * string/strerror_l.c: Include stdlib.h.
11496 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11497 * config.make.in (gnu89-inline-CFLAGS): New variable.
11498 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11500 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11501 * argp/argp.h: Use it.
11502 * bits/mathinline.h: Likewise.
11503 * bits/sigset.h: Likewise.
11504 * bits/string.h: Likewise.
11505 * ctype/ctype.h: Likewise.
11506 * hurd/hurd.h: Likewise.
11507 * hurd/hurd/fd.h: Likewise.
11508 * hurd/hurd/port.h: Likewise.
11509 * hurd/hurd/signal.h: Likewise.
11510 * hurd/hurd/threadvar.h: Likewise.
11511 * hurd/hurd/userlink.h: Likewise.
11512 * io/sys/stat.h: Likewise.
11513 * libio/bits/stdio.h: Likewise.
11514 * libio/bits/stdio2.h: Likewise.
11515 * mach/lock-intern.h: Likewise.
11516 * mach/mach/mig_support.h: Likewise.
11517 * math/bits/cmathcalls.h: Likewise.
11518 * posix/bits/unistd.h: Likewise.
11519 * socket/bits/socket2.h: Likewise.
11520 * stdlib/bits/stdlib.h: Likewise.
11521 * stdlib/stdlib.h: Likewise.
11522 * string/argz.h: Likewise.
11523 * string/bits/string2.h: Likewise.
11524 * string/bits/string3.h: Likewise.
11525 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11526 * sysdeps/generic/inttypes.h: Likewise.
11527 * sysdeps/generic/machine-lock.h: Likewise.
11528 * sysdeps/generic/machine-sp.h: Likewise.
11529 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11530 * sysdeps/i386/i486/bits/string.h: Likewise.
11531 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11532 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11533 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11534 * sysdeps/mach/i386/machine-lock.h: Likewise.
11535 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11536 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11537 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11538 * sysdeps/s390/bits/string.h: Likewise.
11539 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11540 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11541 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11542 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11543 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11544 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11545 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11546 * wcsmbs/bits/wchar2.h: Likewise.
11547 * wcsmbs/wchar.h: Likewise.
11548 * stdlib/gmp.h: Likewise. Include <features.h> to get
11549 __extern_inline definition.
11551 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11553 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11557 * math/libm-test.inc (log_test): Test -Inf and NaN.
11558 (log10_test, log1p_test, log2_test): Test -Inf.
11559 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11560 FE_INVALID when argument is qNaN.
11561 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11562 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11563 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11564 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11565 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11566 testb $4, %ah and jump if non-zero.
11567 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11568 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11571 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11572 ancestors with the same depths.
11573 Patch by Niels Moeller <nisse@lysator.liu.se>.
11574 (filter_doc): Don't crash if argp is NULL.
11575 * argp/Makefile (tests): Add tst-argp2.
11576 * argp/tst-argp2.c: New test.
11579 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11581 (updwtmp_file): Likewise.
11584 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11585 (inet6_opt_append): Don't check extlen is big enough if extbuf
11587 (inet6_opt_finish): Likewise.
11588 * inet/Makefile (tests): Add test-inet6_opt.
11589 * inet/test-inet6_opt.c: New test.
11591 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11592 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11593 NLMSG_ERR. Instead use a page sized buffer.
11594 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11597 2007-03-14 Richard Henderson <rth@redhat.com>
11599 * sysdeps/alpha/fpu/s_llround.c: New file.
11600 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11601 * sysdeps/alpha/fpu/s_lround.c: New file.
11602 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11603 * sysdeps/alpha/fpu/s_round.c: New file.
11604 * sysdeps/alpha/fpu/s_roundf.c: New file.
11605 * sysdeps/alpha/fpu/s_trunc.c: New file.
11606 * sysdeps/alpha/fpu/s_truncf.c: New file.
11608 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11609 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11610 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11611 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11612 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11613 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11615 * sysdeps/alpha/fpu/s_fmax.S: New file.
11616 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11617 * sysdeps/alpha/fpu/s_fmin.S: New file.
11618 * sysdeps/alpha/fpu/s_fminf.S: New file.
11619 * sysdeps/alpha/fpu/s_isnan.c: New file.
11620 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11621 * sysdeps/alpha/fpu/s_llrint.c: New file.
11622 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11623 * sysdeps/alpha/fpu/s_lrint.c: New file.
11624 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11625 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11626 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11628 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11629 (__fdimf, fdimf, __fdim, fdim): Remove.
11630 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11631 (__isnanf, __isnan, __isnanl): New.
11633 2007-03-13 Richard Henderson <rth@redhat.com>
11635 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11637 2007-03-13 Richard Henderson <rth@redhat.com>
11639 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11640 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11641 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11642 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11643 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11644 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11646 2007-03-13 Richard Henderson <rth@redhat.com>
11648 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11649 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11650 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11651 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11652 Move to dl-auxv.h; initialize instead of extern weak.
11653 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11655 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11656 Extern instead of initialized.
11658 2007-03-13 Richard Henderson <rth@redhat.com>
11660 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11661 __sigsuspend_nocancel.
11663 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11665 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11666 172.16/12 address range.
11668 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11670 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11671 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11674 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11677 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11679 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11681 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11682 for x qNaN and y either +-inf or non-integer value.
11683 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11684 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11685 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11687 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11689 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11690 from sysdep_headers.
11692 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11694 * time/tzfile.c (find_transition): Instead of a linear search try to
11695 guess the transition index, use a linear search if the result is at
11696 most 10 transitions away from the guess or binary search otherwise.
11698 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11700 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11701 memory reallocation.
11703 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11705 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11706 and fix some typos.
11707 Optimize use of TOLOWER.
11710 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11711 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11712 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11715 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11716 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11719 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11720 (open_dir_stream): Likewise.
11721 * io/Makefile (tests): Add bug-ftw5.
11722 * io/bug-ftw5.c: New file.
11724 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11725 * nscd/servicescache.c (cache_addserv): Likewise.
11727 * nscd/grpcache.c (cache_addgr): In case a record changed on
11728 refresh, adjust key_copy.
11731 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11732 refresh, adjust key_copy.
11735 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11737 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11739 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11741 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11744 * stdio-common/vfscanf.c: Small cleanups throughout.
11746 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11749 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11750 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11751 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11752 Patch by Jared Casper <jaredcasper@gmail.com>.
11754 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11755 * sysdeps/unix/opendir.c: Likewise.
11756 * sysdeps/unix/readdir.c: Likewise.
11759 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11761 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11763 * stdio-common/vfscanf.c: Fix problems in width accounting.
11764 * stdio-common/tst-sscanf.c (double_tests): New tests.
11765 (main): Hook them up.
11767 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11768 More simplifications of floating-point reader.
11770 * stdio-common/Makefile (tests): Add tst-swscanf.
11771 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11773 * stdio-common/tst-swscanf.c: New file.
11775 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11778 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11779 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11780 Remove using for __jmp_buf_tag.
11781 * locale/locale.h (struct lconv): Also define in std namespace.
11782 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11785 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11786 using __libc_enable_secure.
11789 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11792 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11793 of names for ellipsises.
11796 * malloc/memusage.sh: Cleanups.
11797 * debug/xtrace.sh: Quoting and trap changes.
11799 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11801 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11803 * locale/iso-3166.def: Update entry for Serbia.
11804 * locale/iso-4217.def: Define RSD, remove CSD.
11806 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11807 and 64-bit operations.
11810 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11813 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11816 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11819 * assert/assert.h (assert): Simplify.
11820 (assert_perror): Likewise.
11821 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11823 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11826 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11827 change: don't pass NULL in place of an integer.
11829 2007-02-02 Bruno Haible <bruno@clisp.org>
11832 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11833 Add mapping for U+327E.
11834 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11835 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11836 mapping of 0xD9 0xE8.
11837 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11839 Reported by Jungshik Shin <jungshik@google.com>.
11842 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11843 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11844 Reported by Jungshik Shin <jungshik@google.com>.
11846 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11848 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11852 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11853 byte variants. Patch mostly be tom@tommay.net.
11855 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11858 * posix/glob.c (attribute_hidden): Define if not defined.
11859 (glob): Unescape dirname, filename or username when needed and not
11860 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11861 is NULL. Handle unescaped [ in pattern without closing ].
11862 Don't pass GLOB_CHECK down to recursive glob for directories.
11863 (__glob_pattern_type): New function.
11864 (__glob_pattern_p): Implement using __glob_pattern_type.
11865 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11866 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11867 Remove unreachable code.
11868 * posix/globtest.sh: Add a couple of new tests.
11870 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11872 * po/ru.po: Update from translation team.
11874 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11876 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11877 to the list of i486+ CPUs.
11878 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11880 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11882 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11883 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11886 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11888 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11890 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11891 * resolv/res_mkquery.c: Define __res_nopt.
11892 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11893 try adding EDNS0 record.
11894 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11895 EDNS0 record was send make sure we don't try it again.
11896 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11897 * include/resolv.h: Declare __res_nopt.
11899 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11902 * time/strptime_l.c (__strptime_internal): Set have_mon for
11903 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11904 have been computed from tm_yday and tm_year. Don't crash
11905 in day_of_the_week or day_of_the_year if not have_mon
11906 and tm_mon contains bogus value.
11907 * time/Makefile (tests): Add tst-strptime3.
11908 * time/tst-strptime3.c: New test.
11910 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11913 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11914 bit for RE_HAT_LISTS_NOT_NEWLINE.
11915 (build_charclass_op): Remove bogus comment.
11916 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11917 * posix/bug-regex27.c: New test.
11918 * posix/bug-regex28.c: New test.
11920 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11922 * po/sv.po: Update from translation team.
11924 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11926 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11928 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11930 * include/locale.h (__uselocale): Add libc_hidden_proto.
11931 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11933 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11936 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11938 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11940 (PTR_DEMANGLE): Real definition now that it's not the same as
11941 PRT_MANGLE anymore.
11942 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11944 * string/strerror_l.c: New file.
11945 * string/Makefile (routines): Add strerror_l.
11946 * string/string.h: Declare strerror_l.
11947 * string/Versions: Export strerror_l for GLIBC_2.6.
11949 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11951 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11952 as parameter. Construct request record. Try sending request
11953 before the first poll use, it usually succeeds. Adjust all
11955 * nscd/nscd-client.h: Define MAXKEYLEN.
11956 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11958 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11960 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11962 * nscd/nscd_helper.c: Include string.h.
11963 (__nscd_cache_search): Remove const qualifier from return value.
11964 On strict alignment architectures check hash entry and data head
11966 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11967 mmapped data during GC cycle contains garbage. If
11968 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11969 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11971 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11972 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11973 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11974 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11975 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11977 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11979 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11981 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11983 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11984 names not numbers in cfi_*.
11986 2007-01-26 Andreas Jaeger <aj@suse.de>
11988 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11989 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11990 Correct values of PER_HPUX and PER_OSF4.
11992 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11994 * elf/dl-minimal.c: Undefine _itoa first.
11995 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11996 * malloc/mtrace.c: Revert last change.
11997 * posix/wordexp.c: Likewise.
11999 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12001 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12002 and __geode__ to the list of i486+ CPUs.
12003 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12005 2007-01-23 Ulrich Drepper <drepper@redhat.com>
12007 * stdio-common/_itoa.c: Include <limits.h>.
12008 * stdio-common/_itowa.c: Likewise.
12010 2007-01-22 Ulrich Drepper <drepper@redhat.com>
12012 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12014 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12016 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12018 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12022 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12023 * stdio-common/Makefile (tests): Add bug17.
12024 * stdio-common/bug17.c: New file.
12026 2007-01-19 Ulrich Drepper <drepper@redhat.com>
12028 * iconvdata/brf.c: New file.
12029 * iconvdata/testdata/BRF: New file.
12030 * iconvdata/testdata/BRF..UTF8: New file.
12031 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12032 * iconvdata/Makefile: Add rules to build BRF.
12033 * iconvdata/TESTS: Add BRF entry.
12034 * iconvdata/gconv-modules: Likewise.
12035 * iconvdata/tst-tables.sh: Likewise.
12037 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
12039 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12040 type `long long int', not `long int'.
12041 (wcstoq): Likewise.
12043 2007-01-18 Ulrich Drepper <drepper@redhat.com>
12045 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12046 of values on 64-bit platforms which are too large.
12048 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
12049 Joe Kerian <jkerian@us.us.ibm.com>
12052 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12053 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
12054 (__copysignl): Use signbit() for comparison.
12055 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12056 SET_LDOUBLE_WORDS64.
12059 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12060 (__ceill): Remove calls to fegetround(), fesetround().
12061 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12062 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12063 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12065 2007-01-17 Jakub Jelinek <jakub@redhat.com>
12067 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12069 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12071 2007-01-17 Ulrich Drepper <drepper@redhat.com>
12073 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12075 * csu/libc-start.c: Likewise.
12077 2007-01-16 Ulrich Drepper <drepper@redhat.com>
12079 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12080 really work anyway.
12082 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12084 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
12086 (handle_request): Remove unnecessary tests.
12088 * nscd/cache.c (cache_add): Record the failure to add to the cache.
12090 2007-01-15 Jakub Jelinek <jakub@redhat.com>
12092 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12093 workbits in semi-raw fraction.
12095 * math/test-misc.c: Add new tests.
12097 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
12099 * math/basic-test.c: Include test-skeleton.c.
12100 (TEST_TRUNC): Define.
12101 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12102 (main): Rename to ...
12103 (do_test): ...this. Run new tests.
12104 (TEST_FUNCTION): Define.
12106 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
12107 Joe Kerian <jkerian@us.us.ibm.com>
12110 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12111 handling for high words.
12112 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12113 and overflow for infinity.
12115 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12117 * nscd/connections.c (handle_request): Add a __builtin_expect.
12119 * nscd/connections.c (serv2db): Change type into structure which
12120 also says whether this is a request for data. Renamed to
12121 servinfo. All users changed.
12122 (handle_request): Much simpler test whether we should search the cache.
12124 * nscd/connections.c (handle_request): Fix thinko in selinux test
12127 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12128 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12129 it before getting dl_load_lock and then relock.
12130 (_dl_lookup_symbol_x): Pass flags to add_dependency.
12131 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12132 case we unlocked the scope.
12133 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12134 _dl_lookup_symbol_x in case we locked the scope.
12135 (_dl_profile_fixup): Likewise.
12136 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12137 set DL_LOOKUP_SCOPE_LOCK.
12139 2007-01-13 Ulrich Drepper <drepper@redhat.com>
12141 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12142 CFLAGS-getsrvbynpt_r.c.
12143 * nscd/getsrvbynm_r.c: New file.
12144 * nscd/getsrvbypt_r.c: New file.
12145 * nscd/nscd_getserv_r.c: New file.
12146 * nscd/servicescache.c: New file.
12147 * nscd/Makefile (routines): Add nscd_getserv_r.
12148 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12149 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12150 CFLAGS-getsrvbypt_r.c.
12151 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12152 table. Add entries for services database.
12153 * nscd/connections.c (serv2str): Mark as const. Add entries for
12155 (dbs): Add .reset_res and servdb initialization.
12156 (serv2db): Add entries for services database.
12157 (verify_persistent_db): Accept dbnr == servdb.
12158 (invalidate_cache): Rewrite database name recognition to use a table.
12159 Call res_init() if .reset_res is set for database.
12160 (handle_request): Add code to handle services database.
12161 * nscd/gai.c: Don't define __getservbyname_r.
12162 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12163 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12164 (serv_response_header): Define.
12165 (struct datahead): Add serv_response_header member.
12166 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12168 * nscd/nscd.conf: Add entries for services database.
12169 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12170 Declare serv_iov_disabled.
12171 Declare addservbyname, readdservbyname, addservbyport, and
12173 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12174 (find_db): Fix error message.
12175 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12176 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12177 * nscd/selinux.c (perms): Add entries for services database.
12178 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12179 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12181 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12182 * nscd/hstcache.c: Likewise.
12183 * nscd/pwdcache.c: Likewise.
12185 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12186 computation of keylen.
12188 * include/string.h: Only redefine strndupa if this is really for
12191 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12193 * nscd/nscd_gethst_r.c: Minor cleanups.
12195 * nscd/connections.c (handle_request): Check selinux permissions
12196 for all non-admin commands.
12198 * sysdeps/i386/i486/bits/atomic.h: Define
12199 atomic_compare_and_exchange_val_acq,
12200 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12201 using __sync_* built-ins for gcc >= 4.1.
12202 * sysdeps/x86_64/bits/atomic.h: Likewise.
12205 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12208 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
12210 * stdlib/tst-makecontext.c: Include errno.h. Change main()
12211 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
12212 (do_test): Check errno and exit(0) if ENOSYS.
12214 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12216 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12217 thousands separators.
12218 * stdlib/Makefile: Add rules to build and run tst-strtod4.
12219 * stdlib/tst-strtod4.c: New test.
12222 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12223 hexadecimal digit should accept just the initial 0.
12224 * stdlib/tst-strtod2.c (tests): New variable.
12225 (do_test): Run several tests rather than just one.
12227 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12229 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12230 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12232 2007-01-10 Ulrich Drepper <drepper@redhat.com>
12234 * io/fts.c: Make sure fts_cur is always valid after return from
12236 Patch by Miloslav Trmac <mitr@redhat.com>.
12238 2006-10-27 Richard Sandiford <richard@codesourcery.com>
12240 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12241 (R_MIPS_NUM): Bump by 1.
12243 2007-01-03 Jakub Jelinek <jakub@redhat.com>
12245 * posix/execvp.c: Include alloca.h.
12246 (allocate_scripts_argv): Renamed to...
12247 (scripts_argv): ... this. Don't allocate buffer here nor count
12249 (execvp): Use alloca if possible.
12250 * posix/Makefile: Add rules to build and run tst-vfork3 test.
12251 * posix/tst-vfork3.c: New test.
12253 2007-01-03 Ulrich Drepper <drepper@redhat.com>
12255 * string/Makefile (tst-strxfrm2-ENV): Define.
12256 * stdlib/Makefile (tst-strtod3-ENV): Define.
12258 2007-01-02 Ulrich Drepper <drepper@redhat.com>
12260 * posix/getconf.c: Update copyright year.
12261 * nss/getent.c: Likewise.
12262 * iconv/iconvconfig.c: Likewise.
12263 * iconv/iconv_prog.c: Likewise.
12264 * elf/ldconfig.c: Likewise.
12265 * catgets/gencat.c: Likewise.
12266 * csu/version.c: Likewise.
12267 * elf/ldd.bash.in: Likewise.
12268 * elf/sprof.c (print_version): Likewise.
12269 * locale/programs/locale.c: Likewise.
12270 * locale/programs/localedef.c: Likewise.
12271 * nscd/nscd.c (print_version): Likewise.
12272 * debug/xtrace.sh: Likewise.
12273 * malloc/memusage.sh: Likewise.
12274 * malloc/mtrace.pl: Likewise.
12275 * debug/catchsegv.sh: Likewise.
12277 2006-12-24 Ulrich Drepper <drepper@redhat.com>
12279 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12282 2006-12-23 Ulrich Drepper <drepper@redhat.com>
12284 * posix/wordexp.c: Remove some unnecessary tests.
12286 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
12288 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12289 blacklist the group till after we look it up.
12291 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12293 * include/atomic.h (atomic_forced_read): New macro.
12295 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12297 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12299 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12301 * nss/getXXbyYY_r.c: Include atomic.h.
12302 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12303 add atomic_write_barrier () in between.
12305 * stdlib/Makefile (tests): Add tst-makecontext.
12306 * stdlib/tst-makecontext.c: New test.
12308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12309 (__makecontext): Don't realign uc_mcontext.uc_regs.
12311 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12313 * elf/dl-support.c: Include dl-procinfo.h.
12314 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12315 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12316 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12318 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12319 hardcoded constants.
12320 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12321 PPC_PLATFORM_* macros for array designators.
12323 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12325 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12326 names to the beginning.
12327 (_dl_powerpc_platforms): Add "power6x".
12328 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12329 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12330 (_DL_PLATFORMS_COUNT): Increase.
12331 (_dl_string_platform): Handle power6x case.
12332 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12333 PPC_FEATURE_POWER6_EXT): Define.
12334 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12336 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12339 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12340 [-2^31 .. 2^31) range.
12341 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12343 * stdlib/tst-rand48-2.c: New test.
12344 * stdlib/Makefile (tests): Add tst-rand48-2.
12346 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12348 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12350 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12352 * misc/tst-pselect.c (do_test): Make sure the helper process is
12353 terminating when the test is aborted.
12355 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12357 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12358 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12359 Handle relatime mount option.
12362 * libio/Makefile (tests): Add tst-setvbuf1.
12363 * libio/tst-setvbuf1.c: New file.
12365 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12368 * libio/genops.c (__uflow): Fix a typo.
12369 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12370 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12371 the narrow buffer size.
12373 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12376 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12377 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12378 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12380 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12381 _IO_wstr_finish): Likewise.
12382 * libio/wmemstream.c (open_wmemstream): Likewise.
12383 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12384 even for wide streams.
12386 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12391 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12393 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12394 separators also if no non-zero digits found.
12395 * stdlib/Makefile (tests): Add tst-strtod3.
12397 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12400 * include/features.h: Fix comment about default value for
12404 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12405 empty parsed strings.
12406 * stdlib/Makefile (tests): Add tst-strtod2.
12407 * stdlib/tst-strtod2.c: New file.
12410 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12412 * stdlib/Makefile (tests): Add tst-atof2.
12413 * stdlib/tst-atof2.c: New file.
12416 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12417 correctly if removing trailing zero of hex-float.
12418 * stdlib/Makefile (tests): Add tst-atof1.
12419 * stdlib/tst-atof1.c: New file.
12421 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12423 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12424 Start searching for next comma at p rather than rest.
12425 * misc/Makefile (tests): Add tst-mntent2.
12426 * misc/tst-mntent2.c: New test.
12428 * misc/getusershell.c (initshells): Check for integer overflows.
12429 Make strings buffer one bigger as fgets always succeeds when second
12430 argument is 1. Don't use calloc for shells array. Disallow
12433 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12435 * malloc/memusage.c: Handle realloc with new size of zero and
12436 non-NULL pointer correctly.
12437 (me): Really write first record twice.
12438 (struct entry): Make format bi-arch safe.
12439 (dest): Write out more realloc statistics.
12440 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12442 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12444 * nis/nis_subr.c (nis_getnames): Revert last change.
12446 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12448 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12449 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12450 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12451 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12453 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12454 * io/tst-ttyname_r.c: New test.
12456 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12458 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12460 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12462 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12463 jump table entries.
12465 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12467 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12468 `clone' function to ensure proper unwinding stop of gdb.
12469 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12471 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12473 * nscd/nscd.init: Remove obsolete and commented-out -S option
12476 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12479 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12482 * manual/string.texi (strtok): Remove duplicate paragraph.
12484 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12486 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12487 libgcc not supporting `rflags' unwinding (register # >= 17).
12489 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12491 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12494 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12495 Jakub Jelinek <jakub@redhat.com>
12496 Jan Kratochvil <jan.kratochvil@redhat.com>
12498 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12499 unwind information.
12500 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12501 'restore_rt' even in the 'signal' directory.
12502 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12504 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12507 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12508 malloc crashed. Don't allocate memory unnecessarily in each
12511 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12513 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12515 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12517 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12519 2006-11-18 Bruno Haible <bruno@clisp.org>
12521 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12522 __sysconf only after having tried to call getgroups32.
12524 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12526 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12527 addresses for IPv4 queries if they can be mapped.
12529 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12531 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12532 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12533 (signmask): Add .size directive.
12534 (othermask): Add .type directive.
12536 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12538 * po/nl.po: Update from translation team.
12540 * timezone/zdump.c: Redo fix for BZ #3137.
12542 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12544 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12545 to first_unused after parsing :include: file.
12547 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12549 * timezone/africa: Update from tzdata2006o.
12550 * timezone/antarctica: Likewise.
12551 * timezone/asia: Likewise.
12552 * timezone/australasia: Likewise.
12553 * timezone/backward: Likewise.
12554 * timezone/europe: Likewise.
12555 * timezone/iso3166.tab: Likewise.
12556 * timezone/northamerica: Likewise.
12557 * timezone/southamerica: Likewise.
12558 * timezone/zone.tab: Likewise.
12560 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12561 on machines with 64-bit time_t.
12563 * timezone/checktab.awk: Update from tzcode2006o.
12564 * timezone/ialloc.c: Likewise.
12565 * timezone/private.h: Likewise.
12566 * timezone/scheck.c: Likewise.
12567 * timezone/tzfile.h: Likewise.
12568 * timezone/tzselect.ksh: Likewise.
12569 * timezone/zdump.c: Likewise.
12570 * timezone/zic.c: Likewise.
12573 * elf/ldconfig.c (main): Call setlocale and textdomain.
12574 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12577 * manual/argp.texi: Fix typos.
12578 * manual/charset.texi: Likewise.
12579 * manual/errno.texi: Likewise.
12580 * manual/filesys.texi: Likewise.
12581 * manual/lang.texi: Likewise.
12582 * manual/maint.texi: Likewise.
12583 * manual/memory.texi: Likewise.
12584 * manual/message.texi: Likewise.
12585 * manual/resource.texi: Likewise.
12586 * manual/search.texi: Likewise.
12587 * manual/signal.texi: Likewise.
12588 * manual/startup.texi: Likewise.
12589 * manual/stdio.texi: Likewise.
12590 * manual/sysinfo.texi: Likewise.
12591 * manual/syslog.texi: Likewise.
12592 * manual/time.texi: Likewise.
12593 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12596 * sunrpc/clnt_raw.c: Minimal message improvements.
12597 * sunrpc/pm_getmaps.c: Likewise.
12598 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12599 * nis/nis_print_group_entry.c: Likewise.
12600 * locale/programs/repertoire.c: Likewise.
12601 * locale/programs/charmap.c: Likewise.
12602 * malloc/memusage.sh: Likewise.
12603 * elf/dl-deps.c: Likewise.
12604 * locale/programs/ld-collate.c: Likewise.
12605 * libio/vswprintf.c: Likewise.
12606 * malloc/memusagestat.c: Likewise.
12607 * sunrpc/auth_unix.c: Likewise.
12608 * sunrpc/rpc_main.c: Likewise.
12609 * nscd/cache.c: Likewise.
12610 * locale/programs/repertoire.c: Unify output messages.
12611 * locale/programs/charmap.c: Likewise.
12612 * locale/programs/ld-ctype.c: Likewise.
12613 * locale/programs/ld-monetary.c: Likewise.
12614 * locale/programs/ld-numeric.c: Likewise.
12615 * locale/programs/ld-time.c: Likewise.
12616 * elf/ldconfig.c: Likewise.
12617 * nscd/selinux.c: Likewise.
12618 * elf/cache.c: Likewise.
12619 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12622 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12626 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12628 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12629 if N is one bigger than return value.
12630 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12631 and l1 last arguments, if buf is defined, verify the return value
12632 equals to strlen (buf) and verify no byte beyond passed length
12635 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12637 * po/sv.po: Update from translation team.
12639 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12641 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12642 noinline attribute.
12644 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12646 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12647 noinline attribute.
12649 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12650 Use __new_sys_siglist instead of _sys_siglist_internal as
12651 second macro argument.
12652 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12655 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12658 * posix/unistd.h (sysconf): Remove const attribute.
12660 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12661 temporary or deprecated addresses.
12662 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12664 * string/Makefile (tests): Add tst-strxfrm2.
12665 * string/tst-strxfrm2.c: New file.
12667 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12669 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12670 rather than r->r_brk.
12672 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12674 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12675 optimization even if needed > n.
12677 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12678 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12679 return false, otherwise return true.
12680 (cache_rpath): Return decompose_rpath return value.
12682 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12684 * include/libc-symbols.h (declare_symbol): Rename to...
12685 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12686 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12688 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12690 * sysdeps/gnu/siglist.c: Likewise.
12692 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12694 * sysdeps/powerpc/fpu/bits/mathinline.h
12695 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12696 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12698 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12700 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12701 Update handling of cache descriptor 0x49 for new models.
12702 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12705 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12707 * malloc/memusage.c (dest): Reset not_me back to false after
12708 printing statistics.
12710 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12712 * configure.in: Work around ld --help change and avoid -z relro
12713 test completely if the architecture doesn't care about security.
12715 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12717 * po/sv.po: Update from translation team.
12719 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12721 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12722 generate compatibility version.
12724 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12726 * configure.in: Relax -z relro requirement a bit.
12728 * po/sv.po: Update from translation team.
12730 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12732 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12733 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12734 * elf/dl-close.c (_dl_close_worker): Likewise.
12735 * elf/dl-open.c (_dl_open_worker): Likewise.
12736 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12738 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12740 * configure.in: Require assembler support for visibility, compiler
12741 support for visibility and aliases, linker support for various -z
12743 * Makeconfig: Remove conditional code which now is unnecessary.
12744 * config.h.in: Likewise.
12745 * config.make.in: Likewise.
12746 * dlfcn/Makefile: Likewise.
12747 * elf/Makefile: Likewise.
12748 * elf/dl-load.c: Likewise.
12749 * elf/rtld.c: Likewise.
12750 * include/libc-symbols.h: Likewise.
12751 * include/stdio.h: Likewise.
12752 * io/Makefile: Likewise.
12753 * io/fstat.c: Likewise.
12754 * io/fstat64.c: Likewise.
12755 * io/fstatat.c: Likewise.
12756 * io/fstatat64.c: Likewise.
12757 * io/lstat.c: Likewise.
12758 * io/lstat64.c: Likewise.
12759 * io/mknod.c: Likewise.
12760 * io/mknodat.c: Likewise.
12761 * io/stat.c: Likewise.
12762 * io/stat64.c: Likewise.
12763 * libio/stdio.c: Likewise.
12764 * nscd/Makefile: Likewise.
12765 * stdlib/Makefile: Likewise.
12766 * stdlib/atexit.c: Likewise.
12767 * sysdeps/generic/ldsodefs.h: Likewise.
12768 * sysdeps/i386/dl-machine.h: Likewise.
12769 * sysdeps/i386/sysdep.h: Likewise.
12770 * sysdeps/i386/i686/memcmp.S: Likewise.
12771 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12772 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12773 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12775 * Makerules: USE_TLS support is now default.
12776 * tls.make.c: Likewise.
12777 * csu/Versions: Likewise.
12778 * csu/libc-start.c: Likewise.
12779 * csu/libc-tls.c: Likewise.
12780 * csu/version.c: Likewise.
12781 * dlfcn/dlinfo.c: Likewise.
12782 * elf/dl-addr.c: Likewise.
12783 * elf/dl-cache.c: Likewise.
12784 * elf/dl-close.c: Likewise.
12785 * elf/dl-iteratephdr.c: Likewise.
12786 * elf/dl-load.c: Likewise.
12787 * elf/dl-lookup.c: Likewise.
12788 * elf/dl-object.c: Likewise.
12789 * elf/dl-open.c: Likewise.
12790 * elf/dl-reloc.c: Likewise.
12791 * elf/dl-support.c: Likewise.
12792 * elf/dl-sym.c: Likewise.
12793 * elf/dl-sysdep.c: Likewise.
12794 * elf/dl-tls.c: Likewise.
12795 * elf/ldconfig.c: Likewise.
12796 * elf/rtld.c: Likewise.
12797 * elf/tst-tls-dlinfo.c: Likewise.
12798 * elf/tst-tls1.c: Likewise.
12799 * elf/tst-tls10.h: Likewise.
12800 * elf/tst-tls14.c: Likewise.
12801 * elf/tst-tls2.c: Likewise.
12802 * elf/tst-tls3.c: Likewise.
12803 * elf/tst-tls4.c: Likewise.
12804 * elf/tst-tls5.c: Likewise.
12805 * elf/tst-tls6.c: Likewise.
12806 * elf/tst-tls7.c: Likewise.
12807 * elf/tst-tls8.c: Likewise.
12808 * elf/tst-tls9.c: Likewise.
12809 * elf/tst-tlsmod1.c: Likewise.
12810 * elf/tst-tlsmod13.c: Likewise.
12811 * elf/tst-tlsmod13a.c: Likewise.
12812 * elf/tst-tlsmod14a.c: Likewise.
12813 * elf/tst-tlsmod2.c: Likewise.
12814 * elf/tst-tlsmod3.c: Likewise.
12815 * elf/tst-tlsmod4.c: Likewise.
12816 * elf/tst-tlsmod5.c: Likewise.
12817 * elf/tst-tlsmod6.c: Likewise.
12818 * include/errno.h: Likewise.
12819 * include/link.h: Likewise.
12820 * include/tls.h: Likewise.
12821 * locale/global-locale.c: Likewise.
12822 * locale/localeinfo.h: Likewise.
12823 * malloc/arena.c: Likewise.
12824 * malloc/hooks.c: Likewise.
12825 * malloc/malloc.c: Likewise.
12826 * resolv/Versions: Likewise.
12827 * sysdeps/alpha/dl-machine.h: Likewise.
12828 * sysdeps/alpha/libc-tls.c: Likewise.
12829 * sysdeps/generic/ldsodefs.h: Likewise.
12830 * sysdeps/generic/tls.h: Likewise.
12831 * sysdeps/i386/dl-machine.h: Likewise.
12832 * sysdeps/ia64/dl-machine.h: Likewise.
12833 * sysdeps/ia64/libc-tls.c: Likewise.
12834 * sysdeps/mach/hurd/fork.c: Likewise.
12835 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12836 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12837 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12838 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12839 * sysdeps/s390/libc-tls.c: Likewise.
12840 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12841 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12842 * sysdeps/sh/dl-machine.h: Likewise.
12843 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12844 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12845 * sysdeps/x86_64/dl-machine.h: Likewise.
12847 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12848 split out locking and parameter checking.
12849 (_dl_close): Call _dl_close_worker after locking and checking.
12850 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12852 * elf/Makefile: Add rules to build and run tst-thrlock.
12853 * elf/tst-thrlock.c: New file.
12856 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12860 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12861 we are sure we do not need it anymore for _dl_close. Also move
12862 the asserts inside the lock region.
12863 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12865 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12867 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12869 (_dl_lookup_symbol_x): Adjust caller.
12871 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12873 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12875 * elf/dl-libc.c: Revert l_scope name changes.
12876 * elf/dl-load.c: Likewise.
12877 * elf/dl-object.c: Likewise.
12878 * elf/rtld.c: Likewise.
12879 * elf/dl-close.c (_dl_close): Likewise.
12880 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12881 always use __rtld_mrlock_{change,done}. Always free old scope list
12882 here if not l_scope_mem.
12883 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12884 change. Never free scope list here. Just __rtld_mrlock_lock before
12885 the lookup and __rtld_mrlock_unlock it after the lookup.
12886 * elf/dl-sym.c: Likewise.
12887 * include/link.h (struct r_scoperec): Remove.
12888 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12889 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12891 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12893 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12895 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12897 * configure.in: Disable building profile libraries by default.
12899 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12901 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12902 as signed longs, check for x_base + pos overflow.
12903 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12904 * sunrpc/tst-xdrmem2.c: New test.
12906 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12908 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12909 _dl_lookup_symbol_x code.
12911 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12913 * elf/dl-runtime.c: Include sysdep-cancel.h.
12914 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12915 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12916 instead of catomic_* macros.
12917 * elf/dl-sym.c: Include sysdep-cancel.h.
12918 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12919 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12920 * elf/dl-close.c: Include sysdep-cancel.h.
12921 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12922 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12923 * elf/dl-open.c: Include sysdep-cancel.h.
12924 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12925 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12927 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12930 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12931 fastbin rather than end of fastbin array.
12933 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12935 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12937 * sysdeps/x86_64/bits/atomic.h
12938 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12939 (catomic_decrement): Use correct body macro.
12941 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12943 * include/atomic.h: Add a unique prefix to all local variables
12945 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12947 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12950 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12953 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12955 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12957 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12960 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12961 determine highest fast bin to consolidate, always look into all of
12963 (do_check_malloc_state): Only require for empty bins for large
12964 sizes in main arena.
12966 * libio/stdio.h: Add more __wur attributes.
12968 * elf/dl-minimal.c (realloc): Optimize last patch.
12970 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12973 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12974 and use memcpy() if it does.
12976 2006-11-12 Andreas Jaeger <aj@suse.de>
12979 * manual/search.texi (Hash Search Function): Clarify.
12980 (Array Search Function): Clarify.
12982 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12985 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12987 * math/atest-exp2.c (read_mpn_hex): Likewise.
12988 * math/atest-sincos.c (main): Likewise.
12990 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12992 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12993 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12994 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12996 * Versions.def: Add GLIBC_2.6 for libc.
12998 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13000 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13002 2006-10-11 Jakub Jelinek <jakub@redhat.com>
13004 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13006 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13008 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13009 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13011 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13013 * include/atomic.c: Define catomic_* operations.
13014 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
13015 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13016 * malloc/memusage.c: Likewise.
13017 * gmon/mcount.c: Likewise.
13018 * elf/dl-close.c: Likewise.
13019 * elf/dl-open.c: Likewise.
13020 * elf/dl-profile.c: Likewise.
13021 * elf/dl-sym.c: Likewise.
13022 * elf/dl-runtime.c: Likewise.
13023 * elf/dl-fptr.c: Likewise.
13024 * resolv/res_libc.c: Likewise.
13026 2006-10-10 Ulrich Drepper <drepper@redhat.com>
13028 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13029 components which lack them.
13031 * nis/nis_subr.c (nis_getnames): Make sure that we always return
13032 at least one entry consisting of the parameter concatenated with
13035 2006-10-10 Roland McGrath <roland@frob.com>
13037 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13038 * sysdeps/mach/hurd/futimes.c: Likewise.
13039 * sysdeps/mach/hurd/lutimes.c: Likewise.
13041 2006-10-09 Ulrich Drepper <drepper@redhat.com>
13042 Jakub Jelinek <jakub@redhat.com>
13044 Implement reference counting of scope records.
13045 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13046 from the list in objects which remain. Always allocate new scope
13048 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13049 don't resize, allocate a new one.
13050 * elf/dl-runtime.c: Update reference counters before using a scope
13052 * elf/dl-sym.c: Likewise.
13053 * elf/dl-libc.c: Adjust for l_scope name change.
13054 * elf/dl-load.c: Likewise.
13055 * elf/dl-object.c: Likewise.
13056 * elf/rtld.c: Likewise.
13057 * include/link.h: Include <rtld-lowlevel.h>. Define struct
13058 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
13059 Add l_scoperec_lock.
13060 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13061 * sysdeps/generic/rtld-lowlevel.h: New file.
13063 * include/atomic.h: Rename atomic_and to atomic_and_val and
13064 atomic_or to atomic_or_val. Define new macros atomic_and and
13065 atomic_or which do not return values.
13066 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13068 * sysdeps/i386/i486/bits/atomic.h: Likewise.
13070 * po/sv.po: Update from translation team.
13072 2006-10-07 Ulrich Drepper <drepper@redhat.com>
13074 * Versions.def: Add GLIBC_2.6 to libpthread.
13076 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13077 (versioned_symbol): Likewise.
13078 (compat_symbol): Likewise.
13080 * po/tr.po: Update from translation team.
13082 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13084 * nis/Banner: Removed. It's been integral part forever and the
13085 author info is incomplete anyway.
13086 * libio/Banner: Likewise.
13088 * nis/nis_table.c (nis_list): If __follow_path fails in the new
13089 code, make sure the nis_freeresult call doesn't crash and that the
13090 result is reported correctly.
13092 2006-09-27 Jakub Jelinek <jakub@redhat.com>
13094 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13095 when callback is NULL.
13097 * nis/Versions (libnss_nisplus): Add
13098 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13099 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13100 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13101 _nss_create_tablename): Rename to...
13102 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13103 ... these. No longer static.
13104 (internal_setgrent): Adjust users.
13105 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13106 Don't use locking around _nss_grp_create_tablename call.
13107 * nis/nss_nisplus/nisplus-initgroups.c: New file.
13109 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13111 * version.h (VERSION): Bump to 2.5.90 for new development tree.
13113 2006-10-06 Andreas Jaeger <aj@suse.de>
13115 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13117 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13119 * po/pl.po: Update from translation team.
13121 * nscd/nscd.c (main): Fix typo in message.
13122 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13124 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13127 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13128 errno.h, signal.h, unistd.h and sysdep-cancel.h.
13129 (__sigprocmask): Define.
13131 2006-10-02 Ulrich Drepper <drepper@redhat.com>
13133 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13136 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13138 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13139 in oldtotal and newtotal calculation.
13140 * nscd/nscd-client.h (struct mapped_database): Add datasize
13142 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13143 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13145 (__nscd_cache_search): Add checks to make sure we never reference
13146 data beyond the current mapping.
13148 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
13150 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13151 variables const to avoid compiler warnings.
13153 * io/fts.c (fts_close): Remove redundant checks.
13154 (fts_build): Likewise.
13155 (fts_palloc): Likewise.
13157 * manual/message.texi (Advanced gettext functions,
13158 Using gettextized software): Fix typos.
13160 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13162 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13163 explain why there are no leaks.
13165 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13167 * libio/wmemstream.c: Include <wchar.h>.
13168 * libio/bug-wmemstream1.c: Likewise.
13169 * libio/tst-wmemstream1.c: Likewise.
13170 * libio/tst-wmemstream2.c: Likewise.
13172 * version.h (RELEASE): Bump to 2.5.
13173 * README: Regenerated.
13175 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13178 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13179 found no group members.
13180 Patch by Petr Baudis.
13182 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13184 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13185 assert bootstrap_map.l_tls_modid is zero.
13186 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13189 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13191 * libio/stdio.h: Move open_wmemstream prototype to ...
13192 * wcsmbs/wchar.h: ... here.
13194 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13197 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13198 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13199 __{,l}chown to handle the rest.
13200 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13201 fchownat syscall and __ASSUME_32BITUIDS case inline, call
13202 __{,l}chown to handle the rest.
13203 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13205 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13206 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13209 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13210 time, rather allocate increasingly bigger arrays of pointers, if
13211 possible with alloca, if too large with malloc.
13213 2006-09-24 Jakub Jelinek <jakub@redhat.com>
13215 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13217 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13219 2006-09-24 Ulrich Drepper <drepper@redhat.com>
13221 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13223 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13224 IFA_F_HOMEADDRESS flag for interfaces.
13225 * include/ifaddrs.h (struct in6addrinfo): Define
13228 2006-09-21 Jakub Jelinek <jakub@redhat.com>
13231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13232 PTR_DEMANGLE3): Define.
13233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13234 PTR_DEMANGLE3): Likewise.
13235 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13236 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13238 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13240 2006-09-20 Jakub Jelinek <jakub@redhat.com>
13242 * po/libc.pot: Regenerated.
13243 * po/be.po: Updated.
13244 * po/ca.po: Likewise.
13245 * po/cs.po: Likewise.
13246 * po/da.po: Likewise.
13247 * po/de.po: Likewise.
13248 * po/el.po: Likewise.
13249 * po/en_GB.po: Likewise.
13250 * po/es.po: Likewise.
13251 * po/fi.po: Likewise.
13252 * po/fr.po: Likewise.
13253 * po/gl.po: Likewise.
13254 * po/hr.po: Likewise.
13255 * po/hu.po: Likewise.
13256 * po/ja.po: Likewise.
13257 * po/ko.po: Likewise.
13258 * po/nb.po: Likewise.
13259 * po/nl.po: Likewise.
13260 * po/pl.po: Likewise.
13261 * po/pt_BR.po: Likewise.
13262 * po/ru.po: Likewise.
13263 * po/rw.po: Likewise.
13264 * po/sk.po: Likewise.
13265 * po/sv.po: Likewise.
13266 * po/tr.po: Likewise.
13267 * po/zh_CN.po: Likewise.
13268 * po/zh_TW.po: Likewise.
13271 * iconv/iconv_prog.c (main): Fix spelling in error message.
13272 * iconv/iconvconfig.c (main): Likewise.
13273 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13274 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13275 * locale/programs/localedef.c (main): Likewise.
13276 * locale/programs/repertoire.c (repertoire_read): Likewise.
13277 * timezone/zdump.c (main): Likewise.
13278 * nscd/connections.c (handle_request): Fix spelling in log message.
13279 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13281 2006-09-20 Ulrich Drepper <drepper@redhat.com>
13283 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13286 2006-09-20 Andreas Jaeger <aj@suse.de>
13288 * math/libm-test.inc (lrint_test_upward): Fix typo.
13290 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13293 * math/libm-test.inc (lrint_test_tonearest): New function.
13294 (lrint_test_towardzero): New function.
13295 (lrint_test_downward): New function.
13296 (lrint_test_upward): New function.
13297 (main): Run these new tests.
13298 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13299 of values near to 0.
13300 (two52): Use double not long double.
13301 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13302 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13303 (two23): Use float not double.
13304 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13305 (two23): Use float not double.
13306 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13307 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13308 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13309 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13311 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13313 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13314 Cast sp to unsigned long to avoid compiler warning.
13315 Use __makecontext_ret function instead of a trampoline on the stack.
13316 (__makecontext_ret): New function.
13317 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13319 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13321 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13322 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13325 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13327 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13328 sure no reference to the unloaded map's search list remains in the
13329 dependency's scope.
13331 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13333 * elf/Makefile: Add rules to build and run unload7 test.
13334 * elf/unload7.c: New test.
13335 * elf/unload7mod1.c: New file.
13336 * elf/unload7mod2.c: New file.
13338 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13340 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13341 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13342 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13343 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13344 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13345 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13346 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13347 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13348 PTRACE_GETEVENTMSG): Likewise.
13349 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13352 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13354 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13355 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13356 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13357 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13359 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13361 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13362 write '\0' to the fd.
13363 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13364 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13365 Change regs to unsigned long pointer from unsigned int, fix fscr
13368 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13370 * io/Makefile (CFLAGS-fstatat.c): Set.
13371 (CFLAGS-fstatat64.c): Likewise.
13372 (CFLAGS-mknodat.c): Likewise.
13374 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13375 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13376 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13377 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13379 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13380 Steven Munroe <sjmunroe@us.ibm.com>
13382 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13383 names to the beginning. Rename "cell" to "cellbe".
13384 (_dl_powerpc_platforms): New.
13385 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13386 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13387 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13388 (_DL_HWCAP_PLATFORM): Define to new mask.
13389 (_dl_platform_string, _dl_string_platform): New functions.
13390 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13391 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13393 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13396 * README.libm: Fix a thinko in sqrt algorithm description.
13399 * manual/string.texi (argz_delete): Fix prototype.
13400 Patch by <alpt@freaknet.org>.
13402 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13405 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13406 * io/tst-fcntl.c (do_prepare): Likewise.
13407 * posix/tst-exec.c (do_prepare): Likewise.
13408 * posix/tst-preadwrite.c (do_prepare): Likewise.
13409 * posix/tst-spawn.c (do_prepare): Likewise.
13410 * posix/tst-truncate.c (do_prepare): Likewise.
13411 * rt/tst-aio.c (do_prepare): Likewise.
13412 * rt/tst-aio64.c (do_prepare): Likewise.
13413 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13416 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13419 * time/mktime.c (guess_time_tm): Fix overflow detection.
13420 * time/Makefile (tests): Add bug-mktime1.
13421 * time/bug-mktime1.c: New file.
13424 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13425 (mremap): Likewise.
13427 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13430 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13431 Ensure relocation doesn't clobber any bits outside of the
13432 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13433 R_SPARC_HI22 and R_SPARC_H44.
13436 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13437 (long) (MINSIZE + nb - old_size) is positive.
13439 * malloc/arena.c (grow_heap): When growing bail even if new_size
13443 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13446 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13448 * posix/regex_internal.c (re_string_reconstruct): Handle
13449 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13450 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13451 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13452 re_string_context_at.
13453 * posix/Makefile: Add rules to build and run bug-regex26 test.
13454 * posix/bug-regex26.c: New test.
13456 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13457 rather than col_sym_free. Move seqp declaration earlier.
13459 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13461 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13463 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13464 decl before first goto out.
13466 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13468 * Makerules (shlib.lds): If have-hash-style, put .hash section
13469 at the end of the RO segment.
13471 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13473 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13474 style hash table format is used.
13476 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13478 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13479 randomization rather than before.
13480 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13482 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13484 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13486 * malloc/malloc.c (_int_malloc): Use full list insert and not
13487 shortcut which assumes the list is empty for large requests
13490 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13492 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13494 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13495 and offout arguments to the prototype.
13496 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13497 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13498 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13499 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13500 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13501 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13502 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13503 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13505 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13507 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13509 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13512 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13514 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13515 only if herrno is NETDB_INTERNAL. Handle errors other than
13516 ERANGE outside of the loops, handle TRY_AGAIN.
13518 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13519 if other's ctype category was missing.
13520 * locale/programs/ld-collate.c (collate_read): Return if
13521 copy_locale's collate category is missing.
13523 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13526 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13527 arenas if allocation failed.
13528 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13530 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13532 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13534 (malloc_state): Reduce bins size by 2.
13535 (_int_malloc): Fix test for large enough buffer for early termination.
13536 When no unsorted block matches perfectly and an exiting block has
13537 to be split, use full list insert and not shortcut which assumes
13540 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13543 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13545 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13548 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13549 symbol require exact match (these are PLTs).
13550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13551 (_dl_ppc64_addr_sym_match): Likewise.
13554 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13555 If symbol has a value use it.
13556 * elf/tst-dladdr1.c: New file.
13557 * elf/Makefile: Add rules to build and run tst-addr1.
13559 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13561 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13562 keeps failing and heap growth or new heap creation isn't
13564 * malloc/tst-malloc.c (main): Add new tests.
13566 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13569 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13570 as in the x86-64 code to use bswap.
13572 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13575 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13577 * posix/bits/unistd.h: Likewise.
13579 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13582 * string/strchr.c: Add cast to avoid warning.
13584 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13586 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13587 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13588 limit is needed to avoid the exploding of the address space
13589 requirement for secondary heaps.
13590 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13591 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13593 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13596 * Makerules (depfiles): Handle extra-test-objs the same as
13598 (common-mostlyclean): Likewise.
13599 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13601 * elf/Makefile (extra-objs): Likewise.
13602 * stdlib/Makefile (extra-objs): Likewise.
13604 2006-08-14 Eric Blake <ebb9@byu.net>
13607 * misc/error.h: Assume C89 or better.
13608 * misc/error.c: Likewise.
13610 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13613 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13614 __ASSUME_ATFCTS is defined.
13616 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13618 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13619 to sort in each call.
13621 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13622 is empty simply return and use next service.
13623 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13625 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13626 tells us when not finding a charmap file is an error.
13627 * locale/programs/charmap.h: Adjust charmap_read prototype.
13628 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13629 cannot find a charmap.
13630 * locale/programs/localedef.c (main): Adjust charmap_read call.
13632 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13634 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13635 sysdeps/posix/pause.c implementation instead.
13637 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13639 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13642 2006-08-13 Andreas Schwab <schwab@suse.de>
13644 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13645 Don't clobber caller's LRSAVE.
13646 (_dl_prof_resolve): Likewise.
13648 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13651 * libio/memstream.c (open_memstream): Allocate initial buffer with
13653 * libio/wmemstream.c (open_wmemstream): Likewise.
13654 * libio/strops.c: Pretty printing.
13655 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13656 (enlarge_userbuf): New function.
13657 (_IO_str_seekoff): Call it if seek position is larger than current
13659 * libio/wstrops.c: Likewise.
13660 * libio/vasprintf.c: Add comment as to why we do not have to use
13661 calloc instead of malloc to allocate initial buffer.
13662 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13663 * libio/bug-memstream1.c: New file.
13664 * libio/bug-wmemstream1.c: New file.
13666 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13668 * libio/wstrops.c: Remove dead macro definitions and comments.
13669 * libio/strops.c: Likewise.
13672 * login/utmpname.c (__utmpname): Remove unnecessary test.
13674 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13677 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13680 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13683 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13685 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13686 setting of CPU clocks.
13688 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13691 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13692 since C99 requires the result to promote to 'int' when uint_least8_t
13693 and uint_least16_t promote to 'int'.
13695 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13698 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13699 lenght of one output field, correct bitmask creation.
13700 * locale/programs/ld-time.c: Add alignment.
13703 * misc/error.c: Add space between program name and message if file
13706 2006-08-03 Eric Blake <ebb9@byu.net>
13709 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13711 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13713 * malloc/memusagestat.c: Silence warnings.
13715 * malloc/malloc.c: Dynamically size mmap treshold if the program
13716 frees mmaped blocks.
13717 Patch by Valerie Henson and Arjan van de Ven.
13719 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13721 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13724 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13725 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13726 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13727 Only provide var definitions in strtol_l (or for *ull*
13730 * stdio-common/bug16.c (tests): New array.
13731 (do_tests): Allow the first hexadecimal digit
13732 to be 1, 2, 4 or 8. Do 3 additional tests.
13734 * sysdeps/s390/fpu/libm-test-ulps: Update.
13736 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13737 fchownat syscall if available.
13738 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13739 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13740 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13742 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13744 * nis/nis_xdr.c: Avoid some function calls.
13746 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13747 Ulrich Drepper <drepper@redhat.com>
13749 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13750 short cut if only one name component is stripped away.
13752 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13754 * nis/nis_call.c: Minor cleanups throughout.
13755 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13756 (first_shoot): Add search_parent_first parameter. Only if it is set
13757 search parent server first.
13758 If directory for table found through cold start cache is not the same
13759 as referenced in the cache, don't use it.
13760 (__nisfind_server): Take additional parameter. Pass it on to
13762 (__prepare_niscall): Adjust __nisfind_server call.
13763 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13764 * nis/nis_table.c: Adjust __nisfind_server call.
13765 * nis/nis_lookup.c: Likewise.
13766 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13768 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13771 * math/s_cacosh.c: Return values from positive branch.
13772 * math/s_cacoshf.c: Likewise.
13773 * math/s_cacoshl.c: Likewise.
13776 * sysvipc/sys/msg.h: Change return value to ssize_t.
13777 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13778 * sysvipc/msgrcv.c: Likewise.
13779 * include/sys/msg.h: Likewise.
13781 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13782 test introduced in patch for bz #661.
13783 (getgrouplist): Simplify code a bit. Don't allocate one additional
13784 element for NEWGROUPS.
13787 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13788 'f', use '1' as leading digit not '\1'.
13789 * stdio-common/Makefile (tests): Add bug16.
13790 * stdio-common/bug16.c: New file.
13793 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13794 and don't try to open it. The patch introducing the macro
13795 contained a bug and used the same file name as the new file
13796 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13797 this out completely.
13800 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13801 Patch by Jerry James <Jerry.James@usu.edu>.
13803 * rt/Makefile (tests): Add tst-clock2.
13804 * rt/tst-clock2.c: New file.
13807 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13808 function and its parameters and pass it to new thread.
13809 (__gai_notify): Add support for alternative waiting for completion.
13810 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13811 waiting for completion.
13812 * resolv/getaddrinfo_a.c: Likewise.
13813 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13814 waiting for completion is used.
13815 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13816 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13817 * resolv/gai_error.c: Likewise.
13818 * resolv/gai_sigqueue.c: Likewise.
13820 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13822 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13823 errno to EBADF and return MACH_PORT_NULL.
13825 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13828 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13830 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13832 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13833 walk them instead of the symbol table.
13835 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13838 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13839 status of NSS calls, not the number of returned entries.
13841 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13842 request_key, keyctl.
13844 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13846 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13848 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13850 * elf/tst-auditmod1.c: Fix typo in #error.
13852 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13854 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13856 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13858 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13860 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13861 that the directory is empty even on non-POSIX filesystems.
13863 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13865 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13867 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13868 the backend NSS module. If backend setgrent call failed, don't have
13869 internal_setgrent fail. Just remember this until it is needed.
13870 * nis/nss_compat/compat-pwd.c: Likewise.
13871 * nis/nss_compat/compat-spwd.c: Likewise.
13873 2006-07-30 Roland McGrath <roland@redhat.com>
13875 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13876 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13877 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13878 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13880 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13881 (nanosleep_not_cancel): New macro.
13882 (sigsuspend_not_cancel): new macro.
13883 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13884 (do_sigsuspend): Define as inline.
13885 (__sigsuspend): Always use do_sigsuspend.
13886 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13887 * include/signal.h: Declare __sigsuspend_nocancel.
13888 * sysdeps/posix/pause.c
13889 [! NO_CANCELLATION] (__pause_nocancel): New function.
13891 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13892 * include/time.h (__nanosleep_nocancel): Likewise.
13894 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13896 * locale/programs/localedef.c (add_to_readlist): Rename local
13897 variables to avoid confusion.
13899 * locale/programs/charmap.c (charmap_read): Emit error message if
13900 charmap couldn't be found or read.
13902 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13904 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13905 __ASSUME_FUTEX_LOCK_PI.
13906 * include/time.h: Declare __nanosleep_nocancel.
13907 * include/unistd.h: Declare __pause_nocancel.
13909 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13910 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13911 get the __stack_chk_fail_local definition when it's needed.
13913 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13915 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13916 * dlfcn/bug-atexit3.c: New file.
13917 * dlfcn/bug-atexit3-lib.cc: New file.
13919 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13920 used when the namespace is not the base namespace.
13922 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13924 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13925 (__new_exitfn): Bump it in every successful call.
13926 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13927 more exit handlers, call them right away.
13928 * stdlib/exit.h: Declare __new_exitfn_called.
13930 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13932 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13933 calling registered handler.
13935 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13936 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13937 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13938 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13939 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13940 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13941 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13942 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13944 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13946 * elf/dl-lookup.c (dl_new_hash): New functions.
13947 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13948 value here. Compute new-style hash value. Pass new hash value
13949 and reference to variable with the old value to do_lookup_x.
13950 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13951 old-style hash table.
13952 (_dl_debug_bindings): Pass new hash value and reference to variable
13953 with the old value to do_lookup_x.
13954 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13955 new-style hash value and change old-style hash value parameter to
13956 be a reference. Reoganize functions to determine whether
13957 new-style hash table is available. Only fall back on old-style
13958 table. If old-style hash value is needed, compute it here.
13959 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13961 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13962 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13963 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13964 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13965 * Makeconfig: If linker supports --hash-style option add it to all
13966 linker command lines to build DSOs.
13967 * config.make.in: Define have-hash-style.
13968 * configure.in: Test whether linker supports --hash-style option.
13970 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13971 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13973 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13975 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13978 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13979 RPATH of main map twice.
13981 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13983 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13984 look further, return original strings.
13985 (_nl_find_msg): Do not return found translation if the conversion
13986 failed. Either signal the string is unusable or that something went
13987 wrong and the original should be used.
13989 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13991 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13993 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13996 * misc/insremque.c (insque): Handle prev == NULL.
13997 * misc/Makefile (tests): Add tst-insremque.
13998 * misc/tst-insremque.c: New test.
14000 2006-06-17 Ulrich Drepper <drepper@redhat.com>
14003 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14004 conflict with DL_DST_REQUIRED.
14006 2006-06-16 Ulrich Drepper <drepper@redhat.com>
14008 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14009 match what Solaris does.
14011 2006-06-04 Ulrich Drepper <drepper@redhat.com>
14013 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14014 local_setegid instead of seteuid and setegid.
14015 * sysdeps/generic/local-setxid.h: New file.
14016 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14018 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14020 * string/Makefile (tests): Add bug-envz1.
14021 * string/bug-envz1.c: New file.
14023 2006-06-02 Jakub Jelinek <jakub@redhat.com>
14025 * posix/regex_internal.c (re_string_skip_chars): If no character has
14026 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
14027 to the byte which couldn't be converted.
14028 (re_string_reconstruct): Don't clear valid_raw_len before calling
14029 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
14030 tip_context using re_string_context_at.
14031 * posix/Makefile: Add rules to build and run bug-regex25 test.
14032 * posix/bug-regex25.c: New test.
14034 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
14037 * string/envz.c (envz_strip): Correct erroneously reversed src
14038 and dest parameters to memmove() invocation.
14040 2006-05-30 Jakub Jelinek <jakub@redhat.com>
14042 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14043 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14044 to make sure the database has been already invalidated.
14045 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
14046 after the cache has been invalidated. Use pthread_mutex_lock rather
14047 than pthread_mutex_trylock if fd != -1.
14048 * nscd/connections.c (invalidate_cache): Add fd argument, write
14049 response to fd if not calling prune_cache, pass fd to prune_cache.
14050 (handle_request): Adjust invalidate_cache caller.
14051 (nscd_run): Pass -1 as fd to prune_cache.
14053 2006-05-30 Ulrich Drepper <drepper@redhat.com>
14055 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14058 2006-05-29 Ulrich Drepper <drepper@redhat.com>
14060 * nscd/nscd.h (struct database_dyn): Add prunelock field.
14061 * nscd/cache.c (prune_cache): Take prunelock before starting the
14062 work. Just return in case it is already taken.
14063 * nscd/connections.c (dbs): Initialize .prunelock.
14065 2006-05-25 Ulrich Drepper <drepper@redhat.com>
14067 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14068 copying. No need to allocate new array for group members. Just
14069 move the pointers and update the size.
14071 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14072 Avoid memory leak in case realloc fails. Simplification for
14073 better code generation.
14075 Avoid deprecation warning because of libc_hidden_proto for
14076 inet6_option_alloc.
14077 * inet/inet6_option.c (option_alloc): Renamed from
14078 inet6_option_alloc. Made static.
14079 (inet6_option_alloc): Now a simple wrapper around option_alloc.
14080 (inet6_option_append): Call option_alloc.
14081 * include/netinet/in.h: Remove libc_hidden_proto for
14082 inet6_option_alloc.
14084 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14085 for cleanup when cb!=NULL [Coverity CID 233].
14087 2006-05-24 Ulrich Drepper <drepper@redhat.com>
14090 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14091 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14092 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14093 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14094 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14095 and inet6_rth_getaddr.
14096 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14098 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14099 Mark inet6_option_* interfaces as deprecated.
14100 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14101 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14102 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14103 inet6_rth_segments, and inet6_rth_getaddr.
14104 * inet/inet6_opt.c: New file.
14105 * inet/inet6_rth.c: New file.
14107 * inet/netinet/icmp6.h: Pretty printing.
14110 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14112 2006-05-23 Ulrich Drepper <drepper@redhat.com>
14114 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14115 doing it all here. When server does not know the answer do not
14116 fail immediate, try parent first.
14118 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14121 2006-05-20 Ulrich Drepper <drepper@redhat.com>
14123 * nis/nis_call.c (__prepare_niscall): New function. Split out
14125 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14127 (__follow_path): New function. Split out from nis_list.
14128 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14130 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14132 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14134 * nis/Versions: Export __prepare_niscall, __create_ib_request,
14135 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14136 from libnsl for version GLIBC_PRIVATE.
14137 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14138 Remove entry parameter from _nss_nisplus_parse_pwent and
14139 _nss_nisplus_parse_grent.
14140 * nis/nss_nisplus/nisplus-parser.c: Likewise.
14141 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14142 again. Rewrite getpwent handling to not use nis_first_entry and
14143 nis_next_entry. Roll out own niscall handling.
14144 * nis/nss_nisplus/nisplus-grp.c: Likewise.
14146 * sunrpc/xdr_rec.c: Fix typo in comment.
14148 2006-05-19 Ulrich Drepper <drepper@redhat.com>
14150 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14153 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14154 to allocate memory for my_pollfd. Better initialization of
14155 cb_is_running. Use TEMP_FAILURE_RETRY.
14157 * malloc/memusage.sh (memusageso): Add quotes.
14158 (memusagestat): Likewise.
14159 * debug/xtrace.sh (pcprofileso): Likewise.
14160 (pcprofiledump): Likewise.
14161 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14163 * malloc/Makefile ($(objpfx)memusage): Likewise.
14165 * nis/nis_callback.c (__nis_create_callback): Calls to
14166 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14167 asprintf call fails.
14169 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14170 no uninitialized memory is passed to sendto.
14172 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14174 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14175 of snprintf+strdup. Handle OOM.
14176 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14177 cb->serv together. Remove now obsolete free calls.
14178 (__nis_destroy_callback): Remove now obsolete free call.
14180 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14182 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14183 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14184 and ULA respectively). Set precedence for IPv4 address to 10 as
14185 defined in RFC3484 for preferring IPv6.
14186 * posix/gai.conf: Update to match the new default tables.
14188 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14190 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14191 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14192 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14193 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14195 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14197 (init_nss_interface): Remove initialization of these variables.
14199 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14201 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14202 nis_free_directory forward to avoid duplication.
14204 2006-05-17 Ulrich Drepper <drepper@redhat.com>
14206 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14207 rec_dirsearch returning NULL.
14208 (first_shoot): Handle __nis_finddirectory returning NULL.
14209 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14211 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14212 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14214 2006-05-17 Jakub Jelinek <jakub@redhat.com>
14216 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14219 2006-05-15 Ulrich Drepper <drepper@redhat.com>
14221 * include/rpc/pmap_prot.h: Mark all functions as hidden.
14223 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14224 * nscd/nscd_getgr_r.c: Likewise.
14226 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14228 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14229 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14231 * stdlib/longlong.h (__clz_tab): Mark as hidden.
14233 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14235 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14237 * include/rpc/auth.h: Mark xdr_des_block_internal and
14238 xdr_opaque_auth_internal as hidden.
14240 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14243 * include/rpc/xdr.h: Mark all _internal functions as hidden.
14245 * misc/getusershell.c (okshells): Don't use static initializers,
14248 * stdlib/fmtmsg.c (keywords): Change type of len element to
14249 uint32_t to not waste space on 64bit machines.
14251 * locale/setlocale.c: Change _nl_category_names into a string.
14252 Add new _nl_category_name_idxs. Change all users.
14253 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14254 Declare _nl_category_name_idxs.
14255 * locale/findlocale.c: Adjust for _nl_category_names change.
14256 * locale/loadlocale.c: Likewise.
14257 * locale/newlocale.c: Likewise.
14258 * intl/dcigettext.c: Likewise.
14260 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14261 (add_alias2): ...here. New function.
14262 (__gconv_read_conf): Simplify builtin alias handling.
14263 (builtin_aliases): Convert to string to avoid relocations.
14264 * iconv/gconv_builtin.h: Add comment about correct formatting.
14266 2006-05-15 Jakub Jelinek <jakub@redhat.com>
14268 * resolv/res_debug.c (loc_ntoa): Make error const.
14270 2006-05-14 Andreas Schwab <schwab@suse.de>
14272 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14274 2006-05-12 Jakub Jelinek <jakub@redhat.com>
14276 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14277 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14278 sizeof (cpu_set_t).
14280 2006-05-11 Ulrich Drepper <drepper@redhat.com>
14282 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14284 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14286 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14287 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14289 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14290 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14292 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14293 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14296 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14297 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14300 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14301 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14303 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14304 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14306 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14307 * include/rpcsvc/nis_callback.h: New file.
14309 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14310 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14312 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14313 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14315 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14316 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14318 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14319 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14321 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14322 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14325 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14326 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14328 * nis/nis_error.c: Remove table of strings. Use position
14329 independent mechanism.
14330 * nis/nis_error.h: New file.
14332 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14334 * locale/programs/ld-time.c (time_finish): If wide era name or
14335 format aren't provided, set both wname and wformat to L"".
14337 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14339 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14340 results if the call was succesful.
14342 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14344 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14347 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14349 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14351 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14353 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14354 caller makes sure this is not the case.
14355 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14357 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14359 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14362 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14363 [Coverity CID 229, 230]
14365 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14367 (hol_help): Likewise. [Coverity CID 226, 227]
14369 * string/argz-replace.c (__argz_replace): Unconditionally call
14370 free on SRC. [Coverity CID 225]
14372 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14373 the return value of __nis_default_owner and __nis_default_group,
14374 it has been especially allocated. [Coverity CID 224]
14376 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14377 searchgroup and searchowner. Significantly simplified.
14378 (__nis_default_owner): Remove duplication. Do not locally copy the
14379 string before duplicating it.
14380 (__nis_default_group): Likewise.
14382 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14383 we must clear the variable before calling __nisfind_server.
14385 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14386 nis_getnames. [Coverity CID 223]
14388 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14389 xmalloc to allocate local repertoire name. [Coverity CID 222]
14391 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14392 allocate memory for the input to add_bytes. [Coverity CID 221]
14394 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14395 was allocated here. [Coverity CID 219, 220]
14397 * posix/getconf.c (print_all): Free confstr data after printing.
14400 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14401 list allocation fails. [Coverity CID 215]
14403 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14406 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14407 string is NULL. [Coverity CID 212]
14408 * argp/Makefile: Add rules to build and run bug-argp1.
14409 * argp/bug-argp1.c: New file.
14411 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14413 * stdlib/canonicalize.c (__realpath): Likewise.
14415 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14416 pointer. [Coverity CID 206]
14418 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14419 in statically linked code.
14420 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14421 statically built code, be prepared to have no link map.
14424 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14425 dgettext calls. [Coverity CID 204]
14427 * argp/argp-help.c (struct uparams): Remove valid member. Change
14429 (uparam_names): Reduce size. Avoid relative relocations.
14430 Moved to read-only segment.
14431 (fill_in_uparams): Update for new layout.
14433 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14434 assumed to always be != NULL. [Coverity CID 202]
14436 * argp/argp-help.c (hol_entry_help): Remove some dead code
14437 [Coverity CID 200].
14439 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14440 away a few more unconditional yperr2nss calls.
14441 (_nss_nis_getservbyname_r): Likewise.
14443 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14445 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14448 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14449 that unused memory passed to sendto is nevertheless initialized.
14452 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14453 possibly unaligned memory accesses.
14455 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14456 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14457 and __putlong respectively. Correct buffer overflow check for
14460 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14462 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14463 (send_dg): Rewrite error handling to be more compact and avoid
14464 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14466 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14468 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14469 instead of ns_get16.
14470 (res_queriesmatch): Likewise. Minor optimization.
14473 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14474 __libc_res_nsend might reallocate the buffer for the answer. In
14475 this case we have to reload the HP pointer.
14477 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14479 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14480 some branch prediction hints.
14482 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14483 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14484 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14485 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14486 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14487 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14488 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14489 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14491 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14493 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14494 by a GOT relocation to make Scrt1.o position independent.
14495 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14497 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14498 six system call parameters.
14499 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14501 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14503 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14506 * sunrpc/svc_udp.c (BZERO): Remove definition.
14508 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14510 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14511 (des_SPtrans): Use uint32_t type.
14512 (des_skb): Likewise.
14514 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14516 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14519 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14522 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14524 * locale/programs/ld-address.c (address_finish): Fix one more
14525 place where the iso639 array might be accessed beyond the limits.
14527 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14529 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14530 filling it for the first time.
14532 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14533 Adjust all callers.
14534 Free res object content before returning.
14536 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14538 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14541 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14542 cleanup for initial thread, just the free call on TVP.
14544 * nscd/gai.c (__getline): Define.
14547 See ChangeLog.16 for earlier changes.