1 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
4 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
5 or FORMERR and the other NOERROR, don't raise an error.
7 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
10 * Makeconfig (+asflags): New variable based upon ASFLAG or
12 (ASFLAGS): Add override to set ASFLAGS to +asflags.
13 * config.make.in (asflags-cpu): Add variable based upon
14 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
16 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
17 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
18 recognizes power6 instruction set due to passing -mcpu=power6 from
19 --with-cpu=power6 when compiling .S files.
20 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
22 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
24 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
27 2009-05-09 Jakub Jelinek <jakub@redhat.com>
29 * string/stratcliff.c (do_test): Test for zero length
30 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
31 at the end of the page.
33 2009-05-08 Ulrich Drepper <drepper@redhat.com>
35 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
37 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
40 * po/da.po: Update from translation team.
42 2009-05-05 Jakub Jelinek <jakub@redhat.com>
44 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
45 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
47 2009-05-05 Ulrich Drepper <drepper@redhat.com>
49 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
50 and READ_IMPLIES_EXEC.
52 2009-05-04 Ulrich Drepper <drepper@redhat.com>
54 * po/da.po: Update from translation team.
56 2009-04-29 Jakub Jelinek <jakub@redhat.com>
58 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
61 2009-04-27 Jakub Jelinek <jakub@redhat.com>
63 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
64 to MAP_ANON in PROT_NONE mmap64 call.
65 (open_archive): Likewise.
66 (file_data_available_p): Use mmap64 instead of mremap.
67 (enlarge_archive): Likewise. Update head if ah->addr changed.
68 Attempt to reserve address space after mmap64 region.
70 2009-04-26 Ulrich Drepper <drepper@redhat.com>
72 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
73 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
74 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
76 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
77 atanh should set ERANGE.
80 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
81 result of lookup to make call to implement STT_GNU_IFUNC.
82 (_dl_profile_fixup): Likewise.
83 Patch by H.J. Lu <hjl.tools@gmail.com>.
85 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
88 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
91 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
92 label if it is not used.
94 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
95 of gmon_hist_hdr and gmon_hdr structures and use them.
96 * elf/sprof.c: Likewise.
98 * elf/dl-load.c (open_verify): Add temporary variable to avoid
101 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
103 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
106 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
107 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
109 (iruserok_af): Use ss_family instead of casts.
111 * gmon/gmon.c (write_hist): Define real-type variant of
112 gmon_hist_hdr structure and use it.
113 (write_gmon): Likewise for gmon_hdr.
115 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
116 function if we are not going to define it.
117 * sysdeps/unix/sysv/linux/writev.c: Likewise.
119 * inet/inet6_option.c (option_alloc): Add temporary variable to
122 * libio/strfile.h (struct _IO_streambuf): Use correct type and
123 name of VTable element.
124 * libio/iovsprintf.c: Avoid casts to avoid warnings.
125 * libio/iovsscanf.c: Likewise.
126 * libio/vasprintf.c: Likewise.
127 * libio/vsnprintf.c: Likewise.
128 * stdio-common/isoc99_vsscanf.c: Likewise.
129 * stdlib/strfmon_l.c: Likewise.
130 * debug/vasprintf_chk.c: Likewise.
131 * debug/vsnprintf_chk.c: Likewise.
132 * debug/vsprintf_chk.c: Likewise.
134 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
137 2009-04-26 Jakub Jelinek <jakub@redhat.com>
139 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
141 2009-04-25 Ulrich Drepper <drepper@redhat.com>
143 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
145 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
146 * sysdeps/i386/fpu/s_tanf.S: Likewise.
147 * sysdeps/i386/fpu/s_tanl.S: Likewise.
148 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
149 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
150 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
151 * math/libm-test.inc: Add tests for errno after tan calls with
154 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
155 errno value vor pow(+-0,neg).
156 * math/libm-test.inc (pow_test): Add tests for errno value for
159 * math/w_fmod.c: Also handle x=±Inf as error.
160 * math/w_fmodf.c: Likewise.
161 * math/w_fmodl.c: Likewise.
162 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
165 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
166 * sysdeps/i386/fpu/s_cosf.S: Likewise.
167 * sysdeps/i386/fpu/s_cosl.S: Likewise.
168 * sysdeps/i386/fpu/s_sin.S: Likewise.
169 * sysdeps/i386/fpu/s_sinf.S: Likewise.
170 * sysdeps/i386/fpu/s_sinl.S: Likewise.
171 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
172 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
173 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
174 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
175 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
176 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
177 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
178 * math/libm-test.inc: Add tests for errno after sin/cos calls with
181 * stdlib/strtod_l.c (round_and_return): We have to set errno to
182 ERANGE for underflows.
183 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
185 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
188 * libio/tst-widetext.input: Remove surrogates.
190 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
192 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
193 for lgamma should set errno to ERANGE, not EDOM.
194 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
196 2009-04-24 Ulrich Drepper <drepper@redhat.com>
199 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
202 * locale/programs/locarchive.c (enlarge_archive): Conserve address
203 space when temporarily mapping the whole content of the old file.
206 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
209 2009-04-24 Jakub Jelinek <jakub@redhat.com>
211 * iconvdata/sjis.c (BODY): Don't advance inptr before
212 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
213 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
216 2009-04-24 Ulrich Drepper <drepper@redhat.com>
218 * locale/locarchive.h (struct locarhandle): Rename len field to
219 mmaped and add new reserved field.
220 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
221 (create_archive): Reserve address space and then map file into it.
222 (open_archive): Likewise.
223 (file_data_available_p): New function.
224 (compare_from_file): New function.
225 (close_archive): Adjust to member name changes.
226 (add_locale): Before comparing locale data, check it is mapped.
227 Otherwise fall back to reading from the file.
229 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
231 * stdio-common/psiginfo.c: Include <errno.h>.
233 2009-04-23 Ulrich Drepper <drepper@redhat.com>
236 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
237 to get consistency between 32 and 64 bit architectures.
240 * sysdeps/unix/make-syscalls.sh: Add rule to create target
241 directory for dummy syscall rules.
242 Patch by Chris Steinbroner <hesh@pobox.com>.
244 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
247 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
250 2009-04-23 Ulrich Drepper <drepper@redhat.com>
252 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
253 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
255 2009-04-23 Jakub Jelinek <jakub@redhat.com>
257 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
258 data from vector to temporary buffer and call PWRITEV after it
259 instead of vice versa.
260 * sysdeps/posix/preadv.c: Fix up comment.
261 * misc/preadv.c: Likewise.
262 * misc/preadv64.c: Likewise.
263 * misc/pwritev.c: Likewise.
264 * misc/pwritev64.c: Likewise.
265 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
267 2009-04-23 Ulrich Drepper <drepper@redhat.com>
269 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
271 * shadow/Makefile (tests): Add tst-shadow.
272 * shadow/tst-shadow.c: New file.
275 * gshadow/Makefile: New file.
276 * gshadow/Versions: New file.
277 * gshadow/fgetsgent.c: New file.
278 * gshadow/fgetsgent_r.c: New file.
279 * gshadow/getsgent.c: New file.
280 * gshadow/getsgent_r.c: New file.
281 * gshadow/getsgnam.c: New file.
282 * gshadow/getsgnam_r.c: New file.
283 * gshadow/gshadow.h: New file.
284 * gshadow/putsgent.c: New file.
285 * gshadow/sgetsgent.c: New file.
286 * gshadow/sgetsgent_r.c: New file.
287 * gshadow/tst-gshadow.c: New file.
288 * include/gshadow.h: New file.
289 * Makeconfig (all-subdirs): Add gshadow.
290 * Makefile (installed-headers): Add gshadow/gshadow.h.
291 * nss/Makefile (databases): Add sgrp.
292 * nss/Versions: Add gshadow functions as private exports.
293 * nss/nsswitch.conf: Add gshadow entry.
294 * nss/sgrp-lookup.c: New file.
295 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
296 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
297 * nss/nss_files/files-sgrp.c: New file.
298 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
299 * sysdeps/unix/sysv/linux/paths.h: Likewise.
301 2009-04-22 Ulrich Drepper <drepper@redhat.com>
303 * stdio-common/printf.h: Add missing const to register_printf_modifier.
304 * stdio-common/reg-modifier.c: Likewise.
306 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
308 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
311 2009-04-20 Ulrich Drepper <drepper@redhat.com>
314 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
315 headers up to 2.6.30.
317 * po/ca.po: Update from translation team.
319 2009-04-19 Ulrich Drepper <drepper@redhat.com>
322 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
323 an object that uses static TLS if the TLS modid is higher than the
324 reserve we always allocate. At least for multi-threaded code.
326 2009-04-18 Ulrich Drepper <drepper@redhat.com>
328 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
329 Numerically stable check for valid width.
331 * locale/programs/locarchive.c (open_archive): Map the entire file
332 and not just the administrative data.
333 (add_locale): When we find a hash sum match compare the content
336 * malloc/malloc.c (malloc_info): Output address space information.
338 2009-04-17 Ulrich Drepper <drepper@redhat.com>
340 * malloc/malloc.c (malloc_info): Also output system memory information.
342 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
343 architectures have preadv/pwritev in 2.6.30.
345 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
346 * sysdeps/posix/readv.c: Likewise.
347 Reported by Markus Armbruster <armbru@redhat.com>.
349 * malloc/hooks.c (top_check): Force hook value into register.
351 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
353 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
354 calls to _dl_relocate_object.
356 2009-04-16 Ulrich Drepper <drepper@redhat.com>
359 * malloc/malloc.c (force_reg): Define.
360 (sYSMALLOc): Load hook variable into variable
361 before test and force into register.
363 (public_mALLOc): Force hook value into register.
364 (public_fREe): Likewise.
365 (public_rEALLOc): Likewise.
366 (public_mEMALIGn): Likewise.
367 (public_vALLOc): Likewise.
368 (public_pVALLOc): Likewise.
369 (public_cALLOc): Likewise.
370 (__posix_memalign): Likewise.
371 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
372 before test and force into register.
373 * malloc/hooks.c (top_check): Likewise.
374 (public_sET_STATe): Pretty printing.
376 * resolv/res_send.c (send_dg): Don't just ignore the result we got
377 in case we only receive one reply in single-request mode.
379 2009-04-16 Jakub Jelinek <jakub@redhat.com>
381 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
382 are dlopened in statically linked program even for __LM_ID_CALLER.
384 2009-04-16 Ulrich Drepper <drepper@redhat.com>
386 * resolv/res_send.c (send_dg): Don't switch into single-request
387 mode if we already are in it.
389 2009-04-15 Ulrich Drepper <drepper@redhat.com>
391 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
392 are always at least 4 bytes in the returned line.
394 2009-04-15 Jakub Jelinek <jakub@redhat.com>
396 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
397 __libc_use_alloca (8192), if the stack is too small use 512 bytes
398 instead of 8K. Stop searching in /proc/stat after hitting first
399 line not starting with cpu.
400 (next_line): Truncate too long
401 lines at buffer size * 3/4 instead of pretending there were line
402 breaks inside of large lines.
404 2009-04-14 Ulrich Drepper <drepper@redhat.com>
406 * sysdeps/x86_64/mp_clz_tab.c: New file.
408 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
409 Ulrich Drepper <drepper@redhat.com>
411 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
412 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
413 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
415 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
417 * sysdeps/sh/libc-tls.c: New file.
419 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
421 2009-04-14 Roland McGrath <roland@redhat.com>
423 * elf/elf.h: Add various missing ARM constants, to match binutils.
425 2009-04-14 Ulrich Drepper <drepper@redhat.com>
427 Optimizations from GMP.
428 * sysdeps/x86_64/add_n.S: New file.
429 * sysdeps/x86_64/addmul_1.S: New file.
430 * sysdeps/x86_64/lshift.S: New file.
431 * sysdeps/x86_64/mul_1.S: New file.
432 * sysdeps/x86_64/rshift.S: New file.
433 * sysdeps/x86_64/sub_n.S: New file.
434 * sysdeps/x86_64/submul_1.S: New file.
436 2009-04-14 Jakub Jelinek <jakub@redhat.com>
438 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
439 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
440 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
441 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
443 2009-04-14 Ulrich Drepper <drepper@redhat.com>
445 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
448 2009-04-13 Ulrich Drepper <drepper@redhat.com>
450 * sysdeps/x86-64/strrchr.S: New file.
452 2009-04-10 Ulrich Drepper <drepper@redhat.com>
454 * stdio-common/printf.h (struct printf_info): Add user element.
455 New types printf_arginfo_size_function, printf_va_arg_function.
456 Declare register_printf_specifier, register_printf_modifier,
457 register_printf_type.
458 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
459 (union printf_arg): Add pa_user element.
460 Adjust __printf_arginfo_table type.
461 Add __printf_va_arg_table, __printf_modifier_table,
462 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
464 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
465 If registered arginfo call failed try normal specifier.
466 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
468 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
469 * stdio-common/Versions: Export register_printf_modifier,
470 register_printf_type, and register_printf_specifier for GLIBC_2.10.
471 * stdio-common/reg-modifier.c: New file.
472 * stdio-common/reg-type.c: New file.
473 * stdio-common/reg-printf.c (__register_printf_specifier): New
474 function. Mostly the old __register_printf_function function but
475 uses locking and type of third parameter changed.
476 (__register_printf_function): Implement using
477 __register_printf_specifier.
478 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
479 calls to arginfo functions. Allocate enough memory for user-defined
480 types. Call new va_arg functions to get user-defined types.
481 Try installed handlers even for existing format specifiers first.
483 2009-04-09 Ulrich Drepper <drepper@redhat.com>
485 * sysdeps/x86_64/rawmemchr.S: New file.
487 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
488 Simplified code and possible copy problem fixed.
490 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
491 function if it is not defined. Add some necessary casts.
492 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
494 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
495 have preadv/pwritev in 2.6.30.
497 2009-04-08 Ulrich Drepper <drepper@redhat.com>
499 * malloc/malloc.c (malloc_info): New function.
500 * malloc/malloc.h: Declare it.
501 * malloc/Versions: Export malloc_info for GLIBC_2.10.
503 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
506 * malloc/malloc.c (_int_realloc): Add parameter with old block
507 size. Remove duplicated test. Don't handle mmap'ed blocks here.
509 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
511 2009-04-07 Ulrich Drepper <drepper@redhat.com>
513 * sysdeps/x86_64/strchrnul.S: New file.
515 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
516 depending libcrypt on -lfreebl3.
518 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
519 preadv/pwritev in 2.6.30.
521 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
522 instead of __strcasecmp.
524 * string/stratcliff.c (do_test): Add memchr tests..
525 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
526 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
527 first read quad word.
529 2009-04-06 Ulrich Drepper <drepper@redhat.com>
531 * string/strverscmp.c (__strverscmp): Fix last cleanups.
532 * string/tst-svc.input: Add new test case.
533 * string/tst-svc.expect: Adjust.
534 * string/Makefile: Don't ignore tst-svc error.
536 * sysdeps/x86_64/memchr.S: New file.
538 * resolv/resolv.h (RES_SNGLKUP): Define.
539 * resolv/res_init.c (res_setoptions): Recognize single-request option.
540 * resolv/res_send.c (send_dg): If we sent two requests at once and
541 only get one reply before timeout switch to mode where we send the
542 second request only after the first answer has been received.
544 2009-04-05 Ulrich Drepper <drepper@redhat.com>
546 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
547 * sysdeps/x86_64/strchr.S: Likewise.
549 2009-04-03 Ulrich Drepper <drepper@redhat.com>
551 * configure.in: We need to test for the compiler earlier.
553 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
554 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
556 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
557 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
559 * misc/preadv.c: New file.
560 * misc/preadv64.c: New file.
561 * misc/pwritev.c: New file.
562 * misc/pwritev64.c: New file.
563 * sysdeps/posx/preadv.c: New file.
564 * sysdeps/posx/preadv64.c: New file.
565 * sysdeps/posx/pwritev.c: New file.
566 * sysdeps/posx/pwritev64.c: New file.
567 * sysdeps/unix/sysv/linux/preadv.c: New file.
568 * sysdeps/unix/sysv/linux/preadv64.c: New file.
569 * sysdeps/unix/sysv/linux/pwritev.c: New file.
570 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
571 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
572 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
574 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
576 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
578 * sysdeps/unix/sysv/linux/kernel-features.h: Define
579 __ASSUME_COMPLETE_READV_WRITEV.
580 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
582 * sysdeps/unix/sysv/linux/writev.c: Likewise.
584 * sysdeps/posix/readv.c: Since read is a cancellation point we have
585 to free a possible malloced buffer in case of cancellation.
586 * sysdeps/posix/writev.c: Likewise for write.
588 2009-04-02 Ulrich Drepper <drepper@redhat.com>
590 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
592 * configure.in: Recognize --enable-nss-crypt.
593 * config.make.in: Add nss-crypt entry.
594 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
595 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
596 and include path for NSS directory to compiler for md5-crypt,
597 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
598 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
599 function implementation, use NSS. Introduce wrappers around the
600 hash function calls. Little code size optimization.
601 * crypt/sha256-crypt.c: Likewise.
602 * crypt/sha512-crypt.c: Likewise.
603 * scripts/check-local-headers.sh: Ignore nss3 directory.
605 * configure.in: Rename pic_default to libc_cv_pic_default.
606 * config.make.in: Likewise.
608 2009-04-01 Roland McGrath <roland@redhat.com>
610 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
611 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
612 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
613 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
614 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
615 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
616 (R_SPARC_NUM): Update.
617 From Dave Miller <davem@davemloft.net>.
619 2009-04-01 Ulrich Drepper <drepper@redhat.com>
621 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
623 2009-03-31 Ulrich Drepper <drepper@redhat.com>
625 * elf/dl-open.c: Keep track of used name spaces and only iterate over
626 those which are used.
627 * elf/dl-addr.c: Likewise.
628 * elf/dl-caller.c: Likewise.
629 * elf/dl-fini.c: Likewise.
630 * elf/dl-iteratephdr.c: Likewise.
631 * elf/dl-libc.c: Likewise.
632 * elf/dl-load.c: Likewise.
633 * elf/dl-support.c: Likewise.
634 * elf/dl-sym.c: Likewise.
635 * elf/rtld.c: Likewise.
636 * sysdeps/generic/ldsodefs.h: Likewise.
638 * elf/dl-load.c: Remove support for systems without MAP_ANON.
639 * elf/dl-minimal.c: Likewise.
640 * elf/dl-misc.c: Likewise.
641 * elf/rtld.c: Likewise.
642 * sysdeps/generic/ldsodefs.h: Likewise.
644 2009-03-30 Ulrich Drepper <drepper@redhat.com>
646 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
647 Avoid reuse of complex expression.
649 * po/fr.po: Update from translation team.
651 2009-03-16 Ulrich Drepper <drepper@redhat.com>
653 * include/dirent.h: Yet more changes to match sort function type
655 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
656 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
657 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
659 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
661 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
663 2009-03-16 Ulrich Drepper <drepper@redhat.com>
665 * nscd/connections.c (restart): Try to preserve the process name
666 by reading the /proc/self/exe symlink and using the return name.
667 Patch by Jeff Bastian <jbastian@redhat.com>.
669 2009-03-15 Ulrich Drepper <drepper@redhat.com>
672 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
673 if we are not loading a new audit library.
674 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
675 Only use profiling trampoline for auditing if we are not relocating
677 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
678 * elf/rtld.c: Likewise.
679 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
681 * elf/rtld.c (dl_main): Extend help message for --audit option.
684 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
685 alphasort64, versionsort, and versionsort64 to POSIX 2008.
686 * dirent/alphasort.c: Adjust implementation to type change.
687 * dirent/alphasort64.c: Likewise.
688 * dirent/scandir.c: Likewise.
689 * dirent/versionsort.c: Likewise.
690 * dirent/versionsort64.c: Likewise.
691 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
693 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
697 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
698 correctly. Set segleft member in output as required.
699 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
700 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
703 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
704 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
705 * inet/Makefile (tests): Add tst-inet6_rth.
706 * inet/tst-inet6_rth.c: New file.
709 * string/strlen.c (strlen): Fix omission in the expression to test
712 2009-03-14 Ulrich Drepper <drepper@redhat.com>
714 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
716 * elf/dl-runtime.c (reloc_offset): Define.
717 (reloc_index): Define.
718 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
719 (_dl_fixup_profile): Likewise. Use reloc_index instead of
720 computing index from reloc_offset.
721 (_dl_call_pltexit): Likewise.
722 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
723 the relocation index to _dl_fixup.
724 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
726 * sysdeps/x86_64/dl-runtime.c: New file.
729 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
730 alignment of La_x86_64_regs. Store xmm parameters.
731 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
734 * string/strverscmp.c (__strverscmp): Fix case of different digits
735 in fractional part of string.
736 Patch by Jingyu Liu <jyliu@fortinet.com>.
737 * string/Makefile (tests): Add tst-svc2.
738 * string/tst-svc2.c: New file.
740 * string/strverscmp.c (__strverscmp): Optimize size of tables.
742 * locale/iso-639.def: Add Min Nan.
744 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
747 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
749 2009-03-14 Ulrich Drepper <drepper@redhat.com>
751 * elf/dl-sysdep.c (auxvars): Compress data structure.
753 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
754 STT_GNU_IFUNC handling.
755 (elf_machine_rela): Likewise.
757 2009-03-13 Ulrich Drepper <drepper@redhat.com>
759 * config.h.in (USE_MULTIARCH): Define.
760 * configure.in: Handle --enable-multi-arch.
761 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
762 (_dl_fixup_profile): Likewise.
763 * elf/do-lookup.c (dl_lookup_x): Likewise.
764 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
765 * elf/elf.h (STT_GNU_IFUNC): Define.
766 * include/libc-symbols.h (libc_ifunc): Define.
767 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
768 framework in init-arch.h to get CPUID values.
769 * sysdeps/x86_64/multiarch/Makefile: New file.
770 * sysdeps/x86_64/multiarch/init-arch.c: New file.
771 * sysdeps/x86_64/multiarch/init-arch.h: New file.
772 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
774 * config.make.in (experimental-malloc): Define.
775 * configure.in: Handle --enable-experimental-malloc.
776 * malloc/Makefile: Handle experimental-malloc flag.
777 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
778 * malloc/arena.c: Likewise.
779 * malloc/hooks.c: Likewise.
780 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
782 2009-03-11 Ulrich Drepper <drepper@redhat.com>
784 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
785 prediction. A few size optimizations.
787 2009-03-10 Ulrich Drepper <drepper@redhat.com>
789 * time/tzset.c: Optimize a bit for size.
791 2009-03-10 Jakub Jelinek <jakub@redhat.com>
793 * include/stdio.h (fmemopen): Add libc_hidden_proto.
794 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
796 * elf/sprof.c: Avoid warning about multi-line comment.
798 2009-03-10 Ulrich Drepper <drepper@redhat.com>
800 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
802 * time/tst-posixtz.c: Add tests for quoted timezone names.
804 2009-03-10 Jakub Jelinek <jakub@redhat.com>
806 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
807 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
808 200809L instead of 200112L.
809 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
810 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
812 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
813 instead of __quick_exit_funcs to __run_exit_handlers.
814 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
815 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
816 (__cxa_at_quick_exit): Remove attribute_hidden.
817 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
818 to __run_exit_handlers.
819 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
822 2009-03-10 Ulrich Drepper <drepper@redhat.com>
824 * po/id.po: Update from translation team.
826 2009-02-18 Jakub Jelinek <jakub@redhat.com>
828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
829 .machine push; .machine "power6" and .machine pop around mtfsf
830 insns outside of _ARCH_PWR6 define.
831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
836 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
837 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
838 relax_fenv_state): Likewise.
840 2009-03-08 Ulrich Drepper <drepper@redhat.com>
842 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
844 (static-only-routines): Add at_quick_exit.
845 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
847 * stdlib/quick_exit.c: New file.
848 * stdlib/at_quick_exit.c: New file.
849 * stdlib/cxa_at_quick_exit.c: New file.
850 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
852 (__internal_atexit): New function.
853 (__new_exitfn): Now takes parameter to point to the list to use.
854 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
855 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
856 (exit): ...here. Just call __run_exit_handlers appropriately.
857 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
858 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
859 * stdlib/on_exit.c: Adjust call to __new_exitfn.
860 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
862 * po/id.po: Update from translation team.
864 2009-03-07 Ulrich Drepper <drepper@redhat.com>
866 * po/ru.po: Update from translation team.
868 2009-03-04 Ulrich Drepper <drepper@redhat.com>
870 * po/nl.po: Update from translation team.
872 2009-03-03 Ulrich Drepper <drepper@redhat.com>
874 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
875 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
876 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
877 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
878 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
879 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
880 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
882 * po/pl.po: Update from translation team.
884 2009-03-02 Ulrich Drepper <drepper@redhat.com>
887 * sysdeps/unix/sysv/linux/fallocate.c: New file.
888 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
889 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
890 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
891 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
892 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
893 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
895 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
896 Add fallocate and fallocate64.
898 * io/fcntl.h: Pretty printing.
900 2009-03-02 Richard Guenther <rguenther@suse.de>
902 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
903 attribute also for non-C99 inline semantics variant.
905 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
907 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
908 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
909 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
910 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
916 2009-03-02 Ulrich Drepper <drepper@redhat.com>
918 * po/cs.po: Update from translation team.
920 2009-02-28 Ulrich Drepper <drepper@redhat.com>
922 * po/bg.po: Update from translation team.
923 * po/sv.po: Likewise.
924 * po/fi.po: Likewise.
925 * po/vi.po: Likewise.
927 2009-02-27 Roland McGrath <roland@redhat.com>
929 * Makeconfig (%.v.i): Depend on Makeconfig.
930 Exclude % lines from initial #-comment removal.
932 2009-02-27 Ulrich Drepper <drepper@redhat.com>
934 * po/ko.po: Update from translation team.
936 2009-02-26 Roland McGrath <roland@redhat.com>
938 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
939 avoids unused warning.
941 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
942 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
944 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
945 sys/ucontext.h and asm/elf.h. Include sys/user.h.
946 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
947 and asm/user.h. Include asm/ptrace.h.
948 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
949 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
950 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
952 (start_thread): Don't undefine.
953 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
956 2009-02-26 Ulrich Drepper <drepper@redhat.com>
958 * wctype/wctype.h: The *_l functions are in POSIX 2008.
959 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
960 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
961 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
962 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
964 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
965 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
966 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
967 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
968 _SC_THREAD_ROBUST_PRIO_PROTECT.
969 * posix/unistd.h: fexecve is in POSIX 2008.
970 * time/time.h: strftime_l is in POSIX 2008.
971 * io/sys/stat.h: futimens is in POSIX 2008.
972 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
973 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
974 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
975 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
976 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
977 open_memstream, and vdprintf are in POSIX 2008.
979 2009-02-25 Ulrich Drepper <drepper@redhat.com>
981 * include/features.h: Define macros for XPG7/POSIX 2008.
982 * ctype/ctype.h: The *_l functions are in POSIX 2008.
983 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
985 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
986 * locale/xlocale.h: Define locale_t type.
987 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
988 in POSIX 2008. Don't define locale_t here.
989 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
990 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
991 UTIME_OMIT only with __USE_ATFILE.
992 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
993 * stdio-common/psiginfo.c: New file.
994 * stdio-common/psiginfo-data.h: New file.
995 * stdio-common/psiginfo-define.h: New file.
996 * stdio-common/Makefile (routines): Add psiginfo.
997 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
998 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
999 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1000 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1001 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1002 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1003 * io/sys/stat.h: Move mknodat definition into same conditional as
1005 * time/sys/time.h: futimesat is not among the functions accepted
1006 into the POSIX standard.
1008 * include/features.h: If no feature selection given and we select
1009 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1010 * posix/Versions: Export __posix_getopt.
1011 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1012 Use it to alternatively initialize __posixly_correct.
1013 (_getopt_internal_r): Take addition parameter. Pass on to
1015 (_getopt_internal): Take addition parameter. Pass on to
1017 (getopt): Pass additional zero to _getopt_internal.
1018 (__posix_getopt): New function.
1019 * posix/getopt.h: Add redirection for getopt.
1020 * posix/getopt1.c (getopt_long): Pass additional zero to
1022 (getopt_long_only): Likewise.
1023 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1024 (_getopt_long_only_r): Likewise.
1025 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1028 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1030 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1031 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1032 * sysdeps/posix/sysconf.c (__sysconf): Handle
1033 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1034 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1036 2009-02-24 Roland McGrath <roland@redhat.com>
1039 * README.template: Reworded not to use substituted version number.
1041 * README: ... here (no longer generated).
1042 * Makefile (README): Target removed.
1044 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1046 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1047 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1050 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1052 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1054 2009-02-22 Ulrich Drepper <drepper@redhat.com>
1056 * po/bg.po: Update from translation team.
1058 2009-02-16 Jakub Jelinek <jakub@redhat.com>
1060 * stdlib/monetary.h: Uglify function parameter names.
1061 * sunrpc/rpc/pmap_clnt.h: Likewise.
1062 * sunrpc/rpc/svc.h: Likewise.
1063 * sunrpc/rpc/xdr.h: Likewise.
1064 * sunrpc/rpc/clnt.h: Likewise.
1065 * resolv/netdb.h: Likewise.
1066 * resolv/arpa/nameser.h: Likewise.
1067 * resolv/resolv.h: Likewise.
1068 * argp/argp.h: Likewise.
1069 * locale/langinfo.h: Likewise.
1070 * io/sys/stat.h: Likewise.
1071 * posix/spawn.h: Likewise.
1072 * nis/rpcsvc/nislib.h: Likewise.
1073 * malloc/obstack.h: Likewise.
1074 * sysdeps/ia64/bits/link.h: Likewise.
1075 * sysdeps/i386/bits/link.h: Likewise.
1076 * sysdeps/s390/bits/link.h: Likewise.
1077 * sysdeps/powerpc/bits/link.h: Likewise.
1078 * sysdeps/x86_64/bits/link.h: Likewise.
1079 * sysdeps/sparc/bits/link.h: Likewise.
1080 * sysdeps/sh/bits/link.h: Likewise.
1081 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1082 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1083 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1084 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1086 2008-12-01 Fredrik Unger <fred@tree.se>
1088 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1089 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1090 _FP_UNPACK_RAW_2, fix up first argument.
1092 2009-02-15 Ulrich Drepper <drepper@redhat.com>
1094 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1095 (GET_NPROCS_PARSER): Change parameters and use next_line.
1096 (__get_nprocs): Rewrite to not use stdio routines.
1097 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1098 Change parameters and use next_line.
1100 2009-02-13 Ulrich Drepper <drepper@redhat.com>
1103 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1104 Change mempool_alloc prototype.
1105 * nscd/mem.c (gc): Don't handle mem_in_flight.
1106 (mempool_alloc): Third parameter now only indicates whether this is the
1107 first call (to allocate data) or not. If it is, get db rdlock.
1108 Release it on error. Don't handle mem_in_flight.
1109 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1110 Adjust third parameter of mempool_alloc calls.
1111 Nothing to do here in case mempool_alloc fails.
1112 Avoid local variable shadowing parameter. No need to get db rdlock
1113 before calling cache_add.
1114 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1115 no mem_in_flight array anymore.
1116 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1117 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1118 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1119 in case mempool_alloc fails. No need to get db rdlock before calling
1121 * nscd/hstcache.c (cache_addhst): Likewise.
1122 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1123 * nscd/servicescache.c (cache_addserv): Likewise.
1124 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1126 2009-02-11 Ulrich Drepper <drepper@redhat.com>
1128 * po/lt.po: Update from translation team.
1130 2009-02-10 Ulrich Drepper <drepper@redhat.com>
1132 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1133 defined, allow additional data to be added using the optional
1134 MORE_ELF_HEADER_DATA macro.
1135 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1136 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1138 2009-02-08 Ulrich Drepper <drepper@redhat.com>
1140 * include/atomic.h: Define catomic_and if not already defined.
1141 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1142 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1144 2009-02-07 Ulrich Drepper <drepper@redhat.com>
1146 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1148 (_int_realloc): Likewise. Third argument is now padded size
1149 All _int_* functions are now static.
1151 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1152 * malloc/arena.c: Likewise.
1153 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1156 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1159 * malloc/malloc.c: Add branch prediction for use of the hooks.
1161 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1163 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1166 * bits/confname.h: Add SUSv7 macros for getconf environments.
1167 * bits/environments.h: Likewise.
1168 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1169 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1170 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1171 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1172 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1173 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1174 * posix/getconf.c: Likewise.
1175 * posix/sysconf.c: Likewise.
1176 * sysdeps/posix/sysconf.c: Likewise.
1177 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1180 2009-01-16 Petr Baudis <pasky@suse.cz>
1183 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1184 even if we currently have zero nscount.
1186 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1189 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1190 the input line is too long.
1192 * po/Makefile (libc.pot): Add f_print as function taking c-format
1195 * debug/xtrace.sh: Unify translatable messages.
1196 * elf/ldd.bash.in: Likewise.
1197 * elf/sprof.c: Likewise.
1198 * locale/programs/locale.c: Likewise.
1199 * malloc/memusage.sh: Likewise.
1200 * nss/getent.c: Likewise.
1202 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1204 * debug/pcprofiledump.c (print_version,
1205 argp_program_version_hook): New function.
1206 * elf/ldconfig.c (more_help): New function.
1208 * elf/sln.c (usage): New function.
1209 (main): Support --help and --version.
1210 * malloc/memusagestat.c (print_version): New function.
1211 (argp_program_version_hook): New variable.
1212 * nscd/nscd.c (more_help): New function.
1214 * posix/getconf.c (main): Send --version output to stdout.
1216 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1217 arguments. All callers changed.
1218 (print_version): New function.
1219 (parseargs): Support --help and --version.
1220 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1222 (print_version): New function.
1223 (main): Use getopt_long. Support --help and --version.
1224 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1227 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1229 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1230 (update_data): Fix handling of wrapping back
1231 to the beginning of the buffer.
1234 * stdio-common/psignal.c (psignal): Fix test for empty string.
1236 2009-02-05 Ulrich Drepper <drepper@redhat.com>
1238 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1239 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1240 move _null_auth to .rodata.
1242 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1245 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1247 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1248 today than when the original code was written. Use larger
1249 buffers. This also makes it unnecessary to have stat information,
1250 if this causes extra efforts.
1251 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1254 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
1256 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1258 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1259 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1260 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1261 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1262 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1263 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1265 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1267 * po/ru.po: Update from translation team.
1269 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1271 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1272 Add _tid slot to maintain consistency with kernel.
1274 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1276 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1277 incomplete characters at end of input buffer.
1278 * libio/Makefile (tests): Add tst-fgetwc.
1279 * libio/tst-fgetwc.c: New file.
1280 * libio/tst-fgetwc.input: New file.
1282 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
1284 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1286 2009-02-02 Ulrich Drepper <drepper@redhat.com>
1289 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1290 *OUTBUFSTART unless the whole output fit into the buffer.
1291 * iconv/Makefile (tests): Add tst-iconv4.
1292 * iconv/tst-iconv4.c: New file.
1294 2009-02-01 Ulrich Drepper <drepper@redhat.com>
1296 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1297 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1299 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
1301 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1302 newer linker scripts.
1304 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1307 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1308 inotify_rm_watch should have type int.
1310 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1312 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1313 Make aligned_restore_vmx a local symbol.
1314 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1317 2009-01-30 Andreas Jaeger <aj@suse.de>
1319 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1320 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1321 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1322 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1323 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1324 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1325 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1327 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1330 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1331 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1333 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1337 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1339 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1341 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1343 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1344 memcpy instead of memcmp.
1345 (_dl_setup_pointer_guard): Likewise.
1347 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1349 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1350 manipulated brk, use malloc_printerr.
1351 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1354 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1356 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1357 rindex): For C++ add inlines so that they can be recognized as
1359 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1361 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1362 Jakub Jelinek <jakub@redhat.com>
1364 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1365 * wcsmbs/wchar.h: Likewise.
1367 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1369 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1370 (stackinfo_sub_sp): Define.
1372 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1375 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1376 * include/alloca.h (alloca_account): Define.
1377 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1378 (stackinfo_sub_sp): Define.
1380 * nscd/connections.c (nscd_init): If database file access fails
1381 check whether this is due to permission problems and bail in that
1385 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1386 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1388 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1390 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1391 Add "t" to clobber list.
1392 (INTERNAL_SYSCALL_NCS): Likewise.
1394 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1396 * nss/getent.c (print_networks): Don't print comma between aliases.
1398 2009-01-23 Ulrich Drepper <drepper@redhat.com>
1400 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1402 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1404 * misc/Makefile (tests): Add bug-hsearch1.
1405 * misc/bug-hsearch1.c: New file.
1407 2009-01-22 Roland McGrath <roland@redhat.com>
1409 * Makeconfig (%.v.i): Strip trailing # comments,
1410 not only whole-line comments.
1412 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1414 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1415 one parameter. If non-NULL use it to initialize return value.
1416 (_dl_setup_pointer_guard): New function.
1417 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1418 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1419 * elf/rtld.c (security_init): Pass _dl_random to
1420 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1422 * elf/dl-sysdep.c (_dl_random): New variable.
1423 (_dl_sysdep_start): Handle AT_RANDOM.
1424 (_dl_show_auxv): Likewise.
1425 * elf/dl-support.c (_dl_random): New variable.
1426 (_dl_aux_init): Handle AT_RANDOM.
1427 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1428 to _dl_setup_stack_chk_guard.
1430 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1432 2009-01-10 Roland McGrath <roland@redhat.com>
1434 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1436 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1438 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1441 * nss/nss_files/files-parse.c (strtou32): New function.
1442 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1443 across 32-bit and 64-bit platforms.
1444 (INT_FIELD_MAYBE_NULL): Likewise.
1446 2009-01-08 Jakub Jelinek <jakub@redhat.com>
1449 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1450 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1451 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1454 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
1457 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1458 being NULL also if there are no backreferences.
1459 * posix/rxspencer/tests: Add testcases.
1461 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
1464 * posix/bug-regex17.c: Add testcases.
1465 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1468 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1470 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1471 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1472 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1473 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1475 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1476 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1477 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1478 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1479 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1480 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1482 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
1484 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1485 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1486 re_string_skip_chars, re_string_reconstruct): Likewise.
1487 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1489 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
1491 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1492 adjust the buffer alignment.
1494 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1496 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1497 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1500 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1501 flavor to description only when flavor is not NULL.
1503 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1504 mutex after SIGIO/SIGURG lookup loop.
1506 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1508 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1510 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1512 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1515 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1517 * sysdeps/unix/sysv/linux/kernel-features.h
1518 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1520 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1521 if no output is written.
1523 * version.h: Bump to 2.10 development.
1525 * posix/getconf.c: Update copyright year.
1526 * nss/getent.c: Likewise.
1527 * iconv/iconvconfig.c: Likewise.
1528 * iconv/iconv_prog.c: Likewise.
1529 * elf/ldconfig.c: Likewise.
1530 * catgets/gencat.c: Likewise.
1531 * csu/version.c: Likewise.
1532 * elf/ldd.bash.in: Likewise.
1533 * elf/sprof.c (print_version): Likewise.
1534 * locale/programs/locale.c: Likewise.
1535 * locale/programs/localedef.c: Likewise.
1536 * nscd/nscd.c (print_version): Likewise.
1537 * debug/xtrace.sh: Likewise.
1538 * malloc/memusage.sh: Likewise.
1539 * malloc/mtrace.pl: Likewise.
1540 * debug/catchsegv.sh: Likewise.
1542 2008-12-29 Mike Frysinger <vapier@gentoo.org>
1544 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1547 2008-12-29 Ulrich Drepper <drepper@redhat.com>
1549 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1550 gethostbyname4_r function call succeeded, just leave the loop.
1553 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1555 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1556 * wctype/Makefile (tests): Add bug-wctypeh.
1557 * wctype/bug-wctypeh.c: New file.
1559 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1560 LOCALDOMAIN is defined.
1561 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1563 * sysdeps/x86_64/bits/select.h: New file.
1565 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1567 2008-12-21 Bruno Haible <bruno@clisp.org>
1570 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1571 if no output is written.
1573 2008-12-13 Klaus Dittrich <kladit@arcor.de>
1575 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1576 libc internal symbol __dup2 to avoid access through the PLT.
1578 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1581 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1582 available only for __USE_GNU.
1584 * inet/Makefile (tests): Add tst-getni2.
1585 * inet/tst-getni2.c: New file.
1588 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1589 NULL when NI_NAMEREQD is set.
1590 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1591 * inet/Makefile (tests): Add tst-getni1.
1592 * inet/tst-getni1.c: New file.
1594 2008-12-03 Petr Baudis <pasky@suse.cz>
1597 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1598 instead of prune_lock.
1599 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1600 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1602 2008-12-07 Ulrich Drepper <drepper@redhat.com>
1604 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1607 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1610 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1611 after reading name server list.
1614 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1615 handling for host name aliases.
1617 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1619 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1620 instead of doing things manually.
1622 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1624 * posix/regex_internal.h (build_wcs_upper_buffer):
1625 Return type is reg_error_t.
1627 2008-12-05 Ulrich Drepper <drepper@redhat.com>
1629 * posix/globtest.sh: Use mktemp to create temporary file and
1632 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1634 (__CPU_CLR_S): Likewise.
1635 (__CPU_ISSET_S): Likewise.
1637 2008-12-05 Joseph Myers <joseph@codesourcery.com>
1638 Ulrich Drepper <drepper@redhat.com>
1640 * scripts/firstversion.awk: Use custom comparison function to compare
1642 * scripts/versions.awk: Use sort invocation which can handle
1643 multi-digit sub-version numbers.
1645 2008-12-04 Ulrich Drepper <drepper@redhat.com>
1647 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1648 * locale/iso-639.def: Add Chhattisgarhi entry.
1650 2008-12-02 Ulrich Drepper <drepper@redhat.com>
1652 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1654 (_nss_dns_gethostbyname4_r): Likewise.
1655 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1656 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1657 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1658 the no_data variable.
1660 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1661 information at the correct index.
1663 * socket/sys/socket.h: Declare accept4.
1664 * socket/accept4.c: New file.
1665 * sysdeps/unix/sysv/linux/accept4.c: New file.
1666 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1667 * socket/Makefile (routines): Add accept4.
1668 * socket/Versions: Export accept4 with version GLIBC_2.10.
1669 * socket/paccept.c: Removed.
1670 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1671 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1672 * Versions.def: Define GLIBC_2.10 for libc.
1673 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1675 * nscd/connections.c: Use accept4.
1677 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1679 2008-12-01 Ulrich Drepper <drepper@redhat.com>
1681 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1684 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1686 * stdlib/Makefile (tests): Add tst-unsetenv1.
1687 * stdlib/tst-unsetenv1.c: New file.
1689 2008-11-29 Ulrich Drepper <drepper@redhat.com>
1691 * login/utmp_file.c (file_writable): New variable.
1692 (setutent_file): Don't try to open file for writing.
1693 (pututline_file): Before writing, make descriptor writable if
1696 2008-11-26 Ulrich Drepper <drepper@redhat.com>
1698 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1699 to IPv4 or IPv6 if an interface has been found.
1701 2008-11-26 Roland McGrath <roland@redhat.com>
1703 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1704 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1706 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1707 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1708 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1710 * elf/elf.h (NT_386_IOPERM): New macro.
1711 (NT_PPC_VSX): New macro.
1713 2008-11-25 Roland McGrath <roland@redhat.com>
1715 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1716 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1717 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1718 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1719 Subdirectories moved to ports repository.
1720 * configure.in (base_machine): Remove alpha case.
1722 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1724 * sysdeps/mach/strerror_l.c: New file.
1726 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1729 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1730 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1732 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1733 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1734 (relax_fenv_state): Same as above.
1735 (FPSCR_29): Reserve bit in ISA 2.05.
1736 (FPSCR_NI): Provide define for compat.
1737 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1739 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1741 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1742 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1743 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1744 access to hwcap to account for hwcap size increase to uint64_t.
1745 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1748 (*setcontext): Likewise.
1749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1754 (*setcontext): dynamically select mtfsf insn based on
1755 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1756 increase to uint64_t.
1757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1758 (*swapcontext): dynamically select mtfsf insn based on
1759 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1760 increase to uint64_t.
1761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1766 (*setcontext): dynamically select mtfsf insn based on
1767 PPC_FEATURE_HAS_DFP.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1769 (*swapcontext): dynamically select mtfsf insn based on
1770 PPC_FEATURE_HAS_DFP.
1772 2008-11-13 Ulrich Drepper <drepper@redhat.com>
1774 * version.h: Bump for 2.9 release.
1775 * include/features.h (__GLIBC_MINOR__): Bump to 9.
1778 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1779 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1782 2008-11-11 Ulrich Drepper <drepper@redhat.com>
1785 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1786 unknown request types for now.
1788 2008-11-11 Roland McGrath <roland@redhat.com>
1790 * sysdeps/x86_64/configure: New file.
1792 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1793 * configure: Regenerated.
1795 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1797 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1798 correct instruction to remove the stack frame.
1800 2008-11-03 Michael Matz <matz@suse.de>
1802 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1803 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1805 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1807 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1810 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1811 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1812 of the thread variable instead of void *.
1813 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1814 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1815 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1816 __libc_tsd_define arguments.
1817 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1818 __libc_tsd_address arguments. Remove union hack.
1819 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1820 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1821 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1822 Adjust __libc_tsd_{set,get} arguments.
1823 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1824 __libc_tsd_define arguments.
1825 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1827 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1828 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1829 (LOCALE): Adjust __libc_tsd_define arguments.
1830 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1832 (LOCALE): Adjust __libc_tsd_define arguments.
1833 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1835 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1838 2008-11-02 Ulrich Drepper <drepper@redhat.com>
1840 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1841 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1843 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1846 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1848 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1849 Ulrich Drepper <drepper@redhat.com>
1851 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1852 definition for GCC 3.1 and later.
1854 2008-10-31 Jakub Jelinek <jakub@redhat.com>
1856 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1857 refetch dtv, as it might have changed.
1858 * elf/Makefile: Add rules to build and run tst-tls18.
1859 * elf/tst-tls18.c: New test.
1860 * elf/tst-tlsmod18a.c: New file.
1862 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
1865 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1867 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1870 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1873 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1874 Fix length of copy operation.
1876 2008-10-02 Pierre Habouzit <madcoder@debian.org>
1878 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1879 and fix its calling convention.
1881 2008-10-07 Andreas Schwab <schwab@suse.de>
1884 * resolv/res_send.c (send_vc): Fix last change.
1885 (send_dg): Align here as well.
1887 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1889 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1890 return value in case rlimit is RLIM_INFINITY.
1893 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1895 * resource/Makefile (tests): Add bug-ulimit1.
1896 * resource/bug-ulimit1.c: New file.
1899 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1900 without dot. Properly terminate the string with a null byte.
1901 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1904 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1906 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1910 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1912 2008-10-30 Ulrich Drepper <drepper@redhat.com>
1914 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1915 abort if there is no initgroups_dyn function.
1917 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1918 result if any of the queries really provided an answer.
1920 2008-10-28 Ulrich Drepper <drepper@redhat.com>
1922 * po/lt.po: Update from translation team.
1924 2008-10-26 Ulrich Drepper <drepper@redhat.com>
1926 * po/id.po: Update from translation team.
1928 2008-10-24 Ulrich Drepper <drepper@redhat.com>
1930 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1931 Fix tests for existence of second reply.
1933 2008-10-23 Ulrich Drepper <drepper@redhat.com>
1935 * po/id.po: New file.
1936 Contributed by the Indonesian translation team.
1938 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1940 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1943 2008-10-17 Jakub Jelinek <jakub@redhat.com>
1945 * elf/Makefile: Add rules to build and run tst-tls17.
1946 * elf/tst-tls17.c: New test.
1947 * elf/tst-tlsmod17a.c: New file.
1948 * elf/tst-tlsmod17b.c: Likewise.
1950 2008-10-17 Ulrich Drepper <drepper@redhat.com>
1952 * stdlib/divmod_1.c: Use correct type for dummy variable.
1953 * stdlib/mod_1.c: Likewise.
1955 2008-10-16 Ulrich Drepper <drepper@redhat.com>
1957 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1959 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1961 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1962 __nonnull order for C++.
1963 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1964 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1966 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1968 * stdlib/longlong.h: Update from GCC.
1970 2008-10-09 Jakub Jelinek <jakub@redhat.com>
1971 David S. Miller <davem@davemloft.net>
1973 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1974 make sure any registers used with 64-bit 'branch-on-register'
1975 instructions have their top 32-bits clear.
1976 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1977 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1979 2008-09-18 Andreas Schwab <schwab@suse.de>
1982 * resolv/res_send.c (send_vc): Fix use of unaligned address.
1983 Properly handle partial reads.
1985 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1987 * elf/elf.h (STO_MIPS_PLT): New.
1989 (R_MIPS_JUMP_SLOT): New.
1990 (R_MIPS_NUM): Redefine to 128.
1991 (DT_MIPS_PLTGOT): New.
1992 (DT_MIPS_RWPLT): New.
1993 (DT_MIPS_NUM): Redefine to 0x35.
1995 2008-10-01 Ulrich Drepper <drepper@redhat.com>
1997 * timezone/africa: Update from tzdata2008f.
1998 * timezone/asia: Likewise.
1999 * timezone/australasia: Likewise.
2000 * timezone/europe: Likewise.
2001 * timezone/leapseconds: Likewise.
2002 * timezone/northamerica: Likewise.
2003 * timezone/southamerica: Likewise.
2004 * timezone/zone.tab: Likewise.
2006 2008-09-30 Ulrich Drepper <drepper@redhat.com>
2008 * nscd/connections.c: Disable use of paccept for now.
2010 2008-09-29 Ulrich Drepper <drepper@redhat.com>
2012 * socket/Versions: Remove paccept export for GLIBC_2.9.
2013 * socket/Makefile (routines): Remove paccept.
2014 * socket/sys/socket.h: Remove paccept declaration.
2016 * po/sv.po: Update from translation team.
2018 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2020 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2021 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2023 2008-09-16 Ulrich Drepper <drepper@redhat.com>
2025 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2026 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2028 2008-09-15 Ulrich Drepper <drepper@redhat.com>
2030 * sunrpc/rpc/svc.h: Declare svcfd_create.
2031 Patch by Michael Solberg <msolberg@redhat.com>.
2033 2008-09-12 Flavio Leitner <fleitner@redhat.com>
2034 Ulrich Drepper <drepper@redhat.com>
2036 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2038 (public_pVALLOc): Likewise.
2040 2008-09-02 Andreas Jaeger <aj@suse.de>
2042 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2045 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2048 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2050 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2052 * Makefile (check-data): Check data directory in add-ons.
2053 * elf/Makefile (check-data): Likewise.
2055 2008-08-18 Roland McGrath <roland@redhat.com>
2057 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2058 * configure: Regenerated.
2059 * config.make.in (cflags-cpu): New substituted variable.
2060 (with-cpu): Variable removed.
2061 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2063 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2066 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2067 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2068 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2069 redundant. Functions which call floating point assembler operations
2070 should go into a sysdeps powerpc/fpu directory.
2072 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2074 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2075 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2077 2008-08-14 Ulrich Drepper <drepper@redhat.com>
2079 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2081 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2082 change related to AT_EXECFN. We cannot use that string.
2083 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2085 * elf/dl-support.c: Remove _dl_execfn variable.
2086 (_dl_aux_init): Remove handling of AT_EXECFN.
2087 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2088 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2090 2008-08-13 Ulrich Drepper <drepper@redhat.com>
2093 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2094 byte gets added to writes and seeks from the end use the length of
2095 the buffer and not the currently terminating NUL byte.
2098 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2099 Set to true if locking failed.
2100 (getutid_r_file): Adjust caller.
2101 (pututline_file): Likewise. Return NULL in this case.
2102 Patch mostly by halesh.s@gmail.com.
2104 2008-08-12 Ulrich Drepper <drepper@redhat.com>
2107 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2109 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2111 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2114 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2115 macro since it is now available in elf/dynamic-link.h.
2117 2008-08-12 Roland McGrath <roland@frob.com>
2119 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2120 in case used outside of libc.
2121 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2123 2008-08-11 Ulrich Drepper <drepper@redhat.com>
2125 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2126 directly instead of going through dn_comp.
2128 2008-08-11 Aurelien Jarno <aurel32@debian.org>
2130 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2131 Fix asm constraints.
2133 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2136 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2137 (IPV6_PMTUDISC_PROBE): Likewise.
2139 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2142 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2144 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
2145 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2148 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2149 Added the members 'vsx' and 'arch_2_06'.
2150 (_dl_powerpc_platforms): Add the member 'power7'.
2151 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2152 to reflect the changes required by VSX and ISA 2.06.
2153 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2155 Defined PPC_PLATFORM_POWER7.
2156 (_dl_string_platform): Add support for POWER7.
2157 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2158 capability and ISA 2.06.
2160 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2163 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2164 macro to detect use of 128 bit long double.
2165 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2167 2008-08-05 Ulrich Drepper <drepper@redhat.com>
2169 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2172 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2174 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2175 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2177 2008-08-03 Ulrich Drepper <drepper@redhat.com>
2179 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2180 guaranteed to be large enough to read inotify event. Ignore
2181 EAGAIN error. Better error message. Add branch predicition.
2182 (main_loop_epoll): Likewise.
2184 2008-08-02 Roland McGrath <roland@frob.com>
2186 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2187 Add memory clobbers.
2189 2008-08-02 Ulrich Drepper <drepper@redhat.com>
2191 * manual/arith.texi: Avoid @strong{Note:}.
2192 * manual/creature.texi: Likewise.
2193 * manual/filesys.texi: Likewise.
2194 * manual/math.texi: Likewise.
2195 * manual/memory.texi: Likewise.
2196 * manual/resource.texi: Likewise.
2197 * manual/syslog.texi: Likewise.
2198 * manual/time.texi: Likewise.
2200 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2203 2008-08-01 Ulrich Drepper <drepper@redhat.com>
2205 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2206 new epoll_create1 interface.
2207 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2208 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2209 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2211 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2212 (NS_GET32): Likewise.
2214 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2217 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2218 use the AT_EXECFN value if it is no absolute path.
2219 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2222 * Versions.def: Add GLIBC_2.9 to libresolv.
2223 * include/resolv.h: Remove hidden proto declarations for __ns_*
2224 functions. Add them for __dn_count_labels and __p_secstodate.
2225 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2226 Define ns_msg_getflags macro here.
2227 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2229 * resolv/Versions: Export functions from <arpa/nameser.h> from
2230 libresolv in version GLIBC_2.9.
2231 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2233 * resolv/ns_netint.c: Likewise.
2234 * resolv/ns_parse.c: Likewise.
2235 * resolv/ns_print.c: Likewise.
2236 * resolv/ns_samedomain.c: Likewise.
2237 * resolv/ns_ttl.c: Likewise.
2238 * resolv/arpa/nameser_compat.h: Likewise.
2239 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2241 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2242 instead of ns_get16.
2243 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2244 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2245 (gaih_getanswer_slice): Likewise.
2246 * resolv/Makefile (libresolv-routines): Add ns_date.
2247 * resolv/ns_date.c: New file.
2249 * elf/Makefile (check-localplt.out): Also check libresolv and
2252 2008-07-31 Ulrich Drepper <drepper@redhat.com>
2254 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2257 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2259 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2260 buffer passed to NSS functions.
2262 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2264 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2267 * misc/syslog.c (openlog_internal): Fix compile problem.
2269 2008-07-28 Roland McGrath <roland@redhat.com>
2271 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2273 2008-07-28 Ulrich Drepper <drepper@redhat.com>
2275 * io/ftw.c (add_object): Remove inline to avoid warning.
2277 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2279 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2280 Use it instead of locally defined resplen2 variable.
2281 (res_nsend): Adjust for __libc_res_nsend interface change.
2282 (send_vc): Initialize *resplen2 if necessary. Read length of
2283 package into an appropriately aligned variable. Store converted length
2284 in new variable and use it appropriately.
2285 Add branch prediction help.
2286 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2287 and pass it on to __libc_res_nsend. Adjust all callers.
2288 (__libc_res_nsearch): Likewise.
2289 (__libc_res_nqeurydomain): Likewise.
2290 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2292 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2293 Define resplen2 variable and pass it to __libc_res_nsearch and then
2295 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2296 Add branch prediction.
2297 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2298 (gaih_getanswer): Don't decode second slice if first one failed due
2299 to a too small buffer. Don't let not found status of second
2300 decoder shadow results of the first.
2301 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2302 and __libc_res_nquery interface changes
2303 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2304 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2305 __libc_res_nsearch, and __libc_res_nsend.
2306 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2308 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2309 __libc_res_nsearch interface changes.
2311 2008-07-27 Ulrich Drepper <drepper@redhat.com>
2313 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2315 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2316 file descriptors with close-on-exec set.
2317 (exec_comm_child): Fix the case where the write end of the pipe is
2318 STDOUT_FILENO already. In case it is, clear close-on-exec.
2320 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2321 * io/pipe2.c: Likewise.
2322 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2323 instead of __ASSUME_PACCEPT.
2324 * include/unistd.h: Declare __have_pipe2.
2325 * libio/iopopen.c: Implement "e" flag.
2326 * libio/Makefile (tests): Add tst-popen1.
2327 * libio/tst-popen1.c: New file.
2329 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2330 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2332 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2335 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2336 success call of _IO_SEEKOFF or calls which failed because the
2337 descriptor is for a pipe.
2339 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2342 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2344 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2345 F_SETFD use if we know fopen set the flag.
2347 * login/utmp_file.c (setutent_file): Minor optimization in case
2348 O_CLOEXEC is available.
2350 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2352 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2353 * elf/Makefile: Use pie-ccflag variable.
2354 * nscd/Makefile: Likewise.
2355 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2357 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2360 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2361 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2362 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2363 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2364 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2365 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2366 utmp32, utmpx32 and login32.
2367 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2368 versions of struct utmp functions to libc and libutil.
2369 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2370 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2371 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2372 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2373 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2374 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2375 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2376 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2377 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2378 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2379 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2380 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2381 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2382 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2383 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2384 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2385 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2386 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2387 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2388 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2389 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2390 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2392 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2394 * scripts/gen-as-const.awk: Generate more widely usable code by
2395 using 64-bit arithmetic.
2397 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2398 the same treatment as narrow output code in last patch.
2400 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2403 * elf/dl-load.c (local_strdup): Remove inline.
2404 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2405 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2408 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2410 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2412 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2413 the new syscalls, too.
2415 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2416 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2419 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2420 parameter for end of buffer. If temporary copy is too large use
2422 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2424 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2425 string rewrite when allocating buffer.
2427 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2430 * nscd/connections.c (nscd_init): Clean up fcntl call.
2432 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2433 SOCK_NONBLOCK if possible.
2435 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2436 SOCK_CLOEXEC if available.
2438 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2439 __libc_clntudp_bufcreate_internal.
2440 * include/sys/socket.h: Declare __have_sock_cloexec.
2441 * socket/Makefile (aux): Add have_sock_cloexec.
2442 * socket/have_sock_cloexec.c: New file.
2443 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2444 __libc_clntudp_bufcreate.
2445 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2446 which takes an additional parameter. Create socket with non-blocking
2447 mode and close-on-exec flag set, if wanted.
2448 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2449 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2450 instead of clntudp_create. The socket has already the close-on-exec
2451 flag set if SOCK_CLOEXEC is defined.
2453 2008-07-24 Ulrich Drepper <drepper@redhat.com>
2455 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2456 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2458 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2459 non-blocking mode by using socket, paccept, and inotify_init1.
2461 * Versions.def (glibc): Add GLIBC_2.9.
2462 * io/Makefile (routines): Add dup3 and pipe2.
2463 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2464 * io/dup3.c: New file.
2465 * io/pipe2.c: New file.
2466 * posix/unistd.h: Declare dup3 and pipe2.
2467 * socket/Makefile (routines): Add paccept.
2468 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2469 * socket/paccept.c: New file.
2470 * socket/sys/socket.h: Declare paccept.
2471 * sysdeps/unix/syscalls.list: Add entry for dup3.
2472 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2473 epoll_create2 and inotify_init1.
2474 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2475 * sysdeps/unix/sysv/linux/paccept.c: New file.
2476 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2478 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2479 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2480 inotify_init1, and pipe2 entries.
2481 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2482 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2483 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2484 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2485 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2486 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2488 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2489 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2490 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2491 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2492 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2493 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2494 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2495 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2496 EPOLL_NONBLOCK. Declare epoll_create2.
2497 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2499 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2500 IN_NONBLOCK. Declare inotify_init1.
2501 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2503 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2506 * elf/elf.h: Define AT_EXECFN.
2507 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2509 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2510 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2511 if __ASSUME_AT_EXECFN is defined.
2512 (_dl_aux_init): Handle AT_EXECFN.
2513 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2515 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2516 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2517 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2518 _dl_execfn if available and avoid compatibility code if
2519 __ASSUME_AT_EXECFN is defined.
2521 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2522 _dl_discover_osversion only for older kernels.
2524 2008-07-22 Roland McGrath <roland@frob.com>
2526 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2528 2008-07-21 Roland McGrath <roland@frob.com>
2530 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2531 returned too much data out of line.
2533 2008-07-20 Ulrich Drepper <drepper@redhat.com>
2535 * locale/setlocale.c (setname): Remove inline to avoid compiler
2539 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2541 2008-07-15 Ulrich Drepper <drepper@redhat.com>
2543 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2544 doesn't manage to write anything, fail.
2546 * malloc/hooks.c (__malloc_check_init): Remove printf.
2548 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2550 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2552 2008-07-12 Ulrich Drepper <drepper@redhat.com>
2554 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2556 (main_loop_epoll): Likewise.
2558 2008-07-09 Ulrich Drepper <drepper@redhat.com>
2560 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2562 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2563 if DEBUG is defined.
2565 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2566 query. Adjust buffer size computation for padding.
2568 2008-07-08 Ulrich Drepper <drepper@redhat.com>
2570 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2571 * stdio-common/tst-setvbuf1.c: New file.
2572 * stdio-common/tst-setvbuf1.expect: New file.
2575 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2576 when selecting fully-buffered stream.
2577 Patch by Wang Xin <wxinee@gmail.com>.
2579 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2581 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2582 (__open_2): New function.
2583 (__open64_2): New alias to __open_2.
2584 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2585 (__openat_2): New function.
2586 (__openat64_2): New alias to __openat_2.
2588 2008-07-06 Ulrich Drepper <drepper@redhat.com>
2591 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2593 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2595 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2596 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2597 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2599 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2600 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2601 * sysdeps/mach/hurd/send.c (__send): Likewise.
2602 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2603 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2605 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2607 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2608 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2609 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2610 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2611 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2612 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2614 2008-06-27 Ulrich Drepper <drepper@redhat.com>
2617 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2619 Patch by Petr Baudis.
2621 2008-06-26 Ulrich Drepper <drepper@redhat.com>
2623 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2624 Patch by Peter Jones <pjones@redhat.com>.
2626 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2629 * stdlib/canonicalize.c (__realpath): readlink can write too much
2630 into the buffer on platforms without PATH_MAX.
2632 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2635 * posix/tst-regex.c (main): Rename to...
2636 (do_test): ... this. Remove cmdline option processing.
2638 (TEST_FUNCTION): Define.
2639 (CMDLINE_OPTIONS): Define.
2641 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2644 * configure.in: Add -Werror to -fstack-protector test to catch
2645 unsupported architectures.
2646 Patch by Gilles Esponasse <g.esp@free.fr>.
2648 2008-06-17 Joseph Myers <joseph@codesourcery.com>
2650 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2651 getcontext returns ENOSYS.
2653 2008-06-18 Ulrich Drepper <drepper@redhat.com>
2655 * nscd/connections.c (main_loop_poll): Fix test for read error.
2656 (main_loop_epoll): Likewise.
2658 2008-06-13 Ulrich Drepper <drepper@redhat.com>
2660 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2661 better place so it is not called when nscd is used.
2663 * nscd/connections.c: Also recognize and handle changes to the
2664 resolver configuration file.
2666 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2668 * time/strftime.c: Pass reference to tzset_called around to handle
2672 * time/strftime.c (__strftime_internal): Call tzset() only
2673 when printing timezone-dependent values.
2674 Based on a patch by Petr Baudis <pasky@suse.cz>.
2676 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2677 unconditionally use second gaih_getanswer_slice result.
2679 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2680 (getaddrinfo): RES must always be non-NULL.
2682 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2684 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2686 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2687 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2689 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2692 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2694 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2696 * nscd/connections.c (inotify_fd): New variable.
2697 (nscd_init): Try to open an inotify descriptor.
2698 If successful, watch files for databases using inotify instead of
2699 having prune threads stat the files.
2700 (nscd_run_prune): Recognize clear_cache flag being set and call
2701 prune_cache appropriately.
2702 (main_loop_poll): Add inotify descriptor to wait set and handle the
2704 (main_loop_epoll): Likewise.
2705 * nscd/cache.c (prune_cache): Don't stat files for databases if
2707 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2708 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2710 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2711 fixed-size portion of the record.
2712 * nscd/servicescache.c (cache_addserv): Likewise.
2713 * nscd/pwdcache.c (cache_addpw): Likewise.
2714 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2716 2008-06-11 Ulrich Drepper <drepper@redhat.com>
2718 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2719 out we don't use uninitialized memory.
2721 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2724 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2726 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2727 ignore T_DNAME messages.
2728 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2730 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2732 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2733 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2735 2008-06-03 Jakub Jelinek <jakub@redhat.com>
2737 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2738 instead of portstr to nscd_getserv_r. Patch by
2739 Roman Kagan <rkagan@mail.ru>.
2741 2008-05-26 Jim Meyering <meyering@redhat.com>
2743 Remove more useless "if" tests before "free".
2744 * include/inline-hashtab.h (htab_delete): Likewise.
2745 * libio/freopen.c (freopen): Likewise.
2746 * libio/freopen64.c (freopen64): Likewise.
2747 * locale/programs/ld-collate.c (collate_read): Likewise.
2748 * misc/fstab.c (libc_freeres_fn): Likewise.
2749 * posix/glob.c (globfree): Likewise.
2751 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2753 * string/Makefile (strop-tests): Add memmem.
2754 * string/test-memmem.c: New file.
2755 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2756 (test_init): Size buf1 according to BUF1PAGES.
2758 2008-05-24 Jakub Jelinek <jakub@redhat.com>
2760 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2761 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2762 (CFLAGS-scanf17.c): New.
2763 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2764 * stdio-common/scanf15.c (main): Likewise.
2765 * stdio-common/scanf16.c: New file.
2766 * stdio-common/scanf17.c: New file.
2768 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2770 * resolv/res_send.c (send_dg): If we already have one of two
2771 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2772 use the one answer insted of failing.
2774 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2776 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2777 being executed on PowerPC as the expected result exceeds IBM
2778 long double 128 __LDBL_MAX__.
2780 2008-05-21 Roland McGrath <roland@redhat.com>
2782 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2784 * Makefile (check-data): Use $(abi-name) before other guesses.
2785 Look in $(add-ons) dirs before scripts/data/.
2786 * elf/Makefile (check-data): Likewise.
2788 * scripts/soversions.awk: Grok ABI line.
2789 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2790 Emit definition for abi-name variable.
2792 2008-05-21 Ulrich Drepper <drepper@redhat.com>
2794 * string/endian.h: Define new fixed-size hto* and *toh macros only
2797 * iconvdata/Depend: Add localedata.
2799 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2801 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2803 2008-05-08 David S. Miller <davem@davemloft.net>
2805 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2807 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2808 (__SYSCALL_CLOBBERS): Remove %g* registers.
2809 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2810 (__SYSCALL_CLOBBERS): Likewise.
2811 * scripts/data/localplt-sparc-linux-gnu.data: New file.
2812 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2814 2008-05-21 Jakub Jelinek <jakub@redhat.com>
2816 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2817 (CALL_ERRNO_LOCATION): Define.
2818 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2819 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2820 (CALL_ERRNO_LOCATION): Define.
2821 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2822 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2823 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2825 2008-05-20 Ulrich Drepper <drepper@redhat.com>
2827 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2830 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2832 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2833 (FIRST_FRAME_POINTER): Define.
2835 2008-05-09 David S. Miller <davem@davemloft.net>
2837 * sysdeps/sparc/sparc64/backtrace.c: New file.
2839 2008-05-14 David S. Miller <davem@davemloft.net>
2841 * sysdeps/sparc/machine-gmon.h: New file.
2842 * sysdeps/sparc/sparc-mcount.S: Likewise.
2843 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2844 sysdep_routines in gmon directory.
2846 2008-05-19 Jakub Jelinek <jakub@redhat.com>
2848 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2850 2008-05-19 Ulrich Drepper <drepper@redhat.com>
2852 * resolv/res_query.c (__libc_res_nquery): In case one of two
2853 answer was too short don't try to read that answer's header.
2855 * resolv/res_send.c (send_dg): In case of timeout and there are
2856 two queries and one has been answered, return value indicating
2859 2008-05-18 Ulrich Drepper <drepper@redhat.com>
2861 * nscd/cache.c (cache_add): Take additional parameter specifying
2862 whether this is in response of a cache refill. Check alignment
2863 of package data. Revamp waking of pruning thread.
2864 (prune_cache): Small optimization.
2865 * nscd/nscd.h: Adjust cache_add prototypes.
2866 * nscd/aicache.c: Adjust cache_add calls.
2867 * nscd/grpcache.c: Likewise.
2868 * nscd/hstcache.c: Likewise.
2869 * nscd/initgrcache.c: Likewise.
2870 * nscd/pwdcache.c: Likewise.
2871 * nscd/servicescache.c: Likewise.
2872 * nscd/connections.c (restart): Really disable cache use before
2873 exec attempt. If it fails, reenable cache.
2874 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2875 time to max to be able to notice concurrent cache additions. Unlock
2876 prune_lock while performing gc. Afterwards compute wakeup time with
2877 current wakeup_time value in mind.
2879 2008-05-17 Ulrich Drepper <drepper@redhat.com>
2881 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2883 * nscd/mem.c (gc): Correctly determine highest used array element
2886 * nscd/mem.c (markrange): Add assert to check entries are all
2887 aligned. Small cleanup in bitmap use.
2889 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2890 blockoff of type nscd_ssize_t.
2891 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2892 (mempoll_alloc): Record block offset and not address.
2894 * nscd/mem.c (gc): Fix test for stack overuse.
2896 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2899 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2900 entry is available, believe it.
2902 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2903 no answers return NSS_STATUS_NOTFOUND.
2904 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2905 buffer does not have any content.
2907 2008-05-16 Ulrich Drepper <drepper@redhat.com>
2909 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2911 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2912 lookup, don't assign canon unconditionally.
2914 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2916 * string/Makefile (distribute): Add str-two-way.h.
2918 2008-03-29 Eric Blake <ebb9@byu.net>
2920 Rewrite string searches to O(n) rather than O(n^2).
2921 * string/str-two-way.h: New file. For linear fixed-allocation
2923 * string/memmem.c: New implementation.
2924 * string/strstr.c: New implementation.
2925 * string/strcasestr.c: New implementation.
2927 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
2929 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2931 (calc_first): Initialize constraint field.
2932 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2933 Use search_duplicated_node to avoid loops. Fix grammar.
2934 (duplicate_node): Merge constraint field for all node types.
2935 (calc_eclosure_iter): Look at constraint field for all node types.
2936 * posix/regex_internal.c (create_cd_newstate): Don't look at
2939 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2942 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2945 * string/endian.h: Add macros for fixed-size endian conversion.
2946 * bits/byteswap.h: Allow inclusion from <endian.h>.
2947 * sysdeps/i386/bits/byteswap.h: Likewise.
2948 * sysdeps/ia64/bits/byteswap.h: Likewise.
2949 * sysdeps/s390/bits/byteswap.h: Likewise.
2950 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2951 * string/Makefile (tests): Add tst-endian.
2952 * string/tst-endian.c: New file.
2954 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2955 Patch by Reuben Thomas.
2957 2008-05-14 Joseph Myers <joseph@codesourcery.com>
2959 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2961 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2963 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2966 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2968 (BODY for __gconv_transform_internal_ascii): Likewise.
2971 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2972 to be treated like link-local addresses.
2973 (match_prefix): Don't treat IPv4 loopback address special when
2974 converting to v4 mapped addressed.
2976 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2978 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2979 * posix/tst-rfc3484-2.c: Likewise.
2980 * posix/tst-rfc3484-3.c: Likewise.
2982 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2985 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2987 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2989 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2991 2008-05-13 Ulrich Drepper <drepper@redhat.com>
2993 * po/lt.po: New file. From Lituanian translation team.
2995 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
2997 Introduce TLS descriptors for i386 and x86_64.
2998 * include/inline-hashtab.h: New file, copied from 2005's
2999 libiberty, with fix for memory leak imported afterwards by
3000 Glauber de Oliveira Costa.
3001 * elf/tlsdeschtab.h: New file.
3002 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3003 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3004 (CHECK_STATIC_TLS): Move to...
3005 * elf/dynamic-link.h: ... this file.
3006 (TRY_STATIC_TLS): New macro.
3007 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3008 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3009 R_386_TLS_DESC): Define.
3010 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3012 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3013 R_X86_64_TLSDESC): Define.
3014 (R_386_NUM, R_X86_64_NUM): Adjust.
3015 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3016 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3017 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3018 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3019 release tlsdesc_table.
3020 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3021 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3022 (elf_machine_rel): Handle R_386_TLS_DESC.
3023 (elf_machine_rela): Likewise.
3024 (elf_machine_lazy_rel): Likewise.
3025 (elf_machine_lazy_rela): Likewise.
3026 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3027 * sysdeps/i386/dl-tlsdesc.S: New file.
3028 * sysdeps/i386/dl-tlsdesc.h: New file.
3029 * sysdeps/i386/tlsdesc.c: New file.
3030 * sysdeps/i386/tlsdesc.sym: New file.
3031 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3033 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3034 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3035 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3036 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3037 release tlsdesc_table.
3038 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3039 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3040 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3041 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3042 (elf_machine_rela): Likewise.
3043 (elf_machine_lazy_rel): Likewise.
3044 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3045 (__tls_get_addr): Do not declare for non-shared compiles.
3046 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3047 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3048 * sysdeps/x86_64/tlsdesc.c: New file.
3049 * sysdeps/x86_64/tlsdesc.sym: New file.
3050 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3051 tlsdesc_table for both 32- and 64-bit structs.
3053 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3055 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3056 its own function. This reduces the frame setup costs and more.
3058 2008-02-11 Joseph Myers <joseph@codesourcery.com>
3061 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3062 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3064 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3066 * io/openat.c (__openat_2): Also pass fd to __openat.
3067 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3068 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3070 * string/tester.c (test_memcmp): Add a few more tests.
3071 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3073 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3075 * nscd/cache.c (cache_add): Before returning with failure and this
3076 is the first use of the record, mark it as unusable.
3077 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3078 reporting a failure.
3079 * nscd/grpcache.c: Likewise
3080 * nscd/hstcache.c: Likewise.
3081 * nscd/initgrcache.c: Likewise.
3082 * nscd/pwdcache.c: Likewise.
3083 * nscd/servicescache.c: Likewise.
3085 2008-05-10 Roland McGrath <roland@redhat.com>
3088 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3090 2008-05-08 David S. Miller <davem@davemloft.net>
3092 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3094 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3095 (__ieee754_y0l): Likewise.
3096 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3097 (__ieee754_y1l): Likewise.
3098 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3099 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3100 frexpl and ldexpl. math_private.h provides them and the latter
3102 (__log1pl): Use __frexpl.
3104 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3106 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3108 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3109 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3110 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3111 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3113 (_nss_nis_gethostbyname4_r): New function.
3114 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3115 Change to also handle af==AF_UNSPEC.
3116 (get_tablename): New function. Use it to avoid duplication.
3117 (_nss_nisplus_gethostbyname4_r): New function.
3118 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3120 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3121 * nss/nss.h: Define struct gaih_addrtuple.
3122 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3124 (_nss_files_gethostbyname4_r): New function.
3125 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3126 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3128 * resolv/res_query.c (__libc_res_nquery): Take two additional
3129 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3130 look up IPv4 and IPv6.
3132 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3133 for an additional query and answer buffer. Pass to send_vc and
3135 (send_vc): Send possibly two requests and receive two answers.
3136 (send_dg): Likewise.
3137 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3139 (_nss_dns_gethostbyname4_r): New function.
3140 (gaih_getanswer_slice): Likewise.
3141 (gaih_getanswer): Likewise.
3142 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3143 __libc_res_nquery call.
3144 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3145 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3146 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3149 2008-05-05 David S. Miller <davem@davemloft.net>
3151 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3152 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3154 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3156 Fix termios bit macros.
3157 Move *DLY definitions where they belong, in termios.h.
3158 Add *[0-3] definitions.
3159 Fixes confusion between VT and FF.
3160 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3161 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3162 are already defined to avoid collision with termios.h.
3163 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3164 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3165 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3166 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3167 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3168 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3169 VTDLY, VT0, VT1): New macros.
3170 [__USE_GNU] (OLCUC): Change value of macro.
3171 [__USE_XOPEN] (OFILL): New macro.
3172 [__USE_BSD] (CRTSCTS): Change value.
3173 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3174 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3175 (B7200, B14400, B28800, B76800): New macros.
3177 2008-05-01 David S. Miller <davem@davemloft.net>
3179 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3180 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3181 (gen-as-const-headers): Add it.
3182 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3183 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3184 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3185 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3187 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3188 six system call parameters.
3189 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3191 2008-04-30 Ulrich Drepper <drepper@redhat.com>
3193 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3195 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3196 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3198 2008-04-30 Jakub Jelinek <jakub@redhat.com>
3200 * stdlib/tst-setcontext.c: Include unistd.h.
3202 2008-04-25 David S. Miller <davem@davemloft.net>
3204 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3205 Pass "union semun" properly in to sys_ipc, it must be passed
3206 by value, not by reference.
3208 2008-04-22 Jakub Jelinek <jakub@redhat.com>
3210 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3211 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3212 * nscd/connections.c (mem_in_flight): Likewise.
3214 * nscd/nscd.h (dbs): Make hidden.
3216 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3217 Avoid returning -1, return 0 instead.
3219 2008-04-19 Ulrich Drepper <drepper@redhat.com>
3221 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3223 2008-04-15 Ulrich Drepper <drepper@redhat.com>
3226 * sysdeps/unix/sysv/linux/times.c: New file.
3229 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3230 mem_in_flight_list variables. Add new parameter to mempool_alloc
3232 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3233 appropriate mem_in_flight element.
3234 (gc): Take allocations which have not yet been committed to the
3235 database into account.
3236 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3237 Reset mem_in_flight before returning.
3238 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3239 cue it up in mem_in_flight_list.
3240 * nscd/aicache.c: Adjust mempool_alloc call.
3241 * nscd/grpcache.c: Likewise.
3242 * nscd/hstcache.c: Likewise.
3243 * nscd/initgrcache.c: Likewise.
3244 * nscd/pwdcache.c: Likewise.
3245 * nscd/servicescache.c: Likewise.
3246 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3249 * nscd/connections.c (handle_request): Provide better error message
3250 in case SELinux forbids the service.
3252 * version.h (VERSION): Bump to 2.8.90.
3254 2008-04-17 Jakub Jelinek <jakub@redhat.com>
3256 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3258 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3260 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3261 Also use for 32-bit.
3262 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3263 __nextafter instead of nextafter to avoid local PLT.
3264 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3265 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3267 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3269 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3271 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3272 <fenv_libc.h> instead of <fenv.h>.
3273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3276 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3278 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3279 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3280 function from fegetexcept and make old name weak alias.
3281 * include/fenv.h: Declare __fegetexcept.
3282 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3284 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3285 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3287 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3288 instead of frexpl to avoid local PLT.
3289 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3290 ilogbl to avoid local PLT.
3291 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3292 instead of ldexpl to avoid local PLT.
3293 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3294 __roundl not roundl to avoid local PLT.
3295 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3296 local PLTs. Use __sincosl instead of separate sinl and cosl
3298 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3300 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3301 version for ppc64 to 2.4.21 since without it makecontext will fail.
3303 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3305 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3307 [__powerpc64__] (TLS_GD): Likewise.
3309 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3312 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3313 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3315 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3316 Likewise. Also account for when x is an odd number between 2^52
3318 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3319 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3320 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3321 detect aforementioned erroneous conditions.
3323 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3325 * configure.in: Check for -fno-section-anchors in addition to
3326 -fno-toplevel-reorder.
3328 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3330 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3332 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3333 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3334 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3335 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3336 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3337 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3339 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3342 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3343 * time/alt_digit.c: Likewise.
3344 * wcsmbs/wcsmbsload.c: Likewise.
3346 2008-04-10 Ulrich Drepper <drepper@redhat.com>
3348 * version.h (VERSION): Bump to 2.8.
3350 * timzeone/asia: Update from tzdata2008b.
3351 * timezone/backward: Likewise.
3352 * timezone/europe: Likewise.
3353 * timezone/northamerica: Likewise.
3354 * timezone/southamerica: Likewise.
3355 * timezone/iso3166.tab: Likewise.
3356 * timezone/leapseconds: Likewise.
3357 * timezone/zone.tab: Likewise.
3358 * timezone/private.h: Update from tzcode2008a.
3359 * timezone/zdump.c: Likewise.
3360 * timezone/zic.c: Likewise.
3362 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3365 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3366 Define additonal Data Cache Block instruction macros.
3367 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3368 Replace dcbst with dcbf and sync with sync/isync.
3370 2008-02-21 Alan Modra <amodra@bigpond.net.au>
3372 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3373 Always set ELF_RTYPE_CLASS_PLT.
3374 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3376 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3378 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3379 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3380 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3381 For ISA 2.01 and later replace mftb with mfspr 268.
3383 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3386 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3387 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3389 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3392 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3393 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3394 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3395 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3397 2008-04-10 Jakub Jelinek <jakub@redhat.com>
3399 * stdlib/tst-makecontext.c (othervar): New variable.
3400 (cf): Test sign extending the argument to long.
3402 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3404 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3405 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3406 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3407 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3408 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3409 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3410 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3412 2008-02-22 Alan Modra <amodra@bigpond.net.au>
3414 * elf/Makefile (tests): Substitute tests-vis-yes here.
3415 (tests-vis-yes): Delete.
3416 (modules-name, modules-vis-yes): Similarly.
3418 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3421 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3422 Preserve sign in signgamp when x is zero.
3424 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3426 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3427 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3428 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3429 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3430 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3431 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3433 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3436 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3440 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3441 a reserved error value.
3443 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3444 value to check for correct sign extension.
3447 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3448 Copy 64-bit parameter values even though this is not required in
3451 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3454 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3456 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3459 2008-04-09 Jakub Jelinek <jakub@redhat.com>
3461 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3463 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3466 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3467 in line-buffered stream failed.
3468 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3470 2008-04-08 Ulrich Drepper <drepper@redhat.com>
3473 * scripts/abi-versions.awk: If the version specified by
3474 --enable-oldest-abi is older than the first version for this
3475 architecture, use the default version.
3477 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3478 as well when ignoring the whole category.
3480 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3483 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3484 ETHERTYPE_* definitions.
3485 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3487 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3489 * stdlib/mbtowc.c (__no_r_state): Remove.
3490 (mbtowc): New static state variable. Use it instead of
3492 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3493 (__wctomb_state): New hidden variable.
3494 (wctomb): Use __wctomb_state instead of __no_r_state.
3495 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3496 (__wctomb_state): New extern decl.
3497 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3499 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3502 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3504 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3506 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3508 2008-04-06 Ulrich Drepper <drepper@redhat.com>
3510 * po/nl.po: Update from translation team.
3512 2008-03-31 Ulrich Drepper <drepper@redhat.com>
3515 * string/strfry.c: Handle empty strings again.
3517 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3520 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3521 before looking for translation.
3522 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3523 * locale/freelocale.c: Likewise.
3524 * locale/newlocale.c: Likewise.
3525 * locale/setlocale.c: Likewise.
3526 Based partially on a patch by ryo@np.css.fujitsu.com.
3528 2008-03-30 Jakub Jelinek <jakub@redhat.com>
3530 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3531 acquiring wrlock. Do conv_tab allocation while holding lock.
3532 * intl/Makefile: Add rules to build and run tst-gettext6.
3533 * intl/tst-gettext6.c: New test.
3534 * intl/tst-gettext6.sh: New file.
3536 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3538 * po/nl.po: Update from translation team.
3540 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3541 provided through st_blksize, try the default size before giving up.
3543 2008-03-29 Ulrich Drepper <drepper@redhat.com>
3545 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3548 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3550 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3551 error message. POSIX today does not require the messages to be in
3552 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3555 * sunrpc/auth_unix.c: Unify printed strings.
3556 * sunrpc/clnt_tcp.c: Likewise.
3557 * sunrpc/clnt_udp.c: Likewise.
3558 * sunrpc/clnt_unix.c: Likewise.
3559 * sunrpc/svc_tcp.c: Likewise.
3560 * sunrpc/svc_udp.c: Likewise.
3561 * sunrpc/svc_unix.c: Likewise.
3562 * sunrpc/xdr.c: Likewise.
3563 * sunrpc/xdr_array.c: Likewise.
3564 * sunrpc/xdr_rec.c: Likewise.
3565 * sunrpc/xdr_ref.c: Likewise.
3566 * locale/programs/ld-time.c (time_finish): Unify messages.
3567 * locale/programs/locfile.c (handle_copy): Fix typo.
3568 * nscd/nscd.c (options): Fix typo.
3571 * stdlib/strtod_l.c: Use correct sign for result in one more
3573 Patch by Eric Blake <ebb9@byu.net>.
3575 2008-03-27 Jakub Jelinek <jakub@redhat.com>
3577 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3578 and creat system calls.
3579 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3581 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3584 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3585 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3587 2008-03-27 Ulrich Drepper <drepper@redhat.com>
3589 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3590 <linux/limits.h> has defined it.
3591 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3592 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3594 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3595 it instead of ARG_MAX.
3597 2008-03-25 Jakub Jelinek <jakub@redhat.com>
3599 * posix/gai.conf: Fix comment for scope nullbits.
3600 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3601 default to 128 bits for v4 mapped addresses.
3603 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3605 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3606 ptrace call to get the ieee_instruction_pointer from the kernel.
3607 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3608 ptrace call to set the ieee_instructtion_pointer.
3609 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3610 Add comment that ieee_instruction_pointer is always 0.
3612 2008-03-09 Andreas Jaeger <aj@suse.de>
3615 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3616 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3617 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3619 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3620 (rint_test): Likewise.
3622 2008-03-24 Ulrich Drepper <drepper@redhat.com>
3624 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3626 (__nisfind_server): Similar for open readColdStartFile call.
3627 Patch partially by Jim Meyering.
3628 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3629 around internal_setent call.
3631 * po/vi.po: New Vietnamese translation.
3633 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3636 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3637 remove CLONE_STOPPED.
3639 2008-02-10 Jim Meyering <meyering@redhat.com>
3641 Remove useless "if" before "free":
3642 * elf/ldconfig.c (parse_conf_include): Likewise.
3643 * gmon/gmon.c (weak_alias): Likewise.
3644 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3645 * inet/rcmd.c (__validuser2_sa): Likewise.
3646 * intl/bindtextdom.c (set_binding_values): Likewise.
3647 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3648 * libio/genops.c (save_for_backup): Likewise.
3649 * libio/wgenops.c (save_for_wbackup): Likewise.
3650 * locale/programs/ld-collate.c (collate_read): Likewise.
3651 * locale/programs/linereader.c (get_string): Likewise.
3652 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3653 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3654 * resolv/res_debug.c (do_section): Likewise.
3655 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3656 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3657 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3658 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3659 * time/tzset.c (tzset_internal): Likewise.
3661 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3663 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3666 2008-03-11 Ulrich Drepper <drepper@redhat.com>
3669 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3670 not stream for output file. Open output file here.
3671 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3672 and output file name.
3673 (process_fd): Likewise.
3674 (process_file): Likewise.
3675 (main): Adjust callers of changed functions.
3676 * iconv/iconv_prog.h: Adjust prototype.
3678 2008-03-09 Andreas Jaeger <aj@suse.de>
3681 * sysdeps/ia64/ieee754.h: Use protected namespace
3682 __BIG_ENDIAN/__LITTLE_ENDIAN.
3683 * sysdeps/ieee754/ieee754.h: Likewise.
3684 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3686 2008-03-08 Roland McGrath <roland@frob.com>
3688 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3689 ignore a signal that came from a machine exception, treat it as a
3690 fatal core-dump signal instead.
3691 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3693 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3694 Clear DF bit in thread state's eflags.
3695 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3697 2008-03-08 Ulrich Drepper <drepper@redhat.com>
3700 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3701 of NAN(...) sequence.
3702 * stdlib/Makefile (tests): Add tst-strtod6.
3703 * stdlib/tst-strtod6.c: New file.
3705 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3708 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3709 putting offending option character in quotes. Clean up error
3711 * po/be.po: Adjust msgstr in translation file.
3712 * po/bg.po: Likewise.
3713 * po/ca.po: Likewise.
3714 * po/cs.po: Likewise.
3715 * po/da.po: Likewise.
3716 * po/de.po: Likewise.
3717 * po/es.po: Likewise.
3718 * po/fr.po: Likewise.
3719 * po/hr.po: Likewise.
3720 * po/ko.po: Likewise.
3721 * po/nl.po: Likewise.
3722 * po/rw.po: Likewise.
3723 * po/sk.po: Likewise.
3724 * po/sv.po: Likewise.
3725 * po/tr.po: Likewise.
3726 * po/zh_CN.po: Likewise.
3727 * po/zh_TW.po: Likewise.
3730 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3731 Patch by Roland Bless <roland@bless.de>.
3733 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3735 * elf/Makefile (routines): Add dl-sysdep.
3736 (elide-routines.os): Likewise.
3738 2008-03-07 Ulrich Drepper <drepper@redhat.com>
3741 * elf/dl-sysdep.c: Undefine ROUND after use.
3742 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3743 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3744 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3745 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3747 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3748 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3750 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3752 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3753 _dl_tls_get_addr_soft element.
3754 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3755 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3756 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3758 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3759 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3760 of internal_function.
3762 * stdlib/Makefile (aux): Add tens_in_limb.
3763 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3764 * stdlib/tens_in_limb.c: ...here. New file.
3767 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3768 __statfs_chown_restricted.
3769 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3770 for _PC_CHOWN_RESTRICTED.
3771 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3772 Implement __statfs_chown_restricted.
3773 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3774 _POSIX_CHOWN_RESTRICTED value to zero.
3775 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3778 * sysdeps/x86_64/rtld-memset.c: New file.
3780 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
3782 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3784 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3785 Barcelona machine. Make default fall through branch of
3786 __x86_64_preferred_memory_instruction check as the integer code path.
3788 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3790 * sysdeps/x86_64/cacheinfo.c
3791 (__x86_64_preferred_memory_instruction): New variable.
3792 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3794 * sysdeps/x86_64/memset.S: Rewrite.
3796 2008-03-04 Jakub Jelinek <jakub@redhat.com>
3798 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3799 __obstack_printf_chk): New prototypes.
3800 (__vasprintf_chk, __vdprintf_chk,
3801 __obstack_vprintf_chk): Likewise.
3802 Add libc_hidden_proto.
3804 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3805 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3806 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3807 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3808 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3809 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3810 __obstack_vprintf_chk): New prototypes.
3811 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3812 obstack_vprintf): New inlines.
3813 * debug/dprintf_chk.c: New file.
3814 * debug/vdprintf_chk.c: New file.
3815 * debug/asprintf_chk.c: New file.
3816 * debug/vasprintf_chk.c: New file.
3817 * debug/obprintf_chk.c: New file.
3818 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3819 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3820 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3822 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3823 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3824 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3825 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3827 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3828 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3829 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3830 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3831 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3833 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3834 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3835 obstack_vprintf_chk.
3836 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3837 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3838 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3839 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3840 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3841 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3843 2008-03-04 Ulrich Drepper <drepper@redhat.com>
3846 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3847 Patch by Roy Marples <roy@marples.name>.
3850 * malloc/malloc.c: Fix typo in comment.
3853 * locale/iso-639.def: Add Shuswap.
3855 2008-02-25 Jakub Jelinek <jakub@redhat.com>
3858 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3859 overwrite *h_errnop/*errnop values from getanswer_r in case of
3862 2008-03-03 Ulrich Drepper <drepper@redhat.com>
3865 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3866 (verify_persistent_db): Remove one unnecessary test and add a new one
3867 for bad configuration.
3868 (nscd_init): Improve error reported when persistent database cannot
3870 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3871 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3872 .suggested_module and .max_db_size and case config file says the
3874 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3877 * nis/ypclnt.c (yp_order): Fix handling of return value of
3879 Patch by Jeff Moyer <jmoyer@redhat.com>.
3881 * po/fr.po: Update from translation team.
3883 2008-02-22 Andreas Jaeger <aj@suse.de>,
3884 Carlos O'Donell <carlos@systemhalted.org>
3887 * FAQ.in: Describe why glibc needs to be compiled with
3890 2008-02-19 Roland McGrath <roland@redhat.com>
3892 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3894 2008-02-15 Ulrich Drepper <drepper@redhat.com>
3897 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3898 __USE_MISC is defined.
3900 2008-02-10 Ulrich Drepper <drepper@redhat.com>
3902 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3903 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3905 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3906 timerfd_gettime, timerfd_settime.
3907 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3908 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3910 2008-02-08 Roland McGrath <roland@redhat.com>
3912 * elf/elf.h (NT_PPC_SPE): New macro.
3914 2008-02-06 Roland McGrath <roland@redhat.com>
3916 * Makerules ($(common-objpfx)sysd-rules):
3917 Depend on $(sysdep-makeconfigs).
3919 2008-01-31 Roland McGrath <roland@redhat.com>
3922 * configure.in: Use -print-file-name if it yields a directory,
3923 for each of include and include-fixed.
3924 * configure: Regenerated.
3926 * Makeconfig (sysd-rules-targets): New variable.
3927 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3928 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3930 2008-01-30 Roland McGrath <roland@redhat.com>
3932 * manual/libc.texinfo: Update back-cover text.
3934 * elf/elf.h (NT_386_TLS): New macro.
3936 2008-01-29 Roland McGrath <roland@redhat.com>
3938 * Makeconfig (sysd-rules-patterns): New variable.
3939 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3940 (check-inhibit-asm): New canned sequence, replaces ...
3941 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3942 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3943 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3944 (CFLAGS-rtld): Variable removed.
3946 2008-01-24 Roland McGrath <roland@redhat.com>
3948 * configure.in: Let configure fragments set base_os.
3949 * configure: Regenerated.
3951 2008-01-22 Ulrich Drepper <drepper@redhat.com>
3953 * po/ko.po: Update from translation team.
3955 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3957 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3959 2008-01-12 Andreas Jaeger <aj@suse.de>
3962 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3965 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3967 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3968 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3969 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3971 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
3973 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3974 * elf/dl-close.c (_dl_close): Check for it.
3975 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3976 (_dl_allocate_static_tls): Likewise.
3977 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3978 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3980 * elf/tst-tls16.c: New file.
3981 * elf/tst-tlsmod16a.c: New file.
3982 * elf/tst-tlsmod16b.c: New file.
3983 * elf/Makefile: Add rules to build and run tst-tls16.
3985 2008-01-16 Ulrich Drepper <drepper@redhat.com>
3988 * bits/shm.h: Fix comment describing shmid_ds.
3989 * sysdeps/gnu/bits/shm.h: Likewise.
3990 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3991 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3992 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3993 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3994 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3995 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3996 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3997 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3998 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4001 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4003 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4004 additional suffixes.
4005 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4006 Add optional functions mq_timedreceive and mq_timedsend.
4007 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4008 * conform/data/pthread.h-data: Fix prototype of
4009 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4010 * conform/data/semaphore.h-data: Allow time.h definitions.
4011 * conform/data/signal.h-data: Likewise.
4012 * conform/data/stdio.h-data: getw and putw are not required in v6.
4013 * conform/data/stdlib.h-data: Change setstate prototype.
4014 * conform/data/string.h-data: Fix strerror_r prototype.
4015 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4016 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4017 Fix readlink prototype.
4018 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4020 * inet/netinet/in.h: Cleanup namespace.
4021 * posix/regex.h: Likewise.
4022 * resolv/netdb.h: Likewise.
4023 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4024 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4025 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4026 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4027 of names of in in6_addr.
4028 (default_precedence): Likewise.
4029 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4032 2008-01-15 Ulrich Drepper <drepper@redhat.com>
4034 * conform/data/fmtmsg.h-data: Add missing allows.
4035 * conform/data/ftw.h-data: Likewise.
4036 * conform/data/inttypes.h-data: Likewise.
4037 * conform/data/math.h-data: Likewise.
4038 * conform/data/signal.h-data: Likewise.
4039 * conform/data/net/if.h-data: Likewise.
4040 * conform/data/netinet/in.h-data: Likewise.
4041 * conform/data/sys/socket.h-data: Likewise.
4044 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4045 (__strtok_r): Simplify.
4046 * string/tester.c (test_strtok_r): Add test case for futile search
4047 with single-character seach string.
4049 2008-01-12 Ulrich Drepper <drepper@redhat.com>
4051 * po/ko.po: Update from translation team.
4053 2008-01-11 Andreas Jaeger <aj@suse.de>
4056 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4057 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4060 2008-01-10 Ulrich Drepper <drepper@redhat.com>
4062 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4063 native interface lookup in all the relevant places.
4065 2008-01-10 Jakub Jelinek <jakub@redhat.com>
4066 Ulrich Drepper <drepper@redhat.com>
4068 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4069 field. Use sockaddr_in6 for source_addr.
4070 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4071 (match_prefix): Likewise.
4072 (get_label): Likewise.
4073 (get_precedence): Likewise.
4074 (rfc3484_sort): Change to use indirect access to results array.
4075 Adjust to use of sockaddr_in6. Replace service_order test with
4076 simple index comparison.
4077 (getaddrinfo): Define order array. Initialize it. Don't initialize
4078 service_order field. Adjust qsort_t calls. Access sorted result
4079 array indirectly through order array.
4080 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4081 * posix/tst-rfc3484-2.c: Likewise.
4082 * posix/tst-rfc3484-3.c: Likewise.
4084 2008-01-09 Ulrich Drepper <drepper@redhat.com>
4087 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4089 Patch by André Cruz.
4092 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4093 (clnt_spcreateerror): Likewise.
4096 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4097 (public_mEMALIGn): Likewise.
4098 Patch mostly by Daniel Jacobowitz.
4100 2008-01-09 Jakub Jelinek <jakub@redhat.com>
4102 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4103 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4104 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4105 * stdlib/tst-makecontext2.c: New test.
4107 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4109 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4111 (REINIT_PARAMS): Likewise. Undefine before end of file.
4112 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4113 transliteration hooks and REINIT_PARAMS afterwards.
4114 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4116 (REINIT_PARAMS): Define.
4117 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4118 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4119 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4120 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4121 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4122 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4123 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4124 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4125 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4126 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4127 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4128 * iconvdata/tst-iconv7.c: New test.
4130 2008-01-07 Ulrich Drepper <drepper@redhat.com>
4132 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4134 2008-01-05 Jakub Jelinek <jakub@redhat.com>
4137 * nscd/connections.c (restart): Fix condition.
4139 2008-01-03 Jakub Jelinek <jakub@redhat.com>
4141 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4142 __ctype_toupper_loc): Add __THROW.
4144 2008-01-02 Ulrich Drepper <drepper@redhat.com>
4146 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4147 recognition of interface family.
4149 * posix/getconf.c: Update copyright year.
4150 * nss/getent.c: Likewise.
4151 * iconv/iconvconfig.c: Likewise.
4152 * iconv/iconv_prog.c: Likewise.
4153 * elf/ldconfig.c: Likewise.
4154 * catgets/gencat.c: Likewise.
4155 * csu/version.c: Likewise.
4156 * elf/ldd.bash.in: Likewise.
4157 * elf/sprof.c (print_version): Likewise.
4158 * locale/programs/locale.c: Likewise.
4159 * locale/programs/localedef.c: Likewise.
4160 * nscd/nscd.c (print_version): Likewise.
4161 * debug/xtrace.sh: Likewise.
4162 * malloc/memusage.sh: Likewise.
4163 * malloc/mtrace.pl: Likewise.
4164 * debug/catchsegv.sh: Likewise.
4166 2007-12-26 Ulrich Drepper <drepper@redhat.com>
4168 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4171 2007-12-23 Ulrich Drepper <drepper@redhat.com>
4173 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4174 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4176 2007-12-17 Roland McGrath <roland@redhat.com>
4178 * inet/ether_line.c (ether_line): Remove unused variable.
4180 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4182 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4184 * login/openpty.c (openpty): Likewise.
4185 * login/pty.h (openpty, forkpty): Likewise.
4186 * manual/terminal.texi (openpty, forkpty): Likewise.
4188 2007-12-17 Ulrich Drepper <drepper@redhat.com>
4190 * malloc/malloc.c (public_cALLOc): For arenas other than
4191 main_arena, count all bytes inside the mprotect_size range of the
4192 heap as uninitialized.
4194 2007-12-16 Ulrich Drepper <drepper@redhat.com>
4196 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4199 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4200 mTRIm for all of them.
4201 (mTRIm): Additionally iterate over all free blocks and use madvise
4202 to free memory for all those blocks which contain at least one
4204 * malloc/tst-trim1.c: New file.
4205 * malloc/Makefile (tests): Add tst-trim1.
4207 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4209 2007-12-14 Ulrich Drepper <drepper@redhat.com>
4211 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4212 First cast argument to long
4213 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4215 (__vdso_clock_gettime): Likewise.
4216 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4219 2007-12-13 Ulrich Drepper <drepper@redhat.com>
4221 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4222 * locale/nl_langinfo_l.c: Real implementation, copied from
4224 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4226 2007-12-01 Jim Meyering <meyering@redhat.com>
4228 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4229 that would inhibit utf8-optimization of a regexp containing line-
4230 or buffer-anchors, e.g., `^', `$'.
4232 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4234 * time/bug-getdate1.c (do_test): Don't use century values which
4235 aren't valid on 32-bit systems.
4237 2007-12-12 Jakub Jelinek <jakub@redhat.com>
4239 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4240 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4241 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4242 __strcat_g, __strncat_g): Add __asm__.
4244 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4247 * io/fchmodat.c: Fix typo in stub_warning use.
4248 Patch by Petr Salinger.
4250 2007-12-11 Ulrich Drepper <drepper@redhat.com>
4252 * iconvdata/hp-thai8.c: New file.
4253 * iconvdata/Makefile: Add rules for hp-thai8.c.
4254 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4255 * iconvdata/gconv-modules: Likewise.
4258 * iconvdata/hp-greek8.c: New file.
4259 * iconvdata/Makefile: Add rules for hp-greek8.c.
4260 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4261 * iconvdata/gconv-modules: Likewise.
4264 * iconvdata/hp-turkish8.c: New file.
4265 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4266 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4267 * iconvdata/gconv-modules: Likewise.
4269 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4270 (shrink_heap): ... this new function.
4271 (heap_trim): Call shrink_heap instead of grow_heap.
4273 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4274 case don't call alloc_perturb.
4276 2007-12-10 Ulrich Drepper <drepper@redhat.com>
4278 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4280 * sysdeps/unix/sysv/linux/kernel-features.h
4281 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4282 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4284 2007-12-08 Ulrich Drepper <drepper@redhat.com>
4287 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4288 * stdio-common/Makefile (tests): Add bug22.
4289 * stdio-common/bug22.c: New file.
4292 * time/getdate.c: Fix filling in default values.
4293 * time/bug-getdate1.c: New file.
4294 * time/Makefile: Add rules to build and run bug-getdate1.
4296 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4297 * iconvdata/ebcdic-es.c: Likewise.
4298 * iconvdata/ebcdic-es-a.c: Likewise.
4299 * iconvdata/ebcdic-uk.c: Likewise.
4300 * iconvdata/iso8859-16.c: Likewise.
4301 * iconvdata/viscii.c: Likewise.
4302 * iconvdata/iso8859-9e.c: Likewise.
4303 * iconvdata/Makefile: Adjust appropriately.
4306 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4309 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4312 * iconvdata/hp-roman9.c: New file.
4313 * iconvdata/Makefile: Add rules for hp-roman9.c.
4314 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4315 * iconvdata/gconv-modules: Likewise.
4317 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4318 * iconvdata/Makefile: Adjust appropriately.
4321 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4322 structure, it's allocated with alloca.
4323 * stdio-common/Makefile (tests): Add bug21.
4324 * stdio-common/bug21.c: New file.
4326 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4329 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4330 keyword for gcc's braced-groups.
4332 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4335 * inet/ether_line.c: Strip hostname of whitespaces.
4336 * inet/Makefile (tests): Add tst-ether_line.
4337 * inet/tst-ether_line.c: New file.
4339 2007-12-03 Ulrich Drepper <drepper@redhat.com>
4342 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4345 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4347 * stdlib/tst-setcontext.c: Catch the case where the links gets
4348 messed up and we do not reach main again.
4350 * po/ca.po: Update from translation team.
4352 2007-11-26 Ulrich Drepper <drepper@redhat.com>
4354 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4355 * posix/regex.h (REG_ENOSYS): Likewise.
4356 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4358 2007-11-25 Ulrich Drepper <drepper@redhat.com>
4360 * nscd/nscd.h (MAX_STACK_USE): Define.
4361 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4362 (gc): Initialize stack_used based on allocation in prune_cache.
4363 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4364 Clear array before use.
4366 * nscd/aicache.c (addhstaiX): Update statistics counter in case
4367 memory allocation failed.
4368 * nscd/hstcache.c (cache_addhst): Likewise.
4369 * nscd/grpcache.c (cache_addgr): Likewise.
4370 * nscd/servicescache.c (cache_addserv): Likewise.
4371 * nscd/pwdcache.c (cache_addpw): Likewise.
4372 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4374 2007-11-23 Ulrich Drepper <drepper@redhat.com>
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4377 and creat system calls.
4379 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4381 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4383 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4385 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4386 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4388 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4389 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4390 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4392 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4394 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4395 strncat): Define as macros to avoid compile errors.
4397 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4400 2007-11-22 Ulrich Drepper <drepper@redhat.com>
4403 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4404 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4405 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4407 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4409 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4410 Return zero in case the thread library is not NPTL.
4413 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4414 initializing interface list.
4417 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4418 use result of nss_getgrgid_r if nothing was found. For other
4419 error return with a failure.
4420 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4422 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4425 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4427 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4428 (get_scope): For IPv4 scope, use scopes table.
4429 (fini): Free scopes table if necessary.
4430 (free_scopelist): New function.
4431 (scopecmp): New function.
4432 (gaiconf_init): Also handle scopev4 entries.
4433 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4434 * posix/tst-rfc3484-2.c (do_test): Likewise.
4435 * posix/gai.conf: Document scopev4 defaults.
4436 * posix/Makefile (tests): Add tst-rfc3484-3.
4437 * posix/tst-rfc3484-3.c: New file.
4439 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4441 * posix/gai.conf: Update for current default tables.
4443 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4445 * po/tr.po: Update from translation team.
4447 2007-11-18 Roland McGrath <roland@frob.com>
4449 * manual/arith.texi (Remainder Functions): Spelling fix.
4450 From Shaun Silk <genix@mysoul.com.au>.
4452 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4454 2007-11-17 Ulrich Drepper <drepper@redhat.com>
4456 * po/zh_CN.po: Update from translation team.
4458 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4459 Add sys/signalfd.h and sys/eventfd.h.
4461 2007-11-15 Bruno Haible <bruno@clisp.org>
4464 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4466 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4467 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4468 it needs only fixed stack space. Delay the initialization of
4469 msgid_len until it is needed.
4471 2007-11-15 Andreas Jaeger <aj@suse.de>
4473 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4474 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4476 2007-11-15 Ulrich Drepper <drepper@redhat.com>
4478 * po/ko.po: Update from translation team.
4480 2007-11-14 Ulrich Drepper <drepper@redhat.com>
4482 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4483 significantly. The device type is also part of the ifinfomsg data.
4485 * po/sv.po: Update from translation team.
4486 * po/nl.po: Likewise.
4488 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4489 to wake up in 24 hours.
4491 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4493 2007-11-13 Ulrich Drepper <drepper@redhat.com>
4495 * po/cs.po: Update from translation team.
4496 * po/pl.po: Likewise.
4498 * include/ifaddrs.h: Remove in6ai_temporary.
4499 (struct in6addrinfo): Add index element.
4500 Declare __check_native.
4501 * inet/Makefile (aux): Add check_native.
4502 * sysdeps/unix/sysv/linux/check_native.c: New file.
4503 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4504 IFA_F_TEMPORARY. Pass back ifa_index.
4505 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4506 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4507 call __check_native if necessary.
4508 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4509 to sort addresses. Pass information about the results.
4510 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4511 of rfc3484_sort interface.
4512 * posix/tst-rfc3484-2.c: Likewise.
4514 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4515 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4517 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4518 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4519 on as third parameter to compare function and _quicksort.
4520 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4521 to the compare function.
4522 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4523 * Versions.def: Add GLIBC_2.8 for libc.
4525 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4526 * posix/tst-rfc3484-2.c: Likewise.
4528 * include/kernel-features.h: Moved to...
4529 * sysdeps/mach/hurd/kernel-features.h: ...here.
4531 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4533 * sysdeps/i386/i586/memcpy_chk.S: New file.
4534 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4535 * sysdeps/i386/i586/memset_chk.S: Likewise.
4537 2007-11-12 Ulrich Drepper <drepper@redhat.com>
4539 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4540 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4541 list of interfaces. Also store prefix length.
4542 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4543 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4544 prefix if source and destination address are in the same subnet.
4545 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4546 Always look for matching record in in6ai list.
4547 Correct source_addr_len value for IPv6->IPv4 converted records.
4549 2007-11-11 Roland McGrath <roland@frob.com>
4551 * include/kernel-features.h: New file.
4553 2007-11-10 Ulrich Drepper <drepper@redhat.com>
4555 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4556 complications for 64-bit platforms.
4558 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4559 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4560 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4562 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4564 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4565 * sysdeps/wordsize-64/alphasort.c: New file.
4566 * sysdeps/wordsize-64/alphasort64.c: New file.
4567 * sysdeps/wordsize-64/fseeko.c: New file.
4568 * sysdeps/wordsize-64/fseeko64.c: New file.
4569 * sysdeps/wordsize-64/ftello.c: New file.
4570 * sysdeps/wordsize-64/ftello64.c: New file.
4571 * sysdeps/wordsize-64/ftw.c: New file.
4572 * sysdeps/wordsize-64/ftw64.c: New file.
4573 * sysdeps/wordsize-64/iofgetpos.c: New file.
4574 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4575 * sysdeps/wordsize-64/iofopen.c: New file.
4576 * sysdeps/wordsize-64/iofopen64.c: New file.
4577 * sysdeps/wordsize-64/iofsetpos.c: New file.
4578 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4579 * sysdeps/wordsize-64/lockf.c: New file.
4580 * sysdeps/wordsize-64/lockf64.c: New file.
4581 * sysdeps/wordsize-64/mkostemp.c: New file.
4582 * sysdeps/wordsize-64/mkostemp64.c: New file.
4583 * sysdeps/wordsize-64/mkstemp.c: New file.
4584 * sysdeps/wordsize-64/mkstemp64.c: New file.
4585 * sysdeps/wordsize-64/scandir.c: New file.
4586 * sysdeps/wordsize-64/scandir64.c: New file.
4587 * sysdeps/wordsize-64/tmpfile.c: New file.
4588 * sysdeps/wordsize-64/tmpfile64.c: New file.
4589 * sysdeps/wordsize-64/versionsort.c: New file.
4590 * sysdeps/wordsize-64/versionsort64.c: New file.
4591 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4592 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4593 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4594 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4595 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4596 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4597 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4598 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4599 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4600 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4601 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4602 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4604 * crypt/sha256-crypt.c: Fix a comment.
4605 * crypt/sha512-crypt.c: Likewise.
4607 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4609 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4611 2007-11-07 Ulrich Drepper <drepper@redhat.com>
4614 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4615 because output buffer is too small break, don't loop.
4616 * iconvdata/Makefile (tests): Add bug-iconv6.
4617 * iconvdata/bug-iconv6.c: New file.
4619 2007-11-06 Ulrich Drepper <drepper@redhat.com>
4621 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4623 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4624 size_t. Add casts where needed.
4626 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4627 old headers, don't call avc_has_perm if we don't have the
4628 permission information.
4630 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4632 * elf/rtld.c (dl_main): Use the page size to find the map start.
4634 2007-11-05 Ulrich Drepper <drepper@redhat.com>
4636 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4637 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4639 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4640 when the lookup call failed.
4642 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4643 Add prune_cond and wakeup_time.
4644 (CACHE_PRUNE_INTERNAL): Define.
4645 Update declarations of prune_cache and setup_thread.
4646 * nscd/connections.c (dbs): Update initializers.
4647 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4648 (nscd_init): Default number of threads is now 4.
4649 (invalidate_cache): Take lock before calling prune_cache.
4650 (handle_request): If SELinux forbids the request, say so.
4651 (readylist_cond): Use static initializer.
4652 (nscd_run_prune): New function. Used only by pruning threads.
4653 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4655 (fd_ready): Update nscd_run reference.
4656 (start_threads): No need to initialize readylist_cond.
4657 Start pruning threads separately.
4658 * nscd/nscd_setup_thread.c: Change return value type to int and always
4660 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4661 to int and return nonzero value if we can use the TID address hack.
4662 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4663 the database is later than the new entry's timeout, update the
4664 wakeup time and wake the cleanup thread.
4665 (prune_cache): Return seconds the next entry in the database is still
4666 valid. Remove locking for pruning here.
4667 * nscd/nscd.conf: Document default number of threads.
4669 2007-10-31 Ulrich Drepper <drepper@redhat.com>
4671 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4672 stack is properly aligned for the target function.
4673 Correct unwind info.
4675 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4676 when using auditing libraries.
4678 2007-10-29 Ulrich Drepper <drepper@redhat.com>
4680 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4681 _nss_dns_getnetbyaddr2_r.
4682 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4683 extra parameter to getanswer_r.
4684 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4685 _nss_dns_getnetbyaddr2_r.
4687 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4689 * nscd/gethstbynm2_r.c: Remove.
4690 * nscd/gethstbynm3_r.c: New file.
4691 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4693 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4694 __gethostbyaddr_r compatibility wrapper.
4695 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4696 determining timeout of entry.
4697 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4699 (addhstbyX): Pass reference to variable for TTL to lookup and
4701 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4702 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4703 and __nss_next2. Remove __nss_services_lookup.
4704 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4706 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4708 * nss/getXXent_r.c: Likewise.
4709 * nss/getnssent_r.c: Likewise.
4710 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4711 does not exist in module, try the optional second name.
4712 (__nss_next2): New function.
4713 (__nss_next): Now wrapper around __nss_next2.
4714 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4715 Declare __nss_next2.
4716 Adjust definition of db_lookup_function type.
4717 * nss/service-lookup.c: Define NO_COMPAT.
4718 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4719 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4720 * inet/ether_ntoh.c: Likewise.
4721 * sunrpc/netname.c: Likewise.
4722 * sunrpc/publickey.c: Likewise.
4723 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4724 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4725 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4726 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4727 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4729 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4731 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4733 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4736 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4737 * crypt/sha512c-test.c: Likewise.
4740 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4741 to keep track of end of %[ format string element.
4742 * stdio-common/Makefile (tests): Add bug20.
4743 * stdio-common/bug20.c: New file.
4746 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4747 path elements in counting mode.
4749 2007-10-27 Andreas Jaeger <aj@suse.de>
4752 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4755 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4756 (__cleanup): Free shared library when exiting.
4757 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4758 (__cleanup): Free shared library when exiting.
4760 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4763 * math/libm-test.inc (check_float_internal): Support
4764 denormalized return.
4766 2007-10-23 Andreas Jaeger <aj@suse.de>
4769 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4770 __LONG_LONG_PAIR to handle little endian byte order.
4771 Suggested by abhishekrai@google.com
4773 2007-10-27 Ulrich Drepper <drepper@redhat.com>
4775 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4777 2007-10-26 Ulrich Drepper <drepper@redhat.com>
4779 * nscd/cache.c (prune_cache): Move test for modified file outside
4782 2007-10-21 Andreas Jaeger <aj@suse.de>
4784 * manual/texinfo.tex: Update to latest version.
4786 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4788 * manual/arith.texi (Status bit operations): Fix formatting.
4790 * manual/errno.texi (Error Messages): Fix formatting.
4792 * manual/sysinfo.texi (System Parameters): Fix formatting.
4794 * manual/libc.texinfo: Update VERSION and UPDATED.
4796 2007-10-19 Roland McGrath <roland@redhat.com>
4798 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4800 2007-10-06 David S. Miller <davem@davemloft.net>
4802 * configure.in: Add sparcv9v2 and sparc64v2.
4803 * scripts/config.sub: Likewise.
4804 * configure: Regenerate.
4805 * elf/elf.h (HWCAP_SPARC_N2): New.
4806 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4807 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4808 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4809 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4810 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4811 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4812 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4814 2007-10-18 Ulrich Drepper <drepper@redhat.com>
4816 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4817 even if the poll result indicates there is data to read.
4818 Patch by Jeff Moyer <jmoyer@redhat.com>.
4820 2007-10-18 Roland McGrath <roland@redhat.com>
4822 * elf/elf.h (NT_PPC_VMX): New macro.
4824 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4826 * version.h (VERSION): Set to 2.7.90.
4828 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4830 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4833 2007-10-17 Roland McGrath <roland@frob.com>
4835 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4836 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4838 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4840 * version.h (VERSION): Bump to 2.7.
4841 * include/features.h (__GLIBC_MINOR__): Bump to 7.
4844 * time/tzset.c (__tz_convert): Don't force testing for a change of
4845 TZ if not called from localtime. But then also see whether the
4846 file changed, in case __use_tzfile is set.
4848 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4849 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4850 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4851 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4852 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4853 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4854 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4855 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4857 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4859 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4860 and admin selects to be able to replace the gai.conf file, lock
4861 data structures around the qsort call.
4863 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4865 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4867 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
4868 too high for the improvements. Implement bzero unconditionally for
4871 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4872 Jakub Jelinek <jakub@redhat.com>
4874 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4875 even when time_t is 32-bit.
4876 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4877 timezone data read by __tzfile_default. Ensure __tzname[0] is
4878 always set after the search.
4880 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4882 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4883 unreachable code on 32-bit machines.
4885 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4888 * time/strftime_l.c: Include stdbool.h.
4889 (my_strftime): New wrapper, old function renamed to...
4890 (__strftime_internal): ... new function. Add tzset_called
4891 argument, pass it down to recursive calls, don't call tzset ()
4892 if already true, set to true after call to tzset ().
4894 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4896 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4897 into account when copying TZ string.
4899 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4901 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4902 num_transition rather than num_transitions - 1.
4904 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4906 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4909 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4910 a local label rather than HIDDEN_JUMPTARGET.
4912 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4914 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4915 (init_cacheinfo): Initialize it.
4916 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4917 Always define bzero.
4918 Remove non-glibc code.
4919 * sysdeps/x86_64/bzero.S: Make an empty file.
4921 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4923 * sysdeps/x86_64/cacheinfo.c
4924 (__x86_64_preferred_memory_instruction): New.
4925 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4927 * sysdeps/x86_64/memset.S: Rewrite.
4929 2007-10-15 Roland McGrath <roland@redhat.com>
4931 * po/libc.pot: Regenerated.
4933 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4935 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4939 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4940 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4941 address record to T_A/T_AAAA requests.
4943 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4945 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4947 * posix/glob.c: Add some branch prediction throughout.
4949 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4952 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4954 (rfc3484_sort): Make sure that even if qsort doesn't support
4955 stable sorting out sorting here is stable by comparing service_order.
4956 (getaddrinfo): Initialize service_order.
4957 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4958 service_order field to sorting structure.
4959 * posix/tst-rfc3484-2.c (do_test): Likewise.
4961 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4962 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4963 __tzset_parse_tz and updating of daylight, timezone, tzname into
4965 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4966 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4967 happens in __tz_compute.
4968 * time/tzfile.c (__tzfile_read): Also read TZ string.
4969 (find_transition): Fold into __tzfile_compute.
4970 (__tzfile_compute): For times beyond the last transition try to
4972 * timezone/tst-timezone.c: Information in daylight and tzname does
4973 change for Asia/Tokyo timezone with more concrete information.
4976 * include/stdio.h: Add libc_hidden_proto for ftello.
4977 * libio/ftello.c: Add libc_hidden_def.
4980 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4981 on the specified time and not the last entries in the file. Move
4982 code to determine tzname[] to...
4983 (find_transition): ...here. Add ugly guess for times before the
4986 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4989 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4991 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4992 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4993 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4994 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4996 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4997 read mechanism when there are no group members and avoid no-op
4998 read syscall in this case.
5001 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5002 (__readall): If reading failed due to EAGAIN error wait a bit
5003 and possibly try again.
5004 (__readvall): Likewise.
5006 2007-10-13 Bruno Haible <bruno@clisp.org>
5008 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5009 when we cannot recode the message.
5011 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5014 * libio/__freading.c (__freading): Don't return true for
5015 write-only streams. For read/write streams, check whether we
5016 performed a read operation already.
5017 * libio/Makefile (tests): Add tst-ext2.
5018 * libio/tst-ext2.c: New file.
5020 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5022 * locale/programs/repertoire.c (repertoire_read): Always free
5023 memory for repertoire file name [Coverity CID 270].
5025 * elf/cache.c (save_aux_cache): Free memory allocated for
5026 temporary file name [Coverity CID 267].
5028 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5030 * misc/Makefile (headers): Add bits/error.h.
5032 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5034 * posix/fnmatch_loop.c: Take rule index returned as part of
5035 findidx return value into account when accessing weights.
5036 * posix/regcomp.c: Likewise.
5037 * posix/regexec.c: Likewise.
5039 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5040 (skip_to): Fix problems with parameter of elifdef/elifndef.
5042 2007-10-11 Ulrich Drepper <drepper@redhat.com>
5044 * iconv/gconv_simple.c: Add some branch prediction.
5046 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5048 * locale/programs/ld-collate.c (collate_read): If ignore_content
5049 and nowtok is tok_define, eat any tok_eol tokens.
5051 2007-10-11 Jakub Jelinek <jakub@redhat.com>
5053 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5054 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5056 * inet/netinet/in.h: Don't include bits/socket.h.
5057 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5059 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5061 2007-10-10 Ulrich Drepper <drepper@redhat.com>
5063 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5065 * locale/programs/locfile-kw.gperf: Likewise.
5066 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5068 2007-10-10 Jakub Jelinek <jakub@redhat.com>
5070 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5071 (__find_specwc): Change into __extern_always_inline function.
5072 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5073 (__parse_one_specmb): Remove ps argument.
5074 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5075 Adjust __find_specmb and __parse_one_specmb callers.
5076 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5077 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5079 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5082 2007-10-09 Ulrich Drepper <drepper@redhat.com>
5084 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5085 with some Pentium Ds.
5087 2007-10-08 Ulrich Drepper <drepper@redhat.com>
5089 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5091 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5094 2007-10-07 Ulrich Drepper <drepper@redhat.com>
5097 * locale/C-time.c: Set week_1stday data to 19971201.
5098 * locale/programs/ld-time.c (time_finish): Default for
5099 first_workday is Monday.
5102 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5105 * posix/glob.c (glob): Recognize patterns starting \/.
5106 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5107 (main): Add test for pattern starting \/.
5109 * misc/error.h: Use __const instead of const.
5110 * misc/bits/error.h: Likewise.
5112 2007-10-07 Andreas Jaeger <aj@suse.de>
5114 * include/bits/error.h: New file.
5116 * misc/bits/error.h (error_at_line): Fix prototype.
5118 2007-10-06 Ulrich Drepper <drepper@redhat.com>
5121 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5122 more little bugs in creating the stack frame when pltexit has to
5125 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5126 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5129 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5130 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5131 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5132 * math/libm-test.inc: Add test for this case.
5135 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5136 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5137 map service succeeded.
5138 (svc_is_mapped): New function.
5139 (svc_unregister): Use it before trying to unmap service.
5141 2007-10-05 Ulrich Drepper <drepper@redhat.com>
5143 * timezone/zic.c: Update from tzcode2007h.
5146 * timezone/africa: Update from tzdata2007h.
5147 * timezone/antarctica: Likewise.
5148 * timezone/asia: Likewise.
5149 * timezone/australasia: Likewise.
5150 * timezone/europe: Likewise.
5151 * timezone/leapseconds: Likewise.
5152 * timezone/northamerica: Likewise.
5153 * timezone/southamerica: Likewise.
5154 * timzeone/zone.tab: Likewise.
5157 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5160 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5161 avoid warning with -Wconversion.
5162 (__strndup): Likewise.
5163 Half the patch by Christian Iseli <christian.iseli@licr.org>.
5166 * nscd/connections.c (restart): Don't resync if database is
5167 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5169 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5170 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5172 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5173 evetnfd_read, eventfd_write.
5174 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5175 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5176 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5177 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5178 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5179 eventfd_write for GLIBC_2.7.
5181 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5182 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5183 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5184 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5186 2007-10-04 Jakub Jelinek <jakub@redhat.com>
5188 * stdlib/msort.c: Include stdint.h.
5189 (struct msort_param): New type.
5190 (msort_with_tmp): Use struct msort_param pointer for unchanging
5191 parameters. Add optimized handling for several common sizes
5192 and indirect sorting mode.
5193 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5195 Suggested by Belazougui Djamel .
5197 * stdlib/Makefile (tests): Add tst-qsort2.
5198 * stdlib/tst-qsort2.c: New test.
5200 2007-10-04 Ulrich Drepper <drepper@redhat.com>
5202 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5203 for dup2 in case another thread races with the current one. Retry
5206 * misc/error.h: Remove support for use outside of libc. We have to
5207 include <features.h> now. Include <bits/error.h> if possible.
5208 * misc/bits/error.h: New file.
5210 2007-10-03 Jakub Jelinek <jakub@redhat.com>
5212 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5213 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5214 __extern_always_inline functions unconditionally, drop macros.
5216 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5217 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5218 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5220 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5221 add __artificial__ attribute.
5223 2007-10-02 Ulrich Drepper <drepper@redhat.com>
5225 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5226 backward to forward direction.
5228 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5231 * locale/programs/ld-collate.c (collate_finish): Compare against last
5232 used section which is known to have rules defined.
5233 (collate_read): After order_start, correctly record order of sections
5234 and queue sections up.
5236 2007-10-01 Ulrich Drepper <drepper@redhat.com>
5239 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5240 the same number of pages.
5241 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5243 * locale/programs/ld-collate.c (collate_read): After initial copy
5244 statement, continue in state 0.
5246 * include/stdio_ext.h (__fsetlocking): Define as macro.
5248 2007-09-30 Ulrich Drepper <drepper@redhat.com>
5250 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5253 * po/pt_BR.po: Fix typo.
5255 2007-09-29 Ulrich Drepper <drepper@redhat.com>
5257 * iconvdata/Makefile (modules): Add ISO8859-9E.
5258 (distribute): Add iso8859-9e.c.
5259 (gen-8bit-gap-modules): Add iso8859-9e.
5260 * iconvdata/iso8859-9e.c: New file.
5261 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5262 * iconvdata/TESTS: Likewise.
5263 * iconvdata/tst-tables.sh: Likewise.
5265 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5267 * locale/iso-639.def: Add several new entries.
5269 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5271 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5272 void * pointers instead of struct link_map **.
5273 (_dl_scope_free): Change argument type to void *.
5274 * include/link.h (struct link_map): Change type of l_reldeps
5275 to struct link_map_reldeps, move l_reldepsact into that
5277 * elf/dl-deps.c: Include atomic.h.
5278 (_dl_map_object_deps): Only change l->l_initfini when it is
5279 fully populated, use _dl_scope_free for freeing it. Optimize
5280 removal of libs from reldeps by using l_reserved flag, when
5281 some removal is needed, allocate a new list instead of
5282 reallocating and free the old with _dl_scope_free. Adjust
5283 for l_reldeps and l_reldepsact changes.
5284 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5285 searching in l_initfini and l_reldeps without holding dl_load_lock.
5286 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5287 l_reldepsact changes.
5288 * elf/dl-close.c (_dl_close_worker): Likewise.
5289 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5291 2007-09-28 Ulrich Drepper <drepper@redhat.com>
5293 * iconvdata/Makefile (modules): Add KOI8-RU.
5294 (distribute): Add koi8-ru.c.
5295 (gen-8bit-gap-modules): Add koi8-ru.
5296 * iconvdata/koi8-ru.c: New file.
5297 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5298 * iconvdata/TESTS: Likewise.
5299 * iconvdata/tst-tables.sh: Likewise.
5301 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5303 2007-09-26 Jakub Jelinek <jakub@redhat.com>
5305 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5306 with __warning__/__error__ attributes.
5307 (__warnattr): Define.
5308 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5309 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5311 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5312 of __*_chk if compile time detectable overflow is found.
5313 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5314 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5316 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5317 instead of __*_chk if compile time detectable overflow is found.
5318 (__gets_alias): Rename to...
5319 (__gets_warn): ... this. Add __warnattr.
5320 (gets): Call __gets_warn instead of __gets_alias.
5321 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5322 aliases with __warnattr.
5323 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5324 time detectable overflow is found.
5325 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5326 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5327 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5328 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5329 __getdomainname_chk_warn): New aliases with __warnattr.
5330 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5331 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5332 __*_chk_warn instead of __*_chk if compile time detectable overflow
5334 (__getgroups_chk): Rename argument to __listlen from listlen.
5335 (__getwd_alias): Rename to...
5336 (__getwd_warn): ... this. Add __warnattr.
5337 (getwd): Call __getwd_warn instead of __getwd_alias.
5338 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5339 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5340 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5341 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5342 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5343 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5344 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5345 compile time detectable overflow is found.
5346 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5347 to use __*_chk or not.
5348 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5349 in comparisons which function should be called and in __*_chk*
5350 arguments. Call __*_chk_warn instead of __*_chk if compile time
5351 detectable overflow is found.
5352 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5354 * debug/tst-chk1.c (do_test): Add a few more tests.
5356 2007-09-24 Ulrich Drepper <drepper@redhat.com>
5359 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5360 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5361 (_nl_unload_domain): Finalize conversions_lock.
5362 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5363 handling table of known conversions.
5365 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5367 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5368 close_not_cancel_no_status instead of close.
5370 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5373 * posix/regcomp.c (lookup_collation_sequence_value): Check that
5374 nrules != 0 for multibyte chars.
5376 2007-09-23 Ulrich Drepper <drepper@redhat.com>
5378 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5379 Provide better error message in case the type is unknown.
5382 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5383 * string/stratcliff.c: Make usable to test wide char functions.
5384 * wcsmbs/wcsatcliff.c: New file.
5385 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5388 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5389 (distribute): Add mac-centraleurope.c.
5390 (gen-8bit-gap-modules): Add mac-centraleurope.
5391 * iconvdata/mac-centraleurope.c: New file.
5392 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5393 * iconvdata/TESTS: Likewise.
5394 * iconvdata/tst-tables.sh: Likewise.
5397 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5399 2007-09-21 Ulrich Drepper <drepper@redhat.com>
5401 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5402 from __x86_64_core_cache_size_half.
5403 (init_cacheinfo): Compute shared cache size for AMD processors with
5404 shared L3 correctly.
5405 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5407 Patch in large parts by Evandro Menezes.
5409 2007-09-19 Ulrich Drepper <drepper@redhat.com>
5411 * elf/dl-lookup.c (add_dependency): Handle failing memory
5412 allocation for dependency list. Remove unnecessary check.
5414 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5415 open/close when determining source addresses.
5417 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5418 sha512-crypt, and sha512.
5419 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5420 (distribute): Add sha256.h and sha512.h.
5421 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5422 and call the appropriate code.
5423 * crypt/sha256-crypt.c: New file.
5424 * crypt/sha256.c: New file.
5425 * crypt/sha256.h: New file.
5426 * crypt/sha256c-test.c: New file.
5427 * crypt/sha256test.c: New file.
5428 * crypt/sha512-crypt.c: New file.
5429 * crypt/sha512.c: New file.
5430 * crypt/sha512.h: New file.
5431 * crypt/sha512c-test.c: New file.
5432 * crypt/sha512test.c: New file.
5434 2007-09-19 Jakub Jelinek <jakub@redhat.com>
5436 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5437 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5440 2007-09-18 Jakub Jelinek <jakub@redhat.com>
5442 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5443 %as in fscanf format strings.
5445 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5446 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5447 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5449 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5452 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5453 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5454 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5455 * elf/dl-sym.c (do_sym): Likewise.
5456 * include/link.h (struct link_map): Add l_serial field.
5457 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5458 * elf/dl-lookup.c (add_dependency): Add flags argument.
5459 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5460 flags, use THREAD_GSCOPE_RESET_FLAG before and
5461 THREAD_GSCOPE_SET_FLAG after
5462 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5463 Don't dereference map until it has been found on some list.
5464 If map->l_serial changed, return -1.
5466 2007-09-17 Jakub Jelinek <jakub@redhat.com>
5468 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5469 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5470 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5472 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5473 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5474 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5475 add libc_hidden_proto.
5476 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5477 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5478 conformance requested.
5479 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5480 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5481 conformance requested.
5482 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5483 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5484 conformance requested.
5485 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5486 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5487 ISO C99 or POSIX conformance requested.
5488 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5489 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5490 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5491 and __isoc99_vsscanf@@GLIBC_2.7.
5492 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5493 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5494 (tests): Add scanf14.
5495 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5496 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5497 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5498 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5499 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5500 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5501 from using internal headers.
5502 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5503 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5504 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5505 and __isoc99_vswscanf@@GLIBC_2.7.
5506 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5507 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5508 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5509 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5510 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5511 * stdio-common/isoc99_scanf.c: New file.
5512 * stdio-common/isoc99_vsscanf.c: New file.
5513 * stdio-common/isoc99_vscanf.c: New file.
5514 * stdio-common/isoc99_vfscanf.c: New file.
5515 * stdio-common/isoc99_fscanf.c: New file.
5516 * stdio-common/isoc99_sscanf.c: New file.
5517 * wcsmbs/isoc99_fwscanf.c: New file.
5518 * wcsmbs/isoc99_vswscanf.c: New file.
5519 * wcsmbs/isoc99_swscanf.c: New file.
5520 * wcsmbs/isoc99_wscanf.c: New file.
5521 * wcsmbs/isoc99_vwscanf.c: New file.
5522 * wcsmbs/isoc99_vfwscanf.c: New file.
5523 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5524 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5525 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5526 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5527 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5528 * stdio-common/scanf14.c: New test.
5529 * stdio-common/scanf15.c: New test.
5530 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5531 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5532 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5533 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5534 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5535 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5536 __nldbl___isoc99_scanf@@GLIBC_2.7,
5537 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5538 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5539 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5540 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5541 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5542 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5543 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5544 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5545 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5546 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5547 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5548 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5549 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5550 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5551 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5552 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5553 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5554 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5555 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5556 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5557 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5558 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5559 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5561 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5562 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5563 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5564 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5565 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5566 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5567 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5568 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5569 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5570 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5571 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5572 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5574 * stdio-common/Makefile (tests): Add scanf13.
5576 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5577 m modifier followed by l.
5578 (STRING_ARG): Add width argument.
5579 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5580 <case L_('C')>: Handle %mlc and %mC.
5581 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5583 * stdio-common/scanf13.c: New test.
5585 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5586 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5588 2007-09-18 Ulrich Drepper <drepper@redhat.com>
5590 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5591 type and __THROW marker of splice, vmsplice, and tee.
5592 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5593 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5594 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5595 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5596 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5597 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5598 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5599 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5600 as cancellation points.
5602 2003-11-01 Daniel Jacobowitz <dan@debian.org>
5604 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5605 parse more than three parts of the version number.
5607 2007-09-15 Ulrich Drepper <drepper@redhat.com>
5609 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5610 modifier. Patch by Jakub Jelinek.
5612 2007-08-26 Jakub Jelinek <jakub@redhat.com>
5614 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5615 call_fallocate in misc subdir.
5616 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5617 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5618 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5619 instead of __fallocate64.
5620 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5622 2007-09-15 Jakub Jelinek <jakub@redhat.com>
5624 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5625 * rt/Makefile (headers): Add bits/mqueue2.h.
5626 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5627 optimizing with GCC and __va_arg_pack_len is defined.
5628 * rt/bits/mqueue2.h: New file.
5629 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5630 (mq_open): New strong_alias.
5631 (__mq_open_2): New function.
5632 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5633 (mq_open): New strong_alias.
5634 (__mq_open_2): New function.
5635 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5636 * Versions.def (librt): Add GLIBC_2.7 version.
5637 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5638 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5640 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5641 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5642 is defined rather than when not C++.
5643 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5644 __openat64_alias): New redirects.
5645 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5646 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5647 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5648 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5649 functions instead of function-like macros.
5651 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5653 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5654 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5655 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5657 2007-09-15 Mike Frysinger <vapier@gentoo.org>
5659 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5660 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5662 2007-09-14 Mike Frysinger <vapier@gentoo.org>
5664 * inet/tst-network.c: Increment ERRORS for failing tests.
5666 2007-09-07 Jakub Jelinek <jakub@redhat.com>
5668 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5669 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5670 implement as __extern_always_inline function.
5671 (vsyslog): Define as __extern_always_inline function unconditionally.
5672 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5673 When __va_arg_pack is defined, implement as __extern_always_inline
5675 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5676 __extern_always_inline functions unconditionally.
5677 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5678 bits/stdio2.h will be included.
5679 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5680 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5681 implement as __extern_always_inline functions.
5682 (vswprintf, vwprintf, vfwprintf): Define as
5683 __extern_always_inline functions unconditionally.
5684 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5686 2007-09-03 Jakub Jelinek <jakub@redhat.com>
5688 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5689 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5691 * include/features.h (__USE_EXTERN_INLINES): Define only when
5692 __extern_inline is defined.
5693 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5694 is defined instead of when not __cplusplus.
5695 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5696 is defined instead of when not __cplusplus.
5697 * socket/sys/socket.h: Include bits/socket2.h when
5698 __extern_always_inline is defined instead of when not __cplusplus.
5699 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5700 is defined instead of when not __cplusplus.
5701 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5702 is defined instead of when not __cplusplus.
5703 * string/string.h: Include bits/string3.h when __extern_always_inline
5704 is defined instead of when not __cplusplus.
5705 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5706 is defined instead of when not __cplusplus.
5707 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5708 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5710 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5711 defined __extern_always_inline instead of !defined __cplusplus.
5712 * libio/bits/stdio-ldbl.h: Likewise.
5713 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5714 * misc/bits/syslog.h (syslog): Don't define for C++.
5715 (vsyslog): Use __extern_always_inline function for C++ instead of
5717 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5718 whenever that macro is defined.
5719 (vprintf): Don't provide the inline for C++.
5720 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5721 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5722 define the macros for C++.
5723 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5724 __extern_always_inline functions for C++.
5725 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5726 stat64, lstat64, fstat64, fstatat64): Don't define if not
5727 __USE_EXTERN_INLINES.
5728 * wcsmbs/bits/wchar2.h: Fix #error message.
5729 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5730 (vswprintf, vwprintf, vfwprintf): Define using
5731 __extern_always_inline functions for C++.
5732 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5733 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5734 strncpy, strcat, strncat): Define as __extern_always_inline
5735 functions instead of macros for C++.
5736 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5737 defined __extern_inline.
5738 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5739 to __extern_inline whenever that macro is defined.
5740 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5741 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5742 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5743 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5744 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5745 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5746 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5747 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5748 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5749 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5750 prototypes. Only provide __extern_inline routines if
5751 __USE_EXTERN_INLINES.
5752 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5754 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5755 For now avoid some *printf tests in C++. Skip all testing
5756 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5758 * debug/tst-chk4.cc: New file.
5759 * debug/tst-chk5.cc: New file.
5760 * debug/tst-chk6.cc: New file.
5761 * debug/tst-lfschk4.cc: New file.
5762 * debug/tst-lfschk5.cc: New file.
5763 * debug/tst-lfschk6.cc: New file.
5764 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5766 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5767 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5768 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5770 2007-09-13 Ulrich Drepper <drepper@redhat.com>
5772 * po/cs.po: Update from translation team.
5774 2007-09-11 Roland McGrath <roland@redhat.com>
5776 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5779 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5781 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5783 2007-09-05 Roland McGrath <roland@redhat.com>
5785 * manual/signal.texi (Signaling Another Process): Typo fix.
5786 From Karl Berry <karl@freefriends.org>.
5788 2007-08-29 Ulrich Drepper <drepper@redhat.com>
5790 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5791 zero if not defined.
5792 (make_request): Recognize optimistic addresses and treat them like
5793 deprecated addresses.
5794 Reported by Neil Horman <nhorman@redhat.com>.
5796 2007-08-28 Ulrich Drepper <drepper@redhat.com>
5798 * nscd/connections.c (send_ro_fd): Also transfer file size.
5799 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5800 file size don't call fstat.
5802 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5803 ahead and map the file. This should always be correct and we can
5804 catch problems later.
5806 2007-08-28 Jakub Jelinek <jakub@redhat.com>
5808 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5810 (__fread_alias, __fread_unlocked_alias): New aliases.
5811 (fread): New extern inline.
5812 (fread_unlocked): Likewise. Undef macro before definition of
5813 the inline function.
5814 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5815 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5816 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5817 and __fread_unlocked_chk@@GLIBC_2.7.
5818 * debug/fread_chk.c: New file.
5819 * debug/fread_u_chk.c: New file.
5820 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5822 2007-08-27 Jakub Jelinek <jakub@redhat.com>
5824 * sysdeps/unix/sysv/linux/syscalls.list
5825 (personality): Change caller to EXTRA.
5827 2007-08-25 Ulrich Drepper <drepper@redhat.com>
5829 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5831 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5833 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5836 * Makerules: Use -p option with mkdir.
5838 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5839 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5840 (_xdr_directory_obj): Likewise.
5841 (xdr_entry_obj): Likewise.
5842 (xdr_group_obj): Likewise.
5843 (xdr_link_obj): Likewise.
5844 (xdr_table_obj): Likewise.
5845 (_xdr_nis_result): Likewise.
5846 (_xdr_ns_request): Likewise.
5847 (_xdr_ib_request): Likewise.
5848 (_xdr_nis_taglist): Likewise.
5849 (xdr_cback_data): Likewise.
5850 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5851 (xdr_ypresp_maplist): Likewise.
5853 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5855 * posix/regex_internal.h: Prevent some declarations and definitions
5856 to be seen when used in tests.
5858 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5859 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5861 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5863 * config.make.in (datarootdir): Add to shut up configure.
5865 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5866 associativity for fully-associative caches.
5868 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5869 requests. Fill on more associativity values for L2.
5870 Patch mostly by Evandro Menezes.
5872 2007-08-24 Ulrich Drepper <drepper@redhat.com>
5874 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5875 (_libc_vdso_platform_setup): Avoid using exported variable by using
5878 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5880 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5881 fallocate64 as EXTRA. It is not referenced if the symbol isn't
5884 2007-08-23 Ulrich Drepper <drepper@redhat.com>
5886 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5887 align stack for call if pltexit is to be used.
5890 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5891 align for function call in case pltexit has to be called later.
5893 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5894 implicit atomic operation when storing function pointer.
5895 (_dl_runtime_profile): Likewise.
5897 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5899 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5902 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5905 * string/strtok.c: Fix typo in comment.
5908 * debug/segfault.c: Fix typos in comments.
5911 * stdio-common/tempnam.c: Fix comment, it is not checked that
5912 TMPDIR points to a writable directory.
5915 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5916 memory allocated for the name server address.
5919 * nscd/connections.c (handle_request): Using sendfile always
5920 requires that mmap is used for the database.
5921 Patch by Petr Baudis <pasky@suse.cz>.
5924 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5925 suddenly has two or more addresses, ignore it and remove the old
5929 * resolv/res_hconf.c: Prepare for compiling outside libc.
5930 * nscd/res_hconf.c: New file.
5931 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5933 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5934 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5936 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5939 * debug/pcprofiledump.c: Turn on internationalization by calling
5940 setlocale. Patch mostly by Benno Schulenberg.
5943 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5945 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5946 * iconvdata/bug-iconv5.c: New file.
5948 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5951 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5952 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5953 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5954 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5955 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5956 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5957 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5958 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5960 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5963 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5964 lookup loop. Suggested by John Reiser.
5966 2007-08-21 Jakub Jelinek <jakub@redhat.com>
5968 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5970 2007-08-20 Ulrich Drepper <drepper@redhat.com>
5972 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5973 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5974 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5975 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5976 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5978 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5980 2007-08-18 Ulrich Drepper <drepper@redhat.com>
5982 * po/nl.po: Update from translation team.
5984 2007-08-16 Andreas Jaeger <aj@suse.de>
5986 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5987 Reported by Peter Festner <peter.festner@ewetel.net>.
5989 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5991 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5993 2007-08-16 Jakub Jelinek <jakub@redhat.com>
5995 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5996 to check for undefined symbols.
5998 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5999 If the syscall fails, set errno to the actual returned error number
6001 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6002 arguments are incorrect, set errno to EINVAL, if the syscall
6003 fails, set errno to the actual returned error number.
6005 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6006 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6008 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6009 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6011 (ASI_PNF, ASI_BLK_P): Don't define.
6012 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6013 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6015 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6016 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6019 2007-08-15 Jakub Jelinek <jakub@redhat.com>
6021 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6022 FE_UNDERFLOW on Niagara CPUs.
6024 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6027 2007-08-14 Jakub Jelinek <jakub@redhat.com>
6029 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6030 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6031 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6032 flush should be used or not inside of the function.
6033 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6035 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6036 __thread_start): Use HIDDEN_JUMPTARGET.
6037 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6038 __thread_start): Likewise.
6039 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6041 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6042 Add libc_hidden_proto.
6043 (STRTOF): Add libc_hidden_proto.
6044 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6045 (strtold_l, wcstold_l): Use them as second argument for
6048 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6050 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6052 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6054 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6056 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6058 * po/bg.po: New file. From the translation team.
6060 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6062 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6063 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6064 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6065 when each feature was introduced.
6067 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6068 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6069 (CHECK_HASH): New macro.
6070 (PREPARE_VERSION): Use it.
6072 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6073 prototype if not __ASSUME_PSELECT.
6074 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6075 prototype if not __ASSUME_PPOLL.
6077 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6079 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6080 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6083 2007-08-13 Ulrich Drepper <drepper@redhat.com>
6085 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6086 (_libc_vdso_platform_setup): If vDSO is not available point
6087 __vdso_gettimeofday to the vsyscall.
6088 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6089 __vdso_gettimeofday instead of vsyscall.
6091 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6093 * nscd/servicescache.c: Include kernel-features.h.
6094 * nscd/gai.c: Likewise.
6095 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6096 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6097 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6098 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6099 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6100 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6101 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6102 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6103 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6105 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6107 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6108 and _dl_get_origin defines anymore.
6110 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6111 Build fix for systems which might lack POSIX timer support.
6113 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6114 (_libc_vdso_platform_setup): Mangle function pointers before storing
6116 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6117 Demangle vdso pointer before use.
6118 (INTERNAL_VSYSCALL): Likewise.
6120 * elf/cache.c (primes): Mark as const.
6121 Noted by Roland McGrath.
6123 2007-08-01 Andreas Jaeger <aj@suse.de>
6124 Jakub Jelinek <jakub@redhat.com>
6126 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6127 (options): Add option.
6128 (parse_opt): Handle option.
6129 (manual_link): Adjust process_file caller. Call implicit_soname.
6130 (search_dir): Formatting. Use and populate auxiliary cache.
6131 (main): Load and save auxiliary cache.
6132 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6133 stat64 from fstat64 to caller.
6134 (implicit_soname): New function.
6135 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6136 leave *soname as NULL.
6137 * elf/cache.c: Include libgen.h.
6138 (print_entry, print_cache, compare, save_cache, add_to_cache):
6139 Formatting and cleanups.
6140 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6141 aux_cache_file): New structures.
6142 (AUX_CACHEMAGIC): Define.
6143 (primes): New array.
6144 (aux_hash_size, aux_hash): New variables.
6145 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6146 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6147 load_aux_cache, save_aux_cache): New functions.
6148 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6149 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6150 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6151 (process_file): Adjust prototype.
6153 2007-08-12 Jakub Jelinek <jakub@redhat.com>
6155 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6158 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6160 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6161 r_found_version structure as second parameter.
6162 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6163 (_dl_vdso_vsym): Change type of second parameter accordingly.
6164 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6165 (_libc_vdso_platform_setup): Adjust.
6166 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6167 (_libc_vdso_platform_setup): Likewise.
6169 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6170 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6171 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6172 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6173 * csu/libc-start.c: Pretty printing.
6174 Use VDSO_SETUP if defined.
6175 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6176 and let generic code call into _libc_vdso_platform_setup.
6177 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6178 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6179 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6180 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6181 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6183 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6184 (sysdep_rountines): Add dl-vdso.
6186 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6189 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6190 attribute_hidden to __vdso_gettimeofday prototype.
6192 2007-08-12 Roland McGrath <roland@redhat.com>
6194 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6195 From: Karl Berry <karl@freefriends.org>.
6197 2007-08-11 Ulrich Drepper <drepper@redhat.com>
6199 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6200 an atime update for the files we read.
6202 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6204 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6206 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
6209 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6210 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6211 * misc/mkostemp.c: New file.
6212 * misc/mkostemp64.c: New file.
6213 * stdlib/stdlib.h: Declare the new functions.
6214 * sysdeps/posix/tempname.c: Add new parameter which is added to
6215 the flags for open. Remove __GT_BIGFILE handling.
6216 * stdio-common/tempname.c: Likewise.
6217 * include/stdio.h: Adjust __gen_tempname prototype.
6218 Renumber __GT_* constants.
6219 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6220 * misc/mkdtemp.c: Likewise.
6221 * misc/mkstemp.c: Likewise.
6222 * misc/mkstemp64.c: Likewise.
6223 * misc/mktemp.c: Likewise.
6224 * stdio-common/tempnam.c: Likewise.
6225 * stdio-common/tmpfile.c: Likewise.
6226 * stdio-common/tmpfile64.c: Likewise.
6227 * stdio-common/tmpnam.c: Likewise.
6228 * stdio-common/tmpnam_r.c: Likewise.
6230 2007-08-10 Roland McGrath <roland@frob.com>
6232 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6234 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6235 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6237 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6239 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6241 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6242 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6243 * nss/nss_files/files-have_o_cloexec.c: New file.
6245 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6248 2007-08-10 Jakub Jelinek <jakub@redhat.com>
6250 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6251 ___new_wcstold_l): New weak aliases.
6252 (strtold_l, wcstold_l): Use them as second argument for
6255 2007-08-09 Ulrich Drepper <drepper@redhat.com>
6257 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6258 register in test for error.
6260 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6261 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6263 * po/sv.po: Update from translation team.
6265 2007-08-06 Roland McGrath <roland@redhat.com>
6267 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6268 Remove __strto*_l inlines.
6269 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6270 * stdlib/strtod.c: Add libc_hidden_def.
6271 * stdlib/strtod_l.c: Likewise.
6272 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6273 for __new_strtold and __new_wcstold.
6274 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6276 * stdlib/strtol.c: Add libc_hidden_def.
6277 * stdlib/strtol_l.c: Likewise.
6278 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6281 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6283 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6284 * scripts/data/localplt-generic.data: ... here.
6285 * elf/Makefile (check-data): Get generic file if no other.
6286 ($(objpfx)check-localplt.out): Make target unconditional.
6288 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6291 2007-08-05 Ulrich Drepper <drepper@redhat.com>
6293 * po/zh_CN.po: Updated translation from translation team.
6295 2007-08-05 Jakub Jelinek <jakub@redhat.com>
6297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6298 Don't use CGOTSETUP and CGOTRESTORE macros.
6300 2007-08-04 Roland McGrath <roland@redhat.com>
6302 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6304 2007-08-04 Jakub Jelinek <jakub@redhat.com>
6306 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6307 __extension__ around the whole statement expression.
6309 2007-08-04 Ulrich Drepper <drepper@redhat.com>
6311 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6312 elements during initialization.
6314 * po/pl.po: Updated translation from translation team.
6315 * po/tr.po: Likewise.
6316 * po/nl.po: Likewise.
6318 2007-08-03 Ulrich Drepper <drepper@redhat.com>
6320 * rt/aio.h: Add __nonnull attributes.
6322 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6324 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6325 * stdlib/Makefile (tests): Add tst-strtod5.
6326 (tst-strtod5-ENV): New.
6327 * stdlib/tst-strtod5.c: New file.
6329 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6331 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6334 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6337 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6339 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6342 2007-08-02 Ulrich Drepper <drepper@redhat.com>
6344 * io/Makefile (aux): Add have_o_cloexec.
6345 * include/fcntl.h: Declare __have_o_cloexec.
6346 * io/have_o_cloexec.c: New file.
6347 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6348 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6349 fcntl call if not necessary.
6350 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6353 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6354 Avoid memset, add explicit initialization.
6355 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6356 to the end and change into zero-sized array.
6357 Move lock member to fill a hole on 64-bit platforms.
6359 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6361 * include/stdlib.h: Add __strto*_internal prototypes here.
6362 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6364 * include/wchar.h: Add __wcsto*_internal prototypes.
6365 * sysdeps/generic/inttypes.h: No need to protect the declaration
6366 of the __strto*_internal and __wcsto*_internal members here.
6368 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6370 2007-08-02 Roland McGrath <roland@redhat.com>
6372 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6373 $(inst_bindir)/getconf if possible.
6375 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6376 (generated): Add it.
6377 ($(inst_libexecdir)/getconf): Use it.
6379 2007-08-01 Ulrich Drepper <drepper@redhat.com>
6381 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6382 /proc is faster and sufficient. /sys is still needed for
6385 2007-08-01 Jakub Jelinek <jakub@redhat.com>
6387 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6388 syscall as __fallocate64.
6389 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6390 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6392 2007-07-30 Jakub Jelinek <jakub@redhat.com>
6394 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6397 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6398 if off_t is different rank from size_t.
6400 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6401 uw_frame_state_for): Avoid type punning warnings.
6402 * sysdeps/generic/unwind-dw2-fde-glibc.c
6403 (_Unwind_IteratePhdrCallback): Likewise.
6404 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6405 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6406 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6409 2007-07-31 Ulrich Drepper <drepper@redhat.com>
6411 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6412 total processors using sysfs.
6413 (__get_nprocs): Use sysfs to determine which processors are online.
6415 2007-07-31 Jakub Jelinek <jakub@redhat.com>
6417 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6418 syscall arguments count.
6420 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6422 2007-07-30 Roland McGrath <roland@redhat.com>
6424 * manual/libc.texinfo: Update copyrights, formatting magic, and
6425 @dircategory. From Karl Berry <karl@freefriends.org>.
6427 2007-07-29 Ulrich Drepper <drepper@redhat.com>
6430 * io/Makefile (headers): Add bits/fcntl2.h.
6432 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6434 (__CPU_EQUAL_S): Likewise.
6436 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6437 (tests): Add tst-cpuset.
6438 * posix/sched_cpualloc.c: New file.
6439 * posix/sched_cpufree.c: New file.
6440 * posix/tst-cpuset.c: New file.
6441 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6443 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6444 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6445 macros. Define CPU_*_S macros.
6447 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6449 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6453 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6454 #.0g and value rounded to 1.0.
6455 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6457 2007-07-26 Jakub Jelinek <jakub@redhat.com>
6459 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6460 for int_frac_digits and frac_digits.
6462 * login/logout.c (logout): Avoid aliasing violation.
6463 * login/logwtmp.c (logwtmp): Likewise.
6465 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6467 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6469 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6471 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6473 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6476 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6478 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6480 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6481 char * to avoid warning.
6482 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6484 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6486 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6487 allocate_arrays): Cast second argument to charmap_find_symbol
6488 to char * to avoid warnings.
6490 * locale/programs/repertoire.c (repertoire_new_char): Change
6491 from_nr, to_nr and cnt to unsigned long, adjust printf format
6494 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6495 Cast second argument to new_element to char * to avoid warnings.
6497 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6499 * intl/gettextP.h (struct loaded_domain): Change plural to const
6500 struct expression *.
6501 * intl/plural-eval.c (plural_eval): Change first argument to
6502 const struct expression *.
6503 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6504 argument to const struct expression **.
6505 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6507 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6508 in call to __gettext_free_exp.
6510 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6511 unitialized wstring/wpattern var warnings.
6513 * posix/runtests.c (struct a_test): Make data field const char *.
6515 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6516 vars if not LDBL_MANT_DIG >= 106.
6518 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6520 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6521 __find_specmb to avoid warning.
6523 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6525 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6528 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6531 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6532 tv var when it will be actually used.
6534 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6537 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6538 char array resp. pointer.
6539 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6541 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6542 to const unsigned char **.
6543 (ucs4_to_cns11643): Change second argument to unsigned char *.
6544 * iconvdata/euc-tw.c (BODY): Change endp type to
6545 const unsigned char *.
6546 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6548 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6549 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6550 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6551 types to unsigned char pointers/arrays instead of char.
6552 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6554 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6555 * iconvdata/jis0212.h: Include assert.h.
6556 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6557 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6558 of trying to handle that.
6559 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6561 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6562 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6563 two dimensional const unsigned char arrays.
6564 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6565 Initialize endp to inptr to shut up a warning.
6567 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6570 * time/strptime_l.c (__strptime_internal): Silently ignore
6571 strftime modifiers and field width in recursive calls.
6573 * include/time.h (enum ptime_locale_status): Remove.
6574 (__strptime_internal): Remove decided and era_cnt arguments,
6575 add statep argument.
6576 * time/strptime_l.c (__strptime_internal): Remove decided
6577 and era_cnt arguments, add statep argument. Don't recompute
6578 any fields in recursive calls, only update caller's tm
6579 and state, if recursive call fails, don't change tm nor
6581 (get_alt_number): Adjust.
6582 (recursive): Adjust caller.
6583 (strptime): Likewise.
6584 * time/strptime.c (strptime): Likewise.
6586 2007-07-19 Jakub Jelinek <jakub@redhat.com>
6588 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6589 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6590 if from and to charsets are the same.
6591 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6592 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6593 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6595 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6597 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6598 Don't define wint_t when __need_mbstate_t unless it
6600 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6601 in the typedef if possible.
6602 * wctype/wctype.h (wint_t): Define by including
6603 wchar.h with __need_wint_t instead of including stddef.h
6604 with __need_wint_t and as fallback definining it ourselves.
6605 * iconv/gconv.h (__need_wint_t): Define before including
6607 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6608 or _GLIBCPP_USE_WCHAR_T.
6609 (__need_wchar_t): Don't define
6610 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6611 (__need_wint_t): Don't define before including stddef.h,
6612 define before including wchar.h only if _LIBC or
6613 _GLIBCPP_USE_WCHAR_T.
6614 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6615 * sysdeps/mach/hurd/_G_config.h: Likewise.
6616 * sysdeps/generic/_G_config.h: Likewise.
6617 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6618 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6619 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6620 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6622 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6624 * sysdeps/posix/posix_fallocate64.c: Undefine
6625 __posix_fallocate64_l64 before alias handling.
6626 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6627 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6628 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6629 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6631 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6633 2007-07-23 Jakub Jelinek <jakub@redhat.com>
6635 * locale/programs/ld-collate.c (atwc): New variable.
6636 (add_to_tablewc): New toplevel function, moved from collate_output.
6637 (collate_output): Remove add_to_tablewc nested function.
6639 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6640 (name_insert): New function.
6641 (write_output): Remove hash_table and hash_size vars and name_insert
6644 2007-07-24 Roland McGrath <roland@redhat.com>
6646 * Makerules (install-others-programs-nosubdir): New target.
6647 (install-no-libc.a-nosubdir): Depend on it.
6649 * iconv/Makefile (install-others-programs): Set this instead of
6651 * login/Makefile (install-others-programs): Likewise.
6652 * posix/Makefile (install-others-programs): Likewise.
6654 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6657 2007-07-23 Ulrich Drepper <drepper@redhat.com>
6659 * io/Makefile (tests): Add tst-posix_fallocate.
6660 * io/tst-posix_fallocate.c: New file.
6662 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6665 2007-07-22 Roland McGrath <roland@frob.com>
6667 * hurd/getdport.c: Add missing copyright year update.
6669 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6670 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6672 2007-07-22 Ulrich Drepper <drepper@redhat.com>
6674 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6676 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6677 O_CLOEXEC is needed.
6678 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6679 Avoid additional fcntl to set O_CLOEXEC if not needed.
6680 * nis/nss_compat/compat-initgroups.c: Likewise.
6681 * nis/nss_compat/compat-pwd.c: Likewise.
6682 * nis/nss_compat/compat-spwd.c: Likewise.
6684 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6687 * manual/errno.texi: Change ECANCELED value to 119.
6690 * mach/lock-intern.h: Include <sys/cdefs.h>.
6693 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6697 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6700 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6702 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6704 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6706 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6708 2007-07-21 Ulrich Drepper <drepper@redhat.com>
6710 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6711 descriptor received from nscd.
6713 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6715 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6716 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6717 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6718 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6719 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6720 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6722 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6725 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6728 * login/forkpty.c (forkpty): Close master and slave fds on
6729 fork failure. Patch by
6730 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6732 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6734 * include/features.h (__USE_ISOC95): New define.
6735 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6736 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6737 for -std=iso9899:199409.
6738 * CONFORMANCE: Remove comments about unsupported AMD1.
6740 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6742 * sysdeps/ia64/sched_cpucount.c: New file.
6743 * sysdeps/powerpc/sched_cpucount.c: New file.
6745 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6746 __BEGIN_DECLS/__END_DECLS around the prototype.
6747 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6748 pointer to const cpu_set_t.
6750 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6751 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6752 __need_size_t and include stddef.h.
6753 * sysvipc/sys/msg.h: Likewise.
6754 * posix/sched.h: Likewise.
6755 * hurd/hurd/signal.h (__need_size_t): Define.
6757 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6758 neither does signal.h in pedantic ISO C namespaces. stdio.h
6759 no longer defines wint_t or wchar_t.
6761 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6762 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6763 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6764 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6765 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6766 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6767 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6768 * debug/printf_chk.c (__printf_chk): Likewise.
6769 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6770 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6772 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6775 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6776 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6778 2007-07-16 Jakub Jelinek <jakub@redhat.com>
6781 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6782 * malloc/malloc.h (realloc): Likewise.
6784 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6785 if one of proc_file_chain streams has that fileno.
6786 * stdio-common/Makefile (tests): Add tst-popen2.
6787 * stdio-common/tst-popen2.c: New test.
6789 2007-07-14 Jakub Jelinek <jakub@redhat.com>
6791 * elf/ldconfig.c: Allow GPLv2 or any later version.
6792 * elf/readlib.c: Likewise.
6793 * elf/chroot_canon.c: Likewise.
6794 * elf/cache.c: Likewise.
6795 * nscd/mem.c: Likewise.
6796 * nscd/getpwuid_r.c: Likewise.
6797 * nscd/grpcache.c: Likewise.
6798 * nscd/aicache.c: Likewise.
6799 * nscd/getsrvbynm_r.c: Likewise.
6800 * nscd/nscd.c: Likewise.
6801 * nscd/servicescache.c: Likewise.
6802 * nscd/getsrvbypt_r.c: Likewise.
6803 * nscd/initgrcache.c: Likewise.
6804 * nscd/gethstbyad_r.c: Likewise.
6805 * nscd/gethstbynm2_r.c: Likewise.
6806 * nscd/getgrnam_r.c: Likewise.
6807 * nscd/nscd_setup_thread.c: Likewise.
6808 * nscd/getpwnam_r.c: Likewise.
6809 * nscd/gai.c: Likewise.
6810 * nscd/connections.c: Likewise.
6811 * nscd/dbg_log.c: Likewise.
6812 * nscd/cache.c: Likewise.
6813 * nscd/hstcache.c: Likewise.
6814 * nscd/nscd_conf.c: Likewise.
6815 * nscd/getgrgid_r.c: Likewise.
6816 * nscd/pwdcache.c: Likewise.
6817 * catgets/gencat.c: Likewise.
6818 * locale/programs/linereader.h: Likewise.
6819 * locale/programs/locarchive.c: Likewise.
6820 * locale/programs/ld-paper.c: Likewise.
6821 * locale/programs/locfile-kw.h: Likewise.
6822 * locale/programs/ld-address.c: Likewise.
6823 * locale/programs/xmalloc.c: Likewise.
6824 * locale/programs/ld-time.c: Likewise.
6825 * locale/programs/localedef.c: Likewise.
6826 * locale/programs/simple-hash.c: Likewise.
6827 * locale/programs/xstrdup.c: Likewise.
6828 * locale/programs/ld-numeric.c: Likewise.
6829 * locale/programs/locfile-kw.gperf: Likewise.
6830 * locale/programs/ld-collate.c: Likewise.
6831 * locale/programs/charmap-kw.gperf: Likewise.
6832 * locale/programs/charmap.h: Likewise.
6833 * locale/programs/charmap-kw.h: Likewise.
6834 * locale/programs/config.h: Likewise.
6835 * locale/programs/locfile.c: Likewise.
6836 * locale/programs/ld-ctype.c: Likewise.
6837 * locale/programs/charmap.c: Likewise.
6838 * locale/programs/ld-messages.c: Likewise.
6839 * locale/programs/repertoire.h: Likewise.
6840 * locale/programs/locale.c: Likewise.
6841 * locale/programs/ld-name.c: Likewise.
6842 * locale/programs/linereader.c: Likewise.
6843 * locale/programs/locfile.h: Likewise.
6844 * locale/programs/3level.h: Likewise.
6845 * locale/programs/ld-monetary.c: Likewise.
6846 * locale/programs/ld-measurement.c: Likewise.
6847 * locale/programs/charmap-dir.c: Likewise.
6848 * locale/programs/ld-identification.c: Likewise.
6849 * locale/programs/localedef.h: Likewise.
6850 * locale/programs/charmap-dir.h: Likewise.
6851 * locale/programs/repertoire.c: Likewise.
6852 * locale/programs/simple-hash.h: Likewise.
6853 * locale/programs/ld-telephone.c: Likewise.
6854 * locale/programs/locale-spec.c: Likewise.
6855 * locale/programs/locfile-token.h: Likewise.
6856 * posix/getconf.c: Likewise.
6857 * iconv/dummy-repertoire.c: Likewise.
6858 * iconv/iconv_charmap.c: Likewise.
6859 * iconv/iconvconfig.c: Likewise.
6860 * iconv/iconv_prog.c: Likewise.
6861 * malloc/memusagestat.c: Likewise.
6862 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6864 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6866 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6867 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6868 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6869 check for the first argument.
6871 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6874 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6875 (__tgmath_real_type): Fix if expr is const int or other const
6876 qualified integral type.
6877 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6878 expressions and handle const qualified arguments.
6879 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6880 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6881 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6882 statement expressions.
6883 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6884 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6885 (__TGMATH_UNARY_IMAG): Define.
6886 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6887 * math/Makefile (tests): Add test-tgmath2.
6888 (CFLAGS-test-tgmath2.c): Add.
6889 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6890 count_cfloat, count_cldouble): New variables.
6892 (main): Check number of complex calls as well.
6893 (F(compile_test)): Add complex tests and tests with const qualified
6895 (y, z, ccount): Define.
6896 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6897 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6898 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6899 F(cproj)): New functions.
6900 * math/test-tgmath2.c: New test.
6902 2007-07-11 Jakub Jelinek <jakub@redhat.com>
6905 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6906 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6908 * dlfcn/Makefile (distribute): Add glreflib3.c.
6909 (module-names): Add glreflib3.
6910 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6912 (LDFLAGS_glreflib3.so): New.
6913 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6915 * dlfcn/glreflib3.c: New file.
6917 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6918 returned -1, return NULL.
6919 * intl/explodename.c (_nl_explode_name): Return -1 if
6920 _nl_normalize_codeset failed.
6922 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6924 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6925 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6926 and avoid branch misspredicts for > 31 bytes memset case.
6927 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6928 Remove toc ref to __cache_line_size.
6930 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6931 to get ISA-V2.0 branch hints.
6932 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6933 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6934 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6935 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6936 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6937 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6938 Remove toc ref to __cache_line_size.
6940 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6941 Include math_ldbl_opt.h.
6943 2007-07-10 Ulrich Drepper <drepper@redhat.com>
6946 * time/strptime_l.c (__strptime_internal): Implement greedy
6947 matching of weekday and month names.
6949 2007-07-09 Roland McGrath <roland@redhat.com>
6951 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6952 (ELF_NOTE_ABI): Use it.
6953 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6955 2007-07-09 Ulrich Drepper <drepper@redhat.com>
6957 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6958 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6960 2007-07-07 Ulrich Drepper <drepper@redhat.com>
6963 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6964 in loop to look for conversion specifier to avoid testing of
6966 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6967 * stdio-common/bug18.c: New file.
6968 * stdio-common/bug18a.c: New file.
6969 * stdio-common/bug19.c: New file.
6970 * stdio-common/bug19a.c: New file.
6972 2007-07-05 Mike Frysinger <vapier@gentoo.org>
6974 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6977 2007-07-01 Jakub Jelinek <jakub@redhat.com>
6979 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6980 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6981 Return NULL if mmap failed instead of asserting it does not.
6982 (calloc): Check for integer overflow.
6984 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6987 2007-07-03 Jakub Jelinek <jakub@redhat.com>
6990 * nis/nss-default.c: Include errno.h.
6991 (init): Preserve errno.
6993 2007-07-02 Ulrich Drepper <drepper@redhat.com>
6995 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6997 2007-06-30 Ulrich Drepper <drepper@redhat.com>
6999 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7001 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7003 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7005 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7007 * sysdeps/s390/dl-procinfo.c: New file.
7008 * sysdeps/s390/dl-procinfo.h: New file.
7009 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7011 2007-06-29 Jakub Jelinek <jakub@redhat.com>
7013 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7014 in PT_NOTE segments with multiple notes.
7015 * elf/readelflib.c (process_elf_file): Likewise.
7017 2007-06-22 Ulrich Drepper <drepper@redhat.com>
7019 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7022 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7024 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7026 2007-06-13 Jakub Jelinek <jakub@redhat.com>
7028 * include/link.h: Don't include rtld-lowlevel.h.
7029 (struct link_map): Remove l_scope_lock.
7030 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7031 (_dl_scope_free_list): New field (variable) in _rtld_global.
7032 (DL_LOOKUP_SCOPE_LOCK): Remove.
7033 (_dl_scope_free): New prototype.
7034 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7035 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7036 (_dl_profile_fixup): Likewise.
7037 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7038 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7039 THREAD_GSCOPE_RESET_FLAG around it.
7040 * elf/dl-close.c (_dl_close_worker): Don't use
7041 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7042 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7043 scopes were queued or if l_scope_mem has been abandoned.
7044 * elf/dl-open.c (_dl_scope_free): New function.
7045 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7046 * elf/dl-support.c (_dl_scope_free_list): New variable.
7047 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7048 Remove DL_LOOKUP_SCOPE_LOCK handling.
7049 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7051 * elf/dl-object.c (_dl_new_object): Don't use
7052 __rtld_mrlock_initialize.
7054 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7056 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7058 (rtld_global_ro): Likewise.
7060 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7062 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7063 Move PT_LOAD checking to...
7064 (_dl_addr_inside_object): ... here, new function.
7065 * elf/dl-sym.c (do_sym): If not l_contiguous,
7066 call _dl_addr_inside_object.
7067 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7068 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7069 * elf/dl-open.c (dl_open_worker): Likewise.
7070 (_dl_addr_inside_object): New function if IS_IN_rtld.
7071 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7072 holes are present or are PROT_NONE protected.
7073 * include/link.h (struct link_map): Add l_contiguous field.
7074 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7076 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7077 Tomas Janousek <tjanouse@redhat.com>
7078 Ulrich Drepper <drepper@redhat.com>
7081 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7082 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7084 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7085 unused member a bitmap.
7086 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7087 servers are configured.
7089 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7091 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7093 2007-06-17 Andreas Schwab <schwab@suse.de>
7095 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7097 2007-06-16 Andreas Jaeger <aj@suse.de>
7100 * sysdeps/unix/sysv/linux/sys/ptrace.h
7101 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7102 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7103 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7104 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7105 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7107 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7108 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7109 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7110 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7112 2007-06-16 Ulrich Drepper <drepper@redhat.com>
7115 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7116 determining whether there are IPv4/IPv6 addresses, ignore loopback
7119 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7121 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7122 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7123 as the return type. Change type of "r" variable to CMPtype.
7124 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7125 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7126 * soft-fp/gedf2.c (__gedf2): Likewise.
7127 * soft-fp/gesf2.c (__gesf2): Likewise.
7128 * soft-fp/getf2.c (__getf2): Likewise.
7129 * soft-fp/ledf2.c (__ledf2): Likewise.
7130 * soft-fp/lesf2.c (__lesf2): Likewise.
7131 * soft-fp/letf2.c (__letf2): Likewise.
7132 * soft-fp/unorddf2 (__unorddf2): Likewise.
7133 * soft-fp/unordsf2 (__unordsf2): Likewise.
7134 * soft-fp/unordtf2 (__unordtf2): Likewise.
7136 2007-06-09 Ulrich Drepper <drepper@redhat.com>
7138 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7139 make sure gcc doesn't mess around with this.
7141 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7143 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7145 2007-06-08 Jakub Jelinek <jakub@redhat.com>
7147 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7148 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7149 at most once per _dl_close_worker.
7151 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7153 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7154 __sched_cpucount as const.
7155 * posix/sched_cpucount.c: Adjust.
7157 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7158 instruction for counting bits.
7159 * sysdeps/x86_64/sched_cpucount.c: New file.
7161 2007-06-07 Ulrich Drepper <drepper@redhat.com>
7163 * configure.in: Avoid variable named BASH.
7164 * config.make.in: Likewise.
7165 Patch in part by Mike Frysinger.
7167 2007-06-06 Jakub Jelinek <jakub@redhat.com>
7170 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7171 pseudo-zeros as zero.
7172 * sysdeps/x86_64/ldbl2mpn.c: New file.
7173 * sysdeps/ia64/ldbl2mpn.c: New file.
7175 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7177 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7178 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7179 Remove unreachable code at the end.
7181 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7183 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7184 ldbl-128ibm in comment.
7185 (fpclassifyl): Correct classification of denormals.
7186 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7187 return value for MIN denormal. Rewrite using long double math too
7188 correctly handle denormals and canonicalize the results.
7190 2007-06-05 Jakub Jelinek <jakub@redhat.com>
7192 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7193 (__mpn_construct_long_double): Fix conversion where result ought
7194 to be smaller than __LDBL_MIN__, or the low double should be
7195 denormal. Fix decision where to negate low double - honor round
7197 * stdio-common/tst-sprintf2.c: Include string.h.
7198 (COMPARE_LDBL): Define.
7199 (TEST): Also test whether a string hexadecimal float representation
7200 can be parsed back to the number.
7201 (main): Add a couple of further tests.
7203 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7205 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7206 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7207 is non-zero, but smaller than 2 * __DBL_MIN__.
7208 * stdio-common/tst-sprintf2.c: New test.
7209 * stdio-common/Makefile (tests): Add tst-sprintf2.
7211 * math/test-misc.c (main): Don't run last batch of tests with
7212 IBM long double format.
7214 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7216 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7217 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7218 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7219 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7220 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7221 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7222 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7223 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7224 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7225 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7249 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7251 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7252 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7253 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7254 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7255 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7256 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7257 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7258 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7260 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7262 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7263 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7264 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7265 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7266 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7267 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7268 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7269 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7271 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7273 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7274 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7275 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7276 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7278 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7280 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7281 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7283 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7285 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7286 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7287 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7288 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7290 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7292 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7293 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7295 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7297 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7298 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7300 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7301 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7302 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7303 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7305 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7307 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7308 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7309 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7310 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7312 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7315 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7316 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7317 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7318 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7319 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7321 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7323 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7324 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7325 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7326 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7328 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7330 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7331 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7332 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7333 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7334 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7335 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7336 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7337 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7338 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7339 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7340 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7341 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7342 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7343 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7344 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7345 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7347 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7349 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7350 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7352 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7354 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7355 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7357 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7359 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7360 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7361 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7362 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7363 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7364 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7365 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7366 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7367 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7368 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7370 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7372 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7374 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7376 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7377 branch miss-predicts. Ensure that cache line crossing does not impact
7380 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7382 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7383 "../../powerpc32/power4/memcopy.h".
7384 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7385 "../../powerpc32/power4/wordcopy.c".
7387 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7389 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7390 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7391 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7392 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7393 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7394 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7396 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7398 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7400 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7402 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7403 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7404 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7405 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7406 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7407 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7408 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7409 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7411 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7413 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7415 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7417 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7418 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7419 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7420 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7421 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7422 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7423 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7425 2007-05-29 Roland McGrath <roland@redhat.com>
7427 * po/Makefile (po-sed-cmd): New variable.
7428 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7430 2007-05-29 Ulrich Drepper <drepper@redhat.com>
7432 * crypt/md5-crypt.c: Fix comment.
7434 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7435 of crashing. When this is the case or if the reply is malformed,
7436 don't try to close the new file descriptor since it does not
7438 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7440 2007-05-28 Jakub Jelinek <jakub@redhat.com>
7442 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7443 if __NR_utimensat is not defined.
7445 2007-05-26 Ulrich Drepper <drepper@redhat.com>
7447 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7449 2007-05-25 Jakub Jelinek <jakub@redhat.com>
7451 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7452 (open): Fix comment typos. Don't call __open_2 if flags
7453 is a compile time constant without O_CREAT.
7454 (__open64_2): Add nonnull attribute.
7455 (open64): Fix comment typos. Don't call __open64_2 if flags
7456 is a compile time constant without O_CREAT.
7457 (__openat_2): Add nonnull attribute, fix nonnull attribute
7459 (openat): Fix comment typos. Don't call __openat_2 if flags
7460 is a compile time constant without O_CREAT.
7461 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7463 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7464 is a compile time constant without O_CREAT.
7466 2007-05-24 Ulrich Drepper <drepper@redhat.com>
7468 * Makerules (sysd-rules): Define PTW for ptw-* files.
7469 * Versions: Define GLIBC_2.7 for libc.
7470 * include/stdio.h: Declare __fortify_fail.
7471 * debug/fortify_fail.c: New file.
7472 * debug/Makefile (routines): Add fortify_fail.
7473 * debug/chk_fail.c: Use __fortify_fail.
7474 * debug/stack_chk_fail.c: Likewise.
7475 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7476 __openat64_2 for GLIBC_2.7.
7477 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7478 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7479 and fails if necessary.
7480 * io/open64.c: Likewise.
7481 * io/openat.c: Likewise.
7482 * io/openat64.c: Likewise.
7483 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7484 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7485 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7486 * io/bits/fcntl2.h: New file.
7487 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7489 * include/bits/fcntl2.h: New file.
7490 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7492 * sysdeps/unix/sysv/linux/open_2.c: New file.
7494 2007-05-21 Ulrich Drepper <drepper@redhat.com>
7496 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7497 as second parameter to handle_intel.
7499 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7502 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7504 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7505 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7507 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7508 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7509 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7511 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7513 2007-05-21 Jakub Jelinek <jakub@redhat.com>
7516 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7517 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7518 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7520 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7523 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7524 reinitialize workend at the start of each do_positional format spec
7525 loop, free workstart before do_positional loops.
7526 (printf_unknown): Fix size of work_buffer.
7527 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7529 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7530 (public_sET_STATe): If ms->version < 3, put all chunks into
7531 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7534 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7535 * malloc/hooks.c: Likewise.
7536 * malloc/arena.c: Likewise.
7537 * malloc/malloc.c (do_check_malloc_state): Don't assert
7538 n_mmaps is not greater than n_mmaps_max. This removes the need
7539 for the previous change.
7541 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7544 2007-05-19 Ulrich Drepper <drepper@redhat.com>
7546 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7547 Define for kernel >= 2.6.22.
7549 2007-05-18 Ulrich Drepper <drepper@redhat.com>
7551 * elf/dl-close.c (_dl_close_worker): When removing object from
7552 global scope, wait for all lookups to finish afterwards.
7553 * elf/dl-open.c (add_to_global): When global scope array must
7554 grow, allocate a new one and free old array only after all
7556 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7557 (_dl_lookup_symbol_x): Likewise.
7558 * elf/dl-support.c: Define _dl_wait_lookup_done.
7559 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7560 _dl_wait_lookup_done.
7562 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7563 not overlapping with arena.
7565 * malloc/mcheck.c (reallochook): If size==0, free the block.
7567 * rt/tst-shm.c: Use fstat64 instead of fstat.
7569 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7570 __NR_sync_file_range is not defined.
7572 2007-05-17 Ulrich Drepper <drepper@redhat.com>
7574 Dummy files to prevent stub versions from being used.
7575 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7576 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7577 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7578 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7580 * version.h (VERSION): Set to 2.6.90.
7582 2007-05-14 Ulrich Drepper <drepper@redhat.com>
7584 * version.h (VERSION): Define to 2.6.
7585 * include/features.h (__GLIBC_MINOR__): Define to 6.
7587 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7589 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7592 2007-05-13 Ulrich Drepper <drepper@redhat.com>
7594 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7595 number of mmaps. n_mmaps_max is the target.
7596 * malloc/hooks.c: Likewise.
7597 * malloc/arena.c: Likewise.
7599 2007-05-12 Andreas Jaeger <aj@suse.de>
7601 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7604 2007-05-11 Ulrich Drepper <drepper@redhat.com>
7606 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7607 adding new variables.
7609 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7610 optimize. Completely extend global scope array before making the
7611 new entries visible.
7613 2007-05-10 Ulrich Drepper <drepper@redhat.com>
7615 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7616 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7619 * include/link.h: Move l_version and l_nversion members around to
7622 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7624 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7625 (__sched_setaffinity_new): If syscall was successful and
7626 RESET_VGETCPU_CACHE is defined, use it before returning.
7627 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7629 * io/sys/stat.h: Make sure struct timespec is defined for
7632 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7634 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7635 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7636 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7637 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7638 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7639 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7640 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7641 * io/sys/stat.h: Declare utimensat, futimens.
7642 * io/utimensat.c: New file.
7643 * io/futimens.c: New file.
7644 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7645 * sysdeps/unix/sysv/linux/futimens.c: New file.
7646 * io/Makefile (routines): Add utimensat, futimens.
7647 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7648 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7649 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7652 * include/sys/cdefs.h: Redefine __nonnull so that test for
7653 incorrect parameters in the libc code itself are not omitted.
7655 2007-05-09 Jakub Jelinek <jakub@redhat.com>
7657 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7658 exception in addition to inexact when asked to raise only FE_INEXACT.
7661 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7664 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7667 * string/strfry.c (strfry): Make result more random.
7669 2007-05-07 Richard Henderson <rth@redhat.com>
7671 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7672 if __NO_LONG_DOUBLE_MATH.
7673 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7674 available in the compiler, add .arch directive to the assembly.
7676 2007-05-07 Jakub Jelinek <jakub@redhat.com>
7678 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7679 compat_symbol to GLIBC_2_1.
7680 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7681 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7682 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7683 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7684 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7685 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7686 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7688 (__isnanl): New compat_symbol.
7690 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7691 Jakub Jelinek <jakub@redhat.com>
7693 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7694 (new_heap): Initialize mprotect_size.
7695 (grow_heap): When growing, only mprotect from mprotect_size till
7696 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7697 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7699 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
7700 Peter Bergner <bergner@us.ibm.com>
7702 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7703 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7704 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7705 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7706 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7707 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7708 Call __fe_mask_env() if all FP exceptions disabled.
7709 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7710 from old FPSCR to new fenv to propagate DFP rounding modes.
7711 Call __fe_mask_env() if FP exceptions previously enabled.
7712 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7713 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7714 transitioning from all exceptions disabled to any exception enabled
7716 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7717 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7718 when transitioning from all exceptions disabled to any exception
7719 enabled or visa versa.
7720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7727 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7730 * posix/unistd.h: Remove __THROW from fdatasync.
7732 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7735 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7737 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7739 * stdio-common/vfprintf.c (process_string_arg): Optimize
7740 ridiculous precision in wide char code printing multi-byte string.
7741 Reported by Jim Meyering <jim@meyering.net>.
7744 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7745 boundaries to work around systems with overlapping binary loading.
7746 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7748 2007-05-04 Ulrich Drepper <drepper@redhat.com>
7750 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7751 __mbsnrtowcs after last change.
7753 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7754 (get_ident): Likewise.
7756 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7758 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7759 with setting the sticky bit.
7760 * math/test-misc.c (main): Add more truncation tests.
7762 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
7764 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7765 double in the function declaration.
7766 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7767 double in the function declaration.
7768 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7769 float in the function declaration.
7770 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7771 float in the function declaration.
7773 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7774 denormal operands. Do not generate FP_EX_DENORM exception.
7775 (FP_UNPACK_RAW_EP): Ditto.
7776 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7777 undefined _FP_UNPACK_RAW_E.
7778 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7779 undefined _FP_UNPACK_RAW_EP.
7780 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7781 undefined _FP_PACK_RAW_E.
7782 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7783 undefined _FP_PACK_RAW_EP.
7785 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7787 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7790 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
7791 Jakub Jelinek <jakub@redhat.com>
7793 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7794 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7796 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7798 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7800 * math/test-misc.c (main): Add tests for rounding long double
7801 values close to smallest double denormalized value to double.
7803 2007-04-30 Joseph Myers <joseph@codesourcery.com>
7805 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7806 condition for truncating to 0. Set sticky bit for such
7809 2007-05-02 Jakub Jelinek <jakub@redhat.com>
7811 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7812 fixed length array for ignore.
7814 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7817 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7818 stack for large precisions.
7819 * stdio-common/test-vfprintf.c (main): Add test for large
7822 2007-04-30 Jakub Jelinek <jakub@redhat.com>
7824 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7826 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7829 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7830 account in the size check.
7831 * resolv/tst-inet_ntop.c: New test.
7832 * resolv/Makefile (tests): Add tst-inet_ntop.
7834 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7835 Jakub Jelinek <jakub@redhat.com>
7838 * malloc/malloc.c: Keep separate list for first blocks on the bin
7839 lists with a given size. This helps skipping over list elements
7840 we know won't fit in two places.
7841 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7843 2007-04-28 Ulrich Drepper <drepper@redhat.com>
7846 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7847 label to Teredo tunnel addresses 2001://32.
7849 2007-04-27 Ulrich Drepper <drepper@redhat.com>
7851 * locale/programs/ld-collate.c (collate_read): Allow order_start
7854 * locale/programs/ld-collate.c (collate_read): Fix printing of
7858 * locale/C-translit.h.in: Add entry for U2044.
7861 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7862 hexa-decimal floats without exponent.
7863 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7865 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7867 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7868 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7869 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7870 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7872 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7875 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7877 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7878 of 0 after the out_fail label.
7880 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7883 * iconv/gconv_charset.h (strip): Allow ':'.
7884 * iconv/iconv_open.c (iconv_open): Adjust comment.
7886 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7888 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7891 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7894 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7895 alignment of buffer and tmp_buffer.
7896 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7897 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7898 alignment of buffer.
7899 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7900 bigger than INT_MAX.
7901 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7902 h_errnop arguments. Fail if buflen is too small.
7903 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7905 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7908 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7909 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7911 2007-04-22 Roland McGrath <roland@redhat.com>
7913 * elf/elf.h (NT_PRXFPREG): New macro.
7915 2007-04-19 Andreas Jaeger <aj@suse.de>
7918 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7919 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7922 2007-04-19 Ulrich Drepper <drepper@redhat.com>
7924 * include/sys/mman.h: Mark madvise hidden.
7925 * misc/madvise.c: Add libc_hidden_def.
7927 2007-04-06 Jakub Jelinek <jakub@redhat.com>
7929 * nis/nis_domain_of.c (__nis_domain_of): New function.
7930 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7931 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7932 * nis/nis_call.c (rec_dirsearch): Likewise.
7933 (first_shoot): Likewise. Remove search_parent_first argument.
7934 (struct nis_server_cache): Rename search_parent_first field
7936 (nis_server_cache_search, nis_server_cache_add): Rename
7937 search_parent_first argument to search_parent.
7938 (__nisfind_server): Likewise. If search_parent, call
7941 2007-04-18 Ulrich Drepper <drepper@redhat.com>
7943 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7945 2007-04-17 Ulrich Drepper <drepper@redhat.com>
7948 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7950 2007-04-16 Ulrich Drepper <drepper@redhat.com>
7953 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7955 2007-04-15 Jakub Jelinek <jakub@redhat.com>
7957 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7958 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7959 current number of locales in SUPPORTED.
7960 (create_archive): Initialize serial.
7961 (enlarge_archive): Preserve aliases rather than duplicating
7964 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7966 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7967 after _IO_un_link, not before it.
7969 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7970 special case handling when wcp == wstartp + 1. Fix a comment typo.
7971 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7973 2007-03-30 Jakub Jelinek <jakub@redhat.com>
7975 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7976 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7977 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7979 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7980 _IO_file_xsgetn_maybe_mmap): Likewise.
7981 * libio/oldfileops.c (old_do_write): Likewise.
7982 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7983 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7984 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7985 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7986 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7987 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7988 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7989 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7990 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7991 _IO_file_underflow, _IO_file_underflow_mmap,
7992 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7993 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7994 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7995 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7996 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7997 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7998 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7999 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8000 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8001 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8002 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8003 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8004 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8005 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8006 _IO_adjust_column_internal, _IO_default_uflow_internal,
8007 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8008 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8009 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8010 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8011 _IO_file_close_it_internal, _IO_file_underflow_internal,
8012 _IO_file_overflow_internal, _IO_file_attach_internal,
8013 _IO_file_fopen_internal, _IO_file_sync_internal,
8014 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8015 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8016 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8017 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8018 _IO_seekpos_unlocked): Likewise.
8019 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8020 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8022 2007-04-16 Jakub Jelinek <jakub@redhat.com>
8024 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8025 argument in xmalloc size computation.
8027 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8029 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8030 math_opt_barrier and math_force_eval macros.
8032 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8035 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8036 * sysdeps/i386/fpu/math_private.h: New file.
8037 * sysdeps/x86_64/fpu/math_private.h: New file.
8038 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8039 math_force_eval macros. Use "+m" constraint on asm rather than
8041 * math/s_nextafter.c (__nextafter): Likewise.
8042 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8044 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8045 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8046 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8047 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8048 math_opt_barrier and math_force_eval macros.
8049 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8050 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8051 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8052 (__nexttoward): Use math_opt_barrier and
8053 math_force_eval macros. Use "+m" constraint on asm rather than
8054 "=m" and "m". Only use asm to force double result if
8055 FLT_EVAL_METHOD is 2.
8056 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8057 (__nexttowardf): Use math_opt_barrier and
8058 math_force_eval macros. Use "+m" constraint on asm rather than
8059 "=m" and "m". Only use asm to force double result if
8060 FLT_EVAL_METHOD is not 0.
8061 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8062 (__nexttowardf): Use math_opt_barrier and
8063 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8064 x to float using asm.
8065 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8066 (__nldbl_nexttowardf): Use math_opt_barrier and
8067 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8068 x to float using asm.
8069 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8070 (__nexttowardf): Use math_opt_barrier and math_force_eval
8071 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8072 * math/bug-nextafter.c (zero, inf): New variables.
8073 (main): Add new tests.
8074 * math/bug-nexttoward.c (zero, inf): New variables.
8075 (main): Add new tests.
8077 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8080 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8081 exceptions both in SW and MXCSR.
8082 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8083 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8084 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8085 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8086 in MXCSR if SSE is available.
8087 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8089 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8091 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8092 Return 0 rather than 1.
8093 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8094 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8095 * math/test-fenv.c (feholdexcept_tests): New function.
8098 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8101 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8104 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8107 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8108 Reported by David Anderson <davea42@earthlink.net>.
8110 2007-04-07 Ulrich Drepper <drepper@redhat.com>
8112 * posix/sys/wait.h: Remove unnecessary forward declaration.
8114 2007-04-05 Jakub Jelinek <jakub@redhat.com>
8116 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8117 with obj->do_servers after first_shoot.
8119 2007-04-03 Ulrich Drepper <drepper@redhat.com>
8121 * posix/Makefile (routines): Add sched_cpucount.
8122 (tests): Add tst-cpucount.
8123 * posix/sched_cpucount.c: New file.
8124 * posix/tst-cpucount.c: New file.
8125 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8126 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8127 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8128 * posix/sched.h: Define CPU_COUNT.
8130 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8132 * posix/fnmatch.c (STRUCT): Define.
8133 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8134 * posix/fnmatch_loop.c (struct STRUCT): New type.
8135 (FCT): Add ends argument. If ends != NULL and normal * is
8136 seen in the pattern, store current pattern and string pointers
8137 and return. Adjust recursive calls.
8138 (EXT): Adjust FCT callers.
8139 (STRUCT): Undef at the end of the file.
8140 * posix/Makefile (tests): Add tst-fnmatch2.
8141 * posix/tst-fnmatch2.c: New test.
8143 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8145 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8148 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8149 Change last argument to unsigned int.
8151 2007-03-23 Jakub Jelinek <jakub@redhat.com>
8153 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8155 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8157 * config.h.in (HAVE_LIBCAP): Add.
8158 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8160 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8161 free_caps. Cast away const from 4th cap_set_flag argument.
8163 2007-03-26 Ulrich Drepper <drepper@redhat.com>
8165 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8167 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8168 Add sync_file_range.
8169 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8171 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8173 * sysdeps/powerpc/bits/atomic.h
8174 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8175 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8176 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8177 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8178 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8179 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8180 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8181 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8182 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8183 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8184 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8185 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8186 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8187 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8188 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8189 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8190 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8191 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8192 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8193 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8195 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8197 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8198 (__cache_line_size): Define the variable here. Add
8199 attribute_hidden, remove weak_extern.
8200 (__libc_start_main): Set __cache_line_size
8202 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8203 (__cache_line_size): Define the variable here. Add
8204 attribute_hidden, remove weak_extern.
8205 (DL_PLATFORM_AUXV): Set __cache_line_size
8207 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8208 weak_extern, add attribute_hidden.
8209 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8211 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8213 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8215 2007-03-26 Jakub Jelinek <jakub@redhat.com>
8218 * timezone/africa: Update from tzdata2007d.
8219 * timezone/asia: Likewise.
8220 * timezone/australasia: Likewise.
8221 * timezone/backward: Likewise.
8222 * timezone/europe: Likewise.
8223 * timezone/iso3166.tab: Likewise.
8224 * timezone/leapseconds: Likewise.
8225 * timezone/northamerica: Likewise.
8226 * timezone/southamerica: Likewise.
8227 * timezone/zone.tab: Likewise.
8229 * timezone/private.h: Update from tzcode2007d.
8230 * timezone/zdump.c: Likewise.
8231 * timezone/zic.c: Likewise.
8233 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8235 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8236 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8238 (nis_server_cache_search, nis_server_cache_add): New functions.
8239 (__nisfind_server): Use them. Add dbp and flags argument, if
8240 call __nisbind_create.
8241 (__nisbind_create): Add server_used and current_ep arguments,
8242 only call __nis_findfastest if server_used is ~0.
8243 (__do_niscall2, __prepare_niscall): Adjust callers.
8244 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8245 ckey_cache_euid, ckey_cache_lock): New variables.
8246 (get_ckey): New function.
8247 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8248 __pmap_getnisport. Save __pmap_getnisport result in
8249 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8251 * nis/nis_lookup.c (nis_lookup): Likewise.
8252 * nis/nis_table.c (nis_list): Likewise.
8253 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8256 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8257 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8258 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8259 _nss_nisplus_getservbyport_r): Likewise.
8260 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8261 _nss_nisplus_getnetbyaddr_r): Likewise.
8262 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8263 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8264 _nss_nisplus_getntohost_r): Likewise.
8265 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8266 _nss_nisplus_getrpcbynumber_r): Likewise.
8268 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8270 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8271 * configure: Rebuilt.
8273 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8275 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8277 2006-06-07 Joseph Myers <joseph@codesourcery.com>
8280 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8283 2007-03-18 Jakub Jelinek <jakub@redhat.com>
8285 * nscd/gai.c: Include alloca.h.
8286 (__libc_use_alloca): Define.
8288 2007-03-16 Jakub Jelinek <jakub@redhat.com>
8290 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8292 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8293 (DL_DST_REQUIRED): Adjust user.
8295 * include/dlfcn.h (struct link_map): New forward decl.
8297 * inet/getnameinfo.c: Include stddef.h.
8298 (getnameinfo): Use offsetof.
8300 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8302 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8304 * string/strerror_l.c: Include stdlib.h.
8306 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8307 * config.make.in (gnu89-inline-CFLAGS): New variable.
8308 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8310 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8311 * argp/argp.h: Use it.
8312 * bits/mathinline.h: Likewise.
8313 * bits/sigset.h: Likewise.
8314 * bits/string.h: Likewise.
8315 * ctype/ctype.h: Likewise.
8316 * hurd/hurd.h: Likewise.
8317 * hurd/hurd/fd.h: Likewise.
8318 * hurd/hurd/port.h: Likewise.
8319 * hurd/hurd/signal.h: Likewise.
8320 * hurd/hurd/threadvar.h: Likewise.
8321 * hurd/hurd/userlink.h: Likewise.
8322 * io/sys/stat.h: Likewise.
8323 * libio/bits/stdio.h: Likewise.
8324 * libio/bits/stdio2.h: Likewise.
8325 * mach/lock-intern.h: Likewise.
8326 * mach/mach/mig_support.h: Likewise.
8327 * math/bits/cmathcalls.h: Likewise.
8328 * posix/bits/unistd.h: Likewise.
8329 * socket/bits/socket2.h: Likewise.
8330 * stdlib/bits/stdlib.h: Likewise.
8331 * stdlib/stdlib.h: Likewise.
8332 * string/argz.h: Likewise.
8333 * string/bits/string2.h: Likewise.
8334 * string/bits/string3.h: Likewise.
8335 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8336 * sysdeps/generic/inttypes.h: Likewise.
8337 * sysdeps/generic/machine-lock.h: Likewise.
8338 * sysdeps/generic/machine-sp.h: Likewise.
8339 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8340 * sysdeps/i386/i486/bits/string.h: Likewise.
8341 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8342 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8343 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8344 * sysdeps/mach/i386/machine-lock.h: Likewise.
8345 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8346 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8347 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8348 * sysdeps/s390/bits/string.h: Likewise.
8349 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8350 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8351 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8352 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8353 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8354 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8355 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8356 * wcsmbs/bits/wchar2.h: Likewise.
8357 * wcsmbs/wchar.h: Likewise.
8358 * stdlib/gmp.h: Likewise. Include <features.h> to get
8359 __extern_inline definition.
8361 2007-03-15 Jakub Jelinek <jakub@redhat.com>
8363 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8367 * math/libm-test.inc (log_test): Test -Inf and NaN.
8368 (log10_test, log1p_test, log2_test): Test -Inf.
8369 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8370 FE_INVALID when argument is qNaN.
8371 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8372 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8373 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8374 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8375 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8376 testb $4, %ah and jump if non-zero.
8377 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8378 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8381 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8382 ancestors with the same depths.
8383 Patch by Niels Moeller <nisse@lysator.liu.se>.
8384 (filter_doc): Don't crash if argp is NULL.
8385 * argp/Makefile (tests): Add tst-argp2.
8386 * argp/tst-argp2.c: New test.
8389 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8391 (updwtmp_file): Likewise.
8394 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8395 (inet6_opt_append): Don't check extlen is big enough if extbuf
8397 (inet6_opt_finish): Likewise.
8398 * inet/Makefile (tests): Add test-inet6_opt.
8399 * inet/test-inet6_opt.c: New test.
8401 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8402 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8403 NLMSG_ERR. Instead use a page sized buffer.
8404 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8407 2007-03-14 Richard Henderson <rth@redhat.com>
8409 * sysdeps/alpha/fpu/s_llround.c: New file.
8410 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8411 * sysdeps/alpha/fpu/s_lround.c: New file.
8412 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8413 * sysdeps/alpha/fpu/s_round.c: New file.
8414 * sysdeps/alpha/fpu/s_roundf.c: New file.
8415 * sysdeps/alpha/fpu/s_trunc.c: New file.
8416 * sysdeps/alpha/fpu/s_truncf.c: New file.
8418 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8419 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8420 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8421 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8422 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8423 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8425 * sysdeps/alpha/fpu/s_fmax.S: New file.
8426 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8427 * sysdeps/alpha/fpu/s_fmin.S: New file.
8428 * sysdeps/alpha/fpu/s_fminf.S: New file.
8429 * sysdeps/alpha/fpu/s_isnan.c: New file.
8430 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8431 * sysdeps/alpha/fpu/s_llrint.c: New file.
8432 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8433 * sysdeps/alpha/fpu/s_lrint.c: New file.
8434 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8435 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8436 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8438 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8439 (__fdimf, fdimf, __fdim, fdim): Remove.
8440 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8441 (__isnanf, __isnan, __isnanl): New.
8443 2007-03-13 Richard Henderson <rth@redhat.com>
8445 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8447 2007-03-13 Richard Henderson <rth@redhat.com>
8449 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8450 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8451 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8452 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8453 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8454 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8456 2007-03-13 Richard Henderson <rth@redhat.com>
8458 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8459 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8460 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8461 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8462 Move to dl-auxv.h; initialize instead of extern weak.
8463 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8465 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8466 Extern instead of initialized.
8468 2007-03-13 Richard Henderson <rth@redhat.com>
8470 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8471 __sigsuspend_nocancel.
8473 2007-03-06 Ulrich Drepper <drepper@redhat.com>
8475 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8476 172.16/12 address range.
8478 2007-03-02 Jakub Jelinek <jakub@redhat.com>
8480 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8481 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8484 2007-03-01 Jakub Jelinek <jakub@redhat.com>
8487 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8489 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8491 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8492 for x qNaN and y either +-inf or non-integer value.
8493 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8494 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8495 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8497 2007-02-10 Mike Frysinger <vapier@gentoo.org>
8499 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8500 from sysdep_headers.
8502 2007-02-28 Jakub Jelinek <jakub@redhat.com>
8504 * time/tzfile.c (find_transition): Instead of a linear search try to
8505 guess the transition index, use a linear search if the result is at
8506 most 10 transitions away from the guess or binary search otherwise.
8508 2007-02-27 Jakub Jelinek <jakub@redhat.com>
8510 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8511 memory reallocation.
8513 2007-02-21 Ulrich Drepper <drepper@redhat.com>
8515 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8517 Optimize use of TOLOWER.
8520 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8521 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8522 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8525 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8526 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8529 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8530 (open_dir_stream): Likewise.
8531 * io/Makefile (tests): Add bug-ftw5.
8532 * io/bug-ftw5.c: New file.
8534 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8535 * nscd/servicescache.c (cache_addserv): Likewise.
8537 * nscd/grpcache.c (cache_addgr): In case a record changed on
8538 refresh, adjust key_copy.
8541 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8542 refresh, adjust key_copy.
8545 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8547 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8549 2007-02-19 Ulrich Drepper <drepper@redhat.com>
8551 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8554 * stdio-common/vfscanf.c: Small cleanups throughout.
8556 2007-02-18 Ulrich Drepper <drepper@redhat.com>
8559 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8560 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8561 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8562 Patch by Jared Casper <jaredcasper@gmail.com>.
8564 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8565 * sysdeps/unix/opendir.c: Likewise.
8566 * sysdeps/unix/readdir.c: Likewise.
8569 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8571 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8573 * stdio-common/vfscanf.c: Fix problems in width accounting.
8574 * stdio-common/tst-sscanf.c (double_tests): New tests.
8575 (main): Hook them up.
8577 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8578 More simplifications of floating-point reader.
8580 * stdio-common/Makefile (tests): Add tst-swscanf.
8581 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8583 * stdio-common/tst-swscanf.c: New file.
8585 2007-02-17 Ulrich Drepper <drepper@redhat.com>
8588 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8589 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8590 Remove using for __jmp_buf_tag.
8591 * locale/locale.h (struct lconv): Also define in std namespace.
8592 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8595 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8596 using __libc_enable_secure.
8599 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8602 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8603 of names for ellipsises.
8606 * malloc/memusage.sh: Cleanups.
8607 * debug/xtrace.sh: Quoting and trap changes.
8609 2007-02-16 Ulrich Drepper <drepper@redhat.com>
8611 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8613 * locale/iso-3166.def: Update entry for Serbia.
8614 * locale/iso-4217.def: Define RSD, remove CSD.
8616 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8617 and 64-bit operations.
8620 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8623 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8626 2007-02-15 Ulrich Drepper <drepper@redhat.com>
8629 * assert/assert.h (assert): Simplify.
8630 (assert_perror): Likewise.
8631 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8633 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8636 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8637 change: don't pass NULL in place of an integer.
8639 2007-02-02 Bruno Haible <bruno@clisp.org>
8642 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8643 Add mapping for U+327E.
8644 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8645 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8646 mapping of 0xD9 0xE8.
8647 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8649 Reported by Jungshik Shin <jungshik@google.com>.
8652 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8653 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8654 Reported by Jungshik Shin <jungshik@google.com>.
8656 2007-02-14 Ulrich Drepper <drepper@redhat.com>
8658 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8662 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8663 byte variants. Patch mostly be tom@tommay.net.
8665 2007-02-14 Jakub Jelinek <jakub@redhat.com>
8668 * posix/glob.c (attribute_hidden): Define if not defined.
8669 (glob): Unescape dirname, filename or username when needed and not
8670 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8671 is NULL. Handle unescaped [ in pattern without closing ].
8672 Don't pass GLOB_CHECK down to recursive glob for directories.
8673 (__glob_pattern_type): New function.
8674 (__glob_pattern_p): Implement using __glob_pattern_type.
8675 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8676 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8677 Remove unreachable code.
8678 * posix/globtest.sh: Add a couple of new tests.
8680 2007-02-13 Ulrich Drepper <drepper@redhat.com>
8682 * po/ru.po: Update from translation team.
8684 2007-02-12 Jakub Jelinek <jakub@redhat.com>
8686 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8687 to the list of i486+ CPUs.
8688 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8690 2007-02-12 Ulrich Drepper <drepper@redhat.com>
8692 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8693 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8696 2007-02-09 Ulrich Drepper <drepper@redhat.com>
8698 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8700 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8701 * resolv/res_mkquery.c: Define __res_nopt.
8702 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8703 try adding EDNS0 record.
8704 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8705 EDNS0 record was send make sure we don't try it again.
8706 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8707 * include/resolv.h: Declare __res_nopt.
8709 2007-02-08 Jakub Jelinek <jakub@redhat.com>
8712 * time/strptime_l.c (__strptime_internal): Set have_mon for
8713 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8714 have been computed from tm_yday and tm_year. Don't crash
8715 in day_of_the_week or day_of_the_year if not have_mon
8716 and tm_mon contains bogus value.
8717 * time/Makefile (tests): Add tst-strptime3.
8718 * time/tst-strptime3.c: New test.
8720 2007-02-05 Jakub Jelinek <jakub@redhat.com>
8723 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8724 bit for RE_HAT_LISTS_NOT_NEWLINE.
8725 (build_charclass_op): Remove bogus comment.
8726 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8727 * posix/bug-regex27.c: New test.
8728 * posix/bug-regex28.c: New test.
8730 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8732 * po/sv.po: Update from translation team.
8734 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8736 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8738 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8740 * include/locale.h (__uselocale): Add libc_hidden_proto.
8741 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8743 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8746 2007-02-01 Ulrich Drepper <drepper@redhat.com>
8748 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8750 (PTR_DEMANGLE): Real definition now that it's not the same as
8752 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8754 * string/strerror_l.c: New file.
8755 * string/Makefile (routines): Add strerror_l.
8756 * string/string.h: Declare strerror_l.
8757 * string/Versions: Export strerror_l for GLIBC_2.6.
8759 2007-01-31 Ulrich Drepper <drepper@redhat.com>
8761 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8762 as parameter. Construct request record. Try sending request
8763 before the first poll use, it usually succeeds. Adjust all
8765 * nscd/nscd-client.h: Define MAXKEYLEN.
8766 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8768 2007-01-31 Jakub Jelinek <jakub@redhat.com>
8770 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8772 * nscd/nscd_helper.c: Include string.h.
8773 (__nscd_cache_search): Remove const qualifier from return value.
8774 On strict alignment architectures check hash entry and data head
8776 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8777 mmapped data during GC cycle contains garbage. If
8778 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8779 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8781 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8782 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8783 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8784 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8785 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8787 2007-01-30 Ulrich Drepper <drepper@redhat.com>
8789 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8791 2007-01-26 Ulrich Drepper <drepper@redhat.com>
8793 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8794 names not numbers in cfi_*.
8796 2007-01-26 Andreas Jaeger <aj@suse.de>
8798 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8799 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8800 Correct values of PER_HPUX and PER_OSF4.
8802 2007-01-24 Ulrich Drepper <drepper@redhat.com>
8804 * elf/dl-minimal.c: Undefine _itoa first.
8805 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8806 * malloc/mtrace.c: Revert last change.
8807 * posix/wordexp.c: Likewise.
8809 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8811 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8812 and __geode__ to the list of i486+ CPUs.
8813 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8815 2007-01-23 Ulrich Drepper <drepper@redhat.com>
8817 * stdio-common/_itoa.c: Include <limits.h>.
8818 * stdio-common/_itowa.c: Likewise.
8820 2007-01-22 Ulrich Drepper <drepper@redhat.com>
8822 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8824 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8826 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8828 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8832 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8833 * stdio-common/Makefile (tests): Add bug17.
8834 * stdio-common/bug17.c: New file.
8836 2007-01-19 Ulrich Drepper <drepper@redhat.com>
8838 * iconvdata/brf.c: New file.
8839 * iconvdata/testdata/BRF: New file.
8840 * iconvdata/testdata/BRF..UTF8: New file.
8841 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8842 * iconvdata/Makefile: Add rules to build BRF.
8843 * iconvdata/TESTS: Add BRF entry.
8844 * iconvdata/gconv-modules: Likewise.
8845 * iconvdata/tst-tables.sh: Likewise.
8847 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8849 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8850 type `long long int', not `long int'.
8853 2007-01-18 Ulrich Drepper <drepper@redhat.com>
8855 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8856 of values on 64-bit platforms which are too large.
8858 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8859 Joe Kerian <jkerian@us.us.ibm.com>
8862 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8863 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8864 (__copysignl): Use signbit() for comparison.
8865 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8866 SET_LDOUBLE_WORDS64.
8869 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8870 (__ceill): Remove calls to fegetround(), fesetround().
8871 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8872 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8873 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8875 2007-01-17 Jakub Jelinek <jakub@redhat.com>
8877 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8879 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8881 2007-01-17 Ulrich Drepper <drepper@redhat.com>
8883 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8885 * csu/libc-start.c: Likewise.
8887 2007-01-16 Ulrich Drepper <drepper@redhat.com>
8889 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8892 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8894 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8896 (handle_request): Remove unnecessary tests.
8898 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8900 2007-01-15 Jakub Jelinek <jakub@redhat.com>
8902 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8903 workbits in semi-raw fraction.
8905 * math/test-misc.c: Add new tests.
8907 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8909 * math/basic-test.c: Include test-skeleton.c.
8910 (TEST_TRUNC): Define.
8911 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8912 (main): Rename to ...
8913 (do_test): ...this. Run new tests.
8914 (TEST_FUNCTION): Define.
8916 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8917 Joe Kerian <jkerian@us.us.ibm.com>
8920 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8921 handling for high words.
8922 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8923 and overflow for infinity.
8925 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8927 * nscd/connections.c (handle_request): Add a __builtin_expect.
8929 * nscd/connections.c (serv2db): Change type into structure which
8930 also says whether this is a request for data. Renamed to
8931 servinfo. All users changed.
8932 (handle_request): Much simpler test whether we should search the cache.
8934 * nscd/connections.c (handle_request): Fix thinko in selinux test
8937 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8938 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8939 it before getting dl_load_lock and then relock.
8940 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8941 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8942 case we unlocked the scope.
8943 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8944 _dl_lookup_symbol_x in case we locked the scope.
8945 (_dl_profile_fixup): Likewise.
8946 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8947 set DL_LOOKUP_SCOPE_LOCK.
8949 2007-01-13 Ulrich Drepper <drepper@redhat.com>
8951 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8952 CFLAGS-getsrvbynpt_r.c.
8953 * nscd/getsrvbynm_r.c: New file.
8954 * nscd/getsrvbypt_r.c: New file.
8955 * nscd/nscd_getserv_r.c: New file.
8956 * nscd/servicescache.c: New file.
8957 * nscd/Makefile (routines): Add nscd_getserv_r.
8958 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8959 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8960 CFLAGS-getsrvbypt_r.c.
8961 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8962 table. Add entries for services database.
8963 * nscd/connections.c (serv2str): Mark as const. Add entries for
8965 (dbs): Add .reset_res and servdb initialization.
8966 (serv2db): Add entries for services database.
8967 (verify_persistent_db): Accept dbnr == servdb.
8968 (invalidate_cache): Rewrite database name recognition to use a table.
8969 Call res_init() if .reset_res is set for database.
8970 (handle_request): Add code to handle services database.
8971 * nscd/gai.c: Don't define __getservbyname_r.
8972 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8973 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8974 (serv_response_header): Define.
8975 (struct datahead): Add serv_response_header member.
8976 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8978 * nscd/nscd.conf: Add entries for services database.
8979 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8980 Declare serv_iov_disabled.
8981 Declare addservbyname, readdservbyname, addservbyport, and
8983 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8984 (find_db): Fix error message.
8985 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8986 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8987 * nscd/selinux.c (perms): Add entries for services database.
8988 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8989 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8991 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8992 * nscd/hstcache.c: Likewise.
8993 * nscd/pwdcache.c: Likewise.
8995 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8996 computation of keylen.
8998 * include/string.h: Only redefine strndupa if this is really for
9001 2007-01-12 Ulrich Drepper <drepper@redhat.com>
9003 * nscd/nscd_gethst_r.c: Minor cleanups.
9005 * nscd/connections.c (handle_request): Check selinux permissions
9006 for all non-admin commands.
9008 * sysdeps/i386/i486/bits/atomic.h: Define
9009 atomic_compare_and_exchange_val_acq,
9010 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9011 using __sync_* built-ins for gcc >= 4.1.
9012 * sysdeps/x86_64/bits/atomic.h: Likewise.
9015 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9018 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9020 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9021 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9022 (do_test): Check errno and exit(0) if ENOSYS.
9024 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9026 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9027 thousands separators.
9028 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9029 * stdlib/tst-strtod4.c: New test.
9032 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9033 hexadecimal digit should accept just the initial 0.
9034 * stdlib/tst-strtod2.c (tests): New variable.
9035 (do_test): Run several tests rather than just one.
9037 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9039 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9040 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9042 2007-01-10 Ulrich Drepper <drepper@redhat.com>
9044 * io/fts.c: Make sure fts_cur is always valid after return from
9046 Patch by Miloslav Trmac <mitr@redhat.com>.
9048 2006-10-27 Richard Sandiford <richard@codesourcery.com>
9050 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9051 (R_MIPS_NUM): Bump by 1.
9053 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9055 * posix/execvp.c: Include alloca.h.
9056 (allocate_scripts_argv): Renamed to...
9057 (scripts_argv): ... this. Don't allocate buffer here nor count
9059 (execvp): Use alloca if possible.
9060 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9061 * posix/tst-vfork3.c: New test.
9063 2007-01-03 Ulrich Drepper <drepper@redhat.com>
9065 * string/Makefile (tst-strxfrm2-ENV): Define.
9066 * stdlib/Makefile (tst-strtod3-ENV): Define.
9068 2007-01-02 Ulrich Drepper <drepper@redhat.com>
9070 * posix/getconf.c: Update copyright year.
9071 * nss/getent.c: Likewise.
9072 * iconv/iconvconfig.c: Likewise.
9073 * iconv/iconv_prog.c: Likewise.
9074 * elf/ldconfig.c: Likewise.
9075 * catgets/gencat.c: Likewise.
9076 * csu/version.c: Likewise.
9077 * elf/ldd.bash.in: Likewise.
9078 * elf/sprof.c (print_version): Likewise.
9079 * locale/programs/locale.c: Likewise.
9080 * locale/programs/localedef.c: Likewise.
9081 * nscd/nscd.c (print_version): Likewise.
9082 * debug/xtrace.sh: Likewise.
9083 * malloc/memusage.sh: Likewise.
9084 * malloc/mtrace.pl: Likewise.
9085 * debug/catchsegv.sh: Likewise.
9087 2006-12-24 Ulrich Drepper <drepper@redhat.com>
9089 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9092 2006-12-23 Ulrich Drepper <drepper@redhat.com>
9094 * posix/wordexp.c: Remove some unnecessary tests.
9096 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9098 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9099 blacklist the group till after we look it up.
9101 2006-12-21 Ulrich Drepper <drepper@redhat.com>
9103 * include/atomic.h (atomic_forced_read): New macro.
9105 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9107 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9109 2006-12-19 Jakub Jelinek <jakub@redhat.com>
9111 * nss/getXXbyYY_r.c: Include atomic.h.
9112 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9113 add atomic_write_barrier () in between.
9115 * stdlib/Makefile (tests): Add tst-makecontext.
9116 * stdlib/tst-makecontext.c: New test.
9118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9119 (__makecontext): Don't realign uc_mcontext.uc_regs.
9121 2006-11-28 Jakub Jelinek <jakub@redhat.com>
9123 * elf/dl-support.c: Include dl-procinfo.h.
9124 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9125 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9126 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9128 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9129 hardcoded constants.
9130 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9131 PPC_PLATFORM_* macros for array designators.
9133 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
9135 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9136 names to the beginning.
9137 (_dl_powerpc_platforms): Add "power6x".
9138 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9139 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9140 (_DL_PLATFORMS_COUNT): Increase.
9141 (_dl_string_platform): Handle power6x case.
9142 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9143 PPC_FEATURE_POWER6_EXT): Define.
9144 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9146 2006-12-18 Jakub Jelinek <jakub@redhat.com>
9149 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9150 [-2^31 .. 2^31) range.
9151 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9153 * stdlib/tst-rand48-2.c: New test.
9154 * stdlib/Makefile (tests): Add tst-rand48-2.
9156 2006-12-14 Jakub Jelinek <jakub@redhat.com>
9158 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9160 2006-12-14 Ulrich Drepper <drepper@redhat.com>
9162 * misc/tst-pselect.c (do_test): Make sure the helper process is
9163 terminating when the test is aborted.
9165 2006-12-13 Ulrich Drepper <drepper@redhat.com>
9167 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9168 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9169 Handle relatime mount option.
9172 * libio/Makefile (tests): Add tst-setvbuf1.
9173 * libio/tst-setvbuf1.c: New file.
9175 2006-12-08 Jakub Jelinek <jakub@redhat.com>
9178 * libio/genops.c (__uflow): Fix a typo.
9179 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9180 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9181 the narrow buffer size.
9183 2006-11-24 Jakub Jelinek <jakub@redhat.com>
9186 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9187 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9188 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9190 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9191 _IO_wstr_finish): Likewise.
9192 * libio/wmemstream.c (open_wmemstream): Likewise.
9193 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9194 even for wide streams.
9196 2006-12-13 Jakub Jelinek <jakub@redhat.com>
9198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9201 2006-12-11 Ulrich Drepper <drepper@redhat.com>
9203 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9204 separators also if no non-zero digits found.
9205 * stdlib/Makefile (tests): Add tst-strtod3.
9207 2006-12-09 Ulrich Drepper <drepper@redhat.com>
9210 * include/features.h: Fix comment about default value for
9214 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9215 empty parsed strings.
9216 * stdlib/Makefile (tests): Add tst-strtod2.
9217 * stdlib/tst-strtod2.c: New file.
9220 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9222 * stdlib/Makefile (tests): Add tst-atof2.
9223 * stdlib/tst-atof2.c: New file.
9226 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9227 correctly if removing trailing zero of hex-float.
9228 * stdlib/Makefile (tests): Add tst-atof1.
9229 * stdlib/tst-atof1.c: New file.
9231 2006-12-09 Jakub Jelinek <jakub@redhat.com>
9233 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9234 Start searching for next comma at p rather than rest.
9235 * misc/Makefile (tests): Add tst-mntent2.
9236 * misc/tst-mntent2.c: New test.
9238 * misc/getusershell.c (initshells): Check for integer overflows.
9239 Make strings buffer one bigger as fgets always succeeds when second
9240 argument is 1. Don't use calloc for shells array. Disallow
9243 2006-12-08 Ulrich Drepper <drepper@redhat.com>
9245 * malloc/memusage.c: Handle realloc with new size of zero and
9246 non-NULL pointer correctly.
9247 (me): Really write first record twice.
9248 (struct entry): Make format bi-arch safe.
9249 (dest): Write out more realloc statistics.
9250 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9252 2006-12-05 Jakub Jelinek <jakub@redhat.com>
9254 * nis/nis_subr.c (nis_getnames): Revert last change.
9256 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9258 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9259 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9260 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9261 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9263 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9264 * io/tst-ttyname_r.c: New test.
9266 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9268 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9270 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
9272 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9275 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9277 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9278 `clone' function to ensure proper unwinding stop of gdb.
9279 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9281 2006-12-01 Ulrich Drepper <drepper@redhat.com>
9283 * nscd/nscd.init: Remove obsolete and commented-out -S option
9286 2006-11-23 Jakub Jelinek <jakub@redhat.com>
9289 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9292 * manual/string.texi (strtok): Remove duplicate paragraph.
9294 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9296 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9297 libgcc not supporting `rflags' unwinding (register # >= 17).
9299 2006-11-30 Jakub Jelinek <jakub@redhat.com>
9301 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9304 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9305 Jakub Jelinek <jakub@redhat.com>
9306 Jan Kratochvil <jan.kratochvil@redhat.com>
9308 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9310 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9311 'restore_rt' even in the 'signal' directory.
9312 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9314 2006-11-27 Jakub Jelinek <jakub@redhat.com>
9317 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9318 malloc crashed. Don't allocate memory unnecessarily in each
9321 2006-10-21 Jakub Jelinek <jakub@redhat.com>
9323 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9325 2006-11-20 Ulrich Drepper <drepper@redhat.com>
9327 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9329 2006-11-18 Bruno Haible <bruno@clisp.org>
9331 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9332 __sysconf only after having tried to call getgroups32.
9334 2006-11-19 Ulrich Drepper <drepper@redhat.com>
9336 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9337 addresses for IPv4 queries if they can be mapped.
9339 2006-11-16 Jakub Jelinek <jakub@redhat.com>
9341 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9342 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9343 (signmask): Add .size directive.
9344 (othermask): Add .type directive.
9346 2006-11-14 Ulrich Drepper <drepper@redhat.com>
9348 * po/nl.po: Update from translation team.
9350 * timezone/zdump.c: Redo fix for BZ #3137.
9352 2006-11-14 Jakub Jelinek <jakub@redhat.com>
9354 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9355 to first_unused after parsing :include: file.
9357 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9359 * timezone/africa: Update from tzdata2006o.
9360 * timezone/antarctica: Likewise.
9361 * timezone/asia: Likewise.
9362 * timezone/australasia: Likewise.
9363 * timezone/backward: Likewise.
9364 * timezone/europe: Likewise.
9365 * timezone/iso3166.tab: Likewise.
9366 * timezone/northamerica: Likewise.
9367 * timezone/southamerica: Likewise.
9368 * timezone/zone.tab: Likewise.
9370 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9371 on machines with 64-bit time_t.
9373 * timezone/checktab.awk: Update from tzcode2006o.
9374 * timezone/ialloc.c: Likewise.
9375 * timezone/private.h: Likewise.
9376 * timezone/scheck.c: Likewise.
9377 * timezone/tzfile.h: Likewise.
9378 * timezone/tzselect.ksh: Likewise.
9379 * timezone/zdump.c: Likewise.
9380 * timezone/zic.c: Likewise.
9383 * elf/ldconfig.c (main): Call setlocale and textdomain.
9384 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9387 * manual/argp.texi: Fix typos.
9388 * manual/charset.texi: Likewise.
9389 * manual/errno.texi: Likewise.
9390 * manual/filesys.texi: Likewise.
9391 * manual/lang.texi: Likewise.
9392 * manual/maint.texi: Likewise.
9393 * manual/memory.texi: Likewise.
9394 * manual/message.texi: Likewise.
9395 * manual/resource.texi: Likewise.
9396 * manual/search.texi: Likewise.
9397 * manual/signal.texi: Likewise.
9398 * manual/startup.texi: Likewise.
9399 * manual/stdio.texi: Likewise.
9400 * manual/sysinfo.texi: Likewise.
9401 * manual/syslog.texi: Likewise.
9402 * manual/time.texi: Likewise.
9403 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9406 * sunrpc/clnt_raw.c: Minimal message improvements.
9407 * sunrpc/pm_getmaps.c: Likewise.
9408 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9409 * nis/nis_print_group_entry.c: Likewise.
9410 * locale/programs/repertoire.c: Likewise.
9411 * locale/programs/charmap.c: Likewise.
9412 * malloc/memusage.sh: Likewise.
9413 * elf/dl-deps.c: Likewise.
9414 * locale/programs/ld-collate.c: Likewise.
9415 * libio/vswprintf.c: Likewise.
9416 * malloc/memusagestat.c: Likewise.
9417 * sunrpc/auth_unix.c: Likewise.
9418 * sunrpc/rpc_main.c: Likewise.
9419 * nscd/cache.c: Likewise.
9420 * locale/programs/repertoire.c: Unify output messages.
9421 * locale/programs/charmap.c: Likewise.
9422 * locale/programs/ld-ctype.c: Likewise.
9423 * locale/programs/ld-monetary.c: Likewise.
9424 * locale/programs/ld-numeric.c: Likewise.
9425 * locale/programs/ld-time.c: Likewise.
9426 * elf/ldconfig.c: Likewise.
9427 * nscd/selinux.c: Likewise.
9428 * elf/cache.c: Likewise.
9429 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9432 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9436 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9438 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9439 if N is one bigger than return value.
9440 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9441 and l1 last arguments, if buf is defined, verify the return value
9442 equals to strlen (buf) and verify no byte beyond passed length
9445 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9447 * po/sv.po: Update from translation team.
9449 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9451 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9454 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9456 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9459 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9460 Use __new_sys_siglist instead of _sys_siglist_internal as
9461 second macro argument.
9462 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9465 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9468 * posix/unistd.h (sysconf): Remove const attribute.
9470 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9471 temporary or deprecated addresses.
9472 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9474 * string/Makefile (tests): Add tst-strxfrm2.
9475 * string/tst-strxfrm2.c: New file.
9477 2006-10-09 Jakub Jelinek <jakub@redhat.com>
9479 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9480 rather than r->r_brk.
9482 2006-11-08 Jakub Jelinek <jakub@redhat.com>
9484 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9485 optimization even if needed > n.
9487 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9488 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9489 return false, otherwise return true.
9490 (cache_rpath): Return decompose_rpath return value.
9492 2006-11-07 Jakub Jelinek <jakub@redhat.com>
9494 * include/libc-symbols.h (declare_symbol): Rename to...
9495 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9496 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9498 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9500 * sysdeps/gnu/siglist.c: Likewise.
9502 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9504 * sysdeps/powerpc/fpu/bits/mathinline.h
9505 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9506 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9508 2006-11-05 Ulrich Drepper <drepper@redhat.com>
9510 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9511 Update handling of cache descriptor 0x49 for new models.
9512 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9515 2006-11-02 Jakub Jelinek <jakub@redhat.com>
9517 * malloc/memusage.c (dest): Reset not_me back to false after
9518 printing statistics.
9520 2006-11-02 Ulrich Drepper <drepper@redhat.com>
9522 * configure.in: Work around ld --help change and avoid -z relro
9523 test completely if the architecture doesn't care about security.
9525 2006-11-01 Ulrich Drepper <drepper@redhat.com>
9527 * po/sv.po: Update from translation team.
9529 2006-10-31 Ulrich Drepper <drepper@redhat.com>
9531 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9532 generate compatibility version.
9534 2006-10-29 Ulrich Drepper <drepper@redhat.com>
9536 * configure.in: Relax -z relro requirement a bit.
9538 * po/sv.po: Update from translation team.
9540 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9542 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9543 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9544 * elf/dl-close.c (_dl_close_worker): Likewise.
9545 * elf/dl-open.c (_dl_open_worker): Likewise.
9546 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9548 2006-10-27 Ulrich Drepper <drepper@redhat.com>
9550 * configure.in: Require assembler support for visibility, compiler
9551 support for visibility and aliases, linker support for various -z
9553 * Makeconfig: Remove conditional code which now is unnecessary.
9554 * config.h.in: Likewise.
9555 * config.make.in: Likewise.
9556 * dlfcn/Makefile: Likewise.
9557 * elf/Makefile: Likewise.
9558 * elf/dl-load.c: Likewise.
9559 * elf/rtld.c: Likewise.
9560 * include/libc-symbols.h: Likewise.
9561 * include/stdio.h: Likewise.
9562 * io/Makefile: Likewise.
9563 * io/fstat.c: Likewise.
9564 * io/fstat64.c: Likewise.
9565 * io/fstatat.c: Likewise.
9566 * io/fstatat64.c: Likewise.
9567 * io/lstat.c: Likewise.
9568 * io/lstat64.c: Likewise.
9569 * io/mknod.c: Likewise.
9570 * io/mknodat.c: Likewise.
9571 * io/stat.c: Likewise.
9572 * io/stat64.c: Likewise.
9573 * libio/stdio.c: Likewise.
9574 * nscd/Makefile: Likewise.
9575 * stdlib/Makefile: Likewise.
9576 * stdlib/atexit.c: Likewise.
9577 * sysdeps/generic/ldsodefs.h: Likewise.
9578 * sysdeps/i386/dl-machine.h: Likewise.
9579 * sysdeps/i386/sysdep.h: Likewise.
9580 * sysdeps/i386/i686/memcmp.S: Likewise.
9581 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9582 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9583 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9585 * Makerules: USE_TLS support is now default.
9586 * tls.make.c: Likewise.
9587 * csu/Versions: Likewise.
9588 * csu/libc-start.c: Likewise.
9589 * csu/libc-tls.c: Likewise.
9590 * csu/version.c: Likewise.
9591 * dlfcn/dlinfo.c: Likewise.
9592 * elf/dl-addr.c: Likewise.
9593 * elf/dl-cache.c: Likewise.
9594 * elf/dl-close.c: Likewise.
9595 * elf/dl-iteratephdr.c: Likewise.
9596 * elf/dl-load.c: Likewise.
9597 * elf/dl-lookup.c: Likewise.
9598 * elf/dl-object.c: Likewise.
9599 * elf/dl-open.c: Likewise.
9600 * elf/dl-reloc.c: Likewise.
9601 * elf/dl-support.c: Likewise.
9602 * elf/dl-sym.c: Likewise.
9603 * elf/dl-sysdep.c: Likewise.
9604 * elf/dl-tls.c: Likewise.
9605 * elf/ldconfig.c: Likewise.
9606 * elf/rtld.c: Likewise.
9607 * elf/tst-tls-dlinfo.c: Likewise.
9608 * elf/tst-tls1.c: Likewise.
9609 * elf/tst-tls10.h: Likewise.
9610 * elf/tst-tls14.c: Likewise.
9611 * elf/tst-tls2.c: Likewise.
9612 * elf/tst-tls3.c: Likewise.
9613 * elf/tst-tls4.c: Likewise.
9614 * elf/tst-tls5.c: Likewise.
9615 * elf/tst-tls6.c: Likewise.
9616 * elf/tst-tls7.c: Likewise.
9617 * elf/tst-tls8.c: Likewise.
9618 * elf/tst-tls9.c: Likewise.
9619 * elf/tst-tlsmod1.c: Likewise.
9620 * elf/tst-tlsmod13.c: Likewise.
9621 * elf/tst-tlsmod13a.c: Likewise.
9622 * elf/tst-tlsmod14a.c: Likewise.
9623 * elf/tst-tlsmod2.c: Likewise.
9624 * elf/tst-tlsmod3.c: Likewise.
9625 * elf/tst-tlsmod4.c: Likewise.
9626 * elf/tst-tlsmod5.c: Likewise.
9627 * elf/tst-tlsmod6.c: Likewise.
9628 * include/errno.h: Likewise.
9629 * include/link.h: Likewise.
9630 * include/tls.h: Likewise.
9631 * locale/global-locale.c: Likewise.
9632 * locale/localeinfo.h: Likewise.
9633 * malloc/arena.c: Likewise.
9634 * malloc/hooks.c: Likewise.
9635 * malloc/malloc.c: Likewise.
9636 * resolv/Versions: Likewise.
9637 * sysdeps/alpha/dl-machine.h: Likewise.
9638 * sysdeps/alpha/libc-tls.c: Likewise.
9639 * sysdeps/generic/ldsodefs.h: Likewise.
9640 * sysdeps/generic/tls.h: Likewise.
9641 * sysdeps/i386/dl-machine.h: Likewise.
9642 * sysdeps/ia64/dl-machine.h: Likewise.
9643 * sysdeps/ia64/libc-tls.c: Likewise.
9644 * sysdeps/mach/hurd/fork.c: Likewise.
9645 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9646 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9647 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9648 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9649 * sysdeps/s390/libc-tls.c: Likewise.
9650 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9651 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9652 * sysdeps/sh/dl-machine.h: Likewise.
9653 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9654 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9655 * sysdeps/x86_64/dl-machine.h: Likewise.
9657 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9658 split out locking and parameter checking.
9659 (_dl_close): Call _dl_close_worker after locking and checking.
9660 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9662 * elf/Makefile: Add rules to build and run tst-thrlock.
9663 * elf/tst-thrlock.c: New file.
9666 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9670 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9671 we are sure we do not need it anymore for _dl_close. Also move
9672 the asserts inside the lock region.
9673 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9675 2006-10-27 Jakub Jelinek <jakub@redhat.com>
9677 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9679 (_dl_lookup_symbol_x): Adjust caller.
9681 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9683 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9685 * elf/dl-libc.c: Revert l_scope name changes.
9686 * elf/dl-load.c: Likewise.
9687 * elf/dl-object.c: Likewise.
9688 * elf/rtld.c: Likewise.
9689 * elf/dl-close.c (_dl_close): Likewise.
9690 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9691 always use __rtld_mrlock_{change,done}. Always free old scope list
9692 here if not l_scope_mem.
9693 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9694 change. Never free scope list here. Just __rtld_mrlock_lock before
9695 the lookup and __rtld_mrlock_unlock it after the lookup.
9696 * elf/dl-sym.c: Likewise.
9697 * include/link.h (struct r_scoperec): Remove.
9698 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9699 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9701 2006-10-25 Ulrich Drepper <drepper@redhat.com>
9703 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9705 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9707 * configure.in: Disable building profile libraries by default.
9709 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9711 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9712 as signed longs, check for x_base + pos overflow.
9713 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9714 * sunrpc/tst-xdrmem2.c: New test.
9716 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9718 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9719 _dl_lookup_symbol_x code.
9721 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9723 * elf/dl-runtime.c: Include sysdep-cancel.h.
9724 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9725 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9726 instead of catomic_* macros.
9727 * elf/dl-sym.c: Include sysdep-cancel.h.
9728 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9729 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9730 * elf/dl-close.c: Include sysdep-cancel.h.
9731 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9732 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9733 * elf/dl-open.c: Include sysdep-cancel.h.
9734 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9735 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9737 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9740 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9741 fastbin rather than end of fastbin array.
9743 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9745 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9747 * sysdeps/x86_64/bits/atomic.h
9748 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9749 (catomic_decrement): Use correct body macro.
9751 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9753 * include/atomic.h: Add a unique prefix to all local variables
9755 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9757 2006-10-16 Ulrich Drepper <drepper@redhat.com>
9760 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9763 2006-10-14 Ulrich Drepper <drepper@redhat.com>
9765 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9767 2006-10-13 Ulrich Drepper <drepper@redhat.com>
9770 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9771 determine highest fast bin to consolidate, always look into all of
9773 (do_check_malloc_state): Only require for empty bins for large
9774 sizes in main arena.
9776 * libio/stdio.h: Add more __wur attributes.
9778 * elf/dl-minimal.c (realloc): Optimize last patch.
9780 2006-10-12 Richard Sandiford <richard@codesourcery.com>
9783 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9784 and use memcpy() if it does.
9786 2006-11-12 Andreas Jaeger <aj@suse.de>
9789 * manual/search.texi (Hash Search Function): Clarify.
9790 (Array Search Function): Clarify.
9792 2006-11-12 Joseph Myers <joseph@codesourcery.com>
9795 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9797 * math/atest-exp2.c (read_mpn_hex): Likewise.
9798 * math/atest-sincos.c (main): Likewise.
9800 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9802 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9803 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9804 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9806 * Versions.def: Add GLIBC_2.6 for libc.
9808 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9810 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9812 2006-10-11 Jakub Jelinek <jakub@redhat.com>
9814 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9816 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9818 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9819 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9821 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9823 * include/atomic.c: Define catomic_* operations.
9824 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9825 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9826 * malloc/memusage.c: Likewise.
9827 * gmon/mcount.c: Likewise.
9828 * elf/dl-close.c: Likewise.
9829 * elf/dl-open.c: Likewise.
9830 * elf/dl-profile.c: Likewise.
9831 * elf/dl-sym.c: Likewise.
9832 * elf/dl-runtime.c: Likewise.
9833 * elf/dl-fptr.c: Likewise.
9834 * resolv/res_libc.c: Likewise.
9836 2006-10-10 Ulrich Drepper <drepper@redhat.com>
9838 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9839 components which lack them.
9841 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9842 at least one entry consisting of the parameter concatenated with
9845 2006-10-10 Roland McGrath <roland@frob.com>
9847 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9848 * sysdeps/mach/hurd/futimes.c: Likewise.
9849 * sysdeps/mach/hurd/lutimes.c: Likewise.
9851 2006-10-09 Ulrich Drepper <drepper@redhat.com>
9852 Jakub Jelinek <jakub@redhat.com>
9854 Implement reference counting of scope records.
9855 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9856 from the list in objects which remain. Always allocate new scope
9858 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9859 don't resize, allocate a new one.
9860 * elf/dl-runtime.c: Update reference counters before using a scope
9862 * elf/dl-sym.c: Likewise.
9863 * elf/dl-libc.c: Adjust for l_scope name change.
9864 * elf/dl-load.c: Likewise.
9865 * elf/dl-object.c: Likewise.
9866 * elf/rtld.c: Likewise.
9867 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9868 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9869 Add l_scoperec_lock.
9870 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9871 * sysdeps/generic/rtld-lowlevel.h: New file.
9873 * include/atomic.h: Rename atomic_and to atomic_and_val and
9874 atomic_or to atomic_or_val. Define new macros atomic_and and
9875 atomic_or which do not return values.
9876 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9878 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9880 * po/sv.po: Update from translation team.
9882 2006-10-07 Ulrich Drepper <drepper@redhat.com>
9884 * Versions.def: Add GLIBC_2.6 to libpthread.
9886 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9887 (versioned_symbol): Likewise.
9888 (compat_symbol): Likewise.
9890 * po/tr.po: Update from translation team.
9892 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9894 * nis/Banner: Removed. It's been integral part forever and the
9895 author info is incomplete anyway.
9896 * libio/Banner: Likewise.
9898 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9899 code, make sure the nis_freeresult call doesn't crash and that the
9900 result is reported correctly.
9902 2006-09-27 Jakub Jelinek <jakub@redhat.com>
9904 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9905 when callback is NULL.
9907 * nis/Versions (libnss_nisplus): Add
9908 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9909 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9910 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9911 _nss_create_tablename): Rename to...
9912 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9913 ... these. No longer static.
9914 (internal_setgrent): Adjust users.
9915 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9916 Don't use locking around _nss_grp_create_tablename call.
9917 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9919 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9921 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9923 2006-10-06 Andreas Jaeger <aj@suse.de>
9925 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9927 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9929 * po/pl.po: Update from translation team.
9931 * nscd/nscd.c (main): Fix typo in message.
9932 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9934 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9937 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9938 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9939 (__sigprocmask): Define.
9941 2006-10-02 Ulrich Drepper <drepper@redhat.com>
9943 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9946 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9948 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9949 in oldtotal and newtotal calculation.
9950 * nscd/nscd-client.h (struct mapped_database): Add datasize
9952 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9953 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9955 (__nscd_cache_search): Add checks to make sure we never reference
9956 data beyond the current mapping.
9958 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9960 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9961 variables const to avoid compiler warnings.
9963 * io/fts.c (fts_close): Remove redundant checks.
9964 (fts_build): Likewise.
9965 (fts_palloc): Likewise.
9967 * manual/message.texi (Advanced gettext functions,
9968 Using gettextized software): Fix typos.
9970 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9972 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9973 explain why there are no leaks.
9975 2006-09-29 Ulrich Drepper <drepper@redhat.com>
9977 * libio/wmemstream.c: Include <wchar.h>.
9978 * libio/bug-wmemstream1.c: Likewise.
9979 * libio/tst-wmemstream1.c: Likewise.
9980 * libio/tst-wmemstream2.c: Likewise.
9982 * version.h (RELEASE): Bump to 2.5.
9983 * README: Regenerated.
9985 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9988 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9989 found no group members.
9990 Patch by Petr Baudis.
9992 2006-09-29 Jakub Jelinek <jakub@redhat.com>
9994 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9995 assert bootstrap_map.l_tls_modid is zero.
9996 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9999 2006-09-27 Ulrich Drepper <drepper@redhat.com>
10001 * libio/stdio.h: Move open_wmemstream prototype to ...
10002 * wcsmbs/wchar.h: ... here.
10004 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10007 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10008 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10009 __{,l}chown to handle the rest.
10010 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10011 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10012 __{,l}chown to handle the rest.
10013 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10015 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10016 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10019 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10020 time, rather allocate increasingly bigger arrays of pointers, if
10021 possible with alloca, if too large with malloc.
10023 2006-09-24 Jakub Jelinek <jakub@redhat.com>
10025 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10027 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10029 2006-09-24 Ulrich Drepper <drepper@redhat.com>
10031 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10033 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10034 IFA_F_HOMEADDRESS flag for interfaces.
10035 * include/ifaddrs.h (struct in6addrinfo): Define
10038 2006-09-21 Jakub Jelinek <jakub@redhat.com>
10041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10042 PTR_DEMANGLE3): Define.
10043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10044 PTR_DEMANGLE3): Likewise.
10045 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10046 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10048 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10050 2006-09-20 Jakub Jelinek <jakub@redhat.com>
10052 * po/libc.pot: Regenerated.
10053 * po/be.po: Updated.
10054 * po/ca.po: Likewise.
10055 * po/cs.po: Likewise.
10056 * po/da.po: Likewise.
10057 * po/de.po: Likewise.
10058 * po/el.po: Likewise.
10059 * po/en_GB.po: Likewise.
10060 * po/es.po: Likewise.
10061 * po/fi.po: Likewise.
10062 * po/fr.po: Likewise.
10063 * po/gl.po: Likewise.
10064 * po/hr.po: Likewise.
10065 * po/hu.po: Likewise.
10066 * po/ja.po: Likewise.
10067 * po/ko.po: Likewise.
10068 * po/nb.po: Likewise.
10069 * po/nl.po: Likewise.
10070 * po/pl.po: Likewise.
10071 * po/pt_BR.po: Likewise.
10072 * po/ru.po: Likewise.
10073 * po/rw.po: Likewise.
10074 * po/sk.po: Likewise.
10075 * po/sv.po: Likewise.
10076 * po/tr.po: Likewise.
10077 * po/zh_CN.po: Likewise.
10078 * po/zh_TW.po: Likewise.
10081 * iconv/iconv_prog.c (main): Fix spelling in error message.
10082 * iconv/iconvconfig.c (main): Likewise.
10083 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10084 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10085 * locale/programs/localedef.c (main): Likewise.
10086 * locale/programs/repertoire.c (repertoire_read): Likewise.
10087 * timezone/zdump.c (main): Likewise.
10088 * nscd/connections.c (handle_request): Fix spelling in log message.
10089 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10091 2006-09-20 Ulrich Drepper <drepper@redhat.com>
10093 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10096 2006-09-20 Andreas Jaeger <aj@suse.de>
10098 * math/libm-test.inc (lrint_test_upward): Fix typo.
10100 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10103 * math/libm-test.inc (lrint_test_tonearest): New function.
10104 (lrint_test_towardzero): New function.
10105 (lrint_test_downward): New function.
10106 (lrint_test_upward): New function.
10107 (main): Run these new tests.
10108 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10109 of values near to 0.
10110 (two52): Use double not long double.
10111 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10112 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10113 (two23): Use float not double.
10114 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10115 (two23): Use float not double.
10116 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10117 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10118 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10119 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10121 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10123 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10124 Cast sp to unsigned long to avoid compiler warning.
10125 Use __makecontext_ret function instead of a trampoline on the stack.
10126 (__makecontext_ret): New function.
10127 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10129 2006-09-19 Jakub Jelinek <jakub@redhat.com>
10131 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10132 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10135 2006-09-19 Ulrich Drepper <drepper@redhat.com>
10137 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10138 sure no reference to the unloaded map's search list remains in the
10139 dependency's scope.
10141 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10143 * elf/Makefile: Add rules to build and run unload7 test.
10144 * elf/unload7.c: New test.
10145 * elf/unload7mod1.c: New file.
10146 * elf/unload7mod2.c: New file.
10148 2006-09-18 Jakub Jelinek <jakub@redhat.com>
10150 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10151 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10152 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10153 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10154 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10155 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10156 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10157 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10158 PTRACE_GETEVENTMSG): Likewise.
10159 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10162 2006-09-17 Mike Frysinger <vapier@gentoo.org>
10164 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10165 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10166 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10167 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10169 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10171 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10172 write '\0' to the fd.
10173 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10174 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10175 Change regs to unsigned long pointer from unsigned int, fix fscr
10178 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10180 * io/Makefile (CFLAGS-fstatat.c): Set.
10181 (CFLAGS-fstatat64.c): Likewise.
10182 (CFLAGS-mknodat.c): Likewise.
10184 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10185 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10186 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10187 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10189 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10190 Steven Munroe <sjmunroe@us.ibm.com>
10192 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10193 names to the beginning. Rename "cell" to "cellbe".
10194 (_dl_powerpc_platforms): New.
10195 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10196 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10197 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10198 (_DL_HWCAP_PLATFORM): Define to new mask.
10199 (_dl_platform_string, _dl_string_platform): New functions.
10200 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10201 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10203 2006-09-12 Jakub Jelinek <jakub@redhat.com>
10206 * README.libm: Fix a thinko in sqrt algorithm description.
10209 * manual/string.texi (argz_delete): Fix prototype.
10210 Patch by <alpt@freaknet.org>.
10212 2006-08-26 Joseph Myers <joseph@codesourcery.com>
10215 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10216 * io/tst-fcntl.c (do_prepare): Likewise.
10217 * posix/tst-exec.c (do_prepare): Likewise.
10218 * posix/tst-preadwrite.c (do_prepare): Likewise.
10219 * posix/tst-spawn.c (do_prepare): Likewise.
10220 * posix/tst-truncate.c (do_prepare): Likewise.
10221 * rt/tst-aio.c (do_prepare): Likewise.
10222 * rt/tst-aio64.c (do_prepare): Likewise.
10223 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10226 2006-09-09 Ulrich Drepper <drepper@redhat.com>
10229 * time/mktime.c (guess_time_tm): Fix overflow detection.
10230 * time/Makefile (tests): Add bug-mktime1.
10231 * time/bug-mktime1.c: New file.
10234 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10235 (mremap): Likewise.
10237 2006-09-07 Jakub Jelinek <jakub@redhat.com>
10240 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10241 Ensure relocation doesn't clobber any bits outside of the
10242 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10243 R_SPARC_HI22 and R_SPARC_H44.
10246 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10247 (long) (MINSIZE + nb - old_size) is positive.
10249 * malloc/arena.c (grow_heap): When growing bail even if new_size
10253 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10256 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10258 * posix/regex_internal.c (re_string_reconstruct): Handle
10259 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10260 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10261 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10262 re_string_context_at.
10263 * posix/Makefile: Add rules to build and run bug-regex26 test.
10264 * posix/bug-regex26.c: New test.
10266 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10267 rather than col_sym_free. Move seqp declaration earlier.
10269 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10271 2006-09-05 Jakub Jelinek <jakub@redhat.com>
10273 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10274 decl before first goto out.
10276 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10278 * Makerules (shlib.lds): If have-hash-style, put .hash section
10279 at the end of the RO segment.
10281 2006-09-04 Ulrich Drepper <drepper@redhat.com>
10283 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10284 style hash table format is used.
10286 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10288 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10289 randomization rather than before.
10290 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10292 2006-08-31 Jakub Jelinek <jakub@redhat.com>
10294 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10296 * malloc/malloc.c (_int_malloc): Use full list insert and not
10297 shortcut which assumes the list is empty for large requests
10300 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10302 2006-08-30 Jakub Jelinek <jakub@redhat.com>
10304 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10305 and offout arguments to the prototype.
10306 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10307 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10308 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10309 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10310 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10311 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10312 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10313 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10315 2006-08-28 Ulrich Drepper <drepper@redhat.com>
10317 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10319 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10322 2006-08-28 Jakub Jelinek <jakub@redhat.com>
10324 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10325 only if herrno is NETDB_INTERNAL. Handle errors other than
10326 ERANGE outside of the loops, handle TRY_AGAIN.
10328 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10329 if other's ctype category was missing.
10330 * locale/programs/ld-collate.c (collate_read): Return if
10331 copy_locale's collate category is missing.
10333 2006-08-27 Ulrich Drepper <drepper@redhat.com>
10336 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10337 arenas if allocation failed.
10338 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10340 2006-08-26 Ulrich Drepper <drepper@redhat.com>
10342 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10344 (malloc_state): Reduce bins size by 2.
10345 (_int_malloc): Fix test for large enough buffer for early termination.
10346 When no unsorted block matches perfectly and an exiting block has
10347 to be split, use full list insert and not shortcut which assumes
10350 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10353 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10355 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10358 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10359 symbol require exact match (these are PLTs).
10360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10361 (_dl_ppc64_addr_sym_match): Likewise.
10364 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10365 If symbol has a value use it.
10366 * elf/tst-dladdr1.c: New file.
10367 * elf/Makefile: Add rules to build and run tst-addr1.
10369 2006-08-24 Jakub Jelinek <jakub@redhat.com>
10371 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10372 keeps failing and heap growth or new heap creation isn't
10374 * malloc/tst-malloc.c (main): Add new tests.
10376 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10379 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10380 as in the x86-64 code to use bswap.
10382 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10385 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10387 * posix/bits/unistd.h: Likewise.
10389 2006-05-15 Mike Frysinger <vapier@gentoo.org>
10392 * string/strchr.c: Add cast to avoid warning.
10394 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10396 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10397 platforms define as 512K. For 64-bit platforms as 32MB. The lower
10398 limit is needed to avoid the exploding of the address space
10399 requirement for secondary heaps.
10400 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10401 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10403 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10406 * Makerules (depfiles): Handle extra-test-objs the same as
10408 (common-mostlyclean): Likewise.
10409 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10411 * elf/Makefile (extra-objs): Likewise.
10412 * stdlib/Makefile (extra-objs): Likewise.
10414 2006-08-14 Eric Blake <ebb9@byu.net>
10417 * misc/error.h: Assume C89 or better.
10418 * misc/error.c: Likewise.
10420 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10423 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10424 __ASSUME_ATFCTS is defined.
10426 2006-08-19 Ulrich Drepper <drepper@redhat.com>
10428 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10429 to sort in each call.
10431 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10432 is empty simply return and use next service.
10433 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10435 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10436 tells us when not finding a charmap file is an error.
10437 * locale/programs/charmap.h: Adjust charmap_read prototype.
10438 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10439 cannot find a charmap.
10440 * locale/programs/localedef.c (main): Adjust charmap_read call.
10442 2006-08-15 Jakub Jelinek <jakub@redhat.com>
10444 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10445 sysdeps/posix/pause.c implementation instead.
10447 2006-08-09 Jakub Jelinek <jakub@redhat.com>
10449 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10452 2006-08-13 Andreas Schwab <schwab@suse.de>
10454 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10455 Don't clobber caller's LRSAVE.
10456 (_dl_prof_resolve): Likewise.
10458 2006-08-14 Ulrich Drepper <drepper@redhat.com>
10461 * libio/memstream.c (open_memstream): Allocate initial buffer with
10463 * libio/wmemstream.c (open_wmemstream): Likewise.
10464 * libio/strops.c: Pretty printing.
10465 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10466 (enlarge_userbuf): New function.
10467 (_IO_str_seekoff): Call it if seek position is larger than current
10469 * libio/wstrops.c: Likewise.
10470 * libio/vasprintf.c: Add comment as to why we do not have to use
10471 calloc instead of malloc to allocate initial buffer.
10472 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10473 * libio/bug-memstream1.c: New file.
10474 * libio/bug-wmemstream1.c: New file.
10476 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10478 * libio/wstrops.c: Remove dead macro definitions and comments.
10479 * libio/strops.c: Likewise.
10482 * login/utmpname.c (__utmpname): Remove unnecessary test.
10484 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10487 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10490 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10493 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10495 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10496 setting of CPU clocks.
10498 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10501 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10502 since C99 requires the result to promote to 'int' when uint_least8_t
10503 and uint_least16_t promote to 'int'.
10505 2006-08-12 Ulrich Drepper <drepper@redhat.com>
10508 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10509 lenght of one output field, correct bitmask creation.
10510 * locale/programs/ld-time.c: Add alignment.
10513 * misc/error.c: Add space between program name and message if file
10516 2006-08-03 Eric Blake <ebb9@byu.net>
10519 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10521 2006-08-09 Ulrich Drepper <drepper@redhat.com>
10523 * malloc/memusagestat.c: Silence warnings.
10525 * malloc/malloc.c: Dynamically size mmap treshold if the program
10526 frees mmaped blocks.
10527 Patch by Valerie Henson and Arjan van de Ven.
10529 2006-08-08 Jakub Jelinek <jakub@redhat.com>
10531 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10534 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10535 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10536 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10537 Only provide var definitions in strtol_l (or for *ull*
10540 * stdio-common/bug16.c (tests): New array.
10541 (do_tests): Allow the first hexadecimal digit
10542 to be 1, 2, 4 or 8. Do 3 additional tests.
10544 * sysdeps/s390/fpu/libm-test-ulps: Update.
10546 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10547 fchownat syscall if available.
10548 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10549 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10550 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10552 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10554 * nis/nis_xdr.c: Avoid some function calls.
10556 2006-08-07 Jakub Jelinek <jakub@redhat.com>
10557 Ulrich Drepper <drepper@redhat.com>
10559 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10560 short cut if only one name component is stripped away.
10562 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10564 * nis/nis_call.c: Minor cleanups throughout.
10565 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10566 (first_shoot): Add search_parent_first parameter. Only if it is set
10567 search parent server first.
10568 If directory for table found through cold start cache is not the same
10569 as referenced in the cache, don't use it.
10570 (__nisfind_server): Take additional parameter. Pass it on to
10572 (__prepare_niscall): Adjust __nisfind_server call.
10573 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10574 * nis/nis_table.c: Adjust __nisfind_server call.
10575 * nis/nis_lookup.c: Likewise.
10576 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10578 2006-08-03 Ulrich Drepper <drepper@redhat.com>
10581 * math/s_cacosh.c: Return values from positive branch.
10582 * math/s_cacoshf.c: Likewise.
10583 * math/s_cacoshl.c: Likewise.
10586 * sysvipc/sys/msg.h: Change return value to ssize_t.
10587 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10588 * sysvipc/msgrcv.c: Likewise.
10589 * include/sys/msg.h: Likewise.
10591 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10592 test introduced in patch for bz #661.
10593 (getgrouplist): Simplify code a bit. Don't allocate one additional
10594 element for NEWGROUPS.
10597 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10598 'f', use '1' as leading digit not '\1'.
10599 * stdio-common/Makefile (tests): Add bug16.
10600 * stdio-common/bug16.c: New file.
10603 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10604 and don't try to open it. The patch introducing the macro
10605 contained a bug and used the same file name as the new file
10606 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10607 this out completely.
10610 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10611 Patch by Jerry James <Jerry.James@usu.edu>.
10613 * rt/Makefile (tests): Add tst-clock2.
10614 * rt/tst-clock2.c: New file.
10617 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10618 function and its parameters and pass it to new thread.
10619 (__gai_notify): Add support for alternative waiting for completion.
10620 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10621 waiting for completion.
10622 * resolv/getaddrinfo_a.c: Likewise.
10623 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10624 waiting for completion is used.
10625 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10626 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10627 * resolv/gai_error.c: Likewise.
10628 * resolv/gai_sigqueue.c: Likewise.
10630 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10632 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10633 errno to EBADF and return MACH_PORT_NULL.
10635 2006-06-23 Joseph Myers <joseph@codesourcery.com>
10638 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10640 2006-08-02 Ulrich Drepper <drepper@redhat.com>
10642 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10643 walk them instead of the symbol table.
10645 2006-08-01 Ulrich Drepper <drepper@redhat.com>
10648 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10649 status of NSS calls, not the number of returned entries.
10651 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10652 request_key, keyctl.
10654 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10656 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10658 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10660 * elf/tst-auditmod1.c: Fix typo in #error.
10662 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10664 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10666 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10668 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10670 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10671 that the directory is empty even on non-POSIX filesystems.
10673 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10675 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10677 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10678 the backend NSS module. If backend setgrent call failed, don't have
10679 internal_setgrent fail. Just remember this until it is needed.
10680 * nis/nss_compat/compat-pwd.c: Likewise.
10681 * nis/nss_compat/compat-spwd.c: Likewise.
10683 2006-07-30 Roland McGrath <roland@redhat.com>
10685 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10686 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10687 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10688 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10690 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10691 (nanosleep_not_cancel): New macro.
10692 (sigsuspend_not_cancel): new macro.
10693 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10694 (do_sigsuspend): Define as inline.
10695 (__sigsuspend): Always use do_sigsuspend.
10696 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10697 * include/signal.h: Declare __sigsuspend_nocancel.
10698 * sysdeps/posix/pause.c
10699 [! NO_CANCELLATION] (__pause_nocancel): New function.
10701 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10702 * include/time.h (__nanosleep_nocancel): Likewise.
10704 2006-07-30 Ulrich Drepper <drepper@redhat.com>
10706 * locale/programs/localedef.c (add_to_readlist): Rename local
10707 variables to avoid confusion.
10709 * locale/programs/charmap.c (charmap_read): Emit error message if
10710 charmap couldn't be found or read.
10712 2006-07-28 Ulrich Drepper <drepper@redhat.com>
10714 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10715 __ASSUME_FUTEX_LOCK_PI.
10716 * include/time.h: Declare __nanosleep_nocancel.
10717 * include/unistd.h: Declare __pause_nocancel.
10719 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10720 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10721 get the __stack_chk_fail_local definition when it's needed.
10723 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10725 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10726 * dlfcn/bug-atexit3.c: New file.
10727 * dlfcn/bug-atexit3-lib.cc: New file.
10729 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10730 used when the namespace is not the base namespace.
10732 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10734 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10735 (__new_exitfn): Bump it in every successful call.
10736 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10737 more exit handlers, call them right away.
10738 * stdlib/exit.h: Declare __new_exitfn_called.
10740 2006-07-25 Ulrich Drepper <drepper@redhat.com>
10742 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10743 calling registered handler.
10745 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10746 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10747 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10748 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10749 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10750 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10751 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10752 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10754 2006-07-10 Ulrich Drepper <drepper@redhat.com>
10756 * elf/dl-lookup.c (dl_new_hash): New functions.
10757 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10758 value here. Compute new-style hash value. Pass new hash value
10759 and reference to variable with the old value to do_lookup_x.
10760 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10761 old-style hash table.
10762 (_dl_debug_bindings): Pass new hash value and reference to variable
10763 with the old value to do_lookup_x.
10764 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10765 new-style hash value and change old-style hash value parameter to
10766 be a reference. Reoganize functions to determine whether
10767 new-style hash table is available. Only fall back on old-style
10768 table. If old-style hash value is needed, compute it here.
10769 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10771 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10772 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10773 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10774 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10775 * Makeconfig: If linker supports --hash-style option add it to all
10776 linker command lines to build DSOs.
10777 * config.make.in: Define have-hash-style.
10778 * configure.in: Test whether linker supports --hash-style option.
10780 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10781 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10783 2006-06-27 Ulrich Drepper <drepper@redhat.com>
10785 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10788 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10789 RPATH of main map twice.
10791 2006-06-22 Ulrich Drepper <drepper@redhat.com>
10793 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10794 look further, return original strings.
10795 (_nl_find_msg): Do not return found translation if the conversion
10796 failed. Either signal the string is unusable or that something went
10797 wrong and the original should be used.
10799 2006-06-21 Ulrich Drepper <drepper@redhat.com>
10801 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10803 2006-06-14 Jakub Jelinek <jakub@redhat.com>
10806 * misc/insremque.c (insque): Handle prev == NULL.
10807 * misc/Makefile (tests): Add tst-insremque.
10808 * misc/tst-insremque.c: New test.
10810 2006-06-17 Ulrich Drepper <drepper@redhat.com>
10813 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10814 conflict with DL_DST_REQUIRED.
10816 2006-06-16 Ulrich Drepper <drepper@redhat.com>
10818 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10819 match what Solaris does.
10821 2006-06-04 Ulrich Drepper <drepper@redhat.com>
10823 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10824 local_setegid instead of seteuid and setegid.
10825 * sysdeps/generic/local-setxid.h: New file.
10826 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10828 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10830 * string/Makefile (tests): Add bug-envz1.
10831 * string/bug-envz1.c: New file.
10833 2006-06-02 Jakub Jelinek <jakub@redhat.com>
10835 * posix/regex_internal.c (re_string_skip_chars): If no character has
10836 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10837 to the byte which couldn't be converted.
10838 (re_string_reconstruct): Don't clear valid_raw_len before calling
10839 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10840 tip_context using re_string_context_at.
10841 * posix/Makefile: Add rules to build and run bug-regex25 test.
10842 * posix/bug-regex25.c: New test.
10844 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10847 * string/envz.c (envz_strip): Correct erroneously reversed src
10848 and dest parameters to memmove() invocation.
10850 2006-05-30 Jakub Jelinek <jakub@redhat.com>
10852 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10853 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10854 to make sure the database has been already invalidated.
10855 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10856 after the cache has been invalidated. Use pthread_mutex_lock rather
10857 than pthread_mutex_trylock if fd != -1.
10858 * nscd/connections.c (invalidate_cache): Add fd argument, write
10859 response to fd if not calling prune_cache, pass fd to prune_cache.
10860 (handle_request): Adjust invalidate_cache caller.
10861 (nscd_run): Pass -1 as fd to prune_cache.
10863 2006-05-30 Ulrich Drepper <drepper@redhat.com>
10865 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10868 2006-05-29 Ulrich Drepper <drepper@redhat.com>
10870 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10871 * nscd/cache.c (prune_cache): Take prunelock before starting the
10872 work. Just return in case it is already taken.
10873 * nscd/connections.c (dbs): Initialize .prunelock.
10875 2006-05-25 Ulrich Drepper <drepper@redhat.com>
10877 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10878 copying. No need to allocate new array for group members. Just
10879 move the pointers and update the size.
10881 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10882 Avoid memory leak in case realloc fails. Simplification for
10883 better code generation.
10885 Avoid deprecation warning because of libc_hidden_proto for
10886 inet6_option_alloc.
10887 * inet/inet6_option.c (option_alloc): Renamed from
10888 inet6_option_alloc. Made static.
10889 (inet6_option_alloc): Now a simple wrapper around option_alloc.
10890 (inet6_option_append): Call option_alloc.
10891 * include/netinet/in.h: Remove libc_hidden_proto for
10892 inet6_option_alloc.
10894 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10895 for cleanup when cb!=NULL [Coverity CID 233].
10897 2006-05-24 Ulrich Drepper <drepper@redhat.com>
10900 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10901 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10902 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10903 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10904 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10905 and inet6_rth_getaddr.
10906 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10908 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10909 Mark inet6_option_* interfaces as deprecated.
10910 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10911 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10912 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10913 inet6_rth_segments, and inet6_rth_getaddr.
10914 * inet/inet6_opt.c: New file.
10915 * inet/inet6_rth.c: New file.
10917 * inet/netinet/icmp6.h: Pretty printing.
10920 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10922 2006-05-23 Ulrich Drepper <drepper@redhat.com>
10924 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10925 doing it all here. When server does not know the answer do not
10926 fail immediate, try parent first.
10928 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10931 2006-05-20 Ulrich Drepper <drepper@redhat.com>
10933 * nis/nis_call.c (__prepare_niscall): New function. Split out
10935 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10937 (__follow_path): New function. Split out from nis_list.
10938 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10940 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10942 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10944 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10945 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10946 from libnsl for version GLIBC_PRIVATE.
10947 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10948 Remove entry parameter from _nss_nisplus_parse_pwent and
10949 _nss_nisplus_parse_grent.
10950 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10951 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10952 again. Rewrite getpwent handling to not use nis_first_entry and
10953 nis_next_entry. Roll out own niscall handling.
10954 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10956 * sunrpc/xdr_rec.c: Fix typo in comment.
10958 2006-05-19 Ulrich Drepper <drepper@redhat.com>
10960 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10963 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10964 to allocate memory for my_pollfd. Better initialization of
10965 cb_is_running. Use TEMP_FAILURE_RETRY.
10967 * malloc/memusage.sh (memusageso): Add quotes.
10968 (memusagestat): Likewise.
10969 * debug/xtrace.sh (pcprofileso): Likewise.
10970 (pcprofiledump): Likewise.
10971 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10973 * malloc/Makefile ($(objpfx)memusage): Likewise.
10975 * nis/nis_callback.c (__nis_create_callback): Calls to
10976 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10977 asprintf call fails.
10979 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10980 no uninitialized memory is passed to sendto.
10982 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10984 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10985 of snprintf+strdup. Handle OOM.
10986 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10987 cb->serv together. Remove now obsolete free calls.
10988 (__nis_destroy_callback): Remove now obsolete free call.
10990 2006-05-18 David Woodhouse <dwmw2@redhat.com>
10992 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10993 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10994 and ULA respectively). Set precedence for IPv4 address to 10 as
10995 defined in RFC3484 for preferring IPv6.
10996 * posix/gai.conf: Update to match the new default tables.
10998 2006-05-18 Jakub Jelinek <jakub@redhat.com>
11000 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11001 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11002 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11003 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11005 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11007 (init_nss_interface): Remove initialization of these variables.
11009 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11011 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11012 nis_free_directory forward to avoid duplication.
11014 2006-05-17 Ulrich Drepper <drepper@redhat.com>
11016 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11017 rec_dirsearch returning NULL.
11018 (first_shoot): Handle __nis_finddirectory returning NULL.
11019 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11021 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11022 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11024 2006-05-17 Jakub Jelinek <jakub@redhat.com>
11026 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11029 2006-05-15 Ulrich Drepper <drepper@redhat.com>
11031 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11033 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11034 * nscd/nscd_getgr_r.c: Likewise.
11036 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11038 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11039 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11041 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11043 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11045 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11047 * include/rpc/auth.h: Mark xdr_des_block_internal and
11048 xdr_opaque_auth_internal as hidden.
11050 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11053 * include/rpc/xdr.h: Mark all _internal functions as hidden.
11055 * misc/getusershell.c (okshells): Don't use static initializers,
11058 * stdlib/fmtmsg.c (keywords): Change type of len element to
11059 uint32_t to not waste space on 64bit machines.
11061 * locale/setlocale.c: Change _nl_category_names into a string.
11062 Add new _nl_category_name_idxs. Change all users.
11063 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11064 Declare _nl_category_name_idxs.
11065 * locale/findlocale.c: Adjust for _nl_category_names change.
11066 * locale/loadlocale.c: Likewise.
11067 * locale/newlocale.c: Likewise.
11068 * intl/dcigettext.c: Likewise.
11070 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11071 (add_alias2): ...here. New function.
11072 (__gconv_read_conf): Simplify builtin alias handling.
11073 (builtin_aliases): Convert to string to avoid relocations.
11074 * iconv/gconv_builtin.h: Add comment about correct formatting.
11076 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11078 * resolv/res_debug.c (loc_ntoa): Make error const.
11080 2006-05-14 Andreas Schwab <schwab@suse.de>
11082 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11084 2006-05-12 Jakub Jelinek <jakub@redhat.com>
11086 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11087 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11088 sizeof (cpu_set_t).
11090 2006-05-11 Ulrich Drepper <drepper@redhat.com>
11092 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11094 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11096 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11097 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11099 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11100 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11102 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11103 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11106 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11107 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11110 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11111 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11113 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11114 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11116 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11117 * include/rpcsvc/nis_callback.h: New file.
11119 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11120 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11122 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11123 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11125 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11126 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11128 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11129 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11131 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11132 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11135 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11136 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11138 * nis/nis_error.c: Remove table of strings. Use position
11139 independent mechanism.
11140 * nis/nis_error.h: New file.
11142 2006-05-11 Jakub Jelinek <jakub@redhat.com>
11144 * locale/programs/ld-time.c (time_finish): If wide era name or
11145 format aren't provided, set both wname and wformat to L"".
11147 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11149 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11150 results if the call was succesful.
11152 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11154 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11157 2006-05-10 Jakub Jelinek <jakub@redhat.com>
11159 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11161 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11163 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11164 caller makes sure this is not the case.
11165 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11167 2006-05-09 Ulrich Drepper <drepper@redhat.com>
11169 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11172 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11173 [Coverity CID 229, 230]
11175 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11177 (hol_help): Likewise. [Coverity CID 226, 227]
11179 * string/argz-replace.c (__argz_replace): Unconditionally call
11180 free on SRC. [Coverity CID 225]
11182 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11183 the return value of __nis_default_owner and __nis_default_group,
11184 it has been especially allocated. [Coverity CID 224]
11186 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11187 searchgroup and searchowner. Significantly simplified.
11188 (__nis_default_owner): Remove duplication. Do not locally copy the
11189 string before duplicating it.
11190 (__nis_default_group): Likewise.
11192 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11193 we must clear the variable before calling __nisfind_server.
11195 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11196 nis_getnames. [Coverity CID 223]
11198 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11199 xmalloc to allocate local repertoire name. [Coverity CID 222]
11201 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11202 allocate memory for the input to add_bytes. [Coverity CID 221]
11204 * posix/wordexp.c (w_addword): Free word if realloc fails and it
11205 was allocated here. [Coverity CID 219, 220]
11207 * posix/getconf.c (print_all): Free confstr data after printing.
11210 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11211 list allocation fails. [Coverity CID 215]
11213 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11216 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11217 string is NULL. [Coverity CID 212]
11218 * argp/Makefile: Add rules to build and run bug-argp1.
11219 * argp/bug-argp1.c: New file.
11221 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11223 * stdlib/canonicalize.c (__realpath): Likewise.
11225 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11226 pointer. [Coverity CID 206]
11228 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11229 in statically linked code.
11230 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11231 statically built code, be prepared to have no link map.
11234 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11235 dgettext calls. [Coverity CID 204]
11237 * argp/argp-help.c (struct uparams): Remove valid member. Change
11239 (uparam_names): Reduce size. Avoid relative relocations.
11240 Moved to read-only segment.
11241 (fill_in_uparams): Update for new layout.
11243 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11244 assumed to always be != NULL. [Coverity CID 202]
11246 * argp/argp-help.c (hol_entry_help): Remove some dead code
11247 [Coverity CID 200].
11249 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11250 away a few more unconditional yperr2nss calls.
11251 (_nss_nis_getservbyname_r): Likewise.
11253 2006-05-06 Ulrich Drepper <drepper@redhat.com>
11255 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11258 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11259 that unused memory passed to sendto is nevertheless initialized.
11262 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11263 possibly unaligned memory accesses.
11265 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11266 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11267 and __putlong respectively. Correct buffer overflow check for
11270 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11272 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11273 (send_dg): Rewrite error handling to be more compact and avoid
11274 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11276 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11278 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11279 instead of ns_get16.
11280 (res_queriesmatch): Likewise. Minor optimization.
11283 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11284 __libc_res_nsend might reallocate the buffer for the answer. In
11285 this case we have to reload the HP pointer.
11287 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11289 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11290 some branch prediction hints.
11292 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11293 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11294 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11295 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11296 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11297 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11298 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11299 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11301 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11303 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11304 by a GOT relocation to make Scrt1.o position independent.
11305 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11307 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11308 six system call parameters.
11309 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11311 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11313 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11316 * sunrpc/svc_udp.c (BZERO): Remove definition.
11318 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11320 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11321 (des_SPtrans): Use uint32_t type.
11322 (des_skb): Likewise.
11324 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11326 2006-05-05 Jakub Jelinek <jakub@redhat.com>
11329 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11332 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11334 * locale/programs/ld-address.c (address_finish): Fix one more
11335 place where the iso639 array might be accessed beyond the limits.
11337 2006-05-04 Ulrich Drepper <drepper@redhat.com>
11339 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11340 filling it for the first time.
11342 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11343 Adjust all callers.
11344 Free res object content before returning.
11346 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11348 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11351 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11352 cleanup for initial thread, just the free call on TVP.
11354 * nscd/gai.c (__getline): Define.
11357 See ChangeLog.16 for earlier changes.