1 2009-07-30 Alan Modra <amodra@bigpond.net.au>
3 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
4 (R_PPC_REL16*): Correct comments.
5 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
6 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
7 R_PPC64_REL16_HA): Define.
8 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
9 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
10 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
11 Delete unused "reloc" param.
12 (__process_machine_rela): Handle R_PPC_IRELATIVE.
13 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
15 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
17 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
18 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
21 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
24 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
25 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
29 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
30 parameter, specifying length of prefix.
31 * stdio-common/tempname.c: Likewise.
32 * include/stdio.h: Adjust prototypes.
33 * libio/oldtmpfile.c: Adjust caller.
34 * misc/mkdtemp.c: Likewise.
35 * misc/mkostemp.c: Likewise.
36 * misc/mkostemp64.c: Likewise.
37 * misc/mkstemp.c: Likewise.
38 * misc/mkstemp64.c: Likewise.
39 * misc/mktemp.c: Likewise.
40 * stdio-common/tempnam.c: Likewise.
41 * stdio-common/tmpfile.c: Likewise.
42 * stdio-common/tmpnam.c: Likewise.
43 * stdio-common/tmpnam_r.c: Likewise.
44 * misc/mkstemps.c: New file.
45 * misc/mkstemps64.c: New file.
46 * stdlib/stdlib.h: Add prototypes.
47 * misc/Makefile (routines): Add mkstemps and mkstemps64.
48 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
50 2009-10-29 Ulrich Drepper <drepper@redhat.com>
52 * locale/iso-639.def: Add sml entry.
55 * resolv/res_send.c (send_dg): Initialize resplen.
58 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
59 definition to the kernel's.
60 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
62 2009-08-18 Anders Johansson <ajohansson@novell.com>
64 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
65 offsets and record sizes in assert()s and response sending.
66 * nscd/grpcache.c: Likewise.
67 * nscd/hstcache.c: Likewise.
68 * nscd/initgrcache.c: Likewise.
69 * nscd/pwdcache.c: Likewise.
71 2009-10-29 Ulrich Drepper <drepper@redhat.com>
74 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
75 /etc/hosts does not exist set errnop and herrnop appropriately.
76 Patch by Steve Langasek <vorlon@debian.org>.
79 * malloc/malloc.c (malloc_info): Fix typos in format strings.
80 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
83 * login/utmp_file.c (TIMEOUT): Increase to 10.
86 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
87 for file names in case the syscall is not available.
88 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
89 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
90 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
91 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
92 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
93 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
94 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
95 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
96 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
97 * sysdeps/unix/sysv/linux/openat.c: Likewise.
98 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
99 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
100 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
101 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
102 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
103 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
104 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
107 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
108 creation filed, remove the request from the 'requests' list and signal
109 the caller that the request is finished.
112 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
113 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
116 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
117 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
120 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
121 overflows the int return type.
124 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
125 have to compute maxsize_total, we have to update the variables, and
126 the also_total handling must happen after the repair.
129 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
130 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
132 2009-10-27 Andreas Schwab <schwab@redhat.com>
134 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
135 errno is always set when returning unsuccessfully.
137 2009-10-29 Andreas Schwab <schwab@redhat.com>
139 * malloc/memusage.c (update_data): Fix index wraparound handling
140 so that buffer_cnt is actually reset.
142 2009-10-29 Ulrich Drepper <drepper@redhat.com>
145 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
146 of the directory we look at into the static buffer if there is one
147 at the start of the loop.
150 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
151 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
154 * sysdeps/unix/sysv/linux/kernel-features.h: Define
155 __ASSUME_F_GETOWN_EX.
156 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
158 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
160 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
162 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
163 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
164 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
165 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
166 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
167 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
170 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
174 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
175 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
177 2009-10-24 Joseph Myers <joseph@codesourcery.com>
179 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
181 2009-10-27 Jakub Jelinek <jakub@redhat.com>
184 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
185 Reported by Ray Chason.
187 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
189 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
191 * sysdeps/x86_64/multiarch/strchr.S: New file.
192 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
193 * sysdeps/x86_64/multiarch/strrchr.S: New file.
195 2009-10-21 Andreas Schwab <schwab@redhat.com>
197 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
199 2009-10-19 Andreas Schwab <schwab@redhat.com>
201 * include/math.h: Add hidden protos for __exp/__expf/__expl.
202 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
203 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
204 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
205 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
206 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
207 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
208 __ieee751_expl to handle overflow.
210 2009-10-14 David S. Miller <davem@davemloft.net>
212 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
213 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
215 2009-10-13 Andreas Schwab <schwab@redhat.com>
217 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
220 2009-10-08 Ulrich Drepper <drepper@redhat.com>
223 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
224 Patch in part by Steve Ward <planet36@gmail.com>.
227 * stdlib/rand_r.c: Fix typo.
229 * po/cs.po: Update from translation team.
231 2009-10-06 Andreas Schwab <schwab@redhat.com>
233 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
234 returning if RTLD_NOLOAD.
236 2009-10-06 Roland McGrath <roland@redhat.com>
238 * sysdeps/x86_64/multiarch/strstr-c.c
239 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
241 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
242 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
244 * sysdeps/x86_64/multiarch/init-arch.h
245 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
246 (HAS_CPU_FEATURE): New macro.
247 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
248 * sysdeps/x86_64/multiarch/init-arch.c
249 (__get_cpu_features): #undef it before definition.
251 2009-10-05 Andreas Schwab <schwab@redhat.com>
253 * locale/C-time.c: Revert week-1stday back to 19971130 and set
254 first_weekday to 1 and first_workday to 2.
256 2009-10-01 Ulrich Drepper <drepper@redhat.com>
258 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
260 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
261 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
262 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
263 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
264 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
265 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
267 2009-09-28 Andreas Schwab <schwab@redhat.com>
269 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
270 * stdio-common/vfprintf.c: Likewise.
272 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
274 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
275 (mkdirat): Call __directory_name_split_at instead of
276 __directory_name_split.
278 2009-09-28 Ulrich Drepper <drepper@redhat.com>
280 * locale/programs/locale-spec.c (locale_special): If nothing matches
281 fail with an appropriate message.
283 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
285 * configure.in: Exclude binutils 2.X. Support binutils 2.100
288 2009-09-25 Andreas Schwab <schwab@redhat.com>
290 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
291 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
293 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
295 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
297 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
299 * iconvdata/iso646.c (gconv_init): Correctly initialize the
300 character size elements in step data.
302 2009-09-20 Ulrich Drepper <drepper@redhat.com>
304 * po/hu.po: Update from translation team.
305 * po/vi.po: Likewise.
307 2009-09-19 Roland McGrath <roland@redhat.com>
309 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
311 2009-09-15 Roland McGrath <roland@redhat.com>
313 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
314 * nptl/sysdeps/pthread/configure: Regenerated.
315 * nptl/sysdeps/x86_64/configure: Regenerated.
316 * sysdeps/unix/sysv/linux/configure: Regenerated.
317 * sysdeps/x86_64/elf/configure: Regenerated.
319 * Makefile (autoconf-it): Set execute bit only on top-level configure.
321 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
322 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
323 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
324 * configure: Regenerated.
326 2009-09-09 Ulrich Drepper <drepper@redhat.com>
328 * posix/getconf.c (main): Handle -- on command line.
330 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
332 * configure.in: Support binutils 2.100 and 3.0.
334 2009-09-08 Jakub Jelinek <jakub@redhat.com>
336 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
337 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
338 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
339 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
341 2009-09-07 Ulrich Drepper <drepper@redhat.com>
343 * locale/programs/ld-collate.c (struct locale_collate_t): Add
344 unnamed_section_defined field.
345 (collate_read): Test and set unnamed_section_defined.
347 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
350 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
352 * configure.in: Support binutils 2.20.
354 2009-09-03 Ulrich Drepper <drepper@redhat.com>
356 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
357 __strstr_ia32): Add attribute_hidden.
359 2009-09-01 Andreas Schwab <schwab@redhat.com>
361 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
362 parsing of group entry.
364 2009-09-02 Andreas Schwab <schwab@redhat.com>
366 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
367 external buffer. Always discard readahead in internal buffer.
368 * libio/Makefile (tests): Add bug-wsetpos.
369 * libio/bug-wsetpos.c: New file.
371 2009-09-02 Jakub Jelinek <jakub@redhat.com>
373 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
374 Add attribute_hidden.
375 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
376 __strcasestr_sse2): Likewise.
377 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
378 (__fma_fma): Make static.
379 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
380 (__fmaf_fma): Make static.
382 2009-08-31 Andreas Schwab <schwab@redhat.com>
384 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
385 reformulate in-buffer optimisation check to match code in
386 _IO_new_file_seekoff.
388 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
390 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
391 to srwi in 32-bit memcpy for power6.
393 2009-09-01 Andreas Schwab <schwab@redhat.com>
395 * include/stdio.h: Declare hidden proto for fflush.
396 * libio/iofflush.c: Add hidden weak alias for fflush.
398 2009-09-01 Jakub Jelinek <jakub@redhat.com>
400 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
401 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
403 2009-08-31 Andreas Schwab <schwab@redhat.com>
405 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
407 2009-08-31 Ulrich Drepper <drepper@redhat.com>
410 * malloc/malloc.c: Add local assert definition to avoid problems with
411 memory allocation in the real one.
413 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
415 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
417 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
418 turn off SSSE3 on Atom.
420 2009-08-28 Ulrich Drepper <drepper@redhat.com>
422 * stdlib/tst-strtol.c (tests): More tests.
423 * stdlib/tst-strtoll.c (tests): Likewise.
425 2009-08-26 Ulrich Drepper <drepper@redhat.com>
427 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
429 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
431 2009-08-25 Ulrich Drepper <drepper@redhat.com>
433 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
434 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
436 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
438 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
440 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
442 2009-08-25 Joseph Myers <joseph@codesourcery.com>
444 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
446 2009-08-25 Ulrich Drepper <drepper@redhat.com>
448 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
449 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
451 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
453 * sysdeps/x86_64/fpu/s_signbit.S: New file.
454 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
456 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
457 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
459 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
460 leftover YMM_SIZE definition.
462 2009-08-24 Ulrich Drepper <drepper@redhat.com>
464 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
466 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
467 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
469 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
471 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
472 and SET_FLOAT_WORD definitions.
474 2009-08-24 Roland McGrath <roland@redhat.com>
476 * sysdeps/unix/syscall-template.S: New file.
477 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
478 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
479 (compile-syscall): Pass mkdep and -g options as normal.
480 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
481 (common-generated): Don't add them here.
483 2009-08-24 Ulrich Drepper <drepper@redhat.com>
485 * math/s_fdim.c: In case of overflows set errno.
486 * math/s_fdimf.c: Likewise.
487 * math/s_fdiml.c: Likewise.
489 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
490 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
491 are using the inline optimizations.
493 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
494 (__signbitf): Likewise.
496 2009-08-23 Ulrich Drepper <drepper@redhat.com>
498 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
500 * posix/Makefile (tests): Add bug-regex29.
501 * posix/bug-regex29.c: New file.
503 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
504 older POSIX versions are selected.
506 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
508 * stdio-common/printf_fphex.c: Likewise.
509 * stdio-common/tstdiomisc.c: Add more tests.
511 * locale/locale.h: Include xlocale.h and the thread-local locale
512 declarations for XPG7, not XPG6.
514 2009-08-21 Andreas Schwab <schwab@redhat.com>
516 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
517 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
520 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
521 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
523 2009-08-20 Roland McGrath <roland@redhat.com>
525 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
526 Use l_addr instead of l_map_start (dli_fbase).
527 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
528 address when there is no proximate symbol.
529 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
532 2009-08-16 Ulrich Drepper <drepper@redhat.com>
534 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
536 2009-08-14 Ulrich Drepper <drepper@redhat.com>
538 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
539 Also handle SIGINT. In that case only do the cleanup and then
541 (main): Install handler for SIGINT.
543 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
545 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
548 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
550 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
551 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
553 (tests): Add tst-audit6 tst-audit7.
554 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
555 tst-auditmod7a tst-auditmod7b.
556 ($(objpfx)tst-audit6): New.
557 ($(objpfx)tst-audit6.out): Likewise.
558 ($(objpfx)tst-audit7): Likewise.
559 ($(objpfx)tst-audit7.out): Likewise.
560 (tst-audit6-ENV): Likewise.
561 (tst-audit7-ENV): Likewise.
562 (CFLAGS-tst-auditmod6b.c): Likewise.
563 (CFLAGS-tst-auditmod6c.c): Likewise.
564 (CFLAGS-tst-auditmod7b.c): Likewise.
565 * elf/tst-audit6.c: New file.
566 * elf/tst-audit7.c: New file.
567 * elf/tst-auditmod6a.c: New file.
568 * elf/tst-auditmod6b.c: New file.
569 * elf/tst-auditmod6c.c: New file.
570 * elf/tst-auditmod7a.c: New file.
571 * elf/tst-auditmod7b.c: New file.
572 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
573 saving and restoring SSE/AVX registers to ...
574 * sysdeps/x86_64/dl-trampoline.h: This. New file.
576 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
578 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
579 only if SHARED is defined.
580 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
582 2009-08-03 Jim Meyering <meyering@redhat.com>
584 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
586 2009-08-08 Ulrich Drepper <drepper@redhat.com>
588 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
589 section as the other functions for this architecture.
590 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
592 2009-08-07 Ulrich Drepper <drepper@redhat.com>
594 * sysdeps/x86_64/strcmp.S: Add support to compile with
595 USE_SSSE3. In this case palignr is used.
596 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
597 available but SSSE3 is, pick __str{,n}cmp_ssse3.
598 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
599 Add strcmp-ssse3 and strncmp-ssse3.
600 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
601 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
603 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
604 warning through fake initialization.
606 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
608 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
610 2009-08-07 Andreas Schwab <schwab@redhat.com>
612 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
615 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
617 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
618 EBX from EAX = 1. Handle EAX = 11.
620 2009-08-07 Andreas Schwab <schwab@redhat.com>
622 * Makefile (TAGS): Use separate sed -e expressions to avoid \
625 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
627 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
628 hidden IFUNC functions.
629 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
631 * sysdeps/i386/i686/multiarch/strlen.S: New file.
633 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
634 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
636 (CFLAGS-strcspn-c.c): Define.
637 (CFLAGS-strpbrk-c.c): Define.
638 (CFLAGS-strspn-c.c): Define.
639 (CFLAGS-strstr.c): Define.
640 (CFLAGS-strcasestr.c): Define.
641 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
642 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
643 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
644 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
645 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
646 * sysdeps/i386/i686/multiarch/strspn.S: New file.
647 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
648 * sysdeps/i386/i686/multiarch/strstr.c: New file.
649 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
650 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
651 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
652 -16L instead of 0xfffffffffffffff0L.
653 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
655 2009-08-02 Ulrich Drepper <drepper@redhat.com>
657 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
659 2009-07-31 Ulrich Drepper <drepper@redhat.com>
661 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
662 another rewrite. Much smaller and faster.
663 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
665 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
666 ss_flags from the correct location.
668 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
670 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
671 * sysdeps/i386/i686/cacheinfo.c: New file.
672 * sysdeps/i386/i686/multiarch/Makefile: New file.
673 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
674 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
675 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
676 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
677 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
678 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
679 (__cpuid_count): New. Provide the default.
680 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
681 (__x86_64_preferred_memory_instruction): Define only if
682 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
683 (intel_check_word): Use __cpuid.
684 (handle_intel): Likewise.
685 (handle_amd): Likewise.
686 (__cache_sysconf): Likewise.
687 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
688 (__cache_sysconf): Likewise.
689 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
690 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
691 (get_common_indeces): Use __cpuid.
692 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
693 if ENABLE_SSSE3_ON_ATOM is not defined.
694 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
695 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
696 popcnt instead of popcntq.
698 2009-07-31 Jakub Jelinek <jakub@redhat.com>
700 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
702 2009-07-30 Ulrich Drepper <drepper@redhat.com>
704 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
705 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
706 which always causes a compile error.
708 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
710 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
712 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
713 which always causes a compile error.
715 * debug/Makefile (tests): Add tst-longjmp_chk2.
716 * debug/tst-longjmp_chk2.c: New file.
718 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
719 Remove incorrect use of BP_SYM.
720 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
721 here now since it is more complex than just a simple check.
723 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
724 we make no more progress.
726 2009-07-29 Ulrich Drepper <drepper@redhat.com>
728 * math/s_fma.c: Don't define alias if __fma is a macro.
729 * math/s_fmaf.c: Likewise.
730 * sysdeps/x86_64/multiarch/s_fma.c: New file.
731 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
732 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
734 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
735 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
737 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
739 * include/libc-symbols.h (libm_ifunc): Define.
740 * sysdeps/x86_64/multiarch/Versions: New file.
742 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
744 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
746 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
748 2009-07-29 Ulrich Drepper <drepper@redhat.com>
750 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
751 call that registers used in calling conventions need to be preserved.
752 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
753 to preserve register content if necessary.
754 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
755 (_dl_x86_64_restore_sse): New function.
756 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
757 is allowed to modify xmm/ymm registers.
759 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
760 application's perspective.
761 * stdio-common/scanf17.c: Likewise.
763 2009-07-28 Ulrich Drepper <drepper@redhat.com>
765 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
767 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
769 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
770 two steps to catch bugs.
772 2009-07-27 Ulrich Drepper <drepper@redhat.com>
774 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
775 determines which files are used in runtime lookups and only checks
777 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
779 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
780 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
781 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
784 * elf/dl-open.c: Move _dl_scope_free to...
785 * elf/dl-scope.c: ...here. New file.
786 * elf/Makefile (dl-routines): Add scope.
788 * resolv/resolv.h (RES_USE_DNSSEC): Define.
789 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
791 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
792 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
793 all the places we handled RES_USE_EDNS0 only before.
794 Patch by Adam Tkac <atkac@redhat.com>.
796 2009-07-27 Jakub Jelinek <jakub@redhat.com>
798 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
799 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
800 Update size when reallocating.
802 2009-07-26 Ulrich Drepper <drepper@redhat.com>
804 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
805 functions used in ld.so modify xmm/ymm registers.
806 * sysdeps/x86_64/Makefile: Hook new test up.
807 * sysdeps/x86_64/rtld-memchr.c: New file.
808 * sysdeps/x86_64/rtld-memcmp.c: New file.
809 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
810 * sysdeps/x86_64/rtld-strchr.S: New file.
811 * sysdeps/x86_64/rtld-strlen.S: New file.
812 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
813 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
815 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
817 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
819 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
827 (next_8_bytes): Likewise.
828 (Byte0): Remove commented out codes.
829 (unaligned_table): Align jump table at 8 bytes.
830 Add _sse4_2 to all labels. Always include "../strcmp.S".
831 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
832 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
833 * sysdeps/x86_64/strncmp.S: New file.
835 2009-07-26 Ulrich Drepper <drepper@redhat.com>
838 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
839 kernels, dropped when eventfd2 support was added.
840 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
841 kernels, dropped when signalfd4 support was added.
842 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
846 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
849 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
851 2009-07-25 Ulrich Drepper <drepper@redhat.com>
853 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
854 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
857 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
858 callback we must touch the status to avoid using stale value.
860 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
863 2009-07-24 Ulrich Drepper <drepper@redhat.com>
865 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
866 /lib/modules/* headers anymore. We have sane headers in the standard
869 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
871 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
872 "etf3enh" and "highgprs" added.
873 (_dl_s390_platforms): "z10" added.
874 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
875 Increased for the new entries.
876 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
877 HWCAP_S390_HIGH_GPRS added.
879 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
880 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
881 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
882 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
883 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
885 2009-07-23 Ulrich Drepper <drepper@redhat.com>
887 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
888 avoid additional cpuid instructions. Most of the information is
891 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
893 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
895 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
897 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
900 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
901 structure before copying it to avoid warning.
902 * posix/tst-rfc3484-2.c (do_test): Likewise.
903 * posix/tst-rfc3484-3.c (do_test): Likewise.
906 * include/unistd.h: Make header file suitable for C++ test cases.
907 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
909 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
910 stack alignment in the exit code.
912 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
915 * elf/tst-unique1.c: Extend test to check for unloading DSO with
916 unique symbol definition.
917 Patch by Jakub Jelinek.
918 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
919 make sure the object with the definition cannot be unloaded. Adjust
921 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
922 the unique symbol hash table should not be const.
924 2009-07-21 Ulrich Drepper <drepper@redhat.com>
926 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
927 unnecesary variables. Comment fixes.
929 2009-07-20 Ulrich Drepper <drepper@redhat.com>
931 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
932 Use NONASCII_CASE information provided by the locale to determine
933 whether optimized string load function can be used. Minor cleanups.
935 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
937 * string/strcasestr.c (STRCASESTR): New macro.
938 (__strcasestr): Renamed to ..
939 (STRCASESTR): ...this.
940 * string/strstr.c (STRSTR): New macro.
941 (strstr): Renamed to ..
943 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
944 strstr-c strcasestr-c
945 (CFLAGS-strstr.c): New.
946 (CFLAGS-strcasestr.c): Likewise.
947 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
948 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
949 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
950 * sysdeps/x86_64/multiarch/strstr.c: New file.
952 2009-07-20 Ulrich Drepper <drepper@redhat.com>
954 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
955 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
956 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
957 _NL_CTYPE_NONASCII_CASE.
958 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
960 (ctype_finish): Check whether there are any 8-bit characters outside
961 the range ASCII has or whether the mapping isn't the same as for
962 ASCII (±0x20). Set nonascii_case appropriately.
963 (ctype_output): Add output handler for nonascii_case.
965 2009-07-17 Ulrich Drepper <drepper@redhat.com>
967 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
968 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
970 2009-07-16 Ulrich Drepper <drepper@redhat.com>
973 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
974 0xffff in the EDNS0 record.
976 2009-07-16 Ulrich Drepper <drepper@redhat.com>
978 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
979 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
980 is written before the list head update.
981 Patch by Andreas Schwab <aschwab@redhat.com>.
983 2009-07-16 Ulrich Drepper <drepper@redhat.com>
984 Jakub Jelinek <jakub@redhat.com>
986 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
987 corruption thread-safe.
989 2009-07-13 Jakub Jelinek <jakub@redhat.com>
991 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
992 overrides atomic_compare_and_exchange_val_rel, define to
993 atomic_compare_and_exchange_val_rel by default, otherwise default
994 to catomic_compare_and_exchange_val_acq.
995 (catomic_compare_and_exchange_bool_rel): If arch overrides
996 atomic_compare_and_exchange_bool_rel, define to
997 atomic_compare_and_exchange_bool_rel by default.
998 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
999 Use catomic_compare_and_exchange_val_rel instead of
1000 catomic_compare_and_exchange_val_acq.
1002 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1004 * sysdeps/generic/ldsodefs.h: Add prototype for
1005 _dl_higher_prime_number.
1006 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1008 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1009 restoring of ymm registers a bit.
1011 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1013 * sysdeps/x86_64/memcmp.S: New file.
1015 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1017 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1018 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1019 pointers in writable memory.
1021 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1023 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1024 * config.make.in: Add config-cflags-avx entry.
1025 * configure.in: Substitute libc_cv_cc_avx.
1026 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1027 * elf/tst-audit4.c: New file.
1028 * elf/tst-audit5.c: New file.
1029 * elf/tst-auditmod4a.c: New file.
1030 * elf/tst-auditmod4b.c: New file.
1031 * elf/tst-auditmod5a.c: New file.
1032 * elf/tst-auditmod5b.c: New file.
1033 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1035 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1036 (La_x86_64_vector): Likewise.
1037 (La_x86_64_regs): Append lr_vector.
1038 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1039 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1040 saving and restoring SSE registers to ...
1041 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1042 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1044 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1045 La_x86_64_regs. Allocate extra space and jump to memory at
1046 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1047 (save_and_restore_vector_sse): New.
1048 (save_and_restore_vector_avx): Likewise.
1049 (check_avx): Likewise.
1050 (save_and_restore_vector): Likewise.
1051 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1053 * sysdeps/x86_64/link-defines.sym: New file.
1055 2009-07-10 Ulrich Drepper <drepper@redhat.com>
1057 * elf/do-lookup.h: Removed after folding content into...
1058 * elf/dl-lookup.c: ...here.
1060 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1062 2009-07-09 Ulrich Drepper <drepper@redhat.com>
1064 * configure.in: Check for gnu_unique_symbol symbol type.
1065 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1066 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1067 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1068 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1070 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1071 unique symbol table.
1072 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1073 for first namespace.
1074 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1075 unique symbol hash table.
1076 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1077 * elf/tst-unique1.c: New file.
1078 * elf/tst-unique1mod1.c: New file.
1079 * elf/tst-unique1mod2.c: New file.
1080 * elf/tst-unique2.c: New file.
1081 * elf/tst-unique2mod1.c: New file.
1082 * elf/tst-unique2mod2.c: New file.
1084 2009-07-07 Ulrich Drepper <drepper@redhat.com>
1086 * elf/elf.h (STB_GNU_UNIQUE): Define.
1088 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1090 * include/inline-hashtab.h: ...here.
1091 (htab_expand): Adjust for renamed function. Correct memory handling.
1093 2009-07-06 Ulrich Drepper <drepper@redhat.com>
1095 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1097 2009-07-03 Andreas Schwab <aschwab@redhat.com>
1099 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1100 (PPC_FEATURE_HAS_VSX): Likewise.
1102 2009-07-03 Ulrich Drepper <drepper@redhat.com>
1104 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1105 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1107 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1108 aligned to 16 byte boundaries.
1109 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1110 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1111 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1113 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1115 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1116 * config.make.in (config-cflags-sse4): New variable.
1117 * configure.in: Substitute libc_cv_cc_sse4.
1118 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1120 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1121 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1122 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1123 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1124 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1125 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1126 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1127 * sysdeps/x86_64/multiarch/strspn.S: New file.
1129 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1131 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1132 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1133 (tests): Add tst-audit3 for x86_64.
1134 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1135 ($(objpfx)tst-audit3): Define.
1136 ($(objpfx)tst-audit3.out): Define.
1137 (tst-audit3-ENV): Define.
1138 * elf/tst-audit3.c: New file.
1139 * elf/tst-auditmod3a.c: New file.
1140 * elf/tst-auditmod3b.c: New file.
1141 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1144 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1145 (__stpncpy): Renamed to ...
1147 (stpncpy): Create alias only if STPNCPY is not defined.
1148 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1150 (strncpy): Renamed to ...
1152 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1153 stpncpy-c strncpy-c for string.
1154 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1155 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1156 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1157 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1158 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1159 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1161 2009-07-02 Ulrich Drepper <drepper@redhat.com>
1163 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1164 adding to fast bin list.
1166 2009-07-01 Ulrich Drepper <drepper@redhat.com>
1168 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1169 inet_makeaddr. This worked only with class-based networks.
1170 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1173 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1174 recognize all types.
1175 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1176 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1177 be in host byte order.
1179 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1181 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1182 (MODEL_OFFSET): Define.
1183 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1185 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1186 out common code into new function get_common_indeces. Determine
1187 extended family and model for Intel processors.
1189 2009-06-26 Ulrich Drepper <drepper@redhat.com>
1191 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1192 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1194 * resolv/res_send.c (reopen): New function. Broken out of...
1195 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1196 fallback mechanism. If single-request fails switch to
1197 single-request-reopen mode which opens a new socket for the second
1200 2009-06-25 Andreas Schwab <aschwab@redhat.com>
1202 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1205 2009-06-24 Andreas Schwab <aschwab@redhat.com>
1207 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1208 for saved registers.
1209 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1210 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1211 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1213 2009-06-23 Andreas Schwab <aschwab@redhat.com>
1215 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1217 2009-06-22 Ulrich Drepper <drepper@redhat.com>
1219 * po/id.po: Update from translation team.
1221 * po/bg.po: Update from translation team.
1223 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1225 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1227 (strncmp): Renamed to STRNCMP.
1228 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1229 strncmp-c for string.
1230 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1231 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1232 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1233 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1235 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1237 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1238 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1239 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1240 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1241 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1243 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1244 ifuncmain7static, and ifuncmain7picstatic.
1245 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1246 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1247 $(objpfx)ifuncmain7pie.out.
1248 (modules-names): Add ifuncmod5 ifuncmod6
1249 (ifuncmod5.so-no-z-defs): Define.
1250 (ifuncmod6.so-no-z-defs): Define.
1251 (CFLAGS-ifuncmain5pic.c): Define.
1252 (CFLAGS-ifuncmain5picstatic.c): Define.
1253 (CFLAGS-ifuncmain5staticpic.c): Define.
1254 (CFLAGS-ifuncdep5pic.c): Define.
1255 (CFLAGS-ifuncmain7pic.c): Define.
1256 (CFLAGS-ifuncmain7picstatic.c): Define.
1257 (CFLAGS-ifuncmain1staticpie.c): Define.
1258 (CFLAGS-ifuncmain5pie.c): Define.
1259 (CFLAGS-ifuncmain6pie.c): Define.
1260 (CFLAGS-ifuncmain7pie.c): Define.
1261 ($(objpfx)ifuncmain1staticpie.out): Define.
1262 ($(objpfx)ifuncmain1staticpie): Define.
1263 ($(objpfx)ifuncmain5pie.out): Define.
1264 ($(objpfx)ifuncmain5pie): Define.
1265 ($(objpfx)ifuncmain6pie.out): Define.
1266 ($(objpfx)ifuncmain6pie): Define.
1267 ($(objpfx)ifuncmain5): Define.
1268 ($(objpfx)ifuncmain5pic): Define.
1269 ($(objpfx)ifuncmain5static): Define.
1270 ($(objpfx)ifuncmain5staticpic): Define.
1271 ($(objpfx)ifuncmain5picstatic): Define.
1272 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1273 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1275 * elf/b/elf/ifuncmain1staticpie.c: New file.
1276 * elf/ifuncdep5.c: New file.
1277 * elf/ifuncdep5pic.c: New file.
1278 * elf/ifuncmain5.c: New file.
1279 * elf/ifuncmain5pic.c: New file.
1280 * elf/ifuncmain5picstatic.c: New file.
1281 * elf/ifuncmain5pie.c: New file.
1282 * elf/ifuncmain5static.c: New file.
1283 * elf/ifuncmain5staticpic.c: New file.
1284 * elf/ifuncmain6pie.c: New file.
1285 * elf/ifuncmain7.c: New file.
1286 * elf/ifuncmain7pic.c: New file.
1287 * elf/ifuncmain7picstatic.c: New file.
1288 * elf/ifuncmain7pie.c: New file.
1289 * elf/ifuncmain7static.c: New file.
1290 * elf/ifuncmod5.c: New file.
1291 * elf/ifuncmod6.c: New file.
1293 2009-06-20 Ulrich Drepper <drepper@redhat.com>
1296 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1297 (nss_endgrent): New variable.
1298 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1299 fields. Change type of files to bool and adjust all users.
1300 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1301 (internal_endgrent): Call nss_endgrent if necessary.
1302 (add_group): New function. Broken out of...
1303 (check_and_add_group): ...here.
1304 (getgrent_next_nss): Remove test that any callback is available.
1305 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1306 callback. If there is no blacklist we can trust the results returned
1307 by the initgroups_dyn callback. In case there is a callback and we
1308 find a group entry for the group ID but it doesn't contain the
1309 correct member, switch to the slow mode and use getgrent_r.
1310 (internal_getgrent_r): When we see a +: entry, determine whether
1311 there is any callback and which we can use the initgroups_dyn
1314 2009-06-18 Ulrich Drepper <drepper@redhat.com>
1316 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1317 (_int_free): Likewise.
1319 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1321 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1322 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1323 and ARPHRD_IEEE802154_PHY.
1325 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1326 relative to generic Linux version.
1328 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1330 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1331 ($(objpfx)ifuncmain1vispie): Likewise.
1333 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1335 * login/Makefile: Build pt_chown as PIE.
1337 2009-06-15 Andreas Schwab <aschwab@redhat.com>
1339 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1341 * elf/sln.c (usage): Likewise.
1342 * malloc/memusage.sh (do_help): Likewise.
1343 * nss/getent.c (more_help): Likewise.
1344 * posix/getconf.c (main): Likewise.
1345 * sunrpc/rpcinfo.c (usage): Likewise.
1346 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1348 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1350 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1352 * login/Makefile: If necessary link pt_chown with -lcap.
1353 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1354 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1356 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1358 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1360 * string/test-memchr.c (do_random_tests): Test very large lengths
1363 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1365 * Makeconfig (+link-pie): Define.
1366 (+prectorS): Define.
1367 (+postctorS): Define.
1368 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1369 * nscd/Makefile ($(objpfx)nscd): Likewise.
1371 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1374 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1376 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1378 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1380 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1382 * sysdeps/unix/grantpt.c: ...here.
1384 2009-06-15 Ulrich Drepper <drepper@redhat.com>
1386 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1387 chmod if it is necessary.
1390 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1391 when the slave device is in devpts or devfs.
1394 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1397 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1398 of nd_opt_home_agent_info_preference to uint16_t.
1399 Patch by Arnaud Ebalard <arno@natisbad.org>.
1402 * nss/getent.c: Add support for printing gshadow data.
1405 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1406 not just the currently used one and those which follow.
1407 Patch by Joe Landers <jlanders@vmware.com>.
1410 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1411 * libio/Makefile: Run tst-fgetwc with necessary envvar.
1412 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1415 * stdlib/abort.c: Define variable __abort_msg.
1416 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1417 * include/stdlib.h: Declare __abort_msg.
1418 * assert/assert-perr.c: Don't free buffer for message immediately.
1419 Store atomically in __abort_msg and free old buffer if necessary.
1420 * assert/assert.c: Likewise.
1421 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1422 store pointer in __abort_msg, and possibly free old string.
1423 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1425 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1428 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1429 handle leap seconds if they are available.
1430 Patch by Akinori Hattori <hattya@gentoo.org>.
1432 * timezone/tzselect.ksh: Update from tzcode2009i.
1433 * timezone/zdump.c: Likewise.
1434 * timezone/zic.c: Likewise.
1436 * timezone/africa: Update from tzdata2009i.
1437 * timezone/antarctica: Likewise.
1438 * timezone/asia: Likewise.
1439 * timezone/australasia: Likewise.
1440 * timezone/backward: Likewise.
1441 * timezone/etcetera: Likewise.
1442 * timezone/europe: Likewise.
1443 * timezone/factory: Likewise.
1444 * timezone/iso3166.tab: Likewise.
1445 * timezone/leapseconds: Likewise.
1446 * timezone/northamerica: Likewise.
1447 * timezone/pacificnew: Likewise.
1448 * timezone/solar87: Likewise.
1449 * timezone/solar88: Likewise.
1450 * timezone/solar89: Likewise.
1451 * timezone/southamerica: Likewise.
1452 * timezone/systemv: Likewise.
1453 * timezone/yearistype: Likewise.
1454 * timezone/zone.tab: Likewise.
1456 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1458 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1459 STT_GNU_IFUNC symbol or in 8 into type_class.
1461 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1462 instead of Elf64_Addr.
1464 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1466 * po/sv.po: Update from translation team.
1469 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1470 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1471 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1474 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1476 * Versions.def: Add GLIBC_2.11 for libpthread.
1478 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1480 * resolv/res_send.c (send_dg): Remember we switched to
1481 single-request mode.
1483 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1485 * dlfcn/dlfcn.h: Remove comma at end of enum.
1486 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1488 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1489 parsing mode string.
1491 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1493 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1495 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1497 * sysdeps/x86_64/multiarch/strlen.S: New file.
1498 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1499 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1500 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1503 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1506 2009-06-04 Ulrich Drepper <drepper@redhat.com>
1508 * sysdeps/x86_64/strlen.S: Minor optimizations.
1510 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1512 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1513 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1514 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1515 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1516 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1517 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1518 ifuncmain3.c, ifuncmod3.c,.
1519 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1520 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1521 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1522 ifuncmain4picstatic.
1523 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1524 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1525 ifuncmain3, ifuncmain4.
1526 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1527 $(objpfx)ifuncmain1vispie.out.
1528 (modules-names): Add ifuncmod1 ifuncmod3.
1529 (generated): Add ifuncmain1pie ifuncmain1pie.out
1530 ifuncmain1vispie ifuncmain1vispie.out.
1531 Define rules to build and run the tests.
1532 * elf/ifuncdep1.c: New file.
1533 * elf/ifuncdep1pic.c: New file.
1534 * elf/ifuncdep2.c: New file.
1535 * elf/ifuncdep2pic.c: New file.
1536 * elf/ifuncmain1.c: New file.
1537 * elf/ifuncmain1pic.c: New file.
1538 * elf/ifuncmain1picstatic.c: New file.
1539 * elf/ifuncmain1pie.c: New file.
1540 * elf/ifuncmain1static.c: New file.
1541 * elf/ifuncmain1staticpic.c: New file.
1542 * elf/ifuncmain1vis.c: New file..
1543 * elf/ifuncmain1vispic.c: New file..
1544 * elf/ifuncmain1vispie.c: New file.
1545 * elf/ifuncmain2.c: New file.
1546 * elf/ifuncmain2pic.c: New file.
1547 * elf/ifuncmain2picstatic.c: New file.
1548 * elf/ifuncmain2static.c: New file.
1549 * elf/ifuncmain3.c: New file.
1550 * elf/ifuncmain4.c: New file.
1551 * elf/ifuncmain4picstatic.c: New file.
1552 * elf/ifuncmain4static.c: New file.
1553 * elf/ifuncmod1.c: New file.
1554 * elf/ifuncmod3.c: New file.
1556 2009-06-03 Ulrich Drepper <drepper@redhat.com>
1558 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1560 2009-06-02 Ulrich Drepper <drepper@redhat.com>
1563 * posix/Makefile (routines): Add execvpe.
1564 * posix/Versions: Export execvpe for GLIBC_2.11.
1565 * posix/execvp.c: Now only a wrapper. Move code to...
1566 * posix/execvpe.c: ...here. New file.
1567 * posix/unistd.h: Declare execvpe.
1569 2009-06-01 Ulrich Drepper <drepper@redhat.com>
1571 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1572 for STT_GNU_IFUNC handling for efficiency.
1573 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1575 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1577 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1579 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1581 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1584 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1586 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1588 (__rela_iplt_start): New declaration.
1589 (__rela_iplt_end): Likewise.
1590 (__rel_iplt_start): Likewise.
1591 (__rel_iplt_end): Likewise.
1592 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1593 * elf/elf.h (R_386_IRELATIVE): New macro.
1594 (R_X86_64_IRELATIVE): New macro.
1595 (R_386_NUM): Updated.
1596 (R_X86_64_NUM): Likewise.
1597 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1598 (libc_ifunc_hidden_def): New macro.
1599 * sysdeps/generic/dl-irel.h: New file.
1600 * sysdeps/i386/dl-irel.h: New file.
1601 * sysdeps/x86_64/dl-irel.h: New file.
1602 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1603 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1604 Handle R_386_IRELATIVE.
1605 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1606 (elf_machine_lazy_rela): Likewise.
1607 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1609 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1611 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1613 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1614 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1615 are no differences. If an architecture has bits in CPUID index 1
1616 meaning different things the values for the COMMON_CPUID_INDEX_1
1617 index must not be set.
1618 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1619 (HAS_POPCOUNT): ...this. New macro.
1620 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1621 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1622 to set the value for Intel and AMD architectures.
1623 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1624 INTEL_CPUID_INDEX_1.
1625 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1628 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1630 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1633 2009-05-29 Jakub Jelinek <jakub@redhat.com>
1635 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1636 (__expm1l): Set errno to ERANGE on overflow.
1637 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1638 (__tanl): Set errno to EDOM for ±Inf.
1639 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1640 (__cosl): Set errno to EDOM for ±Inf.
1641 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1642 (__sinl): Set errno to EDOM for ±Inf.
1644 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1646 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1647 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1648 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1650 2009-05-29 Ulrich Drepper <drepper@redhat.com>
1652 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1654 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1656 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
1658 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
1659 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1660 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1661 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1663 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1664 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1665 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1667 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1668 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1670 2009-05-22 Jakub Jelinek <jakub@redhat.com>
1672 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1673 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1674 is, either do nothing at all if __ASSUME_ACCEPT4, or
1675 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1676 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1677 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1679 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1680 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1681 internal_accept4 in socket directory.
1683 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1685 * sysdeps/ia64/configure.in: New file.
1687 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1690 * sysdeps/ia64/memchr.S: Use speculative load.
1692 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1693 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1696 * sysdeps/i386/__longjmp.S: Add .text.
1697 * sysdeps/x86_64/__longjmp.S: Likewise.
1699 2009-05-21 Ulrich Drepper <drepper@redhat.com>
1701 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1702 __ASSUME_ACCEPT4 for IA-64.
1704 2009-05-21 Jakub Jelinek <jakub@redhat.com>
1706 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1708 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1709 (SOCKOP_accept4): Define.
1711 2009-05-20 Ulrich Drepper <drepper@redhat.com>
1713 Sun approved the change of the license.
1714 * sunrpc/auth_des.c: Replace license text.
1715 * sunrpc/auth_none.c: Likewise.
1716 * sunrpc/auth_unix.c: Likewise.
1717 * sunrpc/authdes_prot.c: Likewise.
1718 * sunrpc/authuxprot.c: Likewise.
1719 * sunrpc/bindrsvprt.c: Likewise.
1720 * sunrpc/clnt_gen.c: Likewise.
1721 * sunrpc/clnt_perr.c: Likewise.
1722 * sunrpc/clnt_raw.c: Likewise.
1723 * sunrpc/clnt_simp.c: Likewise.
1724 * sunrpc/clnt_tcp.c: Likewise.
1725 * sunrpc/clnt_udp.c: Likewise.
1726 * sunrpc/clnt_unix.c: Likewise.
1727 * sunrpc/des_crypt.c: Likewise.
1728 * sunrpc/des_soft.c: Likewise.
1729 * sunrpc/get_myaddr.c: Likewise.
1730 * sunrpc/getrpcport.c: Likewise.
1731 * sunrpc/key_call.c: Likewise.
1732 * sunrpc/key_prot.c: Likewise.
1733 * sunrpc/openchild.c: Likewise.
1734 * sunrpc/pm_getmaps.c: Likewise.
1735 * sunrpc/pm_getport.c: Likewise.
1736 * sunrpc/pmap_clnt.c: Likewise.
1737 * sunrpc/pmap_prot.c: Likewise.
1738 * sunrpc/pmap_prot2.c: Likewise.
1739 * sunrpc/pmap_rmt.c: Likewise.
1740 * sunrpc/rpc/auth.h: Likewise.
1741 * sunrpc/rpc/auth_unix.h: Likewise.
1742 * sunrpc/rpc/clnt.h: Likewise.
1743 * sunrpc/rpc/des_crypt.h: Likewise.
1744 * sunrpc/rpc/key_prot.h: Likewise.
1745 * sunrpc/rpc/netdb.h: Likewise.
1746 * sunrpc/rpc/pmap_clnt.h: Likewise.
1747 * sunrpc/rpc/pmap_prot.h: Likewise.
1748 * sunrpc/rpc/pmap_rmt.h: Likewise.
1749 * sunrpc/rpc/rpc.h: Likewise.
1750 * sunrpc/rpc/rpc_des.h: Likewise.
1751 * sunrpc/rpc/rpc_msg.h: Likewise.
1752 * sunrpc/rpc/svc.h: Likewise.
1753 * sunrpc/rpc/svc_auth.h: Likewise.
1754 * sunrpc/rpc/types.h: Likewise.
1755 * sunrpc/rpc/xdr.h: Likewise.
1756 * sunrpc/rpc_clntout.c: Likewise.
1757 * sunrpc/rpc_cmsg.c: Likewise.
1758 * sunrpc/rpc_common.c: Likewise.
1759 * sunrpc/rpc_cout.c: Likewise.
1760 * sunrpc/rpc_dtable.c: Likewise.
1761 * sunrpc/rpc_hout.c: Likewise.
1762 * sunrpc/rpc_main.c: Likewise.
1763 * sunrpc/rpc_parse.c: Likewise.
1764 * sunrpc/rpc_parse.h: Likewise.
1765 * sunrpc/rpc_prot.c: Likewise.
1766 * sunrpc/rpc_sample.c: Likewise.
1767 * sunrpc/rpc_scan.c: Likewise.
1768 * sunrpc/rpc_scan.h: Likewise.
1769 * sunrpc/rpc_svcout.c: Likewise.
1770 * sunrpc/rpc_tblout.c: Likewise.
1771 * sunrpc/rpc_util.c: Likewise.
1772 * sunrpc/rpc_util.h: Likewise.
1773 * sunrpc/rpcinfo.c: Likewise.
1774 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1775 * sunrpc/rpcsvc/key_prot.x: Likewise.
1776 * sunrpc/rpcsvc/klm_prot.x: Likewise.
1777 * sunrpc/rpcsvc/mount.x: Likewise.
1778 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1779 * sunrpc/rpcsvc/rex.x: Likewise.
1780 * sunrpc/rpcsvc/rstat.x: Likewise.
1781 * sunrpc/rpcsvc/rusers.x: Likewise.
1782 * sunrpc/rpcsvc/sm_inter.x: Likewise.
1783 * sunrpc/rpcsvc/spray.x: Likewise.
1784 * sunrpc/rpcsvc/yppasswd.x: Likewise.
1785 * sunrpc/rtime.c: Likewise.
1786 * sunrpc/svc.c: Likewise.
1787 * sunrpc/svc_auth.c: Likewise.
1788 * sunrpc/svc_authux.c: Likewise.
1789 * sunrpc/svc_raw.c: Likewise.
1790 * sunrpc/svc_run.c: Likewise.
1791 * sunrpc/svc_simple.c: Likewise.
1792 * sunrpc/svc_tcp.c: Likewise.
1793 * sunrpc/svc_udp.c: Likewise.
1794 * sunrpc/svc_unix.c: Likewise.
1795 * sunrpc/svcauth_des.c: Likewise.
1796 * sunrpc/xcrypt.c: Likewise.
1797 * sunrpc/xdr.c: Likewise.
1798 * sunrpc/xdr_array.c: Likewise.
1799 * sunrpc/xdr_float.c: Likewise.
1800 * sunrpc/xdr_mem.c: Likewise.
1801 * sunrpc/xdr_rec.c: Likewise.
1802 * sunrpc/xdr_ref.c: Likewise.
1803 * sunrpc/xdr_sizeof.c: Likewise.
1804 * sunrpc/xdr_stdio.c: Likewise.
1806 * po/da.po: Update from translation team.
1808 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1810 * sysdeps/sh/____longjmp_chk.S: New file.
1811 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1812 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1814 2009-05-18 Jakub Jelinek <jakub@redhat.com>
1815 Ulrich Drepper <drepper@redhat.com>
1817 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1818 (__nscd_cache_search): Assume each entry in the
1819 hash chain needs one hashentry and half of datahead. Use
1820 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1822 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1824 * posix/sys/wait.h: Fix typos. Pretty printing.
1825 * stdlib/stdlib.h: Likewise. Correct comments.
1828 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1830 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1833 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1835 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1836 Use it if we absolutely cannot reach any more correct list elements
1837 because that many do not fit into the currently mapped database.
1839 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1841 * nscd/nscd_helper.c: Include stddef.h.
1842 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
1843 in a couple of places. Return NULL if trail is not less than
1844 datasize, don't consider dataheads with length smaller than
1845 offsetof (struct datahead, data) + datalen.
1846 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1847 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1848 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1849 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1850 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1851 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1852 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1854 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1856 (fallocate64): ... to this.
1857 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1859 (fallocate64): ... to this.
1860 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1861 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1862 fallocate64@@GLIBC_2.10.
1863 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1864 fallocate64@@GLIBC_2.11.
1865 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1867 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1868 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1870 * nscd/selinux.c (nscd_avc_destroy): Removed.
1871 * nscd/selinux.h (nscd_avc_destroy): Likewise.
1872 * nscd/nscd.c (termination_handler): Don't call
1875 2009-05-12 Jakub Jelinek <jakub@redhat.com>
1877 * include/atomic.h: Formatting.
1878 (catomic_compare_and_exchange_val_acq): Don't define if already
1879 defined by bits/atomic.h.
1881 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1883 * math/libm-test.inc (expm1_test): Add test for range error.
1885 * Versions.def: Add GLIBC_2.11 for libc.
1886 * debug/Makefile (routines): Add longjmp_chk.
1887 Add rules to build and run tst-longjmp_chk.
1888 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1889 * debug/longjmp_chk.c: New file.
1890 * debug/tst-longjmp_chk.c: New file.
1891 * include/bits/setjmp2.: New file.
1892 * include/stdio.h: Mark __fortify_fail as internal_function.
1893 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1894 * setjmp/bits/setjmp2.h: New file.
1895 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1897 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1899 * sysdeps/i386/____longjmp_chk.S: New file.
1900 * sysdeps/x86_64/____longjmp_chk.S: New file.
1901 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1902 * sysdeps/x86_64/__longjmp.S: Likewise.
1904 * version.h: Bump for 2.11 development.
1906 * elf/check-execstack.c: New file.
1907 * elf/Makefile: Add rules to build and run check-execstack.
1909 2009-05-10 Ulrich Drepper <drepper@redhat.com>
1911 * version.h (VERSION): Bump to 2.10.1.
1913 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1914 compatibility functions.
1915 * nss/getXXent_r.c: Likewise.
1916 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1917 * gshadow/getsgnam_r.c: Likewise.
1918 * gshadow/Version: Remove duplicate entries.
1920 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1921 for recent processor.
1922 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1925 2009-05-09 Ulrich Drepper <drepper@redhat.com>
1927 * version.h (VERSION): Bump for 2.10 release.
1928 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1930 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1931 same place we add ASFLAGS-config.
1933 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1936 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1937 or FORMERR and the other NOERROR, don't raise an error.
1939 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1942 * Makeconfig (+asflags): New variable based upon ASFLAG or
1944 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1945 * config.make.in (asflags-cpu): Add variable based upon
1946 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1949 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1950 recognizes power6 instruction set due to passing -mcpu=power6 from
1951 --with-cpu=power6 when compiling .S files.
1952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1959 2009-05-09 Jakub Jelinek <jakub@redhat.com>
1961 * string/stratcliff.c (do_test): Test for zero length
1962 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1963 at the end of the page.
1965 2009-05-08 Ulrich Drepper <drepper@redhat.com>
1967 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1969 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1972 * po/da.po: Update from translation team.
1974 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1976 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1977 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1979 2009-05-05 Ulrich Drepper <drepper@redhat.com>
1981 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1982 and READ_IMPLIES_EXEC.
1984 2009-05-04 Ulrich Drepper <drepper@redhat.com>
1986 * po/da.po: Update from translation team.
1988 2009-04-29 Jakub Jelinek <jakub@redhat.com>
1990 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1993 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1995 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1996 to MAP_ANON in PROT_NONE mmap64 call.
1997 (open_archive): Likewise.
1998 (file_data_available_p): Use mmap64 instead of mremap.
1999 (enlarge_archive): Likewise. Update head if ah->addr changed.
2000 Attempt to reserve address space after mmap64 region.
2002 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2004 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2005 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2006 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2008 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2009 atanh should set ERANGE.
2012 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2013 result of lookup to make call to implement STT_GNU_IFUNC.
2014 (_dl_profile_fixup): Likewise.
2015 Patch by H.J. Lu <hjl.tools@gmail.com>.
2017 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2020 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2023 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2024 label if it is not used.
2026 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2027 of gmon_hist_hdr and gmon_hdr structures and use them.
2028 * elf/sprof.c: Likewise.
2030 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2033 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2035 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2038 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2039 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2041 (iruserok_af): Use ss_family instead of casts.
2043 * gmon/gmon.c (write_hist): Define real-type variant of
2044 gmon_hist_hdr structure and use it.
2045 (write_gmon): Likewise for gmon_hdr.
2047 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2048 function if we are not going to define it.
2049 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2051 * inet/inet6_option.c (option_alloc): Add temporary variable to
2054 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2055 name of VTable element.
2056 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2057 * libio/iovsscanf.c: Likewise.
2058 * libio/vasprintf.c: Likewise.
2059 * libio/vsnprintf.c: Likewise.
2060 * stdio-common/isoc99_vsscanf.c: Likewise.
2061 * stdlib/strfmon_l.c: Likewise.
2062 * debug/vasprintf_chk.c: Likewise.
2063 * debug/vsnprintf_chk.c: Likewise.
2064 * debug/vsprintf_chk.c: Likewise.
2066 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2069 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2071 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2073 2009-04-25 Ulrich Drepper <drepper@redhat.com>
2075 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2077 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2078 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2079 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2080 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2081 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2082 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2083 * math/libm-test.inc: Add tests for errno after tan calls with
2086 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2087 errno value vor pow(+-0,neg).
2088 * math/libm-test.inc (pow_test): Add tests for errno value for
2091 * math/w_fmod.c: Also handle x=±Inf as error.
2092 * math/w_fmodf.c: Likewise.
2093 * math/w_fmodl.c: Likewise.
2094 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2097 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2098 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2099 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2100 * sysdeps/i386/fpu/s_sin.S: Likewise.
2101 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2102 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2103 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2104 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2105 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2106 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2107 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2108 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2109 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2110 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2113 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2114 ERANGE for underflows.
2115 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2117 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2120 * libio/tst-widetext.input: Remove surrogates.
2122 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2124 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2125 for lgamma should set errno to ERANGE, not EDOM.
2126 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2128 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2131 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2134 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2135 space when temporarily mapping the whole content of the old file.
2138 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2141 2009-04-24 Jakub Jelinek <jakub@redhat.com>
2143 * iconvdata/sjis.c (BODY): Don't advance inptr before
2144 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2145 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2148 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2150 * locale/locarchive.h (struct locarhandle): Rename len field to
2151 mmaped and add new reserved field.
2152 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2153 (create_archive): Reserve address space and then map file into it.
2154 (open_archive): Likewise.
2155 (file_data_available_p): New function.
2156 (compare_from_file): New function.
2157 (close_archive): Adjust to member name changes.
2158 (add_locale): Before comparing locale data, check it is mapped.
2159 Otherwise fall back to reading from the file.
2161 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2163 * stdio-common/psiginfo.c: Include <errno.h>.
2165 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2168 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2169 to get consistency between 32 and 64 bit architectures.
2172 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2173 directory for dummy syscall rules.
2174 Patch by Chris Steinbroner <hesh@pobox.com>.
2176 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2179 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2182 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2184 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2185 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2187 2009-04-23 Jakub Jelinek <jakub@redhat.com>
2189 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2190 data from vector to temporary buffer and call PWRITEV after it
2191 instead of vice versa.
2192 * sysdeps/posix/preadv.c: Fix up comment.
2193 * misc/preadv.c: Likewise.
2194 * misc/preadv64.c: Likewise.
2195 * misc/pwritev.c: Likewise.
2196 * misc/pwritev64.c: Likewise.
2197 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2199 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2201 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2203 * shadow/Makefile (tests): Add tst-shadow.
2204 * shadow/tst-shadow.c: New file.
2207 * gshadow/Makefile: New file.
2208 * gshadow/Versions: New file.
2209 * gshadow/fgetsgent.c: New file.
2210 * gshadow/fgetsgent_r.c: New file.
2211 * gshadow/getsgent.c: New file.
2212 * gshadow/getsgent_r.c: New file.
2213 * gshadow/getsgnam.c: New file.
2214 * gshadow/getsgnam_r.c: New file.
2215 * gshadow/gshadow.h: New file.
2216 * gshadow/putsgent.c: New file.
2217 * gshadow/sgetsgent.c: New file.
2218 * gshadow/sgetsgent_r.c: New file.
2219 * gshadow/tst-gshadow.c: New file.
2220 * include/gshadow.h: New file.
2221 * Makeconfig (all-subdirs): Add gshadow.
2222 * Makefile (installed-headers): Add gshadow/gshadow.h.
2223 * nss/Makefile (databases): Add sgrp.
2224 * nss/Versions: Add gshadow functions as private exports.
2225 * nss/nsswitch.conf: Add gshadow entry.
2226 * nss/sgrp-lookup.c: New file.
2227 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2228 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2229 * nss/nss_files/files-sgrp.c: New file.
2230 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2231 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2233 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2235 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2236 * stdio-common/reg-modifier.c: Likewise.
2238 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
2240 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2243 2009-04-20 Ulrich Drepper <drepper@redhat.com>
2246 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2247 headers up to 2.6.30.
2249 * po/ca.po: Update from translation team.
2251 2009-04-19 Ulrich Drepper <drepper@redhat.com>
2254 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2255 an object that uses static TLS if the TLS modid is higher than the
2256 reserve we always allocate. At least for multi-threaded code.
2258 2009-04-18 Ulrich Drepper <drepper@redhat.com>
2260 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2261 Numerically stable check for valid width.
2263 * locale/programs/locarchive.c (open_archive): Map the entire file
2264 and not just the administrative data.
2265 (add_locale): When we find a hash sum match compare the content
2268 * malloc/malloc.c (malloc_info): Output address space information.
2270 2009-04-17 Ulrich Drepper <drepper@redhat.com>
2272 * malloc/malloc.c (malloc_info): Also output system memory information.
2274 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2275 architectures have preadv/pwritev in 2.6.30.
2277 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2278 * sysdeps/posix/readv.c: Likewise.
2279 Reported by Markus Armbruster <armbru@redhat.com>.
2281 * malloc/hooks.c (top_check): Force hook value into register.
2283 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2285 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2286 calls to _dl_relocate_object.
2288 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2291 * malloc/malloc.c (force_reg): Define.
2292 (sYSMALLOc): Load hook variable into variable
2293 before test and force into register.
2294 (sYSTRIm): Likewise.
2295 (public_mALLOc): Force hook value into register.
2296 (public_fREe): Likewise.
2297 (public_rEALLOc): Likewise.
2298 (public_mEMALIGn): Likewise.
2299 (public_vALLOc): Likewise.
2300 (public_pVALLOc): Likewise.
2301 (public_cALLOc): Likewise.
2302 (__posix_memalign): Likewise.
2303 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2304 before test and force into register.
2305 * malloc/hooks.c (top_check): Likewise.
2306 (public_sET_STATe): Pretty printing.
2308 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2309 in case we only receive one reply in single-request mode.
2311 2009-04-16 Jakub Jelinek <jakub@redhat.com>
2313 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2314 are dlopened in statically linked program even for __LM_ID_CALLER.
2316 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2318 * resolv/res_send.c (send_dg): Don't switch into single-request
2319 mode if we already are in it.
2321 2009-04-15 Ulrich Drepper <drepper@redhat.com>
2323 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2324 are always at least 4 bytes in the returned line.
2326 2009-04-15 Jakub Jelinek <jakub@redhat.com>
2328 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2329 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2330 instead of 8K. Stop searching in /proc/stat after hitting first
2331 line not starting with cpu.
2332 (next_line): Truncate too long
2333 lines at buffer size * 3/4 instead of pretending there were line
2334 breaks inside of large lines.
2336 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2338 * sysdeps/x86_64/mp_clz_tab.c: New file.
2340 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
2341 Ulrich Drepper <drepper@redhat.com>
2343 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2344 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2345 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2347 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
2349 * sysdeps/sh/libc-tls.c: New file.
2351 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2353 2009-04-14 Roland McGrath <roland@redhat.com>
2355 * elf/elf.h: Add various missing ARM constants, to match binutils.
2357 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2359 Optimizations from GMP.
2360 * sysdeps/x86_64/add_n.S: New file.
2361 * sysdeps/x86_64/addmul_1.S: New file.
2362 * sysdeps/x86_64/lshift.S: New file.
2363 * sysdeps/x86_64/mul_1.S: New file.
2364 * sysdeps/x86_64/rshift.S: New file.
2365 * sysdeps/x86_64/sub_n.S: New file.
2366 * sysdeps/x86_64/submul_1.S: New file.
2368 2009-04-14 Jakub Jelinek <jakub@redhat.com>
2370 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2371 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2372 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2373 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2375 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2377 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2380 2009-04-13 Ulrich Drepper <drepper@redhat.com>
2382 * sysdeps/x86-64/strrchr.S: New file.
2384 2009-04-10 Ulrich Drepper <drepper@redhat.com>
2386 * stdio-common/printf.h (struct printf_info): Add user element.
2387 New types printf_arginfo_size_function, printf_va_arg_function.
2388 Declare register_printf_specifier, register_printf_modifier,
2389 register_printf_type.
2390 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2391 (union printf_arg): Add pa_user element.
2392 Adjust __printf_arginfo_table type.
2393 Add __printf_va_arg_table, __printf_modifier_table,
2394 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2396 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2397 If registered arginfo call failed try normal specifier.
2398 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2400 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2401 * stdio-common/Versions: Export register_printf_modifier,
2402 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2403 * stdio-common/reg-modifier.c: New file.
2404 * stdio-common/reg-type.c: New file.
2405 * stdio-common/reg-printf.c (__register_printf_specifier): New
2406 function. Mostly the old __register_printf_function function but
2407 uses locking and type of third parameter changed.
2408 (__register_printf_function): Implement using
2409 __register_printf_specifier.
2410 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2411 calls to arginfo functions. Allocate enough memory for user-defined
2412 types. Call new va_arg functions to get user-defined types.
2413 Try installed handlers even for existing format specifiers first.
2415 2009-04-09 Ulrich Drepper <drepper@redhat.com>
2417 * sysdeps/x86_64/rawmemchr.S: New file.
2419 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2420 Simplified code and possible copy problem fixed.
2422 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2423 function if it is not defined. Add some necessary casts.
2424 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2426 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2427 have preadv/pwritev in 2.6.30.
2429 2009-04-08 Ulrich Drepper <drepper@redhat.com>
2431 * malloc/malloc.c (malloc_info): New function.
2432 * malloc/malloc.h: Declare it.
2433 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2435 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2438 * malloc/malloc.c (_int_realloc): Add parameter with old block
2439 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2441 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2443 2009-04-07 Ulrich Drepper <drepper@redhat.com>
2445 * sysdeps/x86_64/strchrnul.S: New file.
2447 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2448 depending libcrypt on -lfreebl3.
2450 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2451 preadv/pwritev in 2.6.30.
2453 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2454 instead of __strcasecmp.
2456 * string/stratcliff.c (do_test): Add memchr tests..
2457 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2458 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2459 first read quad word.
2461 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2463 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2464 * string/tst-svc.input: Add new test case.
2465 * string/tst-svc.expect: Adjust.
2466 * string/Makefile: Don't ignore tst-svc error.
2468 * sysdeps/x86_64/memchr.S: New file.
2470 * resolv/resolv.h (RES_SNGLKUP): Define.
2471 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2472 * resolv/res_send.c (send_dg): If we sent two requests at once and
2473 only get one reply before timeout switch to mode where we send the
2474 second request only after the first answer has been received.
2476 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2478 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2479 * sysdeps/x86_64/strchr.S: Likewise.
2481 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2483 * configure.in: We need to test for the compiler earlier.
2485 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2486 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2488 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2489 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2491 * misc/preadv.c: New file.
2492 * misc/preadv64.c: New file.
2493 * misc/pwritev.c: New file.
2494 * misc/pwritev64.c: New file.
2495 * sysdeps/posx/preadv.c: New file.
2496 * sysdeps/posx/preadv64.c: New file.
2497 * sysdeps/posx/pwritev.c: New file.
2498 * sysdeps/posx/pwritev64.c: New file.
2499 * sysdeps/unix/sysv/linux/preadv.c: New file.
2500 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2501 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2502 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2503 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2504 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2506 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2508 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2510 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2511 __ASSUME_COMPLETE_READV_WRITEV.
2512 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2513 with modern kernels.
2514 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2516 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2517 to free a possible malloced buffer in case of cancellation.
2518 * sysdeps/posix/writev.c: Likewise for write.
2520 2009-04-02 Ulrich Drepper <drepper@redhat.com>
2522 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2524 * configure.in: Recognize --enable-nss-crypt.
2525 * config.make.in: Add nss-crypt entry.
2526 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2527 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2528 and include path for NSS directory to compiler for md5-crypt,
2529 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2530 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2531 function implementation, use NSS. Introduce wrappers around the
2532 hash function calls. Little code size optimization.
2533 * crypt/sha256-crypt.c: Likewise.
2534 * crypt/sha512-crypt.c: Likewise.
2535 * scripts/check-local-headers.sh: Ignore nss3 directory.
2537 * configure.in: Rename pic_default to libc_cv_pic_default.
2538 * config.make.in: Likewise.
2540 2009-04-01 Roland McGrath <roland@redhat.com>
2542 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2543 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2544 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2545 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2546 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2547 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2548 (R_SPARC_NUM): Update.
2549 From Dave Miller <davem@davemloft.net>.
2551 2009-04-01 Ulrich Drepper <drepper@redhat.com>
2553 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2555 2009-03-31 Ulrich Drepper <drepper@redhat.com>
2557 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2558 those which are used.
2559 * elf/dl-addr.c: Likewise.
2560 * elf/dl-caller.c: Likewise.
2561 * elf/dl-fini.c: Likewise.
2562 * elf/dl-iteratephdr.c: Likewise.
2563 * elf/dl-libc.c: Likewise.
2564 * elf/dl-load.c: Likewise.
2565 * elf/dl-support.c: Likewise.
2566 * elf/dl-sym.c: Likewise.
2567 * elf/rtld.c: Likewise.
2568 * sysdeps/generic/ldsodefs.h: Likewise.
2570 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2571 * elf/dl-minimal.c: Likewise.
2572 * elf/dl-misc.c: Likewise.
2573 * elf/rtld.c: Likewise.
2574 * sysdeps/generic/ldsodefs.h: Likewise.
2576 2009-03-30 Ulrich Drepper <drepper@redhat.com>
2578 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2579 Avoid reuse of complex expression.
2581 * po/fr.po: Update from translation team.
2583 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2585 * include/dirent.h: Yet more changes to match sort function type
2587 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2588 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2589 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2591 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2593 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2595 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2597 * nscd/connections.c (restart): Try to preserve the process name
2598 by reading the /proc/self/exe symlink and using the return name.
2599 Patch by Jeff Bastian <jbastian@redhat.com>.
2601 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2604 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2605 if we are not loading a new audit library.
2606 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2607 Only use profiling trampoline for auditing if we are not relocating
2609 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2610 * elf/rtld.c: Likewise.
2611 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2613 * elf/rtld.c (dl_main): Extend help message for --audit option.
2616 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2617 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2618 * dirent/alphasort.c: Adjust implementation to type change.
2619 * dirent/alphasort64.c: Likewise.
2620 * dirent/scandir.c: Likewise.
2621 * dirent/versionsort.c: Likewise.
2622 * dirent/versionsort64.c: Likewise.
2623 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2625 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2629 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2630 correctly. Set segleft member in output as required.
2631 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2632 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2635 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2636 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2637 * inet/Makefile (tests): Add tst-inet6_rth.
2638 * inet/tst-inet6_rth.c: New file.
2641 * string/strlen.c (strlen): Fix omission in the expression to test
2644 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2646 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2648 * elf/dl-runtime.c (reloc_offset): Define.
2649 (reloc_index): Define.
2650 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2651 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2652 computing index from reloc_offset.
2653 (_dl_call_pltexit): Likewise.
2654 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2655 the relocation index to _dl_fixup.
2656 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2658 * sysdeps/x86_64/dl-runtime.c: New file.
2661 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2662 alignment of La_x86_64_regs. Store xmm parameters.
2663 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2666 * string/strverscmp.c (__strverscmp): Fix case of different digits
2667 in fractional part of string.
2668 Patch by Jingyu Liu <jyliu@fortinet.com>.
2669 * string/Makefile (tests): Add tst-svc2.
2670 * string/tst-svc2.c: New file.
2672 * string/strverscmp.c (__strverscmp): Optimize size of tables.
2674 * locale/iso-639.def: Add Min Nan.
2676 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2679 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2681 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2683 * elf/dl-sysdep.c (auxvars): Compress data structure.
2685 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2686 STT_GNU_IFUNC handling.
2687 (elf_machine_rela): Likewise.
2689 2009-03-13 Ulrich Drepper <drepper@redhat.com>
2691 * config.h.in (USE_MULTIARCH): Define.
2692 * configure.in: Handle --enable-multi-arch.
2693 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2694 (_dl_fixup_profile): Likewise.
2695 * elf/do-lookup.c (dl_lookup_x): Likewise.
2696 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2697 * elf/elf.h (STT_GNU_IFUNC): Define.
2698 * include/libc-symbols.h (libc_ifunc): Define.
2699 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2700 framework in init-arch.h to get CPUID values.
2701 * sysdeps/x86_64/multiarch/Makefile: New file.
2702 * sysdeps/x86_64/multiarch/init-arch.c: New file.
2703 * sysdeps/x86_64/multiarch/init-arch.h: New file.
2704 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2706 * config.make.in (experimental-malloc): Define.
2707 * configure.in: Handle --enable-experimental-malloc.
2708 * malloc/Makefile: Handle experimental-malloc flag.
2709 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2710 * malloc/arena.c: Likewise.
2711 * malloc/hooks.c: Likewise.
2712 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2714 2009-03-11 Ulrich Drepper <drepper@redhat.com>
2716 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2717 prediction. A few size optimizations.
2719 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2721 * time/tzset.c: Optimize a bit for size.
2723 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2725 * include/stdio.h (fmemopen): Add libc_hidden_proto.
2726 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2728 * elf/sprof.c: Avoid warning about multi-line comment.
2730 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2732 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2734 * time/tst-posixtz.c: Add tests for quoted timezone names.
2736 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2738 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2739 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2740 200809L instead of 200112L.
2741 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2742 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2744 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2745 instead of __quick_exit_funcs to __run_exit_handlers.
2746 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2747 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2748 (__cxa_at_quick_exit): Remove attribute_hidden.
2749 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2750 to __run_exit_handlers.
2751 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2754 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2756 * po/id.po: Update from translation team.
2758 2009-02-18 Jakub Jelinek <jakub@redhat.com>
2760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2761 .machine push; .machine "power6" and .machine pop around mtfsf
2762 insns outside of _ARCH_PWR6 define.
2763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2768 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2769 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2770 relax_fenv_state): Likewise.
2772 2009-03-08 Ulrich Drepper <drepper@redhat.com>
2774 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2776 (static-only-routines): Add at_quick_exit.
2777 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2779 * stdlib/quick_exit.c: New file.
2780 * stdlib/at_quick_exit.c: New file.
2781 * stdlib/cxa_at_quick_exit.c: New file.
2782 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
2784 (__internal_atexit): New function.
2785 (__new_exitfn): Now takes parameter to point to the list to use.
2786 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2787 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
2788 (exit): ...here. Just call __run_exit_handlers appropriately.
2789 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2790 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
2791 * stdlib/on_exit.c: Adjust call to __new_exitfn.
2792 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2794 * po/id.po: Update from translation team.
2796 2009-03-07 Ulrich Drepper <drepper@redhat.com>
2798 * po/ru.po: Update from translation team.
2800 2009-03-04 Ulrich Drepper <drepper@redhat.com>
2802 * po/nl.po: Update from translation team.
2804 2009-03-03 Ulrich Drepper <drepper@redhat.com>
2806 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2807 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2808 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2809 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2810 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2811 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2812 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2814 * po/pl.po: Update from translation team.
2816 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2819 * sysdeps/unix/sysv/linux/fallocate.c: New file.
2820 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2821 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2822 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2823 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2824 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2825 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2827 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2828 Add fallocate and fallocate64.
2830 * io/fcntl.h: Pretty printing.
2832 2009-03-02 Richard Guenther <rguenther@suse.de>
2834 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2835 attribute also for non-C99 inline semantics variant.
2837 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2839 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2840 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2841 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2842 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2848 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2850 * po/cs.po: Update from translation team.
2852 2009-02-28 Ulrich Drepper <drepper@redhat.com>
2854 * po/bg.po: Update from translation team.
2855 * po/sv.po: Likewise.
2856 * po/fi.po: Likewise.
2857 * po/vi.po: Likewise.
2859 2009-02-27 Roland McGrath <roland@redhat.com>
2861 * Makeconfig (%.v.i): Depend on Makeconfig.
2862 Exclude % lines from initial #-comment removal.
2864 2009-02-27 Ulrich Drepper <drepper@redhat.com>
2866 * po/ko.po: Update from translation team.
2868 2009-02-26 Roland McGrath <roland@redhat.com>
2870 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2871 avoids unused warning.
2873 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
2874 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2876 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2877 sys/ucontext.h and asm/elf.h. Include sys/user.h.
2878 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2879 and asm/user.h. Include asm/ptrace.h.
2880 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2881 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2882 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2884 (start_thread): Don't undefine.
2885 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2888 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2890 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2891 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2892 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2893 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2894 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2896 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2897 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2898 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2899 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2900 _SC_THREAD_ROBUST_PRIO_PROTECT.
2901 * posix/unistd.h: fexecve is in POSIX 2008.
2902 * time/time.h: strftime_l is in POSIX 2008.
2903 * io/sys/stat.h: futimens is in POSIX 2008.
2904 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2905 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2906 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2907 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2908 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2909 open_memstream, and vdprintf are in POSIX 2008.
2911 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2913 * include/features.h: Define macros for XPG7/POSIX 2008.
2914 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2915 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2917 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2918 * locale/xlocale.h: Define locale_t type.
2919 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2920 in POSIX 2008. Don't define locale_t here.
2921 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2922 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2923 UTIME_OMIT only with __USE_ATFILE.
2924 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2925 * stdio-common/psiginfo.c: New file.
2926 * stdio-common/psiginfo-data.h: New file.
2927 * stdio-common/psiginfo-define.h: New file.
2928 * stdio-common/Makefile (routines): Add psiginfo.
2929 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2930 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2931 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2932 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2933 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2934 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2935 * io/sys/stat.h: Move mknodat definition into same conditional as
2937 * time/sys/time.h: futimesat is not among the functions accepted
2938 into the POSIX standard.
2940 * include/features.h: If no feature selection given and we select
2941 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2942 * posix/Versions: Export __posix_getopt.
2943 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2944 Use it to alternatively initialize __posixly_correct.
2945 (_getopt_internal_r): Take addition parameter. Pass on to
2947 (_getopt_internal): Take addition parameter. Pass on to
2949 (getopt): Pass additional zero to _getopt_internal.
2950 (__posix_getopt): New function.
2951 * posix/getopt.h: Add redirection for getopt.
2952 * posix/getopt1.c (getopt_long): Pass additional zero to
2954 (getopt_long_only): Likewise.
2955 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2956 (_getopt_long_only_r): Likewise.
2957 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2960 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2962 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2963 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2964 * sysdeps/posix/sysconf.c (__sysconf): Handle
2965 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2966 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2968 2009-02-24 Roland McGrath <roland@redhat.com>
2971 * README.template: Reworded not to use substituted version number.
2973 * README: ... here (no longer generated).
2974 * Makefile (README): Target removed.
2976 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2978 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2979 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2982 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2984 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2986 2009-02-22 Ulrich Drepper <drepper@redhat.com>
2988 * po/bg.po: Update from translation team.
2990 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2992 * stdlib/monetary.h: Uglify function parameter names.
2993 * sunrpc/rpc/pmap_clnt.h: Likewise.
2994 * sunrpc/rpc/svc.h: Likewise.
2995 * sunrpc/rpc/xdr.h: Likewise.
2996 * sunrpc/rpc/clnt.h: Likewise.
2997 * resolv/netdb.h: Likewise.
2998 * resolv/arpa/nameser.h: Likewise.
2999 * resolv/resolv.h: Likewise.
3000 * argp/argp.h: Likewise.
3001 * locale/langinfo.h: Likewise.
3002 * io/sys/stat.h: Likewise.
3003 * posix/spawn.h: Likewise.
3004 * nis/rpcsvc/nislib.h: Likewise.
3005 * malloc/obstack.h: Likewise.
3006 * sysdeps/ia64/bits/link.h: Likewise.
3007 * sysdeps/i386/bits/link.h: Likewise.
3008 * sysdeps/s390/bits/link.h: Likewise.
3009 * sysdeps/powerpc/bits/link.h: Likewise.
3010 * sysdeps/x86_64/bits/link.h: Likewise.
3011 * sysdeps/sparc/bits/link.h: Likewise.
3012 * sysdeps/sh/bits/link.h: Likewise.
3013 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3014 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3015 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3016 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3018 2008-12-01 Fredrik Unger <fred@tree.se>
3020 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3021 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3022 _FP_UNPACK_RAW_2, fix up first argument.
3024 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3026 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3027 (GET_NPROCS_PARSER): Change parameters and use next_line.
3028 (__get_nprocs): Rewrite to not use stdio routines.
3029 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3030 Change parameters and use next_line.
3032 2009-02-13 Ulrich Drepper <drepper@redhat.com>
3035 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3036 Change mempool_alloc prototype.
3037 * nscd/mem.c (gc): Don't handle mem_in_flight.
3038 (mempool_alloc): Third parameter now only indicates whether this is the
3039 first call (to allocate data) or not. If it is, get db rdlock.
3040 Release it on error. Don't handle mem_in_flight.
3041 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3042 Adjust third parameter of mempool_alloc calls.
3043 Nothing to do here in case mempool_alloc fails.
3044 Avoid local variable shadowing parameter. No need to get db rdlock
3045 before calling cache_add.
3046 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3047 no mem_in_flight array anymore.
3048 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3049 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3050 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3051 in case mempool_alloc fails. No need to get db rdlock before calling
3053 * nscd/hstcache.c (cache_addhst): Likewise.
3054 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3055 * nscd/servicescache.c (cache_addserv): Likewise.
3056 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3058 2009-02-11 Ulrich Drepper <drepper@redhat.com>
3060 * po/lt.po: Update from translation team.
3062 2009-02-10 Ulrich Drepper <drepper@redhat.com>
3064 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3065 defined, allow additional data to be added using the optional
3066 MORE_ELF_HEADER_DATA macro.
3067 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3068 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3070 2009-02-08 Ulrich Drepper <drepper@redhat.com>
3072 * include/atomic.h: Define catomic_and if not already defined.
3073 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3074 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3076 2009-02-07 Ulrich Drepper <drepper@redhat.com>
3078 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3080 (_int_realloc): Likewise. Third argument is now padded size
3081 All _int_* functions are now static.
3083 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3084 * malloc/arena.c: Likewise.
3085 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3088 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3091 * malloc/malloc.c: Add branch prediction for use of the hooks.
3093 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3095 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3098 * bits/confname.h: Add SUSv7 macros for getconf environments.
3099 * bits/environments.h: Likewise.
3100 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3101 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3102 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3103 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3104 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3105 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3106 * posix/getconf.c: Likewise.
3107 * posix/sysconf.c: Likewise.
3108 * sysdeps/posix/sysconf.c: Likewise.
3109 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3112 2009-01-16 Petr Baudis <pasky@suse.cz>
3115 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3116 even if we currently have zero nscount.
3118 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3121 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3122 the input line is too long.
3124 * po/Makefile (libc.pot): Add f_print as function taking c-format
3127 * debug/xtrace.sh: Unify translatable messages.
3128 * elf/ldd.bash.in: Likewise.
3129 * elf/sprof.c: Likewise.
3130 * locale/programs/locale.c: Likewise.
3131 * malloc/memusage.sh: Likewise.
3132 * nss/getent.c: Likewise.
3134 2009-02-06 Joseph Myers <joseph@codesourcery.com>
3136 * debug/pcprofiledump.c (print_version,
3137 argp_program_version_hook): New function.
3138 * elf/ldconfig.c (more_help): New function.
3140 * elf/sln.c (usage): New function.
3141 (main): Support --help and --version.
3142 * malloc/memusagestat.c (print_version): New function.
3143 (argp_program_version_hook): New variable.
3144 * nscd/nscd.c (more_help): New function.
3146 * posix/getconf.c (main): Send --version output to stdout.
3148 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3149 arguments. All callers changed.
3150 (print_version): New function.
3151 (parseargs): Support --help and --version.
3152 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3154 (print_version): New function.
3155 (main): Use getopt_long. Support --help and --version.
3156 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3159 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3161 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3162 (update_data): Fix handling of wrapping back
3163 to the beginning of the buffer.
3166 * stdio-common/psignal.c (psignal): Fix test for empty string.
3168 2009-02-05 Ulrich Drepper <drepper@redhat.com>
3170 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3171 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3172 move _null_auth to .rodata.
3174 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3177 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3179 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3180 today than when the original code was written. Use larger
3181 buffers. This also makes it unnecessary to have stat information,
3182 if this causes extra efforts.
3183 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3186 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
3188 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3190 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3191 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3192 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3193 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3194 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3195 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3197 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3199 * po/ru.po: Update from translation team.
3201 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3203 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3204 Add _tid slot to maintain consistency with kernel.
3206 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3208 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3209 incomplete characters at end of input buffer.
3210 * libio/Makefile (tests): Add tst-fgetwc.
3211 * libio/tst-fgetwc.c: New file.
3212 * libio/tst-fgetwc.input: New file.
3214 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
3216 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3218 2009-02-02 Ulrich Drepper <drepper@redhat.com>
3221 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3222 *OUTBUFSTART unless the whole output fit into the buffer.
3223 * iconv/Makefile (tests): Add tst-iconv4.
3224 * iconv/tst-iconv4.c: New file.
3226 2009-02-01 Ulrich Drepper <drepper@redhat.com>
3228 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3229 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3231 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
3233 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3234 newer linker scripts.
3236 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3239 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3240 inotify_rm_watch should have type int.
3242 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3244 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3245 Make aligned_restore_vmx a local symbol.
3246 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3249 2009-01-30 Andreas Jaeger <aj@suse.de>
3251 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3252 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3253 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3254 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3255 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3256 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3257 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3259 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3262 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3263 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3265 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3269 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3271 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3273 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3275 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3276 memcpy instead of memcmp.
3277 (_dl_setup_pointer_guard): Likewise.
3279 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3281 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3282 manipulated brk, use malloc_printerr.
3283 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3286 2009-01-30 Jakub Jelinek <jakub@redhat.com>
3288 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3289 rindex): For C++ add inlines so that they can be recognized as
3291 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3293 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3294 Jakub Jelinek <jakub@redhat.com>
3296 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3297 * wcsmbs/wchar.h: Likewise.
3299 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3301 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3302 (stackinfo_sub_sp): Define.
3304 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3307 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3308 * include/alloca.h (alloca_account): Define.
3309 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3310 (stackinfo_sub_sp): Define.
3312 * nscd/connections.c (nscd_init): If database file access fails
3313 check whether this is due to permission problems and bail in that
3317 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3318 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3320 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3322 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3323 Add "t" to clobber list.
3324 (INTERNAL_SYSCALL_NCS): Likewise.
3326 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3328 * nss/getent.c (print_networks): Don't print comma between aliases.
3330 2009-01-23 Ulrich Drepper <drepper@redhat.com>
3332 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3334 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3336 * misc/Makefile (tests): Add bug-hsearch1.
3337 * misc/bug-hsearch1.c: New file.
3339 2009-01-22 Roland McGrath <roland@redhat.com>
3341 * Makeconfig (%.v.i): Strip trailing # comments,
3342 not only whole-line comments.
3344 2009-01-10 Ulrich Drepper <drepper@redhat.com>
3346 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3347 one parameter. If non-NULL use it to initialize return value.
3348 (_dl_setup_pointer_guard): New function.
3349 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3350 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3351 * elf/rtld.c (security_init): Pass _dl_random to
3352 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3354 * elf/dl-sysdep.c (_dl_random): New variable.
3355 (_dl_sysdep_start): Handle AT_RANDOM.
3356 (_dl_show_auxv): Likewise.
3357 * elf/dl-support.c (_dl_random): New variable.
3358 (_dl_aux_init): Handle AT_RANDOM.
3359 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3360 to _dl_setup_stack_chk_guard.
3362 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3364 2009-01-10 Roland McGrath <roland@redhat.com>
3366 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3368 2009-01-08 Ulrich Drepper <drepper@redhat.com>
3370 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3373 * nss/nss_files/files-parse.c (strtou32): New function.
3374 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3375 across 32-bit and 64-bit platforms.
3376 (INT_FIELD_MAYBE_NULL): Likewise.
3378 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3381 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3382 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3383 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3386 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
3389 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3390 being NULL also if there are no backreferences.
3391 * posix/rxspencer/tests: Add testcases.
3393 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
3396 * posix/bug-regex17.c: Add testcases.
3397 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3400 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3402 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3403 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3404 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3405 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3407 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3408 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3409 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3410 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3411 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3412 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3414 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
3416 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3417 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3418 re_string_skip_chars, re_string_reconstruct): Likewise.
3419 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3421 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
3423 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3424 adjust the buffer alignment.
3426 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3428 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3429 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3432 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3433 flavor to description only when flavor is not NULL.
3435 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3436 mutex after SIGIO/SIGURG lookup loop.
3438 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3440 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3442 2009-01-03 Ulrich Drepper <drepper@redhat.com>
3444 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3447 2009-01-02 Ulrich Drepper <drepper@redhat.com>
3449 * sysdeps/unix/sysv/linux/kernel-features.h
3450 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3452 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3453 if no output is written.
3455 * version.h: Bump to 2.10 development.
3457 * posix/getconf.c: Update copyright year.
3458 * nss/getent.c: Likewise.
3459 * iconv/iconvconfig.c: Likewise.
3460 * iconv/iconv_prog.c: Likewise.
3461 * elf/ldconfig.c: Likewise.
3462 * catgets/gencat.c: Likewise.
3463 * csu/version.c: Likewise.
3464 * elf/ldd.bash.in: Likewise.
3465 * elf/sprof.c (print_version): Likewise.
3466 * locale/programs/locale.c: Likewise.
3467 * locale/programs/localedef.c: Likewise.
3468 * nscd/nscd.c (print_version): Likewise.
3469 * debug/xtrace.sh: Likewise.
3470 * malloc/memusage.sh: Likewise.
3471 * malloc/mtrace.pl: Likewise.
3472 * debug/catchsegv.sh: Likewise.
3474 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3476 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3479 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3481 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3482 gethostbyname4_r function call succeeded, just leave the loop.
3485 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3487 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3488 * wctype/Makefile (tests): Add bug-wctypeh.
3489 * wctype/bug-wctypeh.c: New file.
3491 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3492 LOCALDOMAIN is defined.
3493 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3495 * sysdeps/x86_64/bits/select.h: New file.
3497 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3499 2008-12-21 Bruno Haible <bruno@clisp.org>
3502 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3503 if no output is written.
3505 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3507 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3508 libc internal symbol __dup2 to avoid access through the PLT.
3510 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3513 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3514 available only for __USE_GNU.
3516 * inet/Makefile (tests): Add tst-getni2.
3517 * inet/tst-getni2.c: New file.
3520 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3521 NULL when NI_NAMEREQD is set.
3522 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3523 * inet/Makefile (tests): Add tst-getni1.
3524 * inet/tst-getni1.c: New file.
3526 2008-12-03 Petr Baudis <pasky@suse.cz>
3529 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3530 instead of prune_lock.
3531 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3532 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3534 2008-12-07 Ulrich Drepper <drepper@redhat.com>
3536 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3539 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3542 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3543 after reading name server list.
3546 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3547 handling for host name aliases.
3549 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3551 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3552 instead of doing things manually.
3554 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3556 * posix/regex_internal.h (build_wcs_upper_buffer):
3557 Return type is reg_error_t.
3559 2008-12-05 Ulrich Drepper <drepper@redhat.com>
3561 * posix/globtest.sh: Use mktemp to create temporary file and
3564 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3566 (__CPU_CLR_S): Likewise.
3567 (__CPU_ISSET_S): Likewise.
3569 2008-12-05 Joseph Myers <joseph@codesourcery.com>
3570 Ulrich Drepper <drepper@redhat.com>
3572 * scripts/firstversion.awk: Use custom comparison function to compare
3574 * scripts/versions.awk: Use sort invocation which can handle
3575 multi-digit sub-version numbers.
3577 2008-12-04 Ulrich Drepper <drepper@redhat.com>
3579 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3580 * locale/iso-639.def: Add Chhattisgarhi entry.
3582 2008-12-02 Ulrich Drepper <drepper@redhat.com>
3584 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3586 (_nss_dns_gethostbyname4_r): Likewise.
3587 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3588 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3589 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3590 the no_data variable.
3592 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3593 information at the correct index.
3595 * socket/sys/socket.h: Declare accept4.
3596 * socket/accept4.c: New file.
3597 * sysdeps/unix/sysv/linux/accept4.c: New file.
3598 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3599 * socket/Makefile (routines): Add accept4.
3600 * socket/Versions: Export accept4 with version GLIBC_2.10.
3601 * socket/paccept.c: Removed.
3602 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3603 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3604 * Versions.def: Define GLIBC_2.10 for libc.
3605 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3607 * nscd/connections.c: Use accept4.
3609 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3611 2008-12-01 Ulrich Drepper <drepper@redhat.com>
3613 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3616 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3618 * stdlib/Makefile (tests): Add tst-unsetenv1.
3619 * stdlib/tst-unsetenv1.c: New file.
3621 2008-11-29 Ulrich Drepper <drepper@redhat.com>
3623 * login/utmp_file.c (file_writable): New variable.
3624 (setutent_file): Don't try to open file for writing.
3625 (pututline_file): Before writing, make descriptor writable if
3628 2008-11-26 Ulrich Drepper <drepper@redhat.com>
3630 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3631 to IPv4 or IPv6 if an interface has been found.
3633 2008-11-26 Roland McGrath <roland@redhat.com>
3635 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3636 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3638 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3639 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3640 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3642 * elf/elf.h (NT_386_IOPERM): New macro.
3643 (NT_PPC_VSX): New macro.
3645 2008-11-25 Roland McGrath <roland@redhat.com>
3647 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3648 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3649 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3650 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3651 Subdirectories moved to ports repository.
3652 * configure.in (base_machine): Remove alpha case.
3654 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
3656 * sysdeps/mach/strerror_l.c: New file.
3658 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
3661 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3662 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3664 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3665 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3666 (relax_fenv_state): Same as above.
3667 (FPSCR_29): Reserve bit in ISA 2.05.
3668 (FPSCR_NI): Provide define for compat.
3669 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3671 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3673 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
3674 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3675 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3676 access to hwcap to account for hwcap size increase to uint64_t.
3677 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3680 (*setcontext): Likewise.
3681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3686 (*setcontext): dynamically select mtfsf insn based on
3687 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3688 increase to uint64_t.
3689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3690 (*swapcontext): dynamically select mtfsf insn based on
3691 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3692 increase to uint64_t.
3693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3698 (*setcontext): dynamically select mtfsf insn based on
3699 PPC_FEATURE_HAS_DFP.
3700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3701 (*swapcontext): dynamically select mtfsf insn based on
3702 PPC_FEATURE_HAS_DFP.
3704 2008-11-13 Ulrich Drepper <drepper@redhat.com>
3706 * version.h: Bump for 2.9 release.
3707 * include/features.h (__GLIBC_MINOR__): Bump to 9.
3710 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3711 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3714 2008-11-11 Ulrich Drepper <drepper@redhat.com>
3717 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3718 unknown request types for now.
3720 2008-11-11 Roland McGrath <roland@redhat.com>
3722 * sysdeps/x86_64/configure: New file.
3724 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3725 * configure: Regenerated.
3727 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3729 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3730 correct instruction to remove the stack frame.
3732 2008-11-03 Michael Matz <matz@suse.de>
3734 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3735 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3737 2008-11-07 Jakub Jelinek <jakub@redhat.com>
3739 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3742 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3743 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3744 of the thread variable instead of void *.
3745 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3746 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3747 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3748 __libc_tsd_define arguments.
3749 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3750 __libc_tsd_address arguments. Remove union hack.
3751 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3752 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3753 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3754 Adjust __libc_tsd_{set,get} arguments.
3755 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3756 __libc_tsd_define arguments.
3757 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3759 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3760 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3761 (LOCALE): Adjust __libc_tsd_define arguments.
3762 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3764 (LOCALE): Adjust __libc_tsd_define arguments.
3765 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3767 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3770 2008-11-02 Ulrich Drepper <drepper@redhat.com>
3772 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3773 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3775 2008-11-01 Ulrich Drepper <drepper@redhat.com>
3778 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3780 2008-10-24 Joseph Myers <joseph@codesourcery.com>
3781 Ulrich Drepper <drepper@redhat.com>
3783 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3784 definition for GCC 3.1 and later.
3786 2008-10-31 Jakub Jelinek <jakub@redhat.com>
3788 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3789 refetch dtv, as it might have changed.
3790 * elf/Makefile: Add rules to build and run tst-tls18.
3791 * elf/tst-tls18.c: New test.
3792 * elf/tst-tlsmod18a.c: New file.
3794 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
3797 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3799 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3802 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3805 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3806 Fix length of copy operation.
3808 2008-10-02 Pierre Habouzit <madcoder@debian.org>
3810 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3811 and fix its calling convention.
3813 2008-10-07 Andreas Schwab <schwab@suse.de>
3816 * resolv/res_send.c (send_vc): Fix last change.
3817 (send_dg): Align here as well.
3819 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3821 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3822 return value in case rlimit is RLIM_INFINITY.
3825 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3827 * resource/Makefile (tests): Add bug-ulimit1.
3828 * resource/bug-ulimit1.c: New file.
3831 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3832 without dot. Properly terminate the string with a null byte.
3833 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3836 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3838 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3842 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3844 2008-10-30 Ulrich Drepper <drepper@redhat.com>
3846 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3847 abort if there is no initgroups_dyn function.
3849 * resolv/res_send.c (send_dg): On timeout, only return nonzero
3850 result if any of the queries really provided an answer.
3852 2008-10-28 Ulrich Drepper <drepper@redhat.com>
3854 * po/lt.po: Update from translation team.
3856 2008-10-26 Ulrich Drepper <drepper@redhat.com>
3858 * po/id.po: Update from translation team.
3860 2008-10-24 Ulrich Drepper <drepper@redhat.com>
3862 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3863 Fix tests for existence of second reply.
3865 2008-10-23 Ulrich Drepper <drepper@redhat.com>
3867 * po/id.po: New file.
3868 Contributed by the Indonesian translation team.
3870 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
3872 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3875 2008-10-17 Jakub Jelinek <jakub@redhat.com>
3877 * elf/Makefile: Add rules to build and run tst-tls17.
3878 * elf/tst-tls17.c: New test.
3879 * elf/tst-tlsmod17a.c: New file.
3880 * elf/tst-tlsmod17b.c: Likewise.
3882 2008-10-17 Ulrich Drepper <drepper@redhat.com>
3884 * stdlib/divmod_1.c: Use correct type for dummy variable.
3885 * stdlib/mod_1.c: Likewise.
3887 2008-10-16 Ulrich Drepper <drepper@redhat.com>
3889 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3891 2008-10-16 Jakub Jelinek <jakub@redhat.com>
3893 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3894 __nonnull order for C++.
3895 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3896 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3898 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3900 * stdlib/longlong.h: Update from GCC.
3902 2008-10-09 Jakub Jelinek <jakub@redhat.com>
3903 David S. Miller <davem@davemloft.net>
3905 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3906 make sure any registers used with 64-bit 'branch-on-register'
3907 instructions have their top 32-bits clear.
3908 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3909 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3911 2008-09-18 Andreas Schwab <schwab@suse.de>
3914 * resolv/res_send.c (send_vc): Fix use of unaligned address.
3915 Properly handle partial reads.
3917 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3919 * elf/elf.h (STO_MIPS_PLT): New.
3921 (R_MIPS_JUMP_SLOT): New.
3922 (R_MIPS_NUM): Redefine to 128.
3923 (DT_MIPS_PLTGOT): New.
3924 (DT_MIPS_RWPLT): New.
3925 (DT_MIPS_NUM): Redefine to 0x35.
3927 2008-10-01 Ulrich Drepper <drepper@redhat.com>
3929 * timezone/africa: Update from tzdata2008f.
3930 * timezone/asia: Likewise.
3931 * timezone/australasia: Likewise.
3932 * timezone/europe: Likewise.
3933 * timezone/leapseconds: Likewise.
3934 * timezone/northamerica: Likewise.
3935 * timezone/southamerica: Likewise.
3936 * timezone/zone.tab: Likewise.
3938 2008-09-30 Ulrich Drepper <drepper@redhat.com>
3940 * nscd/connections.c: Disable use of paccept for now.
3942 2008-09-29 Ulrich Drepper <drepper@redhat.com>
3944 * socket/Versions: Remove paccept export for GLIBC_2.9.
3945 * socket/Makefile (routines): Remove paccept.
3946 * socket/sys/socket.h: Remove paccept declaration.
3948 * po/sv.po: Update from translation team.
3950 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3952 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3953 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3955 2008-09-16 Ulrich Drepper <drepper@redhat.com>
3957 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3958 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3960 2008-09-15 Ulrich Drepper <drepper@redhat.com>
3962 * sunrpc/rpc/svc.h: Declare svcfd_create.
3963 Patch by Michael Solberg <msolberg@redhat.com>.
3965 2008-09-12 Flavio Leitner <fleitner@redhat.com>
3966 Ulrich Drepper <drepper@redhat.com>
3968 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3970 (public_pVALLOc): Likewise.
3972 2008-09-02 Andreas Jaeger <aj@suse.de>
3974 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3977 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3980 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3982 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3984 * Makefile (check-data): Check data directory in add-ons.
3985 * elf/Makefile (check-data): Likewise.
3987 2008-08-18 Roland McGrath <roland@redhat.com>
3989 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3990 * configure: Regenerated.
3991 * config.make.in (cflags-cpu): New substituted variable.
3992 (with-cpu): Variable removed.
3993 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3995 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3998 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3999 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4000 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4001 redundant. Functions which call floating point assembler operations
4002 should go into a sysdeps powerpc/fpu directory.
4004 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4006 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4007 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4009 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4011 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4013 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4014 change related to AT_EXECFN. We cannot use that string.
4015 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4017 * elf/dl-support.c: Remove _dl_execfn variable.
4018 (_dl_aux_init): Remove handling of AT_EXECFN.
4019 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4020 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4022 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4025 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4026 byte gets added to writes and seeks from the end use the length of
4027 the buffer and not the currently terminating NUL byte.
4030 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4031 Set to true if locking failed.
4032 (getutid_r_file): Adjust caller.
4033 (pututline_file): Likewise. Return NULL in this case.
4034 Patch mostly by halesh.s@gmail.com.
4036 2008-08-12 Ulrich Drepper <drepper@redhat.com>
4039 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4041 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4043 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4046 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4047 macro since it is now available in elf/dynamic-link.h.
4049 2008-08-12 Roland McGrath <roland@frob.com>
4051 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4052 in case used outside of libc.
4053 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4055 2008-08-11 Ulrich Drepper <drepper@redhat.com>
4057 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4058 directly instead of going through dn_comp.
4060 2008-08-11 Aurelien Jarno <aurel32@debian.org>
4062 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4063 Fix asm constraints.
4065 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4068 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4069 (IPV6_PMTUDISC_PROBE): Likewise.
4071 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4074 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4076 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
4077 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4080 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4081 Added the members 'vsx' and 'arch_2_06'.
4082 (_dl_powerpc_platforms): Add the member 'power7'.
4083 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4084 to reflect the changes required by VSX and ISA 2.06.
4085 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4087 Defined PPC_PLATFORM_POWER7.
4088 (_dl_string_platform): Add support for POWER7.
4089 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4090 capability and ISA 2.06.
4092 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4095 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4096 macro to detect use of 128 bit long double.
4097 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4099 2008-08-05 Ulrich Drepper <drepper@redhat.com>
4101 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4104 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4106 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4107 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4109 2008-08-03 Ulrich Drepper <drepper@redhat.com>
4111 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4112 guaranteed to be large enough to read inotify event. Ignore
4113 EAGAIN error. Better error message. Add branch predicition.
4114 (main_loop_epoll): Likewise.
4116 2008-08-02 Roland McGrath <roland@frob.com>
4118 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4119 Add memory clobbers.
4121 2008-08-02 Ulrich Drepper <drepper@redhat.com>
4123 * manual/arith.texi: Avoid @strong{Note:}.
4124 * manual/creature.texi: Likewise.
4125 * manual/filesys.texi: Likewise.
4126 * manual/math.texi: Likewise.
4127 * manual/memory.texi: Likewise.
4128 * manual/resource.texi: Likewise.
4129 * manual/syslog.texi: Likewise.
4130 * manual/time.texi: Likewise.
4132 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4135 2008-08-01 Ulrich Drepper <drepper@redhat.com>
4137 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4138 new epoll_create1 interface.
4139 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4140 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4141 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4143 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4144 (NS_GET32): Likewise.
4146 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4149 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4150 use the AT_EXECFN value if it is no absolute path.
4151 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4154 * Versions.def: Add GLIBC_2.9 to libresolv.
4155 * include/resolv.h: Remove hidden proto declarations for __ns_*
4156 functions. Add them for __dn_count_labels and __p_secstodate.
4157 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4158 Define ns_msg_getflags macro here.
4159 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4161 * resolv/Versions: Export functions from <arpa/nameser.h> from
4162 libresolv in version GLIBC_2.9.
4163 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4165 * resolv/ns_netint.c: Likewise.
4166 * resolv/ns_parse.c: Likewise.
4167 * resolv/ns_print.c: Likewise.
4168 * resolv/ns_samedomain.c: Likewise.
4169 * resolv/ns_ttl.c: Likewise.
4170 * resolv/arpa/nameser_compat.h: Likewise.
4171 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4173 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4174 instead of ns_get16.
4175 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4176 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4177 (gaih_getanswer_slice): Likewise.
4178 * resolv/Makefile (libresolv-routines): Add ns_date.
4179 * resolv/ns_date.c: New file.
4181 * elf/Makefile (check-localplt.out): Also check libresolv and
4184 2008-07-31 Ulrich Drepper <drepper@redhat.com>
4186 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4189 2008-07-30 Ulrich Drepper <drepper@redhat.com>
4191 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4192 buffer passed to NSS functions.
4194 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4196 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4199 * misc/syslog.c (openlog_internal): Fix compile problem.
4201 2008-07-28 Roland McGrath <roland@redhat.com>
4203 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4205 2008-07-28 Ulrich Drepper <drepper@redhat.com>
4207 * io/ftw.c (add_object): Remove inline to avoid warning.
4209 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4211 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4212 Use it instead of locally defined resplen2 variable.
4213 (res_nsend): Adjust for __libc_res_nsend interface change.
4214 (send_vc): Initialize *resplen2 if necessary. Read length of
4215 package into an appropriately aligned variable. Store converted length
4216 in new variable and use it appropriately.
4217 Add branch prediction help.
4218 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4219 and pass it on to __libc_res_nsend. Adjust all callers.
4220 (__libc_res_nsearch): Likewise.
4221 (__libc_res_nqeurydomain): Likewise.
4222 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4224 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4225 Define resplen2 variable and pass it to __libc_res_nsearch and then
4227 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4228 Add branch prediction.
4229 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4230 (gaih_getanswer): Don't decode second slice if first one failed due
4231 to a too small buffer. Don't let not found status of second
4232 decoder shadow results of the first.
4233 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4234 and __libc_res_nquery interface changes
4235 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4236 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4237 __libc_res_nsearch, and __libc_res_nsend.
4238 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4240 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4241 __libc_res_nsearch interface changes.
4243 2008-07-27 Ulrich Drepper <drepper@redhat.com>
4245 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4247 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4248 file descriptors with close-on-exec set.
4249 (exec_comm_child): Fix the case where the write end of the pipe is
4250 STDOUT_FILENO already. In case it is, clear close-on-exec.
4252 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4253 * io/pipe2.c: Likewise.
4254 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4255 instead of __ASSUME_PACCEPT.
4256 * include/unistd.h: Declare __have_pipe2.
4257 * libio/iopopen.c: Implement "e" flag.
4258 * libio/Makefile (tests): Add tst-popen1.
4259 * libio/tst-popen1.c: New file.
4261 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4262 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4264 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4267 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4268 success call of _IO_SEEKOFF or calls which failed because the
4269 descriptor is for a pipe.
4271 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4274 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4276 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4277 F_SETFD use if we know fopen set the flag.
4279 * login/utmp_file.c (setutent_file): Minor optimization in case
4280 O_CLOEXEC is available.
4282 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4284 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4285 * elf/Makefile: Use pie-ccflag variable.
4286 * nscd/Makefile: Likewise.
4287 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4289 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4292 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4293 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4294 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4295 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4296 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4297 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4298 utmp32, utmpx32 and login32.
4299 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4300 versions of struct utmp functions to libc and libutil.
4301 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4302 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4303 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4304 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4305 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4306 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4307 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4308 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4309 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4310 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4311 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4312 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4313 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4314 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4315 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4316 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4317 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4318 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4319 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4320 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4321 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4322 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4324 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4326 * scripts/gen-as-const.awk: Generate more widely usable code by
4327 using 64-bit arithmetic.
4329 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4330 the same treatment as narrow output code in last patch.
4332 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4335 * elf/dl-load.c (local_strdup): Remove inline.
4336 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4337 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4340 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4342 2008-07-25 Ulrich Drepper <drepper@redhat.com>
4344 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4345 the new syscalls, too.
4347 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4348 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4351 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4352 parameter for end of buffer. If temporary copy is too large use
4354 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4356 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4357 string rewrite when allocating buffer.
4359 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4362 * nscd/connections.c (nscd_init): Clean up fcntl call.
4364 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4365 SOCK_NONBLOCK if possible.
4367 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4368 SOCK_CLOEXEC if available.
4370 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4371 __libc_clntudp_bufcreate_internal.
4372 * include/sys/socket.h: Declare __have_sock_cloexec.
4373 * socket/Makefile (aux): Add have_sock_cloexec.
4374 * socket/have_sock_cloexec.c: New file.
4375 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4376 __libc_clntudp_bufcreate.
4377 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4378 which takes an additional parameter. Create socket with non-blocking
4379 mode and close-on-exec flag set, if wanted.
4380 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4381 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4382 instead of clntudp_create. The socket has already the close-on-exec
4383 flag set if SOCK_CLOEXEC is defined.
4385 2008-07-24 Ulrich Drepper <drepper@redhat.com>
4387 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4388 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4390 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4391 non-blocking mode by using socket, paccept, and inotify_init1.
4393 * Versions.def (glibc): Add GLIBC_2.9.
4394 * io/Makefile (routines): Add dup3 and pipe2.
4395 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4396 * io/dup3.c: New file.
4397 * io/pipe2.c: New file.
4398 * posix/unistd.h: Declare dup3 and pipe2.
4399 * socket/Makefile (routines): Add paccept.
4400 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4401 * socket/paccept.c: New file.
4402 * socket/sys/socket.h: Declare paccept.
4403 * sysdeps/unix/syscalls.list: Add entry for dup3.
4404 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4405 epoll_create2 and inotify_init1.
4406 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4407 * sysdeps/unix/sysv/linux/paccept.c: New file.
4408 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4410 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4411 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4412 inotify_init1, and pipe2 entries.
4413 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4414 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4415 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4416 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4417 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4418 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4420 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4421 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4422 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4423 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4424 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4425 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4426 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4427 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4428 EPOLL_NONBLOCK. Declare epoll_create2.
4429 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4431 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4432 IN_NONBLOCK. Declare inotify_init1.
4433 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4435 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4438 * elf/elf.h: Define AT_EXECFN.
4439 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4441 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4442 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4443 if __ASSUME_AT_EXECFN is defined.
4444 (_dl_aux_init): Handle AT_EXECFN.
4445 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4447 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4448 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4449 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4450 _dl_execfn if available and avoid compatibility code if
4451 __ASSUME_AT_EXECFN is defined.
4453 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4454 _dl_discover_osversion only for older kernels.
4456 2008-07-22 Roland McGrath <roland@frob.com>
4458 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4460 2008-07-21 Roland McGrath <roland@frob.com>
4462 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4463 returned too much data out of line.
4465 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4467 * locale/setlocale.c (setname): Remove inline to avoid compiler
4471 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4473 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4475 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4476 doesn't manage to write anything, fail.
4478 * malloc/hooks.c (__malloc_check_init): Remove printf.
4480 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4482 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4484 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4486 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4488 (main_loop_epoll): Likewise.
4490 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4492 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4494 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4495 if DEBUG is defined.
4497 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4498 query. Adjust buffer size computation for padding.
4500 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4502 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4503 * stdio-common/tst-setvbuf1.c: New file.
4504 * stdio-common/tst-setvbuf1.expect: New file.
4507 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4508 when selecting fully-buffered stream.
4509 Patch by Wang Xin <wxinee@gmail.com>.
4511 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4513 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4514 (__open_2): New function.
4515 (__open64_2): New alias to __open_2.
4516 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4517 (__openat_2): New function.
4518 (__openat64_2): New alias to __openat_2.
4520 2008-07-06 Ulrich Drepper <drepper@redhat.com>
4523 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4525 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4527 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4528 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4529 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4531 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4532 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4533 * sysdeps/mach/hurd/send.c (__send): Likewise.
4534 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4535 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4537 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4539 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4540 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4541 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4542 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4543 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4544 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4546 2008-06-27 Ulrich Drepper <drepper@redhat.com>
4549 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4551 Patch by Petr Baudis.
4553 2008-06-26 Ulrich Drepper <drepper@redhat.com>
4555 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4556 Patch by Peter Jones <pjones@redhat.com>.
4558 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4561 * stdlib/canonicalize.c (__realpath): readlink can write too much
4562 into the buffer on platforms without PATH_MAX.
4564 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4567 * posix/tst-regex.c (main): Rename to...
4568 (do_test): ... this. Remove cmdline option processing.
4570 (TEST_FUNCTION): Define.
4571 (CMDLINE_OPTIONS): Define.
4573 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4576 * configure.in: Add -Werror to -fstack-protector test to catch
4577 unsupported architectures.
4578 Patch by Gilles Esponasse <g.esp@free.fr>.
4580 2008-06-17 Joseph Myers <joseph@codesourcery.com>
4582 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4583 getcontext returns ENOSYS.
4585 2008-06-18 Ulrich Drepper <drepper@redhat.com>
4587 * nscd/connections.c (main_loop_poll): Fix test for read error.
4588 (main_loop_epoll): Likewise.
4590 2008-06-13 Ulrich Drepper <drepper@redhat.com>
4592 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4593 better place so it is not called when nscd is used.
4595 * nscd/connections.c: Also recognize and handle changes to the
4596 resolver configuration file.
4598 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4600 * time/strftime.c: Pass reference to tzset_called around to handle
4604 * time/strftime.c (__strftime_internal): Call tzset() only
4605 when printing timezone-dependent values.
4606 Based on a patch by Petr Baudis <pasky@suse.cz>.
4608 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4609 unconditionally use second gaih_getanswer_slice result.
4611 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4612 (getaddrinfo): RES must always be non-NULL.
4614 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4616 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4618 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4619 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4621 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4624 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4626 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4628 * nscd/connections.c (inotify_fd): New variable.
4629 (nscd_init): Try to open an inotify descriptor.
4630 If successful, watch files for databases using inotify instead of
4631 having prune threads stat the files.
4632 (nscd_run_prune): Recognize clear_cache flag being set and call
4633 prune_cache appropriately.
4634 (main_loop_poll): Add inotify descriptor to wait set and handle the
4636 (main_loop_epoll): Likewise.
4637 * nscd/cache.c (prune_cache): Don't stat files for databases if
4639 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4640 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4642 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4643 fixed-size portion of the record.
4644 * nscd/servicescache.c (cache_addserv): Likewise.
4645 * nscd/pwdcache.c (cache_addpw): Likewise.
4646 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4648 2008-06-11 Ulrich Drepper <drepper@redhat.com>
4650 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4651 out we don't use uninitialized memory.
4653 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4656 2008-06-10 Ulrich Drepper <drepper@redhat.com>
4658 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4659 ignore T_DNAME messages.
4660 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4662 2008-06-05 Jakub Jelinek <jakub@redhat.com>
4664 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4665 Avoid segfault if first GETC returns eof/'\0'/'\n'.
4667 2008-06-03 Jakub Jelinek <jakub@redhat.com>
4669 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4670 instead of portstr to nscd_getserv_r. Patch by
4671 Roman Kagan <rkagan@mail.ru>.
4673 2008-05-26 Jim Meyering <meyering@redhat.com>
4675 Remove more useless "if" tests before "free".
4676 * include/inline-hashtab.h (htab_delete): Likewise.
4677 * libio/freopen.c (freopen): Likewise.
4678 * libio/freopen64.c (freopen64): Likewise.
4679 * locale/programs/ld-collate.c (collate_read): Likewise.
4680 * misc/fstab.c (libc_freeres_fn): Likewise.
4681 * posix/glob.c (globfree): Likewise.
4683 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4685 * string/Makefile (strop-tests): Add memmem.
4686 * string/test-memmem.c: New file.
4687 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4688 (test_init): Size buf1 according to BUF1PAGES.
4690 2008-05-24 Jakub Jelinek <jakub@redhat.com>
4692 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4693 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4694 (CFLAGS-scanf17.c): New.
4695 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4696 * stdio-common/scanf15.c (main): Likewise.
4697 * stdio-common/scanf16.c: New file.
4698 * stdio-common/scanf17.c: New file.
4700 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4702 * resolv/res_send.c (send_dg): If we already have one of two
4703 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4704 use the one answer insted of failing.
4706 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
4708 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4709 being executed on PowerPC as the expected result exceeds IBM
4710 long double 128 __LDBL_MAX__.
4712 2008-05-21 Roland McGrath <roland@redhat.com>
4714 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4716 * Makefile (check-data): Use $(abi-name) before other guesses.
4717 Look in $(add-ons) dirs before scripts/data/.
4718 * elf/Makefile (check-data): Likewise.
4720 * scripts/soversions.awk: Grok ABI line.
4721 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4722 Emit definition for abi-name variable.
4724 2008-05-21 Ulrich Drepper <drepper@redhat.com>
4726 * string/endian.h: Define new fixed-size hto* and *toh macros only
4729 * iconvdata/Depend: Add localedata.
4731 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4733 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4735 2008-05-08 David S. Miller <davem@davemloft.net>
4737 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4739 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4740 (__SYSCALL_CLOBBERS): Remove %g* registers.
4741 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4742 (__SYSCALL_CLOBBERS): Likewise.
4743 * scripts/data/localplt-sparc-linux-gnu.data: New file.
4744 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4746 2008-05-21 Jakub Jelinek <jakub@redhat.com>
4748 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4749 (CALL_ERRNO_LOCATION): Define.
4750 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4751 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4752 (CALL_ERRNO_LOCATION): Define.
4753 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4754 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4755 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4757 2008-05-20 Ulrich Drepper <drepper@redhat.com>
4759 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4762 2008-05-20 Jakub Jelinek <jakub@redhat.com>
4764 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4765 (FIRST_FRAME_POINTER): Define.
4767 2008-05-09 David S. Miller <davem@davemloft.net>
4769 * sysdeps/sparc/sparc64/backtrace.c: New file.
4771 2008-05-14 David S. Miller <davem@davemloft.net>
4773 * sysdeps/sparc/machine-gmon.h: New file.
4774 * sysdeps/sparc/sparc-mcount.S: Likewise.
4775 * sysdeps/sparc/Makefile: Add sparc-mcount target to
4776 sysdep_routines in gmon directory.
4778 2008-05-19 Jakub Jelinek <jakub@redhat.com>
4780 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4782 2008-05-19 Ulrich Drepper <drepper@redhat.com>
4784 * resolv/res_query.c (__libc_res_nquery): In case one of two
4785 answer was too short don't try to read that answer's header.
4787 * resolv/res_send.c (send_dg): In case of timeout and there are
4788 two queries and one has been answered, return value indicating
4791 2008-05-18 Ulrich Drepper <drepper@redhat.com>
4793 * nscd/cache.c (cache_add): Take additional parameter specifying
4794 whether this is in response of a cache refill. Check alignment
4795 of package data. Revamp waking of pruning thread.
4796 (prune_cache): Small optimization.
4797 * nscd/nscd.h: Adjust cache_add prototypes.
4798 * nscd/aicache.c: Adjust cache_add calls.
4799 * nscd/grpcache.c: Likewise.
4800 * nscd/hstcache.c: Likewise.
4801 * nscd/initgrcache.c: Likewise.
4802 * nscd/pwdcache.c: Likewise.
4803 * nscd/servicescache.c: Likewise.
4804 * nscd/connections.c (restart): Really disable cache use before
4805 exec attempt. If it fails, reenable cache.
4806 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
4807 time to max to be able to notice concurrent cache additions. Unlock
4808 prune_lock while performing gc. Afterwards compute wakeup time with
4809 current wakeup_time value in mind.
4811 2008-05-17 Ulrich Drepper <drepper@redhat.com>
4813 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4815 * nscd/mem.c (gc): Correctly determine highest used array element
4818 * nscd/mem.c (markrange): Add assert to check entries are all
4819 aligned. Small cleanup in bitmap use.
4821 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4822 blockoff of type nscd_ssize_t.
4823 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4824 (mempoll_alloc): Record block offset and not address.
4826 * nscd/mem.c (gc): Fix test for stack overuse.
4828 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4831 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4832 entry is available, believe it.
4834 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4835 no answers return NSS_STATUS_NOTFOUND.
4836 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4837 buffer does not have any content.
4839 2008-05-16 Ulrich Drepper <drepper@redhat.com>
4841 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4843 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4844 lookup, don't assign canon unconditionally.
4846 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4848 * string/Makefile (distribute): Add str-two-way.h.
4850 2008-03-29 Eric Blake <ebb9@byu.net>
4852 Rewrite string searches to O(n) rather than O(n^2).
4853 * string/str-two-way.h: New file. For linear fixed-allocation
4855 * string/memmem.c: New implementation.
4856 * string/strstr.c: New implementation.
4857 * string/strcasestr.c: New implementation.
4859 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
4861 * posix/regcomp.c (optimize_utf8): Add a note on why we test
4863 (calc_first): Initialize constraint field.
4864 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4865 Use search_duplicated_node to avoid loops. Fix grammar.
4866 (duplicate_node): Merge constraint field for all node types.
4867 (calc_eclosure_iter): Look at constraint field for all node types.
4868 * posix/regex_internal.c (create_cd_newstate): Don't look at
4871 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4874 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4877 * string/endian.h: Add macros for fixed-size endian conversion.
4878 * bits/byteswap.h: Allow inclusion from <endian.h>.
4879 * sysdeps/i386/bits/byteswap.h: Likewise.
4880 * sysdeps/ia64/bits/byteswap.h: Likewise.
4881 * sysdeps/s390/bits/byteswap.h: Likewise.
4882 * sysdeps/x86_64/bits/byteswap.h: Likewise.
4883 * string/Makefile (tests): Add tst-endian.
4884 * string/tst-endian.c: New file.
4886 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4887 Patch by Reuben Thomas.
4889 2008-05-14 Joseph Myers <joseph@codesourcery.com>
4891 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4893 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4895 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4898 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4900 (BODY for __gconv_transform_internal_ascii): Likewise.
4903 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4904 to be treated like link-local addresses.
4905 (match_prefix): Don't treat IPv4 loopback address special when
4906 converting to v4 mapped addressed.
4908 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4910 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4911 * posix/tst-rfc3484-2.c: Likewise.
4912 * posix/tst-rfc3484-3.c: Likewise.
4914 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4917 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4919 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4921 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4923 2008-05-13 Ulrich Drepper <drepper@redhat.com>
4925 * po/lt.po: New file. From Lituanian translation team.
4927 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
4929 Introduce TLS descriptors for i386 and x86_64.
4930 * include/inline-hashtab.h: New file, copied from 2005's
4931 libiberty, with fix for memory leak imported afterwards by
4932 Glauber de Oliveira Costa.
4933 * elf/tlsdeschtab.h: New file.
4934 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4935 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4936 (CHECK_STATIC_TLS): Move to...
4937 * elf/dynamic-link.h: ... this file.
4938 (TRY_STATIC_TLS): New macro.
4939 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4940 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4941 R_386_TLS_DESC): Define.
4942 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4944 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4945 R_X86_64_TLSDESC): Define.
4946 (R_386_NUM, R_X86_64_NUM): Adjust.
4947 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4948 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4949 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4950 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4951 release tlsdesc_table.
4952 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4953 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4954 (elf_machine_rel): Handle R_386_TLS_DESC.
4955 (elf_machine_rela): Likewise.
4956 (elf_machine_lazy_rel): Likewise.
4957 (elf_machine_lazy_rela): Likewise.
4958 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4959 * sysdeps/i386/dl-tlsdesc.S: New file.
4960 * sysdeps/i386/dl-tlsdesc.h: New file.
4961 * sysdeps/i386/tlsdesc.c: New file.
4962 * sysdeps/i386/tlsdesc.sym: New file.
4963 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4965 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4966 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4967 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4968 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4969 release tlsdesc_table.
4970 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4971 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4972 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4973 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4974 (elf_machine_rela): Likewise.
4975 (elf_machine_lazy_rel): Likewise.
4976 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4977 (__tls_get_addr): Do not declare for non-shared compiles.
4978 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4979 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4980 * sysdeps/x86_64/tlsdesc.c: New file.
4981 * sysdeps/x86_64/tlsdesc.sym: New file.
4982 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4983 tlsdesc_table for both 32- and 64-bit structs.
4985 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4987 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4988 its own function. This reduces the frame setup costs and more.
4990 2008-02-11 Joseph Myers <joseph@codesourcery.com>
4993 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4994 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4996 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4998 * io/openat.c (__openat_2): Also pass fd to __openat.
4999 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5000 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5002 * string/tester.c (test_memcmp): Add a few more tests.
5003 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5005 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5007 * nscd/cache.c (cache_add): Before returning with failure and this
5008 is the first use of the record, mark it as unusable.
5009 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5010 reporting a failure.
5011 * nscd/grpcache.c: Likewise
5012 * nscd/hstcache.c: Likewise.
5013 * nscd/initgrcache.c: Likewise.
5014 * nscd/pwdcache.c: Likewise.
5015 * nscd/servicescache.c: Likewise.
5017 2008-05-10 Roland McGrath <roland@redhat.com>
5020 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5022 2008-05-08 David S. Miller <davem@davemloft.net>
5024 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5026 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5027 (__ieee754_y0l): Likewise.
5028 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5029 (__ieee754_y1l): Likewise.
5030 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5031 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5032 frexpl and ldexpl. math_private.h provides them and the latter
5034 (__log1pl): Use __frexpl.
5036 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5038 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5040 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5041 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5042 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5043 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5045 (_nss_nis_gethostbyname4_r): New function.
5046 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5047 Change to also handle af==AF_UNSPEC.
5048 (get_tablename): New function. Use it to avoid duplication.
5049 (_nss_nisplus_gethostbyname4_r): New function.
5050 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5052 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5053 * nss/nss.h: Define struct gaih_addrtuple.
5054 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5056 (_nss_files_gethostbyname4_r): New function.
5057 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5058 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5060 * resolv/res_query.c (__libc_res_nquery): Take two additional
5061 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5062 look up IPv4 and IPv6.
5064 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5065 for an additional query and answer buffer. Pass to send_vc and
5067 (send_vc): Send possibly two requests and receive two answers.
5068 (send_dg): Likewise.
5069 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5071 (_nss_dns_gethostbyname4_r): New function.
5072 (gaih_getanswer_slice): Likewise.
5073 (gaih_getanswer): Likewise.
5074 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5075 __libc_res_nquery call.
5076 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5077 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5078 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5081 2008-05-05 David S. Miller <davem@davemloft.net>
5083 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5084 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5086 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5088 Fix termios bit macros.
5089 Move *DLY definitions where they belong, in termios.h.
5090 Add *[0-3] definitions.
5091 Fixes confusion between VT and FF.
5092 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5093 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5094 are already defined to avoid collision with termios.h.
5095 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5096 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5097 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5098 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5099 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5100 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5101 VTDLY, VT0, VT1): New macros.
5102 [__USE_GNU] (OLCUC): Change value of macro.
5103 [__USE_XOPEN] (OFILL): New macro.
5104 [__USE_BSD] (CRTSCTS): Change value.
5105 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5106 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5107 (B7200, B14400, B28800, B76800): New macros.
5109 2008-05-01 David S. Miller <davem@davemloft.net>
5111 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5112 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5113 (gen-as-const-headers): Add it.
5114 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5115 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5116 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5117 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5119 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5120 six system call parameters.
5121 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5123 2008-04-30 Ulrich Drepper <drepper@redhat.com>
5125 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5127 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5128 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5130 2008-04-30 Jakub Jelinek <jakub@redhat.com>
5132 * stdlib/tst-setcontext.c: Include unistd.h.
5134 2008-04-25 David S. Miller <davem@davemloft.net>
5136 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5137 Pass "union semun" properly in to sys_ipc, it must be passed
5138 by value, not by reference.
5140 2008-04-22 Jakub Jelinek <jakub@redhat.com>
5142 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5143 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5144 * nscd/connections.c (mem_in_flight): Likewise.
5146 * nscd/nscd.h (dbs): Make hidden.
5148 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5149 Avoid returning -1, return 0 instead.
5151 2008-04-19 Ulrich Drepper <drepper@redhat.com>
5153 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5155 2008-04-15 Ulrich Drepper <drepper@redhat.com>
5158 * sysdeps/unix/sysv/linux/times.c: New file.
5161 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5162 mem_in_flight_list variables. Add new parameter to mempool_alloc
5164 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5165 appropriate mem_in_flight element.
5166 (gc): Take allocations which have not yet been committed to the
5167 database into account.
5168 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5169 Reset mem_in_flight before returning.
5170 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5171 cue it up in mem_in_flight_list.
5172 * nscd/aicache.c: Adjust mempool_alloc call.
5173 * nscd/grpcache.c: Likewise.
5174 * nscd/hstcache.c: Likewise.
5175 * nscd/initgrcache.c: Likewise.
5176 * nscd/pwdcache.c: Likewise.
5177 * nscd/servicescache.c: Likewise.
5178 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5181 * nscd/connections.c (handle_request): Provide better error message
5182 in case SELinux forbids the service.
5184 * version.h (VERSION): Bump to 2.8.90.
5186 2008-04-17 Jakub Jelinek <jakub@redhat.com>
5188 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5190 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5192 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5193 Also use for 32-bit.
5194 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5195 __nextafter instead of nextafter to avoid local PLT.
5196 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5197 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5199 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5201 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5203 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5204 <fenv_libc.h> instead of <fenv.h>.
5205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5208 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5210 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5211 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5212 function from fegetexcept and make old name weak alias.
5213 * include/fenv.h: Declare __fegetexcept.
5214 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5216 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5217 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5219 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5220 instead of frexpl to avoid local PLT.
5221 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5222 ilogbl to avoid local PLT.
5223 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5224 instead of ldexpl to avoid local PLT.
5225 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5226 __roundl not roundl to avoid local PLT.
5227 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5228 local PLTs. Use __sincosl instead of separate sinl and cosl
5230 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5232 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5233 version for ppc64 to 2.4.21 since without it makecontext will fail.
5235 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5237 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5239 [__powerpc64__] (TLS_GD): Likewise.
5241 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5244 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5245 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5247 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5248 Likewise. Also account for when x is an odd number between 2^52
5250 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5251 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5252 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5253 detect aforementioned erroneous conditions.
5255 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5257 * configure.in: Check for -fno-section-anchors in addition to
5258 -fno-toplevel-reorder.
5260 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5262 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5264 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5265 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5266 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5267 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5268 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5269 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5271 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5274 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5275 * time/alt_digit.c: Likewise.
5276 * wcsmbs/wcsmbsload.c: Likewise.
5278 2008-04-10 Ulrich Drepper <drepper@redhat.com>
5280 * version.h (VERSION): Bump to 2.8.
5282 * timzeone/asia: Update from tzdata2008b.
5283 * timezone/backward: Likewise.
5284 * timezone/europe: Likewise.
5285 * timezone/northamerica: Likewise.
5286 * timezone/southamerica: Likewise.
5287 * timezone/iso3166.tab: Likewise.
5288 * timezone/leapseconds: Likewise.
5289 * timezone/zone.tab: Likewise.
5290 * timezone/private.h: Update from tzcode2008a.
5291 * timezone/zdump.c: Likewise.
5292 * timezone/zic.c: Likewise.
5294 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5297 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5298 Define additonal Data Cache Block instruction macros.
5299 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5300 Replace dcbst with dcbf and sync with sync/isync.
5302 2008-02-21 Alan Modra <amodra@bigpond.net.au>
5304 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5305 Always set ELF_RTYPE_CLASS_PLT.
5306 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5308 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5310 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5311 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5312 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5313 For ISA 2.01 and later replace mftb with mfspr 268.
5315 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5318 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5319 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5321 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5324 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5325 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5326 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5327 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5329 2008-04-10 Jakub Jelinek <jakub@redhat.com>
5331 * stdlib/tst-makecontext.c (othervar): New variable.
5332 (cf): Test sign extending the argument to long.
5334 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5336 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5337 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5338 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5339 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5340 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5341 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5342 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5344 2008-02-22 Alan Modra <amodra@bigpond.net.au>
5346 * elf/Makefile (tests): Substitute tests-vis-yes here.
5347 (tests-vis-yes): Delete.
5348 (modules-name, modules-vis-yes): Similarly.
5350 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5353 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5354 Preserve sign in signgamp when x is zero.
5356 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5358 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5359 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5360 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5361 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5362 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5363 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5365 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5368 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5372 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5373 a reserved error value.
5375 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5376 value to check for correct sign extension.
5379 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5380 Copy 64-bit parameter values even though this is not required in
5383 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5386 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5388 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5391 2008-04-09 Jakub Jelinek <jakub@redhat.com>
5393 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5395 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5398 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5399 in line-buffered stream failed.
5400 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5402 2008-04-08 Ulrich Drepper <drepper@redhat.com>
5405 * scripts/abi-versions.awk: If the version specified by
5406 --enable-oldest-abi is older than the first version for this
5407 architecture, use the default version.
5409 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5410 as well when ignoring the whole category.
5412 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5415 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5416 ETHERTYPE_* definitions.
5417 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5419 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5421 * stdlib/mbtowc.c (__no_r_state): Remove.
5422 (mbtowc): New static state variable. Use it instead of
5424 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5425 (__wctomb_state): New hidden variable.
5426 (wctomb): Use __wctomb_state instead of __no_r_state.
5427 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5428 (__wctomb_state): New extern decl.
5429 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5431 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5434 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5436 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5438 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5440 2008-04-06 Ulrich Drepper <drepper@redhat.com>
5442 * po/nl.po: Update from translation team.
5444 2008-03-31 Ulrich Drepper <drepper@redhat.com>
5447 * string/strfry.c: Handle empty strings again.
5449 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5452 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5453 before looking for translation.
5454 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5455 * locale/freelocale.c: Likewise.
5456 * locale/newlocale.c: Likewise.
5457 * locale/setlocale.c: Likewise.
5458 Based partially on a patch by ryo@np.css.fujitsu.com.
5460 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5462 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5463 acquiring wrlock. Do conv_tab allocation while holding lock.
5464 * intl/Makefile: Add rules to build and run tst-gettext6.
5465 * intl/tst-gettext6.c: New test.
5466 * intl/tst-gettext6.sh: New file.
5468 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5470 * po/nl.po: Update from translation team.
5472 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5473 provided through st_blksize, try the default size before giving up.
5475 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5477 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5480 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5482 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5483 error message. POSIX today does not require the messages to be in
5484 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5487 * sunrpc/auth_unix.c: Unify printed strings.
5488 * sunrpc/clnt_tcp.c: Likewise.
5489 * sunrpc/clnt_udp.c: Likewise.
5490 * sunrpc/clnt_unix.c: Likewise.
5491 * sunrpc/svc_tcp.c: Likewise.
5492 * sunrpc/svc_udp.c: Likewise.
5493 * sunrpc/svc_unix.c: Likewise.
5494 * sunrpc/xdr.c: Likewise.
5495 * sunrpc/xdr_array.c: Likewise.
5496 * sunrpc/xdr_rec.c: Likewise.
5497 * sunrpc/xdr_ref.c: Likewise.
5498 * locale/programs/ld-time.c (time_finish): Unify messages.
5499 * locale/programs/locfile.c (handle_copy): Fix typo.
5500 * nscd/nscd.c (options): Fix typo.
5503 * stdlib/strtod_l.c: Use correct sign for result in one more
5505 Patch by Eric Blake <ebb9@byu.net>.
5507 2008-03-27 Jakub Jelinek <jakub@redhat.com>
5509 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5510 and creat system calls.
5511 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5513 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5516 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5517 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5519 2008-03-27 Ulrich Drepper <drepper@redhat.com>
5521 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5522 <linux/limits.h> has defined it.
5523 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5524 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5526 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5527 it instead of ARG_MAX.
5529 2008-03-25 Jakub Jelinek <jakub@redhat.com>
5531 * posix/gai.conf: Fix comment for scope nullbits.
5532 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5533 default to 128 bits for v4 mapped addresses.
5535 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5537 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5538 ptrace call to get the ieee_instruction_pointer from the kernel.
5539 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5540 ptrace call to set the ieee_instructtion_pointer.
5541 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5542 Add comment that ieee_instruction_pointer is always 0.
5544 2008-03-09 Andreas Jaeger <aj@suse.de>
5547 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5548 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5549 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5551 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5552 (rint_test): Likewise.
5554 2008-03-24 Ulrich Drepper <drepper@redhat.com>
5556 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5558 (__nisfind_server): Similar for open readColdStartFile call.
5559 Patch partially by Jim Meyering.
5560 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5561 around internal_setent call.
5563 * po/vi.po: New Vietnamese translation.
5565 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5568 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5569 remove CLONE_STOPPED.
5571 2008-02-10 Jim Meyering <meyering@redhat.com>
5573 Remove useless "if" before "free":
5574 * elf/ldconfig.c (parse_conf_include): Likewise.
5575 * gmon/gmon.c (weak_alias): Likewise.
5576 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5577 * inet/rcmd.c (__validuser2_sa): Likewise.
5578 * intl/bindtextdom.c (set_binding_values): Likewise.
5579 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5580 * libio/genops.c (save_for_backup): Likewise.
5581 * libio/wgenops.c (save_for_wbackup): Likewise.
5582 * locale/programs/ld-collate.c (collate_read): Likewise.
5583 * locale/programs/linereader.c (get_string): Likewise.
5584 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5585 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5586 * resolv/res_debug.c (do_section): Likewise.
5587 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5588 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5589 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5590 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5591 * time/tzset.c (tzset_internal): Likewise.
5593 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5595 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5598 2008-03-11 Ulrich Drepper <drepper@redhat.com>
5601 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5602 not stream for output file. Open output file here.
5603 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5604 and output file name.
5605 (process_fd): Likewise.
5606 (process_file): Likewise.
5607 (main): Adjust callers of changed functions.
5608 * iconv/iconv_prog.h: Adjust prototype.
5610 2008-03-09 Andreas Jaeger <aj@suse.de>
5613 * sysdeps/ia64/ieee754.h: Use protected namespace
5614 __BIG_ENDIAN/__LITTLE_ENDIAN.
5615 * sysdeps/ieee754/ieee754.h: Likewise.
5616 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5618 2008-03-08 Roland McGrath <roland@frob.com>
5620 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5621 ignore a signal that came from a machine exception, treat it as a
5622 fatal core-dump signal instead.
5623 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5625 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5626 Clear DF bit in thread state's eflags.
5627 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5629 2008-03-08 Ulrich Drepper <drepper@redhat.com>
5632 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5633 of NAN(...) sequence.
5634 * stdlib/Makefile (tests): Add tst-strtod6.
5635 * stdlib/tst-strtod6.c: New file.
5637 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5640 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5641 putting offending option character in quotes. Clean up error
5643 * po/be.po: Adjust msgstr in translation file.
5644 * po/bg.po: Likewise.
5645 * po/ca.po: Likewise.
5646 * po/cs.po: Likewise.
5647 * po/da.po: Likewise.
5648 * po/de.po: Likewise.
5649 * po/es.po: Likewise.
5650 * po/fr.po: Likewise.
5651 * po/hr.po: Likewise.
5652 * po/ko.po: Likewise.
5653 * po/nl.po: Likewise.
5654 * po/rw.po: Likewise.
5655 * po/sk.po: Likewise.
5656 * po/sv.po: Likewise.
5657 * po/tr.po: Likewise.
5658 * po/zh_CN.po: Likewise.
5659 * po/zh_TW.po: Likewise.
5662 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5663 Patch by Roland Bless <roland@bless.de>.
5665 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5667 * elf/Makefile (routines): Add dl-sysdep.
5668 (elide-routines.os): Likewise.
5670 2008-03-07 Ulrich Drepper <drepper@redhat.com>
5673 * elf/dl-sysdep.c: Undefine ROUND after use.
5674 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5675 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5676 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5677 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5679 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5680 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5682 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5684 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5685 _dl_tls_get_addr_soft element.
5686 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5687 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5688 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5690 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5691 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5692 of internal_function.
5694 * stdlib/Makefile (aux): Add tens_in_limb.
5695 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5696 * stdlib/tens_in_limb.c: ...here. New file.
5699 * sysdeps/unix/sysv/linux/pathconf.h: Declare
5700 __statfs_chown_restricted.
5701 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5702 for _PC_CHOWN_RESTRICTED.
5703 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5704 Implement __statfs_chown_restricted.
5705 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5706 _POSIX_CHOWN_RESTRICTED value to zero.
5707 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5710 * sysdeps/x86_64/rtld-memset.c: New file.
5712 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
5714 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5716 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5717 Barcelona machine. Make default fall through branch of
5718 __x86_64_preferred_memory_instruction check as the integer code path.
5720 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5722 * sysdeps/x86_64/cacheinfo.c
5723 (__x86_64_preferred_memory_instruction): New variable.
5724 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5726 * sysdeps/x86_64/memset.S: Rewrite.
5728 2008-03-04 Jakub Jelinek <jakub@redhat.com>
5730 * include/stdio.h (__asprintf_chk, __dprintf_chk,
5731 __obstack_printf_chk): New prototypes.
5732 (__vasprintf_chk, __vdprintf_chk,
5733 __obstack_vprintf_chk): Likewise.
5734 Add libc_hidden_proto.
5736 (_IO_obstack_jumps): No longer static, add attribute_hidden.
5737 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5738 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5739 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5740 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5741 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5742 __obstack_vprintf_chk): New prototypes.
5743 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5744 obstack_vprintf): New inlines.
5745 * debug/dprintf_chk.c: New file.
5746 * debug/vdprintf_chk.c: New file.
5747 * debug/asprintf_chk.c: New file.
5748 * debug/vasprintf_chk.c: New file.
5749 * debug/obprintf_chk.c: New file.
5750 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5751 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5752 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5754 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5755 vdprintf_chk and obprintf_chk, set CFLAGS for them.
5756 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5757 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5759 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5760 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5761 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5762 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5763 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5765 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5766 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5767 obstack_vprintf_chk.
5768 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5769 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5770 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5771 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5772 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5773 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5775 2008-03-04 Ulrich Drepper <drepper@redhat.com>
5778 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5779 Patch by Roy Marples <roy@marples.name>.
5782 * malloc/malloc.c: Fix typo in comment.
5785 * locale/iso-639.def: Add Shuswap.
5787 2008-02-25 Jakub Jelinek <jakub@redhat.com>
5790 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5791 overwrite *h_errnop/*errnop values from getanswer_r in case of
5794 2008-03-03 Ulrich Drepper <drepper@redhat.com>
5797 * nscd/connections.c (dbs): Add initializers for .suggested_module.
5798 (verify_persistent_db): Remove one unnecessary test and add a new one
5799 for bad configuration.
5800 (nscd_init): Improve error reported when persistent database cannot
5802 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5803 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5804 .suggested_module and .max_db_size and case config file says the
5806 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5809 * nis/ypclnt.c (yp_order): Fix handling of return value of
5811 Patch by Jeff Moyer <jmoyer@redhat.com>.
5813 * po/fr.po: Update from translation team.
5815 2008-02-22 Andreas Jaeger <aj@suse.de>,
5816 Carlos O'Donell <carlos@systemhalted.org>
5819 * FAQ.in: Describe why glibc needs to be compiled with
5822 2008-02-19 Roland McGrath <roland@redhat.com>
5824 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5826 2008-02-15 Ulrich Drepper <drepper@redhat.com>
5829 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5830 __USE_MISC is defined.
5832 2008-02-10 Ulrich Drepper <drepper@redhat.com>
5834 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5835 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5837 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5838 timerfd_gettime, timerfd_settime.
5839 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5840 timerfd_gettime, timerfd_settime for GLIBC_2.8.
5842 2008-02-08 Roland McGrath <roland@redhat.com>
5844 * elf/elf.h (NT_PPC_SPE): New macro.
5846 2008-02-06 Roland McGrath <roland@redhat.com>
5848 * Makerules ($(common-objpfx)sysd-rules):
5849 Depend on $(sysdep-makeconfigs).
5851 2008-01-31 Roland McGrath <roland@redhat.com>
5854 * configure.in: Use -print-file-name if it yields a directory,
5855 for each of include and include-fixed.
5856 * configure: Regenerated.
5858 * Makeconfig (sysd-rules-targets): New variable.
5859 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5860 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5862 2008-01-30 Roland McGrath <roland@redhat.com>
5864 * manual/libc.texinfo: Update back-cover text.
5866 * elf/elf.h (NT_386_TLS): New macro.
5868 2008-01-29 Roland McGrath <roland@redhat.com>
5870 * Makeconfig (sysd-rules-patterns): New variable.
5871 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5872 (check-inhibit-asm): New canned sequence, replaces ...
5873 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5874 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5875 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5876 (CFLAGS-rtld): Variable removed.
5878 2008-01-24 Roland McGrath <roland@redhat.com>
5880 * configure.in: Let configure fragments set base_os.
5881 * configure: Regenerated.
5883 2008-01-22 Ulrich Drepper <drepper@redhat.com>
5885 * po/ko.po: Update from translation team.
5887 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5889 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5891 2008-01-12 Andreas Jaeger <aj@suse.de>
5894 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5897 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5899 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5900 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5901 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5903 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
5905 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5906 * elf/dl-close.c (_dl_close): Check for it.
5907 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5908 (_dl_allocate_static_tls): Likewise.
5909 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5910 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5912 * elf/tst-tls16.c: New file.
5913 * elf/tst-tlsmod16a.c: New file.
5914 * elf/tst-tlsmod16b.c: New file.
5915 * elf/Makefile: Add rules to build and run tst-tls16.
5917 2008-01-16 Ulrich Drepper <drepper@redhat.com>
5920 * bits/shm.h: Fix comment describing shmid_ds.
5921 * sysdeps/gnu/bits/shm.h: Likewise.
5922 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5923 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5924 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5925 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5926 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5927 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5928 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5929 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5930 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5933 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5935 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5936 additional suffixes.
5937 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5938 Add optional functions mq_timedreceive and mq_timedsend.
5939 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5940 * conform/data/pthread.h-data: Fix prototype of
5941 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5942 * conform/data/semaphore.h-data: Allow time.h definitions.
5943 * conform/data/signal.h-data: Likewise.
5944 * conform/data/stdio.h-data: getw and putw are not required in v6.
5945 * conform/data/stdlib.h-data: Change setstate prototype.
5946 * conform/data/string.h-data: Fix strerror_r prototype.
5947 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5948 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5949 Fix readlink prototype.
5950 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5952 * inet/netinet/in.h: Cleanup namespace.
5953 * posix/regex.h: Likewise.
5954 * resolv/netdb.h: Likewise.
5955 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5956 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5957 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5958 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5959 of names of in in6_addr.
5960 (default_precedence): Likewise.
5961 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5964 2008-01-15 Ulrich Drepper <drepper@redhat.com>
5966 * conform/data/fmtmsg.h-data: Add missing allows.
5967 * conform/data/ftw.h-data: Likewise.
5968 * conform/data/inttypes.h-data: Likewise.
5969 * conform/data/math.h-data: Likewise.
5970 * conform/data/signal.h-data: Likewise.
5971 * conform/data/net/if.h-data: Likewise.
5972 * conform/data/netinet/in.h-data: Likewise.
5973 * conform/data/sys/socket.h-data: Likewise.
5976 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5977 (__strtok_r): Simplify.
5978 * string/tester.c (test_strtok_r): Add test case for futile search
5979 with single-character seach string.
5981 2008-01-12 Ulrich Drepper <drepper@redhat.com>
5983 * po/ko.po: Update from translation team.
5985 2008-01-11 Andreas Jaeger <aj@suse.de>
5988 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5989 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5992 2008-01-10 Ulrich Drepper <drepper@redhat.com>
5994 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5995 native interface lookup in all the relevant places.
5997 2008-01-10 Jakub Jelinek <jakub@redhat.com>
5998 Ulrich Drepper <drepper@redhat.com>
6000 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6001 field. Use sockaddr_in6 for source_addr.
6002 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6003 (match_prefix): Likewise.
6004 (get_label): Likewise.
6005 (get_precedence): Likewise.
6006 (rfc3484_sort): Change to use indirect access to results array.
6007 Adjust to use of sockaddr_in6. Replace service_order test with
6008 simple index comparison.
6009 (getaddrinfo): Define order array. Initialize it. Don't initialize
6010 service_order field. Adjust qsort_t calls. Access sorted result
6011 array indirectly through order array.
6012 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6013 * posix/tst-rfc3484-2.c: Likewise.
6014 * posix/tst-rfc3484-3.c: Likewise.
6016 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6019 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6021 Patch by André Cruz.
6024 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6025 (clnt_spcreateerror): Likewise.
6028 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6029 (public_mEMALIGn): Likewise.
6030 Patch mostly by Daniel Jacobowitz.
6032 2008-01-09 Jakub Jelinek <jakub@redhat.com>
6034 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6035 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6036 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6037 * stdlib/tst-makecontext2.c: New test.
6039 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6041 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6043 (REINIT_PARAMS): Likewise. Undefine before end of file.
6044 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6045 transliteration hooks and REINIT_PARAMS afterwards.
6046 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6048 (REINIT_PARAMS): Define.
6049 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6050 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6051 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6052 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6053 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6054 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6055 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6056 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6057 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6058 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6059 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6060 * iconvdata/tst-iconv7.c: New test.
6062 2008-01-07 Ulrich Drepper <drepper@redhat.com>
6064 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6066 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6069 * nscd/connections.c (restart): Fix condition.
6071 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6073 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6074 __ctype_toupper_loc): Add __THROW.
6076 2008-01-02 Ulrich Drepper <drepper@redhat.com>
6078 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6079 recognition of interface family.
6081 * posix/getconf.c: Update copyright year.
6082 * nss/getent.c: Likewise.
6083 * iconv/iconvconfig.c: Likewise.
6084 * iconv/iconv_prog.c: Likewise.
6085 * elf/ldconfig.c: Likewise.
6086 * catgets/gencat.c: Likewise.
6087 * csu/version.c: Likewise.
6088 * elf/ldd.bash.in: Likewise.
6089 * elf/sprof.c (print_version): Likewise.
6090 * locale/programs/locale.c: Likewise.
6091 * locale/programs/localedef.c: Likewise.
6092 * nscd/nscd.c (print_version): Likewise.
6093 * debug/xtrace.sh: Likewise.
6094 * malloc/memusage.sh: Likewise.
6095 * malloc/mtrace.pl: Likewise.
6096 * debug/catchsegv.sh: Likewise.
6098 2007-12-26 Ulrich Drepper <drepper@redhat.com>
6100 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6103 2007-12-23 Ulrich Drepper <drepper@redhat.com>
6105 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6106 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6108 2007-12-17 Roland McGrath <roland@redhat.com>
6110 * inet/ether_line.c (ether_line): Remove unused variable.
6112 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6114 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6116 * login/openpty.c (openpty): Likewise.
6117 * login/pty.h (openpty, forkpty): Likewise.
6118 * manual/terminal.texi (openpty, forkpty): Likewise.
6120 2007-12-17 Ulrich Drepper <drepper@redhat.com>
6122 * malloc/malloc.c (public_cALLOc): For arenas other than
6123 main_arena, count all bytes inside the mprotect_size range of the
6124 heap as uninitialized.
6126 2007-12-16 Ulrich Drepper <drepper@redhat.com>
6128 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6131 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6132 mTRIm for all of them.
6133 (mTRIm): Additionally iterate over all free blocks and use madvise
6134 to free memory for all those blocks which contain at least one
6136 * malloc/tst-trim1.c: New file.
6137 * malloc/Makefile (tests): Add tst-trim1.
6139 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6141 2007-12-14 Ulrich Drepper <drepper@redhat.com>
6143 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6144 First cast argument to long
6145 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6147 (__vdso_clock_gettime): Likewise.
6148 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6151 2007-12-13 Ulrich Drepper <drepper@redhat.com>
6153 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6154 * locale/nl_langinfo_l.c: Real implementation, copied from
6156 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6158 2007-12-01 Jim Meyering <meyering@redhat.com>
6160 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6161 that would inhibit utf8-optimization of a regexp containing line-
6162 or buffer-anchors, e.g., `^', `$'.
6164 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6166 * time/bug-getdate1.c (do_test): Don't use century values which
6167 aren't valid on 32-bit systems.
6169 2007-12-12 Jakub Jelinek <jakub@redhat.com>
6171 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6172 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6173 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6174 __strcat_g, __strncat_g): Add __asm__.
6176 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6179 * io/fchmodat.c: Fix typo in stub_warning use.
6180 Patch by Petr Salinger.
6182 2007-12-11 Ulrich Drepper <drepper@redhat.com>
6184 * iconvdata/hp-thai8.c: New file.
6185 * iconvdata/Makefile: Add rules for hp-thai8.c.
6186 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6187 * iconvdata/gconv-modules: Likewise.
6190 * iconvdata/hp-greek8.c: New file.
6191 * iconvdata/Makefile: Add rules for hp-greek8.c.
6192 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6193 * iconvdata/gconv-modules: Likewise.
6196 * iconvdata/hp-turkish8.c: New file.
6197 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6198 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6199 * iconvdata/gconv-modules: Likewise.
6201 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6202 (shrink_heap): ... this new function.
6203 (heap_trim): Call shrink_heap instead of grow_heap.
6205 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6206 case don't call alloc_perturb.
6208 2007-12-10 Ulrich Drepper <drepper@redhat.com>
6210 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6212 * sysdeps/unix/sysv/linux/kernel-features.h
6213 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6214 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6216 2007-12-08 Ulrich Drepper <drepper@redhat.com>
6219 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6220 * stdio-common/Makefile (tests): Add bug22.
6221 * stdio-common/bug22.c: New file.
6224 * time/getdate.c: Fix filling in default values.
6225 * time/bug-getdate1.c: New file.
6226 * time/Makefile: Add rules to build and run bug-getdate1.
6228 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6229 * iconvdata/ebcdic-es.c: Likewise.
6230 * iconvdata/ebcdic-es-a.c: Likewise.
6231 * iconvdata/ebcdic-uk.c: Likewise.
6232 * iconvdata/iso8859-16.c: Likewise.
6233 * iconvdata/viscii.c: Likewise.
6234 * iconvdata/iso8859-9e.c: Likewise.
6235 * iconvdata/Makefile: Adjust appropriately.
6238 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6241 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6244 * iconvdata/hp-roman9.c: New file.
6245 * iconvdata/Makefile: Add rules for hp-roman9.c.
6246 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6247 * iconvdata/gconv-modules: Likewise.
6249 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6250 * iconvdata/Makefile: Adjust appropriately.
6253 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6254 structure, it's allocated with alloca.
6255 * stdio-common/Makefile (tests): Add bug21.
6256 * stdio-common/bug21.c: New file.
6258 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6261 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6262 keyword for gcc's braced-groups.
6264 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6267 * inet/ether_line.c: Strip hostname of whitespaces.
6268 * inet/Makefile (tests): Add tst-ether_line.
6269 * inet/tst-ether_line.c: New file.
6271 2007-12-03 Ulrich Drepper <drepper@redhat.com>
6274 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6277 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6279 * stdlib/tst-setcontext.c: Catch the case where the links gets
6280 messed up and we do not reach main again.
6282 * po/ca.po: Update from translation team.
6284 2007-11-26 Ulrich Drepper <drepper@redhat.com>
6286 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6287 * posix/regex.h (REG_ENOSYS): Likewise.
6288 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6290 2007-11-25 Ulrich Drepper <drepper@redhat.com>
6292 * nscd/nscd.h (MAX_STACK_USE): Define.
6293 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6294 (gc): Initialize stack_used based on allocation in prune_cache.
6295 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6296 Clear array before use.
6298 * nscd/aicache.c (addhstaiX): Update statistics counter in case
6299 memory allocation failed.
6300 * nscd/hstcache.c (cache_addhst): Likewise.
6301 * nscd/grpcache.c (cache_addgr): Likewise.
6302 * nscd/servicescache.c (cache_addserv): Likewise.
6303 * nscd/pwdcache.c (cache_addpw): Likewise.
6304 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6306 2007-11-23 Ulrich Drepper <drepper@redhat.com>
6308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6309 and creat system calls.
6311 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6313 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6315 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6317 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6318 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6320 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6321 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6322 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6324 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6326 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6327 strncat): Define as macros to avoid compile errors.
6329 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6332 2007-11-22 Ulrich Drepper <drepper@redhat.com>
6335 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6336 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6337 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6339 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6341 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6342 Return zero in case the thread library is not NPTL.
6345 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6346 initializing interface list.
6349 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6350 use result of nss_getgrgid_r if nothing was found. For other
6351 error return with a failure.
6352 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6354 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6357 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6359 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6360 (get_scope): For IPv4 scope, use scopes table.
6361 (fini): Free scopes table if necessary.
6362 (free_scopelist): New function.
6363 (scopecmp): New function.
6364 (gaiconf_init): Also handle scopev4 entries.
6365 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6366 * posix/tst-rfc3484-2.c (do_test): Likewise.
6367 * posix/gai.conf: Document scopev4 defaults.
6368 * posix/Makefile (tests): Add tst-rfc3484-3.
6369 * posix/tst-rfc3484-3.c: New file.
6371 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6373 * posix/gai.conf: Update for current default tables.
6375 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6377 * po/tr.po: Update from translation team.
6379 2007-11-18 Roland McGrath <roland@frob.com>
6381 * manual/arith.texi (Remainder Functions): Spelling fix.
6382 From Shaun Silk <genix@mysoul.com.au>.
6384 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6386 2007-11-17 Ulrich Drepper <drepper@redhat.com>
6388 * po/zh_CN.po: Update from translation team.
6390 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6391 Add sys/signalfd.h and sys/eventfd.h.
6393 2007-11-15 Bruno Haible <bruno@clisp.org>
6396 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6398 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6399 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6400 it needs only fixed stack space. Delay the initialization of
6401 msgid_len until it is needed.
6403 2007-11-15 Andreas Jaeger <aj@suse.de>
6405 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6406 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6408 2007-11-15 Ulrich Drepper <drepper@redhat.com>
6410 * po/ko.po: Update from translation team.
6412 2007-11-14 Ulrich Drepper <drepper@redhat.com>
6414 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6415 significantly. The device type is also part of the ifinfomsg data.
6417 * po/sv.po: Update from translation team.
6418 * po/nl.po: Likewise.
6420 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6421 to wake up in 24 hours.
6423 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6425 2007-11-13 Ulrich Drepper <drepper@redhat.com>
6427 * po/cs.po: Update from translation team.
6428 * po/pl.po: Likewise.
6430 * include/ifaddrs.h: Remove in6ai_temporary.
6431 (struct in6addrinfo): Add index element.
6432 Declare __check_native.
6433 * inet/Makefile (aux): Add check_native.
6434 * sysdeps/unix/sysv/linux/check_native.c: New file.
6435 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6436 IFA_F_TEMPORARY. Pass back ifa_index.
6437 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6438 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6439 call __check_native if necessary.
6440 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6441 to sort addresses. Pass information about the results.
6442 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6443 of rfc3484_sort interface.
6444 * posix/tst-rfc3484-2.c: Likewise.
6446 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6447 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6449 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6450 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6451 on as third parameter to compare function and _quicksort.
6452 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6453 to the compare function.
6454 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6455 * Versions.def: Add GLIBC_2.8 for libc.
6457 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6458 * posix/tst-rfc3484-2.c: Likewise.
6460 * include/kernel-features.h: Moved to...
6461 * sysdeps/mach/hurd/kernel-features.h: ...here.
6463 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6465 * sysdeps/i386/i586/memcpy_chk.S: New file.
6466 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6467 * sysdeps/i386/i586/memset_chk.S: Likewise.
6469 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6471 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6472 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6473 list of interfaces. Also store prefix length.
6474 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6475 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6476 prefix if source and destination address are in the same subnet.
6477 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6478 Always look for matching record in in6ai list.
6479 Correct source_addr_len value for IPv6->IPv4 converted records.
6481 2007-11-11 Roland McGrath <roland@frob.com>
6483 * include/kernel-features.h: New file.
6485 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6487 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6488 complications for 64-bit platforms.
6490 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6491 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6492 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6494 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6496 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6497 * sysdeps/wordsize-64/alphasort.c: New file.
6498 * sysdeps/wordsize-64/alphasort64.c: New file.
6499 * sysdeps/wordsize-64/fseeko.c: New file.
6500 * sysdeps/wordsize-64/fseeko64.c: New file.
6501 * sysdeps/wordsize-64/ftello.c: New file.
6502 * sysdeps/wordsize-64/ftello64.c: New file.
6503 * sysdeps/wordsize-64/ftw.c: New file.
6504 * sysdeps/wordsize-64/ftw64.c: New file.
6505 * sysdeps/wordsize-64/iofgetpos.c: New file.
6506 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6507 * sysdeps/wordsize-64/iofopen.c: New file.
6508 * sysdeps/wordsize-64/iofopen64.c: New file.
6509 * sysdeps/wordsize-64/iofsetpos.c: New file.
6510 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6511 * sysdeps/wordsize-64/lockf.c: New file.
6512 * sysdeps/wordsize-64/lockf64.c: New file.
6513 * sysdeps/wordsize-64/mkostemp.c: New file.
6514 * sysdeps/wordsize-64/mkostemp64.c: New file.
6515 * sysdeps/wordsize-64/mkstemp.c: New file.
6516 * sysdeps/wordsize-64/mkstemp64.c: New file.
6517 * sysdeps/wordsize-64/scandir.c: New file.
6518 * sysdeps/wordsize-64/scandir64.c: New file.
6519 * sysdeps/wordsize-64/tmpfile.c: New file.
6520 * sysdeps/wordsize-64/tmpfile64.c: New file.
6521 * sysdeps/wordsize-64/versionsort.c: New file.
6522 * sysdeps/wordsize-64/versionsort64.c: New file.
6523 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6524 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6525 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6526 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6527 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6528 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6529 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6530 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6531 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6532 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6533 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6534 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6536 * crypt/sha256-crypt.c: Fix a comment.
6537 * crypt/sha512-crypt.c: Likewise.
6539 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6541 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6543 2007-11-07 Ulrich Drepper <drepper@redhat.com>
6546 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6547 because output buffer is too small break, don't loop.
6548 * iconvdata/Makefile (tests): Add bug-iconv6.
6549 * iconvdata/bug-iconv6.c: New file.
6551 2007-11-06 Ulrich Drepper <drepper@redhat.com>
6553 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6555 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6556 size_t. Add casts where needed.
6558 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6559 old headers, don't call avc_has_perm if we don't have the
6560 permission information.
6562 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6564 * elf/rtld.c (dl_main): Use the page size to find the map start.
6566 2007-11-05 Ulrich Drepper <drepper@redhat.com>
6568 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6569 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6571 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6572 when the lookup call failed.
6574 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6575 Add prune_cond and wakeup_time.
6576 (CACHE_PRUNE_INTERNAL): Define.
6577 Update declarations of prune_cache and setup_thread.
6578 * nscd/connections.c (dbs): Update initializers.
6579 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6580 (nscd_init): Default number of threads is now 4.
6581 (invalidate_cache): Take lock before calling prune_cache.
6582 (handle_request): If SELinux forbids the request, say so.
6583 (readylist_cond): Use static initializer.
6584 (nscd_run_prune): New function. Used only by pruning threads.
6585 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6587 (fd_ready): Update nscd_run reference.
6588 (start_threads): No need to initialize readylist_cond.
6589 Start pruning threads separately.
6590 * nscd/nscd_setup_thread.c: Change return value type to int and always
6592 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6593 to int and return nonzero value if we can use the TID address hack.
6594 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6595 the database is later than the new entry's timeout, update the
6596 wakeup time and wake the cleanup thread.
6597 (prune_cache): Return seconds the next entry in the database is still
6598 valid. Remove locking for pruning here.
6599 * nscd/nscd.conf: Document default number of threads.
6601 2007-10-31 Ulrich Drepper <drepper@redhat.com>
6603 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6604 stack is properly aligned for the target function.
6605 Correct unwind info.
6607 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6608 when using auditing libraries.
6610 2007-10-29 Ulrich Drepper <drepper@redhat.com>
6612 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6613 _nss_dns_getnetbyaddr2_r.
6614 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6615 extra parameter to getanswer_r.
6616 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6617 _nss_dns_getnetbyaddr2_r.
6619 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6621 * nscd/gethstbynm2_r.c: Remove.
6622 * nscd/gethstbynm3_r.c: New file.
6623 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6625 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6626 __gethostbyaddr_r compatibility wrapper.
6627 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6628 determining timeout of entry.
6629 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6631 (addhstbyX): Pass reference to variable for TTL to lookup and
6633 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6634 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6635 and __nss_next2. Remove __nss_services_lookup.
6636 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6638 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6640 * nss/getXXent_r.c: Likewise.
6641 * nss/getnssent_r.c: Likewise.
6642 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6643 does not exist in module, try the optional second name.
6644 (__nss_next2): New function.
6645 (__nss_next): Now wrapper around __nss_next2.
6646 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6647 Declare __nss_next2.
6648 Adjust definition of db_lookup_function type.
6649 * nss/service-lookup.c: Define NO_COMPAT.
6650 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6651 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6652 * inet/ether_ntoh.c: Likewise.
6653 * sunrpc/netname.c: Likewise.
6654 * sunrpc/publickey.c: Likewise.
6655 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
6656 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6657 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6658 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6659 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6661 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6663 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6665 2007-10-28 Ulrich Drepper <drepper@redhat.com>
6668 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6669 * crypt/sha512c-test.c: Likewise.
6672 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6673 to keep track of end of %[ format string element.
6674 * stdio-common/Makefile (tests): Add bug20.
6675 * stdio-common/bug20.c: New file.
6678 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6679 path elements in counting mode.
6681 2007-10-27 Andreas Jaeger <aj@suse.de>
6684 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6687 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6688 (__cleanup): Free shared library when exiting.
6689 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6690 (__cleanup): Free shared library when exiting.
6692 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
6695 * math/libm-test.inc (check_float_internal): Support
6696 denormalized return.
6698 2007-10-23 Andreas Jaeger <aj@suse.de>
6701 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6702 __LONG_LONG_PAIR to handle little endian byte order.
6703 Suggested by abhishekrai@google.com
6705 2007-10-27 Ulrich Drepper <drepper@redhat.com>
6707 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6709 2007-10-26 Ulrich Drepper <drepper@redhat.com>
6711 * nscd/cache.c (prune_cache): Move test for modified file outside
6714 2007-10-21 Andreas Jaeger <aj@suse.de>
6716 * manual/texinfo.tex: Update to latest version.
6718 * manual/sysinfo.texi (System Parameters): Fix Formatting.
6720 * manual/arith.texi (Status bit operations): Fix formatting.
6722 * manual/errno.texi (Error Messages): Fix formatting.
6724 * manual/sysinfo.texi (System Parameters): Fix formatting.
6726 * manual/libc.texinfo: Update VERSION and UPDATED.
6728 2007-10-19 Roland McGrath <roland@redhat.com>
6730 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6732 2007-10-06 David S. Miller <davem@davemloft.net>
6734 * configure.in: Add sparcv9v2 and sparc64v2.
6735 * scripts/config.sub: Likewise.
6736 * configure: Regenerate.
6737 * elf/elf.h (HWCAP_SPARC_N2): New.
6738 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6739 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6740 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6741 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6742 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6743 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6744 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6746 2007-10-18 Ulrich Drepper <drepper@redhat.com>
6748 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6749 even if the poll result indicates there is data to read.
6750 Patch by Jeff Moyer <jmoyer@redhat.com>.
6752 2007-10-18 Roland McGrath <roland@redhat.com>
6754 * elf/elf.h (NT_PPC_VMX): New macro.
6756 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6758 * version.h (VERSION): Set to 2.7.90.
6760 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6762 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
6765 2007-10-17 Roland McGrath <roland@frob.com>
6767 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6768 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6770 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6772 * version.h (VERSION): Bump to 2.7.
6773 * include/features.h (__GLIBC_MINOR__): Bump to 7.
6776 * time/tzset.c (__tz_convert): Don't force testing for a change of
6777 TZ if not called from localtime. But then also see whether the
6778 file changed, in case __use_tzfile is set.
6780 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6781 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6782 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6783 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6784 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6785 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6786 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6787 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6789 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6791 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6792 and admin selects to be able to replace the gai.conf file, lock
6793 data structures around the qsort call.
6795 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6797 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6799 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
6800 too high for the improvements. Implement bzero unconditionally for
6803 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6804 Jakub Jelinek <jakub@redhat.com>
6806 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6807 even when time_t is 32-bit.
6808 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6809 timezone data read by __tzfile_default. Ensure __tzname[0] is
6810 always set after the search.
6812 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6814 * time/tzfile.c (__tzfile_read): Help the compiler recognize
6815 unreachable code on 32-bit machines.
6817 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6820 * time/strftime_l.c: Include stdbool.h.
6821 (my_strftime): New wrapper, old function renamed to...
6822 (__strftime_internal): ... new function. Add tzset_called
6823 argument, pass it down to recursive calls, don't call tzset ()
6824 if already true, set to true after call to tzset ().
6826 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6828 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6829 into account when copying TZ string.
6831 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6833 * time/tzfile.c (__tzfile_compute): For use_last case set i to
6834 num_transition rather than num_transitions - 1.
6836 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6838 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6841 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6842 a local label rather than HIDDEN_JUMPTARGET.
6844 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6846 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6847 (init_cacheinfo): Initialize it.
6848 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6849 Always define bzero.
6850 Remove non-glibc code.
6851 * sysdeps/x86_64/bzero.S: Make an empty file.
6853 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6855 * sysdeps/x86_64/cacheinfo.c
6856 (__x86_64_preferred_memory_instruction): New.
6857 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6859 * sysdeps/x86_64/memset.S: Rewrite.
6861 2007-10-15 Roland McGrath <roland@redhat.com>
6863 * po/libc.pot: Regenerated.
6865 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6867 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6871 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6872 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6873 address record to T_A/T_AAAA requests.
6875 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6877 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6879 * posix/glob.c: Add some branch prediction throughout.
6881 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6884 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6886 (rfc3484_sort): Make sure that even if qsort doesn't support
6887 stable sorting out sorting here is stable by comparing service_order.
6888 (getaddrinfo): Initialize service_order.
6889 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6890 service_order field to sorting structure.
6891 * posix/tst-rfc3484-2.c (do_test): Likewise.
6893 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6894 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6895 __tzset_parse_tz and updating of daylight, timezone, tzname into
6897 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6898 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6899 happens in __tz_compute.
6900 * time/tzfile.c (__tzfile_read): Also read TZ string.
6901 (find_transition): Fold into __tzfile_compute.
6902 (__tzfile_compute): For times beyond the last transition try to
6904 * timezone/tst-timezone.c: Information in daylight and tzname does
6905 change for Asia/Tokyo timezone with more concrete information.
6908 * include/stdio.h: Add libc_hidden_proto for ftello.
6909 * libio/ftello.c: Add libc_hidden_def.
6912 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6913 on the specified time and not the last entries in the file. Move
6914 code to determine tzname[] to...
6915 (find_transition): ...here. Add ugly guess for times before the
6918 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6921 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6923 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6924 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6925 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6926 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6928 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6929 read mechanism when there are no group members and avoid no-op
6930 read syscall in this case.
6933 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6934 (__readall): If reading failed due to EAGAIN error wait a bit
6935 and possibly try again.
6936 (__readvall): Likewise.
6938 2007-10-13 Bruno Haible <bruno@clisp.org>
6940 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6941 when we cannot recode the message.
6943 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6946 * libio/__freading.c (__freading): Don't return true for
6947 write-only streams. For read/write streams, check whether we
6948 performed a read operation already.
6949 * libio/Makefile (tests): Add tst-ext2.
6950 * libio/tst-ext2.c: New file.
6952 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6954 * locale/programs/repertoire.c (repertoire_read): Always free
6955 memory for repertoire file name [Coverity CID 270].
6957 * elf/cache.c (save_aux_cache): Free memory allocated for
6958 temporary file name [Coverity CID 267].
6960 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6962 * misc/Makefile (headers): Add bits/error.h.
6964 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6966 * posix/fnmatch_loop.c: Take rule index returned as part of
6967 findidx return value into account when accessing weights.
6968 * posix/regcomp.c: Likewise.
6969 * posix/regexec.c: Likewise.
6971 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6972 (skip_to): Fix problems with parameter of elifdef/elifndef.
6974 2007-10-11 Ulrich Drepper <drepper@redhat.com>
6976 * iconv/gconv_simple.c: Add some branch prediction.
6978 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6980 * locale/programs/ld-collate.c (collate_read): If ignore_content
6981 and nowtok is tok_define, eat any tok_eol tokens.
6983 2007-10-11 Jakub Jelinek <jakub@redhat.com>
6985 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6986 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6988 * inet/netinet/in.h: Don't include bits/socket.h.
6989 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6991 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6993 2007-10-10 Ulrich Drepper <drepper@redhat.com>
6995 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6997 * locale/programs/locfile-kw.gperf: Likewise.
6998 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7000 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7002 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7003 (__find_specwc): Change into __extern_always_inline function.
7004 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7005 (__parse_one_specmb): Remove ps argument.
7006 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7007 Adjust __find_specmb and __parse_one_specmb callers.
7008 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7009 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7011 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7014 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7016 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7017 with some Pentium Ds.
7019 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7021 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7023 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7026 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7029 * locale/C-time.c: Set week_1stday data to 19971201.
7030 * locale/programs/ld-time.c (time_finish): Default for
7031 first_workday is Monday.
7034 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7037 * posix/glob.c (glob): Recognize patterns starting \/.
7038 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7039 (main): Add test for pattern starting \/.
7041 * misc/error.h: Use __const instead of const.
7042 * misc/bits/error.h: Likewise.
7044 2007-10-07 Andreas Jaeger <aj@suse.de>
7046 * include/bits/error.h: New file.
7048 * misc/bits/error.h (error_at_line): Fix prototype.
7050 2007-10-06 Ulrich Drepper <drepper@redhat.com>
7053 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7054 more little bugs in creating the stack frame when pltexit has to
7057 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7058 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7061 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7062 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7063 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7064 * math/libm-test.inc: Add test for this case.
7067 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7068 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7069 map service succeeded.
7070 (svc_is_mapped): New function.
7071 (svc_unregister): Use it before trying to unmap service.
7073 2007-10-05 Ulrich Drepper <drepper@redhat.com>
7075 * timezone/zic.c: Update from tzcode2007h.
7078 * timezone/africa: Update from tzdata2007h.
7079 * timezone/antarctica: Likewise.
7080 * timezone/asia: Likewise.
7081 * timezone/australasia: Likewise.
7082 * timezone/europe: Likewise.
7083 * timezone/leapseconds: Likewise.
7084 * timezone/northamerica: Likewise.
7085 * timezone/southamerica: Likewise.
7086 * timzeone/zone.tab: Likewise.
7089 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7092 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7093 avoid warning with -Wconversion.
7094 (__strndup): Likewise.
7095 Half the patch by Christian Iseli <christian.iseli@licr.org>.
7098 * nscd/connections.c (restart): Don't resync if database is
7099 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7101 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7102 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7104 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7105 evetnfd_read, eventfd_write.
7106 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7107 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7108 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7109 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7110 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7111 eventfd_write for GLIBC_2.7.
7113 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7114 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7115 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7116 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7118 2007-10-04 Jakub Jelinek <jakub@redhat.com>
7120 * stdlib/msort.c: Include stdint.h.
7121 (struct msort_param): New type.
7122 (msort_with_tmp): Use struct msort_param pointer for unchanging
7123 parameters. Add optimized handling for several common sizes
7124 and indirect sorting mode.
7125 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7127 Suggested by Belazougui Djamel .
7129 * stdlib/Makefile (tests): Add tst-qsort2.
7130 * stdlib/tst-qsort2.c: New test.
7132 2007-10-04 Ulrich Drepper <drepper@redhat.com>
7134 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7135 for dup2 in case another thread races with the current one. Retry
7138 * misc/error.h: Remove support for use outside of libc. We have to
7139 include <features.h> now. Include <bits/error.h> if possible.
7140 * misc/bits/error.h: New file.
7142 2007-10-03 Jakub Jelinek <jakub@redhat.com>
7144 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7145 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7146 __extern_always_inline functions unconditionally, drop macros.
7148 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7149 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7150 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7152 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7153 add __artificial__ attribute.
7155 2007-10-02 Ulrich Drepper <drepper@redhat.com>
7157 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7158 backward to forward direction.
7160 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7163 * locale/programs/ld-collate.c (collate_finish): Compare against last
7164 used section which is known to have rules defined.
7165 (collate_read): After order_start, correctly record order of sections
7166 and queue sections up.
7168 2007-10-01 Ulrich Drepper <drepper@redhat.com>
7171 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7172 the same number of pages.
7173 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7175 * locale/programs/ld-collate.c (collate_read): After initial copy
7176 statement, continue in state 0.
7178 * include/stdio_ext.h (__fsetlocking): Define as macro.
7180 2007-09-30 Ulrich Drepper <drepper@redhat.com>
7182 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7185 * po/pt_BR.po: Fix typo.
7187 2007-09-29 Ulrich Drepper <drepper@redhat.com>
7189 * iconvdata/Makefile (modules): Add ISO8859-9E.
7190 (distribute): Add iso8859-9e.c.
7191 (gen-8bit-gap-modules): Add iso8859-9e.
7192 * iconvdata/iso8859-9e.c: New file.
7193 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7194 * iconvdata/TESTS: Likewise.
7195 * iconvdata/tst-tables.sh: Likewise.
7197 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7199 * locale/iso-639.def: Add several new entries.
7201 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7203 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7204 void * pointers instead of struct link_map **.
7205 (_dl_scope_free): Change argument type to void *.
7206 * include/link.h (struct link_map): Change type of l_reldeps
7207 to struct link_map_reldeps, move l_reldepsact into that
7209 * elf/dl-deps.c: Include atomic.h.
7210 (_dl_map_object_deps): Only change l->l_initfini when it is
7211 fully populated, use _dl_scope_free for freeing it. Optimize
7212 removal of libs from reldeps by using l_reserved flag, when
7213 some removal is needed, allocate a new list instead of
7214 reallocating and free the old with _dl_scope_free. Adjust
7215 for l_reldeps and l_reldepsact changes.
7216 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7217 searching in l_initfini and l_reldeps without holding dl_load_lock.
7218 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7219 l_reldepsact changes.
7220 * elf/dl-close.c (_dl_close_worker): Likewise.
7221 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7223 2007-09-28 Ulrich Drepper <drepper@redhat.com>
7225 * iconvdata/Makefile (modules): Add KOI8-RU.
7226 (distribute): Add koi8-ru.c.
7227 (gen-8bit-gap-modules): Add koi8-ru.
7228 * iconvdata/koi8-ru.c: New file.
7229 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7230 * iconvdata/TESTS: Likewise.
7231 * iconvdata/tst-tables.sh: Likewise.
7233 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7235 2007-09-26 Jakub Jelinek <jakub@redhat.com>
7237 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7238 with __warning__/__error__ attributes.
7239 (__warnattr): Define.
7240 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7241 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7243 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7244 of __*_chk if compile time detectable overflow is found.
7245 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7246 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7248 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7249 instead of __*_chk if compile time detectable overflow is found.
7250 (__gets_alias): Rename to...
7251 (__gets_warn): ... this. Add __warnattr.
7252 (gets): Call __gets_warn instead of __gets_alias.
7253 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7254 aliases with __warnattr.
7255 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7256 time detectable overflow is found.
7257 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7258 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7259 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7260 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7261 __getdomainname_chk_warn): New aliases with __warnattr.
7262 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7263 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7264 __*_chk_warn instead of __*_chk if compile time detectable overflow
7266 (__getgroups_chk): Rename argument to __listlen from listlen.
7267 (__getwd_alias): Rename to...
7268 (__getwd_warn): ... this. Add __warnattr.
7269 (getwd): Call __getwd_warn instead of __getwd_alias.
7270 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7271 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7272 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7273 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7274 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7275 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7276 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7277 compile time detectable overflow is found.
7278 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7279 to use __*_chk or not.
7280 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7281 in comparisons which function should be called and in __*_chk*
7282 arguments. Call __*_chk_warn instead of __*_chk if compile time
7283 detectable overflow is found.
7284 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7286 * debug/tst-chk1.c (do_test): Add a few more tests.
7288 2007-09-24 Ulrich Drepper <drepper@redhat.com>
7291 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7292 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7293 (_nl_unload_domain): Finalize conversions_lock.
7294 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7295 handling table of known conversions.
7297 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7299 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7300 close_not_cancel_no_status instead of close.
7302 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7305 * posix/regcomp.c (lookup_collation_sequence_value): Check that
7306 nrules != 0 for multibyte chars.
7308 2007-09-23 Ulrich Drepper <drepper@redhat.com>
7310 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7311 Provide better error message in case the type is unknown.
7314 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7315 * string/stratcliff.c: Make usable to test wide char functions.
7316 * wcsmbs/wcsatcliff.c: New file.
7317 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7320 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7321 (distribute): Add mac-centraleurope.c.
7322 (gen-8bit-gap-modules): Add mac-centraleurope.
7323 * iconvdata/mac-centraleurope.c: New file.
7324 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7325 * iconvdata/TESTS: Likewise.
7326 * iconvdata/tst-tables.sh: Likewise.
7329 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7331 2007-09-21 Ulrich Drepper <drepper@redhat.com>
7333 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7334 from __x86_64_core_cache_size_half.
7335 (init_cacheinfo): Compute shared cache size for AMD processors with
7336 shared L3 correctly.
7337 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7339 Patch in large parts by Evandro Menezes.
7341 2007-09-19 Ulrich Drepper <drepper@redhat.com>
7343 * elf/dl-lookup.c (add_dependency): Handle failing memory
7344 allocation for dependency list. Remove unnecessary check.
7346 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7347 open/close when determining source addresses.
7349 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7350 sha512-crypt, and sha512.
7351 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7352 (distribute): Add sha256.h and sha512.h.
7353 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7354 and call the appropriate code.
7355 * crypt/sha256-crypt.c: New file.
7356 * crypt/sha256.c: New file.
7357 * crypt/sha256.h: New file.
7358 * crypt/sha256c-test.c: New file.
7359 * crypt/sha256test.c: New file.
7360 * crypt/sha512-crypt.c: New file.
7361 * crypt/sha512.c: New file.
7362 * crypt/sha512.h: New file.
7363 * crypt/sha512c-test.c: New file.
7364 * crypt/sha512test.c: New file.
7366 2007-09-19 Jakub Jelinek <jakub@redhat.com>
7368 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7369 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7372 2007-09-18 Jakub Jelinek <jakub@redhat.com>
7374 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7375 %as in fscanf format strings.
7377 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7378 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7379 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7381 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7384 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7385 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7386 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7387 * elf/dl-sym.c (do_sym): Likewise.
7388 * include/link.h (struct link_map): Add l_serial field.
7389 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7390 * elf/dl-lookup.c (add_dependency): Add flags argument.
7391 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7392 flags, use THREAD_GSCOPE_RESET_FLAG before and
7393 THREAD_GSCOPE_SET_FLAG after
7394 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7395 Don't dereference map until it has been found on some list.
7396 If map->l_serial changed, return -1.
7398 2007-09-17 Jakub Jelinek <jakub@redhat.com>
7400 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7401 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7402 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7404 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7405 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7406 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7407 add libc_hidden_proto.
7408 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7409 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7410 conformance requested.
7411 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7412 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7413 conformance requested.
7414 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7415 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7416 conformance requested.
7417 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7418 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7419 ISO C99 or POSIX conformance requested.
7420 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7421 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7422 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7423 and __isoc99_vsscanf@@GLIBC_2.7.
7424 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7425 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7426 (tests): Add scanf14.
7427 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7428 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7429 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7430 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7431 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7432 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7433 from using internal headers.
7434 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7435 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7436 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7437 and __isoc99_vswscanf@@GLIBC_2.7.
7438 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7439 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7440 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7441 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7442 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7443 * stdio-common/isoc99_scanf.c: New file.
7444 * stdio-common/isoc99_vsscanf.c: New file.
7445 * stdio-common/isoc99_vscanf.c: New file.
7446 * stdio-common/isoc99_vfscanf.c: New file.
7447 * stdio-common/isoc99_fscanf.c: New file.
7448 * stdio-common/isoc99_sscanf.c: New file.
7449 * wcsmbs/isoc99_fwscanf.c: New file.
7450 * wcsmbs/isoc99_vswscanf.c: New file.
7451 * wcsmbs/isoc99_swscanf.c: New file.
7452 * wcsmbs/isoc99_wscanf.c: New file.
7453 * wcsmbs/isoc99_vwscanf.c: New file.
7454 * wcsmbs/isoc99_vfwscanf.c: New file.
7455 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7456 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7457 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7458 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7459 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7460 * stdio-common/scanf14.c: New test.
7461 * stdio-common/scanf15.c: New test.
7462 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7463 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7464 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7465 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7466 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7467 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7468 __nldbl___isoc99_scanf@@GLIBC_2.7,
7469 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7470 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7471 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7472 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7473 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7474 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7475 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7476 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7477 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7478 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7479 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7480 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7481 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7482 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7483 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7484 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7485 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7486 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7487 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7488 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7489 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7490 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7491 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7493 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7494 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7495 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7496 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7497 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7498 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7499 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7500 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7501 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7502 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7503 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7504 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7506 * stdio-common/Makefile (tests): Add scanf13.
7508 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7509 m modifier followed by l.
7510 (STRING_ARG): Add width argument.
7511 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7512 <case L_('C')>: Handle %mlc and %mC.
7513 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7515 * stdio-common/scanf13.c: New test.
7517 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7518 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7520 2007-09-18 Ulrich Drepper <drepper@redhat.com>
7522 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7523 type and __THROW marker of splice, vmsplice, and tee.
7524 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7525 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7526 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7527 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7528 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7529 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7530 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7531 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7532 as cancellation points.
7534 2003-11-01 Daniel Jacobowitz <dan@debian.org>
7536 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7537 parse more than three parts of the version number.
7539 2007-09-15 Ulrich Drepper <drepper@redhat.com>
7541 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7542 modifier. Patch by Jakub Jelinek.
7544 2007-08-26 Jakub Jelinek <jakub@redhat.com>
7546 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7547 call_fallocate in misc subdir.
7548 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7549 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7550 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7551 instead of __fallocate64.
7552 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7554 2007-09-15 Jakub Jelinek <jakub@redhat.com>
7556 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7557 * rt/Makefile (headers): Add bits/mqueue2.h.
7558 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7559 optimizing with GCC and __va_arg_pack_len is defined.
7560 * rt/bits/mqueue2.h: New file.
7561 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7562 (mq_open): New strong_alias.
7563 (__mq_open_2): New function.
7564 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7565 (mq_open): New strong_alias.
7566 (__mq_open_2): New function.
7567 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7568 * Versions.def (librt): Add GLIBC_2.7 version.
7569 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7570 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7572 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7573 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7574 is defined rather than when not C++.
7575 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7576 __openat64_alias): New redirects.
7577 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7578 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7579 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7580 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7581 functions instead of function-like macros.
7583 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7585 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7586 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7587 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7589 2007-09-15 Mike Frysinger <vapier@gentoo.org>
7591 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7592 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7594 2007-09-14 Mike Frysinger <vapier@gentoo.org>
7596 * inet/tst-network.c: Increment ERRORS for failing tests.
7598 2007-09-07 Jakub Jelinek <jakub@redhat.com>
7600 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7601 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7602 implement as __extern_always_inline function.
7603 (vsyslog): Define as __extern_always_inline function unconditionally.
7604 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7605 When __va_arg_pack is defined, implement as __extern_always_inline
7607 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7608 __extern_always_inline functions unconditionally.
7609 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7610 bits/stdio2.h will be included.
7611 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7612 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7613 implement as __extern_always_inline functions.
7614 (vswprintf, vwprintf, vfwprintf): Define as
7615 __extern_always_inline functions unconditionally.
7616 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7618 2007-09-03 Jakub Jelinek <jakub@redhat.com>
7620 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7621 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7623 * include/features.h (__USE_EXTERN_INLINES): Define only when
7624 __extern_inline is defined.
7625 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7626 is defined instead of when not __cplusplus.
7627 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7628 is defined instead of when not __cplusplus.
7629 * socket/sys/socket.h: Include bits/socket2.h when
7630 __extern_always_inline is defined instead of when not __cplusplus.
7631 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7632 is defined instead of when not __cplusplus.
7633 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7634 is defined instead of when not __cplusplus.
7635 * string/string.h: Include bits/string3.h when __extern_always_inline
7636 is defined instead of when not __cplusplus.
7637 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7638 is defined instead of when not __cplusplus.
7639 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7640 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7642 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7643 defined __extern_always_inline instead of !defined __cplusplus.
7644 * libio/bits/stdio-ldbl.h: Likewise.
7645 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7646 * misc/bits/syslog.h (syslog): Don't define for C++.
7647 (vsyslog): Use __extern_always_inline function for C++ instead of
7649 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7650 whenever that macro is defined.
7651 (vprintf): Don't provide the inline for C++.
7652 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7653 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7654 define the macros for C++.
7655 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7656 __extern_always_inline functions for C++.
7657 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7658 stat64, lstat64, fstat64, fstatat64): Don't define if not
7659 __USE_EXTERN_INLINES.
7660 * wcsmbs/bits/wchar2.h: Fix #error message.
7661 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7662 (vswprintf, vwprintf, vfwprintf): Define using
7663 __extern_always_inline functions for C++.
7664 * string/bits/string3.h: Don't #undef macros if __cplusplus.
7665 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7666 strncpy, strcat, strncat): Define as __extern_always_inline
7667 functions instead of macros for C++.
7668 * math/bits/cmathcalls.h: Guard __extern_inline routines with
7669 defined __extern_inline.
7670 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7671 to __extern_inline whenever that macro is defined.
7672 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7673 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7674 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7675 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7676 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7677 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7678 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7679 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7680 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7681 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7682 prototypes. Only provide __extern_inline routines if
7683 __USE_EXTERN_INLINES.
7684 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7686 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7687 For now avoid some *printf tests in C++. Skip all testing
7688 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7690 * debug/tst-chk4.cc: New file.
7691 * debug/tst-chk5.cc: New file.
7692 * debug/tst-chk6.cc: New file.
7693 * debug/tst-lfschk4.cc: New file.
7694 * debug/tst-lfschk5.cc: New file.
7695 * debug/tst-lfschk6.cc: New file.
7696 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7698 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7699 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7700 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7702 2007-09-13 Ulrich Drepper <drepper@redhat.com>
7704 * po/cs.po: Update from translation team.
7706 2007-09-11 Roland McGrath <roland@redhat.com>
7708 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7711 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7713 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7715 2007-09-05 Roland McGrath <roland@redhat.com>
7717 * manual/signal.texi (Signaling Another Process): Typo fix.
7718 From Karl Berry <karl@freefriends.org>.
7720 2007-08-29 Ulrich Drepper <drepper@redhat.com>
7722 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7723 zero if not defined.
7724 (make_request): Recognize optimistic addresses and treat them like
7725 deprecated addresses.
7726 Reported by Neil Horman <nhorman@redhat.com>.
7728 2007-08-28 Ulrich Drepper <drepper@redhat.com>
7730 * nscd/connections.c (send_ro_fd): Also transfer file size.
7731 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7732 file size don't call fstat.
7734 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7735 ahead and map the file. This should always be correct and we can
7736 catch problems later.
7738 2007-08-28 Jakub Jelinek <jakub@redhat.com>
7740 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7742 (__fread_alias, __fread_unlocked_alias): New aliases.
7743 (fread): New extern inline.
7744 (fread_unlocked): Likewise. Undef macro before definition of
7745 the inline function.
7746 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7747 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7748 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7749 and __fread_unlocked_chk@@GLIBC_2.7.
7750 * debug/fread_chk.c: New file.
7751 * debug/fread_u_chk.c: New file.
7752 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7754 2007-08-27 Jakub Jelinek <jakub@redhat.com>
7756 * sysdeps/unix/sysv/linux/syscalls.list
7757 (personality): Change caller to EXTRA.
7759 2007-08-25 Ulrich Drepper <drepper@redhat.com>
7761 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7763 * iconvdata/iso-2022-cn.c (BODY): Likewise.
7765 * locale/programs/ld-collate.c (collate_output): Avoid warning if
7768 * Makerules: Use -p option with mkdir.
7770 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7771 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7772 (_xdr_directory_obj): Likewise.
7773 (xdr_entry_obj): Likewise.
7774 (xdr_group_obj): Likewise.
7775 (xdr_link_obj): Likewise.
7776 (xdr_table_obj): Likewise.
7777 (_xdr_nis_result): Likewise.
7778 (_xdr_ns_request): Likewise.
7779 (_xdr_ib_request): Likewise.
7780 (_xdr_nis_taglist): Likewise.
7781 (xdr_cback_data): Likewise.
7782 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7783 (xdr_ypresp_maplist): Likewise.
7785 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7787 * posix/regex_internal.h: Prevent some declarations and definitions
7788 to be seen when used in tests.
7790 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7791 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7793 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7795 * config.make.in (datarootdir): Add to shut up configure.
7797 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7798 associativity for fully-associative caches.
7800 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7801 requests. Fill on more associativity values for L2.
7802 Patch mostly by Evandro Menezes.
7804 2007-08-24 Ulrich Drepper <drepper@redhat.com>
7806 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7807 (_libc_vdso_platform_setup): Avoid using exported variable by using
7810 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7812 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7813 fallocate64 as EXTRA. It is not referenced if the symbol isn't
7816 2007-08-23 Ulrich Drepper <drepper@redhat.com>
7818 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7819 align stack for call if pltexit is to be used.
7822 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7823 align for function call in case pltexit has to be called later.
7825 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7826 implicit atomic operation when storing function pointer.
7827 (_dl_runtime_profile): Likewise.
7829 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7831 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7834 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7837 * string/strtok.c: Fix typo in comment.
7840 * debug/segfault.c: Fix typos in comments.
7843 * stdio-common/tempnam.c: Fix comment, it is not checked that
7844 TMPDIR points to a writable directory.
7847 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7848 memory allocated for the name server address.
7851 * nscd/connections.c (handle_request): Using sendfile always
7852 requires that mmap is used for the database.
7853 Patch by Petr Baudis <pasky@suse.cz>.
7856 * nscd/hstcache.c (cache_addhst): When reloading an entry which
7857 suddenly has two or more addresses, ignore it and remove the old
7861 * resolv/res_hconf.c: Prepare for compiling outside libc.
7862 * nscd/res_hconf.c: New file.
7863 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
7865 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7866 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7868 * nscd/hstcache.c (cache_addhst): Minimal optimization.
7871 * debug/pcprofiledump.c: Turn on internationalization by calling
7872 setlocale. Patch mostly by Benno Schulenberg.
7875 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7877 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7878 * iconvdata/bug-iconv5.c: New file.
7880 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
7883 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7884 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7885 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7886 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7887 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7888 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7889 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7890 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7892 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7895 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7896 lookup loop. Suggested by John Reiser.
7898 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7900 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7902 2007-08-20 Ulrich Drepper <drepper@redhat.com>
7904 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7905 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7906 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7907 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7908 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7910 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7912 2007-08-18 Ulrich Drepper <drepper@redhat.com>
7914 * po/nl.po: Update from translation team.
7916 2007-08-16 Andreas Jaeger <aj@suse.de>
7918 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7919 Reported by Peter Festner <peter.festner@ewetel.net>.
7921 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7923 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7925 2007-08-16 Jakub Jelinek <jakub@redhat.com>
7927 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7928 to check for undefined symbols.
7930 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7931 If the syscall fails, set errno to the actual returned error number
7933 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7934 arguments are incorrect, set errno to EINVAL, if the syscall
7935 fails, set errno to the actual returned error number.
7937 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7938 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7940 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7941 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7943 (ASI_PNF, ASI_BLK_P): Don't define.
7944 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7945 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7947 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7948 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7951 2007-08-15 Jakub Jelinek <jakub@redhat.com>
7953 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7954 FE_UNDERFLOW on Niagara CPUs.
7956 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7959 2007-08-14 Jakub Jelinek <jakub@redhat.com>
7961 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7962 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7963 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7964 flush should be used or not inside of the function.
7965 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7967 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7968 __thread_start): Use HIDDEN_JUMPTARGET.
7969 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7970 __thread_start): Likewise.
7971 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7973 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7974 Add libc_hidden_proto.
7975 (STRTOF): Add libc_hidden_proto.
7976 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7977 (strtold_l, wcstold_l): Use them as second argument for
7980 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7982 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7984 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7986 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7988 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7990 * po/bg.po: New file. From the translation team.
7992 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7994 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7995 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7996 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7997 when each feature was introduced.
7999 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8000 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8001 (CHECK_HASH): New macro.
8002 (PREPARE_VERSION): Use it.
8004 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8005 prototype if not __ASSUME_PSELECT.
8006 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8007 prototype if not __ASSUME_PPOLL.
8009 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8011 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8012 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8015 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8017 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8018 (_libc_vdso_platform_setup): If vDSO is not available point
8019 __vdso_gettimeofday to the vsyscall.
8020 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8021 __vdso_gettimeofday instead of vsyscall.
8023 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8025 * nscd/servicescache.c: Include kernel-features.h.
8026 * nscd/gai.c: Likewise.
8027 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8028 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8029 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8030 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8031 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8032 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8033 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8034 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8035 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8037 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8039 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8040 and _dl_get_origin defines anymore.
8042 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8043 Build fix for systems which might lack POSIX timer support.
8045 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8046 (_libc_vdso_platform_setup): Mangle function pointers before storing
8048 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8049 Demangle vdso pointer before use.
8050 (INTERNAL_VSYSCALL): Likewise.
8052 * elf/cache.c (primes): Mark as const.
8053 Noted by Roland McGrath.
8055 2007-08-01 Andreas Jaeger <aj@suse.de>
8056 Jakub Jelinek <jakub@redhat.com>
8058 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8059 (options): Add option.
8060 (parse_opt): Handle option.
8061 (manual_link): Adjust process_file caller. Call implicit_soname.
8062 (search_dir): Formatting. Use and populate auxiliary cache.
8063 (main): Load and save auxiliary cache.
8064 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8065 stat64 from fstat64 to caller.
8066 (implicit_soname): New function.
8067 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8068 leave *soname as NULL.
8069 * elf/cache.c: Include libgen.h.
8070 (print_entry, print_cache, compare, save_cache, add_to_cache):
8071 Formatting and cleanups.
8072 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8073 aux_cache_file): New structures.
8074 (AUX_CACHEMAGIC): Define.
8075 (primes): New array.
8076 (aux_hash_size, aux_hash): New variables.
8077 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8078 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8079 load_aux_cache, save_aux_cache): New functions.
8080 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8081 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8082 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8083 (process_file): Adjust prototype.
8085 2007-08-12 Jakub Jelinek <jakub@redhat.com>
8087 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8090 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8092 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8093 r_found_version structure as second parameter.
8094 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8095 (_dl_vdso_vsym): Change type of second parameter accordingly.
8096 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8097 (_libc_vdso_platform_setup): Adjust.
8098 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8099 (_libc_vdso_platform_setup): Likewise.
8101 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8102 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8103 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8104 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8105 * csu/libc-start.c: Pretty printing.
8106 Use VDSO_SETUP if defined.
8107 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8108 and let generic code call into _libc_vdso_platform_setup.
8109 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8110 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8111 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8112 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8113 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8115 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8116 (sysdep_rountines): Add dl-vdso.
8118 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8121 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8122 attribute_hidden to __vdso_gettimeofday prototype.
8124 2007-08-12 Roland McGrath <roland@redhat.com>
8126 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8127 From: Karl Berry <karl@freefriends.org>.
8129 2007-08-11 Ulrich Drepper <drepper@redhat.com>
8131 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8132 an atime update for the files we read.
8134 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8136 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8138 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
8141 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8142 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8143 * misc/mkostemp.c: New file.
8144 * misc/mkostemp64.c: New file.
8145 * stdlib/stdlib.h: Declare the new functions.
8146 * sysdeps/posix/tempname.c: Add new parameter which is added to
8147 the flags for open. Remove __GT_BIGFILE handling.
8148 * stdio-common/tempname.c: Likewise.
8149 * include/stdio.h: Adjust __gen_tempname prototype.
8150 Renumber __GT_* constants.
8151 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8152 * misc/mkdtemp.c: Likewise.
8153 * misc/mkstemp.c: Likewise.
8154 * misc/mkstemp64.c: Likewise.
8155 * misc/mktemp.c: Likewise.
8156 * stdio-common/tempnam.c: Likewise.
8157 * stdio-common/tmpfile.c: Likewise.
8158 * stdio-common/tmpfile64.c: Likewise.
8159 * stdio-common/tmpnam.c: Likewise.
8160 * stdio-common/tmpnam_r.c: Likewise.
8162 2007-08-10 Roland McGrath <roland@frob.com>
8164 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8166 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8167 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8169 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8171 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8173 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8174 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8175 * nss/nss_files/files-have_o_cloexec.c: New file.
8177 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8180 2007-08-10 Jakub Jelinek <jakub@redhat.com>
8182 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8183 ___new_wcstold_l): New weak aliases.
8184 (strtold_l, wcstold_l): Use them as second argument for
8187 2007-08-09 Ulrich Drepper <drepper@redhat.com>
8189 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8190 register in test for error.
8192 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8193 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8195 * po/sv.po: Update from translation team.
8197 2007-08-06 Roland McGrath <roland@redhat.com>
8199 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8200 Remove __strto*_l inlines.
8201 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8202 * stdlib/strtod.c: Add libc_hidden_def.
8203 * stdlib/strtod_l.c: Likewise.
8204 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8205 for __new_strtold and __new_wcstold.
8206 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8208 * stdlib/strtol.c: Add libc_hidden_def.
8209 * stdlib/strtol_l.c: Likewise.
8210 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8213 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8215 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8216 * scripts/data/localplt-generic.data: ... here.
8217 * elf/Makefile (check-data): Get generic file if no other.
8218 ($(objpfx)check-localplt.out): Make target unconditional.
8220 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8223 2007-08-05 Ulrich Drepper <drepper@redhat.com>
8225 * po/zh_CN.po: Updated translation from translation team.
8227 2007-08-05 Jakub Jelinek <jakub@redhat.com>
8229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8230 Don't use CGOTSETUP and CGOTRESTORE macros.
8232 2007-08-04 Roland McGrath <roland@redhat.com>
8234 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8236 2007-08-04 Jakub Jelinek <jakub@redhat.com>
8238 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8239 __extension__ around the whole statement expression.
8241 2007-08-04 Ulrich Drepper <drepper@redhat.com>
8243 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8244 elements during initialization.
8246 * po/pl.po: Updated translation from translation team.
8247 * po/tr.po: Likewise.
8248 * po/nl.po: Likewise.
8250 2007-08-03 Ulrich Drepper <drepper@redhat.com>
8252 * rt/aio.h: Add __nonnull attributes.
8254 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8256 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8257 * stdlib/Makefile (tests): Add tst-strtod5.
8258 (tst-strtod5-ENV): New.
8259 * stdlib/tst-strtod5.c: New file.
8261 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8263 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8266 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8269 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8271 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8274 2007-08-02 Ulrich Drepper <drepper@redhat.com>
8276 * io/Makefile (aux): Add have_o_cloexec.
8277 * include/fcntl.h: Declare __have_o_cloexec.
8278 * io/have_o_cloexec.c: New file.
8279 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8280 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8281 fcntl call if not necessary.
8282 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8285 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8286 Avoid memset, add explicit initialization.
8287 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8288 to the end and change into zero-sized array.
8289 Move lock member to fill a hole on 64-bit platforms.
8291 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8293 * include/stdlib.h: Add __strto*_internal prototypes here.
8294 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8296 * include/wchar.h: Add __wcsto*_internal prototypes.
8297 * sysdeps/generic/inttypes.h: No need to protect the declaration
8298 of the __strto*_internal and __wcsto*_internal members here.
8300 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8302 2007-08-02 Roland McGrath <roland@redhat.com>
8304 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8305 $(inst_bindir)/getconf if possible.
8307 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8308 (generated): Add it.
8309 ($(inst_libexecdir)/getconf): Use it.
8311 2007-08-01 Ulrich Drepper <drepper@redhat.com>
8313 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8314 /proc is faster and sufficient. /sys is still needed for
8317 2007-08-01 Jakub Jelinek <jakub@redhat.com>
8319 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8320 syscall as __fallocate64.
8321 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8322 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8324 2007-07-30 Jakub Jelinek <jakub@redhat.com>
8326 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8329 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8330 if off_t is different rank from size_t.
8332 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8333 uw_frame_state_for): Avoid type punning warnings.
8334 * sysdeps/generic/unwind-dw2-fde-glibc.c
8335 (_Unwind_IteratePhdrCallback): Likewise.
8336 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8337 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8338 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8341 2007-07-31 Ulrich Drepper <drepper@redhat.com>
8343 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8344 total processors using sysfs.
8345 (__get_nprocs): Use sysfs to determine which processors are online.
8347 2007-07-31 Jakub Jelinek <jakub@redhat.com>
8349 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8350 syscall arguments count.
8352 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8354 2007-07-30 Roland McGrath <roland@redhat.com>
8356 * manual/libc.texinfo: Update copyrights, formatting magic, and
8357 @dircategory. From Karl Berry <karl@freefriends.org>.
8359 2007-07-29 Ulrich Drepper <drepper@redhat.com>
8362 * io/Makefile (headers): Add bits/fcntl2.h.
8364 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8366 (__CPU_EQUAL_S): Likewise.
8368 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8369 (tests): Add tst-cpuset.
8370 * posix/sched_cpualloc.c: New file.
8371 * posix/sched_cpufree.c: New file.
8372 * posix/tst-cpuset.c: New file.
8373 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8375 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8376 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8377 macros. Define CPU_*_S macros.
8379 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8381 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8385 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8386 #.0g and value rounded to 1.0.
8387 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8389 2007-07-26 Jakub Jelinek <jakub@redhat.com>
8391 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8392 for int_frac_digits and frac_digits.
8394 * login/logout.c (logout): Avoid aliasing violation.
8395 * login/logwtmp.c (logwtmp): Likewise.
8397 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8399 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8401 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8403 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8405 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8408 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8410 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8412 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8413 char * to avoid warning.
8414 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8416 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8418 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8419 allocate_arrays): Cast second argument to charmap_find_symbol
8420 to char * to avoid warnings.
8422 * locale/programs/repertoire.c (repertoire_new_char): Change
8423 from_nr, to_nr and cnt to unsigned long, adjust printf format
8426 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8427 Cast second argument to new_element to char * to avoid warnings.
8429 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8431 * intl/gettextP.h (struct loaded_domain): Change plural to const
8432 struct expression *.
8433 * intl/plural-eval.c (plural_eval): Change first argument to
8434 const struct expression *.
8435 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8436 argument to const struct expression **.
8437 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8439 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8440 in call to __gettext_free_exp.
8442 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8443 unitialized wstring/wpattern var warnings.
8445 * posix/runtests.c (struct a_test): Make data field const char *.
8447 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8448 vars if not LDBL_MANT_DIG >= 106.
8450 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8452 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8453 __find_specmb to avoid warning.
8455 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8457 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8460 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8463 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8464 tv var when it will be actually used.
8466 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8469 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8470 char array resp. pointer.
8471 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8473 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8474 to const unsigned char **.
8475 (ucs4_to_cns11643): Change second argument to unsigned char *.
8476 * iconvdata/euc-tw.c (BODY): Change endp type to
8477 const unsigned char *.
8478 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8480 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8481 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8482 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8483 types to unsigned char pointers/arrays instead of char.
8484 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8486 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8487 * iconvdata/jis0212.h: Include assert.h.
8488 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8489 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8490 of trying to handle that.
8491 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8493 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8494 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8495 two dimensional const unsigned char arrays.
8496 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8497 Initialize endp to inptr to shut up a warning.
8499 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8502 * time/strptime_l.c (__strptime_internal): Silently ignore
8503 strftime modifiers and field width in recursive calls.
8505 * include/time.h (enum ptime_locale_status): Remove.
8506 (__strptime_internal): Remove decided and era_cnt arguments,
8507 add statep argument.
8508 * time/strptime_l.c (__strptime_internal): Remove decided
8509 and era_cnt arguments, add statep argument. Don't recompute
8510 any fields in recursive calls, only update caller's tm
8511 and state, if recursive call fails, don't change tm nor
8513 (get_alt_number): Adjust.
8514 (recursive): Adjust caller.
8515 (strptime): Likewise.
8516 * time/strptime.c (strptime): Likewise.
8518 2007-07-19 Jakub Jelinek <jakub@redhat.com>
8520 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8521 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8522 if from and to charsets are the same.
8523 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8524 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8525 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8527 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8529 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8530 Don't define wint_t when __need_mbstate_t unless it
8532 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8533 in the typedef if possible.
8534 * wctype/wctype.h (wint_t): Define by including
8535 wchar.h with __need_wint_t instead of including stddef.h
8536 with __need_wint_t and as fallback definining it ourselves.
8537 * iconv/gconv.h (__need_wint_t): Define before including
8539 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8540 or _GLIBCPP_USE_WCHAR_T.
8541 (__need_wchar_t): Don't define
8542 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8543 (__need_wint_t): Don't define before including stddef.h,
8544 define before including wchar.h only if _LIBC or
8545 _GLIBCPP_USE_WCHAR_T.
8546 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8547 * sysdeps/mach/hurd/_G_config.h: Likewise.
8548 * sysdeps/generic/_G_config.h: Likewise.
8549 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8550 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8551 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8552 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8554 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8556 * sysdeps/posix/posix_fallocate64.c: Undefine
8557 __posix_fallocate64_l64 before alias handling.
8558 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8559 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8560 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8561 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8563 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8565 2007-07-23 Jakub Jelinek <jakub@redhat.com>
8567 * locale/programs/ld-collate.c (atwc): New variable.
8568 (add_to_tablewc): New toplevel function, moved from collate_output.
8569 (collate_output): Remove add_to_tablewc nested function.
8571 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8572 (name_insert): New function.
8573 (write_output): Remove hash_table and hash_size vars and name_insert
8576 2007-07-24 Roland McGrath <roland@redhat.com>
8578 * Makerules (install-others-programs-nosubdir): New target.
8579 (install-no-libc.a-nosubdir): Depend on it.
8581 * iconv/Makefile (install-others-programs): Set this instead of
8583 * login/Makefile (install-others-programs): Likewise.
8584 * posix/Makefile (install-others-programs): Likewise.
8586 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8589 2007-07-23 Ulrich Drepper <drepper@redhat.com>
8591 * io/Makefile (tests): Add tst-posix_fallocate.
8592 * io/tst-posix_fallocate.c: New file.
8594 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8597 2007-07-22 Roland McGrath <roland@frob.com>
8599 * hurd/getdport.c: Add missing copyright year update.
8601 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8602 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8604 2007-07-22 Ulrich Drepper <drepper@redhat.com>
8606 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8608 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8609 O_CLOEXEC is needed.
8610 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8611 Avoid additional fcntl to set O_CLOEXEC if not needed.
8612 * nis/nss_compat/compat-initgroups.c: Likewise.
8613 * nis/nss_compat/compat-pwd.c: Likewise.
8614 * nis/nss_compat/compat-spwd.c: Likewise.
8616 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8619 * manual/errno.texi: Change ECANCELED value to 119.
8622 * mach/lock-intern.h: Include <sys/cdefs.h>.
8625 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8629 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8632 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8634 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8636 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8638 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8640 2007-07-21 Ulrich Drepper <drepper@redhat.com>
8642 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8643 descriptor received from nscd.
8645 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8647 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8648 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8649 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8650 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8651 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8652 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8654 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8657 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8660 * login/forkpty.c (forkpty): Close master and slave fds on
8661 fork failure. Patch by
8662 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8664 2007-07-18 Jakub Jelinek <jakub@redhat.com>
8666 * include/features.h (__USE_ISOC95): New define.
8667 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8668 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8669 for -std=iso9899:199409.
8670 * CONFORMANCE: Remove comments about unsupported AMD1.
8672 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8674 * sysdeps/ia64/sched_cpucount.c: New file.
8675 * sysdeps/powerpc/sched_cpucount.c: New file.
8677 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8678 __BEGIN_DECLS/__END_DECLS around the prototype.
8679 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
8680 pointer to const cpu_set_t.
8682 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8683 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8684 __need_size_t and include stddef.h.
8685 * sysvipc/sys/msg.h: Likewise.
8686 * posix/sched.h: Likewise.
8687 * hurd/hurd/signal.h (__need_size_t): Define.
8689 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8690 neither does signal.h in pedantic ISO C namespaces. stdio.h
8691 no longer defines wint_t or wchar_t.
8693 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8694 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8695 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8696 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8697 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8698 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8699 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8700 * debug/printf_chk.c (__printf_chk): Likewise.
8701 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8702 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8704 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8707 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8708 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8710 2007-07-16 Jakub Jelinek <jakub@redhat.com>
8713 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8714 * malloc/malloc.h (realloc): Likewise.
8716 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8717 if one of proc_file_chain streams has that fileno.
8718 * stdio-common/Makefile (tests): Add tst-popen2.
8719 * stdio-common/tst-popen2.c: New test.
8721 2007-07-14 Jakub Jelinek <jakub@redhat.com>
8723 * elf/ldconfig.c: Allow GPLv2 or any later version.
8724 * elf/readlib.c: Likewise.
8725 * elf/chroot_canon.c: Likewise.
8726 * elf/cache.c: Likewise.
8727 * nscd/mem.c: Likewise.
8728 * nscd/getpwuid_r.c: Likewise.
8729 * nscd/grpcache.c: Likewise.
8730 * nscd/aicache.c: Likewise.
8731 * nscd/getsrvbynm_r.c: Likewise.
8732 * nscd/nscd.c: Likewise.
8733 * nscd/servicescache.c: Likewise.
8734 * nscd/getsrvbypt_r.c: Likewise.
8735 * nscd/initgrcache.c: Likewise.
8736 * nscd/gethstbyad_r.c: Likewise.
8737 * nscd/gethstbynm2_r.c: Likewise.
8738 * nscd/getgrnam_r.c: Likewise.
8739 * nscd/nscd_setup_thread.c: Likewise.
8740 * nscd/getpwnam_r.c: Likewise.
8741 * nscd/gai.c: Likewise.
8742 * nscd/connections.c: Likewise.
8743 * nscd/dbg_log.c: Likewise.
8744 * nscd/cache.c: Likewise.
8745 * nscd/hstcache.c: Likewise.
8746 * nscd/nscd_conf.c: Likewise.
8747 * nscd/getgrgid_r.c: Likewise.
8748 * nscd/pwdcache.c: Likewise.
8749 * catgets/gencat.c: Likewise.
8750 * locale/programs/linereader.h: Likewise.
8751 * locale/programs/locarchive.c: Likewise.
8752 * locale/programs/ld-paper.c: Likewise.
8753 * locale/programs/locfile-kw.h: Likewise.
8754 * locale/programs/ld-address.c: Likewise.
8755 * locale/programs/xmalloc.c: Likewise.
8756 * locale/programs/ld-time.c: Likewise.
8757 * locale/programs/localedef.c: Likewise.
8758 * locale/programs/simple-hash.c: Likewise.
8759 * locale/programs/xstrdup.c: Likewise.
8760 * locale/programs/ld-numeric.c: Likewise.
8761 * locale/programs/locfile-kw.gperf: Likewise.
8762 * locale/programs/ld-collate.c: Likewise.
8763 * locale/programs/charmap-kw.gperf: Likewise.
8764 * locale/programs/charmap.h: Likewise.
8765 * locale/programs/charmap-kw.h: Likewise.
8766 * locale/programs/config.h: Likewise.
8767 * locale/programs/locfile.c: Likewise.
8768 * locale/programs/ld-ctype.c: Likewise.
8769 * locale/programs/charmap.c: Likewise.
8770 * locale/programs/ld-messages.c: Likewise.
8771 * locale/programs/repertoire.h: Likewise.
8772 * locale/programs/locale.c: Likewise.
8773 * locale/programs/ld-name.c: Likewise.
8774 * locale/programs/linereader.c: Likewise.
8775 * locale/programs/locfile.h: Likewise.
8776 * locale/programs/3level.h: Likewise.
8777 * locale/programs/ld-monetary.c: Likewise.
8778 * locale/programs/ld-measurement.c: Likewise.
8779 * locale/programs/charmap-dir.c: Likewise.
8780 * locale/programs/ld-identification.c: Likewise.
8781 * locale/programs/localedef.h: Likewise.
8782 * locale/programs/charmap-dir.h: Likewise.
8783 * locale/programs/repertoire.c: Likewise.
8784 * locale/programs/simple-hash.h: Likewise.
8785 * locale/programs/ld-telephone.c: Likewise.
8786 * locale/programs/locale-spec.c: Likewise.
8787 * locale/programs/locfile-token.h: Likewise.
8788 * posix/getconf.c: Likewise.
8789 * iconv/dummy-repertoire.c: Likewise.
8790 * iconv/iconv_charmap.c: Likewise.
8791 * iconv/iconvconfig.c: Likewise.
8792 * iconv/iconv_prog.c: Likewise.
8793 * malloc/memusagestat.c: Likewise.
8794 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8796 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8798 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8799 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8800 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8801 check for the first argument.
8803 2007-07-12 Jakub Jelinek <jakub@redhat.com>
8806 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8807 (__tgmath_real_type): Fix if expr is const int or other const
8808 qualified integral type.
8809 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8810 expressions and handle const qualified arguments.
8811 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8812 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8813 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8814 statement expressions.
8815 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8816 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8817 (__TGMATH_UNARY_IMAG): Define.
8818 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8819 * math/Makefile (tests): Add test-tgmath2.
8820 (CFLAGS-test-tgmath2.c): Add.
8821 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8822 count_cfloat, count_cldouble): New variables.
8824 (main): Check number of complex calls as well.
8825 (F(compile_test)): Add complex tests and tests with const qualified
8827 (y, z, ccount): Define.
8828 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8829 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8830 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8831 F(cproj)): New functions.
8832 * math/test-tgmath2.c: New test.
8834 2007-07-11 Jakub Jelinek <jakub@redhat.com>
8837 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8838 RPATH etc. as "/" rather than "", don't segfault on empty paths,
8840 * dlfcn/Makefile (distribute): Add glreflib3.c.
8841 (module-names): Add glreflib3.
8842 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8844 (LDFLAGS_glreflib3.so): New.
8845 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8847 * dlfcn/glreflib3.c: New file.
8849 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8850 returned -1, return NULL.
8851 * intl/explodename.c (_nl_explode_name): Return -1 if
8852 _nl_normalize_codeset failed.
8854 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
8856 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8857 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
8858 and avoid branch misspredicts for > 31 bytes memset case.
8859 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8860 Remove toc ref to __cache_line_size.
8862 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8863 to get ISA-V2.0 branch hints.
8864 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8865 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8866 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8867 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8868 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8869 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8870 Remove toc ref to __cache_line_size.
8872 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8873 Include math_ldbl_opt.h.
8875 2007-07-10 Ulrich Drepper <drepper@redhat.com>
8878 * time/strptime_l.c (__strptime_internal): Implement greedy
8879 matching of weekday and month names.
8881 2007-07-09 Roland McGrath <roland@redhat.com>
8883 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8884 (ELF_NOTE_ABI): Use it.
8885 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8887 2007-07-09 Ulrich Drepper <drepper@redhat.com>
8889 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8890 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8892 2007-07-07 Ulrich Drepper <drepper@redhat.com>
8895 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8896 in loop to look for conversion specifier to avoid testing of
8898 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8899 * stdio-common/bug18.c: New file.
8900 * stdio-common/bug18a.c: New file.
8901 * stdio-common/bug19.c: New file.
8902 * stdio-common/bug19a.c: New file.
8904 2007-07-05 Mike Frysinger <vapier@gentoo.org>
8906 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8909 2007-07-01 Jakub Jelinek <jakub@redhat.com>
8911 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8912 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8913 Return NULL if mmap failed instead of asserting it does not.
8914 (calloc): Check for integer overflow.
8916 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8919 2007-07-03 Jakub Jelinek <jakub@redhat.com>
8922 * nis/nss-default.c: Include errno.h.
8923 (init): Preserve errno.
8925 2007-07-02 Ulrich Drepper <drepper@redhat.com>
8927 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8929 2007-06-30 Ulrich Drepper <drepper@redhat.com>
8931 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8933 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8935 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8937 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8939 * sysdeps/s390/dl-procinfo.c: New file.
8940 * sysdeps/s390/dl-procinfo.h: New file.
8941 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8943 2007-06-29 Jakub Jelinek <jakub@redhat.com>
8945 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8946 in PT_NOTE segments with multiple notes.
8947 * elf/readelflib.c (process_elf_file): Likewise.
8949 2007-06-22 Ulrich Drepper <drepper@redhat.com>
8951 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8954 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8956 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8958 2007-06-13 Jakub Jelinek <jakub@redhat.com>
8960 * include/link.h: Don't include rtld-lowlevel.h.
8961 (struct link_map): Remove l_scope_lock.
8962 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8963 (_dl_scope_free_list): New field (variable) in _rtld_global.
8964 (DL_LOOKUP_SCOPE_LOCK): Remove.
8965 (_dl_scope_free): New prototype.
8966 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8967 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8968 (_dl_profile_fixup): Likewise.
8969 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8970 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8971 THREAD_GSCOPE_RESET_FLAG around it.
8972 * elf/dl-close.c (_dl_close_worker): Don't use
8973 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8974 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8975 scopes were queued or if l_scope_mem has been abandoned.
8976 * elf/dl-open.c (_dl_scope_free): New function.
8977 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8978 * elf/dl-support.c (_dl_scope_free_list): New variable.
8979 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8980 Remove DL_LOOKUP_SCOPE_LOCK handling.
8981 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8983 * elf/dl-object.c (_dl_new_object): Don't use
8984 __rtld_mrlock_initialize.
8986 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8988 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8990 (rtld_global_ro): Likewise.
8992 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8994 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8995 Move PT_LOAD checking to...
8996 (_dl_addr_inside_object): ... here, new function.
8997 * elf/dl-sym.c (do_sym): If not l_contiguous,
8998 call _dl_addr_inside_object.
8999 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9000 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9001 * elf/dl-open.c (dl_open_worker): Likewise.
9002 (_dl_addr_inside_object): New function if IS_IN_rtld.
9003 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9004 holes are present or are PROT_NONE protected.
9005 * include/link.h (struct link_map): Add l_contiguous field.
9006 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9008 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9009 Tomas Janousek <tjanouse@redhat.com>
9010 Ulrich Drepper <drepper@redhat.com>
9013 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9014 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9016 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9017 unused member a bitmap.
9018 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9019 servers are configured.
9021 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9023 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9025 2007-06-17 Andreas Schwab <schwab@suse.de>
9027 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9029 2007-06-16 Andreas Jaeger <aj@suse.de>
9032 * sysdeps/unix/sysv/linux/sys/ptrace.h
9033 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9034 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9035 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9036 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9037 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9039 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9040 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9041 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9042 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9044 2007-06-16 Ulrich Drepper <drepper@redhat.com>
9047 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9048 determining whether there are IPv4/IPv6 addresses, ignore loopback
9051 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9053 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9054 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9055 as the return type. Change type of "r" variable to CMPtype.
9056 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9057 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9058 * soft-fp/gedf2.c (__gedf2): Likewise.
9059 * soft-fp/gesf2.c (__gesf2): Likewise.
9060 * soft-fp/getf2.c (__getf2): Likewise.
9061 * soft-fp/ledf2.c (__ledf2): Likewise.
9062 * soft-fp/lesf2.c (__lesf2): Likewise.
9063 * soft-fp/letf2.c (__letf2): Likewise.
9064 * soft-fp/unorddf2 (__unorddf2): Likewise.
9065 * soft-fp/unordsf2 (__unordsf2): Likewise.
9066 * soft-fp/unordtf2 (__unordtf2): Likewise.
9068 2007-06-09 Ulrich Drepper <drepper@redhat.com>
9070 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9071 make sure gcc doesn't mess around with this.
9073 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9075 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9077 2007-06-08 Jakub Jelinek <jakub@redhat.com>
9079 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9080 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9081 at most once per _dl_close_worker.
9083 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9085 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9086 __sched_cpucount as const.
9087 * posix/sched_cpucount.c: Adjust.
9089 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9090 instruction for counting bits.
9091 * sysdeps/x86_64/sched_cpucount.c: New file.
9093 2007-06-07 Ulrich Drepper <drepper@redhat.com>
9095 * configure.in: Avoid variable named BASH.
9096 * config.make.in: Likewise.
9097 Patch in part by Mike Frysinger.
9099 2007-06-06 Jakub Jelinek <jakub@redhat.com>
9102 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9103 pseudo-zeros as zero.
9104 * sysdeps/x86_64/ldbl2mpn.c: New file.
9105 * sysdeps/ia64/ldbl2mpn.c: New file.
9107 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9109 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9110 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9111 Remove unreachable code at the end.
9113 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9115 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9116 ldbl-128ibm in comment.
9117 (fpclassifyl): Correct classification of denormals.
9118 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9119 return value for MIN denormal. Rewrite using long double math too
9120 correctly handle denormals and canonicalize the results.
9122 2007-06-05 Jakub Jelinek <jakub@redhat.com>
9124 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9125 (__mpn_construct_long_double): Fix conversion where result ought
9126 to be smaller than __LDBL_MIN__, or the low double should be
9127 denormal. Fix decision where to negate low double - honor round
9129 * stdio-common/tst-sprintf2.c: Include string.h.
9130 (COMPARE_LDBL): Define.
9131 (TEST): Also test whether a string hexadecimal float representation
9132 can be parsed back to the number.
9133 (main): Add a couple of further tests.
9135 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9137 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9138 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9139 is non-zero, but smaller than 2 * __DBL_MIN__.
9140 * stdio-common/tst-sprintf2.c: New test.
9141 * stdio-common/Makefile (tests): Add tst-sprintf2.
9143 * math/test-misc.c (main): Don't run last batch of tests with
9144 IBM long double format.
9146 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9148 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9149 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9150 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9151 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9152 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9153 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9154 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9155 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9156 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9157 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9176 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9181 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9183 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9184 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9185 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9186 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9187 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9188 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9189 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9190 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9192 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9194 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9195 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9196 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9197 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9198 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9199 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9200 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9201 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9203 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9205 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9206 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9207 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9208 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9210 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9212 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9213 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9215 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9217 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9218 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9219 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9220 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9222 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9224 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9225 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9227 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9229 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9230 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9232 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9233 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9234 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9235 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9237 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9239 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9240 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9241 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9242 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9244 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9246 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9247 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9248 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9249 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9250 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9251 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9253 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9255 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9256 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9257 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9258 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9260 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9262 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9263 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9264 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9265 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9266 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9267 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9268 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9269 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9270 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9271 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9272 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9273 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9274 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9275 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9276 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9277 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9279 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9281 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9282 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9284 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9286 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9287 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9289 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9291 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9292 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9293 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9294 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9295 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9296 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9297 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9298 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9299 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9300 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9302 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9304 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9306 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9308 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9309 branch miss-predicts. Ensure that cache line crossing does not impact
9312 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9314 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9315 "../../powerpc32/power4/memcopy.h".
9316 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9317 "../../powerpc32/power4/wordcopy.c".
9319 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9321 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9322 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9323 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9324 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9325 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9326 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9328 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9330 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9332 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9334 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9335 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9336 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9337 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9338 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9339 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9340 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9341 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9343 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9345 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9347 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9349 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9350 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9351 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9352 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9353 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9354 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9355 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9357 2007-05-29 Roland McGrath <roland@redhat.com>
9359 * po/Makefile (po-sed-cmd): New variable.
9360 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9362 2007-05-29 Ulrich Drepper <drepper@redhat.com>
9364 * crypt/md5-crypt.c: Fix comment.
9366 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9367 of crashing. When this is the case or if the reply is malformed,
9368 don't try to close the new file descriptor since it does not
9370 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9372 2007-05-28 Jakub Jelinek <jakub@redhat.com>
9374 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9375 if __NR_utimensat is not defined.
9377 2007-05-26 Ulrich Drepper <drepper@redhat.com>
9379 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9381 2007-05-25 Jakub Jelinek <jakub@redhat.com>
9383 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9384 (open): Fix comment typos. Don't call __open_2 if flags
9385 is a compile time constant without O_CREAT.
9386 (__open64_2): Add nonnull attribute.
9387 (open64): Fix comment typos. Don't call __open64_2 if flags
9388 is a compile time constant without O_CREAT.
9389 (__openat_2): Add nonnull attribute, fix nonnull attribute
9391 (openat): Fix comment typos. Don't call __openat_2 if flags
9392 is a compile time constant without O_CREAT.
9393 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9395 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9396 is a compile time constant without O_CREAT.
9398 2007-05-24 Ulrich Drepper <drepper@redhat.com>
9400 * Makerules (sysd-rules): Define PTW for ptw-* files.
9401 * Versions: Define GLIBC_2.7 for libc.
9402 * include/stdio.h: Declare __fortify_fail.
9403 * debug/fortify_fail.c: New file.
9404 * debug/Makefile (routines): Add fortify_fail.
9405 * debug/chk_fail.c: Use __fortify_fail.
9406 * debug/stack_chk_fail.c: Likewise.
9407 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9408 __openat64_2 for GLIBC_2.7.
9409 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9410 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9411 and fails if necessary.
9412 * io/open64.c: Likewise.
9413 * io/openat.c: Likewise.
9414 * io/openat64.c: Likewise.
9415 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9416 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9417 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9418 * io/bits/fcntl2.h: New file.
9419 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9421 * include/bits/fcntl2.h: New file.
9422 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9424 * sysdeps/unix/sysv/linux/open_2.c: New file.
9426 2007-05-21 Ulrich Drepper <drepper@redhat.com>
9428 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9429 as second parameter to handle_intel.
9431 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9434 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9436 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9437 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9439 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9440 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9441 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9443 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9445 2007-05-21 Jakub Jelinek <jakub@redhat.com>
9448 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9449 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9450 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9452 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9455 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9456 reinitialize workend at the start of each do_positional format spec
9457 loop, free workstart before do_positional loops.
9458 (printf_unknown): Fix size of work_buffer.
9459 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9461 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9462 (public_sET_STATe): If ms->version < 3, put all chunks into
9463 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9466 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9467 * malloc/hooks.c: Likewise.
9468 * malloc/arena.c: Likewise.
9469 * malloc/malloc.c (do_check_malloc_state): Don't assert
9470 n_mmaps is not greater than n_mmaps_max. This removes the need
9471 for the previous change.
9473 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9476 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9478 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9479 Define for kernel >= 2.6.22.
9481 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9483 * elf/dl-close.c (_dl_close_worker): When removing object from
9484 global scope, wait for all lookups to finish afterwards.
9485 * elf/dl-open.c (add_to_global): When global scope array must
9486 grow, allocate a new one and free old array only after all
9488 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9489 (_dl_lookup_symbol_x): Likewise.
9490 * elf/dl-support.c: Define _dl_wait_lookup_done.
9491 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9492 _dl_wait_lookup_done.
9494 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9495 not overlapping with arena.
9497 * malloc/mcheck.c (reallochook): If size==0, free the block.
9499 * rt/tst-shm.c: Use fstat64 instead of fstat.
9501 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9502 __NR_sync_file_range is not defined.
9504 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9506 Dummy files to prevent stub versions from being used.
9507 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9508 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9509 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9510 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9512 * version.h (VERSION): Set to 2.6.90.
9514 2007-05-14 Ulrich Drepper <drepper@redhat.com>
9516 * version.h (VERSION): Define to 2.6.
9517 * include/features.h (__GLIBC_MINOR__): Define to 6.
9519 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9521 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9524 2007-05-13 Ulrich Drepper <drepper@redhat.com>
9526 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9527 number of mmaps. n_mmaps_max is the target.
9528 * malloc/hooks.c: Likewise.
9529 * malloc/arena.c: Likewise.
9531 2007-05-12 Andreas Jaeger <aj@suse.de>
9533 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9536 2007-05-11 Ulrich Drepper <drepper@redhat.com>
9538 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9539 adding new variables.
9541 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9542 optimize. Completely extend global scope array before making the
9543 new entries visible.
9545 2007-05-10 Ulrich Drepper <drepper@redhat.com>
9547 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9548 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9551 * include/link.h: Move l_version and l_nversion members around to
9554 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9556 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9557 (__sched_setaffinity_new): If syscall was successful and
9558 RESET_VGETCPU_CACHE is defined, use it before returning.
9559 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9561 * io/sys/stat.h: Make sure struct timespec is defined for
9564 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9566 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9567 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9568 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9569 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9570 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9571 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9572 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9573 * io/sys/stat.h: Declare utimensat, futimens.
9574 * io/utimensat.c: New file.
9575 * io/futimens.c: New file.
9576 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9577 * sysdeps/unix/sysv/linux/futimens.c: New file.
9578 * io/Makefile (routines): Add utimensat, futimens.
9579 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9580 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9581 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9584 * include/sys/cdefs.h: Redefine __nonnull so that test for
9585 incorrect parameters in the libc code itself are not omitted.
9587 2007-05-09 Jakub Jelinek <jakub@redhat.com>
9589 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9590 exception in addition to inexact when asked to raise only FE_INEXACT.
9593 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9596 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9599 * string/strfry.c (strfry): Make result more random.
9601 2007-05-07 Richard Henderson <rth@redhat.com>
9603 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9604 if __NO_LONG_DOUBLE_MATH.
9605 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9606 available in the compiler, add .arch directive to the assembly.
9608 2007-05-07 Jakub Jelinek <jakub@redhat.com>
9610 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9611 compat_symbol to GLIBC_2_1.
9612 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9613 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9614 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9615 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9616 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9617 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9618 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9620 (__isnanl): New compat_symbol.
9622 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9623 Jakub Jelinek <jakub@redhat.com>
9625 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9626 (new_heap): Initialize mprotect_size.
9627 (grow_heap): When growing, only mprotect from mprotect_size till
9628 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9629 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9631 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
9632 Peter Bergner <bergner@us.ibm.com>
9634 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9635 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9636 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9637 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9638 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9639 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9640 Call __fe_mask_env() if all FP exceptions disabled.
9641 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9642 from old FPSCR to new fenv to propagate DFP rounding modes.
9643 Call __fe_mask_env() if FP exceptions previously enabled.
9644 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9645 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9646 transitioning from all exceptions disabled to any exception enabled
9648 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9649 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9650 when transitioning from all exceptions disabled to any exception
9651 enabled or visa versa.
9652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9659 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9662 * posix/unistd.h: Remove __THROW from fdatasync.
9664 2007-05-06 Mike Frysinger <vapier@gentoo.org>
9667 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9669 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9671 * stdio-common/vfprintf.c (process_string_arg): Optimize
9672 ridiculous precision in wide char code printing multi-byte string.
9673 Reported by Jim Meyering <jim@meyering.net>.
9676 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9677 boundaries to work around systems with overlapping binary loading.
9678 Based on a patch by Suzuki <suzuki@in.ibm.com>.
9680 2007-05-04 Ulrich Drepper <drepper@redhat.com>
9682 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9683 __mbsnrtowcs after last change.
9685 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9686 (get_ident): Likewise.
9688 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9690 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9691 with setting the sticky bit.
9692 * math/test-misc.c (main): Add more truncation tests.
9694 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
9696 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9697 double in the function declaration.
9698 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9699 double in the function declaration.
9700 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9701 float in the function declaration.
9702 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9703 float in the function declaration.
9705 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9706 denormal operands. Do not generate FP_EX_DENORM exception.
9707 (FP_UNPACK_RAW_EP): Ditto.
9708 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9709 undefined _FP_UNPACK_RAW_E.
9710 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9711 undefined _FP_UNPACK_RAW_EP.
9712 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9713 undefined _FP_PACK_RAW_E.
9714 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9715 undefined _FP_PACK_RAW_EP.
9717 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9719 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9722 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
9723 Jakub Jelinek <jakub@redhat.com>
9725 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9726 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
9728 * soft-fp/op-common.h (FP_TRUNC): Ditto.
9730 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9732 * math/test-misc.c (main): Add tests for rounding long double
9733 values close to smallest double denormalized value to double.
9735 2007-04-30 Joseph Myers <joseph@codesourcery.com>
9737 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9738 condition for truncating to 0. Set sticky bit for such
9741 2007-05-02 Jakub Jelinek <jakub@redhat.com>
9743 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9744 fixed length array for ignore.
9746 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9749 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9750 stack for large precisions.
9751 * stdio-common/test-vfprintf.c (main): Add test for large
9754 2007-04-30 Jakub Jelinek <jakub@redhat.com>
9756 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9758 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9761 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9762 account in the size check.
9763 * resolv/tst-inet_ntop.c: New test.
9764 * resolv/Makefile (tests): Add tst-inet_ntop.
9766 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9767 Jakub Jelinek <jakub@redhat.com>
9770 * malloc/malloc.c: Keep separate list for first blocks on the bin
9771 lists with a given size. This helps skipping over list elements
9772 we know won't fit in two places.
9773 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9775 2007-04-28 Ulrich Drepper <drepper@redhat.com>
9778 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9779 label to Teredo tunnel addresses 2001://32.
9781 2007-04-27 Ulrich Drepper <drepper@redhat.com>
9783 * locale/programs/ld-collate.c (collate_read): Allow order_start
9786 * locale/programs/ld-collate.c (collate_read): Fix printing of
9790 * locale/C-translit.h.in: Add entry for U2044.
9793 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9794 hexa-decimal floats without exponent.
9795 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9797 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9799 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9800 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9801 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9802 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9804 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9807 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9809 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9810 of 0 after the out_fail label.
9812 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9815 * iconv/gconv_charset.h (strip): Allow ':'.
9816 * iconv/iconv_open.c (iconv_open): Adjust comment.
9818 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9820 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9823 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9826 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9827 alignment of buffer and tmp_buffer.
9828 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9829 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9830 alignment of buffer.
9831 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
9832 bigger than INT_MAX.
9833 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
9834 h_errnop arguments. Fail if buflen is too small.
9835 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9837 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9840 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9841 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
9843 2007-04-22 Roland McGrath <roland@redhat.com>
9845 * elf/elf.h (NT_PRXFPREG): New macro.
9847 2007-04-19 Andreas Jaeger <aj@suse.de>
9850 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9851 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9854 2007-04-19 Ulrich Drepper <drepper@redhat.com>
9856 * include/sys/mman.h: Mark madvise hidden.
9857 * misc/madvise.c: Add libc_hidden_def.
9859 2007-04-06 Jakub Jelinek <jakub@redhat.com>
9861 * nis/nis_domain_of.c (__nis_domain_of): New function.
9862 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9863 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9864 * nis/nis_call.c (rec_dirsearch): Likewise.
9865 (first_shoot): Likewise. Remove search_parent_first argument.
9866 (struct nis_server_cache): Rename search_parent_first field
9868 (nis_server_cache_search, nis_server_cache_add): Rename
9869 search_parent_first argument to search_parent.
9870 (__nisfind_server): Likewise. If search_parent, call
9873 2007-04-18 Ulrich Drepper <drepper@redhat.com>
9875 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9877 2007-04-17 Ulrich Drepper <drepper@redhat.com>
9880 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9882 2007-04-16 Ulrich Drepper <drepper@redhat.com>
9885 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9887 2007-04-15 Jakub Jelinek <jakub@redhat.com>
9889 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9890 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9891 current number of locales in SUPPORTED.
9892 (create_archive): Initialize serial.
9893 (enlarge_archive): Preserve aliases rather than duplicating
9896 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9898 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9899 after _IO_un_link, not before it.
9901 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9902 special case handling when wcp == wstartp + 1. Fix a comment typo.
9903 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9905 2007-03-30 Jakub Jelinek <jakub@redhat.com>
9907 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9908 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9909 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9911 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9912 _IO_file_xsgetn_maybe_mmap): Likewise.
9913 * libio/oldfileops.c (old_do_write): Likewise.
9914 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9915 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9916 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9917 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9918 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9919 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9920 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9921 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9922 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9923 _IO_file_underflow, _IO_file_underflow_mmap,
9924 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9925 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9926 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9927 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9928 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9929 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9930 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9931 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9932 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9933 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9934 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9935 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9936 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9937 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9938 _IO_adjust_column_internal, _IO_default_uflow_internal,
9939 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9940 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9941 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9942 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9943 _IO_file_close_it_internal, _IO_file_underflow_internal,
9944 _IO_file_overflow_internal, _IO_file_attach_internal,
9945 _IO_file_fopen_internal, _IO_file_sync_internal,
9946 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9947 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9948 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9949 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9950 _IO_seekpos_unlocked): Likewise.
9951 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9952 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9954 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9956 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9957 argument in xmalloc size computation.
9959 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9961 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9962 math_opt_barrier and math_force_eval macros.
9964 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9967 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9968 * sysdeps/i386/fpu/math_private.h: New file.
9969 * sysdeps/x86_64/fpu/math_private.h: New file.
9970 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9971 math_force_eval macros. Use "+m" constraint on asm rather than
9973 * math/s_nextafter.c (__nextafter): Likewise.
9974 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9976 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9977 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9978 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9979 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9980 math_opt_barrier and math_force_eval macros.
9981 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9982 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9983 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9984 (__nexttoward): Use math_opt_barrier and
9985 math_force_eval macros. Use "+m" constraint on asm rather than
9986 "=m" and "m". Only use asm to force double result if
9987 FLT_EVAL_METHOD is 2.
9988 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9989 (__nexttowardf): Use math_opt_barrier and
9990 math_force_eval macros. Use "+m" constraint on asm rather than
9991 "=m" and "m". Only use asm to force double result if
9992 FLT_EVAL_METHOD is not 0.
9993 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9994 (__nexttowardf): Use math_opt_barrier and
9995 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9996 x to float using asm.
9997 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9998 (__nldbl_nexttowardf): Use math_opt_barrier and
9999 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10000 x to float using asm.
10001 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10002 (__nexttowardf): Use math_opt_barrier and math_force_eval
10003 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10004 * math/bug-nextafter.c (zero, inf): New variables.
10005 (main): Add new tests.
10006 * math/bug-nexttoward.c (zero, inf): New variables.
10007 (main): Add new tests.
10009 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10012 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10013 exceptions both in SW and MXCSR.
10014 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10015 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10016 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10017 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10018 in MXCSR if SSE is available.
10019 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10021 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10023 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10024 Return 0 rather than 1.
10025 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10026 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10027 * math/test-fenv.c (feholdexcept_tests): New function.
10030 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10033 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10036 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10039 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10040 Reported by David Anderson <davea42@earthlink.net>.
10042 2007-04-07 Ulrich Drepper <drepper@redhat.com>
10044 * posix/sys/wait.h: Remove unnecessary forward declaration.
10046 2007-04-05 Jakub Jelinek <jakub@redhat.com>
10048 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10049 with obj->do_servers after first_shoot.
10051 2007-04-03 Ulrich Drepper <drepper@redhat.com>
10053 * posix/Makefile (routines): Add sched_cpucount.
10054 (tests): Add tst-cpucount.
10055 * posix/sched_cpucount.c: New file.
10056 * posix/tst-cpucount.c: New file.
10057 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10058 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10059 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10060 * posix/sched.h: Define CPU_COUNT.
10062 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10064 * posix/fnmatch.c (STRUCT): Define.
10065 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10066 * posix/fnmatch_loop.c (struct STRUCT): New type.
10067 (FCT): Add ends argument. If ends != NULL and normal * is
10068 seen in the pattern, store current pattern and string pointers
10069 and return. Adjust recursive calls.
10070 (EXT): Adjust FCT callers.
10071 (STRUCT): Undef at the end of the file.
10072 * posix/Makefile (tests): Add tst-fnmatch2.
10073 * posix/tst-fnmatch2.c: New test.
10075 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10077 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10080 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10081 Change last argument to unsigned int.
10083 2007-03-23 Jakub Jelinek <jakub@redhat.com>
10085 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10087 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10089 * config.h.in (HAVE_LIBCAP): Add.
10090 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10091 sys/capabilities.h.
10092 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10093 free_caps. Cast away const from 4th cap_set_flag argument.
10095 2007-03-26 Ulrich Drepper <drepper@redhat.com>
10097 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10099 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10100 Add sync_file_range.
10101 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10103 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10105 * sysdeps/powerpc/bits/atomic.h
10106 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10107 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10108 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10109 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10110 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10111 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10112 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10113 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10114 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10115 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10116 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10117 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10118 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10119 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10120 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10121 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10122 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10123 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10124 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10125 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10127 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10129 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10130 (__cache_line_size): Define the variable here. Add
10131 attribute_hidden, remove weak_extern.
10132 (__libc_start_main): Set __cache_line_size
10134 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10135 (__cache_line_size): Define the variable here. Add
10136 attribute_hidden, remove weak_extern.
10137 (DL_PLATFORM_AUXV): Set __cache_line_size
10139 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10140 weak_extern, add attribute_hidden.
10141 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10143 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10145 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10147 2007-03-26 Jakub Jelinek <jakub@redhat.com>
10150 * timezone/africa: Update from tzdata2007d.
10151 * timezone/asia: Likewise.
10152 * timezone/australasia: Likewise.
10153 * timezone/backward: Likewise.
10154 * timezone/europe: Likewise.
10155 * timezone/iso3166.tab: Likewise.
10156 * timezone/leapseconds: Likewise.
10157 * timezone/northamerica: Likewise.
10158 * timezone/southamerica: Likewise.
10159 * timezone/zone.tab: Likewise.
10161 * timezone/private.h: Update from tzcode2007d.
10162 * timezone/zdump.c: Likewise.
10163 * timezone/zic.c: Likewise.
10165 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10167 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10168 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10170 (nis_server_cache_search, nis_server_cache_add): New functions.
10171 (__nisfind_server): Use them. Add dbp and flags argument, if
10172 call __nisbind_create.
10173 (__nisbind_create): Add server_used and current_ep arguments,
10174 only call __nis_findfastest if server_used is ~0.
10175 (__do_niscall2, __prepare_niscall): Adjust callers.
10176 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10177 ckey_cache_euid, ckey_cache_lock): New variables.
10178 (get_ckey): New function.
10179 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10180 __pmap_getnisport. Save __pmap_getnisport result in
10181 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10183 * nis/nis_lookup.c (nis_lookup): Likewise.
10184 * nis/nis_table.c (nis_list): Likewise.
10185 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10188 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10189 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10190 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10191 _nss_nisplus_getservbyport_r): Likewise.
10192 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10193 _nss_nisplus_getnetbyaddr_r): Likewise.
10194 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10195 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10196 _nss_nisplus_getntohost_r): Likewise.
10197 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10198 _nss_nisplus_getrpcbynumber_r): Likewise.
10200 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10202 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10203 * configure: Rebuilt.
10205 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10207 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10209 2006-06-07 Joseph Myers <joseph@codesourcery.com>
10212 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10215 2007-03-18 Jakub Jelinek <jakub@redhat.com>
10217 * nscd/gai.c: Include alloca.h.
10218 (__libc_use_alloca): Define.
10220 2007-03-16 Jakub Jelinek <jakub@redhat.com>
10222 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10224 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10225 (DL_DST_REQUIRED): Adjust user.
10227 * include/dlfcn.h (struct link_map): New forward decl.
10229 * inet/getnameinfo.c: Include stddef.h.
10230 (getnameinfo): Use offsetof.
10232 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10234 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10236 * string/strerror_l.c: Include stdlib.h.
10238 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10239 * config.make.in (gnu89-inline-CFLAGS): New variable.
10240 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10242 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10243 * argp/argp.h: Use it.
10244 * bits/mathinline.h: Likewise.
10245 * bits/sigset.h: Likewise.
10246 * bits/string.h: Likewise.
10247 * ctype/ctype.h: Likewise.
10248 * hurd/hurd.h: Likewise.
10249 * hurd/hurd/fd.h: Likewise.
10250 * hurd/hurd/port.h: Likewise.
10251 * hurd/hurd/signal.h: Likewise.
10252 * hurd/hurd/threadvar.h: Likewise.
10253 * hurd/hurd/userlink.h: Likewise.
10254 * io/sys/stat.h: Likewise.
10255 * libio/bits/stdio.h: Likewise.
10256 * libio/bits/stdio2.h: Likewise.
10257 * mach/lock-intern.h: Likewise.
10258 * mach/mach/mig_support.h: Likewise.
10259 * math/bits/cmathcalls.h: Likewise.
10260 * posix/bits/unistd.h: Likewise.
10261 * socket/bits/socket2.h: Likewise.
10262 * stdlib/bits/stdlib.h: Likewise.
10263 * stdlib/stdlib.h: Likewise.
10264 * string/argz.h: Likewise.
10265 * string/bits/string2.h: Likewise.
10266 * string/bits/string3.h: Likewise.
10267 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10268 * sysdeps/generic/inttypes.h: Likewise.
10269 * sysdeps/generic/machine-lock.h: Likewise.
10270 * sysdeps/generic/machine-sp.h: Likewise.
10271 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10272 * sysdeps/i386/i486/bits/string.h: Likewise.
10273 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10274 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10275 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10276 * sysdeps/mach/i386/machine-lock.h: Likewise.
10277 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10278 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10279 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10280 * sysdeps/s390/bits/string.h: Likewise.
10281 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10282 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10283 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10284 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10285 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10286 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10287 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10288 * wcsmbs/bits/wchar2.h: Likewise.
10289 * wcsmbs/wchar.h: Likewise.
10290 * stdlib/gmp.h: Likewise. Include <features.h> to get
10291 __extern_inline definition.
10293 2007-03-15 Jakub Jelinek <jakub@redhat.com>
10295 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10299 * math/libm-test.inc (log_test): Test -Inf and NaN.
10300 (log10_test, log1p_test, log2_test): Test -Inf.
10301 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10302 FE_INVALID when argument is qNaN.
10303 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10304 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10305 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10306 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10307 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10308 testb $4, %ah and jump if non-zero.
10309 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10310 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10313 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10314 ancestors with the same depths.
10315 Patch by Niels Moeller <nisse@lysator.liu.se>.
10316 (filter_doc): Don't crash if argp is NULL.
10317 * argp/Makefile (tests): Add tst-argp2.
10318 * argp/tst-argp2.c: New test.
10321 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10323 (updwtmp_file): Likewise.
10326 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10327 (inet6_opt_append): Don't check extlen is big enough if extbuf
10329 (inet6_opt_finish): Likewise.
10330 * inet/Makefile (tests): Add test-inet6_opt.
10331 * inet/test-inet6_opt.c: New test.
10333 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10334 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10335 NLMSG_ERR. Instead use a page sized buffer.
10336 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10339 2007-03-14 Richard Henderson <rth@redhat.com>
10341 * sysdeps/alpha/fpu/s_llround.c: New file.
10342 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10343 * sysdeps/alpha/fpu/s_lround.c: New file.
10344 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10345 * sysdeps/alpha/fpu/s_round.c: New file.
10346 * sysdeps/alpha/fpu/s_roundf.c: New file.
10347 * sysdeps/alpha/fpu/s_trunc.c: New file.
10348 * sysdeps/alpha/fpu/s_truncf.c: New file.
10350 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10351 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10352 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10353 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10354 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10355 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10357 * sysdeps/alpha/fpu/s_fmax.S: New file.
10358 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10359 * sysdeps/alpha/fpu/s_fmin.S: New file.
10360 * sysdeps/alpha/fpu/s_fminf.S: New file.
10361 * sysdeps/alpha/fpu/s_isnan.c: New file.
10362 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10363 * sysdeps/alpha/fpu/s_llrint.c: New file.
10364 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10365 * sysdeps/alpha/fpu/s_lrint.c: New file.
10366 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10367 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10368 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10370 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10371 (__fdimf, fdimf, __fdim, fdim): Remove.
10372 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10373 (__isnanf, __isnan, __isnanl): New.
10375 2007-03-13 Richard Henderson <rth@redhat.com>
10377 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10379 2007-03-13 Richard Henderson <rth@redhat.com>
10381 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10382 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10383 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10384 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10385 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10386 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10388 2007-03-13 Richard Henderson <rth@redhat.com>
10390 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10391 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10392 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10393 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10394 Move to dl-auxv.h; initialize instead of extern weak.
10395 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10397 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10398 Extern instead of initialized.
10400 2007-03-13 Richard Henderson <rth@redhat.com>
10402 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10403 __sigsuspend_nocancel.
10405 2007-03-06 Ulrich Drepper <drepper@redhat.com>
10407 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10408 172.16/12 address range.
10410 2007-03-02 Jakub Jelinek <jakub@redhat.com>
10412 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10413 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10416 2007-03-01 Jakub Jelinek <jakub@redhat.com>
10419 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10421 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10423 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10424 for x qNaN and y either +-inf or non-integer value.
10425 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10426 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10427 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10429 2007-02-10 Mike Frysinger <vapier@gentoo.org>
10431 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10432 from sysdep_headers.
10434 2007-02-28 Jakub Jelinek <jakub@redhat.com>
10436 * time/tzfile.c (find_transition): Instead of a linear search try to
10437 guess the transition index, use a linear search if the result is at
10438 most 10 transitions away from the guess or binary search otherwise.
10440 2007-02-27 Jakub Jelinek <jakub@redhat.com>
10442 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10443 memory reallocation.
10445 2007-02-21 Ulrich Drepper <drepper@redhat.com>
10447 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10448 and fix some typos.
10449 Optimize use of TOLOWER.
10452 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10453 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10454 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10457 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10458 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10461 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10462 (open_dir_stream): Likewise.
10463 * io/Makefile (tests): Add bug-ftw5.
10464 * io/bug-ftw5.c: New file.
10466 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10467 * nscd/servicescache.c (cache_addserv): Likewise.
10469 * nscd/grpcache.c (cache_addgr): In case a record changed on
10470 refresh, adjust key_copy.
10473 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10474 refresh, adjust key_copy.
10477 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10479 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10481 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10483 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10486 * stdio-common/vfscanf.c: Small cleanups throughout.
10488 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10491 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10492 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10493 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10494 Patch by Jared Casper <jaredcasper@gmail.com>.
10496 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10497 * sysdeps/unix/opendir.c: Likewise.
10498 * sysdeps/unix/readdir.c: Likewise.
10501 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10503 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10505 * stdio-common/vfscanf.c: Fix problems in width accounting.
10506 * stdio-common/tst-sscanf.c (double_tests): New tests.
10507 (main): Hook them up.
10509 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10510 More simplifications of floating-point reader.
10512 * stdio-common/Makefile (tests): Add tst-swscanf.
10513 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10515 * stdio-common/tst-swscanf.c: New file.
10517 2007-02-17 Ulrich Drepper <drepper@redhat.com>
10520 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10521 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10522 Remove using for __jmp_buf_tag.
10523 * locale/locale.h (struct lconv): Also define in std namespace.
10524 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10527 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10528 using __libc_enable_secure.
10531 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10534 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10535 of names for ellipsises.
10538 * malloc/memusage.sh: Cleanups.
10539 * debug/xtrace.sh: Quoting and trap changes.
10541 2007-02-16 Ulrich Drepper <drepper@redhat.com>
10543 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10545 * locale/iso-3166.def: Update entry for Serbia.
10546 * locale/iso-4217.def: Define RSD, remove CSD.
10548 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10549 and 64-bit operations.
10552 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10555 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10558 2007-02-15 Ulrich Drepper <drepper@redhat.com>
10561 * assert/assert.h (assert): Simplify.
10562 (assert_perror): Likewise.
10563 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10565 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10568 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10569 change: don't pass NULL in place of an integer.
10571 2007-02-02 Bruno Haible <bruno@clisp.org>
10574 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10575 Add mapping for U+327E.
10576 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10577 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10578 mapping of 0xD9 0xE8.
10579 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10581 Reported by Jungshik Shin <jungshik@google.com>.
10584 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10585 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10586 Reported by Jungshik Shin <jungshik@google.com>.
10588 2007-02-14 Ulrich Drepper <drepper@redhat.com>
10590 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10594 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10595 byte variants. Patch mostly be tom@tommay.net.
10597 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10600 * posix/glob.c (attribute_hidden): Define if not defined.
10601 (glob): Unescape dirname, filename or username when needed and not
10602 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10603 is NULL. Handle unescaped [ in pattern without closing ].
10604 Don't pass GLOB_CHECK down to recursive glob for directories.
10605 (__glob_pattern_type): New function.
10606 (__glob_pattern_p): Implement using __glob_pattern_type.
10607 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10608 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10609 Remove unreachable code.
10610 * posix/globtest.sh: Add a couple of new tests.
10612 2007-02-13 Ulrich Drepper <drepper@redhat.com>
10614 * po/ru.po: Update from translation team.
10616 2007-02-12 Jakub Jelinek <jakub@redhat.com>
10618 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10619 to the list of i486+ CPUs.
10620 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10622 2007-02-12 Ulrich Drepper <drepper@redhat.com>
10624 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10625 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10628 2007-02-09 Ulrich Drepper <drepper@redhat.com>
10630 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10632 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10633 * resolv/res_mkquery.c: Define __res_nopt.
10634 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10635 try adding EDNS0 record.
10636 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10637 EDNS0 record was send make sure we don't try it again.
10638 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10639 * include/resolv.h: Declare __res_nopt.
10641 2007-02-08 Jakub Jelinek <jakub@redhat.com>
10644 * time/strptime_l.c (__strptime_internal): Set have_mon for
10645 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10646 have been computed from tm_yday and tm_year. Don't crash
10647 in day_of_the_week or day_of_the_year if not have_mon
10648 and tm_mon contains bogus value.
10649 * time/Makefile (tests): Add tst-strptime3.
10650 * time/tst-strptime3.c: New test.
10652 2007-02-05 Jakub Jelinek <jakub@redhat.com>
10655 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10656 bit for RE_HAT_LISTS_NOT_NEWLINE.
10657 (build_charclass_op): Remove bogus comment.
10658 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10659 * posix/bug-regex27.c: New test.
10660 * posix/bug-regex28.c: New test.
10662 2007-02-03 Ulrich Drepper <drepper@redhat.com>
10664 * po/sv.po: Update from translation team.
10666 2007-02-02 Ulrich Drepper <drepper@redhat.com>
10668 * nscd/nscd_helper.c (open_socket): Minor size optimization.
10670 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10672 * include/locale.h (__uselocale): Add libc_hidden_proto.
10673 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10675 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10678 2007-02-01 Ulrich Drepper <drepper@redhat.com>
10680 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10682 (PTR_DEMANGLE): Real definition now that it's not the same as
10683 PRT_MANGLE anymore.
10684 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10686 * string/strerror_l.c: New file.
10687 * string/Makefile (routines): Add strerror_l.
10688 * string/string.h: Declare strerror_l.
10689 * string/Versions: Export strerror_l for GLIBC_2.6.
10691 2007-01-31 Ulrich Drepper <drepper@redhat.com>
10693 * nscd/nscd_helper.c (open_socket): Now takes request type and key
10694 as parameter. Construct request record. Try sending request
10695 before the first poll use, it usually succeeds. Adjust all
10697 * nscd/nscd-client.h: Define MAXKEYLEN.
10698 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10700 2007-01-31 Jakub Jelinek <jakub@redhat.com>
10702 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10704 * nscd/nscd_helper.c: Include string.h.
10705 (__nscd_cache_search): Remove const qualifier from return value.
10706 On strict alignment architectures check hash entry and data head
10708 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10709 mmapped data during GC cycle contains garbage. If
10710 __nscd_drop_map_ref fails, decrement mapped->counter when returning
10711 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10713 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10714 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10715 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10716 * nscd/nscd_getai.c (__nscd_getai): Likewise.
10717 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10719 2007-01-30 Ulrich Drepper <drepper@redhat.com>
10721 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10723 2007-01-26 Ulrich Drepper <drepper@redhat.com>
10725 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10726 names not numbers in cfi_*.
10728 2007-01-26 Andreas Jaeger <aj@suse.de>
10730 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10731 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10732 Correct values of PER_HPUX and PER_OSF4.
10734 2007-01-24 Ulrich Drepper <drepper@redhat.com>
10736 * elf/dl-minimal.c: Undefine _itoa first.
10737 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10738 * malloc/mtrace.c: Revert last change.
10739 * posix/wordexp.c: Likewise.
10741 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10743 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10744 and __geode__ to the list of i486+ CPUs.
10745 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10747 2007-01-23 Ulrich Drepper <drepper@redhat.com>
10749 * stdio-common/_itoa.c: Include <limits.h>.
10750 * stdio-common/_itowa.c: Likewise.
10752 2007-01-22 Ulrich Drepper <drepper@redhat.com>
10754 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10756 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10758 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10760 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10764 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10765 * stdio-common/Makefile (tests): Add bug17.
10766 * stdio-common/bug17.c: New file.
10768 2007-01-19 Ulrich Drepper <drepper@redhat.com>
10770 * iconvdata/brf.c: New file.
10771 * iconvdata/testdata/BRF: New file.
10772 * iconvdata/testdata/BRF..UTF8: New file.
10773 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10774 * iconvdata/Makefile: Add rules to build BRF.
10775 * iconvdata/TESTS: Add BRF entry.
10776 * iconvdata/gconv-modules: Likewise.
10777 * iconvdata/tst-tables.sh: Likewise.
10779 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
10781 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10782 type `long long int', not `long int'.
10783 (wcstoq): Likewise.
10785 2007-01-18 Ulrich Drepper <drepper@redhat.com>
10787 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10788 of values on 64-bit platforms which are too large.
10790 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
10791 Joe Kerian <jkerian@us.us.ibm.com>
10794 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10795 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
10796 (__copysignl): Use signbit() for comparison.
10797 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10798 SET_LDOUBLE_WORDS64.
10801 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10802 (__ceill): Remove calls to fegetround(), fesetround().
10803 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10804 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10805 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10807 2007-01-17 Jakub Jelinek <jakub@redhat.com>
10809 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10811 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10813 2007-01-17 Ulrich Drepper <drepper@redhat.com>
10815 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10817 * csu/libc-start.c: Likewise.
10819 2007-01-16 Ulrich Drepper <drepper@redhat.com>
10821 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10822 really work anyway.
10824 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10826 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
10828 (handle_request): Remove unnecessary tests.
10830 * nscd/cache.c (cache_add): Record the failure to add to the cache.
10832 2007-01-15 Jakub Jelinek <jakub@redhat.com>
10834 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10835 workbits in semi-raw fraction.
10837 * math/test-misc.c: Add new tests.
10839 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10841 * math/basic-test.c: Include test-skeleton.c.
10842 (TEST_TRUNC): Define.
10843 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10844 (main): Rename to ...
10845 (do_test): ...this. Run new tests.
10846 (TEST_FUNCTION): Define.
10848 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
10849 Joe Kerian <jkerian@us.us.ibm.com>
10852 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10853 handling for high words.
10854 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10855 and overflow for infinity.
10857 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10859 * nscd/connections.c (handle_request): Add a __builtin_expect.
10861 * nscd/connections.c (serv2db): Change type into structure which
10862 also says whether this is a request for data. Renamed to
10863 servinfo. All users changed.
10864 (handle_request): Much simpler test whether we should search the cache.
10866 * nscd/connections.c (handle_request): Fix thinko in selinux test
10869 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10870 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10871 it before getting dl_load_lock and then relock.
10872 (_dl_lookup_symbol_x): Pass flags to add_dependency.
10873 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10874 case we unlocked the scope.
10875 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10876 _dl_lookup_symbol_x in case we locked the scope.
10877 (_dl_profile_fixup): Likewise.
10878 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10879 set DL_LOOKUP_SCOPE_LOCK.
10881 2007-01-13 Ulrich Drepper <drepper@redhat.com>
10883 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10884 CFLAGS-getsrvbynpt_r.c.
10885 * nscd/getsrvbynm_r.c: New file.
10886 * nscd/getsrvbypt_r.c: New file.
10887 * nscd/nscd_getserv_r.c: New file.
10888 * nscd/servicescache.c: New file.
10889 * nscd/Makefile (routines): Add nscd_getserv_r.
10890 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10891 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10892 CFLAGS-getsrvbypt_r.c.
10893 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10894 table. Add entries for services database.
10895 * nscd/connections.c (serv2str): Mark as const. Add entries for
10897 (dbs): Add .reset_res and servdb initialization.
10898 (serv2db): Add entries for services database.
10899 (verify_persistent_db): Accept dbnr == servdb.
10900 (invalidate_cache): Rewrite database name recognition to use a table.
10901 Call res_init() if .reset_res is set for database.
10902 (handle_request): Add code to handle services database.
10903 * nscd/gai.c: Don't define __getservbyname_r.
10904 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10905 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10906 (serv_response_header): Define.
10907 (struct datahead): Add serv_response_header member.
10908 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10910 * nscd/nscd.conf: Add entries for services database.
10911 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10912 Declare serv_iov_disabled.
10913 Declare addservbyname, readdservbyname, addservbyport, and
10915 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10916 (find_db): Fix error message.
10917 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10918 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10919 * nscd/selinux.c (perms): Add entries for services database.
10920 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10921 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10923 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10924 * nscd/hstcache.c: Likewise.
10925 * nscd/pwdcache.c: Likewise.
10927 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10928 computation of keylen.
10930 * include/string.h: Only redefine strndupa if this is really for
10933 2007-01-12 Ulrich Drepper <drepper@redhat.com>
10935 * nscd/nscd_gethst_r.c: Minor cleanups.
10937 * nscd/connections.c (handle_request): Check selinux permissions
10938 for all non-admin commands.
10940 * sysdeps/i386/i486/bits/atomic.h: Define
10941 atomic_compare_and_exchange_val_acq,
10942 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10943 using __sync_* built-ins for gcc >= 4.1.
10944 * sysdeps/x86_64/bits/atomic.h: Likewise.
10947 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10950 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10952 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10953 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10954 (do_test): Check errno and exit(0) if ENOSYS.
10956 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10958 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10959 thousands separators.
10960 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10961 * stdlib/tst-strtod4.c: New test.
10964 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10965 hexadecimal digit should accept just the initial 0.
10966 * stdlib/tst-strtod2.c (tests): New variable.
10967 (do_test): Run several tests rather than just one.
10969 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10971 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10972 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10974 2007-01-10 Ulrich Drepper <drepper@redhat.com>
10976 * io/fts.c: Make sure fts_cur is always valid after return from
10978 Patch by Miloslav Trmac <mitr@redhat.com>.
10980 2006-10-27 Richard Sandiford <richard@codesourcery.com>
10982 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10983 (R_MIPS_NUM): Bump by 1.
10985 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10987 * posix/execvp.c: Include alloca.h.
10988 (allocate_scripts_argv): Renamed to...
10989 (scripts_argv): ... this. Don't allocate buffer here nor count
10991 (execvp): Use alloca if possible.
10992 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10993 * posix/tst-vfork3.c: New test.
10995 2007-01-03 Ulrich Drepper <drepper@redhat.com>
10997 * string/Makefile (tst-strxfrm2-ENV): Define.
10998 * stdlib/Makefile (tst-strtod3-ENV): Define.
11000 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11002 * posix/getconf.c: Update copyright year.
11003 * nss/getent.c: Likewise.
11004 * iconv/iconvconfig.c: Likewise.
11005 * iconv/iconv_prog.c: Likewise.
11006 * elf/ldconfig.c: Likewise.
11007 * catgets/gencat.c: Likewise.
11008 * csu/version.c: Likewise.
11009 * elf/ldd.bash.in: Likewise.
11010 * elf/sprof.c (print_version): Likewise.
11011 * locale/programs/locale.c: Likewise.
11012 * locale/programs/localedef.c: Likewise.
11013 * nscd/nscd.c (print_version): Likewise.
11014 * debug/xtrace.sh: Likewise.
11015 * malloc/memusage.sh: Likewise.
11016 * malloc/mtrace.pl: Likewise.
11017 * debug/catchsegv.sh: Likewise.
11019 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11021 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11024 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11026 * posix/wordexp.c: Remove some unnecessary tests.
11028 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11030 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11031 blacklist the group till after we look it up.
11033 2006-12-21 Ulrich Drepper <drepper@redhat.com>
11035 * include/atomic.h (atomic_forced_read): New macro.
11037 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11039 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11041 2006-12-19 Jakub Jelinek <jakub@redhat.com>
11043 * nss/getXXbyYY_r.c: Include atomic.h.
11044 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11045 add atomic_write_barrier () in between.
11047 * stdlib/Makefile (tests): Add tst-makecontext.
11048 * stdlib/tst-makecontext.c: New test.
11050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11051 (__makecontext): Don't realign uc_mcontext.uc_regs.
11053 2006-11-28 Jakub Jelinek <jakub@redhat.com>
11055 * elf/dl-support.c: Include dl-procinfo.h.
11056 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11057 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11058 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11060 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11061 hardcoded constants.
11062 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11063 PPC_PLATFORM_* macros for array designators.
11065 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
11067 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11068 names to the beginning.
11069 (_dl_powerpc_platforms): Add "power6x".
11070 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11071 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11072 (_DL_PLATFORMS_COUNT): Increase.
11073 (_dl_string_platform): Handle power6x case.
11074 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11075 PPC_FEATURE_POWER6_EXT): Define.
11076 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11078 2006-12-18 Jakub Jelinek <jakub@redhat.com>
11081 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11082 [-2^31 .. 2^31) range.
11083 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11085 * stdlib/tst-rand48-2.c: New test.
11086 * stdlib/Makefile (tests): Add tst-rand48-2.
11088 2006-12-14 Jakub Jelinek <jakub@redhat.com>
11090 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11092 2006-12-14 Ulrich Drepper <drepper@redhat.com>
11094 * misc/tst-pselect.c (do_test): Make sure the helper process is
11095 terminating when the test is aborted.
11097 2006-12-13 Ulrich Drepper <drepper@redhat.com>
11099 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11100 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11101 Handle relatime mount option.
11104 * libio/Makefile (tests): Add tst-setvbuf1.
11105 * libio/tst-setvbuf1.c: New file.
11107 2006-12-08 Jakub Jelinek <jakub@redhat.com>
11110 * libio/genops.c (__uflow): Fix a typo.
11111 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11112 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11113 the narrow buffer size.
11115 2006-11-24 Jakub Jelinek <jakub@redhat.com>
11118 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11119 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11120 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11122 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11123 _IO_wstr_finish): Likewise.
11124 * libio/wmemstream.c (open_wmemstream): Likewise.
11125 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11126 even for wide streams.
11128 2006-12-13 Jakub Jelinek <jakub@redhat.com>
11130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11133 2006-12-11 Ulrich Drepper <drepper@redhat.com>
11135 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11136 separators also if no non-zero digits found.
11137 * stdlib/Makefile (tests): Add tst-strtod3.
11139 2006-12-09 Ulrich Drepper <drepper@redhat.com>
11142 * include/features.h: Fix comment about default value for
11146 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11147 empty parsed strings.
11148 * stdlib/Makefile (tests): Add tst-strtod2.
11149 * stdlib/tst-strtod2.c: New file.
11152 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11154 * stdlib/Makefile (tests): Add tst-atof2.
11155 * stdlib/tst-atof2.c: New file.
11158 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11159 correctly if removing trailing zero of hex-float.
11160 * stdlib/Makefile (tests): Add tst-atof1.
11161 * stdlib/tst-atof1.c: New file.
11163 2006-12-09 Jakub Jelinek <jakub@redhat.com>
11165 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11166 Start searching for next comma at p rather than rest.
11167 * misc/Makefile (tests): Add tst-mntent2.
11168 * misc/tst-mntent2.c: New test.
11170 * misc/getusershell.c (initshells): Check for integer overflows.
11171 Make strings buffer one bigger as fgets always succeeds when second
11172 argument is 1. Don't use calloc for shells array. Disallow
11175 2006-12-08 Ulrich Drepper <drepper@redhat.com>
11177 * malloc/memusage.c: Handle realloc with new size of zero and
11178 non-NULL pointer correctly.
11179 (me): Really write first record twice.
11180 (struct entry): Make format bi-arch safe.
11181 (dest): Write out more realloc statistics.
11182 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11184 2006-12-05 Jakub Jelinek <jakub@redhat.com>
11186 * nis/nis_subr.c (nis_getnames): Revert last change.
11188 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11190 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11191 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11192 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11193 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11195 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11196 * io/tst-ttyname_r.c: New test.
11198 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11200 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11202 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
11204 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11205 jump table entries.
11207 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11209 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11210 `clone' function to ensure proper unwinding stop of gdb.
11211 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11213 2006-12-01 Ulrich Drepper <drepper@redhat.com>
11215 * nscd/nscd.init: Remove obsolete and commented-out -S option
11218 2006-11-23 Jakub Jelinek <jakub@redhat.com>
11221 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11224 * manual/string.texi (strtok): Remove duplicate paragraph.
11226 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11228 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11229 libgcc not supporting `rflags' unwinding (register # >= 17).
11231 2006-11-30 Jakub Jelinek <jakub@redhat.com>
11233 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11236 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11237 Jakub Jelinek <jakub@redhat.com>
11238 Jan Kratochvil <jan.kratochvil@redhat.com>
11240 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11241 unwind information.
11242 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11243 'restore_rt' even in the 'signal' directory.
11244 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11246 2006-11-27 Jakub Jelinek <jakub@redhat.com>
11249 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11250 malloc crashed. Don't allocate memory unnecessarily in each
11253 2006-10-21 Jakub Jelinek <jakub@redhat.com>
11255 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11257 2006-11-20 Ulrich Drepper <drepper@redhat.com>
11259 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11261 2006-11-18 Bruno Haible <bruno@clisp.org>
11263 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11264 __sysconf only after having tried to call getgroups32.
11266 2006-11-19 Ulrich Drepper <drepper@redhat.com>
11268 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11269 addresses for IPv4 queries if they can be mapped.
11271 2006-11-16 Jakub Jelinek <jakub@redhat.com>
11273 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11274 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11275 (signmask): Add .size directive.
11276 (othermask): Add .type directive.
11278 2006-11-14 Ulrich Drepper <drepper@redhat.com>
11280 * po/nl.po: Update from translation team.
11282 * timezone/zdump.c: Redo fix for BZ #3137.
11284 2006-11-14 Jakub Jelinek <jakub@redhat.com>
11286 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11287 to first_unused after parsing :include: file.
11289 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11291 * timezone/africa: Update from tzdata2006o.
11292 * timezone/antarctica: Likewise.
11293 * timezone/asia: Likewise.
11294 * timezone/australasia: Likewise.
11295 * timezone/backward: Likewise.
11296 * timezone/europe: Likewise.
11297 * timezone/iso3166.tab: Likewise.
11298 * timezone/northamerica: Likewise.
11299 * timezone/southamerica: Likewise.
11300 * timezone/zone.tab: Likewise.
11302 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11303 on machines with 64-bit time_t.
11305 * timezone/checktab.awk: Update from tzcode2006o.
11306 * timezone/ialloc.c: Likewise.
11307 * timezone/private.h: Likewise.
11308 * timezone/scheck.c: Likewise.
11309 * timezone/tzfile.h: Likewise.
11310 * timezone/tzselect.ksh: Likewise.
11311 * timezone/zdump.c: Likewise.
11312 * timezone/zic.c: Likewise.
11315 * elf/ldconfig.c (main): Call setlocale and textdomain.
11316 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11319 * manual/argp.texi: Fix typos.
11320 * manual/charset.texi: Likewise.
11321 * manual/errno.texi: Likewise.
11322 * manual/filesys.texi: Likewise.
11323 * manual/lang.texi: Likewise.
11324 * manual/maint.texi: Likewise.
11325 * manual/memory.texi: Likewise.
11326 * manual/message.texi: Likewise.
11327 * manual/resource.texi: Likewise.
11328 * manual/search.texi: Likewise.
11329 * manual/signal.texi: Likewise.
11330 * manual/startup.texi: Likewise.
11331 * manual/stdio.texi: Likewise.
11332 * manual/sysinfo.texi: Likewise.
11333 * manual/syslog.texi: Likewise.
11334 * manual/time.texi: Likewise.
11335 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11338 * sunrpc/clnt_raw.c: Minimal message improvements.
11339 * sunrpc/pm_getmaps.c: Likewise.
11340 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11341 * nis/nis_print_group_entry.c: Likewise.
11342 * locale/programs/repertoire.c: Likewise.
11343 * locale/programs/charmap.c: Likewise.
11344 * malloc/memusage.sh: Likewise.
11345 * elf/dl-deps.c: Likewise.
11346 * locale/programs/ld-collate.c: Likewise.
11347 * libio/vswprintf.c: Likewise.
11348 * malloc/memusagestat.c: Likewise.
11349 * sunrpc/auth_unix.c: Likewise.
11350 * sunrpc/rpc_main.c: Likewise.
11351 * nscd/cache.c: Likewise.
11352 * locale/programs/repertoire.c: Unify output messages.
11353 * locale/programs/charmap.c: Likewise.
11354 * locale/programs/ld-ctype.c: Likewise.
11355 * locale/programs/ld-monetary.c: Likewise.
11356 * locale/programs/ld-numeric.c: Likewise.
11357 * locale/programs/ld-time.c: Likewise.
11358 * elf/ldconfig.c: Likewise.
11359 * nscd/selinux.c: Likewise.
11360 * elf/cache.c: Likewise.
11361 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11364 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11368 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11370 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11371 if N is one bigger than return value.
11372 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11373 and l1 last arguments, if buf is defined, verify the return value
11374 equals to strlen (buf) and verify no byte beyond passed length
11377 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11379 * po/sv.po: Update from translation team.
11381 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11383 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11384 noinline attribute.
11386 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11388 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11389 noinline attribute.
11391 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11392 Use __new_sys_siglist instead of _sys_siglist_internal as
11393 second macro argument.
11394 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11397 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11400 * posix/unistd.h (sysconf): Remove const attribute.
11402 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11403 temporary or deprecated addresses.
11404 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11406 * string/Makefile (tests): Add tst-strxfrm2.
11407 * string/tst-strxfrm2.c: New file.
11409 2006-10-09 Jakub Jelinek <jakub@redhat.com>
11411 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11412 rather than r->r_brk.
11414 2006-11-08 Jakub Jelinek <jakub@redhat.com>
11416 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11417 optimization even if needed > n.
11419 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11420 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11421 return false, otherwise return true.
11422 (cache_rpath): Return decompose_rpath return value.
11424 2006-11-07 Jakub Jelinek <jakub@redhat.com>
11426 * include/libc-symbols.h (declare_symbol): Rename to...
11427 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11428 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11430 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11432 * sysdeps/gnu/siglist.c: Likewise.
11434 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11436 * sysdeps/powerpc/fpu/bits/mathinline.h
11437 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11438 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11440 2006-11-05 Ulrich Drepper <drepper@redhat.com>
11442 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11443 Update handling of cache descriptor 0x49 for new models.
11444 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11447 2006-11-02 Jakub Jelinek <jakub@redhat.com>
11449 * malloc/memusage.c (dest): Reset not_me back to false after
11450 printing statistics.
11452 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11454 * configure.in: Work around ld --help change and avoid -z relro
11455 test completely if the architecture doesn't care about security.
11457 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11459 * po/sv.po: Update from translation team.
11461 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11463 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11464 generate compatibility version.
11466 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11468 * configure.in: Relax -z relro requirement a bit.
11470 * po/sv.po: Update from translation team.
11472 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11474 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11475 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11476 * elf/dl-close.c (_dl_close_worker): Likewise.
11477 * elf/dl-open.c (_dl_open_worker): Likewise.
11478 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11480 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11482 * configure.in: Require assembler support for visibility, compiler
11483 support for visibility and aliases, linker support for various -z
11485 * Makeconfig: Remove conditional code which now is unnecessary.
11486 * config.h.in: Likewise.
11487 * config.make.in: Likewise.
11488 * dlfcn/Makefile: Likewise.
11489 * elf/Makefile: Likewise.
11490 * elf/dl-load.c: Likewise.
11491 * elf/rtld.c: Likewise.
11492 * include/libc-symbols.h: Likewise.
11493 * include/stdio.h: Likewise.
11494 * io/Makefile: Likewise.
11495 * io/fstat.c: Likewise.
11496 * io/fstat64.c: Likewise.
11497 * io/fstatat.c: Likewise.
11498 * io/fstatat64.c: Likewise.
11499 * io/lstat.c: Likewise.
11500 * io/lstat64.c: Likewise.
11501 * io/mknod.c: Likewise.
11502 * io/mknodat.c: Likewise.
11503 * io/stat.c: Likewise.
11504 * io/stat64.c: Likewise.
11505 * libio/stdio.c: Likewise.
11506 * nscd/Makefile: Likewise.
11507 * stdlib/Makefile: Likewise.
11508 * stdlib/atexit.c: Likewise.
11509 * sysdeps/generic/ldsodefs.h: Likewise.
11510 * sysdeps/i386/dl-machine.h: Likewise.
11511 * sysdeps/i386/sysdep.h: Likewise.
11512 * sysdeps/i386/i686/memcmp.S: Likewise.
11513 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11514 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11515 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11517 * Makerules: USE_TLS support is now default.
11518 * tls.make.c: Likewise.
11519 * csu/Versions: Likewise.
11520 * csu/libc-start.c: Likewise.
11521 * csu/libc-tls.c: Likewise.
11522 * csu/version.c: Likewise.
11523 * dlfcn/dlinfo.c: Likewise.
11524 * elf/dl-addr.c: Likewise.
11525 * elf/dl-cache.c: Likewise.
11526 * elf/dl-close.c: Likewise.
11527 * elf/dl-iteratephdr.c: Likewise.
11528 * elf/dl-load.c: Likewise.
11529 * elf/dl-lookup.c: Likewise.
11530 * elf/dl-object.c: Likewise.
11531 * elf/dl-open.c: Likewise.
11532 * elf/dl-reloc.c: Likewise.
11533 * elf/dl-support.c: Likewise.
11534 * elf/dl-sym.c: Likewise.
11535 * elf/dl-sysdep.c: Likewise.
11536 * elf/dl-tls.c: Likewise.
11537 * elf/ldconfig.c: Likewise.
11538 * elf/rtld.c: Likewise.
11539 * elf/tst-tls-dlinfo.c: Likewise.
11540 * elf/tst-tls1.c: Likewise.
11541 * elf/tst-tls10.h: Likewise.
11542 * elf/tst-tls14.c: Likewise.
11543 * elf/tst-tls2.c: Likewise.
11544 * elf/tst-tls3.c: Likewise.
11545 * elf/tst-tls4.c: Likewise.
11546 * elf/tst-tls5.c: Likewise.
11547 * elf/tst-tls6.c: Likewise.
11548 * elf/tst-tls7.c: Likewise.
11549 * elf/tst-tls8.c: Likewise.
11550 * elf/tst-tls9.c: Likewise.
11551 * elf/tst-tlsmod1.c: Likewise.
11552 * elf/tst-tlsmod13.c: Likewise.
11553 * elf/tst-tlsmod13a.c: Likewise.
11554 * elf/tst-tlsmod14a.c: Likewise.
11555 * elf/tst-tlsmod2.c: Likewise.
11556 * elf/tst-tlsmod3.c: Likewise.
11557 * elf/tst-tlsmod4.c: Likewise.
11558 * elf/tst-tlsmod5.c: Likewise.
11559 * elf/tst-tlsmod6.c: Likewise.
11560 * include/errno.h: Likewise.
11561 * include/link.h: Likewise.
11562 * include/tls.h: Likewise.
11563 * locale/global-locale.c: Likewise.
11564 * locale/localeinfo.h: Likewise.
11565 * malloc/arena.c: Likewise.
11566 * malloc/hooks.c: Likewise.
11567 * malloc/malloc.c: Likewise.
11568 * resolv/Versions: Likewise.
11569 * sysdeps/alpha/dl-machine.h: Likewise.
11570 * sysdeps/alpha/libc-tls.c: Likewise.
11571 * sysdeps/generic/ldsodefs.h: Likewise.
11572 * sysdeps/generic/tls.h: Likewise.
11573 * sysdeps/i386/dl-machine.h: Likewise.
11574 * sysdeps/ia64/dl-machine.h: Likewise.
11575 * sysdeps/ia64/libc-tls.c: Likewise.
11576 * sysdeps/mach/hurd/fork.c: Likewise.
11577 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11578 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11579 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11580 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11581 * sysdeps/s390/libc-tls.c: Likewise.
11582 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11583 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11584 * sysdeps/sh/dl-machine.h: Likewise.
11585 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11586 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11587 * sysdeps/x86_64/dl-machine.h: Likewise.
11589 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11590 split out locking and parameter checking.
11591 (_dl_close): Call _dl_close_worker after locking and checking.
11592 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11594 * elf/Makefile: Add rules to build and run tst-thrlock.
11595 * elf/tst-thrlock.c: New file.
11598 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11602 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11603 we are sure we do not need it anymore for _dl_close. Also move
11604 the asserts inside the lock region.
11605 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11607 2006-10-27 Jakub Jelinek <jakub@redhat.com>
11609 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11611 (_dl_lookup_symbol_x): Adjust caller.
11613 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11615 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11617 * elf/dl-libc.c: Revert l_scope name changes.
11618 * elf/dl-load.c: Likewise.
11619 * elf/dl-object.c: Likewise.
11620 * elf/rtld.c: Likewise.
11621 * elf/dl-close.c (_dl_close): Likewise.
11622 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11623 always use __rtld_mrlock_{change,done}. Always free old scope list
11624 here if not l_scope_mem.
11625 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11626 change. Never free scope list here. Just __rtld_mrlock_lock before
11627 the lookup and __rtld_mrlock_unlock it after the lookup.
11628 * elf/dl-sym.c: Likewise.
11629 * include/link.h (struct r_scoperec): Remove.
11630 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11631 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11633 2006-10-25 Ulrich Drepper <drepper@redhat.com>
11635 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11637 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11639 * configure.in: Disable building profile libraries by default.
11641 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11643 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11644 as signed longs, check for x_base + pos overflow.
11645 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11646 * sunrpc/tst-xdrmem2.c: New test.
11648 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11650 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11651 _dl_lookup_symbol_x code.
11653 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11655 * elf/dl-runtime.c: Include sysdep-cancel.h.
11656 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11657 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
11658 instead of catomic_* macros.
11659 * elf/dl-sym.c: Include sysdep-cancel.h.
11660 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11661 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11662 * elf/dl-close.c: Include sysdep-cancel.h.
11663 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11664 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11665 * elf/dl-open.c: Include sysdep-cancel.h.
11666 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11667 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11669 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11672 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11673 fastbin rather than end of fastbin array.
11675 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11677 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11679 * sysdeps/x86_64/bits/atomic.h
11680 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11681 (catomic_decrement): Use correct body macro.
11683 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11685 * include/atomic.h: Add a unique prefix to all local variables
11687 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11689 2006-10-16 Ulrich Drepper <drepper@redhat.com>
11692 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11695 2006-10-14 Ulrich Drepper <drepper@redhat.com>
11697 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11699 2006-10-13 Ulrich Drepper <drepper@redhat.com>
11702 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11703 determine highest fast bin to consolidate, always look into all of
11705 (do_check_malloc_state): Only require for empty bins for large
11706 sizes in main arena.
11708 * libio/stdio.h: Add more __wur attributes.
11710 * elf/dl-minimal.c (realloc): Optimize last patch.
11712 2006-10-12 Richard Sandiford <richard@codesourcery.com>
11715 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11716 and use memcpy() if it does.
11718 2006-11-12 Andreas Jaeger <aj@suse.de>
11721 * manual/search.texi (Hash Search Function): Clarify.
11722 (Array Search Function): Clarify.
11724 2006-11-12 Joseph Myers <joseph@codesourcery.com>
11727 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11729 * math/atest-exp2.c (read_mpn_hex): Likewise.
11730 * math/atest-sincos.c (main): Likewise.
11732 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11734 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11735 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11736 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11738 * Versions.def: Add GLIBC_2.6 for libc.
11740 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11742 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11744 2006-10-11 Jakub Jelinek <jakub@redhat.com>
11746 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11748 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11750 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11751 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11753 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11755 * include/atomic.c: Define catomic_* operations.
11756 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
11757 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11758 * malloc/memusage.c: Likewise.
11759 * gmon/mcount.c: Likewise.
11760 * elf/dl-close.c: Likewise.
11761 * elf/dl-open.c: Likewise.
11762 * elf/dl-profile.c: Likewise.
11763 * elf/dl-sym.c: Likewise.
11764 * elf/dl-runtime.c: Likewise.
11765 * elf/dl-fptr.c: Likewise.
11766 * resolv/res_libc.c: Likewise.
11768 2006-10-10 Ulrich Drepper <drepper@redhat.com>
11770 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11771 components which lack them.
11773 * nis/nis_subr.c (nis_getnames): Make sure that we always return
11774 at least one entry consisting of the parameter concatenated with
11777 2006-10-10 Roland McGrath <roland@frob.com>
11779 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11780 * sysdeps/mach/hurd/futimes.c: Likewise.
11781 * sysdeps/mach/hurd/lutimes.c: Likewise.
11783 2006-10-09 Ulrich Drepper <drepper@redhat.com>
11784 Jakub Jelinek <jakub@redhat.com>
11786 Implement reference counting of scope records.
11787 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11788 from the list in objects which remain. Always allocate new scope
11790 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11791 don't resize, allocate a new one.
11792 * elf/dl-runtime.c: Update reference counters before using a scope
11794 * elf/dl-sym.c: Likewise.
11795 * elf/dl-libc.c: Adjust for l_scope name change.
11796 * elf/dl-load.c: Likewise.
11797 * elf/dl-object.c: Likewise.
11798 * elf/rtld.c: Likewise.
11799 * include/link.h: Include <rtld-lowlevel.h>. Define struct
11800 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
11801 Add l_scoperec_lock.
11802 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11803 * sysdeps/generic/rtld-lowlevel.h: New file.
11805 * include/atomic.h: Rename atomic_and to atomic_and_val and
11806 atomic_or to atomic_or_val. Define new macros atomic_and and
11807 atomic_or which do not return values.
11808 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11810 * sysdeps/i386/i486/bits/atomic.h: Likewise.
11812 * po/sv.po: Update from translation team.
11814 2006-10-07 Ulrich Drepper <drepper@redhat.com>
11816 * Versions.def: Add GLIBC_2.6 to libpthread.
11818 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11819 (versioned_symbol): Likewise.
11820 (compat_symbol): Likewise.
11822 * po/tr.po: Update from translation team.
11824 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11826 * nis/Banner: Removed. It's been integral part forever and the
11827 author info is incomplete anyway.
11828 * libio/Banner: Likewise.
11830 * nis/nis_table.c (nis_list): If __follow_path fails in the new
11831 code, make sure the nis_freeresult call doesn't crash and that the
11832 result is reported correctly.
11834 2006-09-27 Jakub Jelinek <jakub@redhat.com>
11836 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11837 when callback is NULL.
11839 * nis/Versions (libnss_nisplus): Add
11840 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11841 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11842 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11843 _nss_create_tablename): Rename to...
11844 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11845 ... these. No longer static.
11846 (internal_setgrent): Adjust users.
11847 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11848 Don't use locking around _nss_grp_create_tablename call.
11849 * nis/nss_nisplus/nisplus-initgroups.c: New file.
11851 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11853 * version.h (VERSION): Bump to 2.5.90 for new development tree.
11855 2006-10-06 Andreas Jaeger <aj@suse.de>
11857 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11859 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11861 * po/pl.po: Update from translation team.
11863 * nscd/nscd.c (main): Fix typo in message.
11864 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11866 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11869 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11870 errno.h, signal.h, unistd.h and sysdep-cancel.h.
11871 (__sigprocmask): Define.
11873 2006-10-02 Ulrich Drepper <drepper@redhat.com>
11875 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11878 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11880 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11881 in oldtotal and newtotal calculation.
11882 * nscd/nscd-client.h (struct mapped_database): Add datasize
11884 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11885 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11887 (__nscd_cache_search): Add checks to make sure we never reference
11888 data beyond the current mapping.
11890 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11892 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11893 variables const to avoid compiler warnings.
11895 * io/fts.c (fts_close): Remove redundant checks.
11896 (fts_build): Likewise.
11897 (fts_palloc): Likewise.
11899 * manual/message.texi (Advanced gettext functions,
11900 Using gettextized software): Fix typos.
11902 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11904 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11905 explain why there are no leaks.
11907 2006-09-29 Ulrich Drepper <drepper@redhat.com>
11909 * libio/wmemstream.c: Include <wchar.h>.
11910 * libio/bug-wmemstream1.c: Likewise.
11911 * libio/tst-wmemstream1.c: Likewise.
11912 * libio/tst-wmemstream2.c: Likewise.
11914 * version.h (RELEASE): Bump to 2.5.
11915 * README: Regenerated.
11917 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11920 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11921 found no group members.
11922 Patch by Petr Baudis.
11924 2006-09-29 Jakub Jelinek <jakub@redhat.com>
11926 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11927 assert bootstrap_map.l_tls_modid is zero.
11928 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11931 2006-09-27 Ulrich Drepper <drepper@redhat.com>
11933 * libio/stdio.h: Move open_wmemstream prototype to ...
11934 * wcsmbs/wchar.h: ... here.
11936 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11939 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11940 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11941 __{,l}chown to handle the rest.
11942 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11943 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11944 __{,l}chown to handle the rest.
11945 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11947 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11948 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11951 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11952 time, rather allocate increasingly bigger arrays of pointers, if
11953 possible with alloca, if too large with malloc.
11955 2006-09-24 Jakub Jelinek <jakub@redhat.com>
11957 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11959 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11961 2006-09-24 Ulrich Drepper <drepper@redhat.com>
11963 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11965 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11966 IFA_F_HOMEADDRESS flag for interfaces.
11967 * include/ifaddrs.h (struct in6addrinfo): Define
11970 2006-09-21 Jakub Jelinek <jakub@redhat.com>
11973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11974 PTR_DEMANGLE3): Define.
11975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11976 PTR_DEMANGLE3): Likewise.
11977 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11978 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11980 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11982 2006-09-20 Jakub Jelinek <jakub@redhat.com>
11984 * po/libc.pot: Regenerated.
11985 * po/be.po: Updated.
11986 * po/ca.po: Likewise.
11987 * po/cs.po: Likewise.
11988 * po/da.po: Likewise.
11989 * po/de.po: Likewise.
11990 * po/el.po: Likewise.
11991 * po/en_GB.po: Likewise.
11992 * po/es.po: Likewise.
11993 * po/fi.po: Likewise.
11994 * po/fr.po: Likewise.
11995 * po/gl.po: Likewise.
11996 * po/hr.po: Likewise.
11997 * po/hu.po: Likewise.
11998 * po/ja.po: Likewise.
11999 * po/ko.po: Likewise.
12000 * po/nb.po: Likewise.
12001 * po/nl.po: Likewise.
12002 * po/pl.po: Likewise.
12003 * po/pt_BR.po: Likewise.
12004 * po/ru.po: Likewise.
12005 * po/rw.po: Likewise.
12006 * po/sk.po: Likewise.
12007 * po/sv.po: Likewise.
12008 * po/tr.po: Likewise.
12009 * po/zh_CN.po: Likewise.
12010 * po/zh_TW.po: Likewise.
12013 * iconv/iconv_prog.c (main): Fix spelling in error message.
12014 * iconv/iconvconfig.c (main): Likewise.
12015 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12016 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12017 * locale/programs/localedef.c (main): Likewise.
12018 * locale/programs/repertoire.c (repertoire_read): Likewise.
12019 * timezone/zdump.c (main): Likewise.
12020 * nscd/connections.c (handle_request): Fix spelling in log message.
12021 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12023 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12025 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12028 2006-09-20 Andreas Jaeger <aj@suse.de>
12030 * math/libm-test.inc (lrint_test_upward): Fix typo.
12032 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12035 * math/libm-test.inc (lrint_test_tonearest): New function.
12036 (lrint_test_towardzero): New function.
12037 (lrint_test_downward): New function.
12038 (lrint_test_upward): New function.
12039 (main): Run these new tests.
12040 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12041 of values near to 0.
12042 (two52): Use double not long double.
12043 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12044 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12045 (two23): Use float not double.
12046 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12047 (two23): Use float not double.
12048 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12049 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12050 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12051 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12053 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12055 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12056 Cast sp to unsigned long to avoid compiler warning.
12057 Use __makecontext_ret function instead of a trampoline on the stack.
12058 (__makecontext_ret): New function.
12059 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12061 2006-09-19 Jakub Jelinek <jakub@redhat.com>
12063 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12064 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12067 2006-09-19 Ulrich Drepper <drepper@redhat.com>
12069 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12070 sure no reference to the unloaded map's search list remains in the
12071 dependency's scope.
12073 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12075 * elf/Makefile: Add rules to build and run unload7 test.
12076 * elf/unload7.c: New test.
12077 * elf/unload7mod1.c: New file.
12078 * elf/unload7mod2.c: New file.
12080 2006-09-18 Jakub Jelinek <jakub@redhat.com>
12082 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12083 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12084 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12085 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12086 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12087 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12088 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12089 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12090 PTRACE_GETEVENTMSG): Likewise.
12091 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12094 2006-09-17 Mike Frysinger <vapier@gentoo.org>
12096 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12097 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12098 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12099 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12101 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12103 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12104 write '\0' to the fd.
12105 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12106 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12107 Change regs to unsigned long pointer from unsigned int, fix fscr
12110 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12112 * io/Makefile (CFLAGS-fstatat.c): Set.
12113 (CFLAGS-fstatat64.c): Likewise.
12114 (CFLAGS-mknodat.c): Likewise.
12116 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12117 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12118 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12119 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12121 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12122 Steven Munroe <sjmunroe@us.ibm.com>
12124 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12125 names to the beginning. Rename "cell" to "cellbe".
12126 (_dl_powerpc_platforms): New.
12127 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12128 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12129 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12130 (_DL_HWCAP_PLATFORM): Define to new mask.
12131 (_dl_platform_string, _dl_string_platform): New functions.
12132 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12133 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12135 2006-09-12 Jakub Jelinek <jakub@redhat.com>
12138 * README.libm: Fix a thinko in sqrt algorithm description.
12141 * manual/string.texi (argz_delete): Fix prototype.
12142 Patch by <alpt@freaknet.org>.
12144 2006-08-26 Joseph Myers <joseph@codesourcery.com>
12147 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12148 * io/tst-fcntl.c (do_prepare): Likewise.
12149 * posix/tst-exec.c (do_prepare): Likewise.
12150 * posix/tst-preadwrite.c (do_prepare): Likewise.
12151 * posix/tst-spawn.c (do_prepare): Likewise.
12152 * posix/tst-truncate.c (do_prepare): Likewise.
12153 * rt/tst-aio.c (do_prepare): Likewise.
12154 * rt/tst-aio64.c (do_prepare): Likewise.
12155 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12158 2006-09-09 Ulrich Drepper <drepper@redhat.com>
12161 * time/mktime.c (guess_time_tm): Fix overflow detection.
12162 * time/Makefile (tests): Add bug-mktime1.
12163 * time/bug-mktime1.c: New file.
12166 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12167 (mremap): Likewise.
12169 2006-09-07 Jakub Jelinek <jakub@redhat.com>
12172 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12173 Ensure relocation doesn't clobber any bits outside of the
12174 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12175 R_SPARC_HI22 and R_SPARC_H44.
12178 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12179 (long) (MINSIZE + nb - old_size) is positive.
12181 * malloc/arena.c (grow_heap): When growing bail even if new_size
12185 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12188 2006-09-06 Jakub Jelinek <jakub@redhat.com>
12190 * posix/regex_internal.c (re_string_reconstruct): Handle
12191 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12192 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12193 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12194 re_string_context_at.
12195 * posix/Makefile: Add rules to build and run bug-regex26 test.
12196 * posix/bug-regex26.c: New test.
12198 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12199 rather than col_sym_free. Move seqp declaration earlier.
12201 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12203 2006-09-05 Jakub Jelinek <jakub@redhat.com>
12205 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12206 decl before first goto out.
12208 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12210 * Makerules (shlib.lds): If have-hash-style, put .hash section
12211 at the end of the RO segment.
12213 2006-09-04 Ulrich Drepper <drepper@redhat.com>
12215 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12216 style hash table format is used.
12218 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12220 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12221 randomization rather than before.
12222 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12224 2006-08-31 Jakub Jelinek <jakub@redhat.com>
12226 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12228 * malloc/malloc.c (_int_malloc): Use full list insert and not
12229 shortcut which assumes the list is empty for large requests
12232 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12234 2006-08-30 Jakub Jelinek <jakub@redhat.com>
12236 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12237 and offout arguments to the prototype.
12238 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12239 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12240 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12241 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12242 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12243 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12244 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12245 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12247 2006-08-28 Ulrich Drepper <drepper@redhat.com>
12249 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12251 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12254 2006-08-28 Jakub Jelinek <jakub@redhat.com>
12256 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12257 only if herrno is NETDB_INTERNAL. Handle errors other than
12258 ERANGE outside of the loops, handle TRY_AGAIN.
12260 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12261 if other's ctype category was missing.
12262 * locale/programs/ld-collate.c (collate_read): Return if
12263 copy_locale's collate category is missing.
12265 2006-08-27 Ulrich Drepper <drepper@redhat.com>
12268 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12269 arenas if allocation failed.
12270 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12272 2006-08-26 Ulrich Drepper <drepper@redhat.com>
12274 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12276 (malloc_state): Reduce bins size by 2.
12277 (_int_malloc): Fix test for large enough buffer for early termination.
12278 When no unsorted block matches perfectly and an exiting block has
12279 to be split, use full list insert and not shortcut which assumes
12282 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12285 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12287 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12290 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12291 symbol require exact match (these are PLTs).
12292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12293 (_dl_ppc64_addr_sym_match): Likewise.
12296 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12297 If symbol has a value use it.
12298 * elf/tst-dladdr1.c: New file.
12299 * elf/Makefile: Add rules to build and run tst-addr1.
12301 2006-08-24 Jakub Jelinek <jakub@redhat.com>
12303 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12304 keeps failing and heap growth or new heap creation isn't
12306 * malloc/tst-malloc.c (main): Add new tests.
12308 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12311 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12312 as in the x86-64 code to use bswap.
12314 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12317 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12319 * posix/bits/unistd.h: Likewise.
12321 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12324 * string/strchr.c: Add cast to avoid warning.
12326 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12328 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12329 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12330 limit is needed to avoid the exploding of the address space
12331 requirement for secondary heaps.
12332 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12333 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12335 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12338 * Makerules (depfiles): Handle extra-test-objs the same as
12340 (common-mostlyclean): Likewise.
12341 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12343 * elf/Makefile (extra-objs): Likewise.
12344 * stdlib/Makefile (extra-objs): Likewise.
12346 2006-08-14 Eric Blake <ebb9@byu.net>
12349 * misc/error.h: Assume C89 or better.
12350 * misc/error.c: Likewise.
12352 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12355 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12356 __ASSUME_ATFCTS is defined.
12358 2006-08-19 Ulrich Drepper <drepper@redhat.com>
12360 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12361 to sort in each call.
12363 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12364 is empty simply return and use next service.
12365 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12367 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12368 tells us when not finding a charmap file is an error.
12369 * locale/programs/charmap.h: Adjust charmap_read prototype.
12370 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12371 cannot find a charmap.
12372 * locale/programs/localedef.c (main): Adjust charmap_read call.
12374 2006-08-15 Jakub Jelinek <jakub@redhat.com>
12376 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12377 sysdeps/posix/pause.c implementation instead.
12379 2006-08-09 Jakub Jelinek <jakub@redhat.com>
12381 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12384 2006-08-13 Andreas Schwab <schwab@suse.de>
12386 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12387 Don't clobber caller's LRSAVE.
12388 (_dl_prof_resolve): Likewise.
12390 2006-08-14 Ulrich Drepper <drepper@redhat.com>
12393 * libio/memstream.c (open_memstream): Allocate initial buffer with
12395 * libio/wmemstream.c (open_wmemstream): Likewise.
12396 * libio/strops.c: Pretty printing.
12397 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12398 (enlarge_userbuf): New function.
12399 (_IO_str_seekoff): Call it if seek position is larger than current
12401 * libio/wstrops.c: Likewise.
12402 * libio/vasprintf.c: Add comment as to why we do not have to use
12403 calloc instead of malloc to allocate initial buffer.
12404 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12405 * libio/bug-memstream1.c: New file.
12406 * libio/bug-wmemstream1.c: New file.
12408 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12410 * libio/wstrops.c: Remove dead macro definitions and comments.
12411 * libio/strops.c: Likewise.
12414 * login/utmpname.c (__utmpname): Remove unnecessary test.
12416 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12419 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12422 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12425 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12427 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12428 setting of CPU clocks.
12430 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12433 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12434 since C99 requires the result to promote to 'int' when uint_least8_t
12435 and uint_least16_t promote to 'int'.
12437 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12440 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12441 lenght of one output field, correct bitmask creation.
12442 * locale/programs/ld-time.c: Add alignment.
12445 * misc/error.c: Add space between program name and message if file
12448 2006-08-03 Eric Blake <ebb9@byu.net>
12451 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12453 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12455 * malloc/memusagestat.c: Silence warnings.
12457 * malloc/malloc.c: Dynamically size mmap treshold if the program
12458 frees mmaped blocks.
12459 Patch by Valerie Henson and Arjan van de Ven.
12461 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12463 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12466 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12467 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12468 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12469 Only provide var definitions in strtol_l (or for *ull*
12472 * stdio-common/bug16.c (tests): New array.
12473 (do_tests): Allow the first hexadecimal digit
12474 to be 1, 2, 4 or 8. Do 3 additional tests.
12476 * sysdeps/s390/fpu/libm-test-ulps: Update.
12478 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12479 fchownat syscall if available.
12480 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12481 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12482 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12484 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12486 * nis/nis_xdr.c: Avoid some function calls.
12488 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12489 Ulrich Drepper <drepper@redhat.com>
12491 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12492 short cut if only one name component is stripped away.
12494 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12496 * nis/nis_call.c: Minor cleanups throughout.
12497 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12498 (first_shoot): Add search_parent_first parameter. Only if it is set
12499 search parent server first.
12500 If directory for table found through cold start cache is not the same
12501 as referenced in the cache, don't use it.
12502 (__nisfind_server): Take additional parameter. Pass it on to
12504 (__prepare_niscall): Adjust __nisfind_server call.
12505 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12506 * nis/nis_table.c: Adjust __nisfind_server call.
12507 * nis/nis_lookup.c: Likewise.
12508 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12510 2006-08-03 Ulrich Drepper <drepper@redhat.com>
12513 * math/s_cacosh.c: Return values from positive branch.
12514 * math/s_cacoshf.c: Likewise.
12515 * math/s_cacoshl.c: Likewise.
12518 * sysvipc/sys/msg.h: Change return value to ssize_t.
12519 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12520 * sysvipc/msgrcv.c: Likewise.
12521 * include/sys/msg.h: Likewise.
12523 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12524 test introduced in patch for bz #661.
12525 (getgrouplist): Simplify code a bit. Don't allocate one additional
12526 element for NEWGROUPS.
12529 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12530 'f', use '1' as leading digit not '\1'.
12531 * stdio-common/Makefile (tests): Add bug16.
12532 * stdio-common/bug16.c: New file.
12535 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12536 and don't try to open it. The patch introducing the macro
12537 contained a bug and used the same file name as the new file
12538 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12539 this out completely.
12542 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12543 Patch by Jerry James <Jerry.James@usu.edu>.
12545 * rt/Makefile (tests): Add tst-clock2.
12546 * rt/tst-clock2.c: New file.
12549 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12550 function and its parameters and pass it to new thread.
12551 (__gai_notify): Add support for alternative waiting for completion.
12552 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12553 waiting for completion.
12554 * resolv/getaddrinfo_a.c: Likewise.
12555 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12556 waiting for completion is used.
12557 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12558 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12559 * resolv/gai_error.c: Likewise.
12560 * resolv/gai_sigqueue.c: Likewise.
12562 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12564 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12565 errno to EBADF and return MACH_PORT_NULL.
12567 2006-06-23 Joseph Myers <joseph@codesourcery.com>
12570 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12572 2006-08-02 Ulrich Drepper <drepper@redhat.com>
12574 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12575 walk them instead of the symbol table.
12577 2006-08-01 Ulrich Drepper <drepper@redhat.com>
12580 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12581 status of NSS calls, not the number of returned entries.
12583 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12584 request_key, keyctl.
12586 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12588 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12590 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12592 * elf/tst-auditmod1.c: Fix typo in #error.
12594 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12596 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12598 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12600 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12602 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12603 that the directory is empty even on non-POSIX filesystems.
12605 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12607 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12609 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12610 the backend NSS module. If backend setgrent call failed, don't have
12611 internal_setgrent fail. Just remember this until it is needed.
12612 * nis/nss_compat/compat-pwd.c: Likewise.
12613 * nis/nss_compat/compat-spwd.c: Likewise.
12615 2006-07-30 Roland McGrath <roland@redhat.com>
12617 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12618 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12619 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12620 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12622 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12623 (nanosleep_not_cancel): New macro.
12624 (sigsuspend_not_cancel): new macro.
12625 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12626 (do_sigsuspend): Define as inline.
12627 (__sigsuspend): Always use do_sigsuspend.
12628 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12629 * include/signal.h: Declare __sigsuspend_nocancel.
12630 * sysdeps/posix/pause.c
12631 [! NO_CANCELLATION] (__pause_nocancel): New function.
12633 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12634 * include/time.h (__nanosleep_nocancel): Likewise.
12636 2006-07-30 Ulrich Drepper <drepper@redhat.com>
12638 * locale/programs/localedef.c (add_to_readlist): Rename local
12639 variables to avoid confusion.
12641 * locale/programs/charmap.c (charmap_read): Emit error message if
12642 charmap couldn't be found or read.
12644 2006-07-28 Ulrich Drepper <drepper@redhat.com>
12646 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12647 __ASSUME_FUTEX_LOCK_PI.
12648 * include/time.h: Declare __nanosleep_nocancel.
12649 * include/unistd.h: Declare __pause_nocancel.
12651 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12652 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12653 get the __stack_chk_fail_local definition when it's needed.
12655 2006-07-26 Ulrich Drepper <drepper@redhat.com>
12657 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12658 * dlfcn/bug-atexit3.c: New file.
12659 * dlfcn/bug-atexit3-lib.cc: New file.
12661 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12662 used when the namespace is not the base namespace.
12664 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
12666 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12667 (__new_exitfn): Bump it in every successful call.
12668 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12669 more exit handlers, call them right away.
12670 * stdlib/exit.h: Declare __new_exitfn_called.
12672 2006-07-25 Ulrich Drepper <drepper@redhat.com>
12674 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12675 calling registered handler.
12677 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12678 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12679 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12680 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12681 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12682 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12683 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12684 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12686 2006-07-10 Ulrich Drepper <drepper@redhat.com>
12688 * elf/dl-lookup.c (dl_new_hash): New functions.
12689 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12690 value here. Compute new-style hash value. Pass new hash value
12691 and reference to variable with the old value to do_lookup_x.
12692 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12693 old-style hash table.
12694 (_dl_debug_bindings): Pass new hash value and reference to variable
12695 with the old value to do_lookup_x.
12696 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12697 new-style hash value and change old-style hash value parameter to
12698 be a reference. Reoganize functions to determine whether
12699 new-style hash table is available. Only fall back on old-style
12700 table. If old-style hash value is needed, compute it here.
12701 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12703 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12704 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
12705 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12706 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12707 * Makeconfig: If linker supports --hash-style option add it to all
12708 linker command lines to build DSOs.
12709 * config.make.in: Define have-hash-style.
12710 * configure.in: Test whether linker supports --hash-style option.
12712 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12713 * sysdeps/generic/ldsodefs.h: Adjust prototype.
12715 2006-06-27 Ulrich Drepper <drepper@redhat.com>
12717 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12720 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12721 RPATH of main map twice.
12723 2006-06-22 Ulrich Drepper <drepper@redhat.com>
12725 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12726 look further, return original strings.
12727 (_nl_find_msg): Do not return found translation if the conversion
12728 failed. Either signal the string is unusable or that something went
12729 wrong and the original should be used.
12731 2006-06-21 Ulrich Drepper <drepper@redhat.com>
12733 * string/_strerror.c (__strerror_r): Add __builtin_expect.
12735 2006-06-14 Jakub Jelinek <jakub@redhat.com>
12738 * misc/insremque.c (insque): Handle prev == NULL.
12739 * misc/Makefile (tests): Add tst-insremque.
12740 * misc/tst-insremque.c: New test.
12742 2006-06-17 Ulrich Drepper <drepper@redhat.com>
12745 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12746 conflict with DL_DST_REQUIRED.
12748 2006-06-16 Ulrich Drepper <drepper@redhat.com>
12750 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12751 match what Solaris does.
12753 2006-06-04 Ulrich Drepper <drepper@redhat.com>
12755 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12756 local_setegid instead of seteuid and setegid.
12757 * sysdeps/generic/local-setxid.h: New file.
12758 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12760 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12762 * string/Makefile (tests): Add bug-envz1.
12763 * string/bug-envz1.c: New file.
12765 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12767 * posix/regex_internal.c (re_string_skip_chars): If no character has
12768 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
12769 to the byte which couldn't be converted.
12770 (re_string_reconstruct): Don't clear valid_raw_len before calling
12771 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12772 tip_context using re_string_context_at.
12773 * posix/Makefile: Add rules to build and run bug-regex25 test.
12774 * posix/bug-regex25.c: New test.
12776 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
12779 * string/envz.c (envz_strip): Correct erroneously reversed src
12780 and dest parameters to memmove() invocation.
12782 2006-05-30 Jakub Jelinek <jakub@redhat.com>
12784 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12785 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12786 to make sure the database has been already invalidated.
12787 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
12788 after the cache has been invalidated. Use pthread_mutex_lock rather
12789 than pthread_mutex_trylock if fd != -1.
12790 * nscd/connections.c (invalidate_cache): Add fd argument, write
12791 response to fd if not calling prune_cache, pass fd to prune_cache.
12792 (handle_request): Adjust invalidate_cache caller.
12793 (nscd_run): Pass -1 as fd to prune_cache.
12795 2006-05-30 Ulrich Drepper <drepper@redhat.com>
12797 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12800 2006-05-29 Ulrich Drepper <drepper@redhat.com>
12802 * nscd/nscd.h (struct database_dyn): Add prunelock field.
12803 * nscd/cache.c (prune_cache): Take prunelock before starting the
12804 work. Just return in case it is already taken.
12805 * nscd/connections.c (dbs): Initialize .prunelock.
12807 2006-05-25 Ulrich Drepper <drepper@redhat.com>
12809 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12810 copying. No need to allocate new array for group members. Just
12811 move the pointers and update the size.
12813 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12814 Avoid memory leak in case realloc fails. Simplification for
12815 better code generation.
12817 Avoid deprecation warning because of libc_hidden_proto for
12818 inet6_option_alloc.
12819 * inet/inet6_option.c (option_alloc): Renamed from
12820 inet6_option_alloc. Made static.
12821 (inet6_option_alloc): Now a simple wrapper around option_alloc.
12822 (inet6_option_append): Call option_alloc.
12823 * include/netinet/in.h: Remove libc_hidden_proto for
12824 inet6_option_alloc.
12826 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12827 for cleanup when cb!=NULL [Coverity CID 233].
12829 2006-05-24 Ulrich Drepper <drepper@redhat.com>
12832 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12833 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12834 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12835 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12836 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12837 and inet6_rth_getaddr.
12838 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12840 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12841 Mark inet6_option_* interfaces as deprecated.
12842 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12843 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12844 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12845 inet6_rth_segments, and inet6_rth_getaddr.
12846 * inet/inet6_opt.c: New file.
12847 * inet/inet6_rth.c: New file.
12849 * inet/netinet/icmp6.h: Pretty printing.
12852 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12854 2006-05-23 Ulrich Drepper <drepper@redhat.com>
12856 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12857 doing it all here. When server does not know the answer do not
12858 fail immediate, try parent first.
12860 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12863 2006-05-20 Ulrich Drepper <drepper@redhat.com>
12865 * nis/nis_call.c (__prepare_niscall): New function. Split out
12867 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12869 (__follow_path): New function. Split out from nis_list.
12870 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12872 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12874 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12876 * nis/Versions: Export __prepare_niscall, __create_ib_request,
12877 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12878 from libnsl for version GLIBC_PRIVATE.
12879 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12880 Remove entry parameter from _nss_nisplus_parse_pwent and
12881 _nss_nisplus_parse_grent.
12882 * nis/nss_nisplus/nisplus-parser.c: Likewise.
12883 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12884 again. Rewrite getpwent handling to not use nis_first_entry and
12885 nis_next_entry. Roll out own niscall handling.
12886 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12888 * sunrpc/xdr_rec.c: Fix typo in comment.
12890 2006-05-19 Ulrich Drepper <drepper@redhat.com>
12892 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12895 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12896 to allocate memory for my_pollfd. Better initialization of
12897 cb_is_running. Use TEMP_FAILURE_RETRY.
12899 * malloc/memusage.sh (memusageso): Add quotes.
12900 (memusagestat): Likewise.
12901 * debug/xtrace.sh (pcprofileso): Likewise.
12902 (pcprofiledump): Likewise.
12903 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12905 * malloc/Makefile ($(objpfx)memusage): Likewise.
12907 * nis/nis_callback.c (__nis_create_callback): Calls to
12908 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12909 asprintf call fails.
12911 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12912 no uninitialized memory is passed to sendto.
12914 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12916 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12917 of snprintf+strdup. Handle OOM.
12918 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12919 cb->serv together. Remove now obsolete free calls.
12920 (__nis_destroy_callback): Remove now obsolete free call.
12922 2006-05-18 David Woodhouse <dwmw2@redhat.com>
12924 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12925 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12926 and ULA respectively). Set precedence for IPv4 address to 10 as
12927 defined in RFC3484 for preferring IPv6.
12928 * posix/gai.conf: Update to match the new default tables.
12930 2006-05-18 Jakub Jelinek <jakub@redhat.com>
12932 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12933 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12934 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12935 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12937 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12939 (init_nss_interface): Remove initialization of these variables.
12941 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12943 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12944 nis_free_directory forward to avoid duplication.
12946 2006-05-17 Ulrich Drepper <drepper@redhat.com>
12948 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12949 rec_dirsearch returning NULL.
12950 (first_shoot): Handle __nis_finddirectory returning NULL.
12951 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12953 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12954 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12956 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12958 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12961 2006-05-15 Ulrich Drepper <drepper@redhat.com>
12963 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12965 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12966 * nscd/nscd_getgr_r.c: Likewise.
12968 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12970 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12971 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12973 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12975 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12977 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12979 * include/rpc/auth.h: Mark xdr_des_block_internal and
12980 xdr_opaque_auth_internal as hidden.
12982 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12985 * include/rpc/xdr.h: Mark all _internal functions as hidden.
12987 * misc/getusershell.c (okshells): Don't use static initializers,
12990 * stdlib/fmtmsg.c (keywords): Change type of len element to
12991 uint32_t to not waste space on 64bit machines.
12993 * locale/setlocale.c: Change _nl_category_names into a string.
12994 Add new _nl_category_name_idxs. Change all users.
12995 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12996 Declare _nl_category_name_idxs.
12997 * locale/findlocale.c: Adjust for _nl_category_names change.
12998 * locale/loadlocale.c: Likewise.
12999 * locale/newlocale.c: Likewise.
13000 * intl/dcigettext.c: Likewise.
13002 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13003 (add_alias2): ...here. New function.
13004 (__gconv_read_conf): Simplify builtin alias handling.
13005 (builtin_aliases): Convert to string to avoid relocations.
13006 * iconv/gconv_builtin.h: Add comment about correct formatting.
13008 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13010 * resolv/res_debug.c (loc_ntoa): Make error const.
13012 2006-05-14 Andreas Schwab <schwab@suse.de>
13014 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13016 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13018 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13019 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13020 sizeof (cpu_set_t).
13022 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13024 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13026 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13028 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13029 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13031 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13032 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13034 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13035 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13038 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13039 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13042 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13043 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13045 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13046 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13048 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13049 * include/rpcsvc/nis_callback.h: New file.
13051 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13052 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13054 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13055 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13057 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13058 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13060 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13061 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13063 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13064 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13067 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13068 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13070 * nis/nis_error.c: Remove table of strings. Use position
13071 independent mechanism.
13072 * nis/nis_error.h: New file.
13074 2006-05-11 Jakub Jelinek <jakub@redhat.com>
13076 * locale/programs/ld-time.c (time_finish): If wide era name or
13077 format aren't provided, set both wname and wformat to L"".
13079 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13081 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13082 results if the call was succesful.
13084 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13086 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13089 2006-05-10 Jakub Jelinek <jakub@redhat.com>
13091 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13093 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13095 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13096 caller makes sure this is not the case.
13097 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13099 2006-05-09 Ulrich Drepper <drepper@redhat.com>
13101 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13104 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13105 [Coverity CID 229, 230]
13107 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13109 (hol_help): Likewise. [Coverity CID 226, 227]
13111 * string/argz-replace.c (__argz_replace): Unconditionally call
13112 free on SRC. [Coverity CID 225]
13114 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13115 the return value of __nis_default_owner and __nis_default_group,
13116 it has been especially allocated. [Coverity CID 224]
13118 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13119 searchgroup and searchowner. Significantly simplified.
13120 (__nis_default_owner): Remove duplication. Do not locally copy the
13121 string before duplicating it.
13122 (__nis_default_group): Likewise.
13124 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13125 we must clear the variable before calling __nisfind_server.
13127 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13128 nis_getnames. [Coverity CID 223]
13130 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13131 xmalloc to allocate local repertoire name. [Coverity CID 222]
13133 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13134 allocate memory for the input to add_bytes. [Coverity CID 221]
13136 * posix/wordexp.c (w_addword): Free word if realloc fails and it
13137 was allocated here. [Coverity CID 219, 220]
13139 * posix/getconf.c (print_all): Free confstr data after printing.
13142 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13143 list allocation fails. [Coverity CID 215]
13145 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13148 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13149 string is NULL. [Coverity CID 212]
13150 * argp/Makefile: Add rules to build and run bug-argp1.
13151 * argp/bug-argp1.c: New file.
13153 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13155 * stdlib/canonicalize.c (__realpath): Likewise.
13157 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13158 pointer. [Coverity CID 206]
13160 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13161 in statically linked code.
13162 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13163 statically built code, be prepared to have no link map.
13166 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13167 dgettext calls. [Coverity CID 204]
13169 * argp/argp-help.c (struct uparams): Remove valid member. Change
13171 (uparam_names): Reduce size. Avoid relative relocations.
13172 Moved to read-only segment.
13173 (fill_in_uparams): Update for new layout.
13175 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13176 assumed to always be != NULL. [Coverity CID 202]
13178 * argp/argp-help.c (hol_entry_help): Remove some dead code
13179 [Coverity CID 200].
13181 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13182 away a few more unconditional yperr2nss calls.
13183 (_nss_nis_getservbyname_r): Likewise.
13185 2006-05-06 Ulrich Drepper <drepper@redhat.com>
13187 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13190 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13191 that unused memory passed to sendto is nevertheless initialized.
13194 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13195 possibly unaligned memory accesses.
13197 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13198 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13199 and __putlong respectively. Correct buffer overflow check for
13202 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13204 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13205 (send_dg): Rewrite error handling to be more compact and avoid
13206 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13208 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13210 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13211 instead of ns_get16.
13212 (res_queriesmatch): Likewise. Minor optimization.
13215 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13216 __libc_res_nsend might reallocate the buffer for the answer. In
13217 this case we have to reload the HP pointer.
13219 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13221 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13222 some branch prediction hints.
13224 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13225 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13226 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13227 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13228 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13229 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13230 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13231 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13233 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13235 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13236 by a GOT relocation to make Scrt1.o position independent.
13237 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13239 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13240 six system call parameters.
13241 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13243 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13245 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13248 * sunrpc/svc_udp.c (BZERO): Remove definition.
13250 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13252 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13253 (des_SPtrans): Use uint32_t type.
13254 (des_skb): Likewise.
13256 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13258 2006-05-05 Jakub Jelinek <jakub@redhat.com>
13261 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13264 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13266 * locale/programs/ld-address.c (address_finish): Fix one more
13267 place where the iso639 array might be accessed beyond the limits.
13269 2006-05-04 Ulrich Drepper <drepper@redhat.com>
13271 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13272 filling it for the first time.
13274 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13275 Adjust all callers.
13276 Free res object content before returning.
13278 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13280 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13283 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13284 cleanup for initial thread, just the free call on TVP.
13286 * nscd/gai.c (__getline): Define.
13289 See ChangeLog.16 for earlier changes.