1 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
5 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
8 * po/da.po: Update from translation team.
10 2009-05-05 Jakub Jelinek <jakub@redhat.com>
12 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
13 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
15 2009-05-05 Ulrich Drepper <drepper@redhat.com>
17 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
18 and READ_IMPLIES_EXEC.
20 2009-05-04 Ulrich Drepper <drepper@redhat.com>
22 * po/da.po: Update from translation team.
24 2009-04-29 Jakub Jelinek <jakub@redhat.com>
26 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
29 2009-04-27 Jakub Jelinek <jakub@redhat.com>
31 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
32 to MAP_ANON in PROT_NONE mmap64 call.
33 (open_archive): Likewise.
34 (file_data_available_p): Use mmap64 instead of mremap.
35 (enlarge_archive): Likewise. Update head if ah->addr changed.
36 Attempt to reserve address space after mmap64 region.
38 2009-04-26 Ulrich Drepper <drepper@redhat.com>
40 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
41 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
42 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
44 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
45 atanh should set ERANGE.
48 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
49 result of lookup to make call to implement STT_GNU_IFUNC.
50 (_dl_profile_fixup): Likewise.
51 Patch by H.J. Lu <hjl.tools@gmail.com>.
53 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
56 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
59 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
60 label if it is not used.
62 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
63 of gmon_hist_hdr and gmon_hdr structures and use them.
64 * elf/sprof.c: Likewise.
66 * elf/dl-load.c (open_verify): Add temporary variable to avoid
69 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
71 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
74 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
75 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
77 (iruserok_af): Use ss_family instead of casts.
79 * gmon/gmon.c (write_hist): Define real-type variant of
80 gmon_hist_hdr structure and use it.
81 (write_gmon): Likewise for gmon_hdr.
83 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
84 function if we are not going to define it.
85 * sysdeps/unix/sysv/linux/writev.c: Likewise.
87 * inet/inet6_option.c (option_alloc): Add temporary variable to
90 * libio/strfile.h (struct _IO_streambuf): Use correct type and
91 name of VTable element.
92 * libio/iovsprintf.c: Avoid casts to avoid warnings.
93 * libio/iovsscanf.c: Likewise.
94 * libio/vasprintf.c: Likewise.
95 * libio/vsnprintf.c: Likewise.
96 * stdio-common/isoc99_vsscanf.c: Likewise.
97 * stdlib/strfmon_l.c: Likewise.
98 * debug/vasprintf_chk.c: Likewise.
99 * debug/vsnprintf_chk.c: Likewise.
100 * debug/vsprintf_chk.c: Likewise.
102 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
105 2009-04-26 Jakub Jelinek <jakub@redhat.com>
107 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
109 2009-04-25 Ulrich Drepper <drepper@redhat.com>
111 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
113 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
114 * sysdeps/i386/fpu/s_tanf.S: Likewise.
115 * sysdeps/i386/fpu/s_tanl.S: Likewise.
116 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
117 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
118 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
119 * math/libm-test.inc: Add tests for errno after tan calls with
122 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
123 errno value vor pow(+-0,neg).
124 * math/libm-test.inc (pow_test): Add tests for errno value for
127 * math/w_fmod.c: Also handle x=±Inf as error.
128 * math/w_fmodf.c: Likewise.
129 * math/w_fmodl.c: Likewise.
130 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
133 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
134 * sysdeps/i386/fpu/s_cosf.S: Likewise.
135 * sysdeps/i386/fpu/s_cosl.S: Likewise.
136 * sysdeps/i386/fpu/s_sin.S: Likewise.
137 * sysdeps/i386/fpu/s_sinf.S: Likewise.
138 * sysdeps/i386/fpu/s_sinl.S: Likewise.
139 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
140 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
141 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
142 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
143 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
144 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
145 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
146 * math/libm-test.inc: Add tests for errno after sin/cos calls with
149 * stdlib/strtod_l.c (round_and_return): We have to set errno to
150 ERANGE for underflows.
151 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
153 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
156 * libio/tst-widetext.input: Remove surrogates.
158 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
160 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
161 for lgamma should set errno to ERANGE, not EDOM.
162 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
164 2009-04-24 Ulrich Drepper <drepper@redhat.com>
167 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
170 * locale/programs/locarchive.c (enlarge_archive): Conserve address
171 space when temporarily mapping the whole content of the old file.
174 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
177 2009-04-24 Jakub Jelinek <jakub@redhat.com>
179 * iconvdata/sjis.c (BODY): Don't advance inptr before
180 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
181 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
184 2009-04-24 Ulrich Drepper <drepper@redhat.com>
186 * locale/locarchive.h (struct locarhandle): Rename len field to
187 mmaped and add new reserved field.
188 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
189 (create_archive): Reserve address space and then map file into it.
190 (open_archive): Likewise.
191 (file_data_available_p): New function.
192 (compare_from_file): New function.
193 (close_archive): Adjust to member name changes.
194 (add_locale): Before comparing locale data, check it is mapped.
195 Otherwise fall back to reading from the file.
197 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
199 * stdio-common/psiginfo.c: Include <errno.h>.
201 2009-04-23 Ulrich Drepper <drepper@redhat.com>
204 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
205 to get consistency between 32 and 64 bit architectures.
208 * sysdeps/unix/make-syscalls.sh: Add rule to create target
209 directory for dummy syscall rules.
210 Patch by Chris Steinbroner <hesh@pobox.com>.
212 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
215 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
218 2009-04-23 Ulrich Drepper <drepper@redhat.com>
220 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
221 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
223 2009-04-23 Jakub Jelinek <jakub@redhat.com>
225 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
226 data from vector to temporary buffer and call PWRITEV after it
227 instead of vice versa.
228 * sysdeps/posix/preadv.c: Fix up comment.
229 * misc/preadv.c: Likewise.
230 * misc/preadv64.c: Likewise.
231 * misc/pwritev.c: Likewise.
232 * misc/pwritev64.c: Likewise.
233 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
235 2009-04-23 Ulrich Drepper <drepper@redhat.com>
237 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
239 * shadow/Makefile (tests): Add tst-shadow.
240 * shadow/tst-shadow.c: New file.
243 * gshadow/Makefile: New file.
244 * gshadow/Versions: New file.
245 * gshadow/fgetsgent.c: New file.
246 * gshadow/fgetsgent_r.c: New file.
247 * gshadow/getsgent.c: New file.
248 * gshadow/getsgent_r.c: New file.
249 * gshadow/getsgnam.c: New file.
250 * gshadow/getsgnam_r.c: New file.
251 * gshadow/gshadow.h: New file.
252 * gshadow/putsgent.c: New file.
253 * gshadow/sgetsgent.c: New file.
254 * gshadow/sgetsgent_r.c: New file.
255 * gshadow/tst-gshadow.c: New file.
256 * include/gshadow.h: New file.
257 * Makeconfig (all-subdirs): Add gshadow.
258 * Makefile (installed-headers): Add gshadow/gshadow.h.
259 * nss/Makefile (databases): Add sgrp.
260 * nss/Versions: Add gshadow functions as private exports.
261 * nss/nsswitch.conf: Add gshadow entry.
262 * nss/sgrp-lookup.c: New file.
263 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
264 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
265 * nss/nss_files/files-sgrp.c: New file.
266 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
267 * sysdeps/unix/sysv/linux/paths.h: Likewise.
269 2009-04-22 Ulrich Drepper <drepper@redhat.com>
271 * stdio-common/printf.h: Add missing const to register_printf_modifier.
272 * stdio-common/reg-modifier.c: Likewise.
274 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
276 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
279 2009-04-20 Ulrich Drepper <drepper@redhat.com>
282 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
283 headers up to 2.6.30.
285 * po/ca.po: Update from translation team.
287 2009-04-19 Ulrich Drepper <drepper@redhat.com>
290 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
291 an object that uses static TLS if the TLS modid is higher than the
292 reserve we always allocate. At least for multi-threaded code.
294 2009-04-18 Ulrich Drepper <drepper@redhat.com>
296 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
297 Numerically stable check for valid width.
299 * locale/programs/locarchive.c (open_archive): Map the entire file
300 and not just the administrative data.
301 (add_locale): When we find a hash sum match compare the content
304 * malloc/malloc.c (malloc_info): Output address space information.
306 2009-04-17 Ulrich Drepper <drepper@redhat.com>
308 * malloc/malloc.c (malloc_info): Also output system memory information.
310 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
311 architectures have preadv/pwritev in 2.6.30.
313 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
314 * sysdeps/posix/readv.c: Likewise.
315 Reported by Markus Armbruster <armbru@redhat.com>.
317 * malloc/hooks.c (top_check): Force hook value into register.
319 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
321 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
322 calls to _dl_relocate_object.
324 2009-04-16 Ulrich Drepper <drepper@redhat.com>
327 * malloc/malloc.c (force_reg): Define.
328 (sYSMALLOc): Load hook variable into variable
329 before test and force into register.
331 (public_mALLOc): Force hook value into register.
332 (public_fREe): Likewise.
333 (public_rEALLOc): Likewise.
334 (public_mEMALIGn): Likewise.
335 (public_vALLOc): Likewise.
336 (public_pVALLOc): Likewise.
337 (public_cALLOc): Likewise.
338 (__posix_memalign): Likewise.
339 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
340 before test and force into register.
341 * malloc/hooks.c (top_check): Likewise.
342 (public_sET_STATe): Pretty printing.
344 * resolv/res_send.c (send_dg): Don't just ignore the result we got
345 in case we only receive one reply in single-request mode.
347 2009-04-16 Jakub Jelinek <jakub@redhat.com>
349 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
350 are dlopened in statically linked program even for __LM_ID_CALLER.
352 2009-04-16 Ulrich Drepper <drepper@redhat.com>
354 * resolv/res_send.c (send_dg): Don't switch into single-request
355 mode if we already are in it.
357 2009-04-15 Ulrich Drepper <drepper@redhat.com>
359 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
360 are always at least 4 bytes in the returned line.
362 2009-04-15 Jakub Jelinek <jakub@redhat.com>
364 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
365 __libc_use_alloca (8192), if the stack is too small use 512 bytes
366 instead of 8K. Stop searching in /proc/stat after hitting first
367 line not starting with cpu.
368 (next_line): Truncate too long
369 lines at buffer size * 3/4 instead of pretending there were line
370 breaks inside of large lines.
372 2009-04-14 Ulrich Drepper <drepper@redhat.com>
374 * sysdeps/x86_64/mp_clz_tab.c: New file.
376 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
377 Ulrich Drepper <drepper@redhat.com>
379 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
380 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
381 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
383 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
385 * sysdeps/sh/libc-tls.c: New file.
387 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
389 2009-04-14 Roland McGrath <roland@redhat.com>
391 * elf/elf.h: Add various missing ARM constants, to match binutils.
393 2009-04-14 Ulrich Drepper <drepper@redhat.com>
395 Optimizations from GMP.
396 * sysdeps/x86_64/add_n.S: New file.
397 * sysdeps/x86_64/addmul_1.S: New file.
398 * sysdeps/x86_64/lshift.S: New file.
399 * sysdeps/x86_64/mul_1.S: New file.
400 * sysdeps/x86_64/rshift.S: New file.
401 * sysdeps/x86_64/sub_n.S: New file.
402 * sysdeps/x86_64/submul_1.S: New file.
404 2009-04-14 Jakub Jelinek <jakub@redhat.com>
406 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
407 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
408 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
409 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
411 2009-04-14 Ulrich Drepper <drepper@redhat.com>
413 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
416 2009-04-13 Ulrich Drepper <drepper@redhat.com>
418 * sysdeps/x86-64/strrchr.S: New file.
420 2009-04-10 Ulrich Drepper <drepper@redhat.com>
422 * stdio-common/printf.h (struct printf_info): Add user element.
423 New types printf_arginfo_size_function, printf_va_arg_function.
424 Declare register_printf_specifier, register_printf_modifier,
425 register_printf_type.
426 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
427 (union printf_arg): Add pa_user element.
428 Adjust __printf_arginfo_table type.
429 Add __printf_va_arg_table, __printf_modifier_table,
430 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
432 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
433 If registered arginfo call failed try normal specifier.
434 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
436 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
437 * stdio-common/Versions: Export register_printf_modifier,
438 register_printf_type, and register_printf_specifier for GLIBC_2.10.
439 * stdio-common/reg-modifier.c: New file.
440 * stdio-common/reg-type.c: New file.
441 * stdio-common/reg-printf.c (__register_printf_specifier): New
442 function. Mostly the old __register_printf_function function but
443 uses locking and type of third parameter changed.
444 (__register_printf_function): Implement using
445 __register_printf_specifier.
446 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
447 calls to arginfo functions. Allocate enough memory for user-defined
448 types. Call new va_arg functions to get user-defined types.
449 Try installed handlers even for existing format specifiers first.
451 2009-04-09 Ulrich Drepper <drepper@redhat.com>
453 * sysdeps/x86_64/rawmemchr.S: New file.
455 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
456 Simplified code and possible copy problem fixed.
458 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
459 function if it is not defined. Add some necessary casts.
460 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
462 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
463 have preadv/pwritev in 2.6.30.
465 2009-04-08 Ulrich Drepper <drepper@redhat.com>
467 * malloc/malloc.c (malloc_info): New function.
468 * malloc/malloc.h: Declare it.
469 * malloc/Versions: Export malloc_info for GLIBC_2.10.
471 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
474 * malloc/malloc.c (_int_realloc): Add parameter with old block
475 size. Remove duplicated test. Don't handle mmap'ed blocks here.
477 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
479 2009-04-07 Ulrich Drepper <drepper@redhat.com>
481 * sysdeps/x86_64/strchrnul.S: New file.
483 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
484 depending libcrypt on -lfreebl3.
486 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
487 preadv/pwritev in 2.6.30.
489 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
490 instead of __strcasecmp.
492 * string/stratcliff.c (do_test): Add memchr tests..
493 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
494 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
495 first read quad word.
497 2009-04-06 Ulrich Drepper <drepper@redhat.com>
499 * string/strverscmp.c (__strverscmp): Fix last cleanups.
500 * string/tst-svc.input: Add new test case.
501 * string/tst-svc.expect: Adjust.
502 * string/Makefile: Don't ignore tst-svc error.
504 * sysdeps/x86_64/memchr.S: New file.
506 * resolv/resolv.h (RES_SNGLKUP): Define.
507 * resolv/res_init.c (res_setoptions): Recognize single-request option.
508 * resolv/res_send.c (send_dg): If we sent two requests at once and
509 only get one reply before timeout switch to mode where we send the
510 second request only after the first answer has been received.
512 2009-04-05 Ulrich Drepper <drepper@redhat.com>
514 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
515 * sysdeps/x86_64/strchr.S: Likewise.
517 2009-04-03 Ulrich Drepper <drepper@redhat.com>
519 * configure.in: We need to test for the compiler earlier.
521 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
522 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
524 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
525 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
527 * misc/preadv.c: New file.
528 * misc/preadv64.c: New file.
529 * misc/pwritev.c: New file.
530 * misc/pwritev64.c: New file.
531 * sysdeps/posx/preadv.c: New file.
532 * sysdeps/posx/preadv64.c: New file.
533 * sysdeps/posx/pwritev.c: New file.
534 * sysdeps/posx/pwritev64.c: New file.
535 * sysdeps/unix/sysv/linux/preadv.c: New file.
536 * sysdeps/unix/sysv/linux/preadv64.c: New file.
537 * sysdeps/unix/sysv/linux/pwritev.c: New file.
538 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
539 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
540 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
542 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
544 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
546 * sysdeps/unix/sysv/linux/kernel-features.h: Define
547 __ASSUME_COMPLETE_READV_WRITEV.
548 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
550 * sysdeps/unix/sysv/linux/writev.c: Likewise.
552 * sysdeps/posix/readv.c: Since read is a cancellation point we have
553 to free a possible malloced buffer in case of cancellation.
554 * sysdeps/posix/writev.c: Likewise for write.
556 2009-04-02 Ulrich Drepper <drepper@redhat.com>
558 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
560 * configure.in: Recognize --enable-nss-crypt.
561 * config.make.in: Add nss-crypt entry.
562 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
563 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
564 and include path for NSS directory to compiler for md5-crypt,
565 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
566 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
567 function implementation, use NSS. Introduce wrappers around the
568 hash function calls. Little code size optimization.
569 * crypt/sha256-crypt.c: Likewise.
570 * crypt/sha512-crypt.c: Likewise.
571 * scripts/check-local-headers.sh: Ignore nss3 directory.
573 * configure.in: Rename pic_default to libc_cv_pic_default.
574 * config.make.in: Likewise.
576 2009-04-01 Roland McGrath <roland@redhat.com>
578 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
579 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
580 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
581 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
582 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
583 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
584 (R_SPARC_NUM): Update.
585 From Dave Miller <davem@davemloft.net>.
587 2009-04-01 Ulrich Drepper <drepper@redhat.com>
589 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
591 2009-03-31 Ulrich Drepper <drepper@redhat.com>
593 * elf/dl-open.c: Keep track of used name spaces and only iterate over
594 those which are used.
595 * elf/dl-addr.c: Likewise.
596 * elf/dl-caller.c: Likewise.
597 * elf/dl-fini.c: Likewise.
598 * elf/dl-iteratephdr.c: Likewise.
599 * elf/dl-libc.c: Likewise.
600 * elf/dl-load.c: Likewise.
601 * elf/dl-support.c: Likewise.
602 * elf/dl-sym.c: Likewise.
603 * elf/rtld.c: Likewise.
604 * sysdeps/generic/ldsodefs.h: Likewise.
606 * elf/dl-load.c: Remove support for systems without MAP_ANON.
607 * elf/dl-minimal.c: Likewise.
608 * elf/dl-misc.c: Likewise.
609 * elf/rtld.c: Likewise.
610 * sysdeps/generic/ldsodefs.h: Likewise.
612 2009-03-30 Ulrich Drepper <drepper@redhat.com>
614 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
615 Avoid reuse of complex expression.
617 * po/fr.po: Update from translation team.
619 2009-03-16 Ulrich Drepper <drepper@redhat.com>
621 * include/dirent.h: Yet more changes to match sort function type
623 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
624 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
625 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
627 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
629 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
631 2009-03-16 Ulrich Drepper <drepper@redhat.com>
633 * nscd/connections.c (restart): Try to preserve the process name
634 by reading the /proc/self/exe symlink and using the return name.
635 Patch by Jeff Bastian <jbastian@redhat.com>.
637 2009-03-15 Ulrich Drepper <drepper@redhat.com>
640 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
641 if we are not loading a new audit library.
642 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
643 Only use profiling trampoline for auditing if we are not relocating
645 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
646 * elf/rtld.c: Likewise.
647 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
649 * elf/rtld.c (dl_main): Extend help message for --audit option.
652 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
653 alphasort64, versionsort, and versionsort64 to POSIX 2008.
654 * dirent/alphasort.c: Adjust implementation to type change.
655 * dirent/alphasort64.c: Likewise.
656 * dirent/scandir.c: Likewise.
657 * dirent/versionsort.c: Likewise.
658 * dirent/versionsort64.c: Likewise.
659 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
661 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
665 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
666 correctly. Set segleft member in output as required.
667 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
668 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
671 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
672 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
673 * inet/Makefile (tests): Add tst-inet6_rth.
674 * inet/tst-inet6_rth.c: New file.
677 * string/strlen.c (strlen): Fix omission in the expression to test
680 2009-03-14 Ulrich Drepper <drepper@redhat.com>
682 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
684 * elf/dl-runtime.c (reloc_offset): Define.
685 (reloc_index): Define.
686 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
687 (_dl_fixup_profile): Likewise. Use reloc_index instead of
688 computing index from reloc_offset.
689 (_dl_call_pltexit): Likewise.
690 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
691 the relocation index to _dl_fixup.
692 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
694 * sysdeps/x86_64/dl-runtime.c: New file.
697 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
698 alignment of La_x86_64_regs. Store xmm parameters.
699 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
702 * string/strverscmp.c (__strverscmp): Fix case of different digits
703 in fractional part of string.
704 Patch by Jingyu Liu <jyliu@fortinet.com>.
705 * string/Makefile (tests): Add tst-svc2.
706 * string/tst-svc2.c: New file.
708 * string/strverscmp.c (__strverscmp): Optimize size of tables.
710 * locale/iso-639.def: Add Min Nan.
712 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
715 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
717 2009-03-14 Ulrich Drepper <drepper@redhat.com>
719 * elf/dl-sysdep.c (auxvars): Compress data structure.
721 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
722 STT_GNU_IFUNC handling.
723 (elf_machine_rela): Likewise.
725 2009-03-13 Ulrich Drepper <drepper@redhat.com>
727 * config.h.in (USE_MULTIARCH): Define.
728 * configure.in: Handle --enable-multi-arch.
729 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
730 (_dl_fixup_profile): Likewise.
731 * elf/do-lookup.c (dl_lookup_x): Likewise.
732 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
733 * elf/elf.h (STT_GNU_IFUNC): Define.
734 * include/libc-symbols.h (libc_ifunc): Define.
735 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
736 framework in init-arch.h to get CPUID values.
737 * sysdeps/x86_64/multiarch/Makefile: New file.
738 * sysdeps/x86_64/multiarch/init-arch.c: New file.
739 * sysdeps/x86_64/multiarch/init-arch.h: New file.
740 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
742 * config.make.in (experimental-malloc): Define.
743 * configure.in: Handle --enable-experimental-malloc.
744 * malloc/Makefile: Handle experimental-malloc flag.
745 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
746 * malloc/arena.c: Likewise.
747 * malloc/hooks.c: Likewise.
748 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
750 2009-03-11 Ulrich Drepper <drepper@redhat.com>
752 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
753 prediction. A few size optimizations.
755 2009-03-10 Ulrich Drepper <drepper@redhat.com>
757 * time/tzset.c: Optimize a bit for size.
759 2009-03-10 Jakub Jelinek <jakub@redhat.com>
761 * include/stdio.h (fmemopen): Add libc_hidden_proto.
762 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
764 * elf/sprof.c: Avoid warning about multi-line comment.
766 2009-03-10 Ulrich Drepper <drepper@redhat.com>
768 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
770 * time/tst-posixtz.c: Add tests for quoted timezone names.
772 2009-03-10 Jakub Jelinek <jakub@redhat.com>
774 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
775 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
776 200809L instead of 200112L.
777 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
778 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
780 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
781 instead of __quick_exit_funcs to __run_exit_handlers.
782 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
783 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
784 (__cxa_at_quick_exit): Remove attribute_hidden.
785 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
786 to __run_exit_handlers.
787 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
790 2009-03-10 Ulrich Drepper <drepper@redhat.com>
792 * po/id.po: Update from translation team.
794 2009-02-18 Jakub Jelinek <jakub@redhat.com>
796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
797 .machine push; .machine "power6" and .machine pop around mtfsf
798 insns outside of _ARCH_PWR6 define.
799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
804 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
805 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
806 relax_fenv_state): Likewise.
808 2009-03-08 Ulrich Drepper <drepper@redhat.com>
810 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
812 (static-only-routines): Add at_quick_exit.
813 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
815 * stdlib/quick_exit.c: New file.
816 * stdlib/at_quick_exit.c: New file.
817 * stdlib/cxa_at_quick_exit.c: New file.
818 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
820 (__internal_atexit): New function.
821 (__new_exitfn): Now takes parameter to point to the list to use.
822 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
823 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
824 (exit): ...here. Just call __run_exit_handlers appropriately.
825 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
826 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
827 * stdlib/on_exit.c: Adjust call to __new_exitfn.
828 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
830 * po/id.po: Update from translation team.
832 2009-03-07 Ulrich Drepper <drepper@redhat.com>
834 * po/ru.po: Update from translation team.
836 2009-03-04 Ulrich Drepper <drepper@redhat.com>
838 * po/nl.po: Update from translation team.
840 2009-03-03 Ulrich Drepper <drepper@redhat.com>
842 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
843 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
844 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
845 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
846 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
847 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
848 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
850 * po/pl.po: Update from translation team.
852 2009-03-02 Ulrich Drepper <drepper@redhat.com>
855 * sysdeps/unix/sysv/linux/fallocate.c: New file.
856 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
857 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
858 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
859 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
860 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
861 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
863 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
864 Add fallocate and fallocate64.
866 * io/fcntl.h: Pretty printing.
868 2009-03-02 Richard Guenther <rguenther@suse.de>
870 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
871 attribute also for non-C99 inline semantics variant.
873 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
875 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
876 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
877 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
878 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
884 2009-03-02 Ulrich Drepper <drepper@redhat.com>
886 * po/cs.po: Update from translation team.
888 2009-02-28 Ulrich Drepper <drepper@redhat.com>
890 * po/bg.po: Update from translation team.
891 * po/sv.po: Likewise.
892 * po/fi.po: Likewise.
893 * po/vi.po: Likewise.
895 2009-02-27 Roland McGrath <roland@redhat.com>
897 * Makeconfig (%.v.i): Depend on Makeconfig.
898 Exclude % lines from initial #-comment removal.
900 2009-02-27 Ulrich Drepper <drepper@redhat.com>
902 * po/ko.po: Update from translation team.
904 2009-02-26 Roland McGrath <roland@redhat.com>
906 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
907 avoids unused warning.
909 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
910 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
912 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
913 sys/ucontext.h and asm/elf.h. Include sys/user.h.
914 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
915 and asm/user.h. Include asm/ptrace.h.
916 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
917 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
918 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
920 (start_thread): Don't undefine.
921 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
924 2009-02-26 Ulrich Drepper <drepper@redhat.com>
926 * wctype/wctype.h: The *_l functions are in POSIX 2008.
927 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
928 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
929 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
930 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
932 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
933 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
934 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
935 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
936 _SC_THREAD_ROBUST_PRIO_PROTECT.
937 * posix/unistd.h: fexecve is in POSIX 2008.
938 * time/time.h: strftime_l is in POSIX 2008.
939 * io/sys/stat.h: futimens is in POSIX 2008.
940 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
941 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
942 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
943 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
944 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
945 open_memstream, and vdprintf are in POSIX 2008.
947 2009-02-25 Ulrich Drepper <drepper@redhat.com>
949 * include/features.h: Define macros for XPG7/POSIX 2008.
950 * ctype/ctype.h: The *_l functions are in POSIX 2008.
951 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
953 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
954 * locale/xlocale.h: Define locale_t type.
955 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
956 in POSIX 2008. Don't define locale_t here.
957 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
958 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
959 UTIME_OMIT only with __USE_ATFILE.
960 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
961 * stdio-common/psiginfo.c: New file.
962 * stdio-common/psiginfo-data.h: New file.
963 * stdio-common/psiginfo-define.h: New file.
964 * stdio-common/Makefile (routines): Add psiginfo.
965 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
966 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
967 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
968 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
969 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
970 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
971 * io/sys/stat.h: Move mknodat definition into same conditional as
973 * time/sys/time.h: futimesat is not among the functions accepted
974 into the POSIX standard.
976 * include/features.h: If no feature selection given and we select
977 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
978 * posix/Versions: Export __posix_getopt.
979 * posix/getopt.c (_getopt_initialize): Take additional parameter.
980 Use it to alternatively initialize __posixly_correct.
981 (_getopt_internal_r): Take addition parameter. Pass on to
983 (_getopt_internal): Take addition parameter. Pass on to
985 (getopt): Pass additional zero to _getopt_internal.
986 (__posix_getopt): New function.
987 * posix/getopt.h: Add redirection for getopt.
988 * posix/getopt1.c (getopt_long): Pass additional zero to
990 (getopt_long_only): Likewise.
991 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
992 (_getopt_long_only_r): Likewise.
993 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
996 2009-02-24 Ulrich Drepper <drepper@redhat.com>
998 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
999 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1000 * sysdeps/posix/sysconf.c (__sysconf): Handle
1001 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1002 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1004 2009-02-24 Roland McGrath <roland@redhat.com>
1007 * README.template: Reworded not to use substituted version number.
1009 * README: ... here (no longer generated).
1010 * Makefile (README): Target removed.
1012 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1014 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1015 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1018 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1020 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1022 2009-02-22 Ulrich Drepper <drepper@redhat.com>
1024 * po/bg.po: Update from translation team.
1026 2009-02-16 Jakub Jelinek <jakub@redhat.com>
1028 * stdlib/monetary.h: Uglify function parameter names.
1029 * sunrpc/rpc/pmap_clnt.h: Likewise.
1030 * sunrpc/rpc/svc.h: Likewise.
1031 * sunrpc/rpc/xdr.h: Likewise.
1032 * sunrpc/rpc/clnt.h: Likewise.
1033 * resolv/netdb.h: Likewise.
1034 * resolv/arpa/nameser.h: Likewise.
1035 * resolv/resolv.h: Likewise.
1036 * argp/argp.h: Likewise.
1037 * locale/langinfo.h: Likewise.
1038 * io/sys/stat.h: Likewise.
1039 * posix/spawn.h: Likewise.
1040 * nis/rpcsvc/nislib.h: Likewise.
1041 * malloc/obstack.h: Likewise.
1042 * sysdeps/ia64/bits/link.h: Likewise.
1043 * sysdeps/i386/bits/link.h: Likewise.
1044 * sysdeps/s390/bits/link.h: Likewise.
1045 * sysdeps/powerpc/bits/link.h: Likewise.
1046 * sysdeps/x86_64/bits/link.h: Likewise.
1047 * sysdeps/sparc/bits/link.h: Likewise.
1048 * sysdeps/sh/bits/link.h: Likewise.
1049 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1050 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1051 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1052 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1054 2008-12-01 Fredrik Unger <fred@tree.se>
1056 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1057 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1058 _FP_UNPACK_RAW_2, fix up first argument.
1060 2009-02-15 Ulrich Drepper <drepper@redhat.com>
1062 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1063 (GET_NPROCS_PARSER): Change parameters and use next_line.
1064 (__get_nprocs): Rewrite to not use stdio routines.
1065 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1066 Change parameters and use next_line.
1068 2009-02-13 Ulrich Drepper <drepper@redhat.com>
1071 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1072 Change mempool_alloc prototype.
1073 * nscd/mem.c (gc): Don't handle mem_in_flight.
1074 (mempool_alloc): Third parameter now only indicates whether this is the
1075 first call (to allocate data) or not. If it is, get db rdlock.
1076 Release it on error. Don't handle mem_in_flight.
1077 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1078 Adjust third parameter of mempool_alloc calls.
1079 Nothing to do here in case mempool_alloc fails.
1080 Avoid local variable shadowing parameter. No need to get db rdlock
1081 before calling cache_add.
1082 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1083 no mem_in_flight array anymore.
1084 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1085 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1086 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1087 in case mempool_alloc fails. No need to get db rdlock before calling
1089 * nscd/hstcache.c (cache_addhst): Likewise.
1090 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1091 * nscd/servicescache.c (cache_addserv): Likewise.
1092 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1094 2009-02-11 Ulrich Drepper <drepper@redhat.com>
1096 * po/lt.po: Update from translation team.
1098 2009-02-10 Ulrich Drepper <drepper@redhat.com>
1100 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1101 defined, allow additional data to be added using the optional
1102 MORE_ELF_HEADER_DATA macro.
1103 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1104 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1106 2009-02-08 Ulrich Drepper <drepper@redhat.com>
1108 * include/atomic.h: Define catomic_and if not already defined.
1109 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1110 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1112 2009-02-07 Ulrich Drepper <drepper@redhat.com>
1114 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1116 (_int_realloc): Likewise. Third argument is now padded size
1117 All _int_* functions are now static.
1119 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1120 * malloc/arena.c: Likewise.
1121 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1124 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1127 * malloc/malloc.c: Add branch prediction for use of the hooks.
1129 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1131 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1134 * bits/confname.h: Add SUSv7 macros for getconf environments.
1135 * bits/environments.h: Likewise.
1136 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1137 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1138 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1139 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1140 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1141 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1142 * posix/getconf.c: Likewise.
1143 * posix/sysconf.c: Likewise.
1144 * sysdeps/posix/sysconf.c: Likewise.
1145 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1148 2009-01-16 Petr Baudis <pasky@suse.cz>
1151 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1152 even if we currently have zero nscount.
1154 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1157 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1158 the input line is too long.
1160 * po/Makefile (libc.pot): Add f_print as function taking c-format
1163 * debug/xtrace.sh: Unify translatable messages.
1164 * elf/ldd.bash.in: Likewise.
1165 * elf/sprof.c: Likewise.
1166 * locale/programs/locale.c: Likewise.
1167 * malloc/memusage.sh: Likewise.
1168 * nss/getent.c: Likewise.
1170 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1172 * debug/pcprofiledump.c (print_version,
1173 argp_program_version_hook): New function.
1174 * elf/ldconfig.c (more_help): New function.
1176 * elf/sln.c (usage): New function.
1177 (main): Support --help and --version.
1178 * malloc/memusagestat.c (print_version): New function.
1179 (argp_program_version_hook): New variable.
1180 * nscd/nscd.c (more_help): New function.
1182 * posix/getconf.c (main): Send --version output to stdout.
1184 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1185 arguments. All callers changed.
1186 (print_version): New function.
1187 (parseargs): Support --help and --version.
1188 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1190 (print_version): New function.
1191 (main): Use getopt_long. Support --help and --version.
1192 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1195 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1197 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1198 (update_data): Fix handling of wrapping back
1199 to the beginning of the buffer.
1202 * stdio-common/psignal.c (psignal): Fix test for empty string.
1204 2009-02-05 Ulrich Drepper <drepper@redhat.com>
1206 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1207 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1208 move _null_auth to .rodata.
1210 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1213 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1215 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1216 today than when the original code was written. Use larger
1217 buffers. This also makes it unnecessary to have stat information,
1218 if this causes extra efforts.
1219 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1222 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
1224 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1226 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1227 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1228 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1229 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1230 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1231 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1233 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1235 * po/ru.po: Update from translation team.
1237 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1239 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1240 Add _tid slot to maintain consistency with kernel.
1242 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1244 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1245 incomplete characters at end of input buffer.
1246 * libio/Makefile (tests): Add tst-fgetwc.
1247 * libio/tst-fgetwc.c: New file.
1248 * libio/tst-fgetwc.input: New file.
1250 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
1252 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1254 2009-02-02 Ulrich Drepper <drepper@redhat.com>
1257 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1258 *OUTBUFSTART unless the whole output fit into the buffer.
1259 * iconv/Makefile (tests): Add tst-iconv4.
1260 * iconv/tst-iconv4.c: New file.
1262 2009-02-01 Ulrich Drepper <drepper@redhat.com>
1264 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1265 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1267 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
1269 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1270 newer linker scripts.
1272 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1275 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1276 inotify_rm_watch should have type int.
1278 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1280 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1281 Make aligned_restore_vmx a local symbol.
1282 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1285 2009-01-30 Andreas Jaeger <aj@suse.de>
1287 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1288 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1289 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1290 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1291 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1292 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1293 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1295 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1298 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1299 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1301 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1305 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1307 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1309 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1311 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1312 memcpy instead of memcmp.
1313 (_dl_setup_pointer_guard): Likewise.
1315 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1317 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1318 manipulated brk, use malloc_printerr.
1319 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1322 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1324 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1325 rindex): For C++ add inlines so that they can be recognized as
1327 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1329 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1330 Jakub Jelinek <jakub@redhat.com>
1332 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1333 * wcsmbs/wchar.h: Likewise.
1335 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1337 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1338 (stackinfo_sub_sp): Define.
1340 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1343 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1344 * include/alloca.h (alloca_account): Define.
1345 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1346 (stackinfo_sub_sp): Define.
1348 * nscd/connections.c (nscd_init): If database file access fails
1349 check whether this is due to permission problems and bail in that
1353 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1354 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1356 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1358 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1359 Add "t" to clobber list.
1360 (INTERNAL_SYSCALL_NCS): Likewise.
1362 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1364 * nss/getent.c (print_networks): Don't print comma between aliases.
1366 2009-01-23 Ulrich Drepper <drepper@redhat.com>
1368 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1370 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1372 * misc/Makefile (tests): Add bug-hsearch1.
1373 * misc/bug-hsearch1.c: New file.
1375 2009-01-22 Roland McGrath <roland@redhat.com>
1377 * Makeconfig (%.v.i): Strip trailing # comments,
1378 not only whole-line comments.
1380 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1382 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1383 one parameter. If non-NULL use it to initialize return value.
1384 (_dl_setup_pointer_guard): New function.
1385 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1386 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1387 * elf/rtld.c (security_init): Pass _dl_random to
1388 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1390 * elf/dl-sysdep.c (_dl_random): New variable.
1391 (_dl_sysdep_start): Handle AT_RANDOM.
1392 (_dl_show_auxv): Likewise.
1393 * elf/dl-support.c (_dl_random): New variable.
1394 (_dl_aux_init): Handle AT_RANDOM.
1395 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1396 to _dl_setup_stack_chk_guard.
1398 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1400 2009-01-10 Roland McGrath <roland@redhat.com>
1402 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1404 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1406 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1409 * nss/nss_files/files-parse.c (strtou32): New function.
1410 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1411 across 32-bit and 64-bit platforms.
1412 (INT_FIELD_MAYBE_NULL): Likewise.
1414 2009-01-08 Jakub Jelinek <jakub@redhat.com>
1417 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1418 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1419 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1422 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
1425 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1426 being NULL also if there are no backreferences.
1427 * posix/rxspencer/tests: Add testcases.
1429 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
1432 * posix/bug-regex17.c: Add testcases.
1433 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1436 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1438 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1439 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1440 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1441 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1443 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1444 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1445 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1446 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1447 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1448 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1450 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
1452 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1453 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1454 re_string_skip_chars, re_string_reconstruct): Likewise.
1455 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1457 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
1459 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1460 adjust the buffer alignment.
1462 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1464 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1465 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1468 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1469 flavor to description only when flavor is not NULL.
1471 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1472 mutex after SIGIO/SIGURG lookup loop.
1474 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1476 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1478 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1480 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1483 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1485 * sysdeps/unix/sysv/linux/kernel-features.h
1486 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1488 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1489 if no output is written.
1491 * version.h: Bump to 2.10 development.
1493 * posix/getconf.c: Update copyright year.
1494 * nss/getent.c: Likewise.
1495 * iconv/iconvconfig.c: Likewise.
1496 * iconv/iconv_prog.c: Likewise.
1497 * elf/ldconfig.c: Likewise.
1498 * catgets/gencat.c: Likewise.
1499 * csu/version.c: Likewise.
1500 * elf/ldd.bash.in: Likewise.
1501 * elf/sprof.c (print_version): Likewise.
1502 * locale/programs/locale.c: Likewise.
1503 * locale/programs/localedef.c: Likewise.
1504 * nscd/nscd.c (print_version): Likewise.
1505 * debug/xtrace.sh: Likewise.
1506 * malloc/memusage.sh: Likewise.
1507 * malloc/mtrace.pl: Likewise.
1508 * debug/catchsegv.sh: Likewise.
1510 2008-12-29 Mike Frysinger <vapier@gentoo.org>
1512 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1515 2008-12-29 Ulrich Drepper <drepper@redhat.com>
1517 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1518 gethostbyname4_r function call succeeded, just leave the loop.
1521 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1523 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1524 * wctype/Makefile (tests): Add bug-wctypeh.
1525 * wctype/bug-wctypeh.c: New file.
1527 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1528 LOCALDOMAIN is defined.
1529 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1531 * sysdeps/x86_64/bits/select.h: New file.
1533 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1535 2008-12-21 Bruno Haible <bruno@clisp.org>
1538 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1539 if no output is written.
1541 2008-12-13 Klaus Dittrich <kladit@arcor.de>
1543 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1544 libc internal symbol __dup2 to avoid access through the PLT.
1546 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1549 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1550 available only for __USE_GNU.
1552 * inet/Makefile (tests): Add tst-getni2.
1553 * inet/tst-getni2.c: New file.
1556 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1557 NULL when NI_NAMEREQD is set.
1558 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1559 * inet/Makefile (tests): Add tst-getni1.
1560 * inet/tst-getni1.c: New file.
1562 2008-12-03 Petr Baudis <pasky@suse.cz>
1565 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1566 instead of prune_lock.
1567 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1568 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1570 2008-12-07 Ulrich Drepper <drepper@redhat.com>
1572 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1575 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1578 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1579 after reading name server list.
1582 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1583 handling for host name aliases.
1585 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1587 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1588 instead of doing things manually.
1590 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1592 * posix/regex_internal.h (build_wcs_upper_buffer):
1593 Return type is reg_error_t.
1595 2008-12-05 Ulrich Drepper <drepper@redhat.com>
1597 * posix/globtest.sh: Use mktemp to create temporary file and
1600 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1602 (__CPU_CLR_S): Likewise.
1603 (__CPU_ISSET_S): Likewise.
1605 2008-12-05 Joseph Myers <joseph@codesourcery.com>
1606 Ulrich Drepper <drepper@redhat.com>
1608 * scripts/firstversion.awk: Use custom comparison function to compare
1610 * scripts/versions.awk: Use sort invocation which can handle
1611 multi-digit sub-version numbers.
1613 2008-12-04 Ulrich Drepper <drepper@redhat.com>
1615 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1616 * locale/iso-639.def: Add Chhattisgarhi entry.
1618 2008-12-02 Ulrich Drepper <drepper@redhat.com>
1620 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1622 (_nss_dns_gethostbyname4_r): Likewise.
1623 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1624 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1625 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1626 the no_data variable.
1628 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1629 information at the correct index.
1631 * socket/sys/socket.h: Declare accept4.
1632 * socket/accept4.c: New file.
1633 * sysdeps/unix/sysv/linux/accept4.c: New file.
1634 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1635 * socket/Makefile (routines): Add accept4.
1636 * socket/Versions: Export accept4 with version GLIBC_2.10.
1637 * socket/paccept.c: Removed.
1638 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1639 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1640 * Versions.def: Define GLIBC_2.10 for libc.
1641 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1643 * nscd/connections.c: Use accept4.
1645 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1647 2008-12-01 Ulrich Drepper <drepper@redhat.com>
1649 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1652 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1654 * stdlib/Makefile (tests): Add tst-unsetenv1.
1655 * stdlib/tst-unsetenv1.c: New file.
1657 2008-11-29 Ulrich Drepper <drepper@redhat.com>
1659 * login/utmp_file.c (file_writable): New variable.
1660 (setutent_file): Don't try to open file for writing.
1661 (pututline_file): Before writing, make descriptor writable if
1664 2008-11-26 Ulrich Drepper <drepper@redhat.com>
1666 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1667 to IPv4 or IPv6 if an interface has been found.
1669 2008-11-26 Roland McGrath <roland@redhat.com>
1671 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1672 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1674 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1675 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1676 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1678 * elf/elf.h (NT_386_IOPERM): New macro.
1679 (NT_PPC_VSX): New macro.
1681 2008-11-25 Roland McGrath <roland@redhat.com>
1683 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1684 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1685 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1686 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1687 Subdirectories moved to ports repository.
1688 * configure.in (base_machine): Remove alpha case.
1690 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1692 * sysdeps/mach/strerror_l.c: New file.
1694 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1697 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1698 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1700 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1701 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1702 (relax_fenv_state): Same as above.
1703 (FPSCR_29): Reserve bit in ISA 2.05.
1704 (FPSCR_NI): Provide define for compat.
1705 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1707 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1709 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1710 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1711 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1712 access to hwcap to account for hwcap size increase to uint64_t.
1713 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1716 (*setcontext): Likewise.
1717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1722 (*setcontext): dynamically select mtfsf insn based on
1723 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1724 increase to uint64_t.
1725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1726 (*swapcontext): dynamically select mtfsf insn based on
1727 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1728 increase to uint64_t.
1729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1734 (*setcontext): dynamically select mtfsf insn based on
1735 PPC_FEATURE_HAS_DFP.
1736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1737 (*swapcontext): dynamically select mtfsf insn based on
1738 PPC_FEATURE_HAS_DFP.
1740 2008-11-13 Ulrich Drepper <drepper@redhat.com>
1742 * version.h: Bump for 2.9 release.
1743 * include/features.h (__GLIBC_MINOR__): Bump to 9.
1746 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1747 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1750 2008-11-11 Ulrich Drepper <drepper@redhat.com>
1753 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1754 unknown request types for now.
1756 2008-11-11 Roland McGrath <roland@redhat.com>
1758 * sysdeps/x86_64/configure: New file.
1760 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1761 * configure: Regenerated.
1763 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1765 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1766 correct instruction to remove the stack frame.
1768 2008-11-03 Michael Matz <matz@suse.de>
1770 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1771 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1773 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1775 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1778 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1779 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1780 of the thread variable instead of void *.
1781 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1782 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1783 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1784 __libc_tsd_define arguments.
1785 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1786 __libc_tsd_address arguments. Remove union hack.
1787 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1788 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1789 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1790 Adjust __libc_tsd_{set,get} arguments.
1791 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1792 __libc_tsd_define arguments.
1793 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1795 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1796 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1797 (LOCALE): Adjust __libc_tsd_define arguments.
1798 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1800 (LOCALE): Adjust __libc_tsd_define arguments.
1801 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1803 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1806 2008-11-02 Ulrich Drepper <drepper@redhat.com>
1808 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1809 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1811 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1814 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1816 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1817 Ulrich Drepper <drepper@redhat.com>
1819 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1820 definition for GCC 3.1 and later.
1822 2008-10-31 Jakub Jelinek <jakub@redhat.com>
1824 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1825 refetch dtv, as it might have changed.
1826 * elf/Makefile: Add rules to build and run tst-tls18.
1827 * elf/tst-tls18.c: New test.
1828 * elf/tst-tlsmod18a.c: New file.
1830 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
1833 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1835 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1838 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1841 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1842 Fix length of copy operation.
1844 2008-10-02 Pierre Habouzit <madcoder@debian.org>
1846 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1847 and fix its calling convention.
1849 2008-10-07 Andreas Schwab <schwab@suse.de>
1852 * resolv/res_send.c (send_vc): Fix last change.
1853 (send_dg): Align here as well.
1855 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1857 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1858 return value in case rlimit is RLIM_INFINITY.
1861 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1863 * resource/Makefile (tests): Add bug-ulimit1.
1864 * resource/bug-ulimit1.c: New file.
1867 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1868 without dot. Properly terminate the string with a null byte.
1869 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1872 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1874 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1878 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1880 2008-10-30 Ulrich Drepper <drepper@redhat.com>
1882 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1883 abort if there is no initgroups_dyn function.
1885 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1886 result if any of the queries really provided an answer.
1888 2008-10-28 Ulrich Drepper <drepper@redhat.com>
1890 * po/lt.po: Update from translation team.
1892 2008-10-26 Ulrich Drepper <drepper@redhat.com>
1894 * po/id.po: Update from translation team.
1896 2008-10-24 Ulrich Drepper <drepper@redhat.com>
1898 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1899 Fix tests for existence of second reply.
1901 2008-10-23 Ulrich Drepper <drepper@redhat.com>
1903 * po/id.po: New file.
1904 Contributed by the Indonesian translation team.
1906 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1908 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1911 2008-10-17 Jakub Jelinek <jakub@redhat.com>
1913 * elf/Makefile: Add rules to build and run tst-tls17.
1914 * elf/tst-tls17.c: New test.
1915 * elf/tst-tlsmod17a.c: New file.
1916 * elf/tst-tlsmod17b.c: Likewise.
1918 2008-10-17 Ulrich Drepper <drepper@redhat.com>
1920 * stdlib/divmod_1.c: Use correct type for dummy variable.
1921 * stdlib/mod_1.c: Likewise.
1923 2008-10-16 Ulrich Drepper <drepper@redhat.com>
1925 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1927 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1929 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1930 __nonnull order for C++.
1931 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1932 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1934 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1936 * stdlib/longlong.h: Update from GCC.
1938 2008-10-09 Jakub Jelinek <jakub@redhat.com>
1939 David S. Miller <davem@davemloft.net>
1941 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1942 make sure any registers used with 64-bit 'branch-on-register'
1943 instructions have their top 32-bits clear.
1944 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1945 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1947 2008-09-18 Andreas Schwab <schwab@suse.de>
1950 * resolv/res_send.c (send_vc): Fix use of unaligned address.
1951 Properly handle partial reads.
1953 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1955 * elf/elf.h (STO_MIPS_PLT): New.
1957 (R_MIPS_JUMP_SLOT): New.
1958 (R_MIPS_NUM): Redefine to 128.
1959 (DT_MIPS_PLTGOT): New.
1960 (DT_MIPS_RWPLT): New.
1961 (DT_MIPS_NUM): Redefine to 0x35.
1963 2008-10-01 Ulrich Drepper <drepper@redhat.com>
1965 * timezone/africa: Update from tzdata2008f.
1966 * timezone/asia: Likewise.
1967 * timezone/australasia: Likewise.
1968 * timezone/europe: Likewise.
1969 * timezone/leapseconds: Likewise.
1970 * timezone/northamerica: Likewise.
1971 * timezone/southamerica: Likewise.
1972 * timezone/zone.tab: Likewise.
1974 2008-09-30 Ulrich Drepper <drepper@redhat.com>
1976 * nscd/connections.c: Disable use of paccept for now.
1978 2008-09-29 Ulrich Drepper <drepper@redhat.com>
1980 * socket/Versions: Remove paccept export for GLIBC_2.9.
1981 * socket/Makefile (routines): Remove paccept.
1982 * socket/sys/socket.h: Remove paccept declaration.
1984 * po/sv.po: Update from translation team.
1986 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
1988 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1989 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1991 2008-09-16 Ulrich Drepper <drepper@redhat.com>
1993 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1994 Patch by Olivier Fourdan <ofourdan@redhat.com>.
1996 2008-09-15 Ulrich Drepper <drepper@redhat.com>
1998 * sunrpc/rpc/svc.h: Declare svcfd_create.
1999 Patch by Michael Solberg <msolberg@redhat.com>.
2001 2008-09-12 Flavio Leitner <fleitner@redhat.com>
2002 Ulrich Drepper <drepper@redhat.com>
2004 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2006 (public_pVALLOc): Likewise.
2008 2008-09-02 Andreas Jaeger <aj@suse.de>
2010 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2013 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2016 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2018 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2020 * Makefile (check-data): Check data directory in add-ons.
2021 * elf/Makefile (check-data): Likewise.
2023 2008-08-18 Roland McGrath <roland@redhat.com>
2025 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2026 * configure: Regenerated.
2027 * config.make.in (cflags-cpu): New substituted variable.
2028 (with-cpu): Variable removed.
2029 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2031 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2034 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2035 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2036 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2037 redundant. Functions which call floating point assembler operations
2038 should go into a sysdeps powerpc/fpu directory.
2040 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2042 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2043 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2045 2008-08-14 Ulrich Drepper <drepper@redhat.com>
2047 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2049 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2050 change related to AT_EXECFN. We cannot use that string.
2051 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2053 * elf/dl-support.c: Remove _dl_execfn variable.
2054 (_dl_aux_init): Remove handling of AT_EXECFN.
2055 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2056 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2058 2008-08-13 Ulrich Drepper <drepper@redhat.com>
2061 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2062 byte gets added to writes and seeks from the end use the length of
2063 the buffer and not the currently terminating NUL byte.
2066 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2067 Set to true if locking failed.
2068 (getutid_r_file): Adjust caller.
2069 (pututline_file): Likewise. Return NULL in this case.
2070 Patch mostly by halesh.s@gmail.com.
2072 2008-08-12 Ulrich Drepper <drepper@redhat.com>
2075 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2077 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2079 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2082 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2083 macro since it is now available in elf/dynamic-link.h.
2085 2008-08-12 Roland McGrath <roland@frob.com>
2087 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2088 in case used outside of libc.
2089 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2091 2008-08-11 Ulrich Drepper <drepper@redhat.com>
2093 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2094 directly instead of going through dn_comp.
2096 2008-08-11 Aurelien Jarno <aurel32@debian.org>
2098 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2099 Fix asm constraints.
2101 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2104 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2105 (IPV6_PMTUDISC_PROBE): Likewise.
2107 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2110 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2112 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
2113 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2116 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2117 Added the members 'vsx' and 'arch_2_06'.
2118 (_dl_powerpc_platforms): Add the member 'power7'.
2119 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2120 to reflect the changes required by VSX and ISA 2.06.
2121 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2123 Defined PPC_PLATFORM_POWER7.
2124 (_dl_string_platform): Add support for POWER7.
2125 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2126 capability and ISA 2.06.
2128 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2131 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2132 macro to detect use of 128 bit long double.
2133 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2135 2008-08-05 Ulrich Drepper <drepper@redhat.com>
2137 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2140 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2142 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2143 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2145 2008-08-03 Ulrich Drepper <drepper@redhat.com>
2147 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2148 guaranteed to be large enough to read inotify event. Ignore
2149 EAGAIN error. Better error message. Add branch predicition.
2150 (main_loop_epoll): Likewise.
2152 2008-08-02 Roland McGrath <roland@frob.com>
2154 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2155 Add memory clobbers.
2157 2008-08-02 Ulrich Drepper <drepper@redhat.com>
2159 * manual/arith.texi: Avoid @strong{Note:}.
2160 * manual/creature.texi: Likewise.
2161 * manual/filesys.texi: Likewise.
2162 * manual/math.texi: Likewise.
2163 * manual/memory.texi: Likewise.
2164 * manual/resource.texi: Likewise.
2165 * manual/syslog.texi: Likewise.
2166 * manual/time.texi: Likewise.
2168 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2171 2008-08-01 Ulrich Drepper <drepper@redhat.com>
2173 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2174 new epoll_create1 interface.
2175 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2176 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2177 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2179 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2180 (NS_GET32): Likewise.
2182 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2185 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2186 use the AT_EXECFN value if it is no absolute path.
2187 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2190 * Versions.def: Add GLIBC_2.9 to libresolv.
2191 * include/resolv.h: Remove hidden proto declarations for __ns_*
2192 functions. Add them for __dn_count_labels and __p_secstodate.
2193 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2194 Define ns_msg_getflags macro here.
2195 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2197 * resolv/Versions: Export functions from <arpa/nameser.h> from
2198 libresolv in version GLIBC_2.9.
2199 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2201 * resolv/ns_netint.c: Likewise.
2202 * resolv/ns_parse.c: Likewise.
2203 * resolv/ns_print.c: Likewise.
2204 * resolv/ns_samedomain.c: Likewise.
2205 * resolv/ns_ttl.c: Likewise.
2206 * resolv/arpa/nameser_compat.h: Likewise.
2207 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2209 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2210 instead of ns_get16.
2211 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2212 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2213 (gaih_getanswer_slice): Likewise.
2214 * resolv/Makefile (libresolv-routines): Add ns_date.
2215 * resolv/ns_date.c: New file.
2217 * elf/Makefile (check-localplt.out): Also check libresolv and
2220 2008-07-31 Ulrich Drepper <drepper@redhat.com>
2222 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2225 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2227 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2228 buffer passed to NSS functions.
2230 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2232 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2235 * misc/syslog.c (openlog_internal): Fix compile problem.
2237 2008-07-28 Roland McGrath <roland@redhat.com>
2239 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2241 2008-07-28 Ulrich Drepper <drepper@redhat.com>
2243 * io/ftw.c (add_object): Remove inline to avoid warning.
2245 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2247 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2248 Use it instead of locally defined resplen2 variable.
2249 (res_nsend): Adjust for __libc_res_nsend interface change.
2250 (send_vc): Initialize *resplen2 if necessary. Read length of
2251 package into an appropriately aligned variable. Store converted length
2252 in new variable and use it appropriately.
2253 Add branch prediction help.
2254 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2255 and pass it on to __libc_res_nsend. Adjust all callers.
2256 (__libc_res_nsearch): Likewise.
2257 (__libc_res_nqeurydomain): Likewise.
2258 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2260 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2261 Define resplen2 variable and pass it to __libc_res_nsearch and then
2263 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2264 Add branch prediction.
2265 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2266 (gaih_getanswer): Don't decode second slice if first one failed due
2267 to a too small buffer. Don't let not found status of second
2268 decoder shadow results of the first.
2269 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2270 and __libc_res_nquery interface changes
2271 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2272 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2273 __libc_res_nsearch, and __libc_res_nsend.
2274 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2276 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2277 __libc_res_nsearch interface changes.
2279 2008-07-27 Ulrich Drepper <drepper@redhat.com>
2281 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2283 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2284 file descriptors with close-on-exec set.
2285 (exec_comm_child): Fix the case where the write end of the pipe is
2286 STDOUT_FILENO already. In case it is, clear close-on-exec.
2288 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2289 * io/pipe2.c: Likewise.
2290 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2291 instead of __ASSUME_PACCEPT.
2292 * include/unistd.h: Declare __have_pipe2.
2293 * libio/iopopen.c: Implement "e" flag.
2294 * libio/Makefile (tests): Add tst-popen1.
2295 * libio/tst-popen1.c: New file.
2297 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2298 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2300 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2303 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2304 success call of _IO_SEEKOFF or calls which failed because the
2305 descriptor is for a pipe.
2307 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2310 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2312 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2313 F_SETFD use if we know fopen set the flag.
2315 * login/utmp_file.c (setutent_file): Minor optimization in case
2316 O_CLOEXEC is available.
2318 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2320 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2321 * elf/Makefile: Use pie-ccflag variable.
2322 * nscd/Makefile: Likewise.
2323 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2325 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2328 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2329 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2330 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2331 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2332 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2333 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2334 utmp32, utmpx32 and login32.
2335 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2336 versions of struct utmp functions to libc and libutil.
2337 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2338 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2339 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2340 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2341 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2342 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2343 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2344 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2345 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2346 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2347 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2348 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2349 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2350 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2351 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2352 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2353 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2354 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2355 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2356 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2357 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2358 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2360 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2362 * scripts/gen-as-const.awk: Generate more widely usable code by
2363 using 64-bit arithmetic.
2365 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2366 the same treatment as narrow output code in last patch.
2368 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2371 * elf/dl-load.c (local_strdup): Remove inline.
2372 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2373 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2376 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2378 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2380 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2381 the new syscalls, too.
2383 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2384 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2387 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2388 parameter for end of buffer. If temporary copy is too large use
2390 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2392 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2393 string rewrite when allocating buffer.
2395 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2398 * nscd/connections.c (nscd_init): Clean up fcntl call.
2400 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2401 SOCK_NONBLOCK if possible.
2403 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2404 SOCK_CLOEXEC if available.
2406 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2407 __libc_clntudp_bufcreate_internal.
2408 * include/sys/socket.h: Declare __have_sock_cloexec.
2409 * socket/Makefile (aux): Add have_sock_cloexec.
2410 * socket/have_sock_cloexec.c: New file.
2411 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2412 __libc_clntudp_bufcreate.
2413 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2414 which takes an additional parameter. Create socket with non-blocking
2415 mode and close-on-exec flag set, if wanted.
2416 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2417 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2418 instead of clntudp_create. The socket has already the close-on-exec
2419 flag set if SOCK_CLOEXEC is defined.
2421 2008-07-24 Ulrich Drepper <drepper@redhat.com>
2423 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2424 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2426 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2427 non-blocking mode by using socket, paccept, and inotify_init1.
2429 * Versions.def (glibc): Add GLIBC_2.9.
2430 * io/Makefile (routines): Add dup3 and pipe2.
2431 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2432 * io/dup3.c: New file.
2433 * io/pipe2.c: New file.
2434 * posix/unistd.h: Declare dup3 and pipe2.
2435 * socket/Makefile (routines): Add paccept.
2436 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2437 * socket/paccept.c: New file.
2438 * socket/sys/socket.h: Declare paccept.
2439 * sysdeps/unix/syscalls.list: Add entry for dup3.
2440 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2441 epoll_create2 and inotify_init1.
2442 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2443 * sysdeps/unix/sysv/linux/paccept.c: New file.
2444 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2446 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2447 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2448 inotify_init1, and pipe2 entries.
2449 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2450 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2451 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2452 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2453 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2454 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2456 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2457 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2458 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2459 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2460 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2461 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2462 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2463 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2464 EPOLL_NONBLOCK. Declare epoll_create2.
2465 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2467 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2468 IN_NONBLOCK. Declare inotify_init1.
2469 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2471 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2474 * elf/elf.h: Define AT_EXECFN.
2475 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2477 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2478 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2479 if __ASSUME_AT_EXECFN is defined.
2480 (_dl_aux_init): Handle AT_EXECFN.
2481 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2483 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2484 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2485 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2486 _dl_execfn if available and avoid compatibility code if
2487 __ASSUME_AT_EXECFN is defined.
2489 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2490 _dl_discover_osversion only for older kernels.
2492 2008-07-22 Roland McGrath <roland@frob.com>
2494 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2496 2008-07-21 Roland McGrath <roland@frob.com>
2498 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2499 returned too much data out of line.
2501 2008-07-20 Ulrich Drepper <drepper@redhat.com>
2503 * locale/setlocale.c (setname): Remove inline to avoid compiler
2507 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2509 2008-07-15 Ulrich Drepper <drepper@redhat.com>
2511 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2512 doesn't manage to write anything, fail.
2514 * malloc/hooks.c (__malloc_check_init): Remove printf.
2516 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2518 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2520 2008-07-12 Ulrich Drepper <drepper@redhat.com>
2522 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2524 (main_loop_epoll): Likewise.
2526 2008-07-09 Ulrich Drepper <drepper@redhat.com>
2528 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2530 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2531 if DEBUG is defined.
2533 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2534 query. Adjust buffer size computation for padding.
2536 2008-07-08 Ulrich Drepper <drepper@redhat.com>
2538 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2539 * stdio-common/tst-setvbuf1.c: New file.
2540 * stdio-common/tst-setvbuf1.expect: New file.
2543 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2544 when selecting fully-buffered stream.
2545 Patch by Wang Xin <wxinee@gmail.com>.
2547 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2549 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2550 (__open_2): New function.
2551 (__open64_2): New alias to __open_2.
2552 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2553 (__openat_2): New function.
2554 (__openat64_2): New alias to __openat_2.
2556 2008-07-06 Ulrich Drepper <drepper@redhat.com>
2559 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2561 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2563 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2564 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2565 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2567 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2568 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2569 * sysdeps/mach/hurd/send.c (__send): Likewise.
2570 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2571 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2573 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2575 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2576 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2577 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2578 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2579 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2580 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2582 2008-06-27 Ulrich Drepper <drepper@redhat.com>
2585 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2587 Patch by Petr Baudis.
2589 2008-06-26 Ulrich Drepper <drepper@redhat.com>
2591 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2592 Patch by Peter Jones <pjones@redhat.com>.
2594 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2597 * stdlib/canonicalize.c (__realpath): readlink can write too much
2598 into the buffer on platforms without PATH_MAX.
2600 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2603 * posix/tst-regex.c (main): Rename to...
2604 (do_test): ... this. Remove cmdline option processing.
2606 (TEST_FUNCTION): Define.
2607 (CMDLINE_OPTIONS): Define.
2609 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2612 * configure.in: Add -Werror to -fstack-protector test to catch
2613 unsupported architectures.
2614 Patch by Gilles Esponasse <g.esp@free.fr>.
2616 2008-06-17 Joseph Myers <joseph@codesourcery.com>
2618 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2619 getcontext returns ENOSYS.
2621 2008-06-18 Ulrich Drepper <drepper@redhat.com>
2623 * nscd/connections.c (main_loop_poll): Fix test for read error.
2624 (main_loop_epoll): Likewise.
2626 2008-06-13 Ulrich Drepper <drepper@redhat.com>
2628 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2629 better place so it is not called when nscd is used.
2631 * nscd/connections.c: Also recognize and handle changes to the
2632 resolver configuration file.
2634 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2636 * time/strftime.c: Pass reference to tzset_called around to handle
2640 * time/strftime.c (__strftime_internal): Call tzset() only
2641 when printing timezone-dependent values.
2642 Based on a patch by Petr Baudis <pasky@suse.cz>.
2644 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2645 unconditionally use second gaih_getanswer_slice result.
2647 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2648 (getaddrinfo): RES must always be non-NULL.
2650 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2652 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2654 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2655 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2657 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2660 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2662 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2664 * nscd/connections.c (inotify_fd): New variable.
2665 (nscd_init): Try to open an inotify descriptor.
2666 If successful, watch files for databases using inotify instead of
2667 having prune threads stat the files.
2668 (nscd_run_prune): Recognize clear_cache flag being set and call
2669 prune_cache appropriately.
2670 (main_loop_poll): Add inotify descriptor to wait set and handle the
2672 (main_loop_epoll): Likewise.
2673 * nscd/cache.c (prune_cache): Don't stat files for databases if
2675 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2676 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2678 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2679 fixed-size portion of the record.
2680 * nscd/servicescache.c (cache_addserv): Likewise.
2681 * nscd/pwdcache.c (cache_addpw): Likewise.
2682 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2684 2008-06-11 Ulrich Drepper <drepper@redhat.com>
2686 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2687 out we don't use uninitialized memory.
2689 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2692 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2694 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2695 ignore T_DNAME messages.
2696 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2698 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2700 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2701 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2703 2008-06-03 Jakub Jelinek <jakub@redhat.com>
2705 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2706 instead of portstr to nscd_getserv_r. Patch by
2707 Roman Kagan <rkagan@mail.ru>.
2709 2008-05-26 Jim Meyering <meyering@redhat.com>
2711 Remove more useless "if" tests before "free".
2712 * include/inline-hashtab.h (htab_delete): Likewise.
2713 * libio/freopen.c (freopen): Likewise.
2714 * libio/freopen64.c (freopen64): Likewise.
2715 * locale/programs/ld-collate.c (collate_read): Likewise.
2716 * misc/fstab.c (libc_freeres_fn): Likewise.
2717 * posix/glob.c (globfree): Likewise.
2719 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2721 * string/Makefile (strop-tests): Add memmem.
2722 * string/test-memmem.c: New file.
2723 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2724 (test_init): Size buf1 according to BUF1PAGES.
2726 2008-05-24 Jakub Jelinek <jakub@redhat.com>
2728 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2729 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2730 (CFLAGS-scanf17.c): New.
2731 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2732 * stdio-common/scanf15.c (main): Likewise.
2733 * stdio-common/scanf16.c: New file.
2734 * stdio-common/scanf17.c: New file.
2736 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2738 * resolv/res_send.c (send_dg): If we already have one of two
2739 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2740 use the one answer insted of failing.
2742 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2744 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2745 being executed on PowerPC as the expected result exceeds IBM
2746 long double 128 __LDBL_MAX__.
2748 2008-05-21 Roland McGrath <roland@redhat.com>
2750 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2752 * Makefile (check-data): Use $(abi-name) before other guesses.
2753 Look in $(add-ons) dirs before scripts/data/.
2754 * elf/Makefile (check-data): Likewise.
2756 * scripts/soversions.awk: Grok ABI line.
2757 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2758 Emit definition for abi-name variable.
2760 2008-05-21 Ulrich Drepper <drepper@redhat.com>
2762 * string/endian.h: Define new fixed-size hto* and *toh macros only
2765 * iconvdata/Depend: Add localedata.
2767 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2769 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2771 2008-05-08 David S. Miller <davem@davemloft.net>
2773 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2775 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2776 (__SYSCALL_CLOBBERS): Remove %g* registers.
2777 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2778 (__SYSCALL_CLOBBERS): Likewise.
2779 * scripts/data/localplt-sparc-linux-gnu.data: New file.
2780 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2782 2008-05-21 Jakub Jelinek <jakub@redhat.com>
2784 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2785 (CALL_ERRNO_LOCATION): Define.
2786 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2787 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2788 (CALL_ERRNO_LOCATION): Define.
2789 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2790 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2791 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2793 2008-05-20 Ulrich Drepper <drepper@redhat.com>
2795 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2798 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2800 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2801 (FIRST_FRAME_POINTER): Define.
2803 2008-05-09 David S. Miller <davem@davemloft.net>
2805 * sysdeps/sparc/sparc64/backtrace.c: New file.
2807 2008-05-14 David S. Miller <davem@davemloft.net>
2809 * sysdeps/sparc/machine-gmon.h: New file.
2810 * sysdeps/sparc/sparc-mcount.S: Likewise.
2811 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2812 sysdep_routines in gmon directory.
2814 2008-05-19 Jakub Jelinek <jakub@redhat.com>
2816 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2818 2008-05-19 Ulrich Drepper <drepper@redhat.com>
2820 * resolv/res_query.c (__libc_res_nquery): In case one of two
2821 answer was too short don't try to read that answer's header.
2823 * resolv/res_send.c (send_dg): In case of timeout and there are
2824 two queries and one has been answered, return value indicating
2827 2008-05-18 Ulrich Drepper <drepper@redhat.com>
2829 * nscd/cache.c (cache_add): Take additional parameter specifying
2830 whether this is in response of a cache refill. Check alignment
2831 of package data. Revamp waking of pruning thread.
2832 (prune_cache): Small optimization.
2833 * nscd/nscd.h: Adjust cache_add prototypes.
2834 * nscd/aicache.c: Adjust cache_add calls.
2835 * nscd/grpcache.c: Likewise.
2836 * nscd/hstcache.c: Likewise.
2837 * nscd/initgrcache.c: Likewise.
2838 * nscd/pwdcache.c: Likewise.
2839 * nscd/servicescache.c: Likewise.
2840 * nscd/connections.c (restart): Really disable cache use before
2841 exec attempt. If it fails, reenable cache.
2842 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2843 time to max to be able to notice concurrent cache additions. Unlock
2844 prune_lock while performing gc. Afterwards compute wakeup time with
2845 current wakeup_time value in mind.
2847 2008-05-17 Ulrich Drepper <drepper@redhat.com>
2849 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2851 * nscd/mem.c (gc): Correctly determine highest used array element
2854 * nscd/mem.c (markrange): Add assert to check entries are all
2855 aligned. Small cleanup in bitmap use.
2857 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2858 blockoff of type nscd_ssize_t.
2859 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2860 (mempoll_alloc): Record block offset and not address.
2862 * nscd/mem.c (gc): Fix test for stack overuse.
2864 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2867 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2868 entry is available, believe it.
2870 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2871 no answers return NSS_STATUS_NOTFOUND.
2872 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2873 buffer does not have any content.
2875 2008-05-16 Ulrich Drepper <drepper@redhat.com>
2877 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2879 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2880 lookup, don't assign canon unconditionally.
2882 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2884 * string/Makefile (distribute): Add str-two-way.h.
2886 2008-03-29 Eric Blake <ebb9@byu.net>
2888 Rewrite string searches to O(n) rather than O(n^2).
2889 * string/str-two-way.h: New file. For linear fixed-allocation
2891 * string/memmem.c: New implementation.
2892 * string/strstr.c: New implementation.
2893 * string/strcasestr.c: New implementation.
2895 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
2897 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2899 (calc_first): Initialize constraint field.
2900 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2901 Use search_duplicated_node to avoid loops. Fix grammar.
2902 (duplicate_node): Merge constraint field for all node types.
2903 (calc_eclosure_iter): Look at constraint field for all node types.
2904 * posix/regex_internal.c (create_cd_newstate): Don't look at
2907 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2910 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2913 * string/endian.h: Add macros for fixed-size endian conversion.
2914 * bits/byteswap.h: Allow inclusion from <endian.h>.
2915 * sysdeps/i386/bits/byteswap.h: Likewise.
2916 * sysdeps/ia64/bits/byteswap.h: Likewise.
2917 * sysdeps/s390/bits/byteswap.h: Likewise.
2918 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2919 * string/Makefile (tests): Add tst-endian.
2920 * string/tst-endian.c: New file.
2922 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2923 Patch by Reuben Thomas.
2925 2008-05-14 Joseph Myers <joseph@codesourcery.com>
2927 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2929 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2931 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2934 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2936 (BODY for __gconv_transform_internal_ascii): Likewise.
2939 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2940 to be treated like link-local addresses.
2941 (match_prefix): Don't treat IPv4 loopback address special when
2942 converting to v4 mapped addressed.
2944 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2946 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2947 * posix/tst-rfc3484-2.c: Likewise.
2948 * posix/tst-rfc3484-3.c: Likewise.
2950 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2953 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2955 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2957 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2959 2008-05-13 Ulrich Drepper <drepper@redhat.com>
2961 * po/lt.po: New file. From Lituanian translation team.
2963 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
2965 Introduce TLS descriptors for i386 and x86_64.
2966 * include/inline-hashtab.h: New file, copied from 2005's
2967 libiberty, with fix for memory leak imported afterwards by
2968 Glauber de Oliveira Costa.
2969 * elf/tlsdeschtab.h: New file.
2970 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2971 (_dl_allocate_static_tls): ... here. Rearrange failure path.
2972 (CHECK_STATIC_TLS): Move to...
2973 * elf/dynamic-link.h: ... this file.
2974 (TRY_STATIC_TLS): New macro.
2975 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2976 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2977 R_386_TLS_DESC): Define.
2978 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2980 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2981 R_X86_64_TLSDESC): Define.
2982 (R_386_NUM, R_X86_64_NUM): Adjust.
2983 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2984 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2985 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2986 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2987 release tlsdesc_table.
2988 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2989 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2990 (elf_machine_rel): Handle R_386_TLS_DESC.
2991 (elf_machine_rela): Likewise.
2992 (elf_machine_lazy_rel): Likewise.
2993 (elf_machine_lazy_rela): Likewise.
2994 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2995 * sysdeps/i386/dl-tlsdesc.S: New file.
2996 * sysdeps/i386/dl-tlsdesc.h: New file.
2997 * sysdeps/i386/tlsdesc.c: New file.
2998 * sysdeps/i386/tlsdesc.sym: New file.
2999 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3001 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3002 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3003 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3004 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3005 release tlsdesc_table.
3006 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3007 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3008 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3009 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3010 (elf_machine_rela): Likewise.
3011 (elf_machine_lazy_rel): Likewise.
3012 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3013 (__tls_get_addr): Do not declare for non-shared compiles.
3014 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3015 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3016 * sysdeps/x86_64/tlsdesc.c: New file.
3017 * sysdeps/x86_64/tlsdesc.sym: New file.
3018 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3019 tlsdesc_table for both 32- and 64-bit structs.
3021 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3023 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3024 its own function. This reduces the frame setup costs and more.
3026 2008-02-11 Joseph Myers <joseph@codesourcery.com>
3029 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3030 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3032 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3034 * io/openat.c (__openat_2): Also pass fd to __openat.
3035 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3036 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3038 * string/tester.c (test_memcmp): Add a few more tests.
3039 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3041 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3043 * nscd/cache.c (cache_add): Before returning with failure and this
3044 is the first use of the record, mark it as unusable.
3045 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3046 reporting a failure.
3047 * nscd/grpcache.c: Likewise
3048 * nscd/hstcache.c: Likewise.
3049 * nscd/initgrcache.c: Likewise.
3050 * nscd/pwdcache.c: Likewise.
3051 * nscd/servicescache.c: Likewise.
3053 2008-05-10 Roland McGrath <roland@redhat.com>
3056 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3058 2008-05-08 David S. Miller <davem@davemloft.net>
3060 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3062 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3063 (__ieee754_y0l): Likewise.
3064 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3065 (__ieee754_y1l): Likewise.
3066 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3067 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3068 frexpl and ldexpl. math_private.h provides them and the latter
3070 (__log1pl): Use __frexpl.
3072 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3074 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3076 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3077 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3078 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3079 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3081 (_nss_nis_gethostbyname4_r): New function.
3082 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3083 Change to also handle af==AF_UNSPEC.
3084 (get_tablename): New function. Use it to avoid duplication.
3085 (_nss_nisplus_gethostbyname4_r): New function.
3086 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3088 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3089 * nss/nss.h: Define struct gaih_addrtuple.
3090 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3092 (_nss_files_gethostbyname4_r): New function.
3093 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3094 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3096 * resolv/res_query.c (__libc_res_nquery): Take two additional
3097 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3098 look up IPv4 and IPv6.
3100 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3101 for an additional query and answer buffer. Pass to send_vc and
3103 (send_vc): Send possibly two requests and receive two answers.
3104 (send_dg): Likewise.
3105 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3107 (_nss_dns_gethostbyname4_r): New function.
3108 (gaih_getanswer_slice): Likewise.
3109 (gaih_getanswer): Likewise.
3110 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3111 __libc_res_nquery call.
3112 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3113 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3114 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3117 2008-05-05 David S. Miller <davem@davemloft.net>
3119 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3120 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3122 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3124 Fix termios bit macros.
3125 Move *DLY definitions where they belong, in termios.h.
3126 Add *[0-3] definitions.
3127 Fixes confusion between VT and FF.
3128 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3129 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3130 are already defined to avoid collision with termios.h.
3131 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3132 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3133 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3134 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3135 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3136 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3137 VTDLY, VT0, VT1): New macros.
3138 [__USE_GNU] (OLCUC): Change value of macro.
3139 [__USE_XOPEN] (OFILL): New macro.
3140 [__USE_BSD] (CRTSCTS): Change value.
3141 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3142 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3143 (B7200, B14400, B28800, B76800): New macros.
3145 2008-05-01 David S. Miller <davem@davemloft.net>
3147 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3148 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3149 (gen-as-const-headers): Add it.
3150 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3151 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3152 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3153 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3155 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3156 six system call parameters.
3157 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3159 2008-04-30 Ulrich Drepper <drepper@redhat.com>
3161 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3163 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3164 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3166 2008-04-30 Jakub Jelinek <jakub@redhat.com>
3168 * stdlib/tst-setcontext.c: Include unistd.h.
3170 2008-04-25 David S. Miller <davem@davemloft.net>
3172 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3173 Pass "union semun" properly in to sys_ipc, it must be passed
3174 by value, not by reference.
3176 2008-04-22 Jakub Jelinek <jakub@redhat.com>
3178 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3179 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3180 * nscd/connections.c (mem_in_flight): Likewise.
3182 * nscd/nscd.h (dbs): Make hidden.
3184 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3185 Avoid returning -1, return 0 instead.
3187 2008-04-19 Ulrich Drepper <drepper@redhat.com>
3189 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3191 2008-04-15 Ulrich Drepper <drepper@redhat.com>
3194 * sysdeps/unix/sysv/linux/times.c: New file.
3197 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3198 mem_in_flight_list variables. Add new parameter to mempool_alloc
3200 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3201 appropriate mem_in_flight element.
3202 (gc): Take allocations which have not yet been committed to the
3203 database into account.
3204 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3205 Reset mem_in_flight before returning.
3206 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3207 cue it up in mem_in_flight_list.
3208 * nscd/aicache.c: Adjust mempool_alloc call.
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.
3214 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3217 * nscd/connections.c (handle_request): Provide better error message
3218 in case SELinux forbids the service.
3220 * version.h (VERSION): Bump to 2.8.90.
3222 2008-04-17 Jakub Jelinek <jakub@redhat.com>
3224 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3226 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3228 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3229 Also use for 32-bit.
3230 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3231 __nextafter instead of nextafter to avoid local PLT.
3232 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3233 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3235 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3237 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3239 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3240 <fenv_libc.h> instead of <fenv.h>.
3241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3244 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3246 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3247 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3248 function from fegetexcept and make old name weak alias.
3249 * include/fenv.h: Declare __fegetexcept.
3250 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3252 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3253 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3255 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3256 instead of frexpl to avoid local PLT.
3257 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3258 ilogbl to avoid local PLT.
3259 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3260 instead of ldexpl to avoid local PLT.
3261 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3262 __roundl not roundl to avoid local PLT.
3263 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3264 local PLTs. Use __sincosl instead of separate sinl and cosl
3266 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3268 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3269 version for ppc64 to 2.4.21 since without it makecontext will fail.
3271 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3273 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3275 [__powerpc64__] (TLS_GD): Likewise.
3277 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3280 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3281 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3283 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3284 Likewise. Also account for when x is an odd number between 2^52
3286 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3287 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3288 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3289 detect aforementioned erroneous conditions.
3291 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3293 * configure.in: Check for -fno-section-anchors in addition to
3294 -fno-toplevel-reorder.
3296 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3298 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3300 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3301 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3302 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3303 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3304 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3305 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3307 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3310 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3311 * time/alt_digit.c: Likewise.
3312 * wcsmbs/wcsmbsload.c: Likewise.
3314 2008-04-10 Ulrich Drepper <drepper@redhat.com>
3316 * version.h (VERSION): Bump to 2.8.
3318 * timzeone/asia: Update from tzdata2008b.
3319 * timezone/backward: Likewise.
3320 * timezone/europe: Likewise.
3321 * timezone/northamerica: Likewise.
3322 * timezone/southamerica: Likewise.
3323 * timezone/iso3166.tab: Likewise.
3324 * timezone/leapseconds: Likewise.
3325 * timezone/zone.tab: Likewise.
3326 * timezone/private.h: Update from tzcode2008a.
3327 * timezone/zdump.c: Likewise.
3328 * timezone/zic.c: Likewise.
3330 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3333 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3334 Define additonal Data Cache Block instruction macros.
3335 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3336 Replace dcbst with dcbf and sync with sync/isync.
3338 2008-02-21 Alan Modra <amodra@bigpond.net.au>
3340 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3341 Always set ELF_RTYPE_CLASS_PLT.
3342 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3344 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3346 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3347 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3348 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3349 For ISA 2.01 and later replace mftb with mfspr 268.
3351 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3354 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3355 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3357 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3360 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3361 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3362 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3363 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3365 2008-04-10 Jakub Jelinek <jakub@redhat.com>
3367 * stdlib/tst-makecontext.c (othervar): New variable.
3368 (cf): Test sign extending the argument to long.
3370 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3372 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3373 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3374 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3375 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3376 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3377 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3378 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3380 2008-02-22 Alan Modra <amodra@bigpond.net.au>
3382 * elf/Makefile (tests): Substitute tests-vis-yes here.
3383 (tests-vis-yes): Delete.
3384 (modules-name, modules-vis-yes): Similarly.
3386 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3389 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3390 Preserve sign in signgamp when x is zero.
3392 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3394 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3395 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3396 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3397 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3398 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3399 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3401 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3404 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3408 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3409 a reserved error value.
3411 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3412 value to check for correct sign extension.
3415 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3416 Copy 64-bit parameter values even though this is not required in
3419 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3422 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3424 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3427 2008-04-09 Jakub Jelinek <jakub@redhat.com>
3429 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3431 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3434 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3435 in line-buffered stream failed.
3436 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3438 2008-04-08 Ulrich Drepper <drepper@redhat.com>
3441 * scripts/abi-versions.awk: If the version specified by
3442 --enable-oldest-abi is older than the first version for this
3443 architecture, use the default version.
3445 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3446 as well when ignoring the whole category.
3448 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3451 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3452 ETHERTYPE_* definitions.
3453 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3455 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3457 * stdlib/mbtowc.c (__no_r_state): Remove.
3458 (mbtowc): New static state variable. Use it instead of
3460 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3461 (__wctomb_state): New hidden variable.
3462 (wctomb): Use __wctomb_state instead of __no_r_state.
3463 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3464 (__wctomb_state): New extern decl.
3465 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3467 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3470 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3472 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3474 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3476 2008-04-06 Ulrich Drepper <drepper@redhat.com>
3478 * po/nl.po: Update from translation team.
3480 2008-03-31 Ulrich Drepper <drepper@redhat.com>
3483 * string/strfry.c: Handle empty strings again.
3485 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3488 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3489 before looking for translation.
3490 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3491 * locale/freelocale.c: Likewise.
3492 * locale/newlocale.c: Likewise.
3493 * locale/setlocale.c: Likewise.
3494 Based partially on a patch by ryo@np.css.fujitsu.com.
3496 2008-03-30 Jakub Jelinek <jakub@redhat.com>
3498 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3499 acquiring wrlock. Do conv_tab allocation while holding lock.
3500 * intl/Makefile: Add rules to build and run tst-gettext6.
3501 * intl/tst-gettext6.c: New test.
3502 * intl/tst-gettext6.sh: New file.
3504 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3506 * po/nl.po: Update from translation team.
3508 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3509 provided through st_blksize, try the default size before giving up.
3511 2008-03-29 Ulrich Drepper <drepper@redhat.com>
3513 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3516 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3518 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3519 error message. POSIX today does not require the messages to be in
3520 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3523 * sunrpc/auth_unix.c: Unify printed strings.
3524 * sunrpc/clnt_tcp.c: Likewise.
3525 * sunrpc/clnt_udp.c: Likewise.
3526 * sunrpc/clnt_unix.c: Likewise.
3527 * sunrpc/svc_tcp.c: Likewise.
3528 * sunrpc/svc_udp.c: Likewise.
3529 * sunrpc/svc_unix.c: Likewise.
3530 * sunrpc/xdr.c: Likewise.
3531 * sunrpc/xdr_array.c: Likewise.
3532 * sunrpc/xdr_rec.c: Likewise.
3533 * sunrpc/xdr_ref.c: Likewise.
3534 * locale/programs/ld-time.c (time_finish): Unify messages.
3535 * locale/programs/locfile.c (handle_copy): Fix typo.
3536 * nscd/nscd.c (options): Fix typo.
3539 * stdlib/strtod_l.c: Use correct sign for result in one more
3541 Patch by Eric Blake <ebb9@byu.net>.
3543 2008-03-27 Jakub Jelinek <jakub@redhat.com>
3545 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3546 and creat system calls.
3547 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3549 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3552 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3553 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3555 2008-03-27 Ulrich Drepper <drepper@redhat.com>
3557 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3558 <linux/limits.h> has defined it.
3559 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3560 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3562 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3563 it instead of ARG_MAX.
3565 2008-03-25 Jakub Jelinek <jakub@redhat.com>
3567 * posix/gai.conf: Fix comment for scope nullbits.
3568 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3569 default to 128 bits for v4 mapped addresses.
3571 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3573 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3574 ptrace call to get the ieee_instruction_pointer from the kernel.
3575 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3576 ptrace call to set the ieee_instructtion_pointer.
3577 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3578 Add comment that ieee_instruction_pointer is always 0.
3580 2008-03-09 Andreas Jaeger <aj@suse.de>
3583 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3584 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3585 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3587 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3588 (rint_test): Likewise.
3590 2008-03-24 Ulrich Drepper <drepper@redhat.com>
3592 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3594 (__nisfind_server): Similar for open readColdStartFile call.
3595 Patch partially by Jim Meyering.
3596 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3597 around internal_setent call.
3599 * po/vi.po: New Vietnamese translation.
3601 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3604 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3605 remove CLONE_STOPPED.
3607 2008-02-10 Jim Meyering <meyering@redhat.com>
3609 Remove useless "if" before "free":
3610 * elf/ldconfig.c (parse_conf_include): Likewise.
3611 * gmon/gmon.c (weak_alias): Likewise.
3612 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3613 * inet/rcmd.c (__validuser2_sa): Likewise.
3614 * intl/bindtextdom.c (set_binding_values): Likewise.
3615 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3616 * libio/genops.c (save_for_backup): Likewise.
3617 * libio/wgenops.c (save_for_wbackup): Likewise.
3618 * locale/programs/ld-collate.c (collate_read): Likewise.
3619 * locale/programs/linereader.c (get_string): Likewise.
3620 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3621 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3622 * resolv/res_debug.c (do_section): Likewise.
3623 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3624 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3625 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3626 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3627 * time/tzset.c (tzset_internal): Likewise.
3629 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3631 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3634 2008-03-11 Ulrich Drepper <drepper@redhat.com>
3637 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3638 not stream for output file. Open output file here.
3639 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3640 and output file name.
3641 (process_fd): Likewise.
3642 (process_file): Likewise.
3643 (main): Adjust callers of changed functions.
3644 * iconv/iconv_prog.h: Adjust prototype.
3646 2008-03-09 Andreas Jaeger <aj@suse.de>
3649 * sysdeps/ia64/ieee754.h: Use protected namespace
3650 __BIG_ENDIAN/__LITTLE_ENDIAN.
3651 * sysdeps/ieee754/ieee754.h: Likewise.
3652 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3654 2008-03-08 Roland McGrath <roland@frob.com>
3656 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3657 ignore a signal that came from a machine exception, treat it as a
3658 fatal core-dump signal instead.
3659 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3661 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3662 Clear DF bit in thread state's eflags.
3663 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3665 2008-03-08 Ulrich Drepper <drepper@redhat.com>
3668 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3669 of NAN(...) sequence.
3670 * stdlib/Makefile (tests): Add tst-strtod6.
3671 * stdlib/tst-strtod6.c: New file.
3673 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3676 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3677 putting offending option character in quotes. Clean up error
3679 * po/be.po: Adjust msgstr in translation file.
3680 * po/bg.po: Likewise.
3681 * po/ca.po: Likewise.
3682 * po/cs.po: Likewise.
3683 * po/da.po: Likewise.
3684 * po/de.po: Likewise.
3685 * po/es.po: Likewise.
3686 * po/fr.po: Likewise.
3687 * po/hr.po: Likewise.
3688 * po/ko.po: Likewise.
3689 * po/nl.po: Likewise.
3690 * po/rw.po: Likewise.
3691 * po/sk.po: Likewise.
3692 * po/sv.po: Likewise.
3693 * po/tr.po: Likewise.
3694 * po/zh_CN.po: Likewise.
3695 * po/zh_TW.po: Likewise.
3698 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3699 Patch by Roland Bless <roland@bless.de>.
3701 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3703 * elf/Makefile (routines): Add dl-sysdep.
3704 (elide-routines.os): Likewise.
3706 2008-03-07 Ulrich Drepper <drepper@redhat.com>
3709 * elf/dl-sysdep.c: Undefine ROUND after use.
3710 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3711 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3712 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3713 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3715 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3716 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3718 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3720 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3721 _dl_tls_get_addr_soft element.
3722 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3723 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3724 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3726 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3727 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3728 of internal_function.
3730 * stdlib/Makefile (aux): Add tens_in_limb.
3731 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3732 * stdlib/tens_in_limb.c: ...here. New file.
3735 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3736 __statfs_chown_restricted.
3737 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3738 for _PC_CHOWN_RESTRICTED.
3739 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3740 Implement __statfs_chown_restricted.
3741 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3742 _POSIX_CHOWN_RESTRICTED value to zero.
3743 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3746 * sysdeps/x86_64/rtld-memset.c: New file.
3748 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
3750 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3752 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3753 Barcelona machine. Make default fall through branch of
3754 __x86_64_preferred_memory_instruction check as the integer code path.
3756 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3758 * sysdeps/x86_64/cacheinfo.c
3759 (__x86_64_preferred_memory_instruction): New variable.
3760 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3762 * sysdeps/x86_64/memset.S: Rewrite.
3764 2008-03-04 Jakub Jelinek <jakub@redhat.com>
3766 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3767 __obstack_printf_chk): New prototypes.
3768 (__vasprintf_chk, __vdprintf_chk,
3769 __obstack_vprintf_chk): Likewise.
3770 Add libc_hidden_proto.
3772 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3773 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3774 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3775 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3776 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3777 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3778 __obstack_vprintf_chk): New prototypes.
3779 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3780 obstack_vprintf): New inlines.
3781 * debug/dprintf_chk.c: New file.
3782 * debug/vdprintf_chk.c: New file.
3783 * debug/asprintf_chk.c: New file.
3784 * debug/vasprintf_chk.c: New file.
3785 * debug/obprintf_chk.c: New file.
3786 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3787 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3788 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3790 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3791 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3792 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3793 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3795 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3796 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3797 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3798 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3799 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3801 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3802 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3803 obstack_vprintf_chk.
3804 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3805 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3806 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3807 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3808 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3809 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3811 2008-03-04 Ulrich Drepper <drepper@redhat.com>
3814 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3815 Patch by Roy Marples <roy@marples.name>.
3818 * malloc/malloc.c: Fix typo in comment.
3821 * locale/iso-639.def: Add Shuswap.
3823 2008-02-25 Jakub Jelinek <jakub@redhat.com>
3826 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3827 overwrite *h_errnop/*errnop values from getanswer_r in case of
3830 2008-03-03 Ulrich Drepper <drepper@redhat.com>
3833 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3834 (verify_persistent_db): Remove one unnecessary test and add a new one
3835 for bad configuration.
3836 (nscd_init): Improve error reported when persistent database cannot
3838 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3839 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3840 .suggested_module and .max_db_size and case config file says the
3842 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3845 * nis/ypclnt.c (yp_order): Fix handling of return value of
3847 Patch by Jeff Moyer <jmoyer@redhat.com>.
3849 * po/fr.po: Update from translation team.
3851 2008-02-22 Andreas Jaeger <aj@suse.de>,
3852 Carlos O'Donell <carlos@systemhalted.org>
3855 * FAQ.in: Describe why glibc needs to be compiled with
3858 2008-02-19 Roland McGrath <roland@redhat.com>
3860 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3862 2008-02-15 Ulrich Drepper <drepper@redhat.com>
3865 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3866 __USE_MISC is defined.
3868 2008-02-10 Ulrich Drepper <drepper@redhat.com>
3870 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3871 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3873 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3874 timerfd_gettime, timerfd_settime.
3875 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3876 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3878 2008-02-08 Roland McGrath <roland@redhat.com>
3880 * elf/elf.h (NT_PPC_SPE): New macro.
3882 2008-02-06 Roland McGrath <roland@redhat.com>
3884 * Makerules ($(common-objpfx)sysd-rules):
3885 Depend on $(sysdep-makeconfigs).
3887 2008-01-31 Roland McGrath <roland@redhat.com>
3890 * configure.in: Use -print-file-name if it yields a directory,
3891 for each of include and include-fixed.
3892 * configure: Regenerated.
3894 * Makeconfig (sysd-rules-targets): New variable.
3895 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3896 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3898 2008-01-30 Roland McGrath <roland@redhat.com>
3900 * manual/libc.texinfo: Update back-cover text.
3902 * elf/elf.h (NT_386_TLS): New macro.
3904 2008-01-29 Roland McGrath <roland@redhat.com>
3906 * Makeconfig (sysd-rules-patterns): New variable.
3907 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3908 (check-inhibit-asm): New canned sequence, replaces ...
3909 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3910 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3911 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3912 (CFLAGS-rtld): Variable removed.
3914 2008-01-24 Roland McGrath <roland@redhat.com>
3916 * configure.in: Let configure fragments set base_os.
3917 * configure: Regenerated.
3919 2008-01-22 Ulrich Drepper <drepper@redhat.com>
3921 * po/ko.po: Update from translation team.
3923 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3925 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3927 2008-01-12 Andreas Jaeger <aj@suse.de>
3930 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3933 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3935 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3936 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3937 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3939 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
3941 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3942 * elf/dl-close.c (_dl_close): Check for it.
3943 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3944 (_dl_allocate_static_tls): Likewise.
3945 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3946 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3948 * elf/tst-tls16.c: New file.
3949 * elf/tst-tlsmod16a.c: New file.
3950 * elf/tst-tlsmod16b.c: New file.
3951 * elf/Makefile: Add rules to build and run tst-tls16.
3953 2008-01-16 Ulrich Drepper <drepper@redhat.com>
3956 * bits/shm.h: Fix comment describing shmid_ds.
3957 * sysdeps/gnu/bits/shm.h: Likewise.
3958 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3959 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3960 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3961 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3962 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3963 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3964 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3965 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3966 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3969 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3971 * conform/data/limits.h-data: Adjust limits changed in v6 and add
3972 additional suffixes.
3973 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3974 Add optional functions mq_timedreceive and mq_timedsend.
3975 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3976 * conform/data/pthread.h-data: Fix prototype of
3977 pthread_condattr_setclock. pthread_sigmask is not required in v6.
3978 * conform/data/semaphore.h-data: Allow time.h definitions.
3979 * conform/data/signal.h-data: Likewise.
3980 * conform/data/stdio.h-data: getw and putw are not required in v6.
3981 * conform/data/stdlib.h-data: Change setstate prototype.
3982 * conform/data/string.h-data: Fix strerror_r prototype.
3983 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3984 * conform/data/unistd.h-data: pthread_atfork not required in v6.
3985 Fix readlink prototype.
3986 * conform/data/netinet/in.h-data: Add const to in6addr_any and
3988 * inet/netinet/in.h: Cleanup namespace.
3989 * posix/regex.h: Likewise.
3990 * resolv/netdb.h: Likewise.
3991 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3992 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3993 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3994 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3995 of names of in in6_addr.
3996 (default_precedence): Likewise.
3997 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4000 2008-01-15 Ulrich Drepper <drepper@redhat.com>
4002 * conform/data/fmtmsg.h-data: Add missing allows.
4003 * conform/data/ftw.h-data: Likewise.
4004 * conform/data/inttypes.h-data: Likewise.
4005 * conform/data/math.h-data: Likewise.
4006 * conform/data/signal.h-data: Likewise.
4007 * conform/data/net/if.h-data: Likewise.
4008 * conform/data/netinet/in.h-data: Likewise.
4009 * conform/data/sys/socket.h-data: Likewise.
4012 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4013 (__strtok_r): Simplify.
4014 * string/tester.c (test_strtok_r): Add test case for futile search
4015 with single-character seach string.
4017 2008-01-12 Ulrich Drepper <drepper@redhat.com>
4019 * po/ko.po: Update from translation team.
4021 2008-01-11 Andreas Jaeger <aj@suse.de>
4024 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4025 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4028 2008-01-10 Ulrich Drepper <drepper@redhat.com>
4030 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4031 native interface lookup in all the relevant places.
4033 2008-01-10 Jakub Jelinek <jakub@redhat.com>
4034 Ulrich Drepper <drepper@redhat.com>
4036 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4037 field. Use sockaddr_in6 for source_addr.
4038 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4039 (match_prefix): Likewise.
4040 (get_label): Likewise.
4041 (get_precedence): Likewise.
4042 (rfc3484_sort): Change to use indirect access to results array.
4043 Adjust to use of sockaddr_in6. Replace service_order test with
4044 simple index comparison.
4045 (getaddrinfo): Define order array. Initialize it. Don't initialize
4046 service_order field. Adjust qsort_t calls. Access sorted result
4047 array indirectly through order array.
4048 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4049 * posix/tst-rfc3484-2.c: Likewise.
4050 * posix/tst-rfc3484-3.c: Likewise.
4052 2008-01-09 Ulrich Drepper <drepper@redhat.com>
4055 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4057 Patch by André Cruz.
4060 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4061 (clnt_spcreateerror): Likewise.
4064 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4065 (public_mEMALIGn): Likewise.
4066 Patch mostly by Daniel Jacobowitz.
4068 2008-01-09 Jakub Jelinek <jakub@redhat.com>
4070 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4071 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4072 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4073 * stdlib/tst-makecontext2.c: New test.
4075 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4077 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4079 (REINIT_PARAMS): Likewise. Undefine before end of file.
4080 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4081 transliteration hooks and REINIT_PARAMS afterwards.
4082 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4084 (REINIT_PARAMS): Define.
4085 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4086 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4087 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4088 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4089 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4090 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4091 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4092 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4093 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4094 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4095 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4096 * iconvdata/tst-iconv7.c: New test.
4098 2008-01-07 Ulrich Drepper <drepper@redhat.com>
4100 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4102 2008-01-05 Jakub Jelinek <jakub@redhat.com>
4105 * nscd/connections.c (restart): Fix condition.
4107 2008-01-03 Jakub Jelinek <jakub@redhat.com>
4109 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4110 __ctype_toupper_loc): Add __THROW.
4112 2008-01-02 Ulrich Drepper <drepper@redhat.com>
4114 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4115 recognition of interface family.
4117 * posix/getconf.c: Update copyright year.
4118 * nss/getent.c: Likewise.
4119 * iconv/iconvconfig.c: Likewise.
4120 * iconv/iconv_prog.c: Likewise.
4121 * elf/ldconfig.c: Likewise.
4122 * catgets/gencat.c: Likewise.
4123 * csu/version.c: Likewise.
4124 * elf/ldd.bash.in: Likewise.
4125 * elf/sprof.c (print_version): Likewise.
4126 * locale/programs/locale.c: Likewise.
4127 * locale/programs/localedef.c: Likewise.
4128 * nscd/nscd.c (print_version): Likewise.
4129 * debug/xtrace.sh: Likewise.
4130 * malloc/memusage.sh: Likewise.
4131 * malloc/mtrace.pl: Likewise.
4132 * debug/catchsegv.sh: Likewise.
4134 2007-12-26 Ulrich Drepper <drepper@redhat.com>
4136 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4139 2007-12-23 Ulrich Drepper <drepper@redhat.com>
4141 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4142 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4144 2007-12-17 Roland McGrath <roland@redhat.com>
4146 * inet/ether_line.c (ether_line): Remove unused variable.
4148 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4150 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4152 * login/openpty.c (openpty): Likewise.
4153 * login/pty.h (openpty, forkpty): Likewise.
4154 * manual/terminal.texi (openpty, forkpty): Likewise.
4156 2007-12-17 Ulrich Drepper <drepper@redhat.com>
4158 * malloc/malloc.c (public_cALLOc): For arenas other than
4159 main_arena, count all bytes inside the mprotect_size range of the
4160 heap as uninitialized.
4162 2007-12-16 Ulrich Drepper <drepper@redhat.com>
4164 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4167 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4168 mTRIm for all of them.
4169 (mTRIm): Additionally iterate over all free blocks and use madvise
4170 to free memory for all those blocks which contain at least one
4172 * malloc/tst-trim1.c: New file.
4173 * malloc/Makefile (tests): Add tst-trim1.
4175 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4177 2007-12-14 Ulrich Drepper <drepper@redhat.com>
4179 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4180 First cast argument to long
4181 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4183 (__vdso_clock_gettime): Likewise.
4184 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4187 2007-12-13 Ulrich Drepper <drepper@redhat.com>
4189 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4190 * locale/nl_langinfo_l.c: Real implementation, copied from
4192 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4194 2007-12-01 Jim Meyering <meyering@redhat.com>
4196 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4197 that would inhibit utf8-optimization of a regexp containing line-
4198 or buffer-anchors, e.g., `^', `$'.
4200 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4202 * time/bug-getdate1.c (do_test): Don't use century values which
4203 aren't valid on 32-bit systems.
4205 2007-12-12 Jakub Jelinek <jakub@redhat.com>
4207 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4208 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4209 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4210 __strcat_g, __strncat_g): Add __asm__.
4212 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4215 * io/fchmodat.c: Fix typo in stub_warning use.
4216 Patch by Petr Salinger.
4218 2007-12-11 Ulrich Drepper <drepper@redhat.com>
4220 * iconvdata/hp-thai8.c: New file.
4221 * iconvdata/Makefile: Add rules for hp-thai8.c.
4222 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4223 * iconvdata/gconv-modules: Likewise.
4226 * iconvdata/hp-greek8.c: New file.
4227 * iconvdata/Makefile: Add rules for hp-greek8.c.
4228 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4229 * iconvdata/gconv-modules: Likewise.
4232 * iconvdata/hp-turkish8.c: New file.
4233 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4234 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4235 * iconvdata/gconv-modules: Likewise.
4237 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4238 (shrink_heap): ... this new function.
4239 (heap_trim): Call shrink_heap instead of grow_heap.
4241 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4242 case don't call alloc_perturb.
4244 2007-12-10 Ulrich Drepper <drepper@redhat.com>
4246 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4248 * sysdeps/unix/sysv/linux/kernel-features.h
4249 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4250 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4252 2007-12-08 Ulrich Drepper <drepper@redhat.com>
4255 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4256 * stdio-common/Makefile (tests): Add bug22.
4257 * stdio-common/bug22.c: New file.
4260 * time/getdate.c: Fix filling in default values.
4261 * time/bug-getdate1.c: New file.
4262 * time/Makefile: Add rules to build and run bug-getdate1.
4264 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4265 * iconvdata/ebcdic-es.c: Likewise.
4266 * iconvdata/ebcdic-es-a.c: Likewise.
4267 * iconvdata/ebcdic-uk.c: Likewise.
4268 * iconvdata/iso8859-16.c: Likewise.
4269 * iconvdata/viscii.c: Likewise.
4270 * iconvdata/iso8859-9e.c: Likewise.
4271 * iconvdata/Makefile: Adjust appropriately.
4274 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4277 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4280 * iconvdata/hp-roman9.c: New file.
4281 * iconvdata/Makefile: Add rules for hp-roman9.c.
4282 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4283 * iconvdata/gconv-modules: Likewise.
4285 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4286 * iconvdata/Makefile: Adjust appropriately.
4289 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4290 structure, it's allocated with alloca.
4291 * stdio-common/Makefile (tests): Add bug21.
4292 * stdio-common/bug21.c: New file.
4294 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4297 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4298 keyword for gcc's braced-groups.
4300 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4303 * inet/ether_line.c: Strip hostname of whitespaces.
4304 * inet/Makefile (tests): Add tst-ether_line.
4305 * inet/tst-ether_line.c: New file.
4307 2007-12-03 Ulrich Drepper <drepper@redhat.com>
4310 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4313 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4315 * stdlib/tst-setcontext.c: Catch the case where the links gets
4316 messed up and we do not reach main again.
4318 * po/ca.po: Update from translation team.
4320 2007-11-26 Ulrich Drepper <drepper@redhat.com>
4322 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4323 * posix/regex.h (REG_ENOSYS): Likewise.
4324 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4326 2007-11-25 Ulrich Drepper <drepper@redhat.com>
4328 * nscd/nscd.h (MAX_STACK_USE): Define.
4329 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4330 (gc): Initialize stack_used based on allocation in prune_cache.
4331 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4332 Clear array before use.
4334 * nscd/aicache.c (addhstaiX): Update statistics counter in case
4335 memory allocation failed.
4336 * nscd/hstcache.c (cache_addhst): Likewise.
4337 * nscd/grpcache.c (cache_addgr): Likewise.
4338 * nscd/servicescache.c (cache_addserv): Likewise.
4339 * nscd/pwdcache.c (cache_addpw): Likewise.
4340 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4342 2007-11-23 Ulrich Drepper <drepper@redhat.com>
4344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4345 and creat system calls.
4347 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4349 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4351 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4353 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4354 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4356 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4357 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4358 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4360 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4362 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4363 strncat): Define as macros to avoid compile errors.
4365 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4368 2007-11-22 Ulrich Drepper <drepper@redhat.com>
4371 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4372 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4373 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4375 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4377 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4378 Return zero in case the thread library is not NPTL.
4381 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4382 initializing interface list.
4385 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4386 use result of nss_getgrgid_r if nothing was found. For other
4387 error return with a failure.
4388 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4390 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4393 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4395 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4396 (get_scope): For IPv4 scope, use scopes table.
4397 (fini): Free scopes table if necessary.
4398 (free_scopelist): New function.
4399 (scopecmp): New function.
4400 (gaiconf_init): Also handle scopev4 entries.
4401 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4402 * posix/tst-rfc3484-2.c (do_test): Likewise.
4403 * posix/gai.conf: Document scopev4 defaults.
4404 * posix/Makefile (tests): Add tst-rfc3484-3.
4405 * posix/tst-rfc3484-3.c: New file.
4407 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4409 * posix/gai.conf: Update for current default tables.
4411 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4413 * po/tr.po: Update from translation team.
4415 2007-11-18 Roland McGrath <roland@frob.com>
4417 * manual/arith.texi (Remainder Functions): Spelling fix.
4418 From Shaun Silk <genix@mysoul.com.au>.
4420 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4422 2007-11-17 Ulrich Drepper <drepper@redhat.com>
4424 * po/zh_CN.po: Update from translation team.
4426 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4427 Add sys/signalfd.h and sys/eventfd.h.
4429 2007-11-15 Bruno Haible <bruno@clisp.org>
4432 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4434 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4435 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4436 it needs only fixed stack space. Delay the initialization of
4437 msgid_len until it is needed.
4439 2007-11-15 Andreas Jaeger <aj@suse.de>
4441 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4442 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4444 2007-11-15 Ulrich Drepper <drepper@redhat.com>
4446 * po/ko.po: Update from translation team.
4448 2007-11-14 Ulrich Drepper <drepper@redhat.com>
4450 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4451 significantly. The device type is also part of the ifinfomsg data.
4453 * po/sv.po: Update from translation team.
4454 * po/nl.po: Likewise.
4456 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4457 to wake up in 24 hours.
4459 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4461 2007-11-13 Ulrich Drepper <drepper@redhat.com>
4463 * po/cs.po: Update from translation team.
4464 * po/pl.po: Likewise.
4466 * include/ifaddrs.h: Remove in6ai_temporary.
4467 (struct in6addrinfo): Add index element.
4468 Declare __check_native.
4469 * inet/Makefile (aux): Add check_native.
4470 * sysdeps/unix/sysv/linux/check_native.c: New file.
4471 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4472 IFA_F_TEMPORARY. Pass back ifa_index.
4473 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4474 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4475 call __check_native if necessary.
4476 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4477 to sort addresses. Pass information about the results.
4478 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4479 of rfc3484_sort interface.
4480 * posix/tst-rfc3484-2.c: Likewise.
4482 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4483 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4485 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4486 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4487 on as third parameter to compare function and _quicksort.
4488 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4489 to the compare function.
4490 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4491 * Versions.def: Add GLIBC_2.8 for libc.
4493 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4494 * posix/tst-rfc3484-2.c: Likewise.
4496 * include/kernel-features.h: Moved to...
4497 * sysdeps/mach/hurd/kernel-features.h: ...here.
4499 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4501 * sysdeps/i386/i586/memcpy_chk.S: New file.
4502 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4503 * sysdeps/i386/i586/memset_chk.S: Likewise.
4505 2007-11-12 Ulrich Drepper <drepper@redhat.com>
4507 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4508 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4509 list of interfaces. Also store prefix length.
4510 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4511 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4512 prefix if source and destination address are in the same subnet.
4513 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4514 Always look for matching record in in6ai list.
4515 Correct source_addr_len value for IPv6->IPv4 converted records.
4517 2007-11-11 Roland McGrath <roland@frob.com>
4519 * include/kernel-features.h: New file.
4521 2007-11-10 Ulrich Drepper <drepper@redhat.com>
4523 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4524 complications for 64-bit platforms.
4526 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4527 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4528 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4530 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4532 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4533 * sysdeps/wordsize-64/alphasort.c: New file.
4534 * sysdeps/wordsize-64/alphasort64.c: New file.
4535 * sysdeps/wordsize-64/fseeko.c: New file.
4536 * sysdeps/wordsize-64/fseeko64.c: New file.
4537 * sysdeps/wordsize-64/ftello.c: New file.
4538 * sysdeps/wordsize-64/ftello64.c: New file.
4539 * sysdeps/wordsize-64/ftw.c: New file.
4540 * sysdeps/wordsize-64/ftw64.c: New file.
4541 * sysdeps/wordsize-64/iofgetpos.c: New file.
4542 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4543 * sysdeps/wordsize-64/iofopen.c: New file.
4544 * sysdeps/wordsize-64/iofopen64.c: New file.
4545 * sysdeps/wordsize-64/iofsetpos.c: New file.
4546 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4547 * sysdeps/wordsize-64/lockf.c: New file.
4548 * sysdeps/wordsize-64/lockf64.c: New file.
4549 * sysdeps/wordsize-64/mkostemp.c: New file.
4550 * sysdeps/wordsize-64/mkostemp64.c: New file.
4551 * sysdeps/wordsize-64/mkstemp.c: New file.
4552 * sysdeps/wordsize-64/mkstemp64.c: New file.
4553 * sysdeps/wordsize-64/scandir.c: New file.
4554 * sysdeps/wordsize-64/scandir64.c: New file.
4555 * sysdeps/wordsize-64/tmpfile.c: New file.
4556 * sysdeps/wordsize-64/tmpfile64.c: New file.
4557 * sysdeps/wordsize-64/versionsort.c: New file.
4558 * sysdeps/wordsize-64/versionsort64.c: New file.
4559 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4560 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4561 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4562 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4563 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4564 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4565 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4566 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4567 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4568 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4569 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4570 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4572 * crypt/sha256-crypt.c: Fix a comment.
4573 * crypt/sha512-crypt.c: Likewise.
4575 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4577 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4579 2007-11-07 Ulrich Drepper <drepper@redhat.com>
4582 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4583 because output buffer is too small break, don't loop.
4584 * iconvdata/Makefile (tests): Add bug-iconv6.
4585 * iconvdata/bug-iconv6.c: New file.
4587 2007-11-06 Ulrich Drepper <drepper@redhat.com>
4589 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4591 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4592 size_t. Add casts where needed.
4594 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4595 old headers, don't call avc_has_perm if we don't have the
4596 permission information.
4598 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4600 * elf/rtld.c (dl_main): Use the page size to find the map start.
4602 2007-11-05 Ulrich Drepper <drepper@redhat.com>
4604 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4605 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4607 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4608 when the lookup call failed.
4610 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4611 Add prune_cond and wakeup_time.
4612 (CACHE_PRUNE_INTERNAL): Define.
4613 Update declarations of prune_cache and setup_thread.
4614 * nscd/connections.c (dbs): Update initializers.
4615 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4616 (nscd_init): Default number of threads is now 4.
4617 (invalidate_cache): Take lock before calling prune_cache.
4618 (handle_request): If SELinux forbids the request, say so.
4619 (readylist_cond): Use static initializer.
4620 (nscd_run_prune): New function. Used only by pruning threads.
4621 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4623 (fd_ready): Update nscd_run reference.
4624 (start_threads): No need to initialize readylist_cond.
4625 Start pruning threads separately.
4626 * nscd/nscd_setup_thread.c: Change return value type to int and always
4628 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4629 to int and return nonzero value if we can use the TID address hack.
4630 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4631 the database is later than the new entry's timeout, update the
4632 wakeup time and wake the cleanup thread.
4633 (prune_cache): Return seconds the next entry in the database is still
4634 valid. Remove locking for pruning here.
4635 * nscd/nscd.conf: Document default number of threads.
4637 2007-10-31 Ulrich Drepper <drepper@redhat.com>
4639 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4640 stack is properly aligned for the target function.
4641 Correct unwind info.
4643 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4644 when using auditing libraries.
4646 2007-10-29 Ulrich Drepper <drepper@redhat.com>
4648 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4649 _nss_dns_getnetbyaddr2_r.
4650 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4651 extra parameter to getanswer_r.
4652 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4653 _nss_dns_getnetbyaddr2_r.
4655 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4657 * nscd/gethstbynm2_r.c: Remove.
4658 * nscd/gethstbynm3_r.c: New file.
4659 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4661 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4662 __gethostbyaddr_r compatibility wrapper.
4663 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4664 determining timeout of entry.
4665 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4667 (addhstbyX): Pass reference to variable for TTL to lookup and
4669 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4670 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4671 and __nss_next2. Remove __nss_services_lookup.
4672 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4674 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4676 * nss/getXXent_r.c: Likewise.
4677 * nss/getnssent_r.c: Likewise.
4678 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4679 does not exist in module, try the optional second name.
4680 (__nss_next2): New function.
4681 (__nss_next): Now wrapper around __nss_next2.
4682 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4683 Declare __nss_next2.
4684 Adjust definition of db_lookup_function type.
4685 * nss/service-lookup.c: Define NO_COMPAT.
4686 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4687 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4688 * inet/ether_ntoh.c: Likewise.
4689 * sunrpc/netname.c: Likewise.
4690 * sunrpc/publickey.c: Likewise.
4691 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4692 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4693 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4694 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4695 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4697 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4699 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4701 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4704 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4705 * crypt/sha512c-test.c: Likewise.
4708 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4709 to keep track of end of %[ format string element.
4710 * stdio-common/Makefile (tests): Add bug20.
4711 * stdio-common/bug20.c: New file.
4714 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4715 path elements in counting mode.
4717 2007-10-27 Andreas Jaeger <aj@suse.de>
4720 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4723 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4724 (__cleanup): Free shared library when exiting.
4725 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4726 (__cleanup): Free shared library when exiting.
4728 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4731 * math/libm-test.inc (check_float_internal): Support
4732 denormalized return.
4734 2007-10-23 Andreas Jaeger <aj@suse.de>
4737 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4738 __LONG_LONG_PAIR to handle little endian byte order.
4739 Suggested by abhishekrai@google.com
4741 2007-10-27 Ulrich Drepper <drepper@redhat.com>
4743 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4745 2007-10-26 Ulrich Drepper <drepper@redhat.com>
4747 * nscd/cache.c (prune_cache): Move test for modified file outside
4750 2007-10-21 Andreas Jaeger <aj@suse.de>
4752 * manual/texinfo.tex: Update to latest version.
4754 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4756 * manual/arith.texi (Status bit operations): Fix formatting.
4758 * manual/errno.texi (Error Messages): Fix formatting.
4760 * manual/sysinfo.texi (System Parameters): Fix formatting.
4762 * manual/libc.texinfo: Update VERSION and UPDATED.
4764 2007-10-19 Roland McGrath <roland@redhat.com>
4766 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4768 2007-10-06 David S. Miller <davem@davemloft.net>
4770 * configure.in: Add sparcv9v2 and sparc64v2.
4771 * scripts/config.sub: Likewise.
4772 * configure: Regenerate.
4773 * elf/elf.h (HWCAP_SPARC_N2): New.
4774 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4775 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4776 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4777 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4778 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4779 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4780 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4782 2007-10-18 Ulrich Drepper <drepper@redhat.com>
4784 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4785 even if the poll result indicates there is data to read.
4786 Patch by Jeff Moyer <jmoyer@redhat.com>.
4788 2007-10-18 Roland McGrath <roland@redhat.com>
4790 * elf/elf.h (NT_PPC_VMX): New macro.
4792 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4794 * version.h (VERSION): Set to 2.7.90.
4796 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4798 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4801 2007-10-17 Roland McGrath <roland@frob.com>
4803 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4804 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4806 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4808 * version.h (VERSION): Bump to 2.7.
4809 * include/features.h (__GLIBC_MINOR__): Bump to 7.
4812 * time/tzset.c (__tz_convert): Don't force testing for a change of
4813 TZ if not called from localtime. But then also see whether the
4814 file changed, in case __use_tzfile is set.
4816 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4817 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4818 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4819 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4820 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4821 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4822 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4823 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4825 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4827 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4828 and admin selects to be able to replace the gai.conf file, lock
4829 data structures around the qsort call.
4831 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4833 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4835 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
4836 too high for the improvements. Implement bzero unconditionally for
4839 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4840 Jakub Jelinek <jakub@redhat.com>
4842 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4843 even when time_t is 32-bit.
4844 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4845 timezone data read by __tzfile_default. Ensure __tzname[0] is
4846 always set after the search.
4848 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4850 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4851 unreachable code on 32-bit machines.
4853 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4856 * time/strftime_l.c: Include stdbool.h.
4857 (my_strftime): New wrapper, old function renamed to...
4858 (__strftime_internal): ... new function. Add tzset_called
4859 argument, pass it down to recursive calls, don't call tzset ()
4860 if already true, set to true after call to tzset ().
4862 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4864 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4865 into account when copying TZ string.
4867 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4869 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4870 num_transition rather than num_transitions - 1.
4872 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4874 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4877 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4878 a local label rather than HIDDEN_JUMPTARGET.
4880 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4882 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4883 (init_cacheinfo): Initialize it.
4884 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4885 Always define bzero.
4886 Remove non-glibc code.
4887 * sysdeps/x86_64/bzero.S: Make an empty file.
4889 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4891 * sysdeps/x86_64/cacheinfo.c
4892 (__x86_64_preferred_memory_instruction): New.
4893 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4895 * sysdeps/x86_64/memset.S: Rewrite.
4897 2007-10-15 Roland McGrath <roland@redhat.com>
4899 * po/libc.pot: Regenerated.
4901 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4903 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4907 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4908 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4909 address record to T_A/T_AAAA requests.
4911 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4913 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4915 * posix/glob.c: Add some branch prediction throughout.
4917 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4920 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4922 (rfc3484_sort): Make sure that even if qsort doesn't support
4923 stable sorting out sorting here is stable by comparing service_order.
4924 (getaddrinfo): Initialize service_order.
4925 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4926 service_order field to sorting structure.
4927 * posix/tst-rfc3484-2.c (do_test): Likewise.
4929 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4930 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4931 __tzset_parse_tz and updating of daylight, timezone, tzname into
4933 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4934 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4935 happens in __tz_compute.
4936 * time/tzfile.c (__tzfile_read): Also read TZ string.
4937 (find_transition): Fold into __tzfile_compute.
4938 (__tzfile_compute): For times beyond the last transition try to
4940 * timezone/tst-timezone.c: Information in daylight and tzname does
4941 change for Asia/Tokyo timezone with more concrete information.
4944 * include/stdio.h: Add libc_hidden_proto for ftello.
4945 * libio/ftello.c: Add libc_hidden_def.
4948 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4949 on the specified time and not the last entries in the file. Move
4950 code to determine tzname[] to...
4951 (find_transition): ...here. Add ugly guess for times before the
4954 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4957 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4959 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4960 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4961 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4962 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4964 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4965 read mechanism when there are no group members and avoid no-op
4966 read syscall in this case.
4969 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4970 (__readall): If reading failed due to EAGAIN error wait a bit
4971 and possibly try again.
4972 (__readvall): Likewise.
4974 2007-10-13 Bruno Haible <bruno@clisp.org>
4976 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4977 when we cannot recode the message.
4979 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4982 * libio/__freading.c (__freading): Don't return true for
4983 write-only streams. For read/write streams, check whether we
4984 performed a read operation already.
4985 * libio/Makefile (tests): Add tst-ext2.
4986 * libio/tst-ext2.c: New file.
4988 2007-10-12 Ulrich Drepper <drepper@redhat.com>
4990 * locale/programs/repertoire.c (repertoire_read): Always free
4991 memory for repertoire file name [Coverity CID 270].
4993 * elf/cache.c (save_aux_cache): Free memory allocated for
4994 temporary file name [Coverity CID 267].
4996 2007-10-12 Jakub Jelinek <jakub@redhat.com>
4998 * misc/Makefile (headers): Add bits/error.h.
5000 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5002 * posix/fnmatch_loop.c: Take rule index returned as part of
5003 findidx return value into account when accessing weights.
5004 * posix/regcomp.c: Likewise.
5005 * posix/regexec.c: Likewise.
5007 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5008 (skip_to): Fix problems with parameter of elifdef/elifndef.
5010 2007-10-11 Ulrich Drepper <drepper@redhat.com>
5012 * iconv/gconv_simple.c: Add some branch prediction.
5014 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5016 * locale/programs/ld-collate.c (collate_read): If ignore_content
5017 and nowtok is tok_define, eat any tok_eol tokens.
5019 2007-10-11 Jakub Jelinek <jakub@redhat.com>
5021 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5022 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5024 * inet/netinet/in.h: Don't include bits/socket.h.
5025 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5027 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5029 2007-10-10 Ulrich Drepper <drepper@redhat.com>
5031 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5033 * locale/programs/locfile-kw.gperf: Likewise.
5034 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5036 2007-10-10 Jakub Jelinek <jakub@redhat.com>
5038 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5039 (__find_specwc): Change into __extern_always_inline function.
5040 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5041 (__parse_one_specmb): Remove ps argument.
5042 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5043 Adjust __find_specmb and __parse_one_specmb callers.
5044 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5045 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5047 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5050 2007-10-09 Ulrich Drepper <drepper@redhat.com>
5052 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5053 with some Pentium Ds.
5055 2007-10-08 Ulrich Drepper <drepper@redhat.com>
5057 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5059 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5062 2007-10-07 Ulrich Drepper <drepper@redhat.com>
5065 * locale/C-time.c: Set week_1stday data to 19971201.
5066 * locale/programs/ld-time.c (time_finish): Default for
5067 first_workday is Monday.
5070 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5073 * posix/glob.c (glob): Recognize patterns starting \/.
5074 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5075 (main): Add test for pattern starting \/.
5077 * misc/error.h: Use __const instead of const.
5078 * misc/bits/error.h: Likewise.
5080 2007-10-07 Andreas Jaeger <aj@suse.de>
5082 * include/bits/error.h: New file.
5084 * misc/bits/error.h (error_at_line): Fix prototype.
5086 2007-10-06 Ulrich Drepper <drepper@redhat.com>
5089 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5090 more little bugs in creating the stack frame when pltexit has to
5093 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5094 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5097 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5098 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5099 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5100 * math/libm-test.inc: Add test for this case.
5103 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5104 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5105 map service succeeded.
5106 (svc_is_mapped): New function.
5107 (svc_unregister): Use it before trying to unmap service.
5109 2007-10-05 Ulrich Drepper <drepper@redhat.com>
5111 * timezone/zic.c: Update from tzcode2007h.
5114 * timezone/africa: Update from tzdata2007h.
5115 * timezone/antarctica: Likewise.
5116 * timezone/asia: Likewise.
5117 * timezone/australasia: Likewise.
5118 * timezone/europe: Likewise.
5119 * timezone/leapseconds: Likewise.
5120 * timezone/northamerica: Likewise.
5121 * timezone/southamerica: Likewise.
5122 * timzeone/zone.tab: Likewise.
5125 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5128 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5129 avoid warning with -Wconversion.
5130 (__strndup): Likewise.
5131 Half the patch by Christian Iseli <christian.iseli@licr.org>.
5134 * nscd/connections.c (restart): Don't resync if database is
5135 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5137 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5138 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5140 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5141 evetnfd_read, eventfd_write.
5142 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5143 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5144 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5145 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5146 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5147 eventfd_write for GLIBC_2.7.
5149 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5150 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5151 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5152 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5154 2007-10-04 Jakub Jelinek <jakub@redhat.com>
5156 * stdlib/msort.c: Include stdint.h.
5157 (struct msort_param): New type.
5158 (msort_with_tmp): Use struct msort_param pointer for unchanging
5159 parameters. Add optimized handling for several common sizes
5160 and indirect sorting mode.
5161 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5163 Suggested by Belazougui Djamel .
5165 * stdlib/Makefile (tests): Add tst-qsort2.
5166 * stdlib/tst-qsort2.c: New test.
5168 2007-10-04 Ulrich Drepper <drepper@redhat.com>
5170 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5171 for dup2 in case another thread races with the current one. Retry
5174 * misc/error.h: Remove support for use outside of libc. We have to
5175 include <features.h> now. Include <bits/error.h> if possible.
5176 * misc/bits/error.h: New file.
5178 2007-10-03 Jakub Jelinek <jakub@redhat.com>
5180 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5181 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5182 __extern_always_inline functions unconditionally, drop macros.
5184 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5185 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5186 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5188 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5189 add __artificial__ attribute.
5191 2007-10-02 Ulrich Drepper <drepper@redhat.com>
5193 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5194 backward to forward direction.
5196 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5199 * locale/programs/ld-collate.c (collate_finish): Compare against last
5200 used section which is known to have rules defined.
5201 (collate_read): After order_start, correctly record order of sections
5202 and queue sections up.
5204 2007-10-01 Ulrich Drepper <drepper@redhat.com>
5207 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5208 the same number of pages.
5209 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5211 * locale/programs/ld-collate.c (collate_read): After initial copy
5212 statement, continue in state 0.
5214 * include/stdio_ext.h (__fsetlocking): Define as macro.
5216 2007-09-30 Ulrich Drepper <drepper@redhat.com>
5218 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5221 * po/pt_BR.po: Fix typo.
5223 2007-09-29 Ulrich Drepper <drepper@redhat.com>
5225 * iconvdata/Makefile (modules): Add ISO8859-9E.
5226 (distribute): Add iso8859-9e.c.
5227 (gen-8bit-gap-modules): Add iso8859-9e.
5228 * iconvdata/iso8859-9e.c: New file.
5229 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5230 * iconvdata/TESTS: Likewise.
5231 * iconvdata/tst-tables.sh: Likewise.
5233 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5235 * locale/iso-639.def: Add several new entries.
5237 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5239 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5240 void * pointers instead of struct link_map **.
5241 (_dl_scope_free): Change argument type to void *.
5242 * include/link.h (struct link_map): Change type of l_reldeps
5243 to struct link_map_reldeps, move l_reldepsact into that
5245 * elf/dl-deps.c: Include atomic.h.
5246 (_dl_map_object_deps): Only change l->l_initfini when it is
5247 fully populated, use _dl_scope_free for freeing it. Optimize
5248 removal of libs from reldeps by using l_reserved flag, when
5249 some removal is needed, allocate a new list instead of
5250 reallocating and free the old with _dl_scope_free. Adjust
5251 for l_reldeps and l_reldepsact changes.
5252 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5253 searching in l_initfini and l_reldeps without holding dl_load_lock.
5254 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5255 l_reldepsact changes.
5256 * elf/dl-close.c (_dl_close_worker): Likewise.
5257 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5259 2007-09-28 Ulrich Drepper <drepper@redhat.com>
5261 * iconvdata/Makefile (modules): Add KOI8-RU.
5262 (distribute): Add koi8-ru.c.
5263 (gen-8bit-gap-modules): Add koi8-ru.
5264 * iconvdata/koi8-ru.c: New file.
5265 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5266 * iconvdata/TESTS: Likewise.
5267 * iconvdata/tst-tables.sh: Likewise.
5269 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5271 2007-09-26 Jakub Jelinek <jakub@redhat.com>
5273 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5274 with __warning__/__error__ attributes.
5275 (__warnattr): Define.
5276 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5277 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5279 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5280 of __*_chk if compile time detectable overflow is found.
5281 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5282 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5284 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5285 instead of __*_chk if compile time detectable overflow is found.
5286 (__gets_alias): Rename to...
5287 (__gets_warn): ... this. Add __warnattr.
5288 (gets): Call __gets_warn instead of __gets_alias.
5289 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5290 aliases with __warnattr.
5291 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5292 time detectable overflow is found.
5293 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5294 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5295 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5296 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5297 __getdomainname_chk_warn): New aliases with __warnattr.
5298 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5299 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5300 __*_chk_warn instead of __*_chk if compile time detectable overflow
5302 (__getgroups_chk): Rename argument to __listlen from listlen.
5303 (__getwd_alias): Rename to...
5304 (__getwd_warn): ... this. Add __warnattr.
5305 (getwd): Call __getwd_warn instead of __getwd_alias.
5306 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5307 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5308 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5309 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5310 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5311 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5312 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5313 compile time detectable overflow is found.
5314 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5315 to use __*_chk or not.
5316 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5317 in comparisons which function should be called and in __*_chk*
5318 arguments. Call __*_chk_warn instead of __*_chk if compile time
5319 detectable overflow is found.
5320 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5322 * debug/tst-chk1.c (do_test): Add a few more tests.
5324 2007-09-24 Ulrich Drepper <drepper@redhat.com>
5327 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5328 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5329 (_nl_unload_domain): Finalize conversions_lock.
5330 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5331 handling table of known conversions.
5333 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5335 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5336 close_not_cancel_no_status instead of close.
5338 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5341 * posix/regcomp.c (lookup_collation_sequence_value): Check that
5342 nrules != 0 for multibyte chars.
5344 2007-09-23 Ulrich Drepper <drepper@redhat.com>
5346 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5347 Provide better error message in case the type is unknown.
5350 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5351 * string/stratcliff.c: Make usable to test wide char functions.
5352 * wcsmbs/wcsatcliff.c: New file.
5353 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5356 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5357 (distribute): Add mac-centraleurope.c.
5358 (gen-8bit-gap-modules): Add mac-centraleurope.
5359 * iconvdata/mac-centraleurope.c: New file.
5360 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5361 * iconvdata/TESTS: Likewise.
5362 * iconvdata/tst-tables.sh: Likewise.
5365 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5367 2007-09-21 Ulrich Drepper <drepper@redhat.com>
5369 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5370 from __x86_64_core_cache_size_half.
5371 (init_cacheinfo): Compute shared cache size for AMD processors with
5372 shared L3 correctly.
5373 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5375 Patch in large parts by Evandro Menezes.
5377 2007-09-19 Ulrich Drepper <drepper@redhat.com>
5379 * elf/dl-lookup.c (add_dependency): Handle failing memory
5380 allocation for dependency list. Remove unnecessary check.
5382 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5383 open/close when determining source addresses.
5385 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5386 sha512-crypt, and sha512.
5387 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5388 (distribute): Add sha256.h and sha512.h.
5389 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5390 and call the appropriate code.
5391 * crypt/sha256-crypt.c: New file.
5392 * crypt/sha256.c: New file.
5393 * crypt/sha256.h: New file.
5394 * crypt/sha256c-test.c: New file.
5395 * crypt/sha256test.c: New file.
5396 * crypt/sha512-crypt.c: New file.
5397 * crypt/sha512.c: New file.
5398 * crypt/sha512.h: New file.
5399 * crypt/sha512c-test.c: New file.
5400 * crypt/sha512test.c: New file.
5402 2007-09-19 Jakub Jelinek <jakub@redhat.com>
5404 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5405 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5408 2007-09-18 Jakub Jelinek <jakub@redhat.com>
5410 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5411 %as in fscanf format strings.
5413 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5414 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5415 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5417 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5420 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5421 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5422 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5423 * elf/dl-sym.c (do_sym): Likewise.
5424 * include/link.h (struct link_map): Add l_serial field.
5425 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5426 * elf/dl-lookup.c (add_dependency): Add flags argument.
5427 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5428 flags, use THREAD_GSCOPE_RESET_FLAG before and
5429 THREAD_GSCOPE_SET_FLAG after
5430 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5431 Don't dereference map until it has been found on some list.
5432 If map->l_serial changed, return -1.
5434 2007-09-17 Jakub Jelinek <jakub@redhat.com>
5436 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5437 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5438 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5440 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5441 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5442 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5443 add libc_hidden_proto.
5444 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5445 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5446 conformance requested.
5447 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5448 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5449 conformance requested.
5450 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5451 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5452 conformance requested.
5453 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5454 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5455 ISO C99 or POSIX conformance requested.
5456 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5457 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5458 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5459 and __isoc99_vsscanf@@GLIBC_2.7.
5460 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5461 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5462 (tests): Add scanf14.
5463 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5464 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5465 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5466 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5467 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5468 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5469 from using internal headers.
5470 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5471 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5472 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5473 and __isoc99_vswscanf@@GLIBC_2.7.
5474 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5475 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5476 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5477 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5478 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5479 * stdio-common/isoc99_scanf.c: New file.
5480 * stdio-common/isoc99_vsscanf.c: New file.
5481 * stdio-common/isoc99_vscanf.c: New file.
5482 * stdio-common/isoc99_vfscanf.c: New file.
5483 * stdio-common/isoc99_fscanf.c: New file.
5484 * stdio-common/isoc99_sscanf.c: New file.
5485 * wcsmbs/isoc99_fwscanf.c: New file.
5486 * wcsmbs/isoc99_vswscanf.c: New file.
5487 * wcsmbs/isoc99_swscanf.c: New file.
5488 * wcsmbs/isoc99_wscanf.c: New file.
5489 * wcsmbs/isoc99_vwscanf.c: New file.
5490 * wcsmbs/isoc99_vfwscanf.c: New file.
5491 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5492 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5493 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5494 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5495 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5496 * stdio-common/scanf14.c: New test.
5497 * stdio-common/scanf15.c: New test.
5498 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5499 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5500 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5501 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5502 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5503 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5504 __nldbl___isoc99_scanf@@GLIBC_2.7,
5505 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5506 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5507 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5508 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5509 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5510 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5511 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5512 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5513 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5514 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5515 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5516 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5517 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5518 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5519 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5520 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5521 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5522 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5523 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5524 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5525 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5526 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5527 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5529 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5530 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5531 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5532 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5533 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5534 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5535 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5536 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5537 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5538 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5539 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5540 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5542 * stdio-common/Makefile (tests): Add scanf13.
5544 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5545 m modifier followed by l.
5546 (STRING_ARG): Add width argument.
5547 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5548 <case L_('C')>: Handle %mlc and %mC.
5549 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5551 * stdio-common/scanf13.c: New test.
5553 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5554 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5556 2007-09-18 Ulrich Drepper <drepper@redhat.com>
5558 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5559 type and __THROW marker of splice, vmsplice, and tee.
5560 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5561 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5562 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5563 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5564 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5565 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5566 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5567 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5568 as cancellation points.
5570 2003-11-01 Daniel Jacobowitz <dan@debian.org>
5572 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5573 parse more than three parts of the version number.
5575 2007-09-15 Ulrich Drepper <drepper@redhat.com>
5577 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5578 modifier. Patch by Jakub Jelinek.
5580 2007-08-26 Jakub Jelinek <jakub@redhat.com>
5582 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5583 call_fallocate in misc subdir.
5584 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5585 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5586 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5587 instead of __fallocate64.
5588 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5590 2007-09-15 Jakub Jelinek <jakub@redhat.com>
5592 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5593 * rt/Makefile (headers): Add bits/mqueue2.h.
5594 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5595 optimizing with GCC and __va_arg_pack_len is defined.
5596 * rt/bits/mqueue2.h: New file.
5597 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5598 (mq_open): New strong_alias.
5599 (__mq_open_2): New function.
5600 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5601 (mq_open): New strong_alias.
5602 (__mq_open_2): New function.
5603 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5604 * Versions.def (librt): Add GLIBC_2.7 version.
5605 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5606 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5608 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5609 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5610 is defined rather than when not C++.
5611 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5612 __openat64_alias): New redirects.
5613 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5614 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5615 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5616 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5617 functions instead of function-like macros.
5619 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5621 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5622 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5623 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5625 2007-09-15 Mike Frysinger <vapier@gentoo.org>
5627 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5628 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5630 2007-09-14 Mike Frysinger <vapier@gentoo.org>
5632 * inet/tst-network.c: Increment ERRORS for failing tests.
5634 2007-09-07 Jakub Jelinek <jakub@redhat.com>
5636 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5637 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5638 implement as __extern_always_inline function.
5639 (vsyslog): Define as __extern_always_inline function unconditionally.
5640 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5641 When __va_arg_pack is defined, implement as __extern_always_inline
5643 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5644 __extern_always_inline functions unconditionally.
5645 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5646 bits/stdio2.h will be included.
5647 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5648 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5649 implement as __extern_always_inline functions.
5650 (vswprintf, vwprintf, vfwprintf): Define as
5651 __extern_always_inline functions unconditionally.
5652 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5654 2007-09-03 Jakub Jelinek <jakub@redhat.com>
5656 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5657 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5659 * include/features.h (__USE_EXTERN_INLINES): Define only when
5660 __extern_inline is defined.
5661 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5662 is defined instead of when not __cplusplus.
5663 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5664 is defined instead of when not __cplusplus.
5665 * socket/sys/socket.h: Include bits/socket2.h when
5666 __extern_always_inline is defined instead of when not __cplusplus.
5667 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5668 is defined instead of when not __cplusplus.
5669 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5670 is defined instead of when not __cplusplus.
5671 * string/string.h: Include bits/string3.h when __extern_always_inline
5672 is defined instead of when not __cplusplus.
5673 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5674 is defined instead of when not __cplusplus.
5675 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5676 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5678 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5679 defined __extern_always_inline instead of !defined __cplusplus.
5680 * libio/bits/stdio-ldbl.h: Likewise.
5681 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5682 * misc/bits/syslog.h (syslog): Don't define for C++.
5683 (vsyslog): Use __extern_always_inline function for C++ instead of
5685 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5686 whenever that macro is defined.
5687 (vprintf): Don't provide the inline for C++.
5688 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5689 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5690 define the macros for C++.
5691 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5692 __extern_always_inline functions for C++.
5693 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5694 stat64, lstat64, fstat64, fstatat64): Don't define if not
5695 __USE_EXTERN_INLINES.
5696 * wcsmbs/bits/wchar2.h: Fix #error message.
5697 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5698 (vswprintf, vwprintf, vfwprintf): Define using
5699 __extern_always_inline functions for C++.
5700 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5701 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5702 strncpy, strcat, strncat): Define as __extern_always_inline
5703 functions instead of macros for C++.
5704 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5705 defined __extern_inline.
5706 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5707 to __extern_inline whenever that macro is defined.
5708 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5709 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5710 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5711 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5712 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5713 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5714 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5715 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5716 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5717 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5718 prototypes. Only provide __extern_inline routines if
5719 __USE_EXTERN_INLINES.
5720 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5722 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5723 For now avoid some *printf tests in C++. Skip all testing
5724 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5726 * debug/tst-chk4.cc: New file.
5727 * debug/tst-chk5.cc: New file.
5728 * debug/tst-chk6.cc: New file.
5729 * debug/tst-lfschk4.cc: New file.
5730 * debug/tst-lfschk5.cc: New file.
5731 * debug/tst-lfschk6.cc: New file.
5732 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5734 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5735 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5736 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5738 2007-09-13 Ulrich Drepper <drepper@redhat.com>
5740 * po/cs.po: Update from translation team.
5742 2007-09-11 Roland McGrath <roland@redhat.com>
5744 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5747 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5749 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5751 2007-09-05 Roland McGrath <roland@redhat.com>
5753 * manual/signal.texi (Signaling Another Process): Typo fix.
5754 From Karl Berry <karl@freefriends.org>.
5756 2007-08-29 Ulrich Drepper <drepper@redhat.com>
5758 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5759 zero if not defined.
5760 (make_request): Recognize optimistic addresses and treat them like
5761 deprecated addresses.
5762 Reported by Neil Horman <nhorman@redhat.com>.
5764 2007-08-28 Ulrich Drepper <drepper@redhat.com>
5766 * nscd/connections.c (send_ro_fd): Also transfer file size.
5767 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5768 file size don't call fstat.
5770 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5771 ahead and map the file. This should always be correct and we can
5772 catch problems later.
5774 2007-08-28 Jakub Jelinek <jakub@redhat.com>
5776 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5778 (__fread_alias, __fread_unlocked_alias): New aliases.
5779 (fread): New extern inline.
5780 (fread_unlocked): Likewise. Undef macro before definition of
5781 the inline function.
5782 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5783 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5784 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5785 and __fread_unlocked_chk@@GLIBC_2.7.
5786 * debug/fread_chk.c: New file.
5787 * debug/fread_u_chk.c: New file.
5788 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5790 2007-08-27 Jakub Jelinek <jakub@redhat.com>
5792 * sysdeps/unix/sysv/linux/syscalls.list
5793 (personality): Change caller to EXTRA.
5795 2007-08-25 Ulrich Drepper <drepper@redhat.com>
5797 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5799 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5801 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5804 * Makerules: Use -p option with mkdir.
5806 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5807 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5808 (_xdr_directory_obj): Likewise.
5809 (xdr_entry_obj): Likewise.
5810 (xdr_group_obj): Likewise.
5811 (xdr_link_obj): Likewise.
5812 (xdr_table_obj): Likewise.
5813 (_xdr_nis_result): Likewise.
5814 (_xdr_ns_request): Likewise.
5815 (_xdr_ib_request): Likewise.
5816 (_xdr_nis_taglist): Likewise.
5817 (xdr_cback_data): Likewise.
5818 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5819 (xdr_ypresp_maplist): Likewise.
5821 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5823 * posix/regex_internal.h: Prevent some declarations and definitions
5824 to be seen when used in tests.
5826 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5827 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5829 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5831 * config.make.in (datarootdir): Add to shut up configure.
5833 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5834 associativity for fully-associative caches.
5836 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5837 requests. Fill on more associativity values for L2.
5838 Patch mostly by Evandro Menezes.
5840 2007-08-24 Ulrich Drepper <drepper@redhat.com>
5842 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5843 (_libc_vdso_platform_setup): Avoid using exported variable by using
5846 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5848 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5849 fallocate64 as EXTRA. It is not referenced if the symbol isn't
5852 2007-08-23 Ulrich Drepper <drepper@redhat.com>
5854 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5855 align stack for call if pltexit is to be used.
5858 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5859 align for function call in case pltexit has to be called later.
5861 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5862 implicit atomic operation when storing function pointer.
5863 (_dl_runtime_profile): Likewise.
5865 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5867 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5870 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5873 * string/strtok.c: Fix typo in comment.
5876 * debug/segfault.c: Fix typos in comments.
5879 * stdio-common/tempnam.c: Fix comment, it is not checked that
5880 TMPDIR points to a writable directory.
5883 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5884 memory allocated for the name server address.
5887 * nscd/connections.c (handle_request): Using sendfile always
5888 requires that mmap is used for the database.
5889 Patch by Petr Baudis <pasky@suse.cz>.
5892 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5893 suddenly has two or more addresses, ignore it and remove the old
5897 * resolv/res_hconf.c: Prepare for compiling outside libc.
5898 * nscd/res_hconf.c: New file.
5899 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5901 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5902 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5904 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5907 * debug/pcprofiledump.c: Turn on internationalization by calling
5908 setlocale. Patch mostly by Benno Schulenberg.
5911 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5913 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5914 * iconvdata/bug-iconv5.c: New file.
5916 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5919 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5920 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5921 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5922 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5923 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5924 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5925 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5926 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5928 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5931 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5932 lookup loop. Suggested by John Reiser.
5934 2007-08-21 Jakub Jelinek <jakub@redhat.com>
5936 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5938 2007-08-20 Ulrich Drepper <drepper@redhat.com>
5940 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5941 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5942 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5943 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5944 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5946 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5948 2007-08-18 Ulrich Drepper <drepper@redhat.com>
5950 * po/nl.po: Update from translation team.
5952 2007-08-16 Andreas Jaeger <aj@suse.de>
5954 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5955 Reported by Peter Festner <peter.festner@ewetel.net>.
5957 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5959 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5961 2007-08-16 Jakub Jelinek <jakub@redhat.com>
5963 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5964 to check for undefined symbols.
5966 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5967 If the syscall fails, set errno to the actual returned error number
5969 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5970 arguments are incorrect, set errno to EINVAL, if the syscall
5971 fails, set errno to the actual returned error number.
5973 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5974 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5976 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5977 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
5979 (ASI_PNF, ASI_BLK_P): Don't define.
5980 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5981 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
5983 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5984 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
5987 2007-08-15 Jakub Jelinek <jakub@redhat.com>
5989 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5990 FE_UNDERFLOW on Niagara CPUs.
5992 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5995 2007-08-14 Jakub Jelinek <jakub@redhat.com>
5997 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5998 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5999 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6000 flush should be used or not inside of the function.
6001 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6003 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6004 __thread_start): Use HIDDEN_JUMPTARGET.
6005 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6006 __thread_start): Likewise.
6007 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6009 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6010 Add libc_hidden_proto.
6011 (STRTOF): Add libc_hidden_proto.
6012 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6013 (strtold_l, wcstold_l): Use them as second argument for
6016 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6018 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6020 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6022 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6024 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6026 * po/bg.po: New file. From the translation team.
6028 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6030 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6031 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6032 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6033 when each feature was introduced.
6035 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6036 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6037 (CHECK_HASH): New macro.
6038 (PREPARE_VERSION): Use it.
6040 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6041 prototype if not __ASSUME_PSELECT.
6042 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6043 prototype if not __ASSUME_PPOLL.
6045 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6047 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6048 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6051 2007-08-13 Ulrich Drepper <drepper@redhat.com>
6053 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6054 (_libc_vdso_platform_setup): If vDSO is not available point
6055 __vdso_gettimeofday to the vsyscall.
6056 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6057 __vdso_gettimeofday instead of vsyscall.
6059 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6061 * nscd/servicescache.c: Include kernel-features.h.
6062 * nscd/gai.c: Likewise.
6063 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6064 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6065 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6066 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6067 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6068 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6069 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6070 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6071 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6073 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6075 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6076 and _dl_get_origin defines anymore.
6078 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6079 Build fix for systems which might lack POSIX timer support.
6081 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6082 (_libc_vdso_platform_setup): Mangle function pointers before storing
6084 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6085 Demangle vdso pointer before use.
6086 (INTERNAL_VSYSCALL): Likewise.
6088 * elf/cache.c (primes): Mark as const.
6089 Noted by Roland McGrath.
6091 2007-08-01 Andreas Jaeger <aj@suse.de>
6092 Jakub Jelinek <jakub@redhat.com>
6094 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6095 (options): Add option.
6096 (parse_opt): Handle option.
6097 (manual_link): Adjust process_file caller. Call implicit_soname.
6098 (search_dir): Formatting. Use and populate auxiliary cache.
6099 (main): Load and save auxiliary cache.
6100 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6101 stat64 from fstat64 to caller.
6102 (implicit_soname): New function.
6103 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6104 leave *soname as NULL.
6105 * elf/cache.c: Include libgen.h.
6106 (print_entry, print_cache, compare, save_cache, add_to_cache):
6107 Formatting and cleanups.
6108 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6109 aux_cache_file): New structures.
6110 (AUX_CACHEMAGIC): Define.
6111 (primes): New array.
6112 (aux_hash_size, aux_hash): New variables.
6113 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6114 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6115 load_aux_cache, save_aux_cache): New functions.
6116 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6117 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6118 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6119 (process_file): Adjust prototype.
6121 2007-08-12 Jakub Jelinek <jakub@redhat.com>
6123 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6126 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6128 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6129 r_found_version structure as second parameter.
6130 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6131 (_dl_vdso_vsym): Change type of second parameter accordingly.
6132 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6133 (_libc_vdso_platform_setup): Adjust.
6134 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6135 (_libc_vdso_platform_setup): Likewise.
6137 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6138 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6139 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6140 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6141 * csu/libc-start.c: Pretty printing.
6142 Use VDSO_SETUP if defined.
6143 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6144 and let generic code call into _libc_vdso_platform_setup.
6145 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6146 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6147 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6148 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6149 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6151 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6152 (sysdep_rountines): Add dl-vdso.
6154 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6157 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6158 attribute_hidden to __vdso_gettimeofday prototype.
6160 2007-08-12 Roland McGrath <roland@redhat.com>
6162 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6163 From: Karl Berry <karl@freefriends.org>.
6165 2007-08-11 Ulrich Drepper <drepper@redhat.com>
6167 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6168 an atime update for the files we read.
6170 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6172 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6174 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
6177 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6178 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6179 * misc/mkostemp.c: New file.
6180 * misc/mkostemp64.c: New file.
6181 * stdlib/stdlib.h: Declare the new functions.
6182 * sysdeps/posix/tempname.c: Add new parameter which is added to
6183 the flags for open. Remove __GT_BIGFILE handling.
6184 * stdio-common/tempname.c: Likewise.
6185 * include/stdio.h: Adjust __gen_tempname prototype.
6186 Renumber __GT_* constants.
6187 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6188 * misc/mkdtemp.c: Likewise.
6189 * misc/mkstemp.c: Likewise.
6190 * misc/mkstemp64.c: Likewise.
6191 * misc/mktemp.c: Likewise.
6192 * stdio-common/tempnam.c: Likewise.
6193 * stdio-common/tmpfile.c: Likewise.
6194 * stdio-common/tmpfile64.c: Likewise.
6195 * stdio-common/tmpnam.c: Likewise.
6196 * stdio-common/tmpnam_r.c: Likewise.
6198 2007-08-10 Roland McGrath <roland@frob.com>
6200 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6202 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6203 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6205 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6207 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6209 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6210 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6211 * nss/nss_files/files-have_o_cloexec.c: New file.
6213 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6216 2007-08-10 Jakub Jelinek <jakub@redhat.com>
6218 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6219 ___new_wcstold_l): New weak aliases.
6220 (strtold_l, wcstold_l): Use them as second argument for
6223 2007-08-09 Ulrich Drepper <drepper@redhat.com>
6225 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6226 register in test for error.
6228 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6229 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6231 * po/sv.po: Update from translation team.
6233 2007-08-06 Roland McGrath <roland@redhat.com>
6235 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6236 Remove __strto*_l inlines.
6237 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6238 * stdlib/strtod.c: Add libc_hidden_def.
6239 * stdlib/strtod_l.c: Likewise.
6240 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6241 for __new_strtold and __new_wcstold.
6242 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6244 * stdlib/strtol.c: Add libc_hidden_def.
6245 * stdlib/strtol_l.c: Likewise.
6246 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6249 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6251 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6252 * scripts/data/localplt-generic.data: ... here.
6253 * elf/Makefile (check-data): Get generic file if no other.
6254 ($(objpfx)check-localplt.out): Make target unconditional.
6256 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6259 2007-08-05 Ulrich Drepper <drepper@redhat.com>
6261 * po/zh_CN.po: Updated translation from translation team.
6263 2007-08-05 Jakub Jelinek <jakub@redhat.com>
6265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6266 Don't use CGOTSETUP and CGOTRESTORE macros.
6268 2007-08-04 Roland McGrath <roland@redhat.com>
6270 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6272 2007-08-04 Jakub Jelinek <jakub@redhat.com>
6274 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6275 __extension__ around the whole statement expression.
6277 2007-08-04 Ulrich Drepper <drepper@redhat.com>
6279 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6280 elements during initialization.
6282 * po/pl.po: Updated translation from translation team.
6283 * po/tr.po: Likewise.
6284 * po/nl.po: Likewise.
6286 2007-08-03 Ulrich Drepper <drepper@redhat.com>
6288 * rt/aio.h: Add __nonnull attributes.
6290 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6292 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6293 * stdlib/Makefile (tests): Add tst-strtod5.
6294 (tst-strtod5-ENV): New.
6295 * stdlib/tst-strtod5.c: New file.
6297 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6299 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6302 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6305 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6307 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6310 2007-08-02 Ulrich Drepper <drepper@redhat.com>
6312 * io/Makefile (aux): Add have_o_cloexec.
6313 * include/fcntl.h: Declare __have_o_cloexec.
6314 * io/have_o_cloexec.c: New file.
6315 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6316 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6317 fcntl call if not necessary.
6318 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6321 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6322 Avoid memset, add explicit initialization.
6323 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6324 to the end and change into zero-sized array.
6325 Move lock member to fill a hole on 64-bit platforms.
6327 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6329 * include/stdlib.h: Add __strto*_internal prototypes here.
6330 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6332 * include/wchar.h: Add __wcsto*_internal prototypes.
6333 * sysdeps/generic/inttypes.h: No need to protect the declaration
6334 of the __strto*_internal and __wcsto*_internal members here.
6336 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6338 2007-08-02 Roland McGrath <roland@redhat.com>
6340 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6341 $(inst_bindir)/getconf if possible.
6343 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6344 (generated): Add it.
6345 ($(inst_libexecdir)/getconf): Use it.
6347 2007-08-01 Ulrich Drepper <drepper@redhat.com>
6349 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6350 /proc is faster and sufficient. /sys is still needed for
6353 2007-08-01 Jakub Jelinek <jakub@redhat.com>
6355 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6356 syscall as __fallocate64.
6357 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6358 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6360 2007-07-30 Jakub Jelinek <jakub@redhat.com>
6362 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6365 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6366 if off_t is different rank from size_t.
6368 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6369 uw_frame_state_for): Avoid type punning warnings.
6370 * sysdeps/generic/unwind-dw2-fde-glibc.c
6371 (_Unwind_IteratePhdrCallback): Likewise.
6372 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6373 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6374 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6377 2007-07-31 Ulrich Drepper <drepper@redhat.com>
6379 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6380 total processors using sysfs.
6381 (__get_nprocs): Use sysfs to determine which processors are online.
6383 2007-07-31 Jakub Jelinek <jakub@redhat.com>
6385 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6386 syscall arguments count.
6388 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6390 2007-07-30 Roland McGrath <roland@redhat.com>
6392 * manual/libc.texinfo: Update copyrights, formatting magic, and
6393 @dircategory. From Karl Berry <karl@freefriends.org>.
6395 2007-07-29 Ulrich Drepper <drepper@redhat.com>
6398 * io/Makefile (headers): Add bits/fcntl2.h.
6400 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6402 (__CPU_EQUAL_S): Likewise.
6404 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6405 (tests): Add tst-cpuset.
6406 * posix/sched_cpualloc.c: New file.
6407 * posix/sched_cpufree.c: New file.
6408 * posix/tst-cpuset.c: New file.
6409 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6411 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6412 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6413 macros. Define CPU_*_S macros.
6415 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6417 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6421 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6422 #.0g and value rounded to 1.0.
6423 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6425 2007-07-26 Jakub Jelinek <jakub@redhat.com>
6427 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6428 for int_frac_digits and frac_digits.
6430 * login/logout.c (logout): Avoid aliasing violation.
6431 * login/logwtmp.c (logwtmp): Likewise.
6433 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6435 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6437 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6439 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6441 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6444 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6446 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6448 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6449 char * to avoid warning.
6450 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6452 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6454 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6455 allocate_arrays): Cast second argument to charmap_find_symbol
6456 to char * to avoid warnings.
6458 * locale/programs/repertoire.c (repertoire_new_char): Change
6459 from_nr, to_nr and cnt to unsigned long, adjust printf format
6462 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6463 Cast second argument to new_element to char * to avoid warnings.
6465 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6467 * intl/gettextP.h (struct loaded_domain): Change plural to const
6468 struct expression *.
6469 * intl/plural-eval.c (plural_eval): Change first argument to
6470 const struct expression *.
6471 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6472 argument to const struct expression **.
6473 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6475 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6476 in call to __gettext_free_exp.
6478 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6479 unitialized wstring/wpattern var warnings.
6481 * posix/runtests.c (struct a_test): Make data field const char *.
6483 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6484 vars if not LDBL_MANT_DIG >= 106.
6486 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6488 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6489 __find_specmb to avoid warning.
6491 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6493 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6496 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6499 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6500 tv var when it will be actually used.
6502 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6505 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6506 char array resp. pointer.
6507 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6509 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6510 to const unsigned char **.
6511 (ucs4_to_cns11643): Change second argument to unsigned char *.
6512 * iconvdata/euc-tw.c (BODY): Change endp type to
6513 const unsigned char *.
6514 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6516 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6517 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6518 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6519 types to unsigned char pointers/arrays instead of char.
6520 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6522 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6523 * iconvdata/jis0212.h: Include assert.h.
6524 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6525 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6526 of trying to handle that.
6527 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6529 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6530 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6531 two dimensional const unsigned char arrays.
6532 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6533 Initialize endp to inptr to shut up a warning.
6535 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6538 * time/strptime_l.c (__strptime_internal): Silently ignore
6539 strftime modifiers and field width in recursive calls.
6541 * include/time.h (enum ptime_locale_status): Remove.
6542 (__strptime_internal): Remove decided and era_cnt arguments,
6543 add statep argument.
6544 * time/strptime_l.c (__strptime_internal): Remove decided
6545 and era_cnt arguments, add statep argument. Don't recompute
6546 any fields in recursive calls, only update caller's tm
6547 and state, if recursive call fails, don't change tm nor
6549 (get_alt_number): Adjust.
6550 (recursive): Adjust caller.
6551 (strptime): Likewise.
6552 * time/strptime.c (strptime): Likewise.
6554 2007-07-19 Jakub Jelinek <jakub@redhat.com>
6556 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6557 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6558 if from and to charsets are the same.
6559 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6560 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6561 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6563 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6565 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6566 Don't define wint_t when __need_mbstate_t unless it
6568 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6569 in the typedef if possible.
6570 * wctype/wctype.h (wint_t): Define by including
6571 wchar.h with __need_wint_t instead of including stddef.h
6572 with __need_wint_t and as fallback definining it ourselves.
6573 * iconv/gconv.h (__need_wint_t): Define before including
6575 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6576 or _GLIBCPP_USE_WCHAR_T.
6577 (__need_wchar_t): Don't define
6578 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6579 (__need_wint_t): Don't define before including stddef.h,
6580 define before including wchar.h only if _LIBC or
6581 _GLIBCPP_USE_WCHAR_T.
6582 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6583 * sysdeps/mach/hurd/_G_config.h: Likewise.
6584 * sysdeps/generic/_G_config.h: Likewise.
6585 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6586 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6587 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6588 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6590 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6592 * sysdeps/posix/posix_fallocate64.c: Undefine
6593 __posix_fallocate64_l64 before alias handling.
6594 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6595 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6596 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6597 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6599 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6601 2007-07-23 Jakub Jelinek <jakub@redhat.com>
6603 * locale/programs/ld-collate.c (atwc): New variable.
6604 (add_to_tablewc): New toplevel function, moved from collate_output.
6605 (collate_output): Remove add_to_tablewc nested function.
6607 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6608 (name_insert): New function.
6609 (write_output): Remove hash_table and hash_size vars and name_insert
6612 2007-07-24 Roland McGrath <roland@redhat.com>
6614 * Makerules (install-others-programs-nosubdir): New target.
6615 (install-no-libc.a-nosubdir): Depend on it.
6617 * iconv/Makefile (install-others-programs): Set this instead of
6619 * login/Makefile (install-others-programs): Likewise.
6620 * posix/Makefile (install-others-programs): Likewise.
6622 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6625 2007-07-23 Ulrich Drepper <drepper@redhat.com>
6627 * io/Makefile (tests): Add tst-posix_fallocate.
6628 * io/tst-posix_fallocate.c: New file.
6630 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6633 2007-07-22 Roland McGrath <roland@frob.com>
6635 * hurd/getdport.c: Add missing copyright year update.
6637 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6638 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6640 2007-07-22 Ulrich Drepper <drepper@redhat.com>
6642 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6644 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6645 O_CLOEXEC is needed.
6646 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6647 Avoid additional fcntl to set O_CLOEXEC if not needed.
6648 * nis/nss_compat/compat-initgroups.c: Likewise.
6649 * nis/nss_compat/compat-pwd.c: Likewise.
6650 * nis/nss_compat/compat-spwd.c: Likewise.
6652 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6655 * manual/errno.texi: Change ECANCELED value to 119.
6658 * mach/lock-intern.h: Include <sys/cdefs.h>.
6661 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6665 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6668 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6670 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6672 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6674 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6676 2007-07-21 Ulrich Drepper <drepper@redhat.com>
6678 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6679 descriptor received from nscd.
6681 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6683 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6684 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6685 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6686 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6687 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6688 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6690 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6693 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6696 * login/forkpty.c (forkpty): Close master and slave fds on
6697 fork failure. Patch by
6698 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6700 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6702 * include/features.h (__USE_ISOC95): New define.
6703 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6704 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6705 for -std=iso9899:199409.
6706 * CONFORMANCE: Remove comments about unsupported AMD1.
6708 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6710 * sysdeps/ia64/sched_cpucount.c: New file.
6711 * sysdeps/powerpc/sched_cpucount.c: New file.
6713 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6714 __BEGIN_DECLS/__END_DECLS around the prototype.
6715 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6716 pointer to const cpu_set_t.
6718 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6719 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6720 __need_size_t and include stddef.h.
6721 * sysvipc/sys/msg.h: Likewise.
6722 * posix/sched.h: Likewise.
6723 * hurd/hurd/signal.h (__need_size_t): Define.
6725 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6726 neither does signal.h in pedantic ISO C namespaces. stdio.h
6727 no longer defines wint_t or wchar_t.
6729 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6730 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6731 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6732 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6733 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6734 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6735 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6736 * debug/printf_chk.c (__printf_chk): Likewise.
6737 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6738 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6740 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6743 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6744 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6746 2007-07-16 Jakub Jelinek <jakub@redhat.com>
6749 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6750 * malloc/malloc.h (realloc): Likewise.
6752 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6753 if one of proc_file_chain streams has that fileno.
6754 * stdio-common/Makefile (tests): Add tst-popen2.
6755 * stdio-common/tst-popen2.c: New test.
6757 2007-07-14 Jakub Jelinek <jakub@redhat.com>
6759 * elf/ldconfig.c: Allow GPLv2 or any later version.
6760 * elf/readlib.c: Likewise.
6761 * elf/chroot_canon.c: Likewise.
6762 * elf/cache.c: Likewise.
6763 * nscd/mem.c: Likewise.
6764 * nscd/getpwuid_r.c: Likewise.
6765 * nscd/grpcache.c: Likewise.
6766 * nscd/aicache.c: Likewise.
6767 * nscd/getsrvbynm_r.c: Likewise.
6768 * nscd/nscd.c: Likewise.
6769 * nscd/servicescache.c: Likewise.
6770 * nscd/getsrvbypt_r.c: Likewise.
6771 * nscd/initgrcache.c: Likewise.
6772 * nscd/gethstbyad_r.c: Likewise.
6773 * nscd/gethstbynm2_r.c: Likewise.
6774 * nscd/getgrnam_r.c: Likewise.
6775 * nscd/nscd_setup_thread.c: Likewise.
6776 * nscd/getpwnam_r.c: Likewise.
6777 * nscd/gai.c: Likewise.
6778 * nscd/connections.c: Likewise.
6779 * nscd/dbg_log.c: Likewise.
6780 * nscd/cache.c: Likewise.
6781 * nscd/hstcache.c: Likewise.
6782 * nscd/nscd_conf.c: Likewise.
6783 * nscd/getgrgid_r.c: Likewise.
6784 * nscd/pwdcache.c: Likewise.
6785 * catgets/gencat.c: Likewise.
6786 * locale/programs/linereader.h: Likewise.
6787 * locale/programs/locarchive.c: Likewise.
6788 * locale/programs/ld-paper.c: Likewise.
6789 * locale/programs/locfile-kw.h: Likewise.
6790 * locale/programs/ld-address.c: Likewise.
6791 * locale/programs/xmalloc.c: Likewise.
6792 * locale/programs/ld-time.c: Likewise.
6793 * locale/programs/localedef.c: Likewise.
6794 * locale/programs/simple-hash.c: Likewise.
6795 * locale/programs/xstrdup.c: Likewise.
6796 * locale/programs/ld-numeric.c: Likewise.
6797 * locale/programs/locfile-kw.gperf: Likewise.
6798 * locale/programs/ld-collate.c: Likewise.
6799 * locale/programs/charmap-kw.gperf: Likewise.
6800 * locale/programs/charmap.h: Likewise.
6801 * locale/programs/charmap-kw.h: Likewise.
6802 * locale/programs/config.h: Likewise.
6803 * locale/programs/locfile.c: Likewise.
6804 * locale/programs/ld-ctype.c: Likewise.
6805 * locale/programs/charmap.c: Likewise.
6806 * locale/programs/ld-messages.c: Likewise.
6807 * locale/programs/repertoire.h: Likewise.
6808 * locale/programs/locale.c: Likewise.
6809 * locale/programs/ld-name.c: Likewise.
6810 * locale/programs/linereader.c: Likewise.
6811 * locale/programs/locfile.h: Likewise.
6812 * locale/programs/3level.h: Likewise.
6813 * locale/programs/ld-monetary.c: Likewise.
6814 * locale/programs/ld-measurement.c: Likewise.
6815 * locale/programs/charmap-dir.c: Likewise.
6816 * locale/programs/ld-identification.c: Likewise.
6817 * locale/programs/localedef.h: Likewise.
6818 * locale/programs/charmap-dir.h: Likewise.
6819 * locale/programs/repertoire.c: Likewise.
6820 * locale/programs/simple-hash.h: Likewise.
6821 * locale/programs/ld-telephone.c: Likewise.
6822 * locale/programs/locale-spec.c: Likewise.
6823 * locale/programs/locfile-token.h: Likewise.
6824 * posix/getconf.c: Likewise.
6825 * iconv/dummy-repertoire.c: Likewise.
6826 * iconv/iconv_charmap.c: Likewise.
6827 * iconv/iconvconfig.c: Likewise.
6828 * iconv/iconv_prog.c: Likewise.
6829 * malloc/memusagestat.c: Likewise.
6830 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6832 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6834 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6835 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6836 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6837 check for the first argument.
6839 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6842 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6843 (__tgmath_real_type): Fix if expr is const int or other const
6844 qualified integral type.
6845 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6846 expressions and handle const qualified arguments.
6847 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6848 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6849 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6850 statement expressions.
6851 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6852 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6853 (__TGMATH_UNARY_IMAG): Define.
6854 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6855 * math/Makefile (tests): Add test-tgmath2.
6856 (CFLAGS-test-tgmath2.c): Add.
6857 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6858 count_cfloat, count_cldouble): New variables.
6860 (main): Check number of complex calls as well.
6861 (F(compile_test)): Add complex tests and tests with const qualified
6863 (y, z, ccount): Define.
6864 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6865 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6866 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6867 F(cproj)): New functions.
6868 * math/test-tgmath2.c: New test.
6870 2007-07-11 Jakub Jelinek <jakub@redhat.com>
6873 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6874 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6876 * dlfcn/Makefile (distribute): Add glreflib3.c.
6877 (module-names): Add glreflib3.
6878 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6880 (LDFLAGS_glreflib3.so): New.
6881 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6883 * dlfcn/glreflib3.c: New file.
6885 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6886 returned -1, return NULL.
6887 * intl/explodename.c (_nl_explode_name): Return -1 if
6888 _nl_normalize_codeset failed.
6890 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6892 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6893 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6894 and avoid branch misspredicts for > 31 bytes memset case.
6895 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6896 Remove toc ref to __cache_line_size.
6898 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6899 to get ISA-V2.0 branch hints.
6900 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6901 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6902 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6903 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6904 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6905 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6906 Remove toc ref to __cache_line_size.
6908 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6909 Include math_ldbl_opt.h.
6911 2007-07-10 Ulrich Drepper <drepper@redhat.com>
6914 * time/strptime_l.c (__strptime_internal): Implement greedy
6915 matching of weekday and month names.
6917 2007-07-09 Roland McGrath <roland@redhat.com>
6919 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6920 (ELF_NOTE_ABI): Use it.
6921 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6923 2007-07-09 Ulrich Drepper <drepper@redhat.com>
6925 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6926 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6928 2007-07-07 Ulrich Drepper <drepper@redhat.com>
6931 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6932 in loop to look for conversion specifier to avoid testing of
6934 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6935 * stdio-common/bug18.c: New file.
6936 * stdio-common/bug18a.c: New file.
6937 * stdio-common/bug19.c: New file.
6938 * stdio-common/bug19a.c: New file.
6940 2007-07-05 Mike Frysinger <vapier@gentoo.org>
6942 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6945 2007-07-01 Jakub Jelinek <jakub@redhat.com>
6947 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6948 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6949 Return NULL if mmap failed instead of asserting it does not.
6950 (calloc): Check for integer overflow.
6952 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6955 2007-07-03 Jakub Jelinek <jakub@redhat.com>
6958 * nis/nss-default.c: Include errno.h.
6959 (init): Preserve errno.
6961 2007-07-02 Ulrich Drepper <drepper@redhat.com>
6963 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6965 2007-06-30 Ulrich Drepper <drepper@redhat.com>
6967 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6969 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6971 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6973 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6975 * sysdeps/s390/dl-procinfo.c: New file.
6976 * sysdeps/s390/dl-procinfo.h: New file.
6977 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6979 2007-06-29 Jakub Jelinek <jakub@redhat.com>
6981 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6982 in PT_NOTE segments with multiple notes.
6983 * elf/readelflib.c (process_elf_file): Likewise.
6985 2007-06-22 Ulrich Drepper <drepper@redhat.com>
6987 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6990 2007-06-19 Ulrich Drepper <drepper@redhat.com>
6992 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6994 2007-06-13 Jakub Jelinek <jakub@redhat.com>
6996 * include/link.h: Don't include rtld-lowlevel.h.
6997 (struct link_map): Remove l_scope_lock.
6998 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6999 (_dl_scope_free_list): New field (variable) in _rtld_global.
7000 (DL_LOOKUP_SCOPE_LOCK): Remove.
7001 (_dl_scope_free): New prototype.
7002 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7003 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7004 (_dl_profile_fixup): Likewise.
7005 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7006 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7007 THREAD_GSCOPE_RESET_FLAG around it.
7008 * elf/dl-close.c (_dl_close_worker): Don't use
7009 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7010 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7011 scopes were queued or if l_scope_mem has been abandoned.
7012 * elf/dl-open.c (_dl_scope_free): New function.
7013 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7014 * elf/dl-support.c (_dl_scope_free_list): New variable.
7015 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7016 Remove DL_LOOKUP_SCOPE_LOCK handling.
7017 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7019 * elf/dl-object.c (_dl_new_object): Don't use
7020 __rtld_mrlock_initialize.
7022 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7024 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7026 (rtld_global_ro): Likewise.
7028 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7030 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7031 Move PT_LOAD checking to...
7032 (_dl_addr_inside_object): ... here, new function.
7033 * elf/dl-sym.c (do_sym): If not l_contiguous,
7034 call _dl_addr_inside_object.
7035 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7036 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7037 * elf/dl-open.c (dl_open_worker): Likewise.
7038 (_dl_addr_inside_object): New function if IS_IN_rtld.
7039 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7040 holes are present or are PROT_NONE protected.
7041 * include/link.h (struct link_map): Add l_contiguous field.
7042 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7044 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7045 Tomas Janousek <tjanouse@redhat.com>
7046 Ulrich Drepper <drepper@redhat.com>
7049 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7050 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7052 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7053 unused member a bitmap.
7054 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7055 servers are configured.
7057 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7059 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7061 2007-06-17 Andreas Schwab <schwab@suse.de>
7063 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7065 2007-06-16 Andreas Jaeger <aj@suse.de>
7068 * sysdeps/unix/sysv/linux/sys/ptrace.h
7069 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7070 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7071 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7072 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7073 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7075 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7076 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7077 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7078 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7080 2007-06-16 Ulrich Drepper <drepper@redhat.com>
7083 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7084 determining whether there are IPv4/IPv6 addresses, ignore loopback
7087 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7089 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7090 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7091 as the return type. Change type of "r" variable to CMPtype.
7092 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7093 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7094 * soft-fp/gedf2.c (__gedf2): Likewise.
7095 * soft-fp/gesf2.c (__gesf2): Likewise.
7096 * soft-fp/getf2.c (__getf2): Likewise.
7097 * soft-fp/ledf2.c (__ledf2): Likewise.
7098 * soft-fp/lesf2.c (__lesf2): Likewise.
7099 * soft-fp/letf2.c (__letf2): Likewise.
7100 * soft-fp/unorddf2 (__unorddf2): Likewise.
7101 * soft-fp/unordsf2 (__unordsf2): Likewise.
7102 * soft-fp/unordtf2 (__unordtf2): Likewise.
7104 2007-06-09 Ulrich Drepper <drepper@redhat.com>
7106 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7107 make sure gcc doesn't mess around with this.
7109 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7111 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7113 2007-06-08 Jakub Jelinek <jakub@redhat.com>
7115 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7116 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7117 at most once per _dl_close_worker.
7119 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7121 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7122 __sched_cpucount as const.
7123 * posix/sched_cpucount.c: Adjust.
7125 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7126 instruction for counting bits.
7127 * sysdeps/x86_64/sched_cpucount.c: New file.
7129 2007-06-07 Ulrich Drepper <drepper@redhat.com>
7131 * configure.in: Avoid variable named BASH.
7132 * config.make.in: Likewise.
7133 Patch in part by Mike Frysinger.
7135 2007-06-06 Jakub Jelinek <jakub@redhat.com>
7138 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7139 pseudo-zeros as zero.
7140 * sysdeps/x86_64/ldbl2mpn.c: New file.
7141 * sysdeps/ia64/ldbl2mpn.c: New file.
7143 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7145 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7146 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7147 Remove unreachable code at the end.
7149 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7151 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7152 ldbl-128ibm in comment.
7153 (fpclassifyl): Correct classification of denormals.
7154 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7155 return value for MIN denormal. Rewrite using long double math too
7156 correctly handle denormals and canonicalize the results.
7158 2007-06-05 Jakub Jelinek <jakub@redhat.com>
7160 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7161 (__mpn_construct_long_double): Fix conversion where result ought
7162 to be smaller than __LDBL_MIN__, or the low double should be
7163 denormal. Fix decision where to negate low double - honor round
7165 * stdio-common/tst-sprintf2.c: Include string.h.
7166 (COMPARE_LDBL): Define.
7167 (TEST): Also test whether a string hexadecimal float representation
7168 can be parsed back to the number.
7169 (main): Add a couple of further tests.
7171 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7173 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7174 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7175 is non-zero, but smaller than 2 * __DBL_MIN__.
7176 * stdio-common/tst-sprintf2.c: New test.
7177 * stdio-common/Makefile (tests): Add tst-sprintf2.
7179 * math/test-misc.c (main): Don't run last batch of tests with
7180 IBM long double format.
7182 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7184 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7185 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7186 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7187 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7188 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7189 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7190 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7191 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7192 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7193 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7217 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7219 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7220 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7221 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7222 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7223 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7224 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7225 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7226 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7228 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7230 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7231 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7232 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7233 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7234 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7235 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7236 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7237 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7239 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7241 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7242 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7243 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7244 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7246 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7248 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7249 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7251 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7253 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7254 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7255 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7256 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7258 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7260 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7261 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7263 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7265 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7266 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7268 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7269 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7270 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7271 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7273 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7275 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7276 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7277 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7278 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7280 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7282 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7283 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7284 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7285 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7286 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7287 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7289 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7291 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7292 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7293 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7294 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7296 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7298 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7299 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7300 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7301 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7302 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7303 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7304 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7305 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7306 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7307 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7308 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7309 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7310 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7311 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7312 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7313 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7315 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7317 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7318 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7320 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7322 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7323 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7325 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7327 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7328 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7329 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7330 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7331 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7332 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7333 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7334 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7335 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7336 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7338 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7340 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7342 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7344 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7345 branch miss-predicts. Ensure that cache line crossing does not impact
7348 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7350 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7351 "../../powerpc32/power4/memcopy.h".
7352 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7353 "../../powerpc32/power4/wordcopy.c".
7355 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7357 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7358 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7359 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7360 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7361 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7362 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7364 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7366 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7368 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7370 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7371 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7372 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7373 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7374 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7375 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7376 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7377 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7379 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7381 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7383 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7385 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7386 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7387 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7388 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7389 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7390 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7391 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7393 2007-05-29 Roland McGrath <roland@redhat.com>
7395 * po/Makefile (po-sed-cmd): New variable.
7396 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7398 2007-05-29 Ulrich Drepper <drepper@redhat.com>
7400 * crypt/md5-crypt.c: Fix comment.
7402 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7403 of crashing. When this is the case or if the reply is malformed,
7404 don't try to close the new file descriptor since it does not
7406 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7408 2007-05-28 Jakub Jelinek <jakub@redhat.com>
7410 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7411 if __NR_utimensat is not defined.
7413 2007-05-26 Ulrich Drepper <drepper@redhat.com>
7415 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7417 2007-05-25 Jakub Jelinek <jakub@redhat.com>
7419 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7420 (open): Fix comment typos. Don't call __open_2 if flags
7421 is a compile time constant without O_CREAT.
7422 (__open64_2): Add nonnull attribute.
7423 (open64): Fix comment typos. Don't call __open64_2 if flags
7424 is a compile time constant without O_CREAT.
7425 (__openat_2): Add nonnull attribute, fix nonnull attribute
7427 (openat): Fix comment typos. Don't call __openat_2 if flags
7428 is a compile time constant without O_CREAT.
7429 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7431 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7432 is a compile time constant without O_CREAT.
7434 2007-05-24 Ulrich Drepper <drepper@redhat.com>
7436 * Makerules (sysd-rules): Define PTW for ptw-* files.
7437 * Versions: Define GLIBC_2.7 for libc.
7438 * include/stdio.h: Declare __fortify_fail.
7439 * debug/fortify_fail.c: New file.
7440 * debug/Makefile (routines): Add fortify_fail.
7441 * debug/chk_fail.c: Use __fortify_fail.
7442 * debug/stack_chk_fail.c: Likewise.
7443 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7444 __openat64_2 for GLIBC_2.7.
7445 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7446 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7447 and fails if necessary.
7448 * io/open64.c: Likewise.
7449 * io/openat.c: Likewise.
7450 * io/openat64.c: Likewise.
7451 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7452 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7453 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7454 * io/bits/fcntl2.h: New file.
7455 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7457 * include/bits/fcntl2.h: New file.
7458 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7460 * sysdeps/unix/sysv/linux/open_2.c: New file.
7462 2007-05-21 Ulrich Drepper <drepper@redhat.com>
7464 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7465 as second parameter to handle_intel.
7467 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7470 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7472 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7473 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7475 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7476 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7477 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7479 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7481 2007-05-21 Jakub Jelinek <jakub@redhat.com>
7484 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7485 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7486 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7488 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7491 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7492 reinitialize workend at the start of each do_positional format spec
7493 loop, free workstart before do_positional loops.
7494 (printf_unknown): Fix size of work_buffer.
7495 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7497 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7498 (public_sET_STATe): If ms->version < 3, put all chunks into
7499 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7502 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7503 * malloc/hooks.c: Likewise.
7504 * malloc/arena.c: Likewise.
7505 * malloc/malloc.c (do_check_malloc_state): Don't assert
7506 n_mmaps is not greater than n_mmaps_max. This removes the need
7507 for the previous change.
7509 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7512 2007-05-19 Ulrich Drepper <drepper@redhat.com>
7514 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7515 Define for kernel >= 2.6.22.
7517 2007-05-18 Ulrich Drepper <drepper@redhat.com>
7519 * elf/dl-close.c (_dl_close_worker): When removing object from
7520 global scope, wait for all lookups to finish afterwards.
7521 * elf/dl-open.c (add_to_global): When global scope array must
7522 grow, allocate a new one and free old array only after all
7524 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7525 (_dl_lookup_symbol_x): Likewise.
7526 * elf/dl-support.c: Define _dl_wait_lookup_done.
7527 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7528 _dl_wait_lookup_done.
7530 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7531 not overlapping with arena.
7533 * malloc/mcheck.c (reallochook): If size==0, free the block.
7535 * rt/tst-shm.c: Use fstat64 instead of fstat.
7537 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7538 __NR_sync_file_range is not defined.
7540 2007-05-17 Ulrich Drepper <drepper@redhat.com>
7542 Dummy files to prevent stub versions from being used.
7543 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7544 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7545 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7546 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7548 * version.h (VERSION): Set to 2.6.90.
7550 2007-05-14 Ulrich Drepper <drepper@redhat.com>
7552 * version.h (VERSION): Define to 2.6.
7553 * include/features.h (__GLIBC_MINOR__): Define to 6.
7555 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7557 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7560 2007-05-13 Ulrich Drepper <drepper@redhat.com>
7562 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7563 number of mmaps. n_mmaps_max is the target.
7564 * malloc/hooks.c: Likewise.
7565 * malloc/arena.c: Likewise.
7567 2007-05-12 Andreas Jaeger <aj@suse.de>
7569 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7572 2007-05-11 Ulrich Drepper <drepper@redhat.com>
7574 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7575 adding new variables.
7577 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7578 optimize. Completely extend global scope array before making the
7579 new entries visible.
7581 2007-05-10 Ulrich Drepper <drepper@redhat.com>
7583 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7584 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7587 * include/link.h: Move l_version and l_nversion members around to
7590 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7592 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7593 (__sched_setaffinity_new): If syscall was successful and
7594 RESET_VGETCPU_CACHE is defined, use it before returning.
7595 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7597 * io/sys/stat.h: Make sure struct timespec is defined for
7600 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7602 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7603 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7604 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7605 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7606 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7607 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7608 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7609 * io/sys/stat.h: Declare utimensat, futimens.
7610 * io/utimensat.c: New file.
7611 * io/futimens.c: New file.
7612 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7613 * sysdeps/unix/sysv/linux/futimens.c: New file.
7614 * io/Makefile (routines): Add utimensat, futimens.
7615 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7616 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7617 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7620 * include/sys/cdefs.h: Redefine __nonnull so that test for
7621 incorrect parameters in the libc code itself are not omitted.
7623 2007-05-09 Jakub Jelinek <jakub@redhat.com>
7625 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7626 exception in addition to inexact when asked to raise only FE_INEXACT.
7629 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7632 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7635 * string/strfry.c (strfry): Make result more random.
7637 2007-05-07 Richard Henderson <rth@redhat.com>
7639 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7640 if __NO_LONG_DOUBLE_MATH.
7641 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7642 available in the compiler, add .arch directive to the assembly.
7644 2007-05-07 Jakub Jelinek <jakub@redhat.com>
7646 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7647 compat_symbol to GLIBC_2_1.
7648 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7649 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7650 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7651 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7652 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7653 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7654 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7656 (__isnanl): New compat_symbol.
7658 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7659 Jakub Jelinek <jakub@redhat.com>
7661 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7662 (new_heap): Initialize mprotect_size.
7663 (grow_heap): When growing, only mprotect from mprotect_size till
7664 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7665 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7667 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
7668 Peter Bergner <bergner@us.ibm.com>
7670 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7671 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7672 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7673 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7674 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7675 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7676 Call __fe_mask_env() if all FP exceptions disabled.
7677 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7678 from old FPSCR to new fenv to propagate DFP rounding modes.
7679 Call __fe_mask_env() if FP exceptions previously enabled.
7680 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7681 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7682 transitioning from all exceptions disabled to any exception enabled
7684 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7685 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7686 when transitioning from all exceptions disabled to any exception
7687 enabled or visa versa.
7688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7695 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7698 * posix/unistd.h: Remove __THROW from fdatasync.
7700 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7703 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7705 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7707 * stdio-common/vfprintf.c (process_string_arg): Optimize
7708 ridiculous precision in wide char code printing multi-byte string.
7709 Reported by Jim Meyering <jim@meyering.net>.
7712 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7713 boundaries to work around systems with overlapping binary loading.
7714 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7716 2007-05-04 Ulrich Drepper <drepper@redhat.com>
7718 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7719 __mbsnrtowcs after last change.
7721 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7722 (get_ident): Likewise.
7724 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7726 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7727 with setting the sticky bit.
7728 * math/test-misc.c (main): Add more truncation tests.
7730 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
7732 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7733 double in the function declaration.
7734 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7735 double in the function declaration.
7736 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7737 float in the function declaration.
7738 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7739 float in the function declaration.
7741 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7742 denormal operands. Do not generate FP_EX_DENORM exception.
7743 (FP_UNPACK_RAW_EP): Ditto.
7744 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7745 undefined _FP_UNPACK_RAW_E.
7746 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7747 undefined _FP_UNPACK_RAW_EP.
7748 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7749 undefined _FP_PACK_RAW_E.
7750 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7751 undefined _FP_PACK_RAW_EP.
7753 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7755 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7758 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
7759 Jakub Jelinek <jakub@redhat.com>
7761 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7762 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7764 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7766 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7768 * math/test-misc.c (main): Add tests for rounding long double
7769 values close to smallest double denormalized value to double.
7771 2007-04-30 Joseph Myers <joseph@codesourcery.com>
7773 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7774 condition for truncating to 0. Set sticky bit for such
7777 2007-05-02 Jakub Jelinek <jakub@redhat.com>
7779 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7780 fixed length array for ignore.
7782 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7785 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7786 stack for large precisions.
7787 * stdio-common/test-vfprintf.c (main): Add test for large
7790 2007-04-30 Jakub Jelinek <jakub@redhat.com>
7792 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7794 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7797 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7798 account in the size check.
7799 * resolv/tst-inet_ntop.c: New test.
7800 * resolv/Makefile (tests): Add tst-inet_ntop.
7802 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7803 Jakub Jelinek <jakub@redhat.com>
7806 * malloc/malloc.c: Keep separate list for first blocks on the bin
7807 lists with a given size. This helps skipping over list elements
7808 we know won't fit in two places.
7809 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7811 2007-04-28 Ulrich Drepper <drepper@redhat.com>
7814 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7815 label to Teredo tunnel addresses 2001://32.
7817 2007-04-27 Ulrich Drepper <drepper@redhat.com>
7819 * locale/programs/ld-collate.c (collate_read): Allow order_start
7822 * locale/programs/ld-collate.c (collate_read): Fix printing of
7826 * locale/C-translit.h.in: Add entry for U2044.
7829 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7830 hexa-decimal floats without exponent.
7831 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7833 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7835 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7836 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7837 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7838 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7840 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7843 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7845 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7846 of 0 after the out_fail label.
7848 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7851 * iconv/gconv_charset.h (strip): Allow ':'.
7852 * iconv/iconv_open.c (iconv_open): Adjust comment.
7854 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7856 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7859 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7862 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7863 alignment of buffer and tmp_buffer.
7864 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7865 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7866 alignment of buffer.
7867 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7868 bigger than INT_MAX.
7869 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7870 h_errnop arguments. Fail if buflen is too small.
7871 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7873 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7876 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7877 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7879 2007-04-22 Roland McGrath <roland@redhat.com>
7881 * elf/elf.h (NT_PRXFPREG): New macro.
7883 2007-04-19 Andreas Jaeger <aj@suse.de>
7886 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7887 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7890 2007-04-19 Ulrich Drepper <drepper@redhat.com>
7892 * include/sys/mman.h: Mark madvise hidden.
7893 * misc/madvise.c: Add libc_hidden_def.
7895 2007-04-06 Jakub Jelinek <jakub@redhat.com>
7897 * nis/nis_domain_of.c (__nis_domain_of): New function.
7898 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7899 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7900 * nis/nis_call.c (rec_dirsearch): Likewise.
7901 (first_shoot): Likewise. Remove search_parent_first argument.
7902 (struct nis_server_cache): Rename search_parent_first field
7904 (nis_server_cache_search, nis_server_cache_add): Rename
7905 search_parent_first argument to search_parent.
7906 (__nisfind_server): Likewise. If search_parent, call
7909 2007-04-18 Ulrich Drepper <drepper@redhat.com>
7911 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7913 2007-04-17 Ulrich Drepper <drepper@redhat.com>
7916 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7918 2007-04-16 Ulrich Drepper <drepper@redhat.com>
7921 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7923 2007-04-15 Jakub Jelinek <jakub@redhat.com>
7925 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7926 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7927 current number of locales in SUPPORTED.
7928 (create_archive): Initialize serial.
7929 (enlarge_archive): Preserve aliases rather than duplicating
7932 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7934 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7935 after _IO_un_link, not before it.
7937 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7938 special case handling when wcp == wstartp + 1. Fix a comment typo.
7939 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7941 2007-03-30 Jakub Jelinek <jakub@redhat.com>
7943 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7944 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7945 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7947 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7948 _IO_file_xsgetn_maybe_mmap): Likewise.
7949 * libio/oldfileops.c (old_do_write): Likewise.
7950 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7951 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7952 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7953 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7954 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7955 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7956 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7957 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7958 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7959 _IO_file_underflow, _IO_file_underflow_mmap,
7960 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7961 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7962 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7963 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7964 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7965 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7966 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7967 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7968 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7969 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7970 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7971 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7972 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7973 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7974 _IO_adjust_column_internal, _IO_default_uflow_internal,
7975 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7976 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7977 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7978 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7979 _IO_file_close_it_internal, _IO_file_underflow_internal,
7980 _IO_file_overflow_internal, _IO_file_attach_internal,
7981 _IO_file_fopen_internal, _IO_file_sync_internal,
7982 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7983 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7984 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7985 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7986 _IO_seekpos_unlocked): Likewise.
7987 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7988 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7990 2007-04-16 Jakub Jelinek <jakub@redhat.com>
7992 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7993 argument in xmalloc size computation.
7995 2007-04-01 Jakub Jelinek <jakub@redhat.com>
7997 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7998 math_opt_barrier and math_force_eval macros.
8000 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8003 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8004 * sysdeps/i386/fpu/math_private.h: New file.
8005 * sysdeps/x86_64/fpu/math_private.h: New file.
8006 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8007 math_force_eval macros. Use "+m" constraint on asm rather than
8009 * math/s_nextafter.c (__nextafter): Likewise.
8010 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8012 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8013 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8014 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8015 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8016 math_opt_barrier and math_force_eval macros.
8017 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8018 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8019 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8020 (__nexttoward): Use math_opt_barrier and
8021 math_force_eval macros. Use "+m" constraint on asm rather than
8022 "=m" and "m". Only use asm to force double result if
8023 FLT_EVAL_METHOD is 2.
8024 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8025 (__nexttowardf): Use math_opt_barrier and
8026 math_force_eval macros. Use "+m" constraint on asm rather than
8027 "=m" and "m". Only use asm to force double result if
8028 FLT_EVAL_METHOD is not 0.
8029 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8030 (__nexttowardf): Use math_opt_barrier and
8031 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8032 x to float using asm.
8033 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8034 (__nldbl_nexttowardf): Use math_opt_barrier and
8035 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8036 x to float using asm.
8037 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8038 (__nexttowardf): Use math_opt_barrier and math_force_eval
8039 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8040 * math/bug-nextafter.c (zero, inf): New variables.
8041 (main): Add new tests.
8042 * math/bug-nexttoward.c (zero, inf): New variables.
8043 (main): Add new tests.
8045 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8048 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8049 exceptions both in SW and MXCSR.
8050 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8051 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8052 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8053 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8054 in MXCSR if SSE is available.
8055 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8057 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8059 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8060 Return 0 rather than 1.
8061 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8062 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8063 * math/test-fenv.c (feholdexcept_tests): New function.
8066 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8069 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8072 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8075 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8076 Reported by David Anderson <davea42@earthlink.net>.
8078 2007-04-07 Ulrich Drepper <drepper@redhat.com>
8080 * posix/sys/wait.h: Remove unnecessary forward declaration.
8082 2007-04-05 Jakub Jelinek <jakub@redhat.com>
8084 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8085 with obj->do_servers after first_shoot.
8087 2007-04-03 Ulrich Drepper <drepper@redhat.com>
8089 * posix/Makefile (routines): Add sched_cpucount.
8090 (tests): Add tst-cpucount.
8091 * posix/sched_cpucount.c: New file.
8092 * posix/tst-cpucount.c: New file.
8093 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8094 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8095 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8096 * posix/sched.h: Define CPU_COUNT.
8098 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8100 * posix/fnmatch.c (STRUCT): Define.
8101 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8102 * posix/fnmatch_loop.c (struct STRUCT): New type.
8103 (FCT): Add ends argument. If ends != NULL and normal * is
8104 seen in the pattern, store current pattern and string pointers
8105 and return. Adjust recursive calls.
8106 (EXT): Adjust FCT callers.
8107 (STRUCT): Undef at the end of the file.
8108 * posix/Makefile (tests): Add tst-fnmatch2.
8109 * posix/tst-fnmatch2.c: New test.
8111 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8113 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8116 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8117 Change last argument to unsigned int.
8119 2007-03-23 Jakub Jelinek <jakub@redhat.com>
8121 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8123 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8125 * config.h.in (HAVE_LIBCAP): Add.
8126 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8128 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8129 free_caps. Cast away const from 4th cap_set_flag argument.
8131 2007-03-26 Ulrich Drepper <drepper@redhat.com>
8133 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8135 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8136 Add sync_file_range.
8137 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8139 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8141 * sysdeps/powerpc/bits/atomic.h
8142 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8143 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8144 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8145 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8146 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8147 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8148 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8149 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8150 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8151 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8152 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8153 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8154 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8155 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8156 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8157 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8158 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8159 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8160 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8161 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8163 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8165 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8166 (__cache_line_size): Define the variable here. Add
8167 attribute_hidden, remove weak_extern.
8168 (__libc_start_main): Set __cache_line_size
8170 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8171 (__cache_line_size): Define the variable here. Add
8172 attribute_hidden, remove weak_extern.
8173 (DL_PLATFORM_AUXV): Set __cache_line_size
8175 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8176 weak_extern, add attribute_hidden.
8177 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8179 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8181 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8183 2007-03-26 Jakub Jelinek <jakub@redhat.com>
8186 * timezone/africa: Update from tzdata2007d.
8187 * timezone/asia: Likewise.
8188 * timezone/australasia: Likewise.
8189 * timezone/backward: Likewise.
8190 * timezone/europe: Likewise.
8191 * timezone/iso3166.tab: Likewise.
8192 * timezone/leapseconds: Likewise.
8193 * timezone/northamerica: Likewise.
8194 * timezone/southamerica: Likewise.
8195 * timezone/zone.tab: Likewise.
8197 * timezone/private.h: Update from tzcode2007d.
8198 * timezone/zdump.c: Likewise.
8199 * timezone/zic.c: Likewise.
8201 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8203 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8204 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8206 (nis_server_cache_search, nis_server_cache_add): New functions.
8207 (__nisfind_server): Use them. Add dbp and flags argument, if
8208 call __nisbind_create.
8209 (__nisbind_create): Add server_used and current_ep arguments,
8210 only call __nis_findfastest if server_used is ~0.
8211 (__do_niscall2, __prepare_niscall): Adjust callers.
8212 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8213 ckey_cache_euid, ckey_cache_lock): New variables.
8214 (get_ckey): New function.
8215 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8216 __pmap_getnisport. Save __pmap_getnisport result in
8217 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8219 * nis/nis_lookup.c (nis_lookup): Likewise.
8220 * nis/nis_table.c (nis_list): Likewise.
8221 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8224 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8225 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8226 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8227 _nss_nisplus_getservbyport_r): Likewise.
8228 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8229 _nss_nisplus_getnetbyaddr_r): Likewise.
8230 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8231 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8232 _nss_nisplus_getntohost_r): Likewise.
8233 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8234 _nss_nisplus_getrpcbynumber_r): Likewise.
8236 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8238 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8239 * configure: Rebuilt.
8241 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8243 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8245 2006-06-07 Joseph Myers <joseph@codesourcery.com>
8248 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8251 2007-03-18 Jakub Jelinek <jakub@redhat.com>
8253 * nscd/gai.c: Include alloca.h.
8254 (__libc_use_alloca): Define.
8256 2007-03-16 Jakub Jelinek <jakub@redhat.com>
8258 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8260 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8261 (DL_DST_REQUIRED): Adjust user.
8263 * include/dlfcn.h (struct link_map): New forward decl.
8265 * inet/getnameinfo.c: Include stddef.h.
8266 (getnameinfo): Use offsetof.
8268 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8270 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8272 * string/strerror_l.c: Include stdlib.h.
8274 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8275 * config.make.in (gnu89-inline-CFLAGS): New variable.
8276 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8278 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8279 * argp/argp.h: Use it.
8280 * bits/mathinline.h: Likewise.
8281 * bits/sigset.h: Likewise.
8282 * bits/string.h: Likewise.
8283 * ctype/ctype.h: Likewise.
8284 * hurd/hurd.h: Likewise.
8285 * hurd/hurd/fd.h: Likewise.
8286 * hurd/hurd/port.h: Likewise.
8287 * hurd/hurd/signal.h: Likewise.
8288 * hurd/hurd/threadvar.h: Likewise.
8289 * hurd/hurd/userlink.h: Likewise.
8290 * io/sys/stat.h: Likewise.
8291 * libio/bits/stdio.h: Likewise.
8292 * libio/bits/stdio2.h: Likewise.
8293 * mach/lock-intern.h: Likewise.
8294 * mach/mach/mig_support.h: Likewise.
8295 * math/bits/cmathcalls.h: Likewise.
8296 * posix/bits/unistd.h: Likewise.
8297 * socket/bits/socket2.h: Likewise.
8298 * stdlib/bits/stdlib.h: Likewise.
8299 * stdlib/stdlib.h: Likewise.
8300 * string/argz.h: Likewise.
8301 * string/bits/string2.h: Likewise.
8302 * string/bits/string3.h: Likewise.
8303 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8304 * sysdeps/generic/inttypes.h: Likewise.
8305 * sysdeps/generic/machine-lock.h: Likewise.
8306 * sysdeps/generic/machine-sp.h: Likewise.
8307 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8308 * sysdeps/i386/i486/bits/string.h: Likewise.
8309 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8310 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8311 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8312 * sysdeps/mach/i386/machine-lock.h: Likewise.
8313 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8314 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8315 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8316 * sysdeps/s390/bits/string.h: Likewise.
8317 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8318 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8319 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8320 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8321 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8322 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8323 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8324 * wcsmbs/bits/wchar2.h: Likewise.
8325 * wcsmbs/wchar.h: Likewise.
8326 * stdlib/gmp.h: Likewise. Include <features.h> to get
8327 __extern_inline definition.
8329 2007-03-15 Jakub Jelinek <jakub@redhat.com>
8331 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8335 * math/libm-test.inc (log_test): Test -Inf and NaN.
8336 (log10_test, log1p_test, log2_test): Test -Inf.
8337 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8338 FE_INVALID when argument is qNaN.
8339 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8340 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8341 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8342 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8343 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8344 testb $4, %ah and jump if non-zero.
8345 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8346 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8349 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8350 ancestors with the same depths.
8351 Patch by Niels Moeller <nisse@lysator.liu.se>.
8352 (filter_doc): Don't crash if argp is NULL.
8353 * argp/Makefile (tests): Add tst-argp2.
8354 * argp/tst-argp2.c: New test.
8357 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8359 (updwtmp_file): Likewise.
8362 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8363 (inet6_opt_append): Don't check extlen is big enough if extbuf
8365 (inet6_opt_finish): Likewise.
8366 * inet/Makefile (tests): Add test-inet6_opt.
8367 * inet/test-inet6_opt.c: New test.
8369 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8370 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8371 NLMSG_ERR. Instead use a page sized buffer.
8372 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8375 2007-03-14 Richard Henderson <rth@redhat.com>
8377 * sysdeps/alpha/fpu/s_llround.c: New file.
8378 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8379 * sysdeps/alpha/fpu/s_lround.c: New file.
8380 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8381 * sysdeps/alpha/fpu/s_round.c: New file.
8382 * sysdeps/alpha/fpu/s_roundf.c: New file.
8383 * sysdeps/alpha/fpu/s_trunc.c: New file.
8384 * sysdeps/alpha/fpu/s_truncf.c: New file.
8386 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8387 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8388 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8389 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8390 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8391 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8393 * sysdeps/alpha/fpu/s_fmax.S: New file.
8394 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8395 * sysdeps/alpha/fpu/s_fmin.S: New file.
8396 * sysdeps/alpha/fpu/s_fminf.S: New file.
8397 * sysdeps/alpha/fpu/s_isnan.c: New file.
8398 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8399 * sysdeps/alpha/fpu/s_llrint.c: New file.
8400 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8401 * sysdeps/alpha/fpu/s_lrint.c: New file.
8402 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8403 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8404 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8406 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8407 (__fdimf, fdimf, __fdim, fdim): Remove.
8408 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8409 (__isnanf, __isnan, __isnanl): New.
8411 2007-03-13 Richard Henderson <rth@redhat.com>
8413 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8415 2007-03-13 Richard Henderson <rth@redhat.com>
8417 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8418 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8419 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8420 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8421 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8422 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8424 2007-03-13 Richard Henderson <rth@redhat.com>
8426 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8427 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8428 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8429 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8430 Move to dl-auxv.h; initialize instead of extern weak.
8431 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8433 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8434 Extern instead of initialized.
8436 2007-03-13 Richard Henderson <rth@redhat.com>
8438 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8439 __sigsuspend_nocancel.
8441 2007-03-06 Ulrich Drepper <drepper@redhat.com>
8443 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8444 172.16/12 address range.
8446 2007-03-02 Jakub Jelinek <jakub@redhat.com>
8448 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8449 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8452 2007-03-01 Jakub Jelinek <jakub@redhat.com>
8455 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8457 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8459 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8460 for x qNaN and y either +-inf or non-integer value.
8461 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8462 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8463 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8465 2007-02-10 Mike Frysinger <vapier@gentoo.org>
8467 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8468 from sysdep_headers.
8470 2007-02-28 Jakub Jelinek <jakub@redhat.com>
8472 * time/tzfile.c (find_transition): Instead of a linear search try to
8473 guess the transition index, use a linear search if the result is at
8474 most 10 transitions away from the guess or binary search otherwise.
8476 2007-02-27 Jakub Jelinek <jakub@redhat.com>
8478 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8479 memory reallocation.
8481 2007-02-21 Ulrich Drepper <drepper@redhat.com>
8483 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8485 Optimize use of TOLOWER.
8488 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8489 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8490 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8493 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8494 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8497 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8498 (open_dir_stream): Likewise.
8499 * io/Makefile (tests): Add bug-ftw5.
8500 * io/bug-ftw5.c: New file.
8502 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8503 * nscd/servicescache.c (cache_addserv): Likewise.
8505 * nscd/grpcache.c (cache_addgr): In case a record changed on
8506 refresh, adjust key_copy.
8509 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8510 refresh, adjust key_copy.
8513 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8515 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8517 2007-02-19 Ulrich Drepper <drepper@redhat.com>
8519 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8522 * stdio-common/vfscanf.c: Small cleanups throughout.
8524 2007-02-18 Ulrich Drepper <drepper@redhat.com>
8527 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8528 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8529 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8530 Patch by Jared Casper <jaredcasper@gmail.com>.
8532 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8533 * sysdeps/unix/opendir.c: Likewise.
8534 * sysdeps/unix/readdir.c: Likewise.
8537 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8539 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8541 * stdio-common/vfscanf.c: Fix problems in width accounting.
8542 * stdio-common/tst-sscanf.c (double_tests): New tests.
8543 (main): Hook them up.
8545 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8546 More simplifications of floating-point reader.
8548 * stdio-common/Makefile (tests): Add tst-swscanf.
8549 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8551 * stdio-common/tst-swscanf.c: New file.
8553 2007-02-17 Ulrich Drepper <drepper@redhat.com>
8556 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8557 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8558 Remove using for __jmp_buf_tag.
8559 * locale/locale.h (struct lconv): Also define in std namespace.
8560 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8563 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8564 using __libc_enable_secure.
8567 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8570 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8571 of names for ellipsises.
8574 * malloc/memusage.sh: Cleanups.
8575 * debug/xtrace.sh: Quoting and trap changes.
8577 2007-02-16 Ulrich Drepper <drepper@redhat.com>
8579 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8581 * locale/iso-3166.def: Update entry for Serbia.
8582 * locale/iso-4217.def: Define RSD, remove CSD.
8584 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8585 and 64-bit operations.
8588 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8591 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8594 2007-02-15 Ulrich Drepper <drepper@redhat.com>
8597 * assert/assert.h (assert): Simplify.
8598 (assert_perror): Likewise.
8599 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8601 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8604 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8605 change: don't pass NULL in place of an integer.
8607 2007-02-02 Bruno Haible <bruno@clisp.org>
8610 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8611 Add mapping for U+327E.
8612 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8613 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8614 mapping of 0xD9 0xE8.
8615 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8617 Reported by Jungshik Shin <jungshik@google.com>.
8620 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8621 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8622 Reported by Jungshik Shin <jungshik@google.com>.
8624 2007-02-14 Ulrich Drepper <drepper@redhat.com>
8626 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8630 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8631 byte variants. Patch mostly be tom@tommay.net.
8633 2007-02-14 Jakub Jelinek <jakub@redhat.com>
8636 * posix/glob.c (attribute_hidden): Define if not defined.
8637 (glob): Unescape dirname, filename or username when needed and not
8638 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8639 is NULL. Handle unescaped [ in pattern without closing ].
8640 Don't pass GLOB_CHECK down to recursive glob for directories.
8641 (__glob_pattern_type): New function.
8642 (__glob_pattern_p): Implement using __glob_pattern_type.
8643 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8644 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8645 Remove unreachable code.
8646 * posix/globtest.sh: Add a couple of new tests.
8648 2007-02-13 Ulrich Drepper <drepper@redhat.com>
8650 * po/ru.po: Update from translation team.
8652 2007-02-12 Jakub Jelinek <jakub@redhat.com>
8654 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8655 to the list of i486+ CPUs.
8656 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8658 2007-02-12 Ulrich Drepper <drepper@redhat.com>
8660 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8661 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8664 2007-02-09 Ulrich Drepper <drepper@redhat.com>
8666 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8668 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8669 * resolv/res_mkquery.c: Define __res_nopt.
8670 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8671 try adding EDNS0 record.
8672 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8673 EDNS0 record was send make sure we don't try it again.
8674 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8675 * include/resolv.h: Declare __res_nopt.
8677 2007-02-08 Jakub Jelinek <jakub@redhat.com>
8680 * time/strptime_l.c (__strptime_internal): Set have_mon for
8681 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8682 have been computed from tm_yday and tm_year. Don't crash
8683 in day_of_the_week or day_of_the_year if not have_mon
8684 and tm_mon contains bogus value.
8685 * time/Makefile (tests): Add tst-strptime3.
8686 * time/tst-strptime3.c: New test.
8688 2007-02-05 Jakub Jelinek <jakub@redhat.com>
8691 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8692 bit for RE_HAT_LISTS_NOT_NEWLINE.
8693 (build_charclass_op): Remove bogus comment.
8694 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8695 * posix/bug-regex27.c: New test.
8696 * posix/bug-regex28.c: New test.
8698 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8700 * po/sv.po: Update from translation team.
8702 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8704 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8706 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8708 * include/locale.h (__uselocale): Add libc_hidden_proto.
8709 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8711 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8714 2007-02-01 Ulrich Drepper <drepper@redhat.com>
8716 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8718 (PTR_DEMANGLE): Real definition now that it's not the same as
8720 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8722 * string/strerror_l.c: New file.
8723 * string/Makefile (routines): Add strerror_l.
8724 * string/string.h: Declare strerror_l.
8725 * string/Versions: Export strerror_l for GLIBC_2.6.
8727 2007-01-31 Ulrich Drepper <drepper@redhat.com>
8729 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8730 as parameter. Construct request record. Try sending request
8731 before the first poll use, it usually succeeds. Adjust all
8733 * nscd/nscd-client.h: Define MAXKEYLEN.
8734 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8736 2007-01-31 Jakub Jelinek <jakub@redhat.com>
8738 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8740 * nscd/nscd_helper.c: Include string.h.
8741 (__nscd_cache_search): Remove const qualifier from return value.
8742 On strict alignment architectures check hash entry and data head
8744 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8745 mmapped data during GC cycle contains garbage. If
8746 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8747 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8749 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8750 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8751 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8752 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8753 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8755 2007-01-30 Ulrich Drepper <drepper@redhat.com>
8757 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8759 2007-01-26 Ulrich Drepper <drepper@redhat.com>
8761 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8762 names not numbers in cfi_*.
8764 2007-01-26 Andreas Jaeger <aj@suse.de>
8766 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8767 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8768 Correct values of PER_HPUX and PER_OSF4.
8770 2007-01-24 Ulrich Drepper <drepper@redhat.com>
8772 * elf/dl-minimal.c: Undefine _itoa first.
8773 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8774 * malloc/mtrace.c: Revert last change.
8775 * posix/wordexp.c: Likewise.
8777 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8779 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8780 and __geode__ to the list of i486+ CPUs.
8781 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8783 2007-01-23 Ulrich Drepper <drepper@redhat.com>
8785 * stdio-common/_itoa.c: Include <limits.h>.
8786 * stdio-common/_itowa.c: Likewise.
8788 2007-01-22 Ulrich Drepper <drepper@redhat.com>
8790 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8792 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8794 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8796 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8800 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8801 * stdio-common/Makefile (tests): Add bug17.
8802 * stdio-common/bug17.c: New file.
8804 2007-01-19 Ulrich Drepper <drepper@redhat.com>
8806 * iconvdata/brf.c: New file.
8807 * iconvdata/testdata/BRF: New file.
8808 * iconvdata/testdata/BRF..UTF8: New file.
8809 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8810 * iconvdata/Makefile: Add rules to build BRF.
8811 * iconvdata/TESTS: Add BRF entry.
8812 * iconvdata/gconv-modules: Likewise.
8813 * iconvdata/tst-tables.sh: Likewise.
8815 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8817 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8818 type `long long int', not `long int'.
8821 2007-01-18 Ulrich Drepper <drepper@redhat.com>
8823 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8824 of values on 64-bit platforms which are too large.
8826 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8827 Joe Kerian <jkerian@us.us.ibm.com>
8830 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8831 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8832 (__copysignl): Use signbit() for comparison.
8833 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8834 SET_LDOUBLE_WORDS64.
8837 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8838 (__ceill): Remove calls to fegetround(), fesetround().
8839 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8840 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8841 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8843 2007-01-17 Jakub Jelinek <jakub@redhat.com>
8845 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8847 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8849 2007-01-17 Ulrich Drepper <drepper@redhat.com>
8851 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8853 * csu/libc-start.c: Likewise.
8855 2007-01-16 Ulrich Drepper <drepper@redhat.com>
8857 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8860 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8862 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8864 (handle_request): Remove unnecessary tests.
8866 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8868 2007-01-15 Jakub Jelinek <jakub@redhat.com>
8870 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8871 workbits in semi-raw fraction.
8873 * math/test-misc.c: Add new tests.
8875 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8877 * math/basic-test.c: Include test-skeleton.c.
8878 (TEST_TRUNC): Define.
8879 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8880 (main): Rename to ...
8881 (do_test): ...this. Run new tests.
8882 (TEST_FUNCTION): Define.
8884 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8885 Joe Kerian <jkerian@us.us.ibm.com>
8888 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8889 handling for high words.
8890 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8891 and overflow for infinity.
8893 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8895 * nscd/connections.c (handle_request): Add a __builtin_expect.
8897 * nscd/connections.c (serv2db): Change type into structure which
8898 also says whether this is a request for data. Renamed to
8899 servinfo. All users changed.
8900 (handle_request): Much simpler test whether we should search the cache.
8902 * nscd/connections.c (handle_request): Fix thinko in selinux test
8905 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8906 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8907 it before getting dl_load_lock and then relock.
8908 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8909 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8910 case we unlocked the scope.
8911 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8912 _dl_lookup_symbol_x in case we locked the scope.
8913 (_dl_profile_fixup): Likewise.
8914 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8915 set DL_LOOKUP_SCOPE_LOCK.
8917 2007-01-13 Ulrich Drepper <drepper@redhat.com>
8919 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8920 CFLAGS-getsrvbynpt_r.c.
8921 * nscd/getsrvbynm_r.c: New file.
8922 * nscd/getsrvbypt_r.c: New file.
8923 * nscd/nscd_getserv_r.c: New file.
8924 * nscd/servicescache.c: New file.
8925 * nscd/Makefile (routines): Add nscd_getserv_r.
8926 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8927 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8928 CFLAGS-getsrvbypt_r.c.
8929 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8930 table. Add entries for services database.
8931 * nscd/connections.c (serv2str): Mark as const. Add entries for
8933 (dbs): Add .reset_res and servdb initialization.
8934 (serv2db): Add entries for services database.
8935 (verify_persistent_db): Accept dbnr == servdb.
8936 (invalidate_cache): Rewrite database name recognition to use a table.
8937 Call res_init() if .reset_res is set for database.
8938 (handle_request): Add code to handle services database.
8939 * nscd/gai.c: Don't define __getservbyname_r.
8940 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8941 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8942 (serv_response_header): Define.
8943 (struct datahead): Add serv_response_header member.
8944 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8946 * nscd/nscd.conf: Add entries for services database.
8947 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8948 Declare serv_iov_disabled.
8949 Declare addservbyname, readdservbyname, addservbyport, and
8951 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8952 (find_db): Fix error message.
8953 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8954 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8955 * nscd/selinux.c (perms): Add entries for services database.
8956 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8957 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8959 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8960 * nscd/hstcache.c: Likewise.
8961 * nscd/pwdcache.c: Likewise.
8963 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8964 computation of keylen.
8966 * include/string.h: Only redefine strndupa if this is really for
8969 2007-01-12 Ulrich Drepper <drepper@redhat.com>
8971 * nscd/nscd_gethst_r.c: Minor cleanups.
8973 * nscd/connections.c (handle_request): Check selinux permissions
8974 for all non-admin commands.
8976 * sysdeps/i386/i486/bits/atomic.h: Define
8977 atomic_compare_and_exchange_val_acq,
8978 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8979 using __sync_* built-ins for gcc >= 4.1.
8980 * sysdeps/x86_64/bits/atomic.h: Likewise.
8983 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8986 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
8988 * stdlib/tst-makecontext.c: Include errno.h. Change main()
8989 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
8990 (do_test): Check errno and exit(0) if ENOSYS.
8992 2007-01-11 Jakub Jelinek <jakub@redhat.com>
8994 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8995 thousands separators.
8996 * stdlib/Makefile: Add rules to build and run tst-strtod4.
8997 * stdlib/tst-strtod4.c: New test.
9000 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9001 hexadecimal digit should accept just the initial 0.
9002 * stdlib/tst-strtod2.c (tests): New variable.
9003 (do_test): Run several tests rather than just one.
9005 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9007 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9008 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9010 2007-01-10 Ulrich Drepper <drepper@redhat.com>
9012 * io/fts.c: Make sure fts_cur is always valid after return from
9014 Patch by Miloslav Trmac <mitr@redhat.com>.
9016 2006-10-27 Richard Sandiford <richard@codesourcery.com>
9018 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9019 (R_MIPS_NUM): Bump by 1.
9021 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9023 * posix/execvp.c: Include alloca.h.
9024 (allocate_scripts_argv): Renamed to...
9025 (scripts_argv): ... this. Don't allocate buffer here nor count
9027 (execvp): Use alloca if possible.
9028 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9029 * posix/tst-vfork3.c: New test.
9031 2007-01-03 Ulrich Drepper <drepper@redhat.com>
9033 * string/Makefile (tst-strxfrm2-ENV): Define.
9034 * stdlib/Makefile (tst-strtod3-ENV): Define.
9036 2007-01-02 Ulrich Drepper <drepper@redhat.com>
9038 * posix/getconf.c: Update copyright year.
9039 * nss/getent.c: Likewise.
9040 * iconv/iconvconfig.c: Likewise.
9041 * iconv/iconv_prog.c: Likewise.
9042 * elf/ldconfig.c: Likewise.
9043 * catgets/gencat.c: Likewise.
9044 * csu/version.c: Likewise.
9045 * elf/ldd.bash.in: Likewise.
9046 * elf/sprof.c (print_version): Likewise.
9047 * locale/programs/locale.c: Likewise.
9048 * locale/programs/localedef.c: Likewise.
9049 * nscd/nscd.c (print_version): Likewise.
9050 * debug/xtrace.sh: Likewise.
9051 * malloc/memusage.sh: Likewise.
9052 * malloc/mtrace.pl: Likewise.
9053 * debug/catchsegv.sh: Likewise.
9055 2006-12-24 Ulrich Drepper <drepper@redhat.com>
9057 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9060 2006-12-23 Ulrich Drepper <drepper@redhat.com>
9062 * posix/wordexp.c: Remove some unnecessary tests.
9064 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9066 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9067 blacklist the group till after we look it up.
9069 2006-12-21 Ulrich Drepper <drepper@redhat.com>
9071 * include/atomic.h (atomic_forced_read): New macro.
9073 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9075 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9077 2006-12-19 Jakub Jelinek <jakub@redhat.com>
9079 * nss/getXXbyYY_r.c: Include atomic.h.
9080 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9081 add atomic_write_barrier () in between.
9083 * stdlib/Makefile (tests): Add tst-makecontext.
9084 * stdlib/tst-makecontext.c: New test.
9086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9087 (__makecontext): Don't realign uc_mcontext.uc_regs.
9089 2006-11-28 Jakub Jelinek <jakub@redhat.com>
9091 * elf/dl-support.c: Include dl-procinfo.h.
9092 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9093 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9094 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9096 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9097 hardcoded constants.
9098 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9099 PPC_PLATFORM_* macros for array designators.
9101 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
9103 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9104 names to the beginning.
9105 (_dl_powerpc_platforms): Add "power6x".
9106 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9107 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9108 (_DL_PLATFORMS_COUNT): Increase.
9109 (_dl_string_platform): Handle power6x case.
9110 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9111 PPC_FEATURE_POWER6_EXT): Define.
9112 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9114 2006-12-18 Jakub Jelinek <jakub@redhat.com>
9117 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9118 [-2^31 .. 2^31) range.
9119 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9121 * stdlib/tst-rand48-2.c: New test.
9122 * stdlib/Makefile (tests): Add tst-rand48-2.
9124 2006-12-14 Jakub Jelinek <jakub@redhat.com>
9126 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9128 2006-12-14 Ulrich Drepper <drepper@redhat.com>
9130 * misc/tst-pselect.c (do_test): Make sure the helper process is
9131 terminating when the test is aborted.
9133 2006-12-13 Ulrich Drepper <drepper@redhat.com>
9135 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9136 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9137 Handle relatime mount option.
9140 * libio/Makefile (tests): Add tst-setvbuf1.
9141 * libio/tst-setvbuf1.c: New file.
9143 2006-12-08 Jakub Jelinek <jakub@redhat.com>
9146 * libio/genops.c (__uflow): Fix a typo.
9147 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9148 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9149 the narrow buffer size.
9151 2006-11-24 Jakub Jelinek <jakub@redhat.com>
9154 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9155 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9156 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9158 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9159 _IO_wstr_finish): Likewise.
9160 * libio/wmemstream.c (open_wmemstream): Likewise.
9161 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9162 even for wide streams.
9164 2006-12-13 Jakub Jelinek <jakub@redhat.com>
9166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9169 2006-12-11 Ulrich Drepper <drepper@redhat.com>
9171 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9172 separators also if no non-zero digits found.
9173 * stdlib/Makefile (tests): Add tst-strtod3.
9175 2006-12-09 Ulrich Drepper <drepper@redhat.com>
9178 * include/features.h: Fix comment about default value for
9182 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9183 empty parsed strings.
9184 * stdlib/Makefile (tests): Add tst-strtod2.
9185 * stdlib/tst-strtod2.c: New file.
9188 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9190 * stdlib/Makefile (tests): Add tst-atof2.
9191 * stdlib/tst-atof2.c: New file.
9194 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9195 correctly if removing trailing zero of hex-float.
9196 * stdlib/Makefile (tests): Add tst-atof1.
9197 * stdlib/tst-atof1.c: New file.
9199 2006-12-09 Jakub Jelinek <jakub@redhat.com>
9201 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9202 Start searching for next comma at p rather than rest.
9203 * misc/Makefile (tests): Add tst-mntent2.
9204 * misc/tst-mntent2.c: New test.
9206 * misc/getusershell.c (initshells): Check for integer overflows.
9207 Make strings buffer one bigger as fgets always succeeds when second
9208 argument is 1. Don't use calloc for shells array. Disallow
9211 2006-12-08 Ulrich Drepper <drepper@redhat.com>
9213 * malloc/memusage.c: Handle realloc with new size of zero and
9214 non-NULL pointer correctly.
9215 (me): Really write first record twice.
9216 (struct entry): Make format bi-arch safe.
9217 (dest): Write out more realloc statistics.
9218 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9220 2006-12-05 Jakub Jelinek <jakub@redhat.com>
9222 * nis/nis_subr.c (nis_getnames): Revert last change.
9224 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9226 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9227 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9228 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9229 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9231 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9232 * io/tst-ttyname_r.c: New test.
9234 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9236 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9238 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
9240 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9243 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9245 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9246 `clone' function to ensure proper unwinding stop of gdb.
9247 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9249 2006-12-01 Ulrich Drepper <drepper@redhat.com>
9251 * nscd/nscd.init: Remove obsolete and commented-out -S option
9254 2006-11-23 Jakub Jelinek <jakub@redhat.com>
9257 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9260 * manual/string.texi (strtok): Remove duplicate paragraph.
9262 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9264 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9265 libgcc not supporting `rflags' unwinding (register # >= 17).
9267 2006-11-30 Jakub Jelinek <jakub@redhat.com>
9269 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9272 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9273 Jakub Jelinek <jakub@redhat.com>
9274 Jan Kratochvil <jan.kratochvil@redhat.com>
9276 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9278 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9279 'restore_rt' even in the 'signal' directory.
9280 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9282 2006-11-27 Jakub Jelinek <jakub@redhat.com>
9285 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9286 malloc crashed. Don't allocate memory unnecessarily in each
9289 2006-10-21 Jakub Jelinek <jakub@redhat.com>
9291 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9293 2006-11-20 Ulrich Drepper <drepper@redhat.com>
9295 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9297 2006-11-18 Bruno Haible <bruno@clisp.org>
9299 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9300 __sysconf only after having tried to call getgroups32.
9302 2006-11-19 Ulrich Drepper <drepper@redhat.com>
9304 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9305 addresses for IPv4 queries if they can be mapped.
9307 2006-11-16 Jakub Jelinek <jakub@redhat.com>
9309 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9310 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9311 (signmask): Add .size directive.
9312 (othermask): Add .type directive.
9314 2006-11-14 Ulrich Drepper <drepper@redhat.com>
9316 * po/nl.po: Update from translation team.
9318 * timezone/zdump.c: Redo fix for BZ #3137.
9320 2006-11-14 Jakub Jelinek <jakub@redhat.com>
9322 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9323 to first_unused after parsing :include: file.
9325 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9327 * timezone/africa: Update from tzdata2006o.
9328 * timezone/antarctica: Likewise.
9329 * timezone/asia: Likewise.
9330 * timezone/australasia: Likewise.
9331 * timezone/backward: Likewise.
9332 * timezone/europe: Likewise.
9333 * timezone/iso3166.tab: Likewise.
9334 * timezone/northamerica: Likewise.
9335 * timezone/southamerica: Likewise.
9336 * timezone/zone.tab: Likewise.
9338 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9339 on machines with 64-bit time_t.
9341 * timezone/checktab.awk: Update from tzcode2006o.
9342 * timezone/ialloc.c: Likewise.
9343 * timezone/private.h: Likewise.
9344 * timezone/scheck.c: Likewise.
9345 * timezone/tzfile.h: Likewise.
9346 * timezone/tzselect.ksh: Likewise.
9347 * timezone/zdump.c: Likewise.
9348 * timezone/zic.c: Likewise.
9351 * elf/ldconfig.c (main): Call setlocale and textdomain.
9352 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9355 * manual/argp.texi: Fix typos.
9356 * manual/charset.texi: Likewise.
9357 * manual/errno.texi: Likewise.
9358 * manual/filesys.texi: Likewise.
9359 * manual/lang.texi: Likewise.
9360 * manual/maint.texi: Likewise.
9361 * manual/memory.texi: Likewise.
9362 * manual/message.texi: Likewise.
9363 * manual/resource.texi: Likewise.
9364 * manual/search.texi: Likewise.
9365 * manual/signal.texi: Likewise.
9366 * manual/startup.texi: Likewise.
9367 * manual/stdio.texi: Likewise.
9368 * manual/sysinfo.texi: Likewise.
9369 * manual/syslog.texi: Likewise.
9370 * manual/time.texi: Likewise.
9371 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9374 * sunrpc/clnt_raw.c: Minimal message improvements.
9375 * sunrpc/pm_getmaps.c: Likewise.
9376 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9377 * nis/nis_print_group_entry.c: Likewise.
9378 * locale/programs/repertoire.c: Likewise.
9379 * locale/programs/charmap.c: Likewise.
9380 * malloc/memusage.sh: Likewise.
9381 * elf/dl-deps.c: Likewise.
9382 * locale/programs/ld-collate.c: Likewise.
9383 * libio/vswprintf.c: Likewise.
9384 * malloc/memusagestat.c: Likewise.
9385 * sunrpc/auth_unix.c: Likewise.
9386 * sunrpc/rpc_main.c: Likewise.
9387 * nscd/cache.c: Likewise.
9388 * locale/programs/repertoire.c: Unify output messages.
9389 * locale/programs/charmap.c: Likewise.
9390 * locale/programs/ld-ctype.c: Likewise.
9391 * locale/programs/ld-monetary.c: Likewise.
9392 * locale/programs/ld-numeric.c: Likewise.
9393 * locale/programs/ld-time.c: Likewise.
9394 * elf/ldconfig.c: Likewise.
9395 * nscd/selinux.c: Likewise.
9396 * elf/cache.c: Likewise.
9397 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9400 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9404 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9406 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9407 if N is one bigger than return value.
9408 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9409 and l1 last arguments, if buf is defined, verify the return value
9410 equals to strlen (buf) and verify no byte beyond passed length
9413 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9415 * po/sv.po: Update from translation team.
9417 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9419 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9422 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9424 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9427 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9428 Use __new_sys_siglist instead of _sys_siglist_internal as
9429 second macro argument.
9430 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9433 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9436 * posix/unistd.h (sysconf): Remove const attribute.
9438 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9439 temporary or deprecated addresses.
9440 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9442 * string/Makefile (tests): Add tst-strxfrm2.
9443 * string/tst-strxfrm2.c: New file.
9445 2006-10-09 Jakub Jelinek <jakub@redhat.com>
9447 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9448 rather than r->r_brk.
9450 2006-11-08 Jakub Jelinek <jakub@redhat.com>
9452 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9453 optimization even if needed > n.
9455 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9456 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9457 return false, otherwise return true.
9458 (cache_rpath): Return decompose_rpath return value.
9460 2006-11-07 Jakub Jelinek <jakub@redhat.com>
9462 * include/libc-symbols.h (declare_symbol): Rename to...
9463 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9464 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9466 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9468 * sysdeps/gnu/siglist.c: Likewise.
9470 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9472 * sysdeps/powerpc/fpu/bits/mathinline.h
9473 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9474 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9476 2006-11-05 Ulrich Drepper <drepper@redhat.com>
9478 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9479 Update handling of cache descriptor 0x49 for new models.
9480 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9483 2006-11-02 Jakub Jelinek <jakub@redhat.com>
9485 * malloc/memusage.c (dest): Reset not_me back to false after
9486 printing statistics.
9488 2006-11-02 Ulrich Drepper <drepper@redhat.com>
9490 * configure.in: Work around ld --help change and avoid -z relro
9491 test completely if the architecture doesn't care about security.
9493 2006-11-01 Ulrich Drepper <drepper@redhat.com>
9495 * po/sv.po: Update from translation team.
9497 2006-10-31 Ulrich Drepper <drepper@redhat.com>
9499 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9500 generate compatibility version.
9502 2006-10-29 Ulrich Drepper <drepper@redhat.com>
9504 * configure.in: Relax -z relro requirement a bit.
9506 * po/sv.po: Update from translation team.
9508 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9510 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9511 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9512 * elf/dl-close.c (_dl_close_worker): Likewise.
9513 * elf/dl-open.c (_dl_open_worker): Likewise.
9514 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9516 2006-10-27 Ulrich Drepper <drepper@redhat.com>
9518 * configure.in: Require assembler support for visibility, compiler
9519 support for visibility and aliases, linker support for various -z
9521 * Makeconfig: Remove conditional code which now is unnecessary.
9522 * config.h.in: Likewise.
9523 * config.make.in: Likewise.
9524 * dlfcn/Makefile: Likewise.
9525 * elf/Makefile: Likewise.
9526 * elf/dl-load.c: Likewise.
9527 * elf/rtld.c: Likewise.
9528 * include/libc-symbols.h: Likewise.
9529 * include/stdio.h: Likewise.
9530 * io/Makefile: Likewise.
9531 * io/fstat.c: Likewise.
9532 * io/fstat64.c: Likewise.
9533 * io/fstatat.c: Likewise.
9534 * io/fstatat64.c: Likewise.
9535 * io/lstat.c: Likewise.
9536 * io/lstat64.c: Likewise.
9537 * io/mknod.c: Likewise.
9538 * io/mknodat.c: Likewise.
9539 * io/stat.c: Likewise.
9540 * io/stat64.c: Likewise.
9541 * libio/stdio.c: Likewise.
9542 * nscd/Makefile: Likewise.
9543 * stdlib/Makefile: Likewise.
9544 * stdlib/atexit.c: Likewise.
9545 * sysdeps/generic/ldsodefs.h: Likewise.
9546 * sysdeps/i386/dl-machine.h: Likewise.
9547 * sysdeps/i386/sysdep.h: Likewise.
9548 * sysdeps/i386/i686/memcmp.S: Likewise.
9549 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9550 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9551 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9553 * Makerules: USE_TLS support is now default.
9554 * tls.make.c: Likewise.
9555 * csu/Versions: Likewise.
9556 * csu/libc-start.c: Likewise.
9557 * csu/libc-tls.c: Likewise.
9558 * csu/version.c: Likewise.
9559 * dlfcn/dlinfo.c: Likewise.
9560 * elf/dl-addr.c: Likewise.
9561 * elf/dl-cache.c: Likewise.
9562 * elf/dl-close.c: Likewise.
9563 * elf/dl-iteratephdr.c: Likewise.
9564 * elf/dl-load.c: Likewise.
9565 * elf/dl-lookup.c: Likewise.
9566 * elf/dl-object.c: Likewise.
9567 * elf/dl-open.c: Likewise.
9568 * elf/dl-reloc.c: Likewise.
9569 * elf/dl-support.c: Likewise.
9570 * elf/dl-sym.c: Likewise.
9571 * elf/dl-sysdep.c: Likewise.
9572 * elf/dl-tls.c: Likewise.
9573 * elf/ldconfig.c: Likewise.
9574 * elf/rtld.c: Likewise.
9575 * elf/tst-tls-dlinfo.c: Likewise.
9576 * elf/tst-tls1.c: Likewise.
9577 * elf/tst-tls10.h: Likewise.
9578 * elf/tst-tls14.c: Likewise.
9579 * elf/tst-tls2.c: Likewise.
9580 * elf/tst-tls3.c: Likewise.
9581 * elf/tst-tls4.c: Likewise.
9582 * elf/tst-tls5.c: Likewise.
9583 * elf/tst-tls6.c: Likewise.
9584 * elf/tst-tls7.c: Likewise.
9585 * elf/tst-tls8.c: Likewise.
9586 * elf/tst-tls9.c: Likewise.
9587 * elf/tst-tlsmod1.c: Likewise.
9588 * elf/tst-tlsmod13.c: Likewise.
9589 * elf/tst-tlsmod13a.c: Likewise.
9590 * elf/tst-tlsmod14a.c: Likewise.
9591 * elf/tst-tlsmod2.c: Likewise.
9592 * elf/tst-tlsmod3.c: Likewise.
9593 * elf/tst-tlsmod4.c: Likewise.
9594 * elf/tst-tlsmod5.c: Likewise.
9595 * elf/tst-tlsmod6.c: Likewise.
9596 * include/errno.h: Likewise.
9597 * include/link.h: Likewise.
9598 * include/tls.h: Likewise.
9599 * locale/global-locale.c: Likewise.
9600 * locale/localeinfo.h: Likewise.
9601 * malloc/arena.c: Likewise.
9602 * malloc/hooks.c: Likewise.
9603 * malloc/malloc.c: Likewise.
9604 * resolv/Versions: Likewise.
9605 * sysdeps/alpha/dl-machine.h: Likewise.
9606 * sysdeps/alpha/libc-tls.c: Likewise.
9607 * sysdeps/generic/ldsodefs.h: Likewise.
9608 * sysdeps/generic/tls.h: Likewise.
9609 * sysdeps/i386/dl-machine.h: Likewise.
9610 * sysdeps/ia64/dl-machine.h: Likewise.
9611 * sysdeps/ia64/libc-tls.c: Likewise.
9612 * sysdeps/mach/hurd/fork.c: Likewise.
9613 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9614 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9615 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9616 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9617 * sysdeps/s390/libc-tls.c: Likewise.
9618 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9619 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9620 * sysdeps/sh/dl-machine.h: Likewise.
9621 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9622 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9623 * sysdeps/x86_64/dl-machine.h: Likewise.
9625 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9626 split out locking and parameter checking.
9627 (_dl_close): Call _dl_close_worker after locking and checking.
9628 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9630 * elf/Makefile: Add rules to build and run tst-thrlock.
9631 * elf/tst-thrlock.c: New file.
9634 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9638 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9639 we are sure we do not need it anymore for _dl_close. Also move
9640 the asserts inside the lock region.
9641 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9643 2006-10-27 Jakub Jelinek <jakub@redhat.com>
9645 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9647 (_dl_lookup_symbol_x): Adjust caller.
9649 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9651 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9653 * elf/dl-libc.c: Revert l_scope name changes.
9654 * elf/dl-load.c: Likewise.
9655 * elf/dl-object.c: Likewise.
9656 * elf/rtld.c: Likewise.
9657 * elf/dl-close.c (_dl_close): Likewise.
9658 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9659 always use __rtld_mrlock_{change,done}. Always free old scope list
9660 here if not l_scope_mem.
9661 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9662 change. Never free scope list here. Just __rtld_mrlock_lock before
9663 the lookup and __rtld_mrlock_unlock it after the lookup.
9664 * elf/dl-sym.c: Likewise.
9665 * include/link.h (struct r_scoperec): Remove.
9666 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9667 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9669 2006-10-25 Ulrich Drepper <drepper@redhat.com>
9671 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9673 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9675 * configure.in: Disable building profile libraries by default.
9677 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9679 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9680 as signed longs, check for x_base + pos overflow.
9681 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9682 * sunrpc/tst-xdrmem2.c: New test.
9684 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9686 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9687 _dl_lookup_symbol_x code.
9689 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9691 * elf/dl-runtime.c: Include sysdep-cancel.h.
9692 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9693 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9694 instead of catomic_* macros.
9695 * elf/dl-sym.c: Include sysdep-cancel.h.
9696 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9697 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9698 * elf/dl-close.c: Include sysdep-cancel.h.
9699 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9700 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9701 * elf/dl-open.c: Include sysdep-cancel.h.
9702 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9703 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9705 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9708 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9709 fastbin rather than end of fastbin array.
9711 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9713 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9715 * sysdeps/x86_64/bits/atomic.h
9716 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9717 (catomic_decrement): Use correct body macro.
9719 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9721 * include/atomic.h: Add a unique prefix to all local variables
9723 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9725 2006-10-16 Ulrich Drepper <drepper@redhat.com>
9728 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9731 2006-10-14 Ulrich Drepper <drepper@redhat.com>
9733 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9735 2006-10-13 Ulrich Drepper <drepper@redhat.com>
9738 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9739 determine highest fast bin to consolidate, always look into all of
9741 (do_check_malloc_state): Only require for empty bins for large
9742 sizes in main arena.
9744 * libio/stdio.h: Add more __wur attributes.
9746 * elf/dl-minimal.c (realloc): Optimize last patch.
9748 2006-10-12 Richard Sandiford <richard@codesourcery.com>
9751 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9752 and use memcpy() if it does.
9754 2006-11-12 Andreas Jaeger <aj@suse.de>
9757 * manual/search.texi (Hash Search Function): Clarify.
9758 (Array Search Function): Clarify.
9760 2006-11-12 Joseph Myers <joseph@codesourcery.com>
9763 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9765 * math/atest-exp2.c (read_mpn_hex): Likewise.
9766 * math/atest-sincos.c (main): Likewise.
9768 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9770 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9771 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9772 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9774 * Versions.def: Add GLIBC_2.6 for libc.
9776 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9778 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9780 2006-10-11 Jakub Jelinek <jakub@redhat.com>
9782 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9784 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9786 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9787 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9789 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9791 * include/atomic.c: Define catomic_* operations.
9792 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9793 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9794 * malloc/memusage.c: Likewise.
9795 * gmon/mcount.c: Likewise.
9796 * elf/dl-close.c: Likewise.
9797 * elf/dl-open.c: Likewise.
9798 * elf/dl-profile.c: Likewise.
9799 * elf/dl-sym.c: Likewise.
9800 * elf/dl-runtime.c: Likewise.
9801 * elf/dl-fptr.c: Likewise.
9802 * resolv/res_libc.c: Likewise.
9804 2006-10-10 Ulrich Drepper <drepper@redhat.com>
9806 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9807 components which lack them.
9809 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9810 at least one entry consisting of the parameter concatenated with
9813 2006-10-10 Roland McGrath <roland@frob.com>
9815 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9816 * sysdeps/mach/hurd/futimes.c: Likewise.
9817 * sysdeps/mach/hurd/lutimes.c: Likewise.
9819 2006-10-09 Ulrich Drepper <drepper@redhat.com>
9820 Jakub Jelinek <jakub@redhat.com>
9822 Implement reference counting of scope records.
9823 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9824 from the list in objects which remain. Always allocate new scope
9826 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9827 don't resize, allocate a new one.
9828 * elf/dl-runtime.c: Update reference counters before using a scope
9830 * elf/dl-sym.c: Likewise.
9831 * elf/dl-libc.c: Adjust for l_scope name change.
9832 * elf/dl-load.c: Likewise.
9833 * elf/dl-object.c: Likewise.
9834 * elf/rtld.c: Likewise.
9835 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9836 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9837 Add l_scoperec_lock.
9838 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9839 * sysdeps/generic/rtld-lowlevel.h: New file.
9841 * include/atomic.h: Rename atomic_and to atomic_and_val and
9842 atomic_or to atomic_or_val. Define new macros atomic_and and
9843 atomic_or which do not return values.
9844 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9846 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9848 * po/sv.po: Update from translation team.
9850 2006-10-07 Ulrich Drepper <drepper@redhat.com>
9852 * Versions.def: Add GLIBC_2.6 to libpthread.
9854 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9855 (versioned_symbol): Likewise.
9856 (compat_symbol): Likewise.
9858 * po/tr.po: Update from translation team.
9860 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9862 * nis/Banner: Removed. It's been integral part forever and the
9863 author info is incomplete anyway.
9864 * libio/Banner: Likewise.
9866 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9867 code, make sure the nis_freeresult call doesn't crash and that the
9868 result is reported correctly.
9870 2006-09-27 Jakub Jelinek <jakub@redhat.com>
9872 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9873 when callback is NULL.
9875 * nis/Versions (libnss_nisplus): Add
9876 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9877 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9878 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9879 _nss_create_tablename): Rename to...
9880 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9881 ... these. No longer static.
9882 (internal_setgrent): Adjust users.
9883 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9884 Don't use locking around _nss_grp_create_tablename call.
9885 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9887 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9889 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9891 2006-10-06 Andreas Jaeger <aj@suse.de>
9893 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9895 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9897 * po/pl.po: Update from translation team.
9899 * nscd/nscd.c (main): Fix typo in message.
9900 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9902 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9905 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9906 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9907 (__sigprocmask): Define.
9909 2006-10-02 Ulrich Drepper <drepper@redhat.com>
9911 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9914 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9916 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9917 in oldtotal and newtotal calculation.
9918 * nscd/nscd-client.h (struct mapped_database): Add datasize
9920 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9921 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9923 (__nscd_cache_search): Add checks to make sure we never reference
9924 data beyond the current mapping.
9926 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9928 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9929 variables const to avoid compiler warnings.
9931 * io/fts.c (fts_close): Remove redundant checks.
9932 (fts_build): Likewise.
9933 (fts_palloc): Likewise.
9935 * manual/message.texi (Advanced gettext functions,
9936 Using gettextized software): Fix typos.
9938 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9940 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9941 explain why there are no leaks.
9943 2006-09-29 Ulrich Drepper <drepper@redhat.com>
9945 * libio/wmemstream.c: Include <wchar.h>.
9946 * libio/bug-wmemstream1.c: Likewise.
9947 * libio/tst-wmemstream1.c: Likewise.
9948 * libio/tst-wmemstream2.c: Likewise.
9950 * version.h (RELEASE): Bump to 2.5.
9951 * README: Regenerated.
9953 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9956 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9957 found no group members.
9958 Patch by Petr Baudis.
9960 2006-09-29 Jakub Jelinek <jakub@redhat.com>
9962 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9963 assert bootstrap_map.l_tls_modid is zero.
9964 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9967 2006-09-27 Ulrich Drepper <drepper@redhat.com>
9969 * libio/stdio.h: Move open_wmemstream prototype to ...
9970 * wcsmbs/wchar.h: ... here.
9972 2006-09-25 Jakub Jelinek <jakub@redhat.com>
9975 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9976 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9977 __{,l}chown to handle the rest.
9978 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9979 fchownat syscall and __ASSUME_32BITUIDS case inline, call
9980 __{,l}chown to handle the rest.
9981 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9983 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9984 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9987 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9988 time, rather allocate increasingly bigger arrays of pointers, if
9989 possible with alloca, if too large with malloc.
9991 2006-09-24 Jakub Jelinek <jakub@redhat.com>
9993 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9995 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9997 2006-09-24 Ulrich Drepper <drepper@redhat.com>
9999 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10001 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10002 IFA_F_HOMEADDRESS flag for interfaces.
10003 * include/ifaddrs.h (struct in6addrinfo): Define
10006 2006-09-21 Jakub Jelinek <jakub@redhat.com>
10009 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10010 PTR_DEMANGLE3): Define.
10011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10012 PTR_DEMANGLE3): Likewise.
10013 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10014 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10016 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10018 2006-09-20 Jakub Jelinek <jakub@redhat.com>
10020 * po/libc.pot: Regenerated.
10021 * po/be.po: Updated.
10022 * po/ca.po: Likewise.
10023 * po/cs.po: Likewise.
10024 * po/da.po: Likewise.
10025 * po/de.po: Likewise.
10026 * po/el.po: Likewise.
10027 * po/en_GB.po: Likewise.
10028 * po/es.po: Likewise.
10029 * po/fi.po: Likewise.
10030 * po/fr.po: Likewise.
10031 * po/gl.po: Likewise.
10032 * po/hr.po: Likewise.
10033 * po/hu.po: Likewise.
10034 * po/ja.po: Likewise.
10035 * po/ko.po: Likewise.
10036 * po/nb.po: Likewise.
10037 * po/nl.po: Likewise.
10038 * po/pl.po: Likewise.
10039 * po/pt_BR.po: Likewise.
10040 * po/ru.po: Likewise.
10041 * po/rw.po: Likewise.
10042 * po/sk.po: Likewise.
10043 * po/sv.po: Likewise.
10044 * po/tr.po: Likewise.
10045 * po/zh_CN.po: Likewise.
10046 * po/zh_TW.po: Likewise.
10049 * iconv/iconv_prog.c (main): Fix spelling in error message.
10050 * iconv/iconvconfig.c (main): Likewise.
10051 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10052 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10053 * locale/programs/localedef.c (main): Likewise.
10054 * locale/programs/repertoire.c (repertoire_read): Likewise.
10055 * timezone/zdump.c (main): Likewise.
10056 * nscd/connections.c (handle_request): Fix spelling in log message.
10057 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10059 2006-09-20 Ulrich Drepper <drepper@redhat.com>
10061 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10064 2006-09-20 Andreas Jaeger <aj@suse.de>
10066 * math/libm-test.inc (lrint_test_upward): Fix typo.
10068 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10071 * math/libm-test.inc (lrint_test_tonearest): New function.
10072 (lrint_test_towardzero): New function.
10073 (lrint_test_downward): New function.
10074 (lrint_test_upward): New function.
10075 (main): Run these new tests.
10076 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10077 of values near to 0.
10078 (two52): Use double not long double.
10079 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10080 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10081 (two23): Use float not double.
10082 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10083 (two23): Use float not double.
10084 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10085 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10086 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10087 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10089 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10091 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10092 Cast sp to unsigned long to avoid compiler warning.
10093 Use __makecontext_ret function instead of a trampoline on the stack.
10094 (__makecontext_ret): New function.
10095 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10097 2006-09-19 Jakub Jelinek <jakub@redhat.com>
10099 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10100 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10103 2006-09-19 Ulrich Drepper <drepper@redhat.com>
10105 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10106 sure no reference to the unloaded map's search list remains in the
10107 dependency's scope.
10109 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10111 * elf/Makefile: Add rules to build and run unload7 test.
10112 * elf/unload7.c: New test.
10113 * elf/unload7mod1.c: New file.
10114 * elf/unload7mod2.c: New file.
10116 2006-09-18 Jakub Jelinek <jakub@redhat.com>
10118 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10119 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10120 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10121 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10122 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10123 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10124 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10125 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10126 PTRACE_GETEVENTMSG): Likewise.
10127 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10130 2006-09-17 Mike Frysinger <vapier@gentoo.org>
10132 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10133 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10134 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10135 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10137 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10139 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10140 write '\0' to the fd.
10141 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10142 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10143 Change regs to unsigned long pointer from unsigned int, fix fscr
10146 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10148 * io/Makefile (CFLAGS-fstatat.c): Set.
10149 (CFLAGS-fstatat64.c): Likewise.
10150 (CFLAGS-mknodat.c): Likewise.
10152 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10153 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10154 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10155 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10157 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10158 Steven Munroe <sjmunroe@us.ibm.com>
10160 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10161 names to the beginning. Rename "cell" to "cellbe".
10162 (_dl_powerpc_platforms): New.
10163 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10164 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10165 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10166 (_DL_HWCAP_PLATFORM): Define to new mask.
10167 (_dl_platform_string, _dl_string_platform): New functions.
10168 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10169 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10171 2006-09-12 Jakub Jelinek <jakub@redhat.com>
10174 * README.libm: Fix a thinko in sqrt algorithm description.
10177 * manual/string.texi (argz_delete): Fix prototype.
10178 Patch by <alpt@freaknet.org>.
10180 2006-08-26 Joseph Myers <joseph@codesourcery.com>
10183 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10184 * io/tst-fcntl.c (do_prepare): Likewise.
10185 * posix/tst-exec.c (do_prepare): Likewise.
10186 * posix/tst-preadwrite.c (do_prepare): Likewise.
10187 * posix/tst-spawn.c (do_prepare): Likewise.
10188 * posix/tst-truncate.c (do_prepare): Likewise.
10189 * rt/tst-aio.c (do_prepare): Likewise.
10190 * rt/tst-aio64.c (do_prepare): Likewise.
10191 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10194 2006-09-09 Ulrich Drepper <drepper@redhat.com>
10197 * time/mktime.c (guess_time_tm): Fix overflow detection.
10198 * time/Makefile (tests): Add bug-mktime1.
10199 * time/bug-mktime1.c: New file.
10202 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10203 (mremap): Likewise.
10205 2006-09-07 Jakub Jelinek <jakub@redhat.com>
10208 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10209 Ensure relocation doesn't clobber any bits outside of the
10210 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10211 R_SPARC_HI22 and R_SPARC_H44.
10214 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10215 (long) (MINSIZE + nb - old_size) is positive.
10217 * malloc/arena.c (grow_heap): When growing bail even if new_size
10221 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10224 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10226 * posix/regex_internal.c (re_string_reconstruct): Handle
10227 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10228 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10229 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10230 re_string_context_at.
10231 * posix/Makefile: Add rules to build and run bug-regex26 test.
10232 * posix/bug-regex26.c: New test.
10234 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10235 rather than col_sym_free. Move seqp declaration earlier.
10237 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10239 2006-09-05 Jakub Jelinek <jakub@redhat.com>
10241 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10242 decl before first goto out.
10244 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10246 * Makerules (shlib.lds): If have-hash-style, put .hash section
10247 at the end of the RO segment.
10249 2006-09-04 Ulrich Drepper <drepper@redhat.com>
10251 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10252 style hash table format is used.
10254 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10256 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10257 randomization rather than before.
10258 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10260 2006-08-31 Jakub Jelinek <jakub@redhat.com>
10262 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10264 * malloc/malloc.c (_int_malloc): Use full list insert and not
10265 shortcut which assumes the list is empty for large requests
10268 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10270 2006-08-30 Jakub Jelinek <jakub@redhat.com>
10272 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10273 and offout arguments to the prototype.
10274 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10275 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10276 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10277 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10278 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10279 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10280 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10281 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10283 2006-08-28 Ulrich Drepper <drepper@redhat.com>
10285 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10287 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10290 2006-08-28 Jakub Jelinek <jakub@redhat.com>
10292 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10293 only if herrno is NETDB_INTERNAL. Handle errors other than
10294 ERANGE outside of the loops, handle TRY_AGAIN.
10296 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10297 if other's ctype category was missing.
10298 * locale/programs/ld-collate.c (collate_read): Return if
10299 copy_locale's collate category is missing.
10301 2006-08-27 Ulrich Drepper <drepper@redhat.com>
10304 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10305 arenas if allocation failed.
10306 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10308 2006-08-26 Ulrich Drepper <drepper@redhat.com>
10310 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10312 (malloc_state): Reduce bins size by 2.
10313 (_int_malloc): Fix test for large enough buffer for early termination.
10314 When no unsorted block matches perfectly and an exiting block has
10315 to be split, use full list insert and not shortcut which assumes
10318 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10321 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10323 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10326 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10327 symbol require exact match (these are PLTs).
10328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10329 (_dl_ppc64_addr_sym_match): Likewise.
10332 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10333 If symbol has a value use it.
10334 * elf/tst-dladdr1.c: New file.
10335 * elf/Makefile: Add rules to build and run tst-addr1.
10337 2006-08-24 Jakub Jelinek <jakub@redhat.com>
10339 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10340 keeps failing and heap growth or new heap creation isn't
10342 * malloc/tst-malloc.c (main): Add new tests.
10344 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10347 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10348 as in the x86-64 code to use bswap.
10350 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10353 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10355 * posix/bits/unistd.h: Likewise.
10357 2006-05-15 Mike Frysinger <vapier@gentoo.org>
10360 * string/strchr.c: Add cast to avoid warning.
10362 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10364 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10365 platforms define as 512K. For 64-bit platforms as 32MB. The lower
10366 limit is needed to avoid the exploding of the address space
10367 requirement for secondary heaps.
10368 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10369 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10371 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10374 * Makerules (depfiles): Handle extra-test-objs the same as
10376 (common-mostlyclean): Likewise.
10377 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10379 * elf/Makefile (extra-objs): Likewise.
10380 * stdlib/Makefile (extra-objs): Likewise.
10382 2006-08-14 Eric Blake <ebb9@byu.net>
10385 * misc/error.h: Assume C89 or better.
10386 * misc/error.c: Likewise.
10388 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10391 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10392 __ASSUME_ATFCTS is defined.
10394 2006-08-19 Ulrich Drepper <drepper@redhat.com>
10396 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10397 to sort in each call.
10399 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10400 is empty simply return and use next service.
10401 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10403 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10404 tells us when not finding a charmap file is an error.
10405 * locale/programs/charmap.h: Adjust charmap_read prototype.
10406 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10407 cannot find a charmap.
10408 * locale/programs/localedef.c (main): Adjust charmap_read call.
10410 2006-08-15 Jakub Jelinek <jakub@redhat.com>
10412 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10413 sysdeps/posix/pause.c implementation instead.
10415 2006-08-09 Jakub Jelinek <jakub@redhat.com>
10417 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10420 2006-08-13 Andreas Schwab <schwab@suse.de>
10422 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10423 Don't clobber caller's LRSAVE.
10424 (_dl_prof_resolve): Likewise.
10426 2006-08-14 Ulrich Drepper <drepper@redhat.com>
10429 * libio/memstream.c (open_memstream): Allocate initial buffer with
10431 * libio/wmemstream.c (open_wmemstream): Likewise.
10432 * libio/strops.c: Pretty printing.
10433 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10434 (enlarge_userbuf): New function.
10435 (_IO_str_seekoff): Call it if seek position is larger than current
10437 * libio/wstrops.c: Likewise.
10438 * libio/vasprintf.c: Add comment as to why we do not have to use
10439 calloc instead of malloc to allocate initial buffer.
10440 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10441 * libio/bug-memstream1.c: New file.
10442 * libio/bug-wmemstream1.c: New file.
10444 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10446 * libio/wstrops.c: Remove dead macro definitions and comments.
10447 * libio/strops.c: Likewise.
10450 * login/utmpname.c (__utmpname): Remove unnecessary test.
10452 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10455 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10458 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10461 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10463 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10464 setting of CPU clocks.
10466 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10469 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10470 since C99 requires the result to promote to 'int' when uint_least8_t
10471 and uint_least16_t promote to 'int'.
10473 2006-08-12 Ulrich Drepper <drepper@redhat.com>
10476 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10477 lenght of one output field, correct bitmask creation.
10478 * locale/programs/ld-time.c: Add alignment.
10481 * misc/error.c: Add space between program name and message if file
10484 2006-08-03 Eric Blake <ebb9@byu.net>
10487 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10489 2006-08-09 Ulrich Drepper <drepper@redhat.com>
10491 * malloc/memusagestat.c: Silence warnings.
10493 * malloc/malloc.c: Dynamically size mmap treshold if the program
10494 frees mmaped blocks.
10495 Patch by Valerie Henson and Arjan van de Ven.
10497 2006-08-08 Jakub Jelinek <jakub@redhat.com>
10499 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10502 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10503 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10504 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10505 Only provide var definitions in strtol_l (or for *ull*
10508 * stdio-common/bug16.c (tests): New array.
10509 (do_tests): Allow the first hexadecimal digit
10510 to be 1, 2, 4 or 8. Do 3 additional tests.
10512 * sysdeps/s390/fpu/libm-test-ulps: Update.
10514 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10515 fchownat syscall if available.
10516 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10517 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10518 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10520 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10522 * nis/nis_xdr.c: Avoid some function calls.
10524 2006-08-07 Jakub Jelinek <jakub@redhat.com>
10525 Ulrich Drepper <drepper@redhat.com>
10527 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10528 short cut if only one name component is stripped away.
10530 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10532 * nis/nis_call.c: Minor cleanups throughout.
10533 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10534 (first_shoot): Add search_parent_first parameter. Only if it is set
10535 search parent server first.
10536 If directory for table found through cold start cache is not the same
10537 as referenced in the cache, don't use it.
10538 (__nisfind_server): Take additional parameter. Pass it on to
10540 (__prepare_niscall): Adjust __nisfind_server call.
10541 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10542 * nis/nis_table.c: Adjust __nisfind_server call.
10543 * nis/nis_lookup.c: Likewise.
10544 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10546 2006-08-03 Ulrich Drepper <drepper@redhat.com>
10549 * math/s_cacosh.c: Return values from positive branch.
10550 * math/s_cacoshf.c: Likewise.
10551 * math/s_cacoshl.c: Likewise.
10554 * sysvipc/sys/msg.h: Change return value to ssize_t.
10555 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10556 * sysvipc/msgrcv.c: Likewise.
10557 * include/sys/msg.h: Likewise.
10559 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10560 test introduced in patch for bz #661.
10561 (getgrouplist): Simplify code a bit. Don't allocate one additional
10562 element for NEWGROUPS.
10565 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10566 'f', use '1' as leading digit not '\1'.
10567 * stdio-common/Makefile (tests): Add bug16.
10568 * stdio-common/bug16.c: New file.
10571 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10572 and don't try to open it. The patch introducing the macro
10573 contained a bug and used the same file name as the new file
10574 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10575 this out completely.
10578 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10579 Patch by Jerry James <Jerry.James@usu.edu>.
10581 * rt/Makefile (tests): Add tst-clock2.
10582 * rt/tst-clock2.c: New file.
10585 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10586 function and its parameters and pass it to new thread.
10587 (__gai_notify): Add support for alternative waiting for completion.
10588 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10589 waiting for completion.
10590 * resolv/getaddrinfo_a.c: Likewise.
10591 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10592 waiting for completion is used.
10593 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10594 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10595 * resolv/gai_error.c: Likewise.
10596 * resolv/gai_sigqueue.c: Likewise.
10598 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10600 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10601 errno to EBADF and return MACH_PORT_NULL.
10603 2006-06-23 Joseph Myers <joseph@codesourcery.com>
10606 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10608 2006-08-02 Ulrich Drepper <drepper@redhat.com>
10610 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10611 walk them instead of the symbol table.
10613 2006-08-01 Ulrich Drepper <drepper@redhat.com>
10616 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10617 status of NSS calls, not the number of returned entries.
10619 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10620 request_key, keyctl.
10622 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10624 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10626 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10628 * elf/tst-auditmod1.c: Fix typo in #error.
10630 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10632 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10634 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10636 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10638 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10639 that the directory is empty even on non-POSIX filesystems.
10641 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10643 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10645 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10646 the backend NSS module. If backend setgrent call failed, don't have
10647 internal_setgrent fail. Just remember this until it is needed.
10648 * nis/nss_compat/compat-pwd.c: Likewise.
10649 * nis/nss_compat/compat-spwd.c: Likewise.
10651 2006-07-30 Roland McGrath <roland@redhat.com>
10653 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10654 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10655 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10656 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10658 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10659 (nanosleep_not_cancel): New macro.
10660 (sigsuspend_not_cancel): new macro.
10661 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10662 (do_sigsuspend): Define as inline.
10663 (__sigsuspend): Always use do_sigsuspend.
10664 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10665 * include/signal.h: Declare __sigsuspend_nocancel.
10666 * sysdeps/posix/pause.c
10667 [! NO_CANCELLATION] (__pause_nocancel): New function.
10669 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10670 * include/time.h (__nanosleep_nocancel): Likewise.
10672 2006-07-30 Ulrich Drepper <drepper@redhat.com>
10674 * locale/programs/localedef.c (add_to_readlist): Rename local
10675 variables to avoid confusion.
10677 * locale/programs/charmap.c (charmap_read): Emit error message if
10678 charmap couldn't be found or read.
10680 2006-07-28 Ulrich Drepper <drepper@redhat.com>
10682 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10683 __ASSUME_FUTEX_LOCK_PI.
10684 * include/time.h: Declare __nanosleep_nocancel.
10685 * include/unistd.h: Declare __pause_nocancel.
10687 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10688 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10689 get the __stack_chk_fail_local definition when it's needed.
10691 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10693 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10694 * dlfcn/bug-atexit3.c: New file.
10695 * dlfcn/bug-atexit3-lib.cc: New file.
10697 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10698 used when the namespace is not the base namespace.
10700 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10702 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10703 (__new_exitfn): Bump it in every successful call.
10704 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10705 more exit handlers, call them right away.
10706 * stdlib/exit.h: Declare __new_exitfn_called.
10708 2006-07-25 Ulrich Drepper <drepper@redhat.com>
10710 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10711 calling registered handler.
10713 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10714 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10715 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10716 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10717 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10718 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10719 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10720 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10722 2006-07-10 Ulrich Drepper <drepper@redhat.com>
10724 * elf/dl-lookup.c (dl_new_hash): New functions.
10725 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10726 value here. Compute new-style hash value. Pass new hash value
10727 and reference to variable with the old value to do_lookup_x.
10728 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10729 old-style hash table.
10730 (_dl_debug_bindings): Pass new hash value and reference to variable
10731 with the old value to do_lookup_x.
10732 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10733 new-style hash value and change old-style hash value parameter to
10734 be a reference. Reoganize functions to determine whether
10735 new-style hash table is available. Only fall back on old-style
10736 table. If old-style hash value is needed, compute it here.
10737 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10739 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10740 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10741 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10742 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10743 * Makeconfig: If linker supports --hash-style option add it to all
10744 linker command lines to build DSOs.
10745 * config.make.in: Define have-hash-style.
10746 * configure.in: Test whether linker supports --hash-style option.
10748 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10749 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10751 2006-06-27 Ulrich Drepper <drepper@redhat.com>
10753 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10756 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10757 RPATH of main map twice.
10759 2006-06-22 Ulrich Drepper <drepper@redhat.com>
10761 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10762 look further, return original strings.
10763 (_nl_find_msg): Do not return found translation if the conversion
10764 failed. Either signal the string is unusable or that something went
10765 wrong and the original should be used.
10767 2006-06-21 Ulrich Drepper <drepper@redhat.com>
10769 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10771 2006-06-14 Jakub Jelinek <jakub@redhat.com>
10774 * misc/insremque.c (insque): Handle prev == NULL.
10775 * misc/Makefile (tests): Add tst-insremque.
10776 * misc/tst-insremque.c: New test.
10778 2006-06-17 Ulrich Drepper <drepper@redhat.com>
10781 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10782 conflict with DL_DST_REQUIRED.
10784 2006-06-16 Ulrich Drepper <drepper@redhat.com>
10786 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10787 match what Solaris does.
10789 2006-06-04 Ulrich Drepper <drepper@redhat.com>
10791 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10792 local_setegid instead of seteuid and setegid.
10793 * sysdeps/generic/local-setxid.h: New file.
10794 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10796 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10798 * string/Makefile (tests): Add bug-envz1.
10799 * string/bug-envz1.c: New file.
10801 2006-06-02 Jakub Jelinek <jakub@redhat.com>
10803 * posix/regex_internal.c (re_string_skip_chars): If no character has
10804 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10805 to the byte which couldn't be converted.
10806 (re_string_reconstruct): Don't clear valid_raw_len before calling
10807 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10808 tip_context using re_string_context_at.
10809 * posix/Makefile: Add rules to build and run bug-regex25 test.
10810 * posix/bug-regex25.c: New test.
10812 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10815 * string/envz.c (envz_strip): Correct erroneously reversed src
10816 and dest parameters to memmove() invocation.
10818 2006-05-30 Jakub Jelinek <jakub@redhat.com>
10820 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10821 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10822 to make sure the database has been already invalidated.
10823 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10824 after the cache has been invalidated. Use pthread_mutex_lock rather
10825 than pthread_mutex_trylock if fd != -1.
10826 * nscd/connections.c (invalidate_cache): Add fd argument, write
10827 response to fd if not calling prune_cache, pass fd to prune_cache.
10828 (handle_request): Adjust invalidate_cache caller.
10829 (nscd_run): Pass -1 as fd to prune_cache.
10831 2006-05-30 Ulrich Drepper <drepper@redhat.com>
10833 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10836 2006-05-29 Ulrich Drepper <drepper@redhat.com>
10838 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10839 * nscd/cache.c (prune_cache): Take prunelock before starting the
10840 work. Just return in case it is already taken.
10841 * nscd/connections.c (dbs): Initialize .prunelock.
10843 2006-05-25 Ulrich Drepper <drepper@redhat.com>
10845 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10846 copying. No need to allocate new array for group members. Just
10847 move the pointers and update the size.
10849 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10850 Avoid memory leak in case realloc fails. Simplification for
10851 better code generation.
10853 Avoid deprecation warning because of libc_hidden_proto for
10854 inet6_option_alloc.
10855 * inet/inet6_option.c (option_alloc): Renamed from
10856 inet6_option_alloc. Made static.
10857 (inet6_option_alloc): Now a simple wrapper around option_alloc.
10858 (inet6_option_append): Call option_alloc.
10859 * include/netinet/in.h: Remove libc_hidden_proto for
10860 inet6_option_alloc.
10862 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10863 for cleanup when cb!=NULL [Coverity CID 233].
10865 2006-05-24 Ulrich Drepper <drepper@redhat.com>
10868 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10869 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10870 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10871 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10872 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10873 and inet6_rth_getaddr.
10874 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10876 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10877 Mark inet6_option_* interfaces as deprecated.
10878 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10879 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10880 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10881 inet6_rth_segments, and inet6_rth_getaddr.
10882 * inet/inet6_opt.c: New file.
10883 * inet/inet6_rth.c: New file.
10885 * inet/netinet/icmp6.h: Pretty printing.
10888 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10890 2006-05-23 Ulrich Drepper <drepper@redhat.com>
10892 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10893 doing it all here. When server does not know the answer do not
10894 fail immediate, try parent first.
10896 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10899 2006-05-20 Ulrich Drepper <drepper@redhat.com>
10901 * nis/nis_call.c (__prepare_niscall): New function. Split out
10903 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10905 (__follow_path): New function. Split out from nis_list.
10906 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10908 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10910 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10912 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10913 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10914 from libnsl for version GLIBC_PRIVATE.
10915 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10916 Remove entry parameter from _nss_nisplus_parse_pwent and
10917 _nss_nisplus_parse_grent.
10918 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10919 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10920 again. Rewrite getpwent handling to not use nis_first_entry and
10921 nis_next_entry. Roll out own niscall handling.
10922 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10924 * sunrpc/xdr_rec.c: Fix typo in comment.
10926 2006-05-19 Ulrich Drepper <drepper@redhat.com>
10928 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10931 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10932 to allocate memory for my_pollfd. Better initialization of
10933 cb_is_running. Use TEMP_FAILURE_RETRY.
10935 * malloc/memusage.sh (memusageso): Add quotes.
10936 (memusagestat): Likewise.
10937 * debug/xtrace.sh (pcprofileso): Likewise.
10938 (pcprofiledump): Likewise.
10939 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10941 * malloc/Makefile ($(objpfx)memusage): Likewise.
10943 * nis/nis_callback.c (__nis_create_callback): Calls to
10944 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10945 asprintf call fails.
10947 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10948 no uninitialized memory is passed to sendto.
10950 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10952 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10953 of snprintf+strdup. Handle OOM.
10954 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10955 cb->serv together. Remove now obsolete free calls.
10956 (__nis_destroy_callback): Remove now obsolete free call.
10958 2006-05-18 David Woodhouse <dwmw2@redhat.com>
10960 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10961 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10962 and ULA respectively). Set precedence for IPv4 address to 10 as
10963 defined in RFC3484 for preferring IPv6.
10964 * posix/gai.conf: Update to match the new default tables.
10966 2006-05-18 Jakub Jelinek <jakub@redhat.com>
10968 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10969 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10970 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10971 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10973 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10975 (init_nss_interface): Remove initialization of these variables.
10977 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10979 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10980 nis_free_directory forward to avoid duplication.
10982 2006-05-17 Ulrich Drepper <drepper@redhat.com>
10984 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10985 rec_dirsearch returning NULL.
10986 (first_shoot): Handle __nis_finddirectory returning NULL.
10987 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10989 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10990 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10992 2006-05-17 Jakub Jelinek <jakub@redhat.com>
10994 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10997 2006-05-15 Ulrich Drepper <drepper@redhat.com>
10999 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11001 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11002 * nscd/nscd_getgr_r.c: Likewise.
11004 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11006 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11007 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11009 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11011 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11013 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11015 * include/rpc/auth.h: Mark xdr_des_block_internal and
11016 xdr_opaque_auth_internal as hidden.
11018 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11021 * include/rpc/xdr.h: Mark all _internal functions as hidden.
11023 * misc/getusershell.c (okshells): Don't use static initializers,
11026 * stdlib/fmtmsg.c (keywords): Change type of len element to
11027 uint32_t to not waste space on 64bit machines.
11029 * locale/setlocale.c: Change _nl_category_names into a string.
11030 Add new _nl_category_name_idxs. Change all users.
11031 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11032 Declare _nl_category_name_idxs.
11033 * locale/findlocale.c: Adjust for _nl_category_names change.
11034 * locale/loadlocale.c: Likewise.
11035 * locale/newlocale.c: Likewise.
11036 * intl/dcigettext.c: Likewise.
11038 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11039 (add_alias2): ...here. New function.
11040 (__gconv_read_conf): Simplify builtin alias handling.
11041 (builtin_aliases): Convert to string to avoid relocations.
11042 * iconv/gconv_builtin.h: Add comment about correct formatting.
11044 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11046 * resolv/res_debug.c (loc_ntoa): Make error const.
11048 2006-05-14 Andreas Schwab <schwab@suse.de>
11050 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11052 2006-05-12 Jakub Jelinek <jakub@redhat.com>
11054 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11055 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11056 sizeof (cpu_set_t).
11058 2006-05-11 Ulrich Drepper <drepper@redhat.com>
11060 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11062 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11064 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11065 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11067 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11068 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11070 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11071 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11074 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11075 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11078 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11079 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11081 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11082 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11084 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11085 * include/rpcsvc/nis_callback.h: New file.
11087 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11088 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11090 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11091 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11093 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11094 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11096 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11097 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11099 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11100 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11103 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11104 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11106 * nis/nis_error.c: Remove table of strings. Use position
11107 independent mechanism.
11108 * nis/nis_error.h: New file.
11110 2006-05-11 Jakub Jelinek <jakub@redhat.com>
11112 * locale/programs/ld-time.c (time_finish): If wide era name or
11113 format aren't provided, set both wname and wformat to L"".
11115 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11117 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11118 results if the call was succesful.
11120 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11122 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11125 2006-05-10 Jakub Jelinek <jakub@redhat.com>
11127 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11129 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11131 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11132 caller makes sure this is not the case.
11133 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11135 2006-05-09 Ulrich Drepper <drepper@redhat.com>
11137 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11140 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11141 [Coverity CID 229, 230]
11143 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11145 (hol_help): Likewise. [Coverity CID 226, 227]
11147 * string/argz-replace.c (__argz_replace): Unconditionally call
11148 free on SRC. [Coverity CID 225]
11150 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11151 the return value of __nis_default_owner and __nis_default_group,
11152 it has been especially allocated. [Coverity CID 224]
11154 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11155 searchgroup and searchowner. Significantly simplified.
11156 (__nis_default_owner): Remove duplication. Do not locally copy the
11157 string before duplicating it.
11158 (__nis_default_group): Likewise.
11160 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11161 we must clear the variable before calling __nisfind_server.
11163 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11164 nis_getnames. [Coverity CID 223]
11166 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11167 xmalloc to allocate local repertoire name. [Coverity CID 222]
11169 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11170 allocate memory for the input to add_bytes. [Coverity CID 221]
11172 * posix/wordexp.c (w_addword): Free word if realloc fails and it
11173 was allocated here. [Coverity CID 219, 220]
11175 * posix/getconf.c (print_all): Free confstr data after printing.
11178 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11179 list allocation fails. [Coverity CID 215]
11181 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11184 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11185 string is NULL. [Coverity CID 212]
11186 * argp/Makefile: Add rules to build and run bug-argp1.
11187 * argp/bug-argp1.c: New file.
11189 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11191 * stdlib/canonicalize.c (__realpath): Likewise.
11193 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11194 pointer. [Coverity CID 206]
11196 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11197 in statically linked code.
11198 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11199 statically built code, be prepared to have no link map.
11202 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11203 dgettext calls. [Coverity CID 204]
11205 * argp/argp-help.c (struct uparams): Remove valid member. Change
11207 (uparam_names): Reduce size. Avoid relative relocations.
11208 Moved to read-only segment.
11209 (fill_in_uparams): Update for new layout.
11211 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11212 assumed to always be != NULL. [Coverity CID 202]
11214 * argp/argp-help.c (hol_entry_help): Remove some dead code
11215 [Coverity CID 200].
11217 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11218 away a few more unconditional yperr2nss calls.
11219 (_nss_nis_getservbyname_r): Likewise.
11221 2006-05-06 Ulrich Drepper <drepper@redhat.com>
11223 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11226 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11227 that unused memory passed to sendto is nevertheless initialized.
11230 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11231 possibly unaligned memory accesses.
11233 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11234 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11235 and __putlong respectively. Correct buffer overflow check for
11238 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11240 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11241 (send_dg): Rewrite error handling to be more compact and avoid
11242 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11244 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11246 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11247 instead of ns_get16.
11248 (res_queriesmatch): Likewise. Minor optimization.
11251 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11252 __libc_res_nsend might reallocate the buffer for the answer. In
11253 this case we have to reload the HP pointer.
11255 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11257 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11258 some branch prediction hints.
11260 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11261 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11262 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11263 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11264 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11265 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11266 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11267 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11269 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11271 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11272 by a GOT relocation to make Scrt1.o position independent.
11273 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11275 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11276 six system call parameters.
11277 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11279 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11281 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11284 * sunrpc/svc_udp.c (BZERO): Remove definition.
11286 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11288 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11289 (des_SPtrans): Use uint32_t type.
11290 (des_skb): Likewise.
11292 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11294 2006-05-05 Jakub Jelinek <jakub@redhat.com>
11297 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11300 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11302 * locale/programs/ld-address.c (address_finish): Fix one more
11303 place where the iso639 array might be accessed beyond the limits.
11305 2006-05-04 Ulrich Drepper <drepper@redhat.com>
11307 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11308 filling it for the first time.
11310 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11311 Adjust all callers.
11312 Free res object content before returning.
11314 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11316 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11319 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11320 cleanup for initial thread, just the free call on TVP.
11322 * nscd/gai.c (__getline): Define.
11325 See ChangeLog.16 for earlier changes.