1 2009-06-11 Ulrich Drepper <drepper@redhat.com>
3 * resolv/res_send.c (send_dg): Remember we switched to
6 2009-06-09 Ulrich Drepper <drepper@redhat.com>
8 * dlfcn/dlfcn.h: Remove comma at end of enum.
9 Patch by J.H.M. Dassen <rdassen@redhat.com>.
11 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
14 2009-06-03 Ulrich Drepper <drepper@redhat.com>
16 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
18 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
20 * configure.in: Move AC_CANONICAL_HOST before first use of $host
22 * configure: Regenerated.
24 2009-05-29 Jakub Jelinek <jakub@redhat.com>
26 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
27 (__expm1l): Set errno to ERANGE on overflow.
28 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
29 (__tanl): Set errno to EDOM for ±Inf.
30 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
31 (__cosl): Set errno to EDOM for ±Inf.
32 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
33 (__sinl): Set errno to EDOM for ±Inf.
35 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
37 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
38 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
40 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
42 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
45 * sysdeps/ia64/memchr.S: Use speculative load.
47 2009-05-21 Ulrich Drepper <drepper@redhat.com>
49 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
50 __ASSUME_ACCEPT4 for IA-64.
52 2009-05-21 Jakub Jelinek <jakub@redhat.com>
54 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
56 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
57 (SOCKOP_accept4): Define.
59 2009-05-18 Jakub Jelinek <jakub@redhat.com>
60 Ulrich Drepper <drepper@redhat.com>
62 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
63 (__nscd_cache_search): Assume each entry in the
64 hash chain needs one hashentry and half of datahead. Use
65 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
67 2009-05-16 Ulrich Drepper <drepper@redhat.com>
70 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
72 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
75 2009-05-15 Ulrich Drepper <drepper@redhat.com>
77 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
78 Use it if we absolutely cannot reach any more correct list elements
79 because that many do not fit into the currently mapped database.
81 2009-05-14 Jakub Jelinek <jakub@redhat.com>
83 * nscd/nscd_helper.c: Include stddef.h.
84 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
85 in a couple of places. Return NULL if trail is not less than
86 datasize, don't consider dataheads with length smaller than
87 offsetof (struct datahead, data) + datalen.
88 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
89 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
90 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
91 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
92 * nscd/nscd_getai.c (__nscd_getai): Likewise.
93 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
94 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
96 * nscd/selinux.c (nscd_avc_destroy): Removed.
97 * nscd/selinux.h (nscd_avc_destroy): Likewise.
98 * nscd/nscd.c (termination_handler): Don't call
101 2009-05-12 Jakub Jelinek <jakub@redhat.com>
103 * include/atomic.h: Formatting.
104 (catomic_compare_and_exchange_val_acq): Don't define if already
105 defined by bits/atomic.h.
107 2009-05-10 Ulrich Drepper <drepper@redhat.com>
109 * version.h (VERSION): Bump to 2.10.1.
111 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
112 compatibility functions.
113 * nss/getXXent_r.c: Likewise.
114 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
115 * gshadow/getsgnam_r.c: Likewise.
116 * gshadow/Version: Remove duplicate entries.
118 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
119 for recent processor.
120 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
123 2009-05-09 Ulrich Drepper <drepper@redhat.com>
125 * version.h (VERSION): Bump for 2.10 release.
126 * include/features.h (__GLIBC_MINOR__): Bump to 10.
128 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
129 same place we add ASFLAGS-config.
131 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
134 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
135 or FORMERR and the other NOERROR, don't raise an error.
137 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
140 * Makeconfig (+asflags): New variable based upon ASFLAG or
142 (ASFLAGS): Add override to set ASFLAGS to +asflags.
143 * config.make.in (asflags-cpu): Add variable based upon
144 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
147 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
148 recognizes power6 instruction set due to passing -mcpu=power6 from
149 --with-cpu=power6 when compiling .S files.
150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
157 2009-05-09 Jakub Jelinek <jakub@redhat.com>
159 * string/stratcliff.c (do_test): Test for zero length
160 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
161 at the end of the page.
163 2009-05-08 Ulrich Drepper <drepper@redhat.com>
165 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
167 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
170 * po/da.po: Update from translation team.
172 2009-05-05 Jakub Jelinek <jakub@redhat.com>
174 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
175 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
177 2009-05-05 Ulrich Drepper <drepper@redhat.com>
179 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
180 and READ_IMPLIES_EXEC.
182 2009-05-04 Ulrich Drepper <drepper@redhat.com>
184 * po/da.po: Update from translation team.
186 2009-04-29 Jakub Jelinek <jakub@redhat.com>
188 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
191 2009-04-27 Jakub Jelinek <jakub@redhat.com>
193 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
194 to MAP_ANON in PROT_NONE mmap64 call.
195 (open_archive): Likewise.
196 (file_data_available_p): Use mmap64 instead of mremap.
197 (enlarge_archive): Likewise. Update head if ah->addr changed.
198 Attempt to reserve address space after mmap64 region.
200 2009-04-26 Ulrich Drepper <drepper@redhat.com>
202 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
203 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
204 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
206 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
207 atanh should set ERANGE.
210 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
211 result of lookup to make call to implement STT_GNU_IFUNC.
212 (_dl_profile_fixup): Likewise.
213 Patch by H.J. Lu <hjl.tools@gmail.com>.
215 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
218 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
221 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
222 label if it is not used.
224 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
225 of gmon_hist_hdr and gmon_hdr structures and use them.
226 * elf/sprof.c: Likewise.
228 * elf/dl-load.c (open_verify): Add temporary variable to avoid
231 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
233 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
236 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
237 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
239 (iruserok_af): Use ss_family instead of casts.
241 * gmon/gmon.c (write_hist): Define real-type variant of
242 gmon_hist_hdr structure and use it.
243 (write_gmon): Likewise for gmon_hdr.
245 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
246 function if we are not going to define it.
247 * sysdeps/unix/sysv/linux/writev.c: Likewise.
249 * inet/inet6_option.c (option_alloc): Add temporary variable to
252 * libio/strfile.h (struct _IO_streambuf): Use correct type and
253 name of VTable element.
254 * libio/iovsprintf.c: Avoid casts to avoid warnings.
255 * libio/iovsscanf.c: Likewise.
256 * libio/vasprintf.c: Likewise.
257 * libio/vsnprintf.c: Likewise.
258 * stdio-common/isoc99_vsscanf.c: Likewise.
259 * stdlib/strfmon_l.c: Likewise.
260 * debug/vasprintf_chk.c: Likewise.
261 * debug/vsnprintf_chk.c: Likewise.
262 * debug/vsprintf_chk.c: Likewise.
264 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
267 2009-04-26 Jakub Jelinek <jakub@redhat.com>
269 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
271 2009-04-25 Ulrich Drepper <drepper@redhat.com>
273 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
275 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
276 * sysdeps/i386/fpu/s_tanf.S: Likewise.
277 * sysdeps/i386/fpu/s_tanl.S: Likewise.
278 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
279 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
280 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
281 * math/libm-test.inc: Add tests for errno after tan calls with
284 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
285 errno value vor pow(+-0,neg).
286 * math/libm-test.inc (pow_test): Add tests for errno value for
289 * math/w_fmod.c: Also handle x=±Inf as error.
290 * math/w_fmodf.c: Likewise.
291 * math/w_fmodl.c: Likewise.
292 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
295 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
296 * sysdeps/i386/fpu/s_cosf.S: Likewise.
297 * sysdeps/i386/fpu/s_cosl.S: Likewise.
298 * sysdeps/i386/fpu/s_sin.S: Likewise.
299 * sysdeps/i386/fpu/s_sinf.S: Likewise.
300 * sysdeps/i386/fpu/s_sinl.S: Likewise.
301 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
302 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
303 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
304 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
305 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
306 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
307 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
308 * math/libm-test.inc: Add tests for errno after sin/cos calls with
311 * stdlib/strtod_l.c (round_and_return): We have to set errno to
312 ERANGE for underflows.
313 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
315 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
318 * libio/tst-widetext.input: Remove surrogates.
320 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
322 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
323 for lgamma should set errno to ERANGE, not EDOM.
324 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
326 2009-04-24 Ulrich Drepper <drepper@redhat.com>
329 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
332 * locale/programs/locarchive.c (enlarge_archive): Conserve address
333 space when temporarily mapping the whole content of the old file.
336 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
339 2009-04-24 Jakub Jelinek <jakub@redhat.com>
341 * iconvdata/sjis.c (BODY): Don't advance inptr before
342 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
343 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
346 2009-04-24 Ulrich Drepper <drepper@redhat.com>
348 * locale/locarchive.h (struct locarhandle): Rename len field to
349 mmaped and add new reserved field.
350 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
351 (create_archive): Reserve address space and then map file into it.
352 (open_archive): Likewise.
353 (file_data_available_p): New function.
354 (compare_from_file): New function.
355 (close_archive): Adjust to member name changes.
356 (add_locale): Before comparing locale data, check it is mapped.
357 Otherwise fall back to reading from the file.
359 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
361 * stdio-common/psiginfo.c: Include <errno.h>.
363 2009-04-23 Ulrich Drepper <drepper@redhat.com>
366 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
367 to get consistency between 32 and 64 bit architectures.
370 * sysdeps/unix/make-syscalls.sh: Add rule to create target
371 directory for dummy syscall rules.
372 Patch by Chris Steinbroner <hesh@pobox.com>.
374 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
377 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
380 2009-04-23 Ulrich Drepper <drepper@redhat.com>
382 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
383 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
385 2009-04-23 Jakub Jelinek <jakub@redhat.com>
387 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
388 data from vector to temporary buffer and call PWRITEV after it
389 instead of vice versa.
390 * sysdeps/posix/preadv.c: Fix up comment.
391 * misc/preadv.c: Likewise.
392 * misc/preadv64.c: Likewise.
393 * misc/pwritev.c: Likewise.
394 * misc/pwritev64.c: Likewise.
395 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
397 2009-04-23 Ulrich Drepper <drepper@redhat.com>
399 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
401 * shadow/Makefile (tests): Add tst-shadow.
402 * shadow/tst-shadow.c: New file.
405 * gshadow/Makefile: New file.
406 * gshadow/Versions: New file.
407 * gshadow/fgetsgent.c: New file.
408 * gshadow/fgetsgent_r.c: New file.
409 * gshadow/getsgent.c: New file.
410 * gshadow/getsgent_r.c: New file.
411 * gshadow/getsgnam.c: New file.
412 * gshadow/getsgnam_r.c: New file.
413 * gshadow/gshadow.h: New file.
414 * gshadow/putsgent.c: New file.
415 * gshadow/sgetsgent.c: New file.
416 * gshadow/sgetsgent_r.c: New file.
417 * gshadow/tst-gshadow.c: New file.
418 * include/gshadow.h: New file.
419 * Makeconfig (all-subdirs): Add gshadow.
420 * Makefile (installed-headers): Add gshadow/gshadow.h.
421 * nss/Makefile (databases): Add sgrp.
422 * nss/Versions: Add gshadow functions as private exports.
423 * nss/nsswitch.conf: Add gshadow entry.
424 * nss/sgrp-lookup.c: New file.
425 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
426 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
427 * nss/nss_files/files-sgrp.c: New file.
428 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
429 * sysdeps/unix/sysv/linux/paths.h: Likewise.
431 2009-04-22 Ulrich Drepper <drepper@redhat.com>
433 * stdio-common/printf.h: Add missing const to register_printf_modifier.
434 * stdio-common/reg-modifier.c: Likewise.
436 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
438 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
441 2009-04-20 Ulrich Drepper <drepper@redhat.com>
444 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
445 headers up to 2.6.30.
447 * po/ca.po: Update from translation team.
449 2009-04-19 Ulrich Drepper <drepper@redhat.com>
452 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
453 an object that uses static TLS if the TLS modid is higher than the
454 reserve we always allocate. At least for multi-threaded code.
456 2009-04-18 Ulrich Drepper <drepper@redhat.com>
458 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
459 Numerically stable check for valid width.
461 * locale/programs/locarchive.c (open_archive): Map the entire file
462 and not just the administrative data.
463 (add_locale): When we find a hash sum match compare the content
466 * malloc/malloc.c (malloc_info): Output address space information.
468 2009-04-17 Ulrich Drepper <drepper@redhat.com>
470 * malloc/malloc.c (malloc_info): Also output system memory information.
472 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
473 architectures have preadv/pwritev in 2.6.30.
475 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
476 * sysdeps/posix/readv.c: Likewise.
477 Reported by Markus Armbruster <armbru@redhat.com>.
479 * malloc/hooks.c (top_check): Force hook value into register.
481 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
483 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
484 calls to _dl_relocate_object.
486 2009-04-16 Ulrich Drepper <drepper@redhat.com>
489 * malloc/malloc.c (force_reg): Define.
490 (sYSMALLOc): Load hook variable into variable
491 before test and force into register.
493 (public_mALLOc): Force hook value into register.
494 (public_fREe): Likewise.
495 (public_rEALLOc): Likewise.
496 (public_mEMALIGn): Likewise.
497 (public_vALLOc): Likewise.
498 (public_pVALLOc): Likewise.
499 (public_cALLOc): Likewise.
500 (__posix_memalign): Likewise.
501 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
502 before test and force into register.
503 * malloc/hooks.c (top_check): Likewise.
504 (public_sET_STATe): Pretty printing.
506 * resolv/res_send.c (send_dg): Don't just ignore the result we got
507 in case we only receive one reply in single-request mode.
509 2009-04-16 Jakub Jelinek <jakub@redhat.com>
511 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
512 are dlopened in statically linked program even for __LM_ID_CALLER.
514 2009-04-16 Ulrich Drepper <drepper@redhat.com>
516 * resolv/res_send.c (send_dg): Don't switch into single-request
517 mode if we already are in it.
519 2009-04-15 Ulrich Drepper <drepper@redhat.com>
521 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
522 are always at least 4 bytes in the returned line.
524 2009-04-15 Jakub Jelinek <jakub@redhat.com>
526 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
527 __libc_use_alloca (8192), if the stack is too small use 512 bytes
528 instead of 8K. Stop searching in /proc/stat after hitting first
529 line not starting with cpu.
530 (next_line): Truncate too long
531 lines at buffer size * 3/4 instead of pretending there were line
532 breaks inside of large lines.
534 2009-04-14 Ulrich Drepper <drepper@redhat.com>
536 * sysdeps/x86_64/mp_clz_tab.c: New file.
538 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
539 Ulrich Drepper <drepper@redhat.com>
541 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
542 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
543 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
545 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
547 * sysdeps/sh/libc-tls.c: New file.
549 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
551 2009-04-14 Roland McGrath <roland@redhat.com>
553 * elf/elf.h: Add various missing ARM constants, to match binutils.
555 2009-04-14 Ulrich Drepper <drepper@redhat.com>
557 Optimizations from GMP.
558 * sysdeps/x86_64/add_n.S: New file.
559 * sysdeps/x86_64/addmul_1.S: New file.
560 * sysdeps/x86_64/lshift.S: New file.
561 * sysdeps/x86_64/mul_1.S: New file.
562 * sysdeps/x86_64/rshift.S: New file.
563 * sysdeps/x86_64/sub_n.S: New file.
564 * sysdeps/x86_64/submul_1.S: New file.
566 2009-04-14 Jakub Jelinek <jakub@redhat.com>
568 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
569 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
570 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
571 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
573 2009-04-14 Ulrich Drepper <drepper@redhat.com>
575 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
578 2009-04-13 Ulrich Drepper <drepper@redhat.com>
580 * sysdeps/x86-64/strrchr.S: New file.
582 2009-04-10 Ulrich Drepper <drepper@redhat.com>
584 * stdio-common/printf.h (struct printf_info): Add user element.
585 New types printf_arginfo_size_function, printf_va_arg_function.
586 Declare register_printf_specifier, register_printf_modifier,
587 register_printf_type.
588 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
589 (union printf_arg): Add pa_user element.
590 Adjust __printf_arginfo_table type.
591 Add __printf_va_arg_table, __printf_modifier_table,
592 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
594 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
595 If registered arginfo call failed try normal specifier.
596 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
598 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
599 * stdio-common/Versions: Export register_printf_modifier,
600 register_printf_type, and register_printf_specifier for GLIBC_2.10.
601 * stdio-common/reg-modifier.c: New file.
602 * stdio-common/reg-type.c: New file.
603 * stdio-common/reg-printf.c (__register_printf_specifier): New
604 function. Mostly the old __register_printf_function function but
605 uses locking and type of third parameter changed.
606 (__register_printf_function): Implement using
607 __register_printf_specifier.
608 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
609 calls to arginfo functions. Allocate enough memory for user-defined
610 types. Call new va_arg functions to get user-defined types.
611 Try installed handlers even for existing format specifiers first.
613 2009-04-09 Ulrich Drepper <drepper@redhat.com>
615 * sysdeps/x86_64/rawmemchr.S: New file.
617 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
618 Simplified code and possible copy problem fixed.
620 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
621 function if it is not defined. Add some necessary casts.
622 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
624 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
625 have preadv/pwritev in 2.6.30.
627 2009-04-08 Ulrich Drepper <drepper@redhat.com>
629 * malloc/malloc.c (malloc_info): New function.
630 * malloc/malloc.h: Declare it.
631 * malloc/Versions: Export malloc_info for GLIBC_2.10.
633 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
636 * malloc/malloc.c (_int_realloc): Add parameter with old block
637 size. Remove duplicated test. Don't handle mmap'ed blocks here.
639 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
641 2009-04-07 Ulrich Drepper <drepper@redhat.com>
643 * sysdeps/x86_64/strchrnul.S: New file.
645 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
646 depending libcrypt on -lfreebl3.
648 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
649 preadv/pwritev in 2.6.30.
651 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
652 instead of __strcasecmp.
654 * string/stratcliff.c (do_test): Add memchr tests..
655 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
656 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
657 first read quad word.
659 2009-04-06 Ulrich Drepper <drepper@redhat.com>
661 * string/strverscmp.c (__strverscmp): Fix last cleanups.
662 * string/tst-svc.input: Add new test case.
663 * string/tst-svc.expect: Adjust.
664 * string/Makefile: Don't ignore tst-svc error.
666 * sysdeps/x86_64/memchr.S: New file.
668 * resolv/resolv.h (RES_SNGLKUP): Define.
669 * resolv/res_init.c (res_setoptions): Recognize single-request option.
670 * resolv/res_send.c (send_dg): If we sent two requests at once and
671 only get one reply before timeout switch to mode where we send the
672 second request only after the first answer has been received.
674 2009-04-05 Ulrich Drepper <drepper@redhat.com>
676 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
677 * sysdeps/x86_64/strchr.S: Likewise.
679 2009-04-03 Ulrich Drepper <drepper@redhat.com>
681 * configure.in: We need to test for the compiler earlier.
683 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
684 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
686 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
687 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
689 * misc/preadv.c: New file.
690 * misc/preadv64.c: New file.
691 * misc/pwritev.c: New file.
692 * misc/pwritev64.c: New file.
693 * sysdeps/posx/preadv.c: New file.
694 * sysdeps/posx/preadv64.c: New file.
695 * sysdeps/posx/pwritev.c: New file.
696 * sysdeps/posx/pwritev64.c: New file.
697 * sysdeps/unix/sysv/linux/preadv.c: New file.
698 * sysdeps/unix/sysv/linux/preadv64.c: New file.
699 * sysdeps/unix/sysv/linux/pwritev.c: New file.
700 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
701 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
702 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
704 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
706 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
708 * sysdeps/unix/sysv/linux/kernel-features.h: Define
709 __ASSUME_COMPLETE_READV_WRITEV.
710 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
712 * sysdeps/unix/sysv/linux/writev.c: Likewise.
714 * sysdeps/posix/readv.c: Since read is a cancellation point we have
715 to free a possible malloced buffer in case of cancellation.
716 * sysdeps/posix/writev.c: Likewise for write.
718 2009-04-02 Ulrich Drepper <drepper@redhat.com>
720 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
722 * configure.in: Recognize --enable-nss-crypt.
723 * config.make.in: Add nss-crypt entry.
724 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
725 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
726 and include path for NSS directory to compiler for md5-crypt,
727 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
728 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
729 function implementation, use NSS. Introduce wrappers around the
730 hash function calls. Little code size optimization.
731 * crypt/sha256-crypt.c: Likewise.
732 * crypt/sha512-crypt.c: Likewise.
733 * scripts/check-local-headers.sh: Ignore nss3 directory.
735 * configure.in: Rename pic_default to libc_cv_pic_default.
736 * config.make.in: Likewise.
738 2009-04-01 Roland McGrath <roland@redhat.com>
740 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
741 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
742 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
743 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
744 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
745 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
746 (R_SPARC_NUM): Update.
747 From Dave Miller <davem@davemloft.net>.
749 2009-04-01 Ulrich Drepper <drepper@redhat.com>
751 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
753 2009-03-31 Ulrich Drepper <drepper@redhat.com>
755 * elf/dl-open.c: Keep track of used name spaces and only iterate over
756 those which are used.
757 * elf/dl-addr.c: Likewise.
758 * elf/dl-caller.c: Likewise.
759 * elf/dl-fini.c: Likewise.
760 * elf/dl-iteratephdr.c: Likewise.
761 * elf/dl-libc.c: Likewise.
762 * elf/dl-load.c: Likewise.
763 * elf/dl-support.c: Likewise.
764 * elf/dl-sym.c: Likewise.
765 * elf/rtld.c: Likewise.
766 * sysdeps/generic/ldsodefs.h: Likewise.
768 * elf/dl-load.c: Remove support for systems without MAP_ANON.
769 * elf/dl-minimal.c: Likewise.
770 * elf/dl-misc.c: Likewise.
771 * elf/rtld.c: Likewise.
772 * sysdeps/generic/ldsodefs.h: Likewise.
774 2009-03-30 Ulrich Drepper <drepper@redhat.com>
776 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
777 Avoid reuse of complex expression.
779 * po/fr.po: Update from translation team.
781 2009-03-16 Ulrich Drepper <drepper@redhat.com>
783 * include/dirent.h: Yet more changes to match sort function type
785 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
786 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
787 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
789 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
791 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
793 2009-03-16 Ulrich Drepper <drepper@redhat.com>
795 * nscd/connections.c (restart): Try to preserve the process name
796 by reading the /proc/self/exe symlink and using the return name.
797 Patch by Jeff Bastian <jbastian@redhat.com>.
799 2009-03-15 Ulrich Drepper <drepper@redhat.com>
802 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
803 if we are not loading a new audit library.
804 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
805 Only use profiling trampoline for auditing if we are not relocating
807 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
808 * elf/rtld.c: Likewise.
809 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
811 * elf/rtld.c (dl_main): Extend help message for --audit option.
814 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
815 alphasort64, versionsort, and versionsort64 to POSIX 2008.
816 * dirent/alphasort.c: Adjust implementation to type change.
817 * dirent/alphasort64.c: Likewise.
818 * dirent/scandir.c: Likewise.
819 * dirent/versionsort.c: Likewise.
820 * dirent/versionsort64.c: Likewise.
821 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
823 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
827 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
828 correctly. Set segleft member in output as required.
829 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
830 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
833 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
834 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
835 * inet/Makefile (tests): Add tst-inet6_rth.
836 * inet/tst-inet6_rth.c: New file.
839 * string/strlen.c (strlen): Fix omission in the expression to test
842 2009-03-14 Ulrich Drepper <drepper@redhat.com>
844 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
846 * elf/dl-runtime.c (reloc_offset): Define.
847 (reloc_index): Define.
848 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
849 (_dl_fixup_profile): Likewise. Use reloc_index instead of
850 computing index from reloc_offset.
851 (_dl_call_pltexit): Likewise.
852 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
853 the relocation index to _dl_fixup.
854 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
856 * sysdeps/x86_64/dl-runtime.c: New file.
859 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
860 alignment of La_x86_64_regs. Store xmm parameters.
861 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
864 * string/strverscmp.c (__strverscmp): Fix case of different digits
865 in fractional part of string.
866 Patch by Jingyu Liu <jyliu@fortinet.com>.
867 * string/Makefile (tests): Add tst-svc2.
868 * string/tst-svc2.c: New file.
870 * string/strverscmp.c (__strverscmp): Optimize size of tables.
872 * locale/iso-639.def: Add Min Nan.
874 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
877 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
879 2009-03-14 Ulrich Drepper <drepper@redhat.com>
881 * elf/dl-sysdep.c (auxvars): Compress data structure.
883 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
884 STT_GNU_IFUNC handling.
885 (elf_machine_rela): Likewise.
887 2009-03-13 Ulrich Drepper <drepper@redhat.com>
889 * config.h.in (USE_MULTIARCH): Define.
890 * configure.in: Handle --enable-multi-arch.
891 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
892 (_dl_fixup_profile): Likewise.
893 * elf/do-lookup.c (dl_lookup_x): Likewise.
894 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
895 * elf/elf.h (STT_GNU_IFUNC): Define.
896 * include/libc-symbols.h (libc_ifunc): Define.
897 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
898 framework in init-arch.h to get CPUID values.
899 * sysdeps/x86_64/multiarch/Makefile: New file.
900 * sysdeps/x86_64/multiarch/init-arch.c: New file.
901 * sysdeps/x86_64/multiarch/init-arch.h: New file.
902 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
904 * config.make.in (experimental-malloc): Define.
905 * configure.in: Handle --enable-experimental-malloc.
906 * malloc/Makefile: Handle experimental-malloc flag.
907 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
908 * malloc/arena.c: Likewise.
909 * malloc/hooks.c: Likewise.
910 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
912 2009-03-11 Ulrich Drepper <drepper@redhat.com>
914 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
915 prediction. A few size optimizations.
917 2009-03-10 Ulrich Drepper <drepper@redhat.com>
919 * time/tzset.c: Optimize a bit for size.
921 2009-03-10 Jakub Jelinek <jakub@redhat.com>
923 * include/stdio.h (fmemopen): Add libc_hidden_proto.
924 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
926 * elf/sprof.c: Avoid warning about multi-line comment.
928 2009-03-10 Ulrich Drepper <drepper@redhat.com>
930 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
932 * time/tst-posixtz.c: Add tests for quoted timezone names.
934 2009-03-10 Jakub Jelinek <jakub@redhat.com>
936 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
937 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
938 200809L instead of 200112L.
939 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
940 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
942 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
943 instead of __quick_exit_funcs to __run_exit_handlers.
944 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
945 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
946 (__cxa_at_quick_exit): Remove attribute_hidden.
947 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
948 to __run_exit_handlers.
949 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
952 2009-03-10 Ulrich Drepper <drepper@redhat.com>
954 * po/id.po: Update from translation team.
956 2009-02-18 Jakub Jelinek <jakub@redhat.com>
958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
959 .machine push; .machine "power6" and .machine pop around mtfsf
960 insns outside of _ARCH_PWR6 define.
961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
966 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
967 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
968 relax_fenv_state): Likewise.
970 2009-03-08 Ulrich Drepper <drepper@redhat.com>
972 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
974 (static-only-routines): Add at_quick_exit.
975 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
977 * stdlib/quick_exit.c: New file.
978 * stdlib/at_quick_exit.c: New file.
979 * stdlib/cxa_at_quick_exit.c: New file.
980 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
982 (__internal_atexit): New function.
983 (__new_exitfn): Now takes parameter to point to the list to use.
984 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
985 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
986 (exit): ...here. Just call __run_exit_handlers appropriately.
987 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
988 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
989 * stdlib/on_exit.c: Adjust call to __new_exitfn.
990 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
992 * po/id.po: Update from translation team.
994 2009-03-07 Ulrich Drepper <drepper@redhat.com>
996 * po/ru.po: Update from translation team.
998 2009-03-04 Ulrich Drepper <drepper@redhat.com>
1000 * po/nl.po: Update from translation team.
1002 2009-03-03 Ulrich Drepper <drepper@redhat.com>
1004 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1005 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1006 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1007 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1008 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1009 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1010 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1012 * po/pl.po: Update from translation team.
1014 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1017 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1018 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1019 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1020 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1021 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1022 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1023 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1025 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1026 Add fallocate and fallocate64.
1028 * io/fcntl.h: Pretty printing.
1030 2009-03-02 Richard Guenther <rguenther@suse.de>
1032 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1033 attribute also for non-C99 inline semantics variant.
1035 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1037 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1038 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1039 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1040 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1046 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1048 * po/cs.po: Update from translation team.
1050 2009-02-28 Ulrich Drepper <drepper@redhat.com>
1052 * po/bg.po: Update from translation team.
1053 * po/sv.po: Likewise.
1054 * po/fi.po: Likewise.
1055 * po/vi.po: Likewise.
1057 2009-02-27 Roland McGrath <roland@redhat.com>
1059 * Makeconfig (%.v.i): Depend on Makeconfig.
1060 Exclude % lines from initial #-comment removal.
1062 2009-02-27 Ulrich Drepper <drepper@redhat.com>
1064 * po/ko.po: Update from translation team.
1066 2009-02-26 Roland McGrath <roland@redhat.com>
1068 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1069 avoids unused warning.
1071 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
1072 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1074 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1075 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1076 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1077 and asm/user.h. Include asm/ptrace.h.
1078 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1079 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1080 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1082 (start_thread): Don't undefine.
1083 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1086 2009-02-26 Ulrich Drepper <drepper@redhat.com>
1088 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1089 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1090 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1091 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1092 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1094 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1095 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1096 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1097 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1098 _SC_THREAD_ROBUST_PRIO_PROTECT.
1099 * posix/unistd.h: fexecve is in POSIX 2008.
1100 * time/time.h: strftime_l is in POSIX 2008.
1101 * io/sys/stat.h: futimens is in POSIX 2008.
1102 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1103 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1104 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1105 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1106 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1107 open_memstream, and vdprintf are in POSIX 2008.
1109 2009-02-25 Ulrich Drepper <drepper@redhat.com>
1111 * include/features.h: Define macros for XPG7/POSIX 2008.
1112 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1113 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1115 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1116 * locale/xlocale.h: Define locale_t type.
1117 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1118 in POSIX 2008. Don't define locale_t here.
1119 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1120 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1121 UTIME_OMIT only with __USE_ATFILE.
1122 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1123 * stdio-common/psiginfo.c: New file.
1124 * stdio-common/psiginfo-data.h: New file.
1125 * stdio-common/psiginfo-define.h: New file.
1126 * stdio-common/Makefile (routines): Add psiginfo.
1127 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1128 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1129 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1130 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1131 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1132 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1133 * io/sys/stat.h: Move mknodat definition into same conditional as
1135 * time/sys/time.h: futimesat is not among the functions accepted
1136 into the POSIX standard.
1138 * include/features.h: If no feature selection given and we select
1139 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1140 * posix/Versions: Export __posix_getopt.
1141 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1142 Use it to alternatively initialize __posixly_correct.
1143 (_getopt_internal_r): Take addition parameter. Pass on to
1145 (_getopt_internal): Take addition parameter. Pass on to
1147 (getopt): Pass additional zero to _getopt_internal.
1148 (__posix_getopt): New function.
1149 * posix/getopt.h: Add redirection for getopt.
1150 * posix/getopt1.c (getopt_long): Pass additional zero to
1152 (getopt_long_only): Likewise.
1153 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1154 (_getopt_long_only_r): Likewise.
1155 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1158 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1160 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1161 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1162 * sysdeps/posix/sysconf.c (__sysconf): Handle
1163 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1164 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1166 2009-02-24 Roland McGrath <roland@redhat.com>
1169 * README.template: Reworded not to use substituted version number.
1171 * README: ... here (no longer generated).
1172 * Makefile (README): Target removed.
1174 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1176 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1177 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1180 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1182 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1184 2009-02-22 Ulrich Drepper <drepper@redhat.com>
1186 * po/bg.po: Update from translation team.
1188 2009-02-16 Jakub Jelinek <jakub@redhat.com>
1190 * stdlib/monetary.h: Uglify function parameter names.
1191 * sunrpc/rpc/pmap_clnt.h: Likewise.
1192 * sunrpc/rpc/svc.h: Likewise.
1193 * sunrpc/rpc/xdr.h: Likewise.
1194 * sunrpc/rpc/clnt.h: Likewise.
1195 * resolv/netdb.h: Likewise.
1196 * resolv/arpa/nameser.h: Likewise.
1197 * resolv/resolv.h: Likewise.
1198 * argp/argp.h: Likewise.
1199 * locale/langinfo.h: Likewise.
1200 * io/sys/stat.h: Likewise.
1201 * posix/spawn.h: Likewise.
1202 * nis/rpcsvc/nislib.h: Likewise.
1203 * malloc/obstack.h: Likewise.
1204 * sysdeps/ia64/bits/link.h: Likewise.
1205 * sysdeps/i386/bits/link.h: Likewise.
1206 * sysdeps/s390/bits/link.h: Likewise.
1207 * sysdeps/powerpc/bits/link.h: Likewise.
1208 * sysdeps/x86_64/bits/link.h: Likewise.
1209 * sysdeps/sparc/bits/link.h: Likewise.
1210 * sysdeps/sh/bits/link.h: Likewise.
1211 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1212 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1213 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1214 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1216 2008-12-01 Fredrik Unger <fred@tree.se>
1218 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1219 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1220 _FP_UNPACK_RAW_2, fix up first argument.
1222 2009-02-15 Ulrich Drepper <drepper@redhat.com>
1224 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1225 (GET_NPROCS_PARSER): Change parameters and use next_line.
1226 (__get_nprocs): Rewrite to not use stdio routines.
1227 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1228 Change parameters and use next_line.
1230 2009-02-13 Ulrich Drepper <drepper@redhat.com>
1233 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1234 Change mempool_alloc prototype.
1235 * nscd/mem.c (gc): Don't handle mem_in_flight.
1236 (mempool_alloc): Third parameter now only indicates whether this is the
1237 first call (to allocate data) or not. If it is, get db rdlock.
1238 Release it on error. Don't handle mem_in_flight.
1239 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1240 Adjust third parameter of mempool_alloc calls.
1241 Nothing to do here in case mempool_alloc fails.
1242 Avoid local variable shadowing parameter. No need to get db rdlock
1243 before calling cache_add.
1244 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1245 no mem_in_flight array anymore.
1246 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1247 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1248 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1249 in case mempool_alloc fails. No need to get db rdlock before calling
1251 * nscd/hstcache.c (cache_addhst): Likewise.
1252 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1253 * nscd/servicescache.c (cache_addserv): Likewise.
1254 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1256 2009-02-11 Ulrich Drepper <drepper@redhat.com>
1258 * po/lt.po: Update from translation team.
1260 2009-02-10 Ulrich Drepper <drepper@redhat.com>
1262 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1263 defined, allow additional data to be added using the optional
1264 MORE_ELF_HEADER_DATA macro.
1265 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1266 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1268 2009-02-08 Ulrich Drepper <drepper@redhat.com>
1270 * include/atomic.h: Define catomic_and if not already defined.
1271 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1272 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1274 2009-02-07 Ulrich Drepper <drepper@redhat.com>
1276 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1278 (_int_realloc): Likewise. Third argument is now padded size
1279 All _int_* functions are now static.
1281 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1282 * malloc/arena.c: Likewise.
1283 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1286 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1289 * malloc/malloc.c: Add branch prediction for use of the hooks.
1291 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1293 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1296 * bits/confname.h: Add SUSv7 macros for getconf environments.
1297 * bits/environments.h: Likewise.
1298 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1299 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1300 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1301 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1302 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1303 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1304 * posix/getconf.c: Likewise.
1305 * posix/sysconf.c: Likewise.
1306 * sysdeps/posix/sysconf.c: Likewise.
1307 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1310 2009-01-16 Petr Baudis <pasky@suse.cz>
1313 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1314 even if we currently have zero nscount.
1316 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1319 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1320 the input line is too long.
1322 * po/Makefile (libc.pot): Add f_print as function taking c-format
1325 * debug/xtrace.sh: Unify translatable messages.
1326 * elf/ldd.bash.in: Likewise.
1327 * elf/sprof.c: Likewise.
1328 * locale/programs/locale.c: Likewise.
1329 * malloc/memusage.sh: Likewise.
1330 * nss/getent.c: Likewise.
1332 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1334 * debug/pcprofiledump.c (print_version,
1335 argp_program_version_hook): New function.
1336 * elf/ldconfig.c (more_help): New function.
1338 * elf/sln.c (usage): New function.
1339 (main): Support --help and --version.
1340 * malloc/memusagestat.c (print_version): New function.
1341 (argp_program_version_hook): New variable.
1342 * nscd/nscd.c (more_help): New function.
1344 * posix/getconf.c (main): Send --version output to stdout.
1346 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1347 arguments. All callers changed.
1348 (print_version): New function.
1349 (parseargs): Support --help and --version.
1350 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1352 (print_version): New function.
1353 (main): Use getopt_long. Support --help and --version.
1354 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1357 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1359 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1360 (update_data): Fix handling of wrapping back
1361 to the beginning of the buffer.
1364 * stdio-common/psignal.c (psignal): Fix test for empty string.
1366 2009-02-05 Ulrich Drepper <drepper@redhat.com>
1368 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1369 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1370 move _null_auth to .rodata.
1372 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1375 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1377 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1378 today than when the original code was written. Use larger
1379 buffers. This also makes it unnecessary to have stat information,
1380 if this causes extra efforts.
1381 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1384 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
1386 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1388 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1389 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1390 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1391 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1392 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1393 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1395 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1397 * po/ru.po: Update from translation team.
1399 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1401 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1402 Add _tid slot to maintain consistency with kernel.
1404 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1406 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1407 incomplete characters at end of input buffer.
1408 * libio/Makefile (tests): Add tst-fgetwc.
1409 * libio/tst-fgetwc.c: New file.
1410 * libio/tst-fgetwc.input: New file.
1412 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
1414 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1416 2009-02-02 Ulrich Drepper <drepper@redhat.com>
1419 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1420 *OUTBUFSTART unless the whole output fit into the buffer.
1421 * iconv/Makefile (tests): Add tst-iconv4.
1422 * iconv/tst-iconv4.c: New file.
1424 2009-02-01 Ulrich Drepper <drepper@redhat.com>
1426 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1427 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1429 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
1431 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1432 newer linker scripts.
1434 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1437 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1438 inotify_rm_watch should have type int.
1440 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1442 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1443 Make aligned_restore_vmx a local symbol.
1444 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1447 2009-01-30 Andreas Jaeger <aj@suse.de>
1449 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1450 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1451 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1452 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1453 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1454 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1455 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1457 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1460 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1461 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1463 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1466 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1467 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1469 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1471 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1473 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1474 memcpy instead of memcmp.
1475 (_dl_setup_pointer_guard): Likewise.
1477 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1479 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1480 manipulated brk, use malloc_printerr.
1481 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1484 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1486 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1487 rindex): For C++ add inlines so that they can be recognized as
1489 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1491 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1492 Jakub Jelinek <jakub@redhat.com>
1494 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1495 * wcsmbs/wchar.h: Likewise.
1497 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1499 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1500 (stackinfo_sub_sp): Define.
1502 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1505 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1506 * include/alloca.h (alloca_account): Define.
1507 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1508 (stackinfo_sub_sp): Define.
1510 * nscd/connections.c (nscd_init): If database file access fails
1511 check whether this is due to permission problems and bail in that
1515 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1516 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1518 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1520 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1521 Add "t" to clobber list.
1522 (INTERNAL_SYSCALL_NCS): Likewise.
1524 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1526 * nss/getent.c (print_networks): Don't print comma between aliases.
1528 2009-01-23 Ulrich Drepper <drepper@redhat.com>
1530 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1532 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1534 * misc/Makefile (tests): Add bug-hsearch1.
1535 * misc/bug-hsearch1.c: New file.
1537 2009-01-22 Roland McGrath <roland@redhat.com>
1539 * Makeconfig (%.v.i): Strip trailing # comments,
1540 not only whole-line comments.
1542 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1544 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1545 one parameter. If non-NULL use it to initialize return value.
1546 (_dl_setup_pointer_guard): New function.
1547 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1548 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1549 * elf/rtld.c (security_init): Pass _dl_random to
1550 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1552 * elf/dl-sysdep.c (_dl_random): New variable.
1553 (_dl_sysdep_start): Handle AT_RANDOM.
1554 (_dl_show_auxv): Likewise.
1555 * elf/dl-support.c (_dl_random): New variable.
1556 (_dl_aux_init): Handle AT_RANDOM.
1557 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1558 to _dl_setup_stack_chk_guard.
1560 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1562 2009-01-10 Roland McGrath <roland@redhat.com>
1564 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1566 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1568 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1571 * nss/nss_files/files-parse.c (strtou32): New function.
1572 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1573 across 32-bit and 64-bit platforms.
1574 (INT_FIELD_MAYBE_NULL): Likewise.
1576 2009-01-08 Jakub Jelinek <jakub@redhat.com>
1579 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1580 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1581 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1584 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
1587 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1588 being NULL also if there are no backreferences.
1589 * posix/rxspencer/tests: Add testcases.
1591 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
1594 * posix/bug-regex17.c: Add testcases.
1595 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1598 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1600 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1601 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1602 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1603 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1605 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1606 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1607 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1608 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1609 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1610 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1612 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
1614 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1615 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1616 re_string_skip_chars, re_string_reconstruct): Likewise.
1617 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1619 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
1621 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1622 adjust the buffer alignment.
1624 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1626 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1627 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1630 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1631 flavor to description only when flavor is not NULL.
1633 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1634 mutex after SIGIO/SIGURG lookup loop.
1636 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1638 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1640 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1642 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1645 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1647 * sysdeps/unix/sysv/linux/kernel-features.h
1648 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1650 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1651 if no output is written.
1653 * version.h: Bump to 2.10 development.
1655 * posix/getconf.c: Update copyright year.
1656 * nss/getent.c: Likewise.
1657 * iconv/iconvconfig.c: Likewise.
1658 * iconv/iconv_prog.c: Likewise.
1659 * elf/ldconfig.c: Likewise.
1660 * catgets/gencat.c: Likewise.
1661 * csu/version.c: Likewise.
1662 * elf/ldd.bash.in: Likewise.
1663 * elf/sprof.c (print_version): Likewise.
1664 * locale/programs/locale.c: Likewise.
1665 * locale/programs/localedef.c: Likewise.
1666 * nscd/nscd.c (print_version): Likewise.
1667 * debug/xtrace.sh: Likewise.
1668 * malloc/memusage.sh: Likewise.
1669 * malloc/mtrace.pl: Likewise.
1670 * debug/catchsegv.sh: Likewise.
1672 2008-12-29 Mike Frysinger <vapier@gentoo.org>
1674 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1677 2008-12-29 Ulrich Drepper <drepper@redhat.com>
1679 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1680 gethostbyname4_r function call succeeded, just leave the loop.
1683 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1685 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1686 * wctype/Makefile (tests): Add bug-wctypeh.
1687 * wctype/bug-wctypeh.c: New file.
1689 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1690 LOCALDOMAIN is defined.
1691 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1693 * sysdeps/x86_64/bits/select.h: New file.
1695 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1697 2008-12-21 Bruno Haible <bruno@clisp.org>
1700 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1701 if no output is written.
1703 2008-12-13 Klaus Dittrich <kladit@arcor.de>
1705 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1706 libc internal symbol __dup2 to avoid access through the PLT.
1708 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1711 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1712 available only for __USE_GNU.
1714 * inet/Makefile (tests): Add tst-getni2.
1715 * inet/tst-getni2.c: New file.
1718 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1719 NULL when NI_NAMEREQD is set.
1720 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1721 * inet/Makefile (tests): Add tst-getni1.
1722 * inet/tst-getni1.c: New file.
1724 2008-12-03 Petr Baudis <pasky@suse.cz>
1727 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1728 instead of prune_lock.
1729 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1730 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1732 2008-12-07 Ulrich Drepper <drepper@redhat.com>
1734 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1737 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1740 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1741 after reading name server list.
1744 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1745 handling for host name aliases.
1747 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1749 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1750 instead of doing things manually.
1752 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1754 * posix/regex_internal.h (build_wcs_upper_buffer):
1755 Return type is reg_error_t.
1757 2008-12-05 Ulrich Drepper <drepper@redhat.com>
1759 * posix/globtest.sh: Use mktemp to create temporary file and
1762 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1764 (__CPU_CLR_S): Likewise.
1765 (__CPU_ISSET_S): Likewise.
1767 2008-12-05 Joseph Myers <joseph@codesourcery.com>
1768 Ulrich Drepper <drepper@redhat.com>
1770 * scripts/firstversion.awk: Use custom comparison function to compare
1772 * scripts/versions.awk: Use sort invocation which can handle
1773 multi-digit sub-version numbers.
1775 2008-12-04 Ulrich Drepper <drepper@redhat.com>
1777 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1778 * locale/iso-639.def: Add Chhattisgarhi entry.
1780 2008-12-02 Ulrich Drepper <drepper@redhat.com>
1782 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1784 (_nss_dns_gethostbyname4_r): Likewise.
1785 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1786 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1787 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1788 the no_data variable.
1790 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1791 information at the correct index.
1793 * socket/sys/socket.h: Declare accept4.
1794 * socket/accept4.c: New file.
1795 * sysdeps/unix/sysv/linux/accept4.c: New file.
1796 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1797 * socket/Makefile (routines): Add accept4.
1798 * socket/Versions: Export accept4 with version GLIBC_2.10.
1799 * socket/paccept.c: Removed.
1800 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1801 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1802 * Versions.def: Define GLIBC_2.10 for libc.
1803 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1805 * nscd/connections.c: Use accept4.
1807 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1809 2008-12-01 Ulrich Drepper <drepper@redhat.com>
1811 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1814 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1816 * stdlib/Makefile (tests): Add tst-unsetenv1.
1817 * stdlib/tst-unsetenv1.c: New file.
1819 2008-11-29 Ulrich Drepper <drepper@redhat.com>
1821 * login/utmp_file.c (file_writable): New variable.
1822 (setutent_file): Don't try to open file for writing.
1823 (pututline_file): Before writing, make descriptor writable if
1826 2008-11-26 Ulrich Drepper <drepper@redhat.com>
1828 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1829 to IPv4 or IPv6 if an interface has been found.
1831 2008-11-26 Roland McGrath <roland@redhat.com>
1833 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1834 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1836 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1837 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1838 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1840 * elf/elf.h (NT_386_IOPERM): New macro.
1841 (NT_PPC_VSX): New macro.
1843 2008-11-25 Roland McGrath <roland@redhat.com>
1845 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1846 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1847 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1848 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1849 Subdirectories moved to ports repository.
1850 * configure.in (base_machine): Remove alpha case.
1852 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1854 * sysdeps/mach/strerror_l.c: New file.
1856 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1859 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1860 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1862 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1863 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1864 (relax_fenv_state): Same as above.
1865 (FPSCR_29): Reserve bit in ISA 2.05.
1866 (FPSCR_NI): Provide define for compat.
1867 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1869 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1871 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1872 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1873 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1874 access to hwcap to account for hwcap size increase to uint64_t.
1875 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1878 (*setcontext): Likewise.
1879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1884 (*setcontext): dynamically select mtfsf insn based on
1885 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1886 increase to uint64_t.
1887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1888 (*swapcontext): dynamically select mtfsf insn based on
1889 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1890 increase to uint64_t.
1891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1896 (*setcontext): dynamically select mtfsf insn based on
1897 PPC_FEATURE_HAS_DFP.
1898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1899 (*swapcontext): dynamically select mtfsf insn based on
1900 PPC_FEATURE_HAS_DFP.
1902 2008-11-13 Ulrich Drepper <drepper@redhat.com>
1904 * version.h: Bump for 2.9 release.
1905 * include/features.h (__GLIBC_MINOR__): Bump to 9.
1908 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1909 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1912 2008-11-11 Ulrich Drepper <drepper@redhat.com>
1915 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1916 unknown request types for now.
1918 2008-11-11 Roland McGrath <roland@redhat.com>
1920 * sysdeps/x86_64/configure: New file.
1922 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1923 * configure: Regenerated.
1925 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1927 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1928 correct instruction to remove the stack frame.
1930 2008-11-03 Michael Matz <matz@suse.de>
1932 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1933 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1935 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1937 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1940 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1941 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1942 of the thread variable instead of void *.
1943 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1944 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1945 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1946 __libc_tsd_define arguments.
1947 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1948 __libc_tsd_address arguments. Remove union hack.
1949 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1950 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1951 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1952 Adjust __libc_tsd_{set,get} arguments.
1953 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1954 __libc_tsd_define arguments.
1955 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1957 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1958 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1959 (LOCALE): Adjust __libc_tsd_define arguments.
1960 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1962 (LOCALE): Adjust __libc_tsd_define arguments.
1963 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1965 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1968 2008-11-02 Ulrich Drepper <drepper@redhat.com>
1970 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1971 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1973 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1976 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1978 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1979 Ulrich Drepper <drepper@redhat.com>
1981 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1982 definition for GCC 3.1 and later.
1984 2008-10-31 Jakub Jelinek <jakub@redhat.com>
1986 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1987 refetch dtv, as it might have changed.
1988 * elf/Makefile: Add rules to build and run tst-tls18.
1989 * elf/tst-tls18.c: New test.
1990 * elf/tst-tlsmod18a.c: New file.
1992 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
1995 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1997 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2000 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2003 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2004 Fix length of copy operation.
2006 2008-10-02 Pierre Habouzit <madcoder@debian.org>
2008 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2009 and fix its calling convention.
2011 2008-10-07 Andreas Schwab <schwab@suse.de>
2014 * resolv/res_send.c (send_vc): Fix last change.
2015 (send_dg): Align here as well.
2017 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2019 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2020 return value in case rlimit is RLIM_INFINITY.
2023 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2025 * resource/Makefile (tests): Add bug-ulimit1.
2026 * resource/bug-ulimit1.c: New file.
2029 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2030 without dot. Properly terminate the string with a null byte.
2031 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2034 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2036 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2040 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2042 2008-10-30 Ulrich Drepper <drepper@redhat.com>
2044 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2045 abort if there is no initgroups_dyn function.
2047 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2048 result if any of the queries really provided an answer.
2050 2008-10-28 Ulrich Drepper <drepper@redhat.com>
2052 * po/lt.po: Update from translation team.
2054 2008-10-26 Ulrich Drepper <drepper@redhat.com>
2056 * po/id.po: Update from translation team.
2058 2008-10-24 Ulrich Drepper <drepper@redhat.com>
2060 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2061 Fix tests for existence of second reply.
2063 2008-10-23 Ulrich Drepper <drepper@redhat.com>
2065 * po/id.po: New file.
2066 Contributed by the Indonesian translation team.
2068 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2070 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2073 2008-10-17 Jakub Jelinek <jakub@redhat.com>
2075 * elf/Makefile: Add rules to build and run tst-tls17.
2076 * elf/tst-tls17.c: New test.
2077 * elf/tst-tlsmod17a.c: New file.
2078 * elf/tst-tlsmod17b.c: Likewise.
2080 2008-10-17 Ulrich Drepper <drepper@redhat.com>
2082 * stdlib/divmod_1.c: Use correct type for dummy variable.
2083 * stdlib/mod_1.c: Likewise.
2085 2008-10-16 Ulrich Drepper <drepper@redhat.com>
2087 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2089 2008-10-16 Jakub Jelinek <jakub@redhat.com>
2091 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2092 __nonnull order for C++.
2093 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2094 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2096 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2098 * stdlib/longlong.h: Update from GCC.
2100 2008-10-09 Jakub Jelinek <jakub@redhat.com>
2101 David S. Miller <davem@davemloft.net>
2103 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2104 make sure any registers used with 64-bit 'branch-on-register'
2105 instructions have their top 32-bits clear.
2106 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2107 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2109 2008-09-18 Andreas Schwab <schwab@suse.de>
2112 * resolv/res_send.c (send_vc): Fix use of unaligned address.
2113 Properly handle partial reads.
2115 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2117 * elf/elf.h (STO_MIPS_PLT): New.
2119 (R_MIPS_JUMP_SLOT): New.
2120 (R_MIPS_NUM): Redefine to 128.
2121 (DT_MIPS_PLTGOT): New.
2122 (DT_MIPS_RWPLT): New.
2123 (DT_MIPS_NUM): Redefine to 0x35.
2125 2008-10-01 Ulrich Drepper <drepper@redhat.com>
2127 * timezone/africa: Update from tzdata2008f.
2128 * timezone/asia: Likewise.
2129 * timezone/australasia: Likewise.
2130 * timezone/europe: Likewise.
2131 * timezone/leapseconds: Likewise.
2132 * timezone/northamerica: Likewise.
2133 * timezone/southamerica: Likewise.
2134 * timezone/zone.tab: Likewise.
2136 2008-09-30 Ulrich Drepper <drepper@redhat.com>
2138 * nscd/connections.c: Disable use of paccept for now.
2140 2008-09-29 Ulrich Drepper <drepper@redhat.com>
2142 * socket/Versions: Remove paccept export for GLIBC_2.9.
2143 * socket/Makefile (routines): Remove paccept.
2144 * socket/sys/socket.h: Remove paccept declaration.
2146 * po/sv.po: Update from translation team.
2148 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2150 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2151 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2153 2008-09-16 Ulrich Drepper <drepper@redhat.com>
2155 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2156 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2158 2008-09-15 Ulrich Drepper <drepper@redhat.com>
2160 * sunrpc/rpc/svc.h: Declare svcfd_create.
2161 Patch by Michael Solberg <msolberg@redhat.com>.
2163 2008-09-12 Flavio Leitner <fleitner@redhat.com>
2164 Ulrich Drepper <drepper@redhat.com>
2166 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2168 (public_pVALLOc): Likewise.
2170 2008-09-02 Andreas Jaeger <aj@suse.de>
2172 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2175 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2178 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2180 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2182 * Makefile (check-data): Check data directory in add-ons.
2183 * elf/Makefile (check-data): Likewise.
2185 2008-08-18 Roland McGrath <roland@redhat.com>
2187 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2188 * configure: Regenerated.
2189 * config.make.in (cflags-cpu): New substituted variable.
2190 (with-cpu): Variable removed.
2191 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2193 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2196 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2197 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2198 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2199 redundant. Functions which call floating point assembler operations
2200 should go into a sysdeps powerpc/fpu directory.
2202 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2204 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2205 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2207 2008-08-14 Ulrich Drepper <drepper@redhat.com>
2209 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2211 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2212 change related to AT_EXECFN. We cannot use that string.
2213 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2215 * elf/dl-support.c: Remove _dl_execfn variable.
2216 (_dl_aux_init): Remove handling of AT_EXECFN.
2217 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2218 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2220 2008-08-13 Ulrich Drepper <drepper@redhat.com>
2223 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2224 byte gets added to writes and seeks from the end use the length of
2225 the buffer and not the currently terminating NUL byte.
2228 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2229 Set to true if locking failed.
2230 (getutid_r_file): Adjust caller.
2231 (pututline_file): Likewise. Return NULL in this case.
2232 Patch mostly by halesh.s@gmail.com.
2234 2008-08-12 Ulrich Drepper <drepper@redhat.com>
2237 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2239 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2241 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2244 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2245 macro since it is now available in elf/dynamic-link.h.
2247 2008-08-12 Roland McGrath <roland@frob.com>
2249 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2250 in case used outside of libc.
2251 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2253 2008-08-11 Ulrich Drepper <drepper@redhat.com>
2255 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2256 directly instead of going through dn_comp.
2258 2008-08-11 Aurelien Jarno <aurel32@debian.org>
2260 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2261 Fix asm constraints.
2263 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2266 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2267 (IPV6_PMTUDISC_PROBE): Likewise.
2269 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2272 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2274 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
2275 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2278 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2279 Added the members 'vsx' and 'arch_2_06'.
2280 (_dl_powerpc_platforms): Add the member 'power7'.
2281 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2282 to reflect the changes required by VSX and ISA 2.06.
2283 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2285 Defined PPC_PLATFORM_POWER7.
2286 (_dl_string_platform): Add support for POWER7.
2287 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2288 capability and ISA 2.06.
2290 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2293 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2294 macro to detect use of 128 bit long double.
2295 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2297 2008-08-05 Ulrich Drepper <drepper@redhat.com>
2299 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2302 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2304 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2305 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2307 2008-08-03 Ulrich Drepper <drepper@redhat.com>
2309 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2310 guaranteed to be large enough to read inotify event. Ignore
2311 EAGAIN error. Better error message. Add branch predicition.
2312 (main_loop_epoll): Likewise.
2314 2008-08-02 Roland McGrath <roland@frob.com>
2316 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2317 Add memory clobbers.
2319 2008-08-02 Ulrich Drepper <drepper@redhat.com>
2321 * manual/arith.texi: Avoid @strong{Note:}.
2322 * manual/creature.texi: Likewise.
2323 * manual/filesys.texi: Likewise.
2324 * manual/math.texi: Likewise.
2325 * manual/memory.texi: Likewise.
2326 * manual/resource.texi: Likewise.
2327 * manual/syslog.texi: Likewise.
2328 * manual/time.texi: Likewise.
2330 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2333 2008-08-01 Ulrich Drepper <drepper@redhat.com>
2335 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2336 new epoll_create1 interface.
2337 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2338 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2339 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2341 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2342 (NS_GET32): Likewise.
2344 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2347 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2348 use the AT_EXECFN value if it is no absolute path.
2349 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2352 * Versions.def: Add GLIBC_2.9 to libresolv.
2353 * include/resolv.h: Remove hidden proto declarations for __ns_*
2354 functions. Add them for __dn_count_labels and __p_secstodate.
2355 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2356 Define ns_msg_getflags macro here.
2357 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2359 * resolv/Versions: Export functions from <arpa/nameser.h> from
2360 libresolv in version GLIBC_2.9.
2361 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2363 * resolv/ns_netint.c: Likewise.
2364 * resolv/ns_parse.c: Likewise.
2365 * resolv/ns_print.c: Likewise.
2366 * resolv/ns_samedomain.c: Likewise.
2367 * resolv/ns_ttl.c: Likewise.
2368 * resolv/arpa/nameser_compat.h: Likewise.
2369 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2371 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2372 instead of ns_get16.
2373 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2374 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2375 (gaih_getanswer_slice): Likewise.
2376 * resolv/Makefile (libresolv-routines): Add ns_date.
2377 * resolv/ns_date.c: New file.
2379 * elf/Makefile (check-localplt.out): Also check libresolv and
2382 2008-07-31 Ulrich Drepper <drepper@redhat.com>
2384 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2387 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2389 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2390 buffer passed to NSS functions.
2392 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2394 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2397 * misc/syslog.c (openlog_internal): Fix compile problem.
2399 2008-07-28 Roland McGrath <roland@redhat.com>
2401 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2403 2008-07-28 Ulrich Drepper <drepper@redhat.com>
2405 * io/ftw.c (add_object): Remove inline to avoid warning.
2407 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2409 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2410 Use it instead of locally defined resplen2 variable.
2411 (res_nsend): Adjust for __libc_res_nsend interface change.
2412 (send_vc): Initialize *resplen2 if necessary. Read length of
2413 package into an appropriately aligned variable. Store converted length
2414 in new variable and use it appropriately.
2415 Add branch prediction help.
2416 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2417 and pass it on to __libc_res_nsend. Adjust all callers.
2418 (__libc_res_nsearch): Likewise.
2419 (__libc_res_nqeurydomain): Likewise.
2420 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2422 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2423 Define resplen2 variable and pass it to __libc_res_nsearch and then
2425 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2426 Add branch prediction.
2427 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2428 (gaih_getanswer): Don't decode second slice if first one failed due
2429 to a too small buffer. Don't let not found status of second
2430 decoder shadow results of the first.
2431 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2432 and __libc_res_nquery interface changes
2433 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2434 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2435 __libc_res_nsearch, and __libc_res_nsend.
2436 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2438 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2439 __libc_res_nsearch interface changes.
2441 2008-07-27 Ulrich Drepper <drepper@redhat.com>
2443 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2445 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2446 file descriptors with close-on-exec set.
2447 (exec_comm_child): Fix the case where the write end of the pipe is
2448 STDOUT_FILENO already. In case it is, clear close-on-exec.
2450 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2451 * io/pipe2.c: Likewise.
2452 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2453 instead of __ASSUME_PACCEPT.
2454 * include/unistd.h: Declare __have_pipe2.
2455 * libio/iopopen.c: Implement "e" flag.
2456 * libio/Makefile (tests): Add tst-popen1.
2457 * libio/tst-popen1.c: New file.
2459 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2460 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2462 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2465 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2466 success call of _IO_SEEKOFF or calls which failed because the
2467 descriptor is for a pipe.
2469 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2472 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2474 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2475 F_SETFD use if we know fopen set the flag.
2477 * login/utmp_file.c (setutent_file): Minor optimization in case
2478 O_CLOEXEC is available.
2480 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2482 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2483 * elf/Makefile: Use pie-ccflag variable.
2484 * nscd/Makefile: Likewise.
2485 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2487 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2490 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2491 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2492 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2493 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2494 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2495 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2496 utmp32, utmpx32 and login32.
2497 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2498 versions of struct utmp functions to libc and libutil.
2499 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2500 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2501 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2502 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2503 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2504 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2505 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2506 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2507 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2508 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2509 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2510 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2511 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2512 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2513 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2514 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2515 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2516 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2517 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2518 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2519 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2520 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2522 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2524 * scripts/gen-as-const.awk: Generate more widely usable code by
2525 using 64-bit arithmetic.
2527 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2528 the same treatment as narrow output code in last patch.
2530 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2533 * elf/dl-load.c (local_strdup): Remove inline.
2534 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2535 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2538 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2540 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2542 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2543 the new syscalls, too.
2545 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2546 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2549 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2550 parameter for end of buffer. If temporary copy is too large use
2552 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2554 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2555 string rewrite when allocating buffer.
2557 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2560 * nscd/connections.c (nscd_init): Clean up fcntl call.
2562 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2563 SOCK_NONBLOCK if possible.
2565 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2566 SOCK_CLOEXEC if available.
2568 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2569 __libc_clntudp_bufcreate_internal.
2570 * include/sys/socket.h: Declare __have_sock_cloexec.
2571 * socket/Makefile (aux): Add have_sock_cloexec.
2572 * socket/have_sock_cloexec.c: New file.
2573 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2574 __libc_clntudp_bufcreate.
2575 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2576 which takes an additional parameter. Create socket with non-blocking
2577 mode and close-on-exec flag set, if wanted.
2578 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2579 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2580 instead of clntudp_create. The socket has already the close-on-exec
2581 flag set if SOCK_CLOEXEC is defined.
2583 2008-07-24 Ulrich Drepper <drepper@redhat.com>
2585 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2586 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2588 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2589 non-blocking mode by using socket, paccept, and inotify_init1.
2591 * Versions.def (glibc): Add GLIBC_2.9.
2592 * io/Makefile (routines): Add dup3 and pipe2.
2593 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2594 * io/dup3.c: New file.
2595 * io/pipe2.c: New file.
2596 * posix/unistd.h: Declare dup3 and pipe2.
2597 * socket/Makefile (routines): Add paccept.
2598 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2599 * socket/paccept.c: New file.
2600 * socket/sys/socket.h: Declare paccept.
2601 * sysdeps/unix/syscalls.list: Add entry for dup3.
2602 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2603 epoll_create2 and inotify_init1.
2604 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2605 * sysdeps/unix/sysv/linux/paccept.c: New file.
2606 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2608 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2609 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2610 inotify_init1, and pipe2 entries.
2611 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2612 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2613 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2614 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2615 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2616 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2618 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2619 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2620 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2621 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2622 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2623 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2624 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2625 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2626 EPOLL_NONBLOCK. Declare epoll_create2.
2627 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2629 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2630 IN_NONBLOCK. Declare inotify_init1.
2631 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2633 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2636 * elf/elf.h: Define AT_EXECFN.
2637 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2639 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2640 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2641 if __ASSUME_AT_EXECFN is defined.
2642 (_dl_aux_init): Handle AT_EXECFN.
2643 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2645 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2646 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2647 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2648 _dl_execfn if available and avoid compatibility code if
2649 __ASSUME_AT_EXECFN is defined.
2651 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2652 _dl_discover_osversion only for older kernels.
2654 2008-07-22 Roland McGrath <roland@frob.com>
2656 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2658 2008-07-21 Roland McGrath <roland@frob.com>
2660 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2661 returned too much data out of line.
2663 2008-07-20 Ulrich Drepper <drepper@redhat.com>
2665 * locale/setlocale.c (setname): Remove inline to avoid compiler
2669 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2671 2008-07-15 Ulrich Drepper <drepper@redhat.com>
2673 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2674 doesn't manage to write anything, fail.
2676 * malloc/hooks.c (__malloc_check_init): Remove printf.
2678 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2680 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2682 2008-07-12 Ulrich Drepper <drepper@redhat.com>
2684 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2686 (main_loop_epoll): Likewise.
2688 2008-07-09 Ulrich Drepper <drepper@redhat.com>
2690 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2692 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2693 if DEBUG is defined.
2695 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2696 query. Adjust buffer size computation for padding.
2698 2008-07-08 Ulrich Drepper <drepper@redhat.com>
2700 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2701 * stdio-common/tst-setvbuf1.c: New file.
2702 * stdio-common/tst-setvbuf1.expect: New file.
2705 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2706 when selecting fully-buffered stream.
2707 Patch by Wang Xin <wxinee@gmail.com>.
2709 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2711 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2712 (__open_2): New function.
2713 (__open64_2): New alias to __open_2.
2714 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2715 (__openat_2): New function.
2716 (__openat64_2): New alias to __openat_2.
2718 2008-07-06 Ulrich Drepper <drepper@redhat.com>
2721 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2723 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2725 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2726 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2727 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2729 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2730 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2731 * sysdeps/mach/hurd/send.c (__send): Likewise.
2732 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2733 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2735 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2737 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2738 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2739 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2740 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2741 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2742 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2744 2008-06-27 Ulrich Drepper <drepper@redhat.com>
2747 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2749 Patch by Petr Baudis.
2751 2008-06-26 Ulrich Drepper <drepper@redhat.com>
2753 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2754 Patch by Peter Jones <pjones@redhat.com>.
2756 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2759 * stdlib/canonicalize.c (__realpath): readlink can write too much
2760 into the buffer on platforms without PATH_MAX.
2762 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2765 * posix/tst-regex.c (main): Rename to...
2766 (do_test): ... this. Remove cmdline option processing.
2768 (TEST_FUNCTION): Define.
2769 (CMDLINE_OPTIONS): Define.
2771 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2774 * configure.in: Add -Werror to -fstack-protector test to catch
2775 unsupported architectures.
2776 Patch by Gilles Esponasse <g.esp@free.fr>.
2778 2008-06-17 Joseph Myers <joseph@codesourcery.com>
2780 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2781 getcontext returns ENOSYS.
2783 2008-06-18 Ulrich Drepper <drepper@redhat.com>
2785 * nscd/connections.c (main_loop_poll): Fix test for read error.
2786 (main_loop_epoll): Likewise.
2788 2008-06-13 Ulrich Drepper <drepper@redhat.com>
2790 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2791 better place so it is not called when nscd is used.
2793 * nscd/connections.c: Also recognize and handle changes to the
2794 resolver configuration file.
2796 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2798 * time/strftime.c: Pass reference to tzset_called around to handle
2802 * time/strftime.c (__strftime_internal): Call tzset() only
2803 when printing timezone-dependent values.
2804 Based on a patch by Petr Baudis <pasky@suse.cz>.
2806 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2807 unconditionally use second gaih_getanswer_slice result.
2809 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2810 (getaddrinfo): RES must always be non-NULL.
2812 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2814 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2816 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2817 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2819 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2822 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2824 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2826 * nscd/connections.c (inotify_fd): New variable.
2827 (nscd_init): Try to open an inotify descriptor.
2828 If successful, watch files for databases using inotify instead of
2829 having prune threads stat the files.
2830 (nscd_run_prune): Recognize clear_cache flag being set and call
2831 prune_cache appropriately.
2832 (main_loop_poll): Add inotify descriptor to wait set and handle the
2834 (main_loop_epoll): Likewise.
2835 * nscd/cache.c (prune_cache): Don't stat files for databases if
2837 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2838 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2840 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2841 fixed-size portion of the record.
2842 * nscd/servicescache.c (cache_addserv): Likewise.
2843 * nscd/pwdcache.c (cache_addpw): Likewise.
2844 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2846 2008-06-11 Ulrich Drepper <drepper@redhat.com>
2848 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2849 out we don't use uninitialized memory.
2851 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2854 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2856 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2857 ignore T_DNAME messages.
2858 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2860 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2862 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2863 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2865 2008-06-03 Jakub Jelinek <jakub@redhat.com>
2867 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2868 instead of portstr to nscd_getserv_r. Patch by
2869 Roman Kagan <rkagan@mail.ru>.
2871 2008-05-26 Jim Meyering <meyering@redhat.com>
2873 Remove more useless "if" tests before "free".
2874 * include/inline-hashtab.h (htab_delete): Likewise.
2875 * libio/freopen.c (freopen): Likewise.
2876 * libio/freopen64.c (freopen64): Likewise.
2877 * locale/programs/ld-collate.c (collate_read): Likewise.
2878 * misc/fstab.c (libc_freeres_fn): Likewise.
2879 * posix/glob.c (globfree): Likewise.
2881 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2883 * string/Makefile (strop-tests): Add memmem.
2884 * string/test-memmem.c: New file.
2885 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2886 (test_init): Size buf1 according to BUF1PAGES.
2888 2008-05-24 Jakub Jelinek <jakub@redhat.com>
2890 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2891 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2892 (CFLAGS-scanf17.c): New.
2893 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2894 * stdio-common/scanf15.c (main): Likewise.
2895 * stdio-common/scanf16.c: New file.
2896 * stdio-common/scanf17.c: New file.
2898 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2900 * resolv/res_send.c (send_dg): If we already have one of two
2901 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2902 use the one answer insted of failing.
2904 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2906 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2907 being executed on PowerPC as the expected result exceeds IBM
2908 long double 128 __LDBL_MAX__.
2910 2008-05-21 Roland McGrath <roland@redhat.com>
2912 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2914 * Makefile (check-data): Use $(abi-name) before other guesses.
2915 Look in $(add-ons) dirs before scripts/data/.
2916 * elf/Makefile (check-data): Likewise.
2918 * scripts/soversions.awk: Grok ABI line.
2919 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2920 Emit definition for abi-name variable.
2922 2008-05-21 Ulrich Drepper <drepper@redhat.com>
2924 * string/endian.h: Define new fixed-size hto* and *toh macros only
2927 * iconvdata/Depend: Add localedata.
2929 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2931 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2933 2008-05-08 David S. Miller <davem@davemloft.net>
2935 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2937 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2938 (__SYSCALL_CLOBBERS): Remove %g* registers.
2939 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2940 (__SYSCALL_CLOBBERS): Likewise.
2941 * scripts/data/localplt-sparc-linux-gnu.data: New file.
2942 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2944 2008-05-21 Jakub Jelinek <jakub@redhat.com>
2946 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2947 (CALL_ERRNO_LOCATION): Define.
2948 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2949 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2950 (CALL_ERRNO_LOCATION): Define.
2951 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2952 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2953 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2955 2008-05-20 Ulrich Drepper <drepper@redhat.com>
2957 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2960 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2962 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2963 (FIRST_FRAME_POINTER): Define.
2965 2008-05-09 David S. Miller <davem@davemloft.net>
2967 * sysdeps/sparc/sparc64/backtrace.c: New file.
2969 2008-05-14 David S. Miller <davem@davemloft.net>
2971 * sysdeps/sparc/machine-gmon.h: New file.
2972 * sysdeps/sparc/sparc-mcount.S: Likewise.
2973 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2974 sysdep_routines in gmon directory.
2976 2008-05-19 Jakub Jelinek <jakub@redhat.com>
2978 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2980 2008-05-19 Ulrich Drepper <drepper@redhat.com>
2982 * resolv/res_query.c (__libc_res_nquery): In case one of two
2983 answer was too short don't try to read that answer's header.
2985 * resolv/res_send.c (send_dg): In case of timeout and there are
2986 two queries and one has been answered, return value indicating
2989 2008-05-18 Ulrich Drepper <drepper@redhat.com>
2991 * nscd/cache.c (cache_add): Take additional parameter specifying
2992 whether this is in response of a cache refill. Check alignment
2993 of package data. Revamp waking of pruning thread.
2994 (prune_cache): Small optimization.
2995 * nscd/nscd.h: Adjust cache_add prototypes.
2996 * nscd/aicache.c: Adjust cache_add calls.
2997 * nscd/grpcache.c: Likewise.
2998 * nscd/hstcache.c: Likewise.
2999 * nscd/initgrcache.c: Likewise.
3000 * nscd/pwdcache.c: Likewise.
3001 * nscd/servicescache.c: Likewise.
3002 * nscd/connections.c (restart): Really disable cache use before
3003 exec attempt. If it fails, reenable cache.
3004 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3005 time to max to be able to notice concurrent cache additions. Unlock
3006 prune_lock while performing gc. Afterwards compute wakeup time with
3007 current wakeup_time value in mind.
3009 2008-05-17 Ulrich Drepper <drepper@redhat.com>
3011 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3013 * nscd/mem.c (gc): Correctly determine highest used array element
3016 * nscd/mem.c (markrange): Add assert to check entries are all
3017 aligned. Small cleanup in bitmap use.
3019 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3020 blockoff of type nscd_ssize_t.
3021 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3022 (mempoll_alloc): Record block offset and not address.
3024 * nscd/mem.c (gc): Fix test for stack overuse.
3026 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3029 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3030 entry is available, believe it.
3032 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3033 no answers return NSS_STATUS_NOTFOUND.
3034 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3035 buffer does not have any content.
3037 2008-05-16 Ulrich Drepper <drepper@redhat.com>
3039 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3041 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3042 lookup, don't assign canon unconditionally.
3044 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3046 * string/Makefile (distribute): Add str-two-way.h.
3048 2008-03-29 Eric Blake <ebb9@byu.net>
3050 Rewrite string searches to O(n) rather than O(n^2).
3051 * string/str-two-way.h: New file. For linear fixed-allocation
3053 * string/memmem.c: New implementation.
3054 * string/strstr.c: New implementation.
3055 * string/strcasestr.c: New implementation.
3057 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
3059 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3061 (calc_first): Initialize constraint field.
3062 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3063 Use search_duplicated_node to avoid loops. Fix grammar.
3064 (duplicate_node): Merge constraint field for all node types.
3065 (calc_eclosure_iter): Look at constraint field for all node types.
3066 * posix/regex_internal.c (create_cd_newstate): Don't look at
3069 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3072 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3075 * string/endian.h: Add macros for fixed-size endian conversion.
3076 * bits/byteswap.h: Allow inclusion from <endian.h>.
3077 * sysdeps/i386/bits/byteswap.h: Likewise.
3078 * sysdeps/ia64/bits/byteswap.h: Likewise.
3079 * sysdeps/s390/bits/byteswap.h: Likewise.
3080 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3081 * string/Makefile (tests): Add tst-endian.
3082 * string/tst-endian.c: New file.
3084 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3085 Patch by Reuben Thomas.
3087 2008-05-14 Joseph Myers <joseph@codesourcery.com>
3089 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3091 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3093 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3096 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3098 (BODY for __gconv_transform_internal_ascii): Likewise.
3101 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3102 to be treated like link-local addresses.
3103 (match_prefix): Don't treat IPv4 loopback address special when
3104 converting to v4 mapped addressed.
3106 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3108 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3109 * posix/tst-rfc3484-2.c: Likewise.
3110 * posix/tst-rfc3484-3.c: Likewise.
3112 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3115 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3117 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3119 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3121 2008-05-13 Ulrich Drepper <drepper@redhat.com>
3123 * po/lt.po: New file. From Lituanian translation team.
3125 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
3127 Introduce TLS descriptors for i386 and x86_64.
3128 * include/inline-hashtab.h: New file, copied from 2005's
3129 libiberty, with fix for memory leak imported afterwards by
3130 Glauber de Oliveira Costa.
3131 * elf/tlsdeschtab.h: New file.
3132 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3133 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3134 (CHECK_STATIC_TLS): Move to...
3135 * elf/dynamic-link.h: ... this file.
3136 (TRY_STATIC_TLS): New macro.
3137 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3138 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3139 R_386_TLS_DESC): Define.
3140 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3142 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3143 R_X86_64_TLSDESC): Define.
3144 (R_386_NUM, R_X86_64_NUM): Adjust.
3145 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3146 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3147 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3148 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3149 release tlsdesc_table.
3150 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3151 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3152 (elf_machine_rel): Handle R_386_TLS_DESC.
3153 (elf_machine_rela): Likewise.
3154 (elf_machine_lazy_rel): Likewise.
3155 (elf_machine_lazy_rela): Likewise.
3156 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3157 * sysdeps/i386/dl-tlsdesc.S: New file.
3158 * sysdeps/i386/dl-tlsdesc.h: New file.
3159 * sysdeps/i386/tlsdesc.c: New file.
3160 * sysdeps/i386/tlsdesc.sym: New file.
3161 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3163 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3164 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3165 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3166 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3167 release tlsdesc_table.
3168 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3169 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3170 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3171 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3172 (elf_machine_rela): Likewise.
3173 (elf_machine_lazy_rel): Likewise.
3174 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3175 (__tls_get_addr): Do not declare for non-shared compiles.
3176 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3177 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3178 * sysdeps/x86_64/tlsdesc.c: New file.
3179 * sysdeps/x86_64/tlsdesc.sym: New file.
3180 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3181 tlsdesc_table for both 32- and 64-bit structs.
3183 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3185 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3186 its own function. This reduces the frame setup costs and more.
3188 2008-02-11 Joseph Myers <joseph@codesourcery.com>
3191 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3192 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3194 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3196 * io/openat.c (__openat_2): Also pass fd to __openat.
3197 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3198 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3200 * string/tester.c (test_memcmp): Add a few more tests.
3201 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3203 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3205 * nscd/cache.c (cache_add): Before returning with failure and this
3206 is the first use of the record, mark it as unusable.
3207 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3208 reporting a failure.
3209 * nscd/grpcache.c: Likewise
3210 * nscd/hstcache.c: Likewise.
3211 * nscd/initgrcache.c: Likewise.
3212 * nscd/pwdcache.c: Likewise.
3213 * nscd/servicescache.c: Likewise.
3215 2008-05-10 Roland McGrath <roland@redhat.com>
3218 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3220 2008-05-08 David S. Miller <davem@davemloft.net>
3222 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3224 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3225 (__ieee754_y0l): Likewise.
3226 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3227 (__ieee754_y1l): Likewise.
3228 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3229 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3230 frexpl and ldexpl. math_private.h provides them and the latter
3232 (__log1pl): Use __frexpl.
3234 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3236 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3238 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3239 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3240 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3241 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3243 (_nss_nis_gethostbyname4_r): New function.
3244 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3245 Change to also handle af==AF_UNSPEC.
3246 (get_tablename): New function. Use it to avoid duplication.
3247 (_nss_nisplus_gethostbyname4_r): New function.
3248 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3250 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3251 * nss/nss.h: Define struct gaih_addrtuple.
3252 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3254 (_nss_files_gethostbyname4_r): New function.
3255 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3256 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3258 * resolv/res_query.c (__libc_res_nquery): Take two additional
3259 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3260 look up IPv4 and IPv6.
3262 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3263 for an additional query and answer buffer. Pass to send_vc and
3265 (send_vc): Send possibly two requests and receive two answers.
3266 (send_dg): Likewise.
3267 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3269 (_nss_dns_gethostbyname4_r): New function.
3270 (gaih_getanswer_slice): Likewise.
3271 (gaih_getanswer): Likewise.
3272 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3273 __libc_res_nquery call.
3274 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3275 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3276 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3279 2008-05-05 David S. Miller <davem@davemloft.net>
3281 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3282 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3284 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3286 Fix termios bit macros.
3287 Move *DLY definitions where they belong, in termios.h.
3288 Add *[0-3] definitions.
3289 Fixes confusion between VT and FF.
3290 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3291 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3292 are already defined to avoid collision with termios.h.
3293 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3294 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3295 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3296 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3297 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3298 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3299 VTDLY, VT0, VT1): New macros.
3300 [__USE_GNU] (OLCUC): Change value of macro.
3301 [__USE_XOPEN] (OFILL): New macro.
3302 [__USE_BSD] (CRTSCTS): Change value.
3303 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3304 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3305 (B7200, B14400, B28800, B76800): New macros.
3307 2008-05-01 David S. Miller <davem@davemloft.net>
3309 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3310 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3311 (gen-as-const-headers): Add it.
3312 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3313 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3314 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3315 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3317 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3318 six system call parameters.
3319 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3321 2008-04-30 Ulrich Drepper <drepper@redhat.com>
3323 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3325 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3326 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3328 2008-04-30 Jakub Jelinek <jakub@redhat.com>
3330 * stdlib/tst-setcontext.c: Include unistd.h.
3332 2008-04-25 David S. Miller <davem@davemloft.net>
3334 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3335 Pass "union semun" properly in to sys_ipc, it must be passed
3336 by value, not by reference.
3338 2008-04-22 Jakub Jelinek <jakub@redhat.com>
3340 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3341 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3342 * nscd/connections.c (mem_in_flight): Likewise.
3344 * nscd/nscd.h (dbs): Make hidden.
3346 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3347 Avoid returning -1, return 0 instead.
3349 2008-04-19 Ulrich Drepper <drepper@redhat.com>
3351 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3353 2008-04-15 Ulrich Drepper <drepper@redhat.com>
3356 * sysdeps/unix/sysv/linux/times.c: New file.
3359 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3360 mem_in_flight_list variables. Add new parameter to mempool_alloc
3362 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3363 appropriate mem_in_flight element.
3364 (gc): Take allocations which have not yet been committed to the
3365 database into account.
3366 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3367 Reset mem_in_flight before returning.
3368 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3369 cue it up in mem_in_flight_list.
3370 * nscd/aicache.c: Adjust mempool_alloc call.
3371 * nscd/grpcache.c: Likewise.
3372 * nscd/hstcache.c: Likewise.
3373 * nscd/initgrcache.c: Likewise.
3374 * nscd/pwdcache.c: Likewise.
3375 * nscd/servicescache.c: Likewise.
3376 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3379 * nscd/connections.c (handle_request): Provide better error message
3380 in case SELinux forbids the service.
3382 * version.h (VERSION): Bump to 2.8.90.
3384 2008-04-17 Jakub Jelinek <jakub@redhat.com>
3386 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3388 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3390 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3391 Also use for 32-bit.
3392 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3393 __nextafter instead of nextafter to avoid local PLT.
3394 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3395 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3397 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3399 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3401 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3402 <fenv_libc.h> instead of <fenv.h>.
3403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3406 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3408 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3409 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3410 function from fegetexcept and make old name weak alias.
3411 * include/fenv.h: Declare __fegetexcept.
3412 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3414 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3415 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3417 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3418 instead of frexpl to avoid local PLT.
3419 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3420 ilogbl to avoid local PLT.
3421 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3422 instead of ldexpl to avoid local PLT.
3423 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3424 __roundl not roundl to avoid local PLT.
3425 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3426 local PLTs. Use __sincosl instead of separate sinl and cosl
3428 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3430 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3431 version for ppc64 to 2.4.21 since without it makecontext will fail.
3433 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3435 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3437 [__powerpc64__] (TLS_GD): Likewise.
3439 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3442 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3443 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3445 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3446 Likewise. Also account for when x is an odd number between 2^52
3448 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3449 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3450 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3451 detect aforementioned erroneous conditions.
3453 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3455 * configure.in: Check for -fno-section-anchors in addition to
3456 -fno-toplevel-reorder.
3458 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3460 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3462 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3463 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3464 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3465 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3466 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3467 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3469 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3472 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3473 * time/alt_digit.c: Likewise.
3474 * wcsmbs/wcsmbsload.c: Likewise.
3476 2008-04-10 Ulrich Drepper <drepper@redhat.com>
3478 * version.h (VERSION): Bump to 2.8.
3480 * timzeone/asia: Update from tzdata2008b.
3481 * timezone/backward: Likewise.
3482 * timezone/europe: Likewise.
3483 * timezone/northamerica: Likewise.
3484 * timezone/southamerica: Likewise.
3485 * timezone/iso3166.tab: Likewise.
3486 * timezone/leapseconds: Likewise.
3487 * timezone/zone.tab: Likewise.
3488 * timezone/private.h: Update from tzcode2008a.
3489 * timezone/zdump.c: Likewise.
3490 * timezone/zic.c: Likewise.
3492 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3495 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3496 Define additonal Data Cache Block instruction macros.
3497 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3498 Replace dcbst with dcbf and sync with sync/isync.
3500 2008-02-21 Alan Modra <amodra@bigpond.net.au>
3502 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3503 Always set ELF_RTYPE_CLASS_PLT.
3504 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3506 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3508 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3509 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3510 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3511 For ISA 2.01 and later replace mftb with mfspr 268.
3513 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3516 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3517 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3519 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3522 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3523 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3524 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3525 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3527 2008-04-10 Jakub Jelinek <jakub@redhat.com>
3529 * stdlib/tst-makecontext.c (othervar): New variable.
3530 (cf): Test sign extending the argument to long.
3532 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3534 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3535 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3536 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3537 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3538 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3539 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3540 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3542 2008-02-22 Alan Modra <amodra@bigpond.net.au>
3544 * elf/Makefile (tests): Substitute tests-vis-yes here.
3545 (tests-vis-yes): Delete.
3546 (modules-name, modules-vis-yes): Similarly.
3548 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3551 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3552 Preserve sign in signgamp when x is zero.
3554 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3556 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3557 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3558 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3559 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3560 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3561 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3563 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3566 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3570 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3571 a reserved error value.
3573 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3574 value to check for correct sign extension.
3577 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3578 Copy 64-bit parameter values even though this is not required in
3581 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3584 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3586 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3589 2008-04-09 Jakub Jelinek <jakub@redhat.com>
3591 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3593 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3596 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3597 in line-buffered stream failed.
3598 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3600 2008-04-08 Ulrich Drepper <drepper@redhat.com>
3603 * scripts/abi-versions.awk: If the version specified by
3604 --enable-oldest-abi is older than the first version for this
3605 architecture, use the default version.
3607 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3608 as well when ignoring the whole category.
3610 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3613 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3614 ETHERTYPE_* definitions.
3615 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3617 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3619 * stdlib/mbtowc.c (__no_r_state): Remove.
3620 (mbtowc): New static state variable. Use it instead of
3622 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3623 (__wctomb_state): New hidden variable.
3624 (wctomb): Use __wctomb_state instead of __no_r_state.
3625 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3626 (__wctomb_state): New extern decl.
3627 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3629 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3632 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3634 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3636 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3638 2008-04-06 Ulrich Drepper <drepper@redhat.com>
3640 * po/nl.po: Update from translation team.
3642 2008-03-31 Ulrich Drepper <drepper@redhat.com>
3645 * string/strfry.c: Handle empty strings again.
3647 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3650 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3651 before looking for translation.
3652 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3653 * locale/freelocale.c: Likewise.
3654 * locale/newlocale.c: Likewise.
3655 * locale/setlocale.c: Likewise.
3656 Based partially on a patch by ryo@np.css.fujitsu.com.
3658 2008-03-30 Jakub Jelinek <jakub@redhat.com>
3660 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3661 acquiring wrlock. Do conv_tab allocation while holding lock.
3662 * intl/Makefile: Add rules to build and run tst-gettext6.
3663 * intl/tst-gettext6.c: New test.
3664 * intl/tst-gettext6.sh: New file.
3666 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3668 * po/nl.po: Update from translation team.
3670 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3671 provided through st_blksize, try the default size before giving up.
3673 2008-03-29 Ulrich Drepper <drepper@redhat.com>
3675 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3678 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3680 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3681 error message. POSIX today does not require the messages to be in
3682 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3685 * sunrpc/auth_unix.c: Unify printed strings.
3686 * sunrpc/clnt_tcp.c: Likewise.
3687 * sunrpc/clnt_udp.c: Likewise.
3688 * sunrpc/clnt_unix.c: Likewise.
3689 * sunrpc/svc_tcp.c: Likewise.
3690 * sunrpc/svc_udp.c: Likewise.
3691 * sunrpc/svc_unix.c: Likewise.
3692 * sunrpc/xdr.c: Likewise.
3693 * sunrpc/xdr_array.c: Likewise.
3694 * sunrpc/xdr_rec.c: Likewise.
3695 * sunrpc/xdr_ref.c: Likewise.
3696 * locale/programs/ld-time.c (time_finish): Unify messages.
3697 * locale/programs/locfile.c (handle_copy): Fix typo.
3698 * nscd/nscd.c (options): Fix typo.
3701 * stdlib/strtod_l.c: Use correct sign for result in one more
3703 Patch by Eric Blake <ebb9@byu.net>.
3705 2008-03-27 Jakub Jelinek <jakub@redhat.com>
3707 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3708 and creat system calls.
3709 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3711 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3714 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3715 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3717 2008-03-27 Ulrich Drepper <drepper@redhat.com>
3719 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3720 <linux/limits.h> has defined it.
3721 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3722 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3724 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3725 it instead of ARG_MAX.
3727 2008-03-25 Jakub Jelinek <jakub@redhat.com>
3729 * posix/gai.conf: Fix comment for scope nullbits.
3730 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3731 default to 128 bits for v4 mapped addresses.
3733 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3735 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3736 ptrace call to get the ieee_instruction_pointer from the kernel.
3737 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3738 ptrace call to set the ieee_instructtion_pointer.
3739 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3740 Add comment that ieee_instruction_pointer is always 0.
3742 2008-03-09 Andreas Jaeger <aj@suse.de>
3745 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3746 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3747 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3749 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3750 (rint_test): Likewise.
3752 2008-03-24 Ulrich Drepper <drepper@redhat.com>
3754 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3756 (__nisfind_server): Similar for open readColdStartFile call.
3757 Patch partially by Jim Meyering.
3758 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3759 around internal_setent call.
3761 * po/vi.po: New Vietnamese translation.
3763 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3766 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3767 remove CLONE_STOPPED.
3769 2008-02-10 Jim Meyering <meyering@redhat.com>
3771 Remove useless "if" before "free":
3772 * elf/ldconfig.c (parse_conf_include): Likewise.
3773 * gmon/gmon.c (weak_alias): Likewise.
3774 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3775 * inet/rcmd.c (__validuser2_sa): Likewise.
3776 * intl/bindtextdom.c (set_binding_values): Likewise.
3777 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3778 * libio/genops.c (save_for_backup): Likewise.
3779 * libio/wgenops.c (save_for_wbackup): Likewise.
3780 * locale/programs/ld-collate.c (collate_read): Likewise.
3781 * locale/programs/linereader.c (get_string): Likewise.
3782 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3783 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3784 * resolv/res_debug.c (do_section): Likewise.
3785 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3786 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3787 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3788 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3789 * time/tzset.c (tzset_internal): Likewise.
3791 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3793 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3796 2008-03-11 Ulrich Drepper <drepper@redhat.com>
3799 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3800 not stream for output file. Open output file here.
3801 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3802 and output file name.
3803 (process_fd): Likewise.
3804 (process_file): Likewise.
3805 (main): Adjust callers of changed functions.
3806 * iconv/iconv_prog.h: Adjust prototype.
3808 2008-03-09 Andreas Jaeger <aj@suse.de>
3811 * sysdeps/ia64/ieee754.h: Use protected namespace
3812 __BIG_ENDIAN/__LITTLE_ENDIAN.
3813 * sysdeps/ieee754/ieee754.h: Likewise.
3814 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3816 2008-03-08 Roland McGrath <roland@frob.com>
3818 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3819 ignore a signal that came from a machine exception, treat it as a
3820 fatal core-dump signal instead.
3821 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3823 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3824 Clear DF bit in thread state's eflags.
3825 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3827 2008-03-08 Ulrich Drepper <drepper@redhat.com>
3830 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3831 of NAN(...) sequence.
3832 * stdlib/Makefile (tests): Add tst-strtod6.
3833 * stdlib/tst-strtod6.c: New file.
3835 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3838 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3839 putting offending option character in quotes. Clean up error
3841 * po/be.po: Adjust msgstr in translation file.
3842 * po/bg.po: Likewise.
3843 * po/ca.po: Likewise.
3844 * po/cs.po: Likewise.
3845 * po/da.po: Likewise.
3846 * po/de.po: Likewise.
3847 * po/es.po: Likewise.
3848 * po/fr.po: Likewise.
3849 * po/hr.po: Likewise.
3850 * po/ko.po: Likewise.
3851 * po/nl.po: Likewise.
3852 * po/rw.po: Likewise.
3853 * po/sk.po: Likewise.
3854 * po/sv.po: Likewise.
3855 * po/tr.po: Likewise.
3856 * po/zh_CN.po: Likewise.
3857 * po/zh_TW.po: Likewise.
3860 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3861 Patch by Roland Bless <roland@bless.de>.
3863 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3865 * elf/Makefile (routines): Add dl-sysdep.
3866 (elide-routines.os): Likewise.
3868 2008-03-07 Ulrich Drepper <drepper@redhat.com>
3871 * elf/dl-sysdep.c: Undefine ROUND after use.
3872 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3873 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3874 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3875 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3877 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3878 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3880 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3882 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3883 _dl_tls_get_addr_soft element.
3884 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3885 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3886 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3888 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3889 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3890 of internal_function.
3892 * stdlib/Makefile (aux): Add tens_in_limb.
3893 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3894 * stdlib/tens_in_limb.c: ...here. New file.
3897 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3898 __statfs_chown_restricted.
3899 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3900 for _PC_CHOWN_RESTRICTED.
3901 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3902 Implement __statfs_chown_restricted.
3903 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3904 _POSIX_CHOWN_RESTRICTED value to zero.
3905 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3908 * sysdeps/x86_64/rtld-memset.c: New file.
3910 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
3912 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3914 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3915 Barcelona machine. Make default fall through branch of
3916 __x86_64_preferred_memory_instruction check as the integer code path.
3918 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3920 * sysdeps/x86_64/cacheinfo.c
3921 (__x86_64_preferred_memory_instruction): New variable.
3922 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3924 * sysdeps/x86_64/memset.S: Rewrite.
3926 2008-03-04 Jakub Jelinek <jakub@redhat.com>
3928 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3929 __obstack_printf_chk): New prototypes.
3930 (__vasprintf_chk, __vdprintf_chk,
3931 __obstack_vprintf_chk): Likewise.
3932 Add libc_hidden_proto.
3934 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3935 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3936 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3937 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3938 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3939 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3940 __obstack_vprintf_chk): New prototypes.
3941 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3942 obstack_vprintf): New inlines.
3943 * debug/dprintf_chk.c: New file.
3944 * debug/vdprintf_chk.c: New file.
3945 * debug/asprintf_chk.c: New file.
3946 * debug/vasprintf_chk.c: New file.
3947 * debug/obprintf_chk.c: New file.
3948 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3949 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3950 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3952 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3953 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3954 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3955 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3957 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3958 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3959 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3960 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3961 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3963 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3964 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3965 obstack_vprintf_chk.
3966 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3967 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3968 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3969 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3970 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3971 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3973 2008-03-04 Ulrich Drepper <drepper@redhat.com>
3976 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3977 Patch by Roy Marples <roy@marples.name>.
3980 * malloc/malloc.c: Fix typo in comment.
3983 * locale/iso-639.def: Add Shuswap.
3985 2008-02-25 Jakub Jelinek <jakub@redhat.com>
3988 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3989 overwrite *h_errnop/*errnop values from getanswer_r in case of
3992 2008-03-03 Ulrich Drepper <drepper@redhat.com>
3995 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3996 (verify_persistent_db): Remove one unnecessary test and add a new one
3997 for bad configuration.
3998 (nscd_init): Improve error reported when persistent database cannot
4000 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4001 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4002 .suggested_module and .max_db_size and case config file says the
4004 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4007 * nis/ypclnt.c (yp_order): Fix handling of return value of
4009 Patch by Jeff Moyer <jmoyer@redhat.com>.
4011 * po/fr.po: Update from translation team.
4013 2008-02-22 Andreas Jaeger <aj@suse.de>,
4014 Carlos O'Donell <carlos@systemhalted.org>
4017 * FAQ.in: Describe why glibc needs to be compiled with
4020 2008-02-19 Roland McGrath <roland@redhat.com>
4022 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4024 2008-02-15 Ulrich Drepper <drepper@redhat.com>
4027 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4028 __USE_MISC is defined.
4030 2008-02-10 Ulrich Drepper <drepper@redhat.com>
4032 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4033 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4035 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4036 timerfd_gettime, timerfd_settime.
4037 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4038 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4040 2008-02-08 Roland McGrath <roland@redhat.com>
4042 * elf/elf.h (NT_PPC_SPE): New macro.
4044 2008-02-06 Roland McGrath <roland@redhat.com>
4046 * Makerules ($(common-objpfx)sysd-rules):
4047 Depend on $(sysdep-makeconfigs).
4049 2008-01-31 Roland McGrath <roland@redhat.com>
4052 * configure.in: Use -print-file-name if it yields a directory,
4053 for each of include and include-fixed.
4054 * configure: Regenerated.
4056 * Makeconfig (sysd-rules-targets): New variable.
4057 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4058 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4060 2008-01-30 Roland McGrath <roland@redhat.com>
4062 * manual/libc.texinfo: Update back-cover text.
4064 * elf/elf.h (NT_386_TLS): New macro.
4066 2008-01-29 Roland McGrath <roland@redhat.com>
4068 * Makeconfig (sysd-rules-patterns): New variable.
4069 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4070 (check-inhibit-asm): New canned sequence, replaces ...
4071 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4072 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4073 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4074 (CFLAGS-rtld): Variable removed.
4076 2008-01-24 Roland McGrath <roland@redhat.com>
4078 * configure.in: Let configure fragments set base_os.
4079 * configure: Regenerated.
4081 2008-01-22 Ulrich Drepper <drepper@redhat.com>
4083 * po/ko.po: Update from translation team.
4085 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4087 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4089 2008-01-12 Andreas Jaeger <aj@suse.de>
4092 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4095 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4097 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4098 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4099 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4101 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
4103 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4104 * elf/dl-close.c (_dl_close): Check for it.
4105 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4106 (_dl_allocate_static_tls): Likewise.
4107 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4108 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4110 * elf/tst-tls16.c: New file.
4111 * elf/tst-tlsmod16a.c: New file.
4112 * elf/tst-tlsmod16b.c: New file.
4113 * elf/Makefile: Add rules to build and run tst-tls16.
4115 2008-01-16 Ulrich Drepper <drepper@redhat.com>
4118 * bits/shm.h: Fix comment describing shmid_ds.
4119 * sysdeps/gnu/bits/shm.h: Likewise.
4120 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4121 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4122 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4123 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4124 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4125 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4126 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4127 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4128 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4131 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4133 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4134 additional suffixes.
4135 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4136 Add optional functions mq_timedreceive and mq_timedsend.
4137 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4138 * conform/data/pthread.h-data: Fix prototype of
4139 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4140 * conform/data/semaphore.h-data: Allow time.h definitions.
4141 * conform/data/signal.h-data: Likewise.
4142 * conform/data/stdio.h-data: getw and putw are not required in v6.
4143 * conform/data/stdlib.h-data: Change setstate prototype.
4144 * conform/data/string.h-data: Fix strerror_r prototype.
4145 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4146 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4147 Fix readlink prototype.
4148 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4150 * inet/netinet/in.h: Cleanup namespace.
4151 * posix/regex.h: Likewise.
4152 * resolv/netdb.h: Likewise.
4153 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4154 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4155 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4156 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4157 of names of in in6_addr.
4158 (default_precedence): Likewise.
4159 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4162 2008-01-15 Ulrich Drepper <drepper@redhat.com>
4164 * conform/data/fmtmsg.h-data: Add missing allows.
4165 * conform/data/ftw.h-data: Likewise.
4166 * conform/data/inttypes.h-data: Likewise.
4167 * conform/data/math.h-data: Likewise.
4168 * conform/data/signal.h-data: Likewise.
4169 * conform/data/net/if.h-data: Likewise.
4170 * conform/data/netinet/in.h-data: Likewise.
4171 * conform/data/sys/socket.h-data: Likewise.
4174 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4175 (__strtok_r): Simplify.
4176 * string/tester.c (test_strtok_r): Add test case for futile search
4177 with single-character seach string.
4179 2008-01-12 Ulrich Drepper <drepper@redhat.com>
4181 * po/ko.po: Update from translation team.
4183 2008-01-11 Andreas Jaeger <aj@suse.de>
4186 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4187 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4190 2008-01-10 Ulrich Drepper <drepper@redhat.com>
4192 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4193 native interface lookup in all the relevant places.
4195 2008-01-10 Jakub Jelinek <jakub@redhat.com>
4196 Ulrich Drepper <drepper@redhat.com>
4198 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4199 field. Use sockaddr_in6 for source_addr.
4200 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4201 (match_prefix): Likewise.
4202 (get_label): Likewise.
4203 (get_precedence): Likewise.
4204 (rfc3484_sort): Change to use indirect access to results array.
4205 Adjust to use of sockaddr_in6. Replace service_order test with
4206 simple index comparison.
4207 (getaddrinfo): Define order array. Initialize it. Don't initialize
4208 service_order field. Adjust qsort_t calls. Access sorted result
4209 array indirectly through order array.
4210 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4211 * posix/tst-rfc3484-2.c: Likewise.
4212 * posix/tst-rfc3484-3.c: Likewise.
4214 2008-01-09 Ulrich Drepper <drepper@redhat.com>
4217 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4219 Patch by André Cruz.
4222 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4223 (clnt_spcreateerror): Likewise.
4226 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4227 (public_mEMALIGn): Likewise.
4228 Patch mostly by Daniel Jacobowitz.
4230 2008-01-09 Jakub Jelinek <jakub@redhat.com>
4232 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4233 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4234 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4235 * stdlib/tst-makecontext2.c: New test.
4237 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4239 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4241 (REINIT_PARAMS): Likewise. Undefine before end of file.
4242 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4243 transliteration hooks and REINIT_PARAMS afterwards.
4244 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4246 (REINIT_PARAMS): Define.
4247 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4248 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4249 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4250 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4251 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4252 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4253 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4254 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4255 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4256 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4257 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4258 * iconvdata/tst-iconv7.c: New test.
4260 2008-01-07 Ulrich Drepper <drepper@redhat.com>
4262 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4264 2008-01-05 Jakub Jelinek <jakub@redhat.com>
4267 * nscd/connections.c (restart): Fix condition.
4269 2008-01-03 Jakub Jelinek <jakub@redhat.com>
4271 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4272 __ctype_toupper_loc): Add __THROW.
4274 2008-01-02 Ulrich Drepper <drepper@redhat.com>
4276 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4277 recognition of interface family.
4279 * posix/getconf.c: Update copyright year.
4280 * nss/getent.c: Likewise.
4281 * iconv/iconvconfig.c: Likewise.
4282 * iconv/iconv_prog.c: Likewise.
4283 * elf/ldconfig.c: Likewise.
4284 * catgets/gencat.c: Likewise.
4285 * csu/version.c: Likewise.
4286 * elf/ldd.bash.in: Likewise.
4287 * elf/sprof.c (print_version): Likewise.
4288 * locale/programs/locale.c: Likewise.
4289 * locale/programs/localedef.c: Likewise.
4290 * nscd/nscd.c (print_version): Likewise.
4291 * debug/xtrace.sh: Likewise.
4292 * malloc/memusage.sh: Likewise.
4293 * malloc/mtrace.pl: Likewise.
4294 * debug/catchsegv.sh: Likewise.
4296 2007-12-26 Ulrich Drepper <drepper@redhat.com>
4298 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4301 2007-12-23 Ulrich Drepper <drepper@redhat.com>
4303 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4304 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4306 2007-12-17 Roland McGrath <roland@redhat.com>
4308 * inet/ether_line.c (ether_line): Remove unused variable.
4310 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4312 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4314 * login/openpty.c (openpty): Likewise.
4315 * login/pty.h (openpty, forkpty): Likewise.
4316 * manual/terminal.texi (openpty, forkpty): Likewise.
4318 2007-12-17 Ulrich Drepper <drepper@redhat.com>
4320 * malloc/malloc.c (public_cALLOc): For arenas other than
4321 main_arena, count all bytes inside the mprotect_size range of the
4322 heap as uninitialized.
4324 2007-12-16 Ulrich Drepper <drepper@redhat.com>
4326 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4329 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4330 mTRIm for all of them.
4331 (mTRIm): Additionally iterate over all free blocks and use madvise
4332 to free memory for all those blocks which contain at least one
4334 * malloc/tst-trim1.c: New file.
4335 * malloc/Makefile (tests): Add tst-trim1.
4337 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4339 2007-12-14 Ulrich Drepper <drepper@redhat.com>
4341 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4342 First cast argument to long
4343 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4345 (__vdso_clock_gettime): Likewise.
4346 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4349 2007-12-13 Ulrich Drepper <drepper@redhat.com>
4351 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4352 * locale/nl_langinfo_l.c: Real implementation, copied from
4354 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4356 2007-12-01 Jim Meyering <meyering@redhat.com>
4358 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4359 that would inhibit utf8-optimization of a regexp containing line-
4360 or buffer-anchors, e.g., `^', `$'.
4362 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4364 * time/bug-getdate1.c (do_test): Don't use century values which
4365 aren't valid on 32-bit systems.
4367 2007-12-12 Jakub Jelinek <jakub@redhat.com>
4369 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4370 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4371 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4372 __strcat_g, __strncat_g): Add __asm__.
4374 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4377 * io/fchmodat.c: Fix typo in stub_warning use.
4378 Patch by Petr Salinger.
4380 2007-12-11 Ulrich Drepper <drepper@redhat.com>
4382 * iconvdata/hp-thai8.c: New file.
4383 * iconvdata/Makefile: Add rules for hp-thai8.c.
4384 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4385 * iconvdata/gconv-modules: Likewise.
4388 * iconvdata/hp-greek8.c: New file.
4389 * iconvdata/Makefile: Add rules for hp-greek8.c.
4390 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4391 * iconvdata/gconv-modules: Likewise.
4394 * iconvdata/hp-turkish8.c: New file.
4395 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4396 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4397 * iconvdata/gconv-modules: Likewise.
4399 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4400 (shrink_heap): ... this new function.
4401 (heap_trim): Call shrink_heap instead of grow_heap.
4403 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4404 case don't call alloc_perturb.
4406 2007-12-10 Ulrich Drepper <drepper@redhat.com>
4408 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4410 * sysdeps/unix/sysv/linux/kernel-features.h
4411 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4412 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4414 2007-12-08 Ulrich Drepper <drepper@redhat.com>
4417 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4418 * stdio-common/Makefile (tests): Add bug22.
4419 * stdio-common/bug22.c: New file.
4422 * time/getdate.c: Fix filling in default values.
4423 * time/bug-getdate1.c: New file.
4424 * time/Makefile: Add rules to build and run bug-getdate1.
4426 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4427 * iconvdata/ebcdic-es.c: Likewise.
4428 * iconvdata/ebcdic-es-a.c: Likewise.
4429 * iconvdata/ebcdic-uk.c: Likewise.
4430 * iconvdata/iso8859-16.c: Likewise.
4431 * iconvdata/viscii.c: Likewise.
4432 * iconvdata/iso8859-9e.c: Likewise.
4433 * iconvdata/Makefile: Adjust appropriately.
4436 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4439 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4442 * iconvdata/hp-roman9.c: New file.
4443 * iconvdata/Makefile: Add rules for hp-roman9.c.
4444 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4445 * iconvdata/gconv-modules: Likewise.
4447 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4448 * iconvdata/Makefile: Adjust appropriately.
4451 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4452 structure, it's allocated with alloca.
4453 * stdio-common/Makefile (tests): Add bug21.
4454 * stdio-common/bug21.c: New file.
4456 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4459 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4460 keyword for gcc's braced-groups.
4462 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4465 * inet/ether_line.c: Strip hostname of whitespaces.
4466 * inet/Makefile (tests): Add tst-ether_line.
4467 * inet/tst-ether_line.c: New file.
4469 2007-12-03 Ulrich Drepper <drepper@redhat.com>
4472 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4475 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4477 * stdlib/tst-setcontext.c: Catch the case where the links gets
4478 messed up and we do not reach main again.
4480 * po/ca.po: Update from translation team.
4482 2007-11-26 Ulrich Drepper <drepper@redhat.com>
4484 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4485 * posix/regex.h (REG_ENOSYS): Likewise.
4486 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4488 2007-11-25 Ulrich Drepper <drepper@redhat.com>
4490 * nscd/nscd.h (MAX_STACK_USE): Define.
4491 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4492 (gc): Initialize stack_used based on allocation in prune_cache.
4493 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4494 Clear array before use.
4496 * nscd/aicache.c (addhstaiX): Update statistics counter in case
4497 memory allocation failed.
4498 * nscd/hstcache.c (cache_addhst): Likewise.
4499 * nscd/grpcache.c (cache_addgr): Likewise.
4500 * nscd/servicescache.c (cache_addserv): Likewise.
4501 * nscd/pwdcache.c (cache_addpw): Likewise.
4502 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4504 2007-11-23 Ulrich Drepper <drepper@redhat.com>
4506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4507 and creat system calls.
4509 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4511 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4513 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4515 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4516 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4518 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4519 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4520 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4522 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4524 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4525 strncat): Define as macros to avoid compile errors.
4527 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4530 2007-11-22 Ulrich Drepper <drepper@redhat.com>
4533 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4534 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4535 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4537 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4539 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4540 Return zero in case the thread library is not NPTL.
4543 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4544 initializing interface list.
4547 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4548 use result of nss_getgrgid_r if nothing was found. For other
4549 error return with a failure.
4550 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4552 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4555 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4557 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4558 (get_scope): For IPv4 scope, use scopes table.
4559 (fini): Free scopes table if necessary.
4560 (free_scopelist): New function.
4561 (scopecmp): New function.
4562 (gaiconf_init): Also handle scopev4 entries.
4563 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4564 * posix/tst-rfc3484-2.c (do_test): Likewise.
4565 * posix/gai.conf: Document scopev4 defaults.
4566 * posix/Makefile (tests): Add tst-rfc3484-3.
4567 * posix/tst-rfc3484-3.c: New file.
4569 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4571 * posix/gai.conf: Update for current default tables.
4573 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4575 * po/tr.po: Update from translation team.
4577 2007-11-18 Roland McGrath <roland@frob.com>
4579 * manual/arith.texi (Remainder Functions): Spelling fix.
4580 From Shaun Silk <genix@mysoul.com.au>.
4582 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4584 2007-11-17 Ulrich Drepper <drepper@redhat.com>
4586 * po/zh_CN.po: Update from translation team.
4588 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4589 Add sys/signalfd.h and sys/eventfd.h.
4591 2007-11-15 Bruno Haible <bruno@clisp.org>
4594 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4596 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4597 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4598 it needs only fixed stack space. Delay the initialization of
4599 msgid_len until it is needed.
4601 2007-11-15 Andreas Jaeger <aj@suse.de>
4603 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4604 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4606 2007-11-15 Ulrich Drepper <drepper@redhat.com>
4608 * po/ko.po: Update from translation team.
4610 2007-11-14 Ulrich Drepper <drepper@redhat.com>
4612 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4613 significantly. The device type is also part of the ifinfomsg data.
4615 * po/sv.po: Update from translation team.
4616 * po/nl.po: Likewise.
4618 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4619 to wake up in 24 hours.
4621 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4623 2007-11-13 Ulrich Drepper <drepper@redhat.com>
4625 * po/cs.po: Update from translation team.
4626 * po/pl.po: Likewise.
4628 * include/ifaddrs.h: Remove in6ai_temporary.
4629 (struct in6addrinfo): Add index element.
4630 Declare __check_native.
4631 * inet/Makefile (aux): Add check_native.
4632 * sysdeps/unix/sysv/linux/check_native.c: New file.
4633 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4634 IFA_F_TEMPORARY. Pass back ifa_index.
4635 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4636 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4637 call __check_native if necessary.
4638 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4639 to sort addresses. Pass information about the results.
4640 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4641 of rfc3484_sort interface.
4642 * posix/tst-rfc3484-2.c: Likewise.
4644 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4645 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4647 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4648 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4649 on as third parameter to compare function and _quicksort.
4650 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4651 to the compare function.
4652 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4653 * Versions.def: Add GLIBC_2.8 for libc.
4655 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4656 * posix/tst-rfc3484-2.c: Likewise.
4658 * include/kernel-features.h: Moved to...
4659 * sysdeps/mach/hurd/kernel-features.h: ...here.
4661 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4663 * sysdeps/i386/i586/memcpy_chk.S: New file.
4664 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4665 * sysdeps/i386/i586/memset_chk.S: Likewise.
4667 2007-11-12 Ulrich Drepper <drepper@redhat.com>
4669 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4670 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4671 list of interfaces. Also store prefix length.
4672 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4673 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4674 prefix if source and destination address are in the same subnet.
4675 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4676 Always look for matching record in in6ai list.
4677 Correct source_addr_len value for IPv6->IPv4 converted records.
4679 2007-11-11 Roland McGrath <roland@frob.com>
4681 * include/kernel-features.h: New file.
4683 2007-11-10 Ulrich Drepper <drepper@redhat.com>
4685 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4686 complications for 64-bit platforms.
4688 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4689 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4690 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4692 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4694 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4695 * sysdeps/wordsize-64/alphasort.c: New file.
4696 * sysdeps/wordsize-64/alphasort64.c: New file.
4697 * sysdeps/wordsize-64/fseeko.c: New file.
4698 * sysdeps/wordsize-64/fseeko64.c: New file.
4699 * sysdeps/wordsize-64/ftello.c: New file.
4700 * sysdeps/wordsize-64/ftello64.c: New file.
4701 * sysdeps/wordsize-64/ftw.c: New file.
4702 * sysdeps/wordsize-64/ftw64.c: New file.
4703 * sysdeps/wordsize-64/iofgetpos.c: New file.
4704 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4705 * sysdeps/wordsize-64/iofopen.c: New file.
4706 * sysdeps/wordsize-64/iofopen64.c: New file.
4707 * sysdeps/wordsize-64/iofsetpos.c: New file.
4708 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4709 * sysdeps/wordsize-64/lockf.c: New file.
4710 * sysdeps/wordsize-64/lockf64.c: New file.
4711 * sysdeps/wordsize-64/mkostemp.c: New file.
4712 * sysdeps/wordsize-64/mkostemp64.c: New file.
4713 * sysdeps/wordsize-64/mkstemp.c: New file.
4714 * sysdeps/wordsize-64/mkstemp64.c: New file.
4715 * sysdeps/wordsize-64/scandir.c: New file.
4716 * sysdeps/wordsize-64/scandir64.c: New file.
4717 * sysdeps/wordsize-64/tmpfile.c: New file.
4718 * sysdeps/wordsize-64/tmpfile64.c: New file.
4719 * sysdeps/wordsize-64/versionsort.c: New file.
4720 * sysdeps/wordsize-64/versionsort64.c: New file.
4721 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4722 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4723 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4724 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4725 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4726 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4727 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4728 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4729 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4730 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4731 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4732 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4734 * crypt/sha256-crypt.c: Fix a comment.
4735 * crypt/sha512-crypt.c: Likewise.
4737 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4739 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4741 2007-11-07 Ulrich Drepper <drepper@redhat.com>
4744 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4745 because output buffer is too small break, don't loop.
4746 * iconvdata/Makefile (tests): Add bug-iconv6.
4747 * iconvdata/bug-iconv6.c: New file.
4749 2007-11-06 Ulrich Drepper <drepper@redhat.com>
4751 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4753 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4754 size_t. Add casts where needed.
4756 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4757 old headers, don't call avc_has_perm if we don't have the
4758 permission information.
4760 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4762 * elf/rtld.c (dl_main): Use the page size to find the map start.
4764 2007-11-05 Ulrich Drepper <drepper@redhat.com>
4766 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4767 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4769 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4770 when the lookup call failed.
4772 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4773 Add prune_cond and wakeup_time.
4774 (CACHE_PRUNE_INTERNAL): Define.
4775 Update declarations of prune_cache and setup_thread.
4776 * nscd/connections.c (dbs): Update initializers.
4777 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4778 (nscd_init): Default number of threads is now 4.
4779 (invalidate_cache): Take lock before calling prune_cache.
4780 (handle_request): If SELinux forbids the request, say so.
4781 (readylist_cond): Use static initializer.
4782 (nscd_run_prune): New function. Used only by pruning threads.
4783 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4785 (fd_ready): Update nscd_run reference.
4786 (start_threads): No need to initialize readylist_cond.
4787 Start pruning threads separately.
4788 * nscd/nscd_setup_thread.c: Change return value type to int and always
4790 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4791 to int and return nonzero value if we can use the TID address hack.
4792 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4793 the database is later than the new entry's timeout, update the
4794 wakeup time and wake the cleanup thread.
4795 (prune_cache): Return seconds the next entry in the database is still
4796 valid. Remove locking for pruning here.
4797 * nscd/nscd.conf: Document default number of threads.
4799 2007-10-31 Ulrich Drepper <drepper@redhat.com>
4801 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4802 stack is properly aligned for the target function.
4803 Correct unwind info.
4805 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4806 when using auditing libraries.
4808 2007-10-29 Ulrich Drepper <drepper@redhat.com>
4810 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4811 _nss_dns_getnetbyaddr2_r.
4812 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4813 extra parameter to getanswer_r.
4814 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4815 _nss_dns_getnetbyaddr2_r.
4817 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4819 * nscd/gethstbynm2_r.c: Remove.
4820 * nscd/gethstbynm3_r.c: New file.
4821 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4823 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4824 __gethostbyaddr_r compatibility wrapper.
4825 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4826 determining timeout of entry.
4827 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4829 (addhstbyX): Pass reference to variable for TTL to lookup and
4831 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4832 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4833 and __nss_next2. Remove __nss_services_lookup.
4834 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4836 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4838 * nss/getXXent_r.c: Likewise.
4839 * nss/getnssent_r.c: Likewise.
4840 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4841 does not exist in module, try the optional second name.
4842 (__nss_next2): New function.
4843 (__nss_next): Now wrapper around __nss_next2.
4844 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4845 Declare __nss_next2.
4846 Adjust definition of db_lookup_function type.
4847 * nss/service-lookup.c: Define NO_COMPAT.
4848 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4849 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4850 * inet/ether_ntoh.c: Likewise.
4851 * sunrpc/netname.c: Likewise.
4852 * sunrpc/publickey.c: Likewise.
4853 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4854 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4855 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4856 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4857 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4859 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4861 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4863 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4866 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4867 * crypt/sha512c-test.c: Likewise.
4870 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4871 to keep track of end of %[ format string element.
4872 * stdio-common/Makefile (tests): Add bug20.
4873 * stdio-common/bug20.c: New file.
4876 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4877 path elements in counting mode.
4879 2007-10-27 Andreas Jaeger <aj@suse.de>
4882 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4885 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4886 (__cleanup): Free shared library when exiting.
4887 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4888 (__cleanup): Free shared library when exiting.
4890 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4893 * math/libm-test.inc (check_float_internal): Support
4894 denormalized return.
4896 2007-10-23 Andreas Jaeger <aj@suse.de>
4899 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4900 __LONG_LONG_PAIR to handle little endian byte order.
4901 Suggested by abhishekrai@google.com
4903 2007-10-27 Ulrich Drepper <drepper@redhat.com>
4905 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4907 2007-10-26 Ulrich Drepper <drepper@redhat.com>
4909 * nscd/cache.c (prune_cache): Move test for modified file outside
4912 2007-10-21 Andreas Jaeger <aj@suse.de>
4914 * manual/texinfo.tex: Update to latest version.
4916 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4918 * manual/arith.texi (Status bit operations): Fix formatting.
4920 * manual/errno.texi (Error Messages): Fix formatting.
4922 * manual/sysinfo.texi (System Parameters): Fix formatting.
4924 * manual/libc.texinfo: Update VERSION and UPDATED.
4926 2007-10-19 Roland McGrath <roland@redhat.com>
4928 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4930 2007-10-06 David S. Miller <davem@davemloft.net>
4932 * configure.in: Add sparcv9v2 and sparc64v2.
4933 * scripts/config.sub: Likewise.
4934 * configure: Regenerate.
4935 * elf/elf.h (HWCAP_SPARC_N2): New.
4936 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4937 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4938 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4939 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4940 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4941 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4942 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4944 2007-10-18 Ulrich Drepper <drepper@redhat.com>
4946 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4947 even if the poll result indicates there is data to read.
4948 Patch by Jeff Moyer <jmoyer@redhat.com>.
4950 2007-10-18 Roland McGrath <roland@redhat.com>
4952 * elf/elf.h (NT_PPC_VMX): New macro.
4954 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4956 * version.h (VERSION): Set to 2.7.90.
4958 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4960 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4963 2007-10-17 Roland McGrath <roland@frob.com>
4965 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4966 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4968 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4970 * version.h (VERSION): Bump to 2.7.
4971 * include/features.h (__GLIBC_MINOR__): Bump to 7.
4974 * time/tzset.c (__tz_convert): Don't force testing for a change of
4975 TZ if not called from localtime. But then also see whether the
4976 file changed, in case __use_tzfile is set.
4978 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4979 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4980 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4981 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4982 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4983 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4984 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4985 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4987 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4989 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4990 and admin selects to be able to replace the gai.conf file, lock
4991 data structures around the qsort call.
4993 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4995 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4997 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
4998 too high for the improvements. Implement bzero unconditionally for
5001 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5002 Jakub Jelinek <jakub@redhat.com>
5004 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5005 even when time_t is 32-bit.
5006 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5007 timezone data read by __tzfile_default. Ensure __tzname[0] is
5008 always set after the search.
5010 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5012 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5013 unreachable code on 32-bit machines.
5015 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5018 * time/strftime_l.c: Include stdbool.h.
5019 (my_strftime): New wrapper, old function renamed to...
5020 (__strftime_internal): ... new function. Add tzset_called
5021 argument, pass it down to recursive calls, don't call tzset ()
5022 if already true, set to true after call to tzset ().
5024 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5026 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5027 into account when copying TZ string.
5029 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5031 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5032 num_transition rather than num_transitions - 1.
5034 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5036 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5039 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5040 a local label rather than HIDDEN_JUMPTARGET.
5042 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5044 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5045 (init_cacheinfo): Initialize it.
5046 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5047 Always define bzero.
5048 Remove non-glibc code.
5049 * sysdeps/x86_64/bzero.S: Make an empty file.
5051 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5053 * sysdeps/x86_64/cacheinfo.c
5054 (__x86_64_preferred_memory_instruction): New.
5055 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5057 * sysdeps/x86_64/memset.S: Rewrite.
5059 2007-10-15 Roland McGrath <roland@redhat.com>
5061 * po/libc.pot: Regenerated.
5063 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5065 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5069 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5070 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5071 address record to T_A/T_AAAA requests.
5073 2007-10-14 Ulrich Drepper <drepper@redhat.com>
5075 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5077 * posix/glob.c: Add some branch prediction throughout.
5079 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5082 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5084 (rfc3484_sort): Make sure that even if qsort doesn't support
5085 stable sorting out sorting here is stable by comparing service_order.
5086 (getaddrinfo): Initialize service_order.
5087 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5088 service_order field to sorting structure.
5089 * posix/tst-rfc3484-2.c (do_test): Likewise.
5091 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5092 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5093 __tzset_parse_tz and updating of daylight, timezone, tzname into
5095 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5096 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5097 happens in __tz_compute.
5098 * time/tzfile.c (__tzfile_read): Also read TZ string.
5099 (find_transition): Fold into __tzfile_compute.
5100 (__tzfile_compute): For times beyond the last transition try to
5102 * timezone/tst-timezone.c: Information in daylight and tzname does
5103 change for Asia/Tokyo timezone with more concrete information.
5106 * include/stdio.h: Add libc_hidden_proto for ftello.
5107 * libio/ftello.c: Add libc_hidden_def.
5110 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5111 on the specified time and not the last entries in the file. Move
5112 code to determine tzname[] to...
5113 (find_transition): ...here. Add ugly guess for times before the
5116 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5119 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5121 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5122 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5123 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5124 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5126 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5127 read mechanism when there are no group members and avoid no-op
5128 read syscall in this case.
5131 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5132 (__readall): If reading failed due to EAGAIN error wait a bit
5133 and possibly try again.
5134 (__readvall): Likewise.
5136 2007-10-13 Bruno Haible <bruno@clisp.org>
5138 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5139 when we cannot recode the message.
5141 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5144 * libio/__freading.c (__freading): Don't return true for
5145 write-only streams. For read/write streams, check whether we
5146 performed a read operation already.
5147 * libio/Makefile (tests): Add tst-ext2.
5148 * libio/tst-ext2.c: New file.
5150 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5152 * locale/programs/repertoire.c (repertoire_read): Always free
5153 memory for repertoire file name [Coverity CID 270].
5155 * elf/cache.c (save_aux_cache): Free memory allocated for
5156 temporary file name [Coverity CID 267].
5158 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5160 * misc/Makefile (headers): Add bits/error.h.
5162 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5164 * posix/fnmatch_loop.c: Take rule index returned as part of
5165 findidx return value into account when accessing weights.
5166 * posix/regcomp.c: Likewise.
5167 * posix/regexec.c: Likewise.
5169 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5170 (skip_to): Fix problems with parameter of elifdef/elifndef.
5172 2007-10-11 Ulrich Drepper <drepper@redhat.com>
5174 * iconv/gconv_simple.c: Add some branch prediction.
5176 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5178 * locale/programs/ld-collate.c (collate_read): If ignore_content
5179 and nowtok is tok_define, eat any tok_eol tokens.
5181 2007-10-11 Jakub Jelinek <jakub@redhat.com>
5183 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5184 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5186 * inet/netinet/in.h: Don't include bits/socket.h.
5187 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5189 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5191 2007-10-10 Ulrich Drepper <drepper@redhat.com>
5193 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5195 * locale/programs/locfile-kw.gperf: Likewise.
5196 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5198 2007-10-10 Jakub Jelinek <jakub@redhat.com>
5200 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5201 (__find_specwc): Change into __extern_always_inline function.
5202 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5203 (__parse_one_specmb): Remove ps argument.
5204 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5205 Adjust __find_specmb and __parse_one_specmb callers.
5206 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5207 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5209 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5212 2007-10-09 Ulrich Drepper <drepper@redhat.com>
5214 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5215 with some Pentium Ds.
5217 2007-10-08 Ulrich Drepper <drepper@redhat.com>
5219 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5221 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5224 2007-10-07 Ulrich Drepper <drepper@redhat.com>
5227 * locale/C-time.c: Set week_1stday data to 19971201.
5228 * locale/programs/ld-time.c (time_finish): Default for
5229 first_workday is Monday.
5232 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5235 * posix/glob.c (glob): Recognize patterns starting \/.
5236 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5237 (main): Add test for pattern starting \/.
5239 * misc/error.h: Use __const instead of const.
5240 * misc/bits/error.h: Likewise.
5242 2007-10-07 Andreas Jaeger <aj@suse.de>
5244 * include/bits/error.h: New file.
5246 * misc/bits/error.h (error_at_line): Fix prototype.
5248 2007-10-06 Ulrich Drepper <drepper@redhat.com>
5251 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5252 more little bugs in creating the stack frame when pltexit has to
5255 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5256 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5259 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5260 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5261 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5262 * math/libm-test.inc: Add test for this case.
5265 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5266 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5267 map service succeeded.
5268 (svc_is_mapped): New function.
5269 (svc_unregister): Use it before trying to unmap service.
5271 2007-10-05 Ulrich Drepper <drepper@redhat.com>
5273 * timezone/zic.c: Update from tzcode2007h.
5276 * timezone/africa: Update from tzdata2007h.
5277 * timezone/antarctica: Likewise.
5278 * timezone/asia: Likewise.
5279 * timezone/australasia: Likewise.
5280 * timezone/europe: Likewise.
5281 * timezone/leapseconds: Likewise.
5282 * timezone/northamerica: Likewise.
5283 * timezone/southamerica: Likewise.
5284 * timzeone/zone.tab: Likewise.
5287 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5290 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5291 avoid warning with -Wconversion.
5292 (__strndup): Likewise.
5293 Half the patch by Christian Iseli <christian.iseli@licr.org>.
5296 * nscd/connections.c (restart): Don't resync if database is
5297 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5299 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5300 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5302 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5303 evetnfd_read, eventfd_write.
5304 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5305 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5306 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5307 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5308 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5309 eventfd_write for GLIBC_2.7.
5311 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5312 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5313 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5314 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5316 2007-10-04 Jakub Jelinek <jakub@redhat.com>
5318 * stdlib/msort.c: Include stdint.h.
5319 (struct msort_param): New type.
5320 (msort_with_tmp): Use struct msort_param pointer for unchanging
5321 parameters. Add optimized handling for several common sizes
5322 and indirect sorting mode.
5323 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5325 Suggested by Belazougui Djamel .
5327 * stdlib/Makefile (tests): Add tst-qsort2.
5328 * stdlib/tst-qsort2.c: New test.
5330 2007-10-04 Ulrich Drepper <drepper@redhat.com>
5332 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5333 for dup2 in case another thread races with the current one. Retry
5336 * misc/error.h: Remove support for use outside of libc. We have to
5337 include <features.h> now. Include <bits/error.h> if possible.
5338 * misc/bits/error.h: New file.
5340 2007-10-03 Jakub Jelinek <jakub@redhat.com>
5342 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5343 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5344 __extern_always_inline functions unconditionally, drop macros.
5346 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5347 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5348 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5350 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5351 add __artificial__ attribute.
5353 2007-10-02 Ulrich Drepper <drepper@redhat.com>
5355 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5356 backward to forward direction.
5358 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5361 * locale/programs/ld-collate.c (collate_finish): Compare against last
5362 used section which is known to have rules defined.
5363 (collate_read): After order_start, correctly record order of sections
5364 and queue sections up.
5366 2007-10-01 Ulrich Drepper <drepper@redhat.com>
5369 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5370 the same number of pages.
5371 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5373 * locale/programs/ld-collate.c (collate_read): After initial copy
5374 statement, continue in state 0.
5376 * include/stdio_ext.h (__fsetlocking): Define as macro.
5378 2007-09-30 Ulrich Drepper <drepper@redhat.com>
5380 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5383 * po/pt_BR.po: Fix typo.
5385 2007-09-29 Ulrich Drepper <drepper@redhat.com>
5387 * iconvdata/Makefile (modules): Add ISO8859-9E.
5388 (distribute): Add iso8859-9e.c.
5389 (gen-8bit-gap-modules): Add iso8859-9e.
5390 * iconvdata/iso8859-9e.c: New file.
5391 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5392 * iconvdata/TESTS: Likewise.
5393 * iconvdata/tst-tables.sh: Likewise.
5395 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5397 * locale/iso-639.def: Add several new entries.
5399 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5401 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5402 void * pointers instead of struct link_map **.
5403 (_dl_scope_free): Change argument type to void *.
5404 * include/link.h (struct link_map): Change type of l_reldeps
5405 to struct link_map_reldeps, move l_reldepsact into that
5407 * elf/dl-deps.c: Include atomic.h.
5408 (_dl_map_object_deps): Only change l->l_initfini when it is
5409 fully populated, use _dl_scope_free for freeing it. Optimize
5410 removal of libs from reldeps by using l_reserved flag, when
5411 some removal is needed, allocate a new list instead of
5412 reallocating and free the old with _dl_scope_free. Adjust
5413 for l_reldeps and l_reldepsact changes.
5414 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5415 searching in l_initfini and l_reldeps without holding dl_load_lock.
5416 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5417 l_reldepsact changes.
5418 * elf/dl-close.c (_dl_close_worker): Likewise.
5419 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5421 2007-09-28 Ulrich Drepper <drepper@redhat.com>
5423 * iconvdata/Makefile (modules): Add KOI8-RU.
5424 (distribute): Add koi8-ru.c.
5425 (gen-8bit-gap-modules): Add koi8-ru.
5426 * iconvdata/koi8-ru.c: New file.
5427 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5428 * iconvdata/TESTS: Likewise.
5429 * iconvdata/tst-tables.sh: Likewise.
5431 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5433 2007-09-26 Jakub Jelinek <jakub@redhat.com>
5435 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5436 with __warning__/__error__ attributes.
5437 (__warnattr): Define.
5438 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5439 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5441 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5442 of __*_chk if compile time detectable overflow is found.
5443 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5444 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5446 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5447 instead of __*_chk if compile time detectable overflow is found.
5448 (__gets_alias): Rename to...
5449 (__gets_warn): ... this. Add __warnattr.
5450 (gets): Call __gets_warn instead of __gets_alias.
5451 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5452 aliases with __warnattr.
5453 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5454 time detectable overflow is found.
5455 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5456 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5457 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5458 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5459 __getdomainname_chk_warn): New aliases with __warnattr.
5460 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5461 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5462 __*_chk_warn instead of __*_chk if compile time detectable overflow
5464 (__getgroups_chk): Rename argument to __listlen from listlen.
5465 (__getwd_alias): Rename to...
5466 (__getwd_warn): ... this. Add __warnattr.
5467 (getwd): Call __getwd_warn instead of __getwd_alias.
5468 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5469 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5470 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5471 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5472 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5473 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5474 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5475 compile time detectable overflow is found.
5476 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5477 to use __*_chk or not.
5478 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5479 in comparisons which function should be called and in __*_chk*
5480 arguments. Call __*_chk_warn instead of __*_chk if compile time
5481 detectable overflow is found.
5482 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5484 * debug/tst-chk1.c (do_test): Add a few more tests.
5486 2007-09-24 Ulrich Drepper <drepper@redhat.com>
5489 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5490 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5491 (_nl_unload_domain): Finalize conversions_lock.
5492 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5493 handling table of known conversions.
5495 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5497 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5498 close_not_cancel_no_status instead of close.
5500 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5503 * posix/regcomp.c (lookup_collation_sequence_value): Check that
5504 nrules != 0 for multibyte chars.
5506 2007-09-23 Ulrich Drepper <drepper@redhat.com>
5508 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5509 Provide better error message in case the type is unknown.
5512 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5513 * string/stratcliff.c: Make usable to test wide char functions.
5514 * wcsmbs/wcsatcliff.c: New file.
5515 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5518 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5519 (distribute): Add mac-centraleurope.c.
5520 (gen-8bit-gap-modules): Add mac-centraleurope.
5521 * iconvdata/mac-centraleurope.c: New file.
5522 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5523 * iconvdata/TESTS: Likewise.
5524 * iconvdata/tst-tables.sh: Likewise.
5527 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5529 2007-09-21 Ulrich Drepper <drepper@redhat.com>
5531 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5532 from __x86_64_core_cache_size_half.
5533 (init_cacheinfo): Compute shared cache size for AMD processors with
5534 shared L3 correctly.
5535 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5537 Patch in large parts by Evandro Menezes.
5539 2007-09-19 Ulrich Drepper <drepper@redhat.com>
5541 * elf/dl-lookup.c (add_dependency): Handle failing memory
5542 allocation for dependency list. Remove unnecessary check.
5544 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5545 open/close when determining source addresses.
5547 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5548 sha512-crypt, and sha512.
5549 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5550 (distribute): Add sha256.h and sha512.h.
5551 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5552 and call the appropriate code.
5553 * crypt/sha256-crypt.c: New file.
5554 * crypt/sha256.c: New file.
5555 * crypt/sha256.h: New file.
5556 * crypt/sha256c-test.c: New file.
5557 * crypt/sha256test.c: New file.
5558 * crypt/sha512-crypt.c: New file.
5559 * crypt/sha512.c: New file.
5560 * crypt/sha512.h: New file.
5561 * crypt/sha512c-test.c: New file.
5562 * crypt/sha512test.c: New file.
5564 2007-09-19 Jakub Jelinek <jakub@redhat.com>
5566 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5567 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5570 2007-09-18 Jakub Jelinek <jakub@redhat.com>
5572 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5573 %as in fscanf format strings.
5575 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5576 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5577 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5579 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5582 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5583 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5584 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5585 * elf/dl-sym.c (do_sym): Likewise.
5586 * include/link.h (struct link_map): Add l_serial field.
5587 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5588 * elf/dl-lookup.c (add_dependency): Add flags argument.
5589 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5590 flags, use THREAD_GSCOPE_RESET_FLAG before and
5591 THREAD_GSCOPE_SET_FLAG after
5592 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5593 Don't dereference map until it has been found on some list.
5594 If map->l_serial changed, return -1.
5596 2007-09-17 Jakub Jelinek <jakub@redhat.com>
5598 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5599 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5600 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5602 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5603 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5604 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5605 add libc_hidden_proto.
5606 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5607 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5608 conformance requested.
5609 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5610 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5611 conformance requested.
5612 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5613 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5614 conformance requested.
5615 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5616 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5617 ISO C99 or POSIX conformance requested.
5618 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5619 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5620 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5621 and __isoc99_vsscanf@@GLIBC_2.7.
5622 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5623 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5624 (tests): Add scanf14.
5625 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5626 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5627 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5628 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5629 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5630 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5631 from using internal headers.
5632 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5633 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5634 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5635 and __isoc99_vswscanf@@GLIBC_2.7.
5636 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5637 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5638 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5639 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5640 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5641 * stdio-common/isoc99_scanf.c: New file.
5642 * stdio-common/isoc99_vsscanf.c: New file.
5643 * stdio-common/isoc99_vscanf.c: New file.
5644 * stdio-common/isoc99_vfscanf.c: New file.
5645 * stdio-common/isoc99_fscanf.c: New file.
5646 * stdio-common/isoc99_sscanf.c: New file.
5647 * wcsmbs/isoc99_fwscanf.c: New file.
5648 * wcsmbs/isoc99_vswscanf.c: New file.
5649 * wcsmbs/isoc99_swscanf.c: New file.
5650 * wcsmbs/isoc99_wscanf.c: New file.
5651 * wcsmbs/isoc99_vwscanf.c: New file.
5652 * wcsmbs/isoc99_vfwscanf.c: New file.
5653 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5654 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5655 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5656 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5657 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5658 * stdio-common/scanf14.c: New test.
5659 * stdio-common/scanf15.c: New test.
5660 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5661 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5662 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5663 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5664 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5665 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5666 __nldbl___isoc99_scanf@@GLIBC_2.7,
5667 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5668 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5669 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5670 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5671 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5672 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5673 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5674 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5675 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5676 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5677 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5678 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5679 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5680 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5681 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5682 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5683 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5684 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5685 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5686 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5687 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5688 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5689 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5691 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5692 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5693 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5694 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5695 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5696 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5697 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5698 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5699 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5700 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5701 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5702 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5704 * stdio-common/Makefile (tests): Add scanf13.
5706 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5707 m modifier followed by l.
5708 (STRING_ARG): Add width argument.
5709 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5710 <case L_('C')>: Handle %mlc and %mC.
5711 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5713 * stdio-common/scanf13.c: New test.
5715 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5716 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5718 2007-09-18 Ulrich Drepper <drepper@redhat.com>
5720 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5721 type and __THROW marker of splice, vmsplice, and tee.
5722 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5723 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5724 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5725 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5726 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5727 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5728 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5729 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5730 as cancellation points.
5732 2003-11-01 Daniel Jacobowitz <dan@debian.org>
5734 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5735 parse more than three parts of the version number.
5737 2007-09-15 Ulrich Drepper <drepper@redhat.com>
5739 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5740 modifier. Patch by Jakub Jelinek.
5742 2007-08-26 Jakub Jelinek <jakub@redhat.com>
5744 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5745 call_fallocate in misc subdir.
5746 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5747 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5748 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5749 instead of __fallocate64.
5750 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5752 2007-09-15 Jakub Jelinek <jakub@redhat.com>
5754 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5755 * rt/Makefile (headers): Add bits/mqueue2.h.
5756 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5757 optimizing with GCC and __va_arg_pack_len is defined.
5758 * rt/bits/mqueue2.h: New file.
5759 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5760 (mq_open): New strong_alias.
5761 (__mq_open_2): New function.
5762 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5763 (mq_open): New strong_alias.
5764 (__mq_open_2): New function.
5765 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5766 * Versions.def (librt): Add GLIBC_2.7 version.
5767 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5768 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5770 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5771 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5772 is defined rather than when not C++.
5773 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5774 __openat64_alias): New redirects.
5775 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5776 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5777 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5778 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5779 functions instead of function-like macros.
5781 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5783 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5784 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5785 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5787 2007-09-15 Mike Frysinger <vapier@gentoo.org>
5789 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5790 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5792 2007-09-14 Mike Frysinger <vapier@gentoo.org>
5794 * inet/tst-network.c: Increment ERRORS for failing tests.
5796 2007-09-07 Jakub Jelinek <jakub@redhat.com>
5798 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5799 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5800 implement as __extern_always_inline function.
5801 (vsyslog): Define as __extern_always_inline function unconditionally.
5802 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5803 When __va_arg_pack is defined, implement as __extern_always_inline
5805 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5806 __extern_always_inline functions unconditionally.
5807 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5808 bits/stdio2.h will be included.
5809 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5810 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5811 implement as __extern_always_inline functions.
5812 (vswprintf, vwprintf, vfwprintf): Define as
5813 __extern_always_inline functions unconditionally.
5814 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5816 2007-09-03 Jakub Jelinek <jakub@redhat.com>
5818 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5819 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5821 * include/features.h (__USE_EXTERN_INLINES): Define only when
5822 __extern_inline is defined.
5823 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5824 is defined instead of when not __cplusplus.
5825 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5826 is defined instead of when not __cplusplus.
5827 * socket/sys/socket.h: Include bits/socket2.h when
5828 __extern_always_inline is defined instead of when not __cplusplus.
5829 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5830 is defined instead of when not __cplusplus.
5831 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5832 is defined instead of when not __cplusplus.
5833 * string/string.h: Include bits/string3.h when __extern_always_inline
5834 is defined instead of when not __cplusplus.
5835 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5836 is defined instead of when not __cplusplus.
5837 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5838 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5840 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5841 defined __extern_always_inline instead of !defined __cplusplus.
5842 * libio/bits/stdio-ldbl.h: Likewise.
5843 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5844 * misc/bits/syslog.h (syslog): Don't define for C++.
5845 (vsyslog): Use __extern_always_inline function for C++ instead of
5847 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5848 whenever that macro is defined.
5849 (vprintf): Don't provide the inline for C++.
5850 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5851 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5852 define the macros for C++.
5853 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5854 __extern_always_inline functions for C++.
5855 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5856 stat64, lstat64, fstat64, fstatat64): Don't define if not
5857 __USE_EXTERN_INLINES.
5858 * wcsmbs/bits/wchar2.h: Fix #error message.
5859 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5860 (vswprintf, vwprintf, vfwprintf): Define using
5861 __extern_always_inline functions for C++.
5862 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5863 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5864 strncpy, strcat, strncat): Define as __extern_always_inline
5865 functions instead of macros for C++.
5866 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5867 defined __extern_inline.
5868 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5869 to __extern_inline whenever that macro is defined.
5870 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5871 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5872 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5873 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5874 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5875 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5876 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5877 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5878 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5879 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5880 prototypes. Only provide __extern_inline routines if
5881 __USE_EXTERN_INLINES.
5882 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5884 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5885 For now avoid some *printf tests in C++. Skip all testing
5886 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5888 * debug/tst-chk4.cc: New file.
5889 * debug/tst-chk5.cc: New file.
5890 * debug/tst-chk6.cc: New file.
5891 * debug/tst-lfschk4.cc: New file.
5892 * debug/tst-lfschk5.cc: New file.
5893 * debug/tst-lfschk6.cc: New file.
5894 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5896 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5897 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5898 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5900 2007-09-13 Ulrich Drepper <drepper@redhat.com>
5902 * po/cs.po: Update from translation team.
5904 2007-09-11 Roland McGrath <roland@redhat.com>
5906 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5909 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5911 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5913 2007-09-05 Roland McGrath <roland@redhat.com>
5915 * manual/signal.texi (Signaling Another Process): Typo fix.
5916 From Karl Berry <karl@freefriends.org>.
5918 2007-08-29 Ulrich Drepper <drepper@redhat.com>
5920 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5921 zero if not defined.
5922 (make_request): Recognize optimistic addresses and treat them like
5923 deprecated addresses.
5924 Reported by Neil Horman <nhorman@redhat.com>.
5926 2007-08-28 Ulrich Drepper <drepper@redhat.com>
5928 * nscd/connections.c (send_ro_fd): Also transfer file size.
5929 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5930 file size don't call fstat.
5932 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5933 ahead and map the file. This should always be correct and we can
5934 catch problems later.
5936 2007-08-28 Jakub Jelinek <jakub@redhat.com>
5938 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5940 (__fread_alias, __fread_unlocked_alias): New aliases.
5941 (fread): New extern inline.
5942 (fread_unlocked): Likewise. Undef macro before definition of
5943 the inline function.
5944 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5945 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5946 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5947 and __fread_unlocked_chk@@GLIBC_2.7.
5948 * debug/fread_chk.c: New file.
5949 * debug/fread_u_chk.c: New file.
5950 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5952 2007-08-27 Jakub Jelinek <jakub@redhat.com>
5954 * sysdeps/unix/sysv/linux/syscalls.list
5955 (personality): Change caller to EXTRA.
5957 2007-08-25 Ulrich Drepper <drepper@redhat.com>
5959 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5961 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5963 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5966 * Makerules: Use -p option with mkdir.
5968 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5969 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5970 (_xdr_directory_obj): Likewise.
5971 (xdr_entry_obj): Likewise.
5972 (xdr_group_obj): Likewise.
5973 (xdr_link_obj): Likewise.
5974 (xdr_table_obj): Likewise.
5975 (_xdr_nis_result): Likewise.
5976 (_xdr_ns_request): Likewise.
5977 (_xdr_ib_request): Likewise.
5978 (_xdr_nis_taglist): Likewise.
5979 (xdr_cback_data): Likewise.
5980 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5981 (xdr_ypresp_maplist): Likewise.
5983 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5985 * posix/regex_internal.h: Prevent some declarations and definitions
5986 to be seen when used in tests.
5988 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5989 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5991 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5993 * config.make.in (datarootdir): Add to shut up configure.
5995 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5996 associativity for fully-associative caches.
5998 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5999 requests. Fill on more associativity values for L2.
6000 Patch mostly by Evandro Menezes.
6002 2007-08-24 Ulrich Drepper <drepper@redhat.com>
6004 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6005 (_libc_vdso_platform_setup): Avoid using exported variable by using
6008 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6010 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6011 fallocate64 as EXTRA. It is not referenced if the symbol isn't
6014 2007-08-23 Ulrich Drepper <drepper@redhat.com>
6016 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6017 align stack for call if pltexit is to be used.
6020 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6021 align for function call in case pltexit has to be called later.
6023 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6024 implicit atomic operation when storing function pointer.
6025 (_dl_runtime_profile): Likewise.
6027 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6029 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6032 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6035 * string/strtok.c: Fix typo in comment.
6038 * debug/segfault.c: Fix typos in comments.
6041 * stdio-common/tempnam.c: Fix comment, it is not checked that
6042 TMPDIR points to a writable directory.
6045 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6046 memory allocated for the name server address.
6049 * nscd/connections.c (handle_request): Using sendfile always
6050 requires that mmap is used for the database.
6051 Patch by Petr Baudis <pasky@suse.cz>.
6054 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6055 suddenly has two or more addresses, ignore it and remove the old
6059 * resolv/res_hconf.c: Prepare for compiling outside libc.
6060 * nscd/res_hconf.c: New file.
6061 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6063 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6064 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6066 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6069 * debug/pcprofiledump.c: Turn on internationalization by calling
6070 setlocale. Patch mostly by Benno Schulenberg.
6073 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6075 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6076 * iconvdata/bug-iconv5.c: New file.
6078 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6081 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6082 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6083 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6084 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6085 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6086 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6087 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6088 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6090 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6093 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6094 lookup loop. Suggested by John Reiser.
6096 2007-08-21 Jakub Jelinek <jakub@redhat.com>
6098 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6100 2007-08-20 Ulrich Drepper <drepper@redhat.com>
6102 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6103 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6104 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6105 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6106 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6108 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6110 2007-08-18 Ulrich Drepper <drepper@redhat.com>
6112 * po/nl.po: Update from translation team.
6114 2007-08-16 Andreas Jaeger <aj@suse.de>
6116 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6117 Reported by Peter Festner <peter.festner@ewetel.net>.
6119 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6121 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6123 2007-08-16 Jakub Jelinek <jakub@redhat.com>
6125 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6126 to check for undefined symbols.
6128 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6129 If the syscall fails, set errno to the actual returned error number
6131 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6132 arguments are incorrect, set errno to EINVAL, if the syscall
6133 fails, set errno to the actual returned error number.
6135 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6136 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6138 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6139 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6141 (ASI_PNF, ASI_BLK_P): Don't define.
6142 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6143 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6145 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6146 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6149 2007-08-15 Jakub Jelinek <jakub@redhat.com>
6151 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6152 FE_UNDERFLOW on Niagara CPUs.
6154 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6157 2007-08-14 Jakub Jelinek <jakub@redhat.com>
6159 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6160 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6161 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6162 flush should be used or not inside of the function.
6163 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6165 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6166 __thread_start): Use HIDDEN_JUMPTARGET.
6167 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6168 __thread_start): Likewise.
6169 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6171 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6172 Add libc_hidden_proto.
6173 (STRTOF): Add libc_hidden_proto.
6174 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6175 (strtold_l, wcstold_l): Use them as second argument for
6178 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6180 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6182 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6184 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6186 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6188 * po/bg.po: New file. From the translation team.
6190 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6192 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6193 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6194 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6195 when each feature was introduced.
6197 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6198 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6199 (CHECK_HASH): New macro.
6200 (PREPARE_VERSION): Use it.
6202 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6203 prototype if not __ASSUME_PSELECT.
6204 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6205 prototype if not __ASSUME_PPOLL.
6207 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6209 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6210 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6213 2007-08-13 Ulrich Drepper <drepper@redhat.com>
6215 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6216 (_libc_vdso_platform_setup): If vDSO is not available point
6217 __vdso_gettimeofday to the vsyscall.
6218 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6219 __vdso_gettimeofday instead of vsyscall.
6221 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6223 * nscd/servicescache.c: Include kernel-features.h.
6224 * nscd/gai.c: Likewise.
6225 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6226 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6227 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6228 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6229 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6230 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6231 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6232 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6233 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6235 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6237 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6238 and _dl_get_origin defines anymore.
6240 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6241 Build fix for systems which might lack POSIX timer support.
6243 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6244 (_libc_vdso_platform_setup): Mangle function pointers before storing
6246 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6247 Demangle vdso pointer before use.
6248 (INTERNAL_VSYSCALL): Likewise.
6250 * elf/cache.c (primes): Mark as const.
6251 Noted by Roland McGrath.
6253 2007-08-01 Andreas Jaeger <aj@suse.de>
6254 Jakub Jelinek <jakub@redhat.com>
6256 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6257 (options): Add option.
6258 (parse_opt): Handle option.
6259 (manual_link): Adjust process_file caller. Call implicit_soname.
6260 (search_dir): Formatting. Use and populate auxiliary cache.
6261 (main): Load and save auxiliary cache.
6262 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6263 stat64 from fstat64 to caller.
6264 (implicit_soname): New function.
6265 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6266 leave *soname as NULL.
6267 * elf/cache.c: Include libgen.h.
6268 (print_entry, print_cache, compare, save_cache, add_to_cache):
6269 Formatting and cleanups.
6270 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6271 aux_cache_file): New structures.
6272 (AUX_CACHEMAGIC): Define.
6273 (primes): New array.
6274 (aux_hash_size, aux_hash): New variables.
6275 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6276 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6277 load_aux_cache, save_aux_cache): New functions.
6278 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6279 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6280 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6281 (process_file): Adjust prototype.
6283 2007-08-12 Jakub Jelinek <jakub@redhat.com>
6285 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6288 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6290 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6291 r_found_version structure as second parameter.
6292 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6293 (_dl_vdso_vsym): Change type of second parameter accordingly.
6294 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6295 (_libc_vdso_platform_setup): Adjust.
6296 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6297 (_libc_vdso_platform_setup): Likewise.
6299 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6300 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6301 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6302 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6303 * csu/libc-start.c: Pretty printing.
6304 Use VDSO_SETUP if defined.
6305 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6306 and let generic code call into _libc_vdso_platform_setup.
6307 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6308 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6309 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6310 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6311 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6313 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6314 (sysdep_rountines): Add dl-vdso.
6316 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6319 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6320 attribute_hidden to __vdso_gettimeofday prototype.
6322 2007-08-12 Roland McGrath <roland@redhat.com>
6324 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6325 From: Karl Berry <karl@freefriends.org>.
6327 2007-08-11 Ulrich Drepper <drepper@redhat.com>
6329 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6330 an atime update for the files we read.
6332 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6334 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6336 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
6339 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6340 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6341 * misc/mkostemp.c: New file.
6342 * misc/mkostemp64.c: New file.
6343 * stdlib/stdlib.h: Declare the new functions.
6344 * sysdeps/posix/tempname.c: Add new parameter which is added to
6345 the flags for open. Remove __GT_BIGFILE handling.
6346 * stdio-common/tempname.c: Likewise.
6347 * include/stdio.h: Adjust __gen_tempname prototype.
6348 Renumber __GT_* constants.
6349 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6350 * misc/mkdtemp.c: Likewise.
6351 * misc/mkstemp.c: Likewise.
6352 * misc/mkstemp64.c: Likewise.
6353 * misc/mktemp.c: Likewise.
6354 * stdio-common/tempnam.c: Likewise.
6355 * stdio-common/tmpfile.c: Likewise.
6356 * stdio-common/tmpfile64.c: Likewise.
6357 * stdio-common/tmpnam.c: Likewise.
6358 * stdio-common/tmpnam_r.c: Likewise.
6360 2007-08-10 Roland McGrath <roland@frob.com>
6362 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6364 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6365 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6367 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6369 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6371 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6372 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6373 * nss/nss_files/files-have_o_cloexec.c: New file.
6375 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6378 2007-08-10 Jakub Jelinek <jakub@redhat.com>
6380 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6381 ___new_wcstold_l): New weak aliases.
6382 (strtold_l, wcstold_l): Use them as second argument for
6385 2007-08-09 Ulrich Drepper <drepper@redhat.com>
6387 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6388 register in test for error.
6390 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6391 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6393 * po/sv.po: Update from translation team.
6395 2007-08-06 Roland McGrath <roland@redhat.com>
6397 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6398 Remove __strto*_l inlines.
6399 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6400 * stdlib/strtod.c: Add libc_hidden_def.
6401 * stdlib/strtod_l.c: Likewise.
6402 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6403 for __new_strtold and __new_wcstold.
6404 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6406 * stdlib/strtol.c: Add libc_hidden_def.
6407 * stdlib/strtol_l.c: Likewise.
6408 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6411 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6413 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6414 * scripts/data/localplt-generic.data: ... here.
6415 * elf/Makefile (check-data): Get generic file if no other.
6416 ($(objpfx)check-localplt.out): Make target unconditional.
6418 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6421 2007-08-05 Ulrich Drepper <drepper@redhat.com>
6423 * po/zh_CN.po: Updated translation from translation team.
6425 2007-08-05 Jakub Jelinek <jakub@redhat.com>
6427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6428 Don't use CGOTSETUP and CGOTRESTORE macros.
6430 2007-08-04 Roland McGrath <roland@redhat.com>
6432 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6434 2007-08-04 Jakub Jelinek <jakub@redhat.com>
6436 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6437 __extension__ around the whole statement expression.
6439 2007-08-04 Ulrich Drepper <drepper@redhat.com>
6441 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6442 elements during initialization.
6444 * po/pl.po: Updated translation from translation team.
6445 * po/tr.po: Likewise.
6446 * po/nl.po: Likewise.
6448 2007-08-03 Ulrich Drepper <drepper@redhat.com>
6450 * rt/aio.h: Add __nonnull attributes.
6452 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6454 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6455 * stdlib/Makefile (tests): Add tst-strtod5.
6456 (tst-strtod5-ENV): New.
6457 * stdlib/tst-strtod5.c: New file.
6459 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6461 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6464 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6467 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6469 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6472 2007-08-02 Ulrich Drepper <drepper@redhat.com>
6474 * io/Makefile (aux): Add have_o_cloexec.
6475 * include/fcntl.h: Declare __have_o_cloexec.
6476 * io/have_o_cloexec.c: New file.
6477 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6478 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6479 fcntl call if not necessary.
6480 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6483 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6484 Avoid memset, add explicit initialization.
6485 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6486 to the end and change into zero-sized array.
6487 Move lock member to fill a hole on 64-bit platforms.
6489 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6491 * include/stdlib.h: Add __strto*_internal prototypes here.
6492 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6494 * include/wchar.h: Add __wcsto*_internal prototypes.
6495 * sysdeps/generic/inttypes.h: No need to protect the declaration
6496 of the __strto*_internal and __wcsto*_internal members here.
6498 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6500 2007-08-02 Roland McGrath <roland@redhat.com>
6502 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6503 $(inst_bindir)/getconf if possible.
6505 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6506 (generated): Add it.
6507 ($(inst_libexecdir)/getconf): Use it.
6509 2007-08-01 Ulrich Drepper <drepper@redhat.com>
6511 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6512 /proc is faster and sufficient. /sys is still needed for
6515 2007-08-01 Jakub Jelinek <jakub@redhat.com>
6517 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6518 syscall as __fallocate64.
6519 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6520 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6522 2007-07-30 Jakub Jelinek <jakub@redhat.com>
6524 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6527 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6528 if off_t is different rank from size_t.
6530 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6531 uw_frame_state_for): Avoid type punning warnings.
6532 * sysdeps/generic/unwind-dw2-fde-glibc.c
6533 (_Unwind_IteratePhdrCallback): Likewise.
6534 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6535 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6536 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6539 2007-07-31 Ulrich Drepper <drepper@redhat.com>
6541 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6542 total processors using sysfs.
6543 (__get_nprocs): Use sysfs to determine which processors are online.
6545 2007-07-31 Jakub Jelinek <jakub@redhat.com>
6547 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6548 syscall arguments count.
6550 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6552 2007-07-30 Roland McGrath <roland@redhat.com>
6554 * manual/libc.texinfo: Update copyrights, formatting magic, and
6555 @dircategory. From Karl Berry <karl@freefriends.org>.
6557 2007-07-29 Ulrich Drepper <drepper@redhat.com>
6560 * io/Makefile (headers): Add bits/fcntl2.h.
6562 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6564 (__CPU_EQUAL_S): Likewise.
6566 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6567 (tests): Add tst-cpuset.
6568 * posix/sched_cpualloc.c: New file.
6569 * posix/sched_cpufree.c: New file.
6570 * posix/tst-cpuset.c: New file.
6571 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6573 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6574 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6575 macros. Define CPU_*_S macros.
6577 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6579 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6583 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6584 #.0g and value rounded to 1.0.
6585 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6587 2007-07-26 Jakub Jelinek <jakub@redhat.com>
6589 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6590 for int_frac_digits and frac_digits.
6592 * login/logout.c (logout): Avoid aliasing violation.
6593 * login/logwtmp.c (logwtmp): Likewise.
6595 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6597 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6599 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6601 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6603 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6606 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6608 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6610 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6611 char * to avoid warning.
6612 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6614 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6616 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6617 allocate_arrays): Cast second argument to charmap_find_symbol
6618 to char * to avoid warnings.
6620 * locale/programs/repertoire.c (repertoire_new_char): Change
6621 from_nr, to_nr and cnt to unsigned long, adjust printf format
6624 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6625 Cast second argument to new_element to char * to avoid warnings.
6627 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6629 * intl/gettextP.h (struct loaded_domain): Change plural to const
6630 struct expression *.
6631 * intl/plural-eval.c (plural_eval): Change first argument to
6632 const struct expression *.
6633 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6634 argument to const struct expression **.
6635 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6637 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6638 in call to __gettext_free_exp.
6640 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6641 unitialized wstring/wpattern var warnings.
6643 * posix/runtests.c (struct a_test): Make data field const char *.
6645 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6646 vars if not LDBL_MANT_DIG >= 106.
6648 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6650 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6651 __find_specmb to avoid warning.
6653 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6655 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6658 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6661 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6662 tv var when it will be actually used.
6664 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6667 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6668 char array resp. pointer.
6669 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6671 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6672 to const unsigned char **.
6673 (ucs4_to_cns11643): Change second argument to unsigned char *.
6674 * iconvdata/euc-tw.c (BODY): Change endp type to
6675 const unsigned char *.
6676 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6678 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6679 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6680 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6681 types to unsigned char pointers/arrays instead of char.
6682 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6684 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6685 * iconvdata/jis0212.h: Include assert.h.
6686 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6687 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6688 of trying to handle that.
6689 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6691 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6692 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6693 two dimensional const unsigned char arrays.
6694 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6695 Initialize endp to inptr to shut up a warning.
6697 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6700 * time/strptime_l.c (__strptime_internal): Silently ignore
6701 strftime modifiers and field width in recursive calls.
6703 * include/time.h (enum ptime_locale_status): Remove.
6704 (__strptime_internal): Remove decided and era_cnt arguments,
6705 add statep argument.
6706 * time/strptime_l.c (__strptime_internal): Remove decided
6707 and era_cnt arguments, add statep argument. Don't recompute
6708 any fields in recursive calls, only update caller's tm
6709 and state, if recursive call fails, don't change tm nor
6711 (get_alt_number): Adjust.
6712 (recursive): Adjust caller.
6713 (strptime): Likewise.
6714 * time/strptime.c (strptime): Likewise.
6716 2007-07-19 Jakub Jelinek <jakub@redhat.com>
6718 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6719 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6720 if from and to charsets are the same.
6721 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6722 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6723 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6725 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6727 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6728 Don't define wint_t when __need_mbstate_t unless it
6730 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6731 in the typedef if possible.
6732 * wctype/wctype.h (wint_t): Define by including
6733 wchar.h with __need_wint_t instead of including stddef.h
6734 with __need_wint_t and as fallback definining it ourselves.
6735 * iconv/gconv.h (__need_wint_t): Define before including
6737 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6738 or _GLIBCPP_USE_WCHAR_T.
6739 (__need_wchar_t): Don't define
6740 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6741 (__need_wint_t): Don't define before including stddef.h,
6742 define before including wchar.h only if _LIBC or
6743 _GLIBCPP_USE_WCHAR_T.
6744 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6745 * sysdeps/mach/hurd/_G_config.h: Likewise.
6746 * sysdeps/generic/_G_config.h: Likewise.
6747 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6748 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6749 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6750 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6752 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6754 * sysdeps/posix/posix_fallocate64.c: Undefine
6755 __posix_fallocate64_l64 before alias handling.
6756 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6757 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6758 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6759 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6761 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6763 2007-07-23 Jakub Jelinek <jakub@redhat.com>
6765 * locale/programs/ld-collate.c (atwc): New variable.
6766 (add_to_tablewc): New toplevel function, moved from collate_output.
6767 (collate_output): Remove add_to_tablewc nested function.
6769 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6770 (name_insert): New function.
6771 (write_output): Remove hash_table and hash_size vars and name_insert
6774 2007-07-24 Roland McGrath <roland@redhat.com>
6776 * Makerules (install-others-programs-nosubdir): New target.
6777 (install-no-libc.a-nosubdir): Depend on it.
6779 * iconv/Makefile (install-others-programs): Set this instead of
6781 * login/Makefile (install-others-programs): Likewise.
6782 * posix/Makefile (install-others-programs): Likewise.
6784 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6787 2007-07-23 Ulrich Drepper <drepper@redhat.com>
6789 * io/Makefile (tests): Add tst-posix_fallocate.
6790 * io/tst-posix_fallocate.c: New file.
6792 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6795 2007-07-22 Roland McGrath <roland@frob.com>
6797 * hurd/getdport.c: Add missing copyright year update.
6799 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6800 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6802 2007-07-22 Ulrich Drepper <drepper@redhat.com>
6804 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6806 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6807 O_CLOEXEC is needed.
6808 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6809 Avoid additional fcntl to set O_CLOEXEC if not needed.
6810 * nis/nss_compat/compat-initgroups.c: Likewise.
6811 * nis/nss_compat/compat-pwd.c: Likewise.
6812 * nis/nss_compat/compat-spwd.c: Likewise.
6814 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6817 * manual/errno.texi: Change ECANCELED value to 119.
6820 * mach/lock-intern.h: Include <sys/cdefs.h>.
6823 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6827 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6830 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6832 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6834 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6836 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6838 2007-07-21 Ulrich Drepper <drepper@redhat.com>
6840 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6841 descriptor received from nscd.
6843 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6845 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6846 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6847 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6848 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6849 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6850 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6852 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6855 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6858 * login/forkpty.c (forkpty): Close master and slave fds on
6859 fork failure. Patch by
6860 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6862 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6864 * include/features.h (__USE_ISOC95): New define.
6865 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6866 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6867 for -std=iso9899:199409.
6868 * CONFORMANCE: Remove comments about unsupported AMD1.
6870 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6872 * sysdeps/ia64/sched_cpucount.c: New file.
6873 * sysdeps/powerpc/sched_cpucount.c: New file.
6875 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6876 __BEGIN_DECLS/__END_DECLS around the prototype.
6877 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6878 pointer to const cpu_set_t.
6880 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6881 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6882 __need_size_t and include stddef.h.
6883 * sysvipc/sys/msg.h: Likewise.
6884 * posix/sched.h: Likewise.
6885 * hurd/hurd/signal.h (__need_size_t): Define.
6887 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6888 neither does signal.h in pedantic ISO C namespaces. stdio.h
6889 no longer defines wint_t or wchar_t.
6891 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6892 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6893 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6894 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6895 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6896 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6897 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6898 * debug/printf_chk.c (__printf_chk): Likewise.
6899 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6900 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6902 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6905 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6906 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6908 2007-07-16 Jakub Jelinek <jakub@redhat.com>
6911 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6912 * malloc/malloc.h (realloc): Likewise.
6914 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6915 if one of proc_file_chain streams has that fileno.
6916 * stdio-common/Makefile (tests): Add tst-popen2.
6917 * stdio-common/tst-popen2.c: New test.
6919 2007-07-14 Jakub Jelinek <jakub@redhat.com>
6921 * elf/ldconfig.c: Allow GPLv2 or any later version.
6922 * elf/readlib.c: Likewise.
6923 * elf/chroot_canon.c: Likewise.
6924 * elf/cache.c: Likewise.
6925 * nscd/mem.c: Likewise.
6926 * nscd/getpwuid_r.c: Likewise.
6927 * nscd/grpcache.c: Likewise.
6928 * nscd/aicache.c: Likewise.
6929 * nscd/getsrvbynm_r.c: Likewise.
6930 * nscd/nscd.c: Likewise.
6931 * nscd/servicescache.c: Likewise.
6932 * nscd/getsrvbypt_r.c: Likewise.
6933 * nscd/initgrcache.c: Likewise.
6934 * nscd/gethstbyad_r.c: Likewise.
6935 * nscd/gethstbynm2_r.c: Likewise.
6936 * nscd/getgrnam_r.c: Likewise.
6937 * nscd/nscd_setup_thread.c: Likewise.
6938 * nscd/getpwnam_r.c: Likewise.
6939 * nscd/gai.c: Likewise.
6940 * nscd/connections.c: Likewise.
6941 * nscd/dbg_log.c: Likewise.
6942 * nscd/cache.c: Likewise.
6943 * nscd/hstcache.c: Likewise.
6944 * nscd/nscd_conf.c: Likewise.
6945 * nscd/getgrgid_r.c: Likewise.
6946 * nscd/pwdcache.c: Likewise.
6947 * catgets/gencat.c: Likewise.
6948 * locale/programs/linereader.h: Likewise.
6949 * locale/programs/locarchive.c: Likewise.
6950 * locale/programs/ld-paper.c: Likewise.
6951 * locale/programs/locfile-kw.h: Likewise.
6952 * locale/programs/ld-address.c: Likewise.
6953 * locale/programs/xmalloc.c: Likewise.
6954 * locale/programs/ld-time.c: Likewise.
6955 * locale/programs/localedef.c: Likewise.
6956 * locale/programs/simple-hash.c: Likewise.
6957 * locale/programs/xstrdup.c: Likewise.
6958 * locale/programs/ld-numeric.c: Likewise.
6959 * locale/programs/locfile-kw.gperf: Likewise.
6960 * locale/programs/ld-collate.c: Likewise.
6961 * locale/programs/charmap-kw.gperf: Likewise.
6962 * locale/programs/charmap.h: Likewise.
6963 * locale/programs/charmap-kw.h: Likewise.
6964 * locale/programs/config.h: Likewise.
6965 * locale/programs/locfile.c: Likewise.
6966 * locale/programs/ld-ctype.c: Likewise.
6967 * locale/programs/charmap.c: Likewise.
6968 * locale/programs/ld-messages.c: Likewise.
6969 * locale/programs/repertoire.h: Likewise.
6970 * locale/programs/locale.c: Likewise.
6971 * locale/programs/ld-name.c: Likewise.
6972 * locale/programs/linereader.c: Likewise.
6973 * locale/programs/locfile.h: Likewise.
6974 * locale/programs/3level.h: Likewise.
6975 * locale/programs/ld-monetary.c: Likewise.
6976 * locale/programs/ld-measurement.c: Likewise.
6977 * locale/programs/charmap-dir.c: Likewise.
6978 * locale/programs/ld-identification.c: Likewise.
6979 * locale/programs/localedef.h: Likewise.
6980 * locale/programs/charmap-dir.h: Likewise.
6981 * locale/programs/repertoire.c: Likewise.
6982 * locale/programs/simple-hash.h: Likewise.
6983 * locale/programs/ld-telephone.c: Likewise.
6984 * locale/programs/locale-spec.c: Likewise.
6985 * locale/programs/locfile-token.h: Likewise.
6986 * posix/getconf.c: Likewise.
6987 * iconv/dummy-repertoire.c: Likewise.
6988 * iconv/iconv_charmap.c: Likewise.
6989 * iconv/iconvconfig.c: Likewise.
6990 * iconv/iconv_prog.c: Likewise.
6991 * malloc/memusagestat.c: Likewise.
6992 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6994 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6996 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6997 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6998 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6999 check for the first argument.
7001 2007-07-12 Jakub Jelinek <jakub@redhat.com>
7004 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7005 (__tgmath_real_type): Fix if expr is const int or other const
7006 qualified integral type.
7007 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7008 expressions and handle const qualified arguments.
7009 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7010 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7011 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7012 statement expressions.
7013 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7014 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7015 (__TGMATH_UNARY_IMAG): Define.
7016 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7017 * math/Makefile (tests): Add test-tgmath2.
7018 (CFLAGS-test-tgmath2.c): Add.
7019 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7020 count_cfloat, count_cldouble): New variables.
7022 (main): Check number of complex calls as well.
7023 (F(compile_test)): Add complex tests and tests with const qualified
7025 (y, z, ccount): Define.
7026 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7027 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7028 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7029 F(cproj)): New functions.
7030 * math/test-tgmath2.c: New test.
7032 2007-07-11 Jakub Jelinek <jakub@redhat.com>
7035 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7036 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7038 * dlfcn/Makefile (distribute): Add glreflib3.c.
7039 (module-names): Add glreflib3.
7040 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7042 (LDFLAGS_glreflib3.so): New.
7043 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7045 * dlfcn/glreflib3.c: New file.
7047 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7048 returned -1, return NULL.
7049 * intl/explodename.c (_nl_explode_name): Return -1 if
7050 _nl_normalize_codeset failed.
7052 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7054 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7055 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7056 and avoid branch misspredicts for > 31 bytes memset case.
7057 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7058 Remove toc ref to __cache_line_size.
7060 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7061 to get ISA-V2.0 branch hints.
7062 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7063 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7064 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7065 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7066 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7067 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7068 Remove toc ref to __cache_line_size.
7070 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7071 Include math_ldbl_opt.h.
7073 2007-07-10 Ulrich Drepper <drepper@redhat.com>
7076 * time/strptime_l.c (__strptime_internal): Implement greedy
7077 matching of weekday and month names.
7079 2007-07-09 Roland McGrath <roland@redhat.com>
7081 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7082 (ELF_NOTE_ABI): Use it.
7083 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7085 2007-07-09 Ulrich Drepper <drepper@redhat.com>
7087 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7088 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7090 2007-07-07 Ulrich Drepper <drepper@redhat.com>
7093 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7094 in loop to look for conversion specifier to avoid testing of
7096 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7097 * stdio-common/bug18.c: New file.
7098 * stdio-common/bug18a.c: New file.
7099 * stdio-common/bug19.c: New file.
7100 * stdio-common/bug19a.c: New file.
7102 2007-07-05 Mike Frysinger <vapier@gentoo.org>
7104 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7107 2007-07-01 Jakub Jelinek <jakub@redhat.com>
7109 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7110 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7111 Return NULL if mmap failed instead of asserting it does not.
7112 (calloc): Check for integer overflow.
7114 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7117 2007-07-03 Jakub Jelinek <jakub@redhat.com>
7120 * nis/nss-default.c: Include errno.h.
7121 (init): Preserve errno.
7123 2007-07-02 Ulrich Drepper <drepper@redhat.com>
7125 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7127 2007-06-30 Ulrich Drepper <drepper@redhat.com>
7129 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7131 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7133 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7135 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7137 * sysdeps/s390/dl-procinfo.c: New file.
7138 * sysdeps/s390/dl-procinfo.h: New file.
7139 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7141 2007-06-29 Jakub Jelinek <jakub@redhat.com>
7143 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7144 in PT_NOTE segments with multiple notes.
7145 * elf/readelflib.c (process_elf_file): Likewise.
7147 2007-06-22 Ulrich Drepper <drepper@redhat.com>
7149 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7152 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7154 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7156 2007-06-13 Jakub Jelinek <jakub@redhat.com>
7158 * include/link.h: Don't include rtld-lowlevel.h.
7159 (struct link_map): Remove l_scope_lock.
7160 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7161 (_dl_scope_free_list): New field (variable) in _rtld_global.
7162 (DL_LOOKUP_SCOPE_LOCK): Remove.
7163 (_dl_scope_free): New prototype.
7164 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7165 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7166 (_dl_profile_fixup): Likewise.
7167 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7168 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7169 THREAD_GSCOPE_RESET_FLAG around it.
7170 * elf/dl-close.c (_dl_close_worker): Don't use
7171 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7172 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7173 scopes were queued or if l_scope_mem has been abandoned.
7174 * elf/dl-open.c (_dl_scope_free): New function.
7175 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7176 * elf/dl-support.c (_dl_scope_free_list): New variable.
7177 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7178 Remove DL_LOOKUP_SCOPE_LOCK handling.
7179 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7181 * elf/dl-object.c (_dl_new_object): Don't use
7182 __rtld_mrlock_initialize.
7184 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7186 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7188 (rtld_global_ro): Likewise.
7190 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7192 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7193 Move PT_LOAD checking to...
7194 (_dl_addr_inside_object): ... here, new function.
7195 * elf/dl-sym.c (do_sym): If not l_contiguous,
7196 call _dl_addr_inside_object.
7197 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7198 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7199 * elf/dl-open.c (dl_open_worker): Likewise.
7200 (_dl_addr_inside_object): New function if IS_IN_rtld.
7201 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7202 holes are present or are PROT_NONE protected.
7203 * include/link.h (struct link_map): Add l_contiguous field.
7204 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7206 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7207 Tomas Janousek <tjanouse@redhat.com>
7208 Ulrich Drepper <drepper@redhat.com>
7211 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7212 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7214 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7215 unused member a bitmap.
7216 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7217 servers are configured.
7219 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7221 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7223 2007-06-17 Andreas Schwab <schwab@suse.de>
7225 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7227 2007-06-16 Andreas Jaeger <aj@suse.de>
7230 * sysdeps/unix/sysv/linux/sys/ptrace.h
7231 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7232 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7233 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7234 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7235 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7237 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7238 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7239 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7240 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7242 2007-06-16 Ulrich Drepper <drepper@redhat.com>
7245 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7246 determining whether there are IPv4/IPv6 addresses, ignore loopback
7249 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7251 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7252 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7253 as the return type. Change type of "r" variable to CMPtype.
7254 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7255 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7256 * soft-fp/gedf2.c (__gedf2): Likewise.
7257 * soft-fp/gesf2.c (__gesf2): Likewise.
7258 * soft-fp/getf2.c (__getf2): Likewise.
7259 * soft-fp/ledf2.c (__ledf2): Likewise.
7260 * soft-fp/lesf2.c (__lesf2): Likewise.
7261 * soft-fp/letf2.c (__letf2): Likewise.
7262 * soft-fp/unorddf2 (__unorddf2): Likewise.
7263 * soft-fp/unordsf2 (__unordsf2): Likewise.
7264 * soft-fp/unordtf2 (__unordtf2): Likewise.
7266 2007-06-09 Ulrich Drepper <drepper@redhat.com>
7268 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7269 make sure gcc doesn't mess around with this.
7271 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7273 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7275 2007-06-08 Jakub Jelinek <jakub@redhat.com>
7277 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7278 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7279 at most once per _dl_close_worker.
7281 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7283 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7284 __sched_cpucount as const.
7285 * posix/sched_cpucount.c: Adjust.
7287 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7288 instruction for counting bits.
7289 * sysdeps/x86_64/sched_cpucount.c: New file.
7291 2007-06-07 Ulrich Drepper <drepper@redhat.com>
7293 * configure.in: Avoid variable named BASH.
7294 * config.make.in: Likewise.
7295 Patch in part by Mike Frysinger.
7297 2007-06-06 Jakub Jelinek <jakub@redhat.com>
7300 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7301 pseudo-zeros as zero.
7302 * sysdeps/x86_64/ldbl2mpn.c: New file.
7303 * sysdeps/ia64/ldbl2mpn.c: New file.
7305 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7307 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7308 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7309 Remove unreachable code at the end.
7311 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7313 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7314 ldbl-128ibm in comment.
7315 (fpclassifyl): Correct classification of denormals.
7316 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7317 return value for MIN denormal. Rewrite using long double math too
7318 correctly handle denormals and canonicalize the results.
7320 2007-06-05 Jakub Jelinek <jakub@redhat.com>
7322 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7323 (__mpn_construct_long_double): Fix conversion where result ought
7324 to be smaller than __LDBL_MIN__, or the low double should be
7325 denormal. Fix decision where to negate low double - honor round
7327 * stdio-common/tst-sprintf2.c: Include string.h.
7328 (COMPARE_LDBL): Define.
7329 (TEST): Also test whether a string hexadecimal float representation
7330 can be parsed back to the number.
7331 (main): Add a couple of further tests.
7333 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7335 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7336 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7337 is non-zero, but smaller than 2 * __DBL_MIN__.
7338 * stdio-common/tst-sprintf2.c: New test.
7339 * stdio-common/Makefile (tests): Add tst-sprintf2.
7341 * math/test-misc.c (main): Don't run last batch of tests with
7342 IBM long double format.
7344 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7346 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7347 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7348 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7349 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7350 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7351 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7352 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7353 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7354 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7355 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7361 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7367 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7379 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7381 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7382 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7383 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7384 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7385 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7386 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7387 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7388 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7390 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7392 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7393 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7394 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7395 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7396 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7397 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7398 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7399 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7401 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7403 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7404 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7405 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7406 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7408 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7410 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7411 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7413 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7415 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7416 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7417 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7418 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7420 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7422 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7423 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7425 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7427 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7428 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7430 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7431 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7432 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7433 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7435 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7437 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7438 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7439 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7440 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7442 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7444 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7445 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7446 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7447 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7448 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7449 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7451 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7453 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7454 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7455 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7456 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7458 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7460 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7461 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7462 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7463 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7464 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7465 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7466 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7467 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7468 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7469 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7470 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7471 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7472 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7473 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7474 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7475 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7477 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7479 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7480 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7482 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7484 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7485 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7487 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7489 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7490 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7491 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7492 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7493 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7494 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7495 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7496 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7497 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7498 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7500 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7502 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7504 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7506 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7507 branch miss-predicts. Ensure that cache line crossing does not impact
7510 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7512 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7513 "../../powerpc32/power4/memcopy.h".
7514 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7515 "../../powerpc32/power4/wordcopy.c".
7517 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7519 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7520 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7521 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7522 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7523 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7524 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7526 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7528 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7530 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7532 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7533 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7534 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7535 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7536 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7537 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7538 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7539 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7541 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7543 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7545 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7547 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7548 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7549 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7550 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7551 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7552 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7553 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7555 2007-05-29 Roland McGrath <roland@redhat.com>
7557 * po/Makefile (po-sed-cmd): New variable.
7558 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7560 2007-05-29 Ulrich Drepper <drepper@redhat.com>
7562 * crypt/md5-crypt.c: Fix comment.
7564 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7565 of crashing. When this is the case or if the reply is malformed,
7566 don't try to close the new file descriptor since it does not
7568 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7570 2007-05-28 Jakub Jelinek <jakub@redhat.com>
7572 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7573 if __NR_utimensat is not defined.
7575 2007-05-26 Ulrich Drepper <drepper@redhat.com>
7577 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7579 2007-05-25 Jakub Jelinek <jakub@redhat.com>
7581 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7582 (open): Fix comment typos. Don't call __open_2 if flags
7583 is a compile time constant without O_CREAT.
7584 (__open64_2): Add nonnull attribute.
7585 (open64): Fix comment typos. Don't call __open64_2 if flags
7586 is a compile time constant without O_CREAT.
7587 (__openat_2): Add nonnull attribute, fix nonnull attribute
7589 (openat): Fix comment typos. Don't call __openat_2 if flags
7590 is a compile time constant without O_CREAT.
7591 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7593 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7594 is a compile time constant without O_CREAT.
7596 2007-05-24 Ulrich Drepper <drepper@redhat.com>
7598 * Makerules (sysd-rules): Define PTW for ptw-* files.
7599 * Versions: Define GLIBC_2.7 for libc.
7600 * include/stdio.h: Declare __fortify_fail.
7601 * debug/fortify_fail.c: New file.
7602 * debug/Makefile (routines): Add fortify_fail.
7603 * debug/chk_fail.c: Use __fortify_fail.
7604 * debug/stack_chk_fail.c: Likewise.
7605 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7606 __openat64_2 for GLIBC_2.7.
7607 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7608 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7609 and fails if necessary.
7610 * io/open64.c: Likewise.
7611 * io/openat.c: Likewise.
7612 * io/openat64.c: Likewise.
7613 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7614 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7615 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7616 * io/bits/fcntl2.h: New file.
7617 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7619 * include/bits/fcntl2.h: New file.
7620 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7622 * sysdeps/unix/sysv/linux/open_2.c: New file.
7624 2007-05-21 Ulrich Drepper <drepper@redhat.com>
7626 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7627 as second parameter to handle_intel.
7629 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7632 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7634 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7635 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7637 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7638 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7639 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7641 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7643 2007-05-21 Jakub Jelinek <jakub@redhat.com>
7646 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7647 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7648 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7650 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7653 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7654 reinitialize workend at the start of each do_positional format spec
7655 loop, free workstart before do_positional loops.
7656 (printf_unknown): Fix size of work_buffer.
7657 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7659 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7660 (public_sET_STATe): If ms->version < 3, put all chunks into
7661 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7664 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7665 * malloc/hooks.c: Likewise.
7666 * malloc/arena.c: Likewise.
7667 * malloc/malloc.c (do_check_malloc_state): Don't assert
7668 n_mmaps is not greater than n_mmaps_max. This removes the need
7669 for the previous change.
7671 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7674 2007-05-19 Ulrich Drepper <drepper@redhat.com>
7676 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7677 Define for kernel >= 2.6.22.
7679 2007-05-18 Ulrich Drepper <drepper@redhat.com>
7681 * elf/dl-close.c (_dl_close_worker): When removing object from
7682 global scope, wait for all lookups to finish afterwards.
7683 * elf/dl-open.c (add_to_global): When global scope array must
7684 grow, allocate a new one and free old array only after all
7686 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7687 (_dl_lookup_symbol_x): Likewise.
7688 * elf/dl-support.c: Define _dl_wait_lookup_done.
7689 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7690 _dl_wait_lookup_done.
7692 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7693 not overlapping with arena.
7695 * malloc/mcheck.c (reallochook): If size==0, free the block.
7697 * rt/tst-shm.c: Use fstat64 instead of fstat.
7699 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7700 __NR_sync_file_range is not defined.
7702 2007-05-17 Ulrich Drepper <drepper@redhat.com>
7704 Dummy files to prevent stub versions from being used.
7705 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7706 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7707 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7708 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7710 * version.h (VERSION): Set to 2.6.90.
7712 2007-05-14 Ulrich Drepper <drepper@redhat.com>
7714 * version.h (VERSION): Define to 2.6.
7715 * include/features.h (__GLIBC_MINOR__): Define to 6.
7717 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7719 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7722 2007-05-13 Ulrich Drepper <drepper@redhat.com>
7724 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7725 number of mmaps. n_mmaps_max is the target.
7726 * malloc/hooks.c: Likewise.
7727 * malloc/arena.c: Likewise.
7729 2007-05-12 Andreas Jaeger <aj@suse.de>
7731 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7734 2007-05-11 Ulrich Drepper <drepper@redhat.com>
7736 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7737 adding new variables.
7739 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7740 optimize. Completely extend global scope array before making the
7741 new entries visible.
7743 2007-05-10 Ulrich Drepper <drepper@redhat.com>
7745 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7746 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7749 * include/link.h: Move l_version and l_nversion members around to
7752 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7754 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7755 (__sched_setaffinity_new): If syscall was successful and
7756 RESET_VGETCPU_CACHE is defined, use it before returning.
7757 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7759 * io/sys/stat.h: Make sure struct timespec is defined for
7762 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7764 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7765 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7766 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7767 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7768 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7769 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7770 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7771 * io/sys/stat.h: Declare utimensat, futimens.
7772 * io/utimensat.c: New file.
7773 * io/futimens.c: New file.
7774 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7775 * sysdeps/unix/sysv/linux/futimens.c: New file.
7776 * io/Makefile (routines): Add utimensat, futimens.
7777 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7778 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7779 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7782 * include/sys/cdefs.h: Redefine __nonnull so that test for
7783 incorrect parameters in the libc code itself are not omitted.
7785 2007-05-09 Jakub Jelinek <jakub@redhat.com>
7787 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7788 exception in addition to inexact when asked to raise only FE_INEXACT.
7791 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7794 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7797 * string/strfry.c (strfry): Make result more random.
7799 2007-05-07 Richard Henderson <rth@redhat.com>
7801 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7802 if __NO_LONG_DOUBLE_MATH.
7803 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7804 available in the compiler, add .arch directive to the assembly.
7806 2007-05-07 Jakub Jelinek <jakub@redhat.com>
7808 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7809 compat_symbol to GLIBC_2_1.
7810 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7811 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7812 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7813 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7814 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7815 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7816 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7818 (__isnanl): New compat_symbol.
7820 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7821 Jakub Jelinek <jakub@redhat.com>
7823 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7824 (new_heap): Initialize mprotect_size.
7825 (grow_heap): When growing, only mprotect from mprotect_size till
7826 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7827 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7829 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
7830 Peter Bergner <bergner@us.ibm.com>
7832 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7833 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7834 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7835 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7836 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7837 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7838 Call __fe_mask_env() if all FP exceptions disabled.
7839 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7840 from old FPSCR to new fenv to propagate DFP rounding modes.
7841 Call __fe_mask_env() if FP exceptions previously enabled.
7842 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7843 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7844 transitioning from all exceptions disabled to any exception enabled
7846 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7847 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7848 when transitioning from all exceptions disabled to any exception
7849 enabled or visa versa.
7850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7851 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7857 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7860 * posix/unistd.h: Remove __THROW from fdatasync.
7862 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7865 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7867 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7869 * stdio-common/vfprintf.c (process_string_arg): Optimize
7870 ridiculous precision in wide char code printing multi-byte string.
7871 Reported by Jim Meyering <jim@meyering.net>.
7874 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7875 boundaries to work around systems with overlapping binary loading.
7876 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7878 2007-05-04 Ulrich Drepper <drepper@redhat.com>
7880 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7881 __mbsnrtowcs after last change.
7883 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7884 (get_ident): Likewise.
7886 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7888 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7889 with setting the sticky bit.
7890 * math/test-misc.c (main): Add more truncation tests.
7892 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
7894 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7895 double in the function declaration.
7896 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7897 double in the function declaration.
7898 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7899 float in the function declaration.
7900 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7901 float in the function declaration.
7903 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7904 denormal operands. Do not generate FP_EX_DENORM exception.
7905 (FP_UNPACK_RAW_EP): Ditto.
7906 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7907 undefined _FP_UNPACK_RAW_E.
7908 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7909 undefined _FP_UNPACK_RAW_EP.
7910 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7911 undefined _FP_PACK_RAW_E.
7912 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7913 undefined _FP_PACK_RAW_EP.
7915 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7917 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7920 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
7921 Jakub Jelinek <jakub@redhat.com>
7923 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7924 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7926 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7928 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7930 * math/test-misc.c (main): Add tests for rounding long double
7931 values close to smallest double denormalized value to double.
7933 2007-04-30 Joseph Myers <joseph@codesourcery.com>
7935 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7936 condition for truncating to 0. Set sticky bit for such
7939 2007-05-02 Jakub Jelinek <jakub@redhat.com>
7941 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7942 fixed length array for ignore.
7944 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7947 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7948 stack for large precisions.
7949 * stdio-common/test-vfprintf.c (main): Add test for large
7952 2007-04-30 Jakub Jelinek <jakub@redhat.com>
7954 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7956 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7959 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7960 account in the size check.
7961 * resolv/tst-inet_ntop.c: New test.
7962 * resolv/Makefile (tests): Add tst-inet_ntop.
7964 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7965 Jakub Jelinek <jakub@redhat.com>
7968 * malloc/malloc.c: Keep separate list for first blocks on the bin
7969 lists with a given size. This helps skipping over list elements
7970 we know won't fit in two places.
7971 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7973 2007-04-28 Ulrich Drepper <drepper@redhat.com>
7976 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7977 label to Teredo tunnel addresses 2001://32.
7979 2007-04-27 Ulrich Drepper <drepper@redhat.com>
7981 * locale/programs/ld-collate.c (collate_read): Allow order_start
7984 * locale/programs/ld-collate.c (collate_read): Fix printing of
7988 * locale/C-translit.h.in: Add entry for U2044.
7991 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7992 hexa-decimal floats without exponent.
7993 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7995 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7997 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7998 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7999 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8000 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8002 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8005 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8007 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8008 of 0 after the out_fail label.
8010 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8013 * iconv/gconv_charset.h (strip): Allow ':'.
8014 * iconv/iconv_open.c (iconv_open): Adjust comment.
8016 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8018 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8021 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8024 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8025 alignment of buffer and tmp_buffer.
8026 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8027 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8028 alignment of buffer.
8029 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8030 bigger than INT_MAX.
8031 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8032 h_errnop arguments. Fail if buflen is too small.
8033 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8035 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8038 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8039 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8041 2007-04-22 Roland McGrath <roland@redhat.com>
8043 * elf/elf.h (NT_PRXFPREG): New macro.
8045 2007-04-19 Andreas Jaeger <aj@suse.de>
8048 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8049 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8052 2007-04-19 Ulrich Drepper <drepper@redhat.com>
8054 * include/sys/mman.h: Mark madvise hidden.
8055 * misc/madvise.c: Add libc_hidden_def.
8057 2007-04-06 Jakub Jelinek <jakub@redhat.com>
8059 * nis/nis_domain_of.c (__nis_domain_of): New function.
8060 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8061 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8062 * nis/nis_call.c (rec_dirsearch): Likewise.
8063 (first_shoot): Likewise. Remove search_parent_first argument.
8064 (struct nis_server_cache): Rename search_parent_first field
8066 (nis_server_cache_search, nis_server_cache_add): Rename
8067 search_parent_first argument to search_parent.
8068 (__nisfind_server): Likewise. If search_parent, call
8071 2007-04-18 Ulrich Drepper <drepper@redhat.com>
8073 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8075 2007-04-17 Ulrich Drepper <drepper@redhat.com>
8078 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8080 2007-04-16 Ulrich Drepper <drepper@redhat.com>
8083 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8085 2007-04-15 Jakub Jelinek <jakub@redhat.com>
8087 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8088 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8089 current number of locales in SUPPORTED.
8090 (create_archive): Initialize serial.
8091 (enlarge_archive): Preserve aliases rather than duplicating
8094 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8096 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8097 after _IO_un_link, not before it.
8099 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8100 special case handling when wcp == wstartp + 1. Fix a comment typo.
8101 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8103 2007-03-30 Jakub Jelinek <jakub@redhat.com>
8105 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8106 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8107 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8109 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8110 _IO_file_xsgetn_maybe_mmap): Likewise.
8111 * libio/oldfileops.c (old_do_write): Likewise.
8112 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8113 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8114 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8115 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8116 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8117 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8118 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8119 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8120 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8121 _IO_file_underflow, _IO_file_underflow_mmap,
8122 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8123 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8124 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8125 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8126 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8127 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8128 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8129 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8130 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8131 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8132 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8133 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8134 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8135 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8136 _IO_adjust_column_internal, _IO_default_uflow_internal,
8137 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8138 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8139 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8140 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8141 _IO_file_close_it_internal, _IO_file_underflow_internal,
8142 _IO_file_overflow_internal, _IO_file_attach_internal,
8143 _IO_file_fopen_internal, _IO_file_sync_internal,
8144 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8145 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8146 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8147 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8148 _IO_seekpos_unlocked): Likewise.
8149 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8150 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8152 2007-04-16 Jakub Jelinek <jakub@redhat.com>
8154 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8155 argument in xmalloc size computation.
8157 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8159 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8160 math_opt_barrier and math_force_eval macros.
8162 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8165 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8166 * sysdeps/i386/fpu/math_private.h: New file.
8167 * sysdeps/x86_64/fpu/math_private.h: New file.
8168 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8169 math_force_eval macros. Use "+m" constraint on asm rather than
8171 * math/s_nextafter.c (__nextafter): Likewise.
8172 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8174 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8175 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8176 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8177 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8178 math_opt_barrier and math_force_eval macros.
8179 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8180 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8181 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8182 (__nexttoward): Use math_opt_barrier and
8183 math_force_eval macros. Use "+m" constraint on asm rather than
8184 "=m" and "m". Only use asm to force double result if
8185 FLT_EVAL_METHOD is 2.
8186 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8187 (__nexttowardf): Use math_opt_barrier and
8188 math_force_eval macros. Use "+m" constraint on asm rather than
8189 "=m" and "m". Only use asm to force double result if
8190 FLT_EVAL_METHOD is not 0.
8191 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8192 (__nexttowardf): Use math_opt_barrier and
8193 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8194 x to float using asm.
8195 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8196 (__nldbl_nexttowardf): Use math_opt_barrier and
8197 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8198 x to float using asm.
8199 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8200 (__nexttowardf): Use math_opt_barrier and math_force_eval
8201 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8202 * math/bug-nextafter.c (zero, inf): New variables.
8203 (main): Add new tests.
8204 * math/bug-nexttoward.c (zero, inf): New variables.
8205 (main): Add new tests.
8207 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8210 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8211 exceptions both in SW and MXCSR.
8212 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8213 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8214 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8215 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8216 in MXCSR if SSE is available.
8217 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8219 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8221 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8222 Return 0 rather than 1.
8223 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8224 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8225 * math/test-fenv.c (feholdexcept_tests): New function.
8228 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8231 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8234 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8237 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8238 Reported by David Anderson <davea42@earthlink.net>.
8240 2007-04-07 Ulrich Drepper <drepper@redhat.com>
8242 * posix/sys/wait.h: Remove unnecessary forward declaration.
8244 2007-04-05 Jakub Jelinek <jakub@redhat.com>
8246 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8247 with obj->do_servers after first_shoot.
8249 2007-04-03 Ulrich Drepper <drepper@redhat.com>
8251 * posix/Makefile (routines): Add sched_cpucount.
8252 (tests): Add tst-cpucount.
8253 * posix/sched_cpucount.c: New file.
8254 * posix/tst-cpucount.c: New file.
8255 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8256 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8257 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8258 * posix/sched.h: Define CPU_COUNT.
8260 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8262 * posix/fnmatch.c (STRUCT): Define.
8263 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8264 * posix/fnmatch_loop.c (struct STRUCT): New type.
8265 (FCT): Add ends argument. If ends != NULL and normal * is
8266 seen in the pattern, store current pattern and string pointers
8267 and return. Adjust recursive calls.
8268 (EXT): Adjust FCT callers.
8269 (STRUCT): Undef at the end of the file.
8270 * posix/Makefile (tests): Add tst-fnmatch2.
8271 * posix/tst-fnmatch2.c: New test.
8273 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8275 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8278 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8279 Change last argument to unsigned int.
8281 2007-03-23 Jakub Jelinek <jakub@redhat.com>
8283 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8285 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8287 * config.h.in (HAVE_LIBCAP): Add.
8288 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8290 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8291 free_caps. Cast away const from 4th cap_set_flag argument.
8293 2007-03-26 Ulrich Drepper <drepper@redhat.com>
8295 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8297 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8298 Add sync_file_range.
8299 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8301 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8303 * sysdeps/powerpc/bits/atomic.h
8304 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8305 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8306 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8307 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8308 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8309 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8310 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8311 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8312 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8313 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8314 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8315 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8316 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8317 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8318 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8319 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8320 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8321 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8322 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8323 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8325 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8327 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8328 (__cache_line_size): Define the variable here. Add
8329 attribute_hidden, remove weak_extern.
8330 (__libc_start_main): Set __cache_line_size
8332 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8333 (__cache_line_size): Define the variable here. Add
8334 attribute_hidden, remove weak_extern.
8335 (DL_PLATFORM_AUXV): Set __cache_line_size
8337 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8338 weak_extern, add attribute_hidden.
8339 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8341 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8343 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8345 2007-03-26 Jakub Jelinek <jakub@redhat.com>
8348 * timezone/africa: Update from tzdata2007d.
8349 * timezone/asia: Likewise.
8350 * timezone/australasia: Likewise.
8351 * timezone/backward: Likewise.
8352 * timezone/europe: Likewise.
8353 * timezone/iso3166.tab: Likewise.
8354 * timezone/leapseconds: Likewise.
8355 * timezone/northamerica: Likewise.
8356 * timezone/southamerica: Likewise.
8357 * timezone/zone.tab: Likewise.
8359 * timezone/private.h: Update from tzcode2007d.
8360 * timezone/zdump.c: Likewise.
8361 * timezone/zic.c: Likewise.
8363 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8365 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8366 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8368 (nis_server_cache_search, nis_server_cache_add): New functions.
8369 (__nisfind_server): Use them. Add dbp and flags argument, if
8370 call __nisbind_create.
8371 (__nisbind_create): Add server_used and current_ep arguments,
8372 only call __nis_findfastest if server_used is ~0.
8373 (__do_niscall2, __prepare_niscall): Adjust callers.
8374 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8375 ckey_cache_euid, ckey_cache_lock): New variables.
8376 (get_ckey): New function.
8377 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8378 __pmap_getnisport. Save __pmap_getnisport result in
8379 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8381 * nis/nis_lookup.c (nis_lookup): Likewise.
8382 * nis/nis_table.c (nis_list): Likewise.
8383 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8386 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8387 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8388 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8389 _nss_nisplus_getservbyport_r): Likewise.
8390 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8391 _nss_nisplus_getnetbyaddr_r): Likewise.
8392 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8393 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8394 _nss_nisplus_getntohost_r): Likewise.
8395 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8396 _nss_nisplus_getrpcbynumber_r): Likewise.
8398 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8400 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8401 * configure: Rebuilt.
8403 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8405 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8407 2006-06-07 Joseph Myers <joseph@codesourcery.com>
8410 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8413 2007-03-18 Jakub Jelinek <jakub@redhat.com>
8415 * nscd/gai.c: Include alloca.h.
8416 (__libc_use_alloca): Define.
8418 2007-03-16 Jakub Jelinek <jakub@redhat.com>
8420 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8422 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8423 (DL_DST_REQUIRED): Adjust user.
8425 * include/dlfcn.h (struct link_map): New forward decl.
8427 * inet/getnameinfo.c: Include stddef.h.
8428 (getnameinfo): Use offsetof.
8430 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8432 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8434 * string/strerror_l.c: Include stdlib.h.
8436 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8437 * config.make.in (gnu89-inline-CFLAGS): New variable.
8438 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8440 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8441 * argp/argp.h: Use it.
8442 * bits/mathinline.h: Likewise.
8443 * bits/sigset.h: Likewise.
8444 * bits/string.h: Likewise.
8445 * ctype/ctype.h: Likewise.
8446 * hurd/hurd.h: Likewise.
8447 * hurd/hurd/fd.h: Likewise.
8448 * hurd/hurd/port.h: Likewise.
8449 * hurd/hurd/signal.h: Likewise.
8450 * hurd/hurd/threadvar.h: Likewise.
8451 * hurd/hurd/userlink.h: Likewise.
8452 * io/sys/stat.h: Likewise.
8453 * libio/bits/stdio.h: Likewise.
8454 * libio/bits/stdio2.h: Likewise.
8455 * mach/lock-intern.h: Likewise.
8456 * mach/mach/mig_support.h: Likewise.
8457 * math/bits/cmathcalls.h: Likewise.
8458 * posix/bits/unistd.h: Likewise.
8459 * socket/bits/socket2.h: Likewise.
8460 * stdlib/bits/stdlib.h: Likewise.
8461 * stdlib/stdlib.h: Likewise.
8462 * string/argz.h: Likewise.
8463 * string/bits/string2.h: Likewise.
8464 * string/bits/string3.h: Likewise.
8465 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8466 * sysdeps/generic/inttypes.h: Likewise.
8467 * sysdeps/generic/machine-lock.h: Likewise.
8468 * sysdeps/generic/machine-sp.h: Likewise.
8469 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8470 * sysdeps/i386/i486/bits/string.h: Likewise.
8471 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8472 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8473 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8474 * sysdeps/mach/i386/machine-lock.h: Likewise.
8475 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8476 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8477 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8478 * sysdeps/s390/bits/string.h: Likewise.
8479 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8480 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8481 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8482 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8483 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8484 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8485 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8486 * wcsmbs/bits/wchar2.h: Likewise.
8487 * wcsmbs/wchar.h: Likewise.
8488 * stdlib/gmp.h: Likewise. Include <features.h> to get
8489 __extern_inline definition.
8491 2007-03-15 Jakub Jelinek <jakub@redhat.com>
8493 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8497 * math/libm-test.inc (log_test): Test -Inf and NaN.
8498 (log10_test, log1p_test, log2_test): Test -Inf.
8499 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8500 FE_INVALID when argument is qNaN.
8501 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8502 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8503 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8504 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8505 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8506 testb $4, %ah and jump if non-zero.
8507 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8508 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8511 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8512 ancestors with the same depths.
8513 Patch by Niels Moeller <nisse@lysator.liu.se>.
8514 (filter_doc): Don't crash if argp is NULL.
8515 * argp/Makefile (tests): Add tst-argp2.
8516 * argp/tst-argp2.c: New test.
8519 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8521 (updwtmp_file): Likewise.
8524 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8525 (inet6_opt_append): Don't check extlen is big enough if extbuf
8527 (inet6_opt_finish): Likewise.
8528 * inet/Makefile (tests): Add test-inet6_opt.
8529 * inet/test-inet6_opt.c: New test.
8531 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8532 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8533 NLMSG_ERR. Instead use a page sized buffer.
8534 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8537 2007-03-14 Richard Henderson <rth@redhat.com>
8539 * sysdeps/alpha/fpu/s_llround.c: New file.
8540 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8541 * sysdeps/alpha/fpu/s_lround.c: New file.
8542 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8543 * sysdeps/alpha/fpu/s_round.c: New file.
8544 * sysdeps/alpha/fpu/s_roundf.c: New file.
8545 * sysdeps/alpha/fpu/s_trunc.c: New file.
8546 * sysdeps/alpha/fpu/s_truncf.c: New file.
8548 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8549 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8550 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8551 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8552 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8553 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8555 * sysdeps/alpha/fpu/s_fmax.S: New file.
8556 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8557 * sysdeps/alpha/fpu/s_fmin.S: New file.
8558 * sysdeps/alpha/fpu/s_fminf.S: New file.
8559 * sysdeps/alpha/fpu/s_isnan.c: New file.
8560 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8561 * sysdeps/alpha/fpu/s_llrint.c: New file.
8562 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8563 * sysdeps/alpha/fpu/s_lrint.c: New file.
8564 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8565 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8566 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8568 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8569 (__fdimf, fdimf, __fdim, fdim): Remove.
8570 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8571 (__isnanf, __isnan, __isnanl): New.
8573 2007-03-13 Richard Henderson <rth@redhat.com>
8575 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8577 2007-03-13 Richard Henderson <rth@redhat.com>
8579 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8580 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8581 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8582 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8583 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8584 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8586 2007-03-13 Richard Henderson <rth@redhat.com>
8588 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8589 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8590 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8591 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8592 Move to dl-auxv.h; initialize instead of extern weak.
8593 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8595 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8596 Extern instead of initialized.
8598 2007-03-13 Richard Henderson <rth@redhat.com>
8600 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8601 __sigsuspend_nocancel.
8603 2007-03-06 Ulrich Drepper <drepper@redhat.com>
8605 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8606 172.16/12 address range.
8608 2007-03-02 Jakub Jelinek <jakub@redhat.com>
8610 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8611 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8614 2007-03-01 Jakub Jelinek <jakub@redhat.com>
8617 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8619 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8621 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8622 for x qNaN and y either +-inf or non-integer value.
8623 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8624 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8625 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8627 2007-02-10 Mike Frysinger <vapier@gentoo.org>
8629 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8630 from sysdep_headers.
8632 2007-02-28 Jakub Jelinek <jakub@redhat.com>
8634 * time/tzfile.c (find_transition): Instead of a linear search try to
8635 guess the transition index, use a linear search if the result is at
8636 most 10 transitions away from the guess or binary search otherwise.
8638 2007-02-27 Jakub Jelinek <jakub@redhat.com>
8640 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8641 memory reallocation.
8643 2007-02-21 Ulrich Drepper <drepper@redhat.com>
8645 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8647 Optimize use of TOLOWER.
8650 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8651 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8652 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8655 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8656 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8659 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8660 (open_dir_stream): Likewise.
8661 * io/Makefile (tests): Add bug-ftw5.
8662 * io/bug-ftw5.c: New file.
8664 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8665 * nscd/servicescache.c (cache_addserv): Likewise.
8667 * nscd/grpcache.c (cache_addgr): In case a record changed on
8668 refresh, adjust key_copy.
8671 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8672 refresh, adjust key_copy.
8675 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8677 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8679 2007-02-19 Ulrich Drepper <drepper@redhat.com>
8681 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8684 * stdio-common/vfscanf.c: Small cleanups throughout.
8686 2007-02-18 Ulrich Drepper <drepper@redhat.com>
8689 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8690 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8691 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8692 Patch by Jared Casper <jaredcasper@gmail.com>.
8694 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8695 * sysdeps/unix/opendir.c: Likewise.
8696 * sysdeps/unix/readdir.c: Likewise.
8699 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8701 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8703 * stdio-common/vfscanf.c: Fix problems in width accounting.
8704 * stdio-common/tst-sscanf.c (double_tests): New tests.
8705 (main): Hook them up.
8707 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8708 More simplifications of floating-point reader.
8710 * stdio-common/Makefile (tests): Add tst-swscanf.
8711 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8713 * stdio-common/tst-swscanf.c: New file.
8715 2007-02-17 Ulrich Drepper <drepper@redhat.com>
8718 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8719 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8720 Remove using for __jmp_buf_tag.
8721 * locale/locale.h (struct lconv): Also define in std namespace.
8722 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8725 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8726 using __libc_enable_secure.
8729 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8732 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8733 of names for ellipsises.
8736 * malloc/memusage.sh: Cleanups.
8737 * debug/xtrace.sh: Quoting and trap changes.
8739 2007-02-16 Ulrich Drepper <drepper@redhat.com>
8741 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8743 * locale/iso-3166.def: Update entry for Serbia.
8744 * locale/iso-4217.def: Define RSD, remove CSD.
8746 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8747 and 64-bit operations.
8750 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8753 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8756 2007-02-15 Ulrich Drepper <drepper@redhat.com>
8759 * assert/assert.h (assert): Simplify.
8760 (assert_perror): Likewise.
8761 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8763 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8766 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8767 change: don't pass NULL in place of an integer.
8769 2007-02-02 Bruno Haible <bruno@clisp.org>
8772 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8773 Add mapping for U+327E.
8774 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8775 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8776 mapping of 0xD9 0xE8.
8777 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8779 Reported by Jungshik Shin <jungshik@google.com>.
8782 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8783 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8784 Reported by Jungshik Shin <jungshik@google.com>.
8786 2007-02-14 Ulrich Drepper <drepper@redhat.com>
8788 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8792 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8793 byte variants. Patch mostly be tom@tommay.net.
8795 2007-02-14 Jakub Jelinek <jakub@redhat.com>
8798 * posix/glob.c (attribute_hidden): Define if not defined.
8799 (glob): Unescape dirname, filename or username when needed and not
8800 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8801 is NULL. Handle unescaped [ in pattern without closing ].
8802 Don't pass GLOB_CHECK down to recursive glob for directories.
8803 (__glob_pattern_type): New function.
8804 (__glob_pattern_p): Implement using __glob_pattern_type.
8805 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8806 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8807 Remove unreachable code.
8808 * posix/globtest.sh: Add a couple of new tests.
8810 2007-02-13 Ulrich Drepper <drepper@redhat.com>
8812 * po/ru.po: Update from translation team.
8814 2007-02-12 Jakub Jelinek <jakub@redhat.com>
8816 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8817 to the list of i486+ CPUs.
8818 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8820 2007-02-12 Ulrich Drepper <drepper@redhat.com>
8822 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8823 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8826 2007-02-09 Ulrich Drepper <drepper@redhat.com>
8828 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8830 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8831 * resolv/res_mkquery.c: Define __res_nopt.
8832 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8833 try adding EDNS0 record.
8834 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8835 EDNS0 record was send make sure we don't try it again.
8836 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8837 * include/resolv.h: Declare __res_nopt.
8839 2007-02-08 Jakub Jelinek <jakub@redhat.com>
8842 * time/strptime_l.c (__strptime_internal): Set have_mon for
8843 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8844 have been computed from tm_yday and tm_year. Don't crash
8845 in day_of_the_week or day_of_the_year if not have_mon
8846 and tm_mon contains bogus value.
8847 * time/Makefile (tests): Add tst-strptime3.
8848 * time/tst-strptime3.c: New test.
8850 2007-02-05 Jakub Jelinek <jakub@redhat.com>
8853 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8854 bit for RE_HAT_LISTS_NOT_NEWLINE.
8855 (build_charclass_op): Remove bogus comment.
8856 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8857 * posix/bug-regex27.c: New test.
8858 * posix/bug-regex28.c: New test.
8860 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8862 * po/sv.po: Update from translation team.
8864 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8866 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8868 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8870 * include/locale.h (__uselocale): Add libc_hidden_proto.
8871 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8873 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8876 2007-02-01 Ulrich Drepper <drepper@redhat.com>
8878 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8880 (PTR_DEMANGLE): Real definition now that it's not the same as
8882 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8884 * string/strerror_l.c: New file.
8885 * string/Makefile (routines): Add strerror_l.
8886 * string/string.h: Declare strerror_l.
8887 * string/Versions: Export strerror_l for GLIBC_2.6.
8889 2007-01-31 Ulrich Drepper <drepper@redhat.com>
8891 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8892 as parameter. Construct request record. Try sending request
8893 before the first poll use, it usually succeeds. Adjust all
8895 * nscd/nscd-client.h: Define MAXKEYLEN.
8896 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8898 2007-01-31 Jakub Jelinek <jakub@redhat.com>
8900 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8902 * nscd/nscd_helper.c: Include string.h.
8903 (__nscd_cache_search): Remove const qualifier from return value.
8904 On strict alignment architectures check hash entry and data head
8906 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8907 mmapped data during GC cycle contains garbage. If
8908 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8909 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8911 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8912 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8913 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8914 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8915 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8917 2007-01-30 Ulrich Drepper <drepper@redhat.com>
8919 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8921 2007-01-26 Ulrich Drepper <drepper@redhat.com>
8923 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8924 names not numbers in cfi_*.
8926 2007-01-26 Andreas Jaeger <aj@suse.de>
8928 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8929 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8930 Correct values of PER_HPUX and PER_OSF4.
8932 2007-01-24 Ulrich Drepper <drepper@redhat.com>
8934 * elf/dl-minimal.c: Undefine _itoa first.
8935 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8936 * malloc/mtrace.c: Revert last change.
8937 * posix/wordexp.c: Likewise.
8939 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8941 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8942 and __geode__ to the list of i486+ CPUs.
8943 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8945 2007-01-23 Ulrich Drepper <drepper@redhat.com>
8947 * stdio-common/_itoa.c: Include <limits.h>.
8948 * stdio-common/_itowa.c: Likewise.
8950 2007-01-22 Ulrich Drepper <drepper@redhat.com>
8952 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8954 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8956 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8958 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8962 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8963 * stdio-common/Makefile (tests): Add bug17.
8964 * stdio-common/bug17.c: New file.
8966 2007-01-19 Ulrich Drepper <drepper@redhat.com>
8968 * iconvdata/brf.c: New file.
8969 * iconvdata/testdata/BRF: New file.
8970 * iconvdata/testdata/BRF..UTF8: New file.
8971 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8972 * iconvdata/Makefile: Add rules to build BRF.
8973 * iconvdata/TESTS: Add BRF entry.
8974 * iconvdata/gconv-modules: Likewise.
8975 * iconvdata/tst-tables.sh: Likewise.
8977 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8979 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8980 type `long long int', not `long int'.
8983 2007-01-18 Ulrich Drepper <drepper@redhat.com>
8985 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8986 of values on 64-bit platforms which are too large.
8988 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8989 Joe Kerian <jkerian@us.us.ibm.com>
8992 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8993 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8994 (__copysignl): Use signbit() for comparison.
8995 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8996 SET_LDOUBLE_WORDS64.
8999 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9000 (__ceill): Remove calls to fegetround(), fesetround().
9001 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9002 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9003 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9005 2007-01-17 Jakub Jelinek <jakub@redhat.com>
9007 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9009 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9011 2007-01-17 Ulrich Drepper <drepper@redhat.com>
9013 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9015 * csu/libc-start.c: Likewise.
9017 2007-01-16 Ulrich Drepper <drepper@redhat.com>
9019 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9022 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9024 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9026 (handle_request): Remove unnecessary tests.
9028 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9030 2007-01-15 Jakub Jelinek <jakub@redhat.com>
9032 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9033 workbits in semi-raw fraction.
9035 * math/test-misc.c: Add new tests.
9037 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9039 * math/basic-test.c: Include test-skeleton.c.
9040 (TEST_TRUNC): Define.
9041 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9042 (main): Rename to ...
9043 (do_test): ...this. Run new tests.
9044 (TEST_FUNCTION): Define.
9046 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9047 Joe Kerian <jkerian@us.us.ibm.com>
9050 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9051 handling for high words.
9052 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9053 and overflow for infinity.
9055 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9057 * nscd/connections.c (handle_request): Add a __builtin_expect.
9059 * nscd/connections.c (serv2db): Change type into structure which
9060 also says whether this is a request for data. Renamed to
9061 servinfo. All users changed.
9062 (handle_request): Much simpler test whether we should search the cache.
9064 * nscd/connections.c (handle_request): Fix thinko in selinux test
9067 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9068 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9069 it before getting dl_load_lock and then relock.
9070 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9071 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9072 case we unlocked the scope.
9073 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9074 _dl_lookup_symbol_x in case we locked the scope.
9075 (_dl_profile_fixup): Likewise.
9076 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9077 set DL_LOOKUP_SCOPE_LOCK.
9079 2007-01-13 Ulrich Drepper <drepper@redhat.com>
9081 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9082 CFLAGS-getsrvbynpt_r.c.
9083 * nscd/getsrvbynm_r.c: New file.
9084 * nscd/getsrvbypt_r.c: New file.
9085 * nscd/nscd_getserv_r.c: New file.
9086 * nscd/servicescache.c: New file.
9087 * nscd/Makefile (routines): Add nscd_getserv_r.
9088 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9089 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9090 CFLAGS-getsrvbypt_r.c.
9091 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9092 table. Add entries for services database.
9093 * nscd/connections.c (serv2str): Mark as const. Add entries for
9095 (dbs): Add .reset_res and servdb initialization.
9096 (serv2db): Add entries for services database.
9097 (verify_persistent_db): Accept dbnr == servdb.
9098 (invalidate_cache): Rewrite database name recognition to use a table.
9099 Call res_init() if .reset_res is set for database.
9100 (handle_request): Add code to handle services database.
9101 * nscd/gai.c: Don't define __getservbyname_r.
9102 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9103 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9104 (serv_response_header): Define.
9105 (struct datahead): Add serv_response_header member.
9106 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9108 * nscd/nscd.conf: Add entries for services database.
9109 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9110 Declare serv_iov_disabled.
9111 Declare addservbyname, readdservbyname, addservbyport, and
9113 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9114 (find_db): Fix error message.
9115 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9116 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9117 * nscd/selinux.c (perms): Add entries for services database.
9118 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9119 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9121 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9122 * nscd/hstcache.c: Likewise.
9123 * nscd/pwdcache.c: Likewise.
9125 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9126 computation of keylen.
9128 * include/string.h: Only redefine strndupa if this is really for
9131 2007-01-12 Ulrich Drepper <drepper@redhat.com>
9133 * nscd/nscd_gethst_r.c: Minor cleanups.
9135 * nscd/connections.c (handle_request): Check selinux permissions
9136 for all non-admin commands.
9138 * sysdeps/i386/i486/bits/atomic.h: Define
9139 atomic_compare_and_exchange_val_acq,
9140 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9141 using __sync_* built-ins for gcc >= 4.1.
9142 * sysdeps/x86_64/bits/atomic.h: Likewise.
9145 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9148 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9150 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9151 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9152 (do_test): Check errno and exit(0) if ENOSYS.
9154 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9156 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9157 thousands separators.
9158 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9159 * stdlib/tst-strtod4.c: New test.
9162 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9163 hexadecimal digit should accept just the initial 0.
9164 * stdlib/tst-strtod2.c (tests): New variable.
9165 (do_test): Run several tests rather than just one.
9167 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9169 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9170 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9172 2007-01-10 Ulrich Drepper <drepper@redhat.com>
9174 * io/fts.c: Make sure fts_cur is always valid after return from
9176 Patch by Miloslav Trmac <mitr@redhat.com>.
9178 2006-10-27 Richard Sandiford <richard@codesourcery.com>
9180 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9181 (R_MIPS_NUM): Bump by 1.
9183 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9185 * posix/execvp.c: Include alloca.h.
9186 (allocate_scripts_argv): Renamed to...
9187 (scripts_argv): ... this. Don't allocate buffer here nor count
9189 (execvp): Use alloca if possible.
9190 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9191 * posix/tst-vfork3.c: New test.
9193 2007-01-03 Ulrich Drepper <drepper@redhat.com>
9195 * string/Makefile (tst-strxfrm2-ENV): Define.
9196 * stdlib/Makefile (tst-strtod3-ENV): Define.
9198 2007-01-02 Ulrich Drepper <drepper@redhat.com>
9200 * posix/getconf.c: Update copyright year.
9201 * nss/getent.c: Likewise.
9202 * iconv/iconvconfig.c: Likewise.
9203 * iconv/iconv_prog.c: Likewise.
9204 * elf/ldconfig.c: Likewise.
9205 * catgets/gencat.c: Likewise.
9206 * csu/version.c: Likewise.
9207 * elf/ldd.bash.in: Likewise.
9208 * elf/sprof.c (print_version): Likewise.
9209 * locale/programs/locale.c: Likewise.
9210 * locale/programs/localedef.c: Likewise.
9211 * nscd/nscd.c (print_version): Likewise.
9212 * debug/xtrace.sh: Likewise.
9213 * malloc/memusage.sh: Likewise.
9214 * malloc/mtrace.pl: Likewise.
9215 * debug/catchsegv.sh: Likewise.
9217 2006-12-24 Ulrich Drepper <drepper@redhat.com>
9219 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9222 2006-12-23 Ulrich Drepper <drepper@redhat.com>
9224 * posix/wordexp.c: Remove some unnecessary tests.
9226 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9228 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9229 blacklist the group till after we look it up.
9231 2006-12-21 Ulrich Drepper <drepper@redhat.com>
9233 * include/atomic.h (atomic_forced_read): New macro.
9235 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9237 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9239 2006-12-19 Jakub Jelinek <jakub@redhat.com>
9241 * nss/getXXbyYY_r.c: Include atomic.h.
9242 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9243 add atomic_write_barrier () in between.
9245 * stdlib/Makefile (tests): Add tst-makecontext.
9246 * stdlib/tst-makecontext.c: New test.
9248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9249 (__makecontext): Don't realign uc_mcontext.uc_regs.
9251 2006-11-28 Jakub Jelinek <jakub@redhat.com>
9253 * elf/dl-support.c: Include dl-procinfo.h.
9254 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9255 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9256 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9258 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9259 hardcoded constants.
9260 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9261 PPC_PLATFORM_* macros for array designators.
9263 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
9265 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9266 names to the beginning.
9267 (_dl_powerpc_platforms): Add "power6x".
9268 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9269 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9270 (_DL_PLATFORMS_COUNT): Increase.
9271 (_dl_string_platform): Handle power6x case.
9272 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9273 PPC_FEATURE_POWER6_EXT): Define.
9274 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9276 2006-12-18 Jakub Jelinek <jakub@redhat.com>
9279 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9280 [-2^31 .. 2^31) range.
9281 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9283 * stdlib/tst-rand48-2.c: New test.
9284 * stdlib/Makefile (tests): Add tst-rand48-2.
9286 2006-12-14 Jakub Jelinek <jakub@redhat.com>
9288 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9290 2006-12-14 Ulrich Drepper <drepper@redhat.com>
9292 * misc/tst-pselect.c (do_test): Make sure the helper process is
9293 terminating when the test is aborted.
9295 2006-12-13 Ulrich Drepper <drepper@redhat.com>
9297 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9298 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9299 Handle relatime mount option.
9302 * libio/Makefile (tests): Add tst-setvbuf1.
9303 * libio/tst-setvbuf1.c: New file.
9305 2006-12-08 Jakub Jelinek <jakub@redhat.com>
9308 * libio/genops.c (__uflow): Fix a typo.
9309 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9310 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9311 the narrow buffer size.
9313 2006-11-24 Jakub Jelinek <jakub@redhat.com>
9316 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9317 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9318 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9320 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9321 _IO_wstr_finish): Likewise.
9322 * libio/wmemstream.c (open_wmemstream): Likewise.
9323 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9324 even for wide streams.
9326 2006-12-13 Jakub Jelinek <jakub@redhat.com>
9328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9331 2006-12-11 Ulrich Drepper <drepper@redhat.com>
9333 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9334 separators also if no non-zero digits found.
9335 * stdlib/Makefile (tests): Add tst-strtod3.
9337 2006-12-09 Ulrich Drepper <drepper@redhat.com>
9340 * include/features.h: Fix comment about default value for
9344 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9345 empty parsed strings.
9346 * stdlib/Makefile (tests): Add tst-strtod2.
9347 * stdlib/tst-strtod2.c: New file.
9350 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9352 * stdlib/Makefile (tests): Add tst-atof2.
9353 * stdlib/tst-atof2.c: New file.
9356 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9357 correctly if removing trailing zero of hex-float.
9358 * stdlib/Makefile (tests): Add tst-atof1.
9359 * stdlib/tst-atof1.c: New file.
9361 2006-12-09 Jakub Jelinek <jakub@redhat.com>
9363 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9364 Start searching for next comma at p rather than rest.
9365 * misc/Makefile (tests): Add tst-mntent2.
9366 * misc/tst-mntent2.c: New test.
9368 * misc/getusershell.c (initshells): Check for integer overflows.
9369 Make strings buffer one bigger as fgets always succeeds when second
9370 argument is 1. Don't use calloc for shells array. Disallow
9373 2006-12-08 Ulrich Drepper <drepper@redhat.com>
9375 * malloc/memusage.c: Handle realloc with new size of zero and
9376 non-NULL pointer correctly.
9377 (me): Really write first record twice.
9378 (struct entry): Make format bi-arch safe.
9379 (dest): Write out more realloc statistics.
9380 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9382 2006-12-05 Jakub Jelinek <jakub@redhat.com>
9384 * nis/nis_subr.c (nis_getnames): Revert last change.
9386 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9388 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9389 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9390 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9391 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9393 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9394 * io/tst-ttyname_r.c: New test.
9396 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9398 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9400 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
9402 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9405 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9407 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9408 `clone' function to ensure proper unwinding stop of gdb.
9409 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9411 2006-12-01 Ulrich Drepper <drepper@redhat.com>
9413 * nscd/nscd.init: Remove obsolete and commented-out -S option
9416 2006-11-23 Jakub Jelinek <jakub@redhat.com>
9419 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9422 * manual/string.texi (strtok): Remove duplicate paragraph.
9424 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9426 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9427 libgcc not supporting `rflags' unwinding (register # >= 17).
9429 2006-11-30 Jakub Jelinek <jakub@redhat.com>
9431 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9434 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9435 Jakub Jelinek <jakub@redhat.com>
9436 Jan Kratochvil <jan.kratochvil@redhat.com>
9438 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9440 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9441 'restore_rt' even in the 'signal' directory.
9442 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9444 2006-11-27 Jakub Jelinek <jakub@redhat.com>
9447 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9448 malloc crashed. Don't allocate memory unnecessarily in each
9451 2006-10-21 Jakub Jelinek <jakub@redhat.com>
9453 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9455 2006-11-20 Ulrich Drepper <drepper@redhat.com>
9457 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9459 2006-11-18 Bruno Haible <bruno@clisp.org>
9461 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9462 __sysconf only after having tried to call getgroups32.
9464 2006-11-19 Ulrich Drepper <drepper@redhat.com>
9466 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9467 addresses for IPv4 queries if they can be mapped.
9469 2006-11-16 Jakub Jelinek <jakub@redhat.com>
9471 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9472 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9473 (signmask): Add .size directive.
9474 (othermask): Add .type directive.
9476 2006-11-14 Ulrich Drepper <drepper@redhat.com>
9478 * po/nl.po: Update from translation team.
9480 * timezone/zdump.c: Redo fix for BZ #3137.
9482 2006-11-14 Jakub Jelinek <jakub@redhat.com>
9484 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9485 to first_unused after parsing :include: file.
9487 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9489 * timezone/africa: Update from tzdata2006o.
9490 * timezone/antarctica: Likewise.
9491 * timezone/asia: Likewise.
9492 * timezone/australasia: Likewise.
9493 * timezone/backward: Likewise.
9494 * timezone/europe: Likewise.
9495 * timezone/iso3166.tab: Likewise.
9496 * timezone/northamerica: Likewise.
9497 * timezone/southamerica: Likewise.
9498 * timezone/zone.tab: Likewise.
9500 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9501 on machines with 64-bit time_t.
9503 * timezone/checktab.awk: Update from tzcode2006o.
9504 * timezone/ialloc.c: Likewise.
9505 * timezone/private.h: Likewise.
9506 * timezone/scheck.c: Likewise.
9507 * timezone/tzfile.h: Likewise.
9508 * timezone/tzselect.ksh: Likewise.
9509 * timezone/zdump.c: Likewise.
9510 * timezone/zic.c: Likewise.
9513 * elf/ldconfig.c (main): Call setlocale and textdomain.
9514 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9517 * manual/argp.texi: Fix typos.
9518 * manual/charset.texi: Likewise.
9519 * manual/errno.texi: Likewise.
9520 * manual/filesys.texi: Likewise.
9521 * manual/lang.texi: Likewise.
9522 * manual/maint.texi: Likewise.
9523 * manual/memory.texi: Likewise.
9524 * manual/message.texi: Likewise.
9525 * manual/resource.texi: Likewise.
9526 * manual/search.texi: Likewise.
9527 * manual/signal.texi: Likewise.
9528 * manual/startup.texi: Likewise.
9529 * manual/stdio.texi: Likewise.
9530 * manual/sysinfo.texi: Likewise.
9531 * manual/syslog.texi: Likewise.
9532 * manual/time.texi: Likewise.
9533 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9536 * sunrpc/clnt_raw.c: Minimal message improvements.
9537 * sunrpc/pm_getmaps.c: Likewise.
9538 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9539 * nis/nis_print_group_entry.c: Likewise.
9540 * locale/programs/repertoire.c: Likewise.
9541 * locale/programs/charmap.c: Likewise.
9542 * malloc/memusage.sh: Likewise.
9543 * elf/dl-deps.c: Likewise.
9544 * locale/programs/ld-collate.c: Likewise.
9545 * libio/vswprintf.c: Likewise.
9546 * malloc/memusagestat.c: Likewise.
9547 * sunrpc/auth_unix.c: Likewise.
9548 * sunrpc/rpc_main.c: Likewise.
9549 * nscd/cache.c: Likewise.
9550 * locale/programs/repertoire.c: Unify output messages.
9551 * locale/programs/charmap.c: Likewise.
9552 * locale/programs/ld-ctype.c: Likewise.
9553 * locale/programs/ld-monetary.c: Likewise.
9554 * locale/programs/ld-numeric.c: Likewise.
9555 * locale/programs/ld-time.c: Likewise.
9556 * elf/ldconfig.c: Likewise.
9557 * nscd/selinux.c: Likewise.
9558 * elf/cache.c: Likewise.
9559 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9562 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9566 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9568 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9569 if N is one bigger than return value.
9570 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9571 and l1 last arguments, if buf is defined, verify the return value
9572 equals to strlen (buf) and verify no byte beyond passed length
9575 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9577 * po/sv.po: Update from translation team.
9579 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9581 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9584 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9586 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9589 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9590 Use __new_sys_siglist instead of _sys_siglist_internal as
9591 second macro argument.
9592 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9595 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9598 * posix/unistd.h (sysconf): Remove const attribute.
9600 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9601 temporary or deprecated addresses.
9602 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9604 * string/Makefile (tests): Add tst-strxfrm2.
9605 * string/tst-strxfrm2.c: New file.
9607 2006-10-09 Jakub Jelinek <jakub@redhat.com>
9609 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9610 rather than r->r_brk.
9612 2006-11-08 Jakub Jelinek <jakub@redhat.com>
9614 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9615 optimization even if needed > n.
9617 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9618 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9619 return false, otherwise return true.
9620 (cache_rpath): Return decompose_rpath return value.
9622 2006-11-07 Jakub Jelinek <jakub@redhat.com>
9624 * include/libc-symbols.h (declare_symbol): Rename to...
9625 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9626 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9628 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9630 * sysdeps/gnu/siglist.c: Likewise.
9632 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9634 * sysdeps/powerpc/fpu/bits/mathinline.h
9635 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9636 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9638 2006-11-05 Ulrich Drepper <drepper@redhat.com>
9640 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9641 Update handling of cache descriptor 0x49 for new models.
9642 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9645 2006-11-02 Jakub Jelinek <jakub@redhat.com>
9647 * malloc/memusage.c (dest): Reset not_me back to false after
9648 printing statistics.
9650 2006-11-02 Ulrich Drepper <drepper@redhat.com>
9652 * configure.in: Work around ld --help change and avoid -z relro
9653 test completely if the architecture doesn't care about security.
9655 2006-11-01 Ulrich Drepper <drepper@redhat.com>
9657 * po/sv.po: Update from translation team.
9659 2006-10-31 Ulrich Drepper <drepper@redhat.com>
9661 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9662 generate compatibility version.
9664 2006-10-29 Ulrich Drepper <drepper@redhat.com>
9666 * configure.in: Relax -z relro requirement a bit.
9668 * po/sv.po: Update from translation team.
9670 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9672 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9673 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9674 * elf/dl-close.c (_dl_close_worker): Likewise.
9675 * elf/dl-open.c (_dl_open_worker): Likewise.
9676 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9678 2006-10-27 Ulrich Drepper <drepper@redhat.com>
9680 * configure.in: Require assembler support for visibility, compiler
9681 support for visibility and aliases, linker support for various -z
9683 * Makeconfig: Remove conditional code which now is unnecessary.
9684 * config.h.in: Likewise.
9685 * config.make.in: Likewise.
9686 * dlfcn/Makefile: Likewise.
9687 * elf/Makefile: Likewise.
9688 * elf/dl-load.c: Likewise.
9689 * elf/rtld.c: Likewise.
9690 * include/libc-symbols.h: Likewise.
9691 * include/stdio.h: Likewise.
9692 * io/Makefile: Likewise.
9693 * io/fstat.c: Likewise.
9694 * io/fstat64.c: Likewise.
9695 * io/fstatat.c: Likewise.
9696 * io/fstatat64.c: Likewise.
9697 * io/lstat.c: Likewise.
9698 * io/lstat64.c: Likewise.
9699 * io/mknod.c: Likewise.
9700 * io/mknodat.c: Likewise.
9701 * io/stat.c: Likewise.
9702 * io/stat64.c: Likewise.
9703 * libio/stdio.c: Likewise.
9704 * nscd/Makefile: Likewise.
9705 * stdlib/Makefile: Likewise.
9706 * stdlib/atexit.c: Likewise.
9707 * sysdeps/generic/ldsodefs.h: Likewise.
9708 * sysdeps/i386/dl-machine.h: Likewise.
9709 * sysdeps/i386/sysdep.h: Likewise.
9710 * sysdeps/i386/i686/memcmp.S: Likewise.
9711 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9712 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9713 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9715 * Makerules: USE_TLS support is now default.
9716 * tls.make.c: Likewise.
9717 * csu/Versions: Likewise.
9718 * csu/libc-start.c: Likewise.
9719 * csu/libc-tls.c: Likewise.
9720 * csu/version.c: Likewise.
9721 * dlfcn/dlinfo.c: Likewise.
9722 * elf/dl-addr.c: Likewise.
9723 * elf/dl-cache.c: Likewise.
9724 * elf/dl-close.c: Likewise.
9725 * elf/dl-iteratephdr.c: Likewise.
9726 * elf/dl-load.c: Likewise.
9727 * elf/dl-lookup.c: Likewise.
9728 * elf/dl-object.c: Likewise.
9729 * elf/dl-open.c: Likewise.
9730 * elf/dl-reloc.c: Likewise.
9731 * elf/dl-support.c: Likewise.
9732 * elf/dl-sym.c: Likewise.
9733 * elf/dl-sysdep.c: Likewise.
9734 * elf/dl-tls.c: Likewise.
9735 * elf/ldconfig.c: Likewise.
9736 * elf/rtld.c: Likewise.
9737 * elf/tst-tls-dlinfo.c: Likewise.
9738 * elf/tst-tls1.c: Likewise.
9739 * elf/tst-tls10.h: Likewise.
9740 * elf/tst-tls14.c: Likewise.
9741 * elf/tst-tls2.c: Likewise.
9742 * elf/tst-tls3.c: Likewise.
9743 * elf/tst-tls4.c: Likewise.
9744 * elf/tst-tls5.c: Likewise.
9745 * elf/tst-tls6.c: Likewise.
9746 * elf/tst-tls7.c: Likewise.
9747 * elf/tst-tls8.c: Likewise.
9748 * elf/tst-tls9.c: Likewise.
9749 * elf/tst-tlsmod1.c: Likewise.
9750 * elf/tst-tlsmod13.c: Likewise.
9751 * elf/tst-tlsmod13a.c: Likewise.
9752 * elf/tst-tlsmod14a.c: Likewise.
9753 * elf/tst-tlsmod2.c: Likewise.
9754 * elf/tst-tlsmod3.c: Likewise.
9755 * elf/tst-tlsmod4.c: Likewise.
9756 * elf/tst-tlsmod5.c: Likewise.
9757 * elf/tst-tlsmod6.c: Likewise.
9758 * include/errno.h: Likewise.
9759 * include/link.h: Likewise.
9760 * include/tls.h: Likewise.
9761 * locale/global-locale.c: Likewise.
9762 * locale/localeinfo.h: Likewise.
9763 * malloc/arena.c: Likewise.
9764 * malloc/hooks.c: Likewise.
9765 * malloc/malloc.c: Likewise.
9766 * resolv/Versions: Likewise.
9767 * sysdeps/alpha/dl-machine.h: Likewise.
9768 * sysdeps/alpha/libc-tls.c: Likewise.
9769 * sysdeps/generic/ldsodefs.h: Likewise.
9770 * sysdeps/generic/tls.h: Likewise.
9771 * sysdeps/i386/dl-machine.h: Likewise.
9772 * sysdeps/ia64/dl-machine.h: Likewise.
9773 * sysdeps/ia64/libc-tls.c: Likewise.
9774 * sysdeps/mach/hurd/fork.c: Likewise.
9775 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9776 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9777 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9778 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9779 * sysdeps/s390/libc-tls.c: Likewise.
9780 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9781 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9782 * sysdeps/sh/dl-machine.h: Likewise.
9783 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9784 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9785 * sysdeps/x86_64/dl-machine.h: Likewise.
9787 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9788 split out locking and parameter checking.
9789 (_dl_close): Call _dl_close_worker after locking and checking.
9790 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9792 * elf/Makefile: Add rules to build and run tst-thrlock.
9793 * elf/tst-thrlock.c: New file.
9796 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9800 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9801 we are sure we do not need it anymore for _dl_close. Also move
9802 the asserts inside the lock region.
9803 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9805 2006-10-27 Jakub Jelinek <jakub@redhat.com>
9807 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9809 (_dl_lookup_symbol_x): Adjust caller.
9811 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9813 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9815 * elf/dl-libc.c: Revert l_scope name changes.
9816 * elf/dl-load.c: Likewise.
9817 * elf/dl-object.c: Likewise.
9818 * elf/rtld.c: Likewise.
9819 * elf/dl-close.c (_dl_close): Likewise.
9820 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9821 always use __rtld_mrlock_{change,done}. Always free old scope list
9822 here if not l_scope_mem.
9823 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9824 change. Never free scope list here. Just __rtld_mrlock_lock before
9825 the lookup and __rtld_mrlock_unlock it after the lookup.
9826 * elf/dl-sym.c: Likewise.
9827 * include/link.h (struct r_scoperec): Remove.
9828 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9829 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9831 2006-10-25 Ulrich Drepper <drepper@redhat.com>
9833 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9835 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9837 * configure.in: Disable building profile libraries by default.
9839 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9841 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9842 as signed longs, check for x_base + pos overflow.
9843 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9844 * sunrpc/tst-xdrmem2.c: New test.
9846 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9848 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9849 _dl_lookup_symbol_x code.
9851 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9853 * elf/dl-runtime.c: Include sysdep-cancel.h.
9854 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9855 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9856 instead of catomic_* macros.
9857 * elf/dl-sym.c: Include sysdep-cancel.h.
9858 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9859 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9860 * elf/dl-close.c: Include sysdep-cancel.h.
9861 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9862 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9863 * elf/dl-open.c: Include sysdep-cancel.h.
9864 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9865 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9867 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9870 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9871 fastbin rather than end of fastbin array.
9873 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9875 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9877 * sysdeps/x86_64/bits/atomic.h
9878 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9879 (catomic_decrement): Use correct body macro.
9881 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9883 * include/atomic.h: Add a unique prefix to all local variables
9885 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9887 2006-10-16 Ulrich Drepper <drepper@redhat.com>
9890 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9893 2006-10-14 Ulrich Drepper <drepper@redhat.com>
9895 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9897 2006-10-13 Ulrich Drepper <drepper@redhat.com>
9900 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9901 determine highest fast bin to consolidate, always look into all of
9903 (do_check_malloc_state): Only require for empty bins for large
9904 sizes in main arena.
9906 * libio/stdio.h: Add more __wur attributes.
9908 * elf/dl-minimal.c (realloc): Optimize last patch.
9910 2006-10-12 Richard Sandiford <richard@codesourcery.com>
9913 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9914 and use memcpy() if it does.
9916 2006-11-12 Andreas Jaeger <aj@suse.de>
9919 * manual/search.texi (Hash Search Function): Clarify.
9920 (Array Search Function): Clarify.
9922 2006-11-12 Joseph Myers <joseph@codesourcery.com>
9925 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9927 * math/atest-exp2.c (read_mpn_hex): Likewise.
9928 * math/atest-sincos.c (main): Likewise.
9930 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9932 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9933 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9934 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9936 * Versions.def: Add GLIBC_2.6 for libc.
9938 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9940 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9942 2006-10-11 Jakub Jelinek <jakub@redhat.com>
9944 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9946 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9948 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9949 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9951 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9953 * include/atomic.c: Define catomic_* operations.
9954 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9955 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9956 * malloc/memusage.c: Likewise.
9957 * gmon/mcount.c: Likewise.
9958 * elf/dl-close.c: Likewise.
9959 * elf/dl-open.c: Likewise.
9960 * elf/dl-profile.c: Likewise.
9961 * elf/dl-sym.c: Likewise.
9962 * elf/dl-runtime.c: Likewise.
9963 * elf/dl-fptr.c: Likewise.
9964 * resolv/res_libc.c: Likewise.
9966 2006-10-10 Ulrich Drepper <drepper@redhat.com>
9968 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9969 components which lack them.
9971 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9972 at least one entry consisting of the parameter concatenated with
9975 2006-10-10 Roland McGrath <roland@frob.com>
9977 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9978 * sysdeps/mach/hurd/futimes.c: Likewise.
9979 * sysdeps/mach/hurd/lutimes.c: Likewise.
9981 2006-10-09 Ulrich Drepper <drepper@redhat.com>
9982 Jakub Jelinek <jakub@redhat.com>
9984 Implement reference counting of scope records.
9985 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9986 from the list in objects which remain. Always allocate new scope
9988 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9989 don't resize, allocate a new one.
9990 * elf/dl-runtime.c: Update reference counters before using a scope
9992 * elf/dl-sym.c: Likewise.
9993 * elf/dl-libc.c: Adjust for l_scope name change.
9994 * elf/dl-load.c: Likewise.
9995 * elf/dl-object.c: Likewise.
9996 * elf/rtld.c: Likewise.
9997 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9998 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9999 Add l_scoperec_lock.
10000 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10001 * sysdeps/generic/rtld-lowlevel.h: New file.
10003 * include/atomic.h: Rename atomic_and to atomic_and_val and
10004 atomic_or to atomic_or_val. Define new macros atomic_and and
10005 atomic_or which do not return values.
10006 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10008 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10010 * po/sv.po: Update from translation team.
10012 2006-10-07 Ulrich Drepper <drepper@redhat.com>
10014 * Versions.def: Add GLIBC_2.6 to libpthread.
10016 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10017 (versioned_symbol): Likewise.
10018 (compat_symbol): Likewise.
10020 * po/tr.po: Update from translation team.
10022 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10024 * nis/Banner: Removed. It's been integral part forever and the
10025 author info is incomplete anyway.
10026 * libio/Banner: Likewise.
10028 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10029 code, make sure the nis_freeresult call doesn't crash and that the
10030 result is reported correctly.
10032 2006-09-27 Jakub Jelinek <jakub@redhat.com>
10034 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10035 when callback is NULL.
10037 * nis/Versions (libnss_nisplus): Add
10038 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10039 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10040 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10041 _nss_create_tablename): Rename to...
10042 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10043 ... these. No longer static.
10044 (internal_setgrent): Adjust users.
10045 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10046 Don't use locking around _nss_grp_create_tablename call.
10047 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10049 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10051 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10053 2006-10-06 Andreas Jaeger <aj@suse.de>
10055 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10057 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10059 * po/pl.po: Update from translation team.
10061 * nscd/nscd.c (main): Fix typo in message.
10062 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10064 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10067 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10068 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10069 (__sigprocmask): Define.
10071 2006-10-02 Ulrich Drepper <drepper@redhat.com>
10073 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10076 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10078 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10079 in oldtotal and newtotal calculation.
10080 * nscd/nscd-client.h (struct mapped_database): Add datasize
10082 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10083 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10085 (__nscd_cache_search): Add checks to make sure we never reference
10086 data beyond the current mapping.
10088 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10090 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10091 variables const to avoid compiler warnings.
10093 * io/fts.c (fts_close): Remove redundant checks.
10094 (fts_build): Likewise.
10095 (fts_palloc): Likewise.
10097 * manual/message.texi (Advanced gettext functions,
10098 Using gettextized software): Fix typos.
10100 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10102 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10103 explain why there are no leaks.
10105 2006-09-29 Ulrich Drepper <drepper@redhat.com>
10107 * libio/wmemstream.c: Include <wchar.h>.
10108 * libio/bug-wmemstream1.c: Likewise.
10109 * libio/tst-wmemstream1.c: Likewise.
10110 * libio/tst-wmemstream2.c: Likewise.
10112 * version.h (RELEASE): Bump to 2.5.
10113 * README: Regenerated.
10115 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10118 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10119 found no group members.
10120 Patch by Petr Baudis.
10122 2006-09-29 Jakub Jelinek <jakub@redhat.com>
10124 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10125 assert bootstrap_map.l_tls_modid is zero.
10126 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10129 2006-09-27 Ulrich Drepper <drepper@redhat.com>
10131 * libio/stdio.h: Move open_wmemstream prototype to ...
10132 * wcsmbs/wchar.h: ... here.
10134 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10137 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10138 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10139 __{,l}chown to handle the rest.
10140 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10141 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10142 __{,l}chown to handle the rest.
10143 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10145 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10146 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10149 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10150 time, rather allocate increasingly bigger arrays of pointers, if
10151 possible with alloca, if too large with malloc.
10153 2006-09-24 Jakub Jelinek <jakub@redhat.com>
10155 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10157 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10159 2006-09-24 Ulrich Drepper <drepper@redhat.com>
10161 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10163 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10164 IFA_F_HOMEADDRESS flag for interfaces.
10165 * include/ifaddrs.h (struct in6addrinfo): Define
10168 2006-09-21 Jakub Jelinek <jakub@redhat.com>
10171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10172 PTR_DEMANGLE3): Define.
10173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10174 PTR_DEMANGLE3): Likewise.
10175 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10176 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10178 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10180 2006-09-20 Jakub Jelinek <jakub@redhat.com>
10182 * po/libc.pot: Regenerated.
10183 * po/be.po: Updated.
10184 * po/ca.po: Likewise.
10185 * po/cs.po: Likewise.
10186 * po/da.po: Likewise.
10187 * po/de.po: Likewise.
10188 * po/el.po: Likewise.
10189 * po/en_GB.po: Likewise.
10190 * po/es.po: Likewise.
10191 * po/fi.po: Likewise.
10192 * po/fr.po: Likewise.
10193 * po/gl.po: Likewise.
10194 * po/hr.po: Likewise.
10195 * po/hu.po: Likewise.
10196 * po/ja.po: Likewise.
10197 * po/ko.po: Likewise.
10198 * po/nb.po: Likewise.
10199 * po/nl.po: Likewise.
10200 * po/pl.po: Likewise.
10201 * po/pt_BR.po: Likewise.
10202 * po/ru.po: Likewise.
10203 * po/rw.po: Likewise.
10204 * po/sk.po: Likewise.
10205 * po/sv.po: Likewise.
10206 * po/tr.po: Likewise.
10207 * po/zh_CN.po: Likewise.
10208 * po/zh_TW.po: Likewise.
10211 * iconv/iconv_prog.c (main): Fix spelling in error message.
10212 * iconv/iconvconfig.c (main): Likewise.
10213 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10214 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10215 * locale/programs/localedef.c (main): Likewise.
10216 * locale/programs/repertoire.c (repertoire_read): Likewise.
10217 * timezone/zdump.c (main): Likewise.
10218 * nscd/connections.c (handle_request): Fix spelling in log message.
10219 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10221 2006-09-20 Ulrich Drepper <drepper@redhat.com>
10223 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10226 2006-09-20 Andreas Jaeger <aj@suse.de>
10228 * math/libm-test.inc (lrint_test_upward): Fix typo.
10230 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10233 * math/libm-test.inc (lrint_test_tonearest): New function.
10234 (lrint_test_towardzero): New function.
10235 (lrint_test_downward): New function.
10236 (lrint_test_upward): New function.
10237 (main): Run these new tests.
10238 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10239 of values near to 0.
10240 (two52): Use double not long double.
10241 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10242 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10243 (two23): Use float not double.
10244 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10245 (two23): Use float not double.
10246 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10247 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10248 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10249 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10251 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10253 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10254 Cast sp to unsigned long to avoid compiler warning.
10255 Use __makecontext_ret function instead of a trampoline on the stack.
10256 (__makecontext_ret): New function.
10257 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10259 2006-09-19 Jakub Jelinek <jakub@redhat.com>
10261 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10262 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10265 2006-09-19 Ulrich Drepper <drepper@redhat.com>
10267 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10268 sure no reference to the unloaded map's search list remains in the
10269 dependency's scope.
10271 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10273 * elf/Makefile: Add rules to build and run unload7 test.
10274 * elf/unload7.c: New test.
10275 * elf/unload7mod1.c: New file.
10276 * elf/unload7mod2.c: New file.
10278 2006-09-18 Jakub Jelinek <jakub@redhat.com>
10280 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10281 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10282 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10283 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10284 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10285 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10286 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10287 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10288 PTRACE_GETEVENTMSG): Likewise.
10289 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10292 2006-09-17 Mike Frysinger <vapier@gentoo.org>
10294 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10295 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10296 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10297 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10299 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10301 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10302 write '\0' to the fd.
10303 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10304 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10305 Change regs to unsigned long pointer from unsigned int, fix fscr
10308 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10310 * io/Makefile (CFLAGS-fstatat.c): Set.
10311 (CFLAGS-fstatat64.c): Likewise.
10312 (CFLAGS-mknodat.c): Likewise.
10314 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10315 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10316 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10317 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10319 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10320 Steven Munroe <sjmunroe@us.ibm.com>
10322 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10323 names to the beginning. Rename "cell" to "cellbe".
10324 (_dl_powerpc_platforms): New.
10325 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10326 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10327 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10328 (_DL_HWCAP_PLATFORM): Define to new mask.
10329 (_dl_platform_string, _dl_string_platform): New functions.
10330 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10331 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10333 2006-09-12 Jakub Jelinek <jakub@redhat.com>
10336 * README.libm: Fix a thinko in sqrt algorithm description.
10339 * manual/string.texi (argz_delete): Fix prototype.
10340 Patch by <alpt@freaknet.org>.
10342 2006-08-26 Joseph Myers <joseph@codesourcery.com>
10345 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10346 * io/tst-fcntl.c (do_prepare): Likewise.
10347 * posix/tst-exec.c (do_prepare): Likewise.
10348 * posix/tst-preadwrite.c (do_prepare): Likewise.
10349 * posix/tst-spawn.c (do_prepare): Likewise.
10350 * posix/tst-truncate.c (do_prepare): Likewise.
10351 * rt/tst-aio.c (do_prepare): Likewise.
10352 * rt/tst-aio64.c (do_prepare): Likewise.
10353 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10356 2006-09-09 Ulrich Drepper <drepper@redhat.com>
10359 * time/mktime.c (guess_time_tm): Fix overflow detection.
10360 * time/Makefile (tests): Add bug-mktime1.
10361 * time/bug-mktime1.c: New file.
10364 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10365 (mremap): Likewise.
10367 2006-09-07 Jakub Jelinek <jakub@redhat.com>
10370 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10371 Ensure relocation doesn't clobber any bits outside of the
10372 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10373 R_SPARC_HI22 and R_SPARC_H44.
10376 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10377 (long) (MINSIZE + nb - old_size) is positive.
10379 * malloc/arena.c (grow_heap): When growing bail even if new_size
10383 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10386 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10388 * posix/regex_internal.c (re_string_reconstruct): Handle
10389 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10390 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10391 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10392 re_string_context_at.
10393 * posix/Makefile: Add rules to build and run bug-regex26 test.
10394 * posix/bug-regex26.c: New test.
10396 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10397 rather than col_sym_free. Move seqp declaration earlier.
10399 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10401 2006-09-05 Jakub Jelinek <jakub@redhat.com>
10403 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10404 decl before first goto out.
10406 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10408 * Makerules (shlib.lds): If have-hash-style, put .hash section
10409 at the end of the RO segment.
10411 2006-09-04 Ulrich Drepper <drepper@redhat.com>
10413 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10414 style hash table format is used.
10416 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10418 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10419 randomization rather than before.
10420 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10422 2006-08-31 Jakub Jelinek <jakub@redhat.com>
10424 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10426 * malloc/malloc.c (_int_malloc): Use full list insert and not
10427 shortcut which assumes the list is empty for large requests
10430 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10432 2006-08-30 Jakub Jelinek <jakub@redhat.com>
10434 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10435 and offout arguments to the prototype.
10436 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10437 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10438 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10439 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10440 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10441 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10442 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10443 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10445 2006-08-28 Ulrich Drepper <drepper@redhat.com>
10447 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10449 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10452 2006-08-28 Jakub Jelinek <jakub@redhat.com>
10454 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10455 only if herrno is NETDB_INTERNAL. Handle errors other than
10456 ERANGE outside of the loops, handle TRY_AGAIN.
10458 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10459 if other's ctype category was missing.
10460 * locale/programs/ld-collate.c (collate_read): Return if
10461 copy_locale's collate category is missing.
10463 2006-08-27 Ulrich Drepper <drepper@redhat.com>
10466 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10467 arenas if allocation failed.
10468 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10470 2006-08-26 Ulrich Drepper <drepper@redhat.com>
10472 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10474 (malloc_state): Reduce bins size by 2.
10475 (_int_malloc): Fix test for large enough buffer for early termination.
10476 When no unsorted block matches perfectly and an exiting block has
10477 to be split, use full list insert and not shortcut which assumes
10480 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10483 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10485 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10488 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10489 symbol require exact match (these are PLTs).
10490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10491 (_dl_ppc64_addr_sym_match): Likewise.
10494 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10495 If symbol has a value use it.
10496 * elf/tst-dladdr1.c: New file.
10497 * elf/Makefile: Add rules to build and run tst-addr1.
10499 2006-08-24 Jakub Jelinek <jakub@redhat.com>
10501 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10502 keeps failing and heap growth or new heap creation isn't
10504 * malloc/tst-malloc.c (main): Add new tests.
10506 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10509 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10510 as in the x86-64 code to use bswap.
10512 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10515 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10517 * posix/bits/unistd.h: Likewise.
10519 2006-05-15 Mike Frysinger <vapier@gentoo.org>
10522 * string/strchr.c: Add cast to avoid warning.
10524 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10526 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10527 platforms define as 512K. For 64-bit platforms as 32MB. The lower
10528 limit is needed to avoid the exploding of the address space
10529 requirement for secondary heaps.
10530 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10531 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10533 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10536 * Makerules (depfiles): Handle extra-test-objs the same as
10538 (common-mostlyclean): Likewise.
10539 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10541 * elf/Makefile (extra-objs): Likewise.
10542 * stdlib/Makefile (extra-objs): Likewise.
10544 2006-08-14 Eric Blake <ebb9@byu.net>
10547 * misc/error.h: Assume C89 or better.
10548 * misc/error.c: Likewise.
10550 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10553 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10554 __ASSUME_ATFCTS is defined.
10556 2006-08-19 Ulrich Drepper <drepper@redhat.com>
10558 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10559 to sort in each call.
10561 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10562 is empty simply return and use next service.
10563 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10565 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10566 tells us when not finding a charmap file is an error.
10567 * locale/programs/charmap.h: Adjust charmap_read prototype.
10568 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10569 cannot find a charmap.
10570 * locale/programs/localedef.c (main): Adjust charmap_read call.
10572 2006-08-15 Jakub Jelinek <jakub@redhat.com>
10574 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10575 sysdeps/posix/pause.c implementation instead.
10577 2006-08-09 Jakub Jelinek <jakub@redhat.com>
10579 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10582 2006-08-13 Andreas Schwab <schwab@suse.de>
10584 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10585 Don't clobber caller's LRSAVE.
10586 (_dl_prof_resolve): Likewise.
10588 2006-08-14 Ulrich Drepper <drepper@redhat.com>
10591 * libio/memstream.c (open_memstream): Allocate initial buffer with
10593 * libio/wmemstream.c (open_wmemstream): Likewise.
10594 * libio/strops.c: Pretty printing.
10595 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10596 (enlarge_userbuf): New function.
10597 (_IO_str_seekoff): Call it if seek position is larger than current
10599 * libio/wstrops.c: Likewise.
10600 * libio/vasprintf.c: Add comment as to why we do not have to use
10601 calloc instead of malloc to allocate initial buffer.
10602 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10603 * libio/bug-memstream1.c: New file.
10604 * libio/bug-wmemstream1.c: New file.
10606 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10608 * libio/wstrops.c: Remove dead macro definitions and comments.
10609 * libio/strops.c: Likewise.
10612 * login/utmpname.c (__utmpname): Remove unnecessary test.
10614 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10617 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10620 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10623 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10625 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10626 setting of CPU clocks.
10628 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10631 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10632 since C99 requires the result to promote to 'int' when uint_least8_t
10633 and uint_least16_t promote to 'int'.
10635 2006-08-12 Ulrich Drepper <drepper@redhat.com>
10638 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10639 lenght of one output field, correct bitmask creation.
10640 * locale/programs/ld-time.c: Add alignment.
10643 * misc/error.c: Add space between program name and message if file
10646 2006-08-03 Eric Blake <ebb9@byu.net>
10649 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10651 2006-08-09 Ulrich Drepper <drepper@redhat.com>
10653 * malloc/memusagestat.c: Silence warnings.
10655 * malloc/malloc.c: Dynamically size mmap treshold if the program
10656 frees mmaped blocks.
10657 Patch by Valerie Henson and Arjan van de Ven.
10659 2006-08-08 Jakub Jelinek <jakub@redhat.com>
10661 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10664 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10665 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10666 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10667 Only provide var definitions in strtol_l (or for *ull*
10670 * stdio-common/bug16.c (tests): New array.
10671 (do_tests): Allow the first hexadecimal digit
10672 to be 1, 2, 4 or 8. Do 3 additional tests.
10674 * sysdeps/s390/fpu/libm-test-ulps: Update.
10676 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10677 fchownat syscall if available.
10678 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10679 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10680 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10682 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10684 * nis/nis_xdr.c: Avoid some function calls.
10686 2006-08-07 Jakub Jelinek <jakub@redhat.com>
10687 Ulrich Drepper <drepper@redhat.com>
10689 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10690 short cut if only one name component is stripped away.
10692 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10694 * nis/nis_call.c: Minor cleanups throughout.
10695 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10696 (first_shoot): Add search_parent_first parameter. Only if it is set
10697 search parent server first.
10698 If directory for table found through cold start cache is not the same
10699 as referenced in the cache, don't use it.
10700 (__nisfind_server): Take additional parameter. Pass it on to
10702 (__prepare_niscall): Adjust __nisfind_server call.
10703 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10704 * nis/nis_table.c: Adjust __nisfind_server call.
10705 * nis/nis_lookup.c: Likewise.
10706 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10708 2006-08-03 Ulrich Drepper <drepper@redhat.com>
10711 * math/s_cacosh.c: Return values from positive branch.
10712 * math/s_cacoshf.c: Likewise.
10713 * math/s_cacoshl.c: Likewise.
10716 * sysvipc/sys/msg.h: Change return value to ssize_t.
10717 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10718 * sysvipc/msgrcv.c: Likewise.
10719 * include/sys/msg.h: Likewise.
10721 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10722 test introduced in patch for bz #661.
10723 (getgrouplist): Simplify code a bit. Don't allocate one additional
10724 element for NEWGROUPS.
10727 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10728 'f', use '1' as leading digit not '\1'.
10729 * stdio-common/Makefile (tests): Add bug16.
10730 * stdio-common/bug16.c: New file.
10733 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10734 and don't try to open it. The patch introducing the macro
10735 contained a bug and used the same file name as the new file
10736 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10737 this out completely.
10740 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10741 Patch by Jerry James <Jerry.James@usu.edu>.
10743 * rt/Makefile (tests): Add tst-clock2.
10744 * rt/tst-clock2.c: New file.
10747 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10748 function and its parameters and pass it to new thread.
10749 (__gai_notify): Add support for alternative waiting for completion.
10750 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10751 waiting for completion.
10752 * resolv/getaddrinfo_a.c: Likewise.
10753 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10754 waiting for completion is used.
10755 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10756 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10757 * resolv/gai_error.c: Likewise.
10758 * resolv/gai_sigqueue.c: Likewise.
10760 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10762 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10763 errno to EBADF and return MACH_PORT_NULL.
10765 2006-06-23 Joseph Myers <joseph@codesourcery.com>
10768 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10770 2006-08-02 Ulrich Drepper <drepper@redhat.com>
10772 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10773 walk them instead of the symbol table.
10775 2006-08-01 Ulrich Drepper <drepper@redhat.com>
10778 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10779 status of NSS calls, not the number of returned entries.
10781 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10782 request_key, keyctl.
10784 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10786 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10788 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10790 * elf/tst-auditmod1.c: Fix typo in #error.
10792 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10794 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10796 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10798 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10800 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10801 that the directory is empty even on non-POSIX filesystems.
10803 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10805 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10807 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10808 the backend NSS module. If backend setgrent call failed, don't have
10809 internal_setgrent fail. Just remember this until it is needed.
10810 * nis/nss_compat/compat-pwd.c: Likewise.
10811 * nis/nss_compat/compat-spwd.c: Likewise.
10813 2006-07-30 Roland McGrath <roland@redhat.com>
10815 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10816 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10817 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10818 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10820 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10821 (nanosleep_not_cancel): New macro.
10822 (sigsuspend_not_cancel): new macro.
10823 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10824 (do_sigsuspend): Define as inline.
10825 (__sigsuspend): Always use do_sigsuspend.
10826 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10827 * include/signal.h: Declare __sigsuspend_nocancel.
10828 * sysdeps/posix/pause.c
10829 [! NO_CANCELLATION] (__pause_nocancel): New function.
10831 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10832 * include/time.h (__nanosleep_nocancel): Likewise.
10834 2006-07-30 Ulrich Drepper <drepper@redhat.com>
10836 * locale/programs/localedef.c (add_to_readlist): Rename local
10837 variables to avoid confusion.
10839 * locale/programs/charmap.c (charmap_read): Emit error message if
10840 charmap couldn't be found or read.
10842 2006-07-28 Ulrich Drepper <drepper@redhat.com>
10844 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10845 __ASSUME_FUTEX_LOCK_PI.
10846 * include/time.h: Declare __nanosleep_nocancel.
10847 * include/unistd.h: Declare __pause_nocancel.
10849 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10850 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10851 get the __stack_chk_fail_local definition when it's needed.
10853 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10855 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10856 * dlfcn/bug-atexit3.c: New file.
10857 * dlfcn/bug-atexit3-lib.cc: New file.
10859 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10860 used when the namespace is not the base namespace.
10862 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10864 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10865 (__new_exitfn): Bump it in every successful call.
10866 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10867 more exit handlers, call them right away.
10868 * stdlib/exit.h: Declare __new_exitfn_called.
10870 2006-07-25 Ulrich Drepper <drepper@redhat.com>
10872 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10873 calling registered handler.
10875 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10876 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10877 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10878 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10879 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10880 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10881 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10882 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10884 2006-07-10 Ulrich Drepper <drepper@redhat.com>
10886 * elf/dl-lookup.c (dl_new_hash): New functions.
10887 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10888 value here. Compute new-style hash value. Pass new hash value
10889 and reference to variable with the old value to do_lookup_x.
10890 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10891 old-style hash table.
10892 (_dl_debug_bindings): Pass new hash value and reference to variable
10893 with the old value to do_lookup_x.
10894 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10895 new-style hash value and change old-style hash value parameter to
10896 be a reference. Reoganize functions to determine whether
10897 new-style hash table is available. Only fall back on old-style
10898 table. If old-style hash value is needed, compute it here.
10899 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10901 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10902 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10903 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10904 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10905 * Makeconfig: If linker supports --hash-style option add it to all
10906 linker command lines to build DSOs.
10907 * config.make.in: Define have-hash-style.
10908 * configure.in: Test whether linker supports --hash-style option.
10910 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10911 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10913 2006-06-27 Ulrich Drepper <drepper@redhat.com>
10915 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10918 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10919 RPATH of main map twice.
10921 2006-06-22 Ulrich Drepper <drepper@redhat.com>
10923 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10924 look further, return original strings.
10925 (_nl_find_msg): Do not return found translation if the conversion
10926 failed. Either signal the string is unusable or that something went
10927 wrong and the original should be used.
10929 2006-06-21 Ulrich Drepper <drepper@redhat.com>
10931 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10933 2006-06-14 Jakub Jelinek <jakub@redhat.com>
10936 * misc/insremque.c (insque): Handle prev == NULL.
10937 * misc/Makefile (tests): Add tst-insremque.
10938 * misc/tst-insremque.c: New test.
10940 2006-06-17 Ulrich Drepper <drepper@redhat.com>
10943 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10944 conflict with DL_DST_REQUIRED.
10946 2006-06-16 Ulrich Drepper <drepper@redhat.com>
10948 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10949 match what Solaris does.
10951 2006-06-04 Ulrich Drepper <drepper@redhat.com>
10953 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10954 local_setegid instead of seteuid and setegid.
10955 * sysdeps/generic/local-setxid.h: New file.
10956 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10958 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10960 * string/Makefile (tests): Add bug-envz1.
10961 * string/bug-envz1.c: New file.
10963 2006-06-02 Jakub Jelinek <jakub@redhat.com>
10965 * posix/regex_internal.c (re_string_skip_chars): If no character has
10966 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10967 to the byte which couldn't be converted.
10968 (re_string_reconstruct): Don't clear valid_raw_len before calling
10969 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10970 tip_context using re_string_context_at.
10971 * posix/Makefile: Add rules to build and run bug-regex25 test.
10972 * posix/bug-regex25.c: New test.
10974 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10977 * string/envz.c (envz_strip): Correct erroneously reversed src
10978 and dest parameters to memmove() invocation.
10980 2006-05-30 Jakub Jelinek <jakub@redhat.com>
10982 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10983 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10984 to make sure the database has been already invalidated.
10985 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10986 after the cache has been invalidated. Use pthread_mutex_lock rather
10987 than pthread_mutex_trylock if fd != -1.
10988 * nscd/connections.c (invalidate_cache): Add fd argument, write
10989 response to fd if not calling prune_cache, pass fd to prune_cache.
10990 (handle_request): Adjust invalidate_cache caller.
10991 (nscd_run): Pass -1 as fd to prune_cache.
10993 2006-05-30 Ulrich Drepper <drepper@redhat.com>
10995 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10998 2006-05-29 Ulrich Drepper <drepper@redhat.com>
11000 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11001 * nscd/cache.c (prune_cache): Take prunelock before starting the
11002 work. Just return in case it is already taken.
11003 * nscd/connections.c (dbs): Initialize .prunelock.
11005 2006-05-25 Ulrich Drepper <drepper@redhat.com>
11007 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11008 copying. No need to allocate new array for group members. Just
11009 move the pointers and update the size.
11011 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11012 Avoid memory leak in case realloc fails. Simplification for
11013 better code generation.
11015 Avoid deprecation warning because of libc_hidden_proto for
11016 inet6_option_alloc.
11017 * inet/inet6_option.c (option_alloc): Renamed from
11018 inet6_option_alloc. Made static.
11019 (inet6_option_alloc): Now a simple wrapper around option_alloc.
11020 (inet6_option_append): Call option_alloc.
11021 * include/netinet/in.h: Remove libc_hidden_proto for
11022 inet6_option_alloc.
11024 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11025 for cleanup when cb!=NULL [Coverity CID 233].
11027 2006-05-24 Ulrich Drepper <drepper@redhat.com>
11030 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11031 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11032 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11033 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11034 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11035 and inet6_rth_getaddr.
11036 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11038 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11039 Mark inet6_option_* interfaces as deprecated.
11040 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11041 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11042 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11043 inet6_rth_segments, and inet6_rth_getaddr.
11044 * inet/inet6_opt.c: New file.
11045 * inet/inet6_rth.c: New file.
11047 * inet/netinet/icmp6.h: Pretty printing.
11050 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11052 2006-05-23 Ulrich Drepper <drepper@redhat.com>
11054 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11055 doing it all here. When server does not know the answer do not
11056 fail immediate, try parent first.
11058 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11061 2006-05-20 Ulrich Drepper <drepper@redhat.com>
11063 * nis/nis_call.c (__prepare_niscall): New function. Split out
11065 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11067 (__follow_path): New function. Split out from nis_list.
11068 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11070 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11072 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11074 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11075 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11076 from libnsl for version GLIBC_PRIVATE.
11077 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11078 Remove entry parameter from _nss_nisplus_parse_pwent and
11079 _nss_nisplus_parse_grent.
11080 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11081 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11082 again. Rewrite getpwent handling to not use nis_first_entry and
11083 nis_next_entry. Roll out own niscall handling.
11084 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11086 * sunrpc/xdr_rec.c: Fix typo in comment.
11088 2006-05-19 Ulrich Drepper <drepper@redhat.com>
11090 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11093 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11094 to allocate memory for my_pollfd. Better initialization of
11095 cb_is_running. Use TEMP_FAILURE_RETRY.
11097 * malloc/memusage.sh (memusageso): Add quotes.
11098 (memusagestat): Likewise.
11099 * debug/xtrace.sh (pcprofileso): Likewise.
11100 (pcprofiledump): Likewise.
11101 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11103 * malloc/Makefile ($(objpfx)memusage): Likewise.
11105 * nis/nis_callback.c (__nis_create_callback): Calls to
11106 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11107 asprintf call fails.
11109 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11110 no uninitialized memory is passed to sendto.
11112 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11114 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11115 of snprintf+strdup. Handle OOM.
11116 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11117 cb->serv together. Remove now obsolete free calls.
11118 (__nis_destroy_callback): Remove now obsolete free call.
11120 2006-05-18 David Woodhouse <dwmw2@redhat.com>
11122 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11123 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11124 and ULA respectively). Set precedence for IPv4 address to 10 as
11125 defined in RFC3484 for preferring IPv6.
11126 * posix/gai.conf: Update to match the new default tables.
11128 2006-05-18 Jakub Jelinek <jakub@redhat.com>
11130 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11131 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11132 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11133 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11135 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11137 (init_nss_interface): Remove initialization of these variables.
11139 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11141 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11142 nis_free_directory forward to avoid duplication.
11144 2006-05-17 Ulrich Drepper <drepper@redhat.com>
11146 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11147 rec_dirsearch returning NULL.
11148 (first_shoot): Handle __nis_finddirectory returning NULL.
11149 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11151 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11152 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11154 2006-05-17 Jakub Jelinek <jakub@redhat.com>
11156 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11159 2006-05-15 Ulrich Drepper <drepper@redhat.com>
11161 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11163 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11164 * nscd/nscd_getgr_r.c: Likewise.
11166 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11168 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11169 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11171 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11173 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11175 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11177 * include/rpc/auth.h: Mark xdr_des_block_internal and
11178 xdr_opaque_auth_internal as hidden.
11180 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11183 * include/rpc/xdr.h: Mark all _internal functions as hidden.
11185 * misc/getusershell.c (okshells): Don't use static initializers,
11188 * stdlib/fmtmsg.c (keywords): Change type of len element to
11189 uint32_t to not waste space on 64bit machines.
11191 * locale/setlocale.c: Change _nl_category_names into a string.
11192 Add new _nl_category_name_idxs. Change all users.
11193 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11194 Declare _nl_category_name_idxs.
11195 * locale/findlocale.c: Adjust for _nl_category_names change.
11196 * locale/loadlocale.c: Likewise.
11197 * locale/newlocale.c: Likewise.
11198 * intl/dcigettext.c: Likewise.
11200 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11201 (add_alias2): ...here. New function.
11202 (__gconv_read_conf): Simplify builtin alias handling.
11203 (builtin_aliases): Convert to string to avoid relocations.
11204 * iconv/gconv_builtin.h: Add comment about correct formatting.
11206 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11208 * resolv/res_debug.c (loc_ntoa): Make error const.
11210 2006-05-14 Andreas Schwab <schwab@suse.de>
11212 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11214 2006-05-12 Jakub Jelinek <jakub@redhat.com>
11216 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11217 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11218 sizeof (cpu_set_t).
11220 2006-05-11 Ulrich Drepper <drepper@redhat.com>
11222 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11224 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11226 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11227 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11229 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11230 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11232 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11233 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11236 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11237 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11240 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11241 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11243 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11244 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11246 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11247 * include/rpcsvc/nis_callback.h: New file.
11249 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11250 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11252 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11253 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11255 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11256 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11258 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11259 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11261 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11262 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11265 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11266 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11268 * nis/nis_error.c: Remove table of strings. Use position
11269 independent mechanism.
11270 * nis/nis_error.h: New file.
11272 2006-05-11 Jakub Jelinek <jakub@redhat.com>
11274 * locale/programs/ld-time.c (time_finish): If wide era name or
11275 format aren't provided, set both wname and wformat to L"".
11277 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11279 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11280 results if the call was succesful.
11282 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11284 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11287 2006-05-10 Jakub Jelinek <jakub@redhat.com>
11289 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11291 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11293 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11294 caller makes sure this is not the case.
11295 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11297 2006-05-09 Ulrich Drepper <drepper@redhat.com>
11299 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11302 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11303 [Coverity CID 229, 230]
11305 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11307 (hol_help): Likewise. [Coverity CID 226, 227]
11309 * string/argz-replace.c (__argz_replace): Unconditionally call
11310 free on SRC. [Coverity CID 225]
11312 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11313 the return value of __nis_default_owner and __nis_default_group,
11314 it has been especially allocated. [Coverity CID 224]
11316 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11317 searchgroup and searchowner. Significantly simplified.
11318 (__nis_default_owner): Remove duplication. Do not locally copy the
11319 string before duplicating it.
11320 (__nis_default_group): Likewise.
11322 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11323 we must clear the variable before calling __nisfind_server.
11325 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11326 nis_getnames. [Coverity CID 223]
11328 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11329 xmalloc to allocate local repertoire name. [Coverity CID 222]
11331 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11332 allocate memory for the input to add_bytes. [Coverity CID 221]
11334 * posix/wordexp.c (w_addword): Free word if realloc fails and it
11335 was allocated here. [Coverity CID 219, 220]
11337 * posix/getconf.c (print_all): Free confstr data after printing.
11340 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11341 list allocation fails. [Coverity CID 215]
11343 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11346 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11347 string is NULL. [Coverity CID 212]
11348 * argp/Makefile: Add rules to build and run bug-argp1.
11349 * argp/bug-argp1.c: New file.
11351 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11353 * stdlib/canonicalize.c (__realpath): Likewise.
11355 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11356 pointer. [Coverity CID 206]
11358 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11359 in statically linked code.
11360 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11361 statically built code, be prepared to have no link map.
11364 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11365 dgettext calls. [Coverity CID 204]
11367 * argp/argp-help.c (struct uparams): Remove valid member. Change
11369 (uparam_names): Reduce size. Avoid relative relocations.
11370 Moved to read-only segment.
11371 (fill_in_uparams): Update for new layout.
11373 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11374 assumed to always be != NULL. [Coverity CID 202]
11376 * argp/argp-help.c (hol_entry_help): Remove some dead code
11377 [Coverity CID 200].
11379 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11380 away a few more unconditional yperr2nss calls.
11381 (_nss_nis_getservbyname_r): Likewise.
11383 2006-05-06 Ulrich Drepper <drepper@redhat.com>
11385 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11388 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11389 that unused memory passed to sendto is nevertheless initialized.
11392 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11393 possibly unaligned memory accesses.
11395 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11396 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11397 and __putlong respectively. Correct buffer overflow check for
11400 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11402 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11403 (send_dg): Rewrite error handling to be more compact and avoid
11404 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11406 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11408 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11409 instead of ns_get16.
11410 (res_queriesmatch): Likewise. Minor optimization.
11413 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11414 __libc_res_nsend might reallocate the buffer for the answer. In
11415 this case we have to reload the HP pointer.
11417 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11419 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11420 some branch prediction hints.
11422 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11423 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11424 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11425 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11426 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11427 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11428 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11429 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11431 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11433 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11434 by a GOT relocation to make Scrt1.o position independent.
11435 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11437 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11438 six system call parameters.
11439 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11441 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11443 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11446 * sunrpc/svc_udp.c (BZERO): Remove definition.
11448 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11450 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11451 (des_SPtrans): Use uint32_t type.
11452 (des_skb): Likewise.
11454 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11456 2006-05-05 Jakub Jelinek <jakub@redhat.com>
11459 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11462 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11464 * locale/programs/ld-address.c (address_finish): Fix one more
11465 place where the iso639 array might be accessed beyond the limits.
11467 2006-05-04 Ulrich Drepper <drepper@redhat.com>
11469 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11470 filling it for the first time.
11472 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11473 Adjust all callers.
11474 Free res object content before returning.
11476 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11478 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11481 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11482 cleanup for initial thread, just the free call on TVP.
11484 * nscd/gai.c (__getline): Define.
11487 See ChangeLog.16 for earlier changes.