1 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
3 * configure.in: Support binutils 2.20.
5 2009-05-10 Ulrich Drepper <drepper@redhat.com>
7 * version.h (VERSION): Bump to 2.10.1.
9 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
10 compatibility functions.
11 * nss/getXXent_r.c: Likewise.
12 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
13 * gshadow/getsgnam_r.c: Likewise.
14 * gshadow/Version: Remove duplicate entries.
16 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
18 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
21 2009-05-09 Ulrich Drepper <drepper@redhat.com>
23 * version.h (VERSION): Bump for 2.10 release.
24 * include/features.h (__GLIBC_MINOR__): Bump to 10.
26 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
27 same place we add ASFLAGS-config.
29 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
32 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
33 or FORMERR and the other NOERROR, don't raise an error.
35 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
38 * Makeconfig (+asflags): New variable based upon ASFLAG or
40 (ASFLAGS): Add override to set ASFLAGS to +asflags.
41 * config.make.in (asflags-cpu): Add variable based upon
42 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
44 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
45 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
46 recognizes power6 instruction set due to passing -mcpu=power6 from
47 --with-cpu=power6 when compiling .S files.
48 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
50 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
52 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
55 2009-05-09 Jakub Jelinek <jakub@redhat.com>
57 * string/stratcliff.c (do_test): Test for zero length
58 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
59 at the end of the page.
61 2009-05-08 Ulrich Drepper <drepper@redhat.com>
63 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
65 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
68 * po/da.po: Update from translation team.
70 2009-05-05 Jakub Jelinek <jakub@redhat.com>
72 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
73 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
75 2009-05-05 Ulrich Drepper <drepper@redhat.com>
77 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
78 and READ_IMPLIES_EXEC.
80 2009-05-04 Ulrich Drepper <drepper@redhat.com>
82 * po/da.po: Update from translation team.
84 2009-04-29 Jakub Jelinek <jakub@redhat.com>
86 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
89 2009-04-27 Jakub Jelinek <jakub@redhat.com>
91 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
92 to MAP_ANON in PROT_NONE mmap64 call.
93 (open_archive): Likewise.
94 (file_data_available_p): Use mmap64 instead of mremap.
95 (enlarge_archive): Likewise. Update head if ah->addr changed.
96 Attempt to reserve address space after mmap64 region.
98 2009-04-26 Ulrich Drepper <drepper@redhat.com>
100 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
101 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
102 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
104 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
105 atanh should set ERANGE.
108 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
109 result of lookup to make call to implement STT_GNU_IFUNC.
110 (_dl_profile_fixup): Likewise.
111 Patch by H.J. Lu <hjl.tools@gmail.com>.
113 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
116 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
119 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
120 label if it is not used.
122 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
123 of gmon_hist_hdr and gmon_hdr structures and use them.
124 * elf/sprof.c: Likewise.
126 * elf/dl-load.c (open_verify): Add temporary variable to avoid
129 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
131 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
134 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
135 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
137 (iruserok_af): Use ss_family instead of casts.
139 * gmon/gmon.c (write_hist): Define real-type variant of
140 gmon_hist_hdr structure and use it.
141 (write_gmon): Likewise for gmon_hdr.
143 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
144 function if we are not going to define it.
145 * sysdeps/unix/sysv/linux/writev.c: Likewise.
147 * inet/inet6_option.c (option_alloc): Add temporary variable to
150 * libio/strfile.h (struct _IO_streambuf): Use correct type and
151 name of VTable element.
152 * libio/iovsprintf.c: Avoid casts to avoid warnings.
153 * libio/iovsscanf.c: Likewise.
154 * libio/vasprintf.c: Likewise.
155 * libio/vsnprintf.c: Likewise.
156 * stdio-common/isoc99_vsscanf.c: Likewise.
157 * stdlib/strfmon_l.c: Likewise.
158 * debug/vasprintf_chk.c: Likewise.
159 * debug/vsnprintf_chk.c: Likewise.
160 * debug/vsprintf_chk.c: Likewise.
162 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
165 2009-04-26 Jakub Jelinek <jakub@redhat.com>
167 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
169 2009-04-25 Ulrich Drepper <drepper@redhat.com>
171 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
173 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
174 * sysdeps/i386/fpu/s_tanf.S: Likewise.
175 * sysdeps/i386/fpu/s_tanl.S: Likewise.
176 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
177 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
178 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
179 * math/libm-test.inc: Add tests for errno after tan calls with
182 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
183 errno value vor pow(+-0,neg).
184 * math/libm-test.inc (pow_test): Add tests for errno value for
187 * math/w_fmod.c: Also handle x=±Inf as error.
188 * math/w_fmodf.c: Likewise.
189 * math/w_fmodl.c: Likewise.
190 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
193 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
194 * sysdeps/i386/fpu/s_cosf.S: Likewise.
195 * sysdeps/i386/fpu/s_cosl.S: Likewise.
196 * sysdeps/i386/fpu/s_sin.S: Likewise.
197 * sysdeps/i386/fpu/s_sinf.S: Likewise.
198 * sysdeps/i386/fpu/s_sinl.S: Likewise.
199 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
200 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
201 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
202 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
203 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
204 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
205 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
206 * math/libm-test.inc: Add tests for errno after sin/cos calls with
209 * stdlib/strtod_l.c (round_and_return): We have to set errno to
210 ERANGE for underflows.
211 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
213 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
216 * libio/tst-widetext.input: Remove surrogates.
218 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
220 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
221 for lgamma should set errno to ERANGE, not EDOM.
222 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
224 2009-04-24 Ulrich Drepper <drepper@redhat.com>
227 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
230 * locale/programs/locarchive.c (enlarge_archive): Conserve address
231 space when temporarily mapping the whole content of the old file.
234 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
237 2009-04-24 Jakub Jelinek <jakub@redhat.com>
239 * iconvdata/sjis.c (BODY): Don't advance inptr before
240 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
241 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
244 2009-04-24 Ulrich Drepper <drepper@redhat.com>
246 * locale/locarchive.h (struct locarhandle): Rename len field to
247 mmaped and add new reserved field.
248 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
249 (create_archive): Reserve address space and then map file into it.
250 (open_archive): Likewise.
251 (file_data_available_p): New function.
252 (compare_from_file): New function.
253 (close_archive): Adjust to member name changes.
254 (add_locale): Before comparing locale data, check it is mapped.
255 Otherwise fall back to reading from the file.
257 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
259 * stdio-common/psiginfo.c: Include <errno.h>.
261 2009-04-23 Ulrich Drepper <drepper@redhat.com>
264 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
265 to get consistency between 32 and 64 bit architectures.
268 * sysdeps/unix/make-syscalls.sh: Add rule to create target
269 directory for dummy syscall rules.
270 Patch by Chris Steinbroner <hesh@pobox.com>.
272 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
275 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
278 2009-04-23 Ulrich Drepper <drepper@redhat.com>
280 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
281 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
283 2009-04-23 Jakub Jelinek <jakub@redhat.com>
285 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
286 data from vector to temporary buffer and call PWRITEV after it
287 instead of vice versa.
288 * sysdeps/posix/preadv.c: Fix up comment.
289 * misc/preadv.c: Likewise.
290 * misc/preadv64.c: Likewise.
291 * misc/pwritev.c: Likewise.
292 * misc/pwritev64.c: Likewise.
293 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
295 2009-04-23 Ulrich Drepper <drepper@redhat.com>
297 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
299 * shadow/Makefile (tests): Add tst-shadow.
300 * shadow/tst-shadow.c: New file.
303 * gshadow/Makefile: New file.
304 * gshadow/Versions: New file.
305 * gshadow/fgetsgent.c: New file.
306 * gshadow/fgetsgent_r.c: New file.
307 * gshadow/getsgent.c: New file.
308 * gshadow/getsgent_r.c: New file.
309 * gshadow/getsgnam.c: New file.
310 * gshadow/getsgnam_r.c: New file.
311 * gshadow/gshadow.h: New file.
312 * gshadow/putsgent.c: New file.
313 * gshadow/sgetsgent.c: New file.
314 * gshadow/sgetsgent_r.c: New file.
315 * gshadow/tst-gshadow.c: New file.
316 * include/gshadow.h: New file.
317 * Makeconfig (all-subdirs): Add gshadow.
318 * Makefile (installed-headers): Add gshadow/gshadow.h.
319 * nss/Makefile (databases): Add sgrp.
320 * nss/Versions: Add gshadow functions as private exports.
321 * nss/nsswitch.conf: Add gshadow entry.
322 * nss/sgrp-lookup.c: New file.
323 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
324 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
325 * nss/nss_files/files-sgrp.c: New file.
326 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
327 * sysdeps/unix/sysv/linux/paths.h: Likewise.
329 2009-04-22 Ulrich Drepper <drepper@redhat.com>
331 * stdio-common/printf.h: Add missing const to register_printf_modifier.
332 * stdio-common/reg-modifier.c: Likewise.
334 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
336 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
339 2009-04-20 Ulrich Drepper <drepper@redhat.com>
342 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
343 headers up to 2.6.30.
345 * po/ca.po: Update from translation team.
347 2009-04-19 Ulrich Drepper <drepper@redhat.com>
350 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
351 an object that uses static TLS if the TLS modid is higher than the
352 reserve we always allocate. At least for multi-threaded code.
354 2009-04-18 Ulrich Drepper <drepper@redhat.com>
356 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
357 Numerically stable check for valid width.
359 * locale/programs/locarchive.c (open_archive): Map the entire file
360 and not just the administrative data.
361 (add_locale): When we find a hash sum match compare the content
364 * malloc/malloc.c (malloc_info): Output address space information.
366 2009-04-17 Ulrich Drepper <drepper@redhat.com>
368 * malloc/malloc.c (malloc_info): Also output system memory information.
370 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
371 architectures have preadv/pwritev in 2.6.30.
373 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
374 * sysdeps/posix/readv.c: Likewise.
375 Reported by Markus Armbruster <armbru@redhat.com>.
377 * malloc/hooks.c (top_check): Force hook value into register.
379 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
381 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
382 calls to _dl_relocate_object.
384 2009-04-16 Ulrich Drepper <drepper@redhat.com>
387 * malloc/malloc.c (force_reg): Define.
388 (sYSMALLOc): Load hook variable into variable
389 before test and force into register.
391 (public_mALLOc): Force hook value into register.
392 (public_fREe): Likewise.
393 (public_rEALLOc): Likewise.
394 (public_mEMALIGn): Likewise.
395 (public_vALLOc): Likewise.
396 (public_pVALLOc): Likewise.
397 (public_cALLOc): Likewise.
398 (__posix_memalign): Likewise.
399 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
400 before test and force into register.
401 * malloc/hooks.c (top_check): Likewise.
402 (public_sET_STATe): Pretty printing.
404 * resolv/res_send.c (send_dg): Don't just ignore the result we got
405 in case we only receive one reply in single-request mode.
407 2009-04-16 Jakub Jelinek <jakub@redhat.com>
409 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
410 are dlopened in statically linked program even for __LM_ID_CALLER.
412 2009-04-16 Ulrich Drepper <drepper@redhat.com>
414 * resolv/res_send.c (send_dg): Don't switch into single-request
415 mode if we already are in it.
417 2009-04-15 Ulrich Drepper <drepper@redhat.com>
419 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
420 are always at least 4 bytes in the returned line.
422 2009-04-15 Jakub Jelinek <jakub@redhat.com>
424 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
425 __libc_use_alloca (8192), if the stack is too small use 512 bytes
426 instead of 8K. Stop searching in /proc/stat after hitting first
427 line not starting with cpu.
428 (next_line): Truncate too long
429 lines at buffer size * 3/4 instead of pretending there were line
430 breaks inside of large lines.
432 2009-04-14 Ulrich Drepper <drepper@redhat.com>
434 * sysdeps/x86_64/mp_clz_tab.c: New file.
436 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
437 Ulrich Drepper <drepper@redhat.com>
439 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
440 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
441 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
443 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
445 * sysdeps/sh/libc-tls.c: New file.
447 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
449 2009-04-14 Roland McGrath <roland@redhat.com>
451 * elf/elf.h: Add various missing ARM constants, to match binutils.
453 2009-04-14 Ulrich Drepper <drepper@redhat.com>
455 Optimizations from GMP.
456 * sysdeps/x86_64/add_n.S: New file.
457 * sysdeps/x86_64/addmul_1.S: New file.
458 * sysdeps/x86_64/lshift.S: New file.
459 * sysdeps/x86_64/mul_1.S: New file.
460 * sysdeps/x86_64/rshift.S: New file.
461 * sysdeps/x86_64/sub_n.S: New file.
462 * sysdeps/x86_64/submul_1.S: New file.
464 2009-04-14 Jakub Jelinek <jakub@redhat.com>
466 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
467 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
468 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
469 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
471 2009-04-14 Ulrich Drepper <drepper@redhat.com>
473 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
476 2009-04-13 Ulrich Drepper <drepper@redhat.com>
478 * sysdeps/x86-64/strrchr.S: New file.
480 2009-04-10 Ulrich Drepper <drepper@redhat.com>
482 * stdio-common/printf.h (struct printf_info): Add user element.
483 New types printf_arginfo_size_function, printf_va_arg_function.
484 Declare register_printf_specifier, register_printf_modifier,
485 register_printf_type.
486 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
487 (union printf_arg): Add pa_user element.
488 Adjust __printf_arginfo_table type.
489 Add __printf_va_arg_table, __printf_modifier_table,
490 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
492 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
493 If registered arginfo call failed try normal specifier.
494 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
496 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
497 * stdio-common/Versions: Export register_printf_modifier,
498 register_printf_type, and register_printf_specifier for GLIBC_2.10.
499 * stdio-common/reg-modifier.c: New file.
500 * stdio-common/reg-type.c: New file.
501 * stdio-common/reg-printf.c (__register_printf_specifier): New
502 function. Mostly the old __register_printf_function function but
503 uses locking and type of third parameter changed.
504 (__register_printf_function): Implement using
505 __register_printf_specifier.
506 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
507 calls to arginfo functions. Allocate enough memory for user-defined
508 types. Call new va_arg functions to get user-defined types.
509 Try installed handlers even for existing format specifiers first.
511 2009-04-09 Ulrich Drepper <drepper@redhat.com>
513 * sysdeps/x86_64/rawmemchr.S: New file.
515 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
516 Simplified code and possible copy problem fixed.
518 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
519 function if it is not defined. Add some necessary casts.
520 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
522 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
523 have preadv/pwritev in 2.6.30.
525 2009-04-08 Ulrich Drepper <drepper@redhat.com>
527 * malloc/malloc.c (malloc_info): New function.
528 * malloc/malloc.h: Declare it.
529 * malloc/Versions: Export malloc_info for GLIBC_2.10.
531 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
534 * malloc/malloc.c (_int_realloc): Add parameter with old block
535 size. Remove duplicated test. Don't handle mmap'ed blocks here.
537 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
539 2009-04-07 Ulrich Drepper <drepper@redhat.com>
541 * sysdeps/x86_64/strchrnul.S: New file.
543 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
544 depending libcrypt on -lfreebl3.
546 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
547 preadv/pwritev in 2.6.30.
549 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
550 instead of __strcasecmp.
552 * string/stratcliff.c (do_test): Add memchr tests..
553 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
554 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
555 first read quad word.
557 2009-04-06 Ulrich Drepper <drepper@redhat.com>
559 * string/strverscmp.c (__strverscmp): Fix last cleanups.
560 * string/tst-svc.input: Add new test case.
561 * string/tst-svc.expect: Adjust.
562 * string/Makefile: Don't ignore tst-svc error.
564 * sysdeps/x86_64/memchr.S: New file.
566 * resolv/resolv.h (RES_SNGLKUP): Define.
567 * resolv/res_init.c (res_setoptions): Recognize single-request option.
568 * resolv/res_send.c (send_dg): If we sent two requests at once and
569 only get one reply before timeout switch to mode where we send the
570 second request only after the first answer has been received.
572 2009-04-05 Ulrich Drepper <drepper@redhat.com>
574 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
575 * sysdeps/x86_64/strchr.S: Likewise.
577 2009-04-03 Ulrich Drepper <drepper@redhat.com>
579 * configure.in: We need to test for the compiler earlier.
581 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
582 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
584 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
585 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
587 * misc/preadv.c: New file.
588 * misc/preadv64.c: New file.
589 * misc/pwritev.c: New file.
590 * misc/pwritev64.c: New file.
591 * sysdeps/posx/preadv.c: New file.
592 * sysdeps/posx/preadv64.c: New file.
593 * sysdeps/posx/pwritev.c: New file.
594 * sysdeps/posx/pwritev64.c: New file.
595 * sysdeps/unix/sysv/linux/preadv.c: New file.
596 * sysdeps/unix/sysv/linux/preadv64.c: New file.
597 * sysdeps/unix/sysv/linux/pwritev.c: New file.
598 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
599 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
600 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
602 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
604 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
606 * sysdeps/unix/sysv/linux/kernel-features.h: Define
607 __ASSUME_COMPLETE_READV_WRITEV.
608 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
610 * sysdeps/unix/sysv/linux/writev.c: Likewise.
612 * sysdeps/posix/readv.c: Since read is a cancellation point we have
613 to free a possible malloced buffer in case of cancellation.
614 * sysdeps/posix/writev.c: Likewise for write.
616 2009-04-02 Ulrich Drepper <drepper@redhat.com>
618 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
620 * configure.in: Recognize --enable-nss-crypt.
621 * config.make.in: Add nss-crypt entry.
622 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
623 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
624 and include path for NSS directory to compiler for md5-crypt,
625 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
626 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
627 function implementation, use NSS. Introduce wrappers around the
628 hash function calls. Little code size optimization.
629 * crypt/sha256-crypt.c: Likewise.
630 * crypt/sha512-crypt.c: Likewise.
631 * scripts/check-local-headers.sh: Ignore nss3 directory.
633 * configure.in: Rename pic_default to libc_cv_pic_default.
634 * config.make.in: Likewise.
636 2009-04-01 Roland McGrath <roland@redhat.com>
638 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
639 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
640 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
641 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
642 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
643 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
644 (R_SPARC_NUM): Update.
645 From Dave Miller <davem@davemloft.net>.
647 2009-04-01 Ulrich Drepper <drepper@redhat.com>
649 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
651 2009-03-31 Ulrich Drepper <drepper@redhat.com>
653 * elf/dl-open.c: Keep track of used name spaces and only iterate over
654 those which are used.
655 * elf/dl-addr.c: Likewise.
656 * elf/dl-caller.c: Likewise.
657 * elf/dl-fini.c: Likewise.
658 * elf/dl-iteratephdr.c: Likewise.
659 * elf/dl-libc.c: Likewise.
660 * elf/dl-load.c: Likewise.
661 * elf/dl-support.c: Likewise.
662 * elf/dl-sym.c: Likewise.
663 * elf/rtld.c: Likewise.
664 * sysdeps/generic/ldsodefs.h: Likewise.
666 * elf/dl-load.c: Remove support for systems without MAP_ANON.
667 * elf/dl-minimal.c: Likewise.
668 * elf/dl-misc.c: Likewise.
669 * elf/rtld.c: Likewise.
670 * sysdeps/generic/ldsodefs.h: Likewise.
672 2009-03-30 Ulrich Drepper <drepper@redhat.com>
674 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
675 Avoid reuse of complex expression.
677 * po/fr.po: Update from translation team.
679 2009-03-16 Ulrich Drepper <drepper@redhat.com>
681 * include/dirent.h: Yet more changes to match sort function type
683 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
684 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
685 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
687 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
689 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
691 2009-03-16 Ulrich Drepper <drepper@redhat.com>
693 * nscd/connections.c (restart): Try to preserve the process name
694 by reading the /proc/self/exe symlink and using the return name.
695 Patch by Jeff Bastian <jbastian@redhat.com>.
697 2009-03-15 Ulrich Drepper <drepper@redhat.com>
700 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
701 if we are not loading a new audit library.
702 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
703 Only use profiling trampoline for auditing if we are not relocating
705 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
706 * elf/rtld.c: Likewise.
707 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
709 * elf/rtld.c (dl_main): Extend help message for --audit option.
712 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
713 alphasort64, versionsort, and versionsort64 to POSIX 2008.
714 * dirent/alphasort.c: Adjust implementation to type change.
715 * dirent/alphasort64.c: Likewise.
716 * dirent/scandir.c: Likewise.
717 * dirent/versionsort.c: Likewise.
718 * dirent/versionsort64.c: Likewise.
719 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
721 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
725 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
726 correctly. Set segleft member in output as required.
727 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
728 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
731 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
732 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
733 * inet/Makefile (tests): Add tst-inet6_rth.
734 * inet/tst-inet6_rth.c: New file.
737 * string/strlen.c (strlen): Fix omission in the expression to test
740 2009-03-14 Ulrich Drepper <drepper@redhat.com>
742 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
744 * elf/dl-runtime.c (reloc_offset): Define.
745 (reloc_index): Define.
746 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
747 (_dl_fixup_profile): Likewise. Use reloc_index instead of
748 computing index from reloc_offset.
749 (_dl_call_pltexit): Likewise.
750 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
751 the relocation index to _dl_fixup.
752 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
754 * sysdeps/x86_64/dl-runtime.c: New file.
757 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
758 alignment of La_x86_64_regs. Store xmm parameters.
759 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
762 * string/strverscmp.c (__strverscmp): Fix case of different digits
763 in fractional part of string.
764 Patch by Jingyu Liu <jyliu@fortinet.com>.
765 * string/Makefile (tests): Add tst-svc2.
766 * string/tst-svc2.c: New file.
768 * string/strverscmp.c (__strverscmp): Optimize size of tables.
770 * locale/iso-639.def: Add Min Nan.
772 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
775 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
777 2009-03-14 Ulrich Drepper <drepper@redhat.com>
779 * elf/dl-sysdep.c (auxvars): Compress data structure.
781 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
782 STT_GNU_IFUNC handling.
783 (elf_machine_rela): Likewise.
785 2009-03-13 Ulrich Drepper <drepper@redhat.com>
787 * config.h.in (USE_MULTIARCH): Define.
788 * configure.in: Handle --enable-multi-arch.
789 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
790 (_dl_fixup_profile): Likewise.
791 * elf/do-lookup.c (dl_lookup_x): Likewise.
792 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
793 * elf/elf.h (STT_GNU_IFUNC): Define.
794 * include/libc-symbols.h (libc_ifunc): Define.
795 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
796 framework in init-arch.h to get CPUID values.
797 * sysdeps/x86_64/multiarch/Makefile: New file.
798 * sysdeps/x86_64/multiarch/init-arch.c: New file.
799 * sysdeps/x86_64/multiarch/init-arch.h: New file.
800 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
802 * config.make.in (experimental-malloc): Define.
803 * configure.in: Handle --enable-experimental-malloc.
804 * malloc/Makefile: Handle experimental-malloc flag.
805 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
806 * malloc/arena.c: Likewise.
807 * malloc/hooks.c: Likewise.
808 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
810 2009-03-11 Ulrich Drepper <drepper@redhat.com>
812 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
813 prediction. A few size optimizations.
815 2009-03-10 Ulrich Drepper <drepper@redhat.com>
817 * time/tzset.c: Optimize a bit for size.
819 2009-03-10 Jakub Jelinek <jakub@redhat.com>
821 * include/stdio.h (fmemopen): Add libc_hidden_proto.
822 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
824 * elf/sprof.c: Avoid warning about multi-line comment.
826 2009-03-10 Ulrich Drepper <drepper@redhat.com>
828 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
830 * time/tst-posixtz.c: Add tests for quoted timezone names.
832 2009-03-10 Jakub Jelinek <jakub@redhat.com>
834 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
835 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
836 200809L instead of 200112L.
837 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
838 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
840 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
841 instead of __quick_exit_funcs to __run_exit_handlers.
842 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
843 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
844 (__cxa_at_quick_exit): Remove attribute_hidden.
845 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
846 to __run_exit_handlers.
847 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
850 2009-03-10 Ulrich Drepper <drepper@redhat.com>
852 * po/id.po: Update from translation team.
854 2009-02-18 Jakub Jelinek <jakub@redhat.com>
856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
857 .machine push; .machine "power6" and .machine pop around mtfsf
858 insns outside of _ARCH_PWR6 define.
859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
864 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
865 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
866 relax_fenv_state): Likewise.
868 2009-03-08 Ulrich Drepper <drepper@redhat.com>
870 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
872 (static-only-routines): Add at_quick_exit.
873 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
875 * stdlib/quick_exit.c: New file.
876 * stdlib/at_quick_exit.c: New file.
877 * stdlib/cxa_at_quick_exit.c: New file.
878 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
880 (__internal_atexit): New function.
881 (__new_exitfn): Now takes parameter to point to the list to use.
882 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
883 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
884 (exit): ...here. Just call __run_exit_handlers appropriately.
885 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
886 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
887 * stdlib/on_exit.c: Adjust call to __new_exitfn.
888 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
890 * po/id.po: Update from translation team.
892 2009-03-07 Ulrich Drepper <drepper@redhat.com>
894 * po/ru.po: Update from translation team.
896 2009-03-04 Ulrich Drepper <drepper@redhat.com>
898 * po/nl.po: Update from translation team.
900 2009-03-03 Ulrich Drepper <drepper@redhat.com>
902 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
903 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
904 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
905 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
906 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
907 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
908 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
910 * po/pl.po: Update from translation team.
912 2009-03-02 Ulrich Drepper <drepper@redhat.com>
915 * sysdeps/unix/sysv/linux/fallocate.c: New file.
916 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
917 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
918 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
919 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
920 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
921 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
923 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
924 Add fallocate and fallocate64.
926 * io/fcntl.h: Pretty printing.
928 2009-03-02 Richard Guenther <rguenther@suse.de>
930 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
931 attribute also for non-C99 inline semantics variant.
933 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
935 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
936 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
937 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
938 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
944 2009-03-02 Ulrich Drepper <drepper@redhat.com>
946 * po/cs.po: Update from translation team.
948 2009-02-28 Ulrich Drepper <drepper@redhat.com>
950 * po/bg.po: Update from translation team.
951 * po/sv.po: Likewise.
952 * po/fi.po: Likewise.
953 * po/vi.po: Likewise.
955 2009-02-27 Roland McGrath <roland@redhat.com>
957 * Makeconfig (%.v.i): Depend on Makeconfig.
958 Exclude % lines from initial #-comment removal.
960 2009-02-27 Ulrich Drepper <drepper@redhat.com>
962 * po/ko.po: Update from translation team.
964 2009-02-26 Roland McGrath <roland@redhat.com>
966 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
967 avoids unused warning.
969 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
970 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
972 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
973 sys/ucontext.h and asm/elf.h. Include sys/user.h.
974 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
975 and asm/user.h. Include asm/ptrace.h.
976 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
977 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
978 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
980 (start_thread): Don't undefine.
981 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
984 2009-02-26 Ulrich Drepper <drepper@redhat.com>
986 * wctype/wctype.h: The *_l functions are in POSIX 2008.
987 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
988 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
989 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
990 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
992 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
993 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
994 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
995 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
996 _SC_THREAD_ROBUST_PRIO_PROTECT.
997 * posix/unistd.h: fexecve is in POSIX 2008.
998 * time/time.h: strftime_l is in POSIX 2008.
999 * io/sys/stat.h: futimens is in POSIX 2008.
1000 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1001 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1002 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1003 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1004 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1005 open_memstream, and vdprintf are in POSIX 2008.
1007 2009-02-25 Ulrich Drepper <drepper@redhat.com>
1009 * include/features.h: Define macros for XPG7/POSIX 2008.
1010 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1011 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1013 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1014 * locale/xlocale.h: Define locale_t type.
1015 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1016 in POSIX 2008. Don't define locale_t here.
1017 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1018 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1019 UTIME_OMIT only with __USE_ATFILE.
1020 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1021 * stdio-common/psiginfo.c: New file.
1022 * stdio-common/psiginfo-data.h: New file.
1023 * stdio-common/psiginfo-define.h: New file.
1024 * stdio-common/Makefile (routines): Add psiginfo.
1025 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1026 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1027 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1028 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1029 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1030 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1031 * io/sys/stat.h: Move mknodat definition into same conditional as
1033 * time/sys/time.h: futimesat is not among the functions accepted
1034 into the POSIX standard.
1036 * include/features.h: If no feature selection given and we select
1037 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1038 * posix/Versions: Export __posix_getopt.
1039 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1040 Use it to alternatively initialize __posixly_correct.
1041 (_getopt_internal_r): Take addition parameter. Pass on to
1043 (_getopt_internal): Take addition parameter. Pass on to
1045 (getopt): Pass additional zero to _getopt_internal.
1046 (__posix_getopt): New function.
1047 * posix/getopt.h: Add redirection for getopt.
1048 * posix/getopt1.c (getopt_long): Pass additional zero to
1050 (getopt_long_only): Likewise.
1051 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1052 (_getopt_long_only_r): Likewise.
1053 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1056 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1058 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1059 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1060 * sysdeps/posix/sysconf.c (__sysconf): Handle
1061 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1062 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1064 2009-02-24 Roland McGrath <roland@redhat.com>
1067 * README.template: Reworded not to use substituted version number.
1069 * README: ... here (no longer generated).
1070 * Makefile (README): Target removed.
1072 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1074 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1075 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1078 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1080 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1082 2009-02-22 Ulrich Drepper <drepper@redhat.com>
1084 * po/bg.po: Update from translation team.
1086 2009-02-16 Jakub Jelinek <jakub@redhat.com>
1088 * stdlib/monetary.h: Uglify function parameter names.
1089 * sunrpc/rpc/pmap_clnt.h: Likewise.
1090 * sunrpc/rpc/svc.h: Likewise.
1091 * sunrpc/rpc/xdr.h: Likewise.
1092 * sunrpc/rpc/clnt.h: Likewise.
1093 * resolv/netdb.h: Likewise.
1094 * resolv/arpa/nameser.h: Likewise.
1095 * resolv/resolv.h: Likewise.
1096 * argp/argp.h: Likewise.
1097 * locale/langinfo.h: Likewise.
1098 * io/sys/stat.h: Likewise.
1099 * posix/spawn.h: Likewise.
1100 * nis/rpcsvc/nislib.h: Likewise.
1101 * malloc/obstack.h: Likewise.
1102 * sysdeps/ia64/bits/link.h: Likewise.
1103 * sysdeps/i386/bits/link.h: Likewise.
1104 * sysdeps/s390/bits/link.h: Likewise.
1105 * sysdeps/powerpc/bits/link.h: Likewise.
1106 * sysdeps/x86_64/bits/link.h: Likewise.
1107 * sysdeps/sparc/bits/link.h: Likewise.
1108 * sysdeps/sh/bits/link.h: Likewise.
1109 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1110 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1111 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1112 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1114 2008-12-01 Fredrik Unger <fred@tree.se>
1116 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1117 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1118 _FP_UNPACK_RAW_2, fix up first argument.
1120 2009-02-15 Ulrich Drepper <drepper@redhat.com>
1122 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1123 (GET_NPROCS_PARSER): Change parameters and use next_line.
1124 (__get_nprocs): Rewrite to not use stdio routines.
1125 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1126 Change parameters and use next_line.
1128 2009-02-13 Ulrich Drepper <drepper@redhat.com>
1131 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1132 Change mempool_alloc prototype.
1133 * nscd/mem.c (gc): Don't handle mem_in_flight.
1134 (mempool_alloc): Third parameter now only indicates whether this is the
1135 first call (to allocate data) or not. If it is, get db rdlock.
1136 Release it on error. Don't handle mem_in_flight.
1137 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1138 Adjust third parameter of mempool_alloc calls.
1139 Nothing to do here in case mempool_alloc fails.
1140 Avoid local variable shadowing parameter. No need to get db rdlock
1141 before calling cache_add.
1142 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1143 no mem_in_flight array anymore.
1144 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1145 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1146 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1147 in case mempool_alloc fails. No need to get db rdlock before calling
1149 * nscd/hstcache.c (cache_addhst): Likewise.
1150 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1151 * nscd/servicescache.c (cache_addserv): Likewise.
1152 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1154 2009-02-11 Ulrich Drepper <drepper@redhat.com>
1156 * po/lt.po: Update from translation team.
1158 2009-02-10 Ulrich Drepper <drepper@redhat.com>
1160 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1161 defined, allow additional data to be added using the optional
1162 MORE_ELF_HEADER_DATA macro.
1163 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1164 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1166 2009-02-08 Ulrich Drepper <drepper@redhat.com>
1168 * include/atomic.h: Define catomic_and if not already defined.
1169 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1170 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1172 2009-02-07 Ulrich Drepper <drepper@redhat.com>
1174 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1176 (_int_realloc): Likewise. Third argument is now padded size
1177 All _int_* functions are now static.
1179 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1180 * malloc/arena.c: Likewise.
1181 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1184 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1187 * malloc/malloc.c: Add branch prediction for use of the hooks.
1189 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1191 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1194 * bits/confname.h: Add SUSv7 macros for getconf environments.
1195 * bits/environments.h: Likewise.
1196 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1197 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1198 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1199 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1200 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1201 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1202 * posix/getconf.c: Likewise.
1203 * posix/sysconf.c: Likewise.
1204 * sysdeps/posix/sysconf.c: Likewise.
1205 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1208 2009-01-16 Petr Baudis <pasky@suse.cz>
1211 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1212 even if we currently have zero nscount.
1214 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1217 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1218 the input line is too long.
1220 * po/Makefile (libc.pot): Add f_print as function taking c-format
1223 * debug/xtrace.sh: Unify translatable messages.
1224 * elf/ldd.bash.in: Likewise.
1225 * elf/sprof.c: Likewise.
1226 * locale/programs/locale.c: Likewise.
1227 * malloc/memusage.sh: Likewise.
1228 * nss/getent.c: Likewise.
1230 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1232 * debug/pcprofiledump.c (print_version,
1233 argp_program_version_hook): New function.
1234 * elf/ldconfig.c (more_help): New function.
1236 * elf/sln.c (usage): New function.
1237 (main): Support --help and --version.
1238 * malloc/memusagestat.c (print_version): New function.
1239 (argp_program_version_hook): New variable.
1240 * nscd/nscd.c (more_help): New function.
1242 * posix/getconf.c (main): Send --version output to stdout.
1244 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1245 arguments. All callers changed.
1246 (print_version): New function.
1247 (parseargs): Support --help and --version.
1248 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1250 (print_version): New function.
1251 (main): Use getopt_long. Support --help and --version.
1252 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1255 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1257 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1258 (update_data): Fix handling of wrapping back
1259 to the beginning of the buffer.
1262 * stdio-common/psignal.c (psignal): Fix test for empty string.
1264 2009-02-05 Ulrich Drepper <drepper@redhat.com>
1266 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1267 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1268 move _null_auth to .rodata.
1270 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1273 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1275 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1276 today than when the original code was written. Use larger
1277 buffers. This also makes it unnecessary to have stat information,
1278 if this causes extra efforts.
1279 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1282 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
1284 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1286 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1287 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1288 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1289 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1290 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1291 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1293 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1295 * po/ru.po: Update from translation team.
1297 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1299 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1300 Add _tid slot to maintain consistency with kernel.
1302 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1304 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1305 incomplete characters at end of input buffer.
1306 * libio/Makefile (tests): Add tst-fgetwc.
1307 * libio/tst-fgetwc.c: New file.
1308 * libio/tst-fgetwc.input: New file.
1310 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
1312 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1314 2009-02-02 Ulrich Drepper <drepper@redhat.com>
1317 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1318 *OUTBUFSTART unless the whole output fit into the buffer.
1319 * iconv/Makefile (tests): Add tst-iconv4.
1320 * iconv/tst-iconv4.c: New file.
1322 2009-02-01 Ulrich Drepper <drepper@redhat.com>
1324 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1325 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1327 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
1329 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1330 newer linker scripts.
1332 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1335 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1336 inotify_rm_watch should have type int.
1338 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1340 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1341 Make aligned_restore_vmx a local symbol.
1342 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1345 2009-01-30 Andreas Jaeger <aj@suse.de>
1347 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1348 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1349 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1350 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1351 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1352 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1353 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1355 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1358 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1359 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1361 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1365 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1367 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1369 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1371 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1372 memcpy instead of memcmp.
1373 (_dl_setup_pointer_guard): Likewise.
1375 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1377 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1378 manipulated brk, use malloc_printerr.
1379 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1382 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1384 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1385 rindex): For C++ add inlines so that they can be recognized as
1387 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1389 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1390 Jakub Jelinek <jakub@redhat.com>
1392 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1393 * wcsmbs/wchar.h: Likewise.
1395 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1397 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1398 (stackinfo_sub_sp): Define.
1400 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1403 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1404 * include/alloca.h (alloca_account): Define.
1405 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1406 (stackinfo_sub_sp): Define.
1408 * nscd/connections.c (nscd_init): If database file access fails
1409 check whether this is due to permission problems and bail in that
1413 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1414 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1416 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1418 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1419 Add "t" to clobber list.
1420 (INTERNAL_SYSCALL_NCS): Likewise.
1422 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1424 * nss/getent.c (print_networks): Don't print comma between aliases.
1426 2009-01-23 Ulrich Drepper <drepper@redhat.com>
1428 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1430 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1432 * misc/Makefile (tests): Add bug-hsearch1.
1433 * misc/bug-hsearch1.c: New file.
1435 2009-01-22 Roland McGrath <roland@redhat.com>
1437 * Makeconfig (%.v.i): Strip trailing # comments,
1438 not only whole-line comments.
1440 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1442 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1443 one parameter. If non-NULL use it to initialize return value.
1444 (_dl_setup_pointer_guard): New function.
1445 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1446 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1447 * elf/rtld.c (security_init): Pass _dl_random to
1448 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1450 * elf/dl-sysdep.c (_dl_random): New variable.
1451 (_dl_sysdep_start): Handle AT_RANDOM.
1452 (_dl_show_auxv): Likewise.
1453 * elf/dl-support.c (_dl_random): New variable.
1454 (_dl_aux_init): Handle AT_RANDOM.
1455 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1456 to _dl_setup_stack_chk_guard.
1458 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1460 2009-01-10 Roland McGrath <roland@redhat.com>
1462 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1464 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1466 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1469 * nss/nss_files/files-parse.c (strtou32): New function.
1470 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1471 across 32-bit and 64-bit platforms.
1472 (INT_FIELD_MAYBE_NULL): Likewise.
1474 2009-01-08 Jakub Jelinek <jakub@redhat.com>
1477 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1478 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1479 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1482 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
1485 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1486 being NULL also if there are no backreferences.
1487 * posix/rxspencer/tests: Add testcases.
1489 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
1492 * posix/bug-regex17.c: Add testcases.
1493 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1496 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1498 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1499 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1500 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1501 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1503 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1504 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1505 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1506 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1507 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1508 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1510 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
1512 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1513 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1514 re_string_skip_chars, re_string_reconstruct): Likewise.
1515 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1517 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
1519 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1520 adjust the buffer alignment.
1522 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1524 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1525 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1528 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1529 flavor to description only when flavor is not NULL.
1531 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1532 mutex after SIGIO/SIGURG lookup loop.
1534 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1536 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1538 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1540 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1543 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1545 * sysdeps/unix/sysv/linux/kernel-features.h
1546 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1548 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1549 if no output is written.
1551 * version.h: Bump to 2.10 development.
1553 * posix/getconf.c: Update copyright year.
1554 * nss/getent.c: Likewise.
1555 * iconv/iconvconfig.c: Likewise.
1556 * iconv/iconv_prog.c: Likewise.
1557 * elf/ldconfig.c: Likewise.
1558 * catgets/gencat.c: Likewise.
1559 * csu/version.c: Likewise.
1560 * elf/ldd.bash.in: Likewise.
1561 * elf/sprof.c (print_version): Likewise.
1562 * locale/programs/locale.c: Likewise.
1563 * locale/programs/localedef.c: Likewise.
1564 * nscd/nscd.c (print_version): Likewise.
1565 * debug/xtrace.sh: Likewise.
1566 * malloc/memusage.sh: Likewise.
1567 * malloc/mtrace.pl: Likewise.
1568 * debug/catchsegv.sh: Likewise.
1570 2008-12-29 Mike Frysinger <vapier@gentoo.org>
1572 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1575 2008-12-29 Ulrich Drepper <drepper@redhat.com>
1577 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1578 gethostbyname4_r function call succeeded, just leave the loop.
1581 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1583 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1584 * wctype/Makefile (tests): Add bug-wctypeh.
1585 * wctype/bug-wctypeh.c: New file.
1587 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1588 LOCALDOMAIN is defined.
1589 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1591 * sysdeps/x86_64/bits/select.h: New file.
1593 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1595 2008-12-21 Bruno Haible <bruno@clisp.org>
1598 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1599 if no output is written.
1601 2008-12-13 Klaus Dittrich <kladit@arcor.de>
1603 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1604 libc internal symbol __dup2 to avoid access through the PLT.
1606 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1609 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1610 available only for __USE_GNU.
1612 * inet/Makefile (tests): Add tst-getni2.
1613 * inet/tst-getni2.c: New file.
1616 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1617 NULL when NI_NAMEREQD is set.
1618 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1619 * inet/Makefile (tests): Add tst-getni1.
1620 * inet/tst-getni1.c: New file.
1622 2008-12-03 Petr Baudis <pasky@suse.cz>
1625 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1626 instead of prune_lock.
1627 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1628 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1630 2008-12-07 Ulrich Drepper <drepper@redhat.com>
1632 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1635 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1638 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1639 after reading name server list.
1642 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1643 handling for host name aliases.
1645 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1647 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1648 instead of doing things manually.
1650 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1652 * posix/regex_internal.h (build_wcs_upper_buffer):
1653 Return type is reg_error_t.
1655 2008-12-05 Ulrich Drepper <drepper@redhat.com>
1657 * posix/globtest.sh: Use mktemp to create temporary file and
1660 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1662 (__CPU_CLR_S): Likewise.
1663 (__CPU_ISSET_S): Likewise.
1665 2008-12-05 Joseph Myers <joseph@codesourcery.com>
1666 Ulrich Drepper <drepper@redhat.com>
1668 * scripts/firstversion.awk: Use custom comparison function to compare
1670 * scripts/versions.awk: Use sort invocation which can handle
1671 multi-digit sub-version numbers.
1673 2008-12-04 Ulrich Drepper <drepper@redhat.com>
1675 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1676 * locale/iso-639.def: Add Chhattisgarhi entry.
1678 2008-12-02 Ulrich Drepper <drepper@redhat.com>
1680 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1682 (_nss_dns_gethostbyname4_r): Likewise.
1683 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1684 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1685 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1686 the no_data variable.
1688 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1689 information at the correct index.
1691 * socket/sys/socket.h: Declare accept4.
1692 * socket/accept4.c: New file.
1693 * sysdeps/unix/sysv/linux/accept4.c: New file.
1694 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1695 * socket/Makefile (routines): Add accept4.
1696 * socket/Versions: Export accept4 with version GLIBC_2.10.
1697 * socket/paccept.c: Removed.
1698 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1699 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1700 * Versions.def: Define GLIBC_2.10 for libc.
1701 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1703 * nscd/connections.c: Use accept4.
1705 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1707 2008-12-01 Ulrich Drepper <drepper@redhat.com>
1709 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1712 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1714 * stdlib/Makefile (tests): Add tst-unsetenv1.
1715 * stdlib/tst-unsetenv1.c: New file.
1717 2008-11-29 Ulrich Drepper <drepper@redhat.com>
1719 * login/utmp_file.c (file_writable): New variable.
1720 (setutent_file): Don't try to open file for writing.
1721 (pututline_file): Before writing, make descriptor writable if
1724 2008-11-26 Ulrich Drepper <drepper@redhat.com>
1726 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1727 to IPv4 or IPv6 if an interface has been found.
1729 2008-11-26 Roland McGrath <roland@redhat.com>
1731 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1732 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1734 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1735 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1736 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1738 * elf/elf.h (NT_386_IOPERM): New macro.
1739 (NT_PPC_VSX): New macro.
1741 2008-11-25 Roland McGrath <roland@redhat.com>
1743 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1744 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1745 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1746 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1747 Subdirectories moved to ports repository.
1748 * configure.in (base_machine): Remove alpha case.
1750 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1752 * sysdeps/mach/strerror_l.c: New file.
1754 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1757 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1758 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1760 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1761 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1762 (relax_fenv_state): Same as above.
1763 (FPSCR_29): Reserve bit in ISA 2.05.
1764 (FPSCR_NI): Provide define for compat.
1765 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1767 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1769 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1770 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1771 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1772 access to hwcap to account for hwcap size increase to uint64_t.
1773 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1776 (*setcontext): Likewise.
1777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1782 (*setcontext): dynamically select mtfsf insn based on
1783 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1784 increase to uint64_t.
1785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1786 (*swapcontext): dynamically select mtfsf insn based on
1787 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1788 increase to uint64_t.
1789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1794 (*setcontext): dynamically select mtfsf insn based on
1795 PPC_FEATURE_HAS_DFP.
1796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1797 (*swapcontext): dynamically select mtfsf insn based on
1798 PPC_FEATURE_HAS_DFP.
1800 2008-11-13 Ulrich Drepper <drepper@redhat.com>
1802 * version.h: Bump for 2.9 release.
1803 * include/features.h (__GLIBC_MINOR__): Bump to 9.
1806 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1807 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1810 2008-11-11 Ulrich Drepper <drepper@redhat.com>
1813 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1814 unknown request types for now.
1816 2008-11-11 Roland McGrath <roland@redhat.com>
1818 * sysdeps/x86_64/configure: New file.
1820 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1821 * configure: Regenerated.
1823 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1825 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1826 correct instruction to remove the stack frame.
1828 2008-11-03 Michael Matz <matz@suse.de>
1830 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1831 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1833 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1835 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1838 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1839 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1840 of the thread variable instead of void *.
1841 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1842 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1843 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1844 __libc_tsd_define arguments.
1845 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1846 __libc_tsd_address arguments. Remove union hack.
1847 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1848 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1849 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1850 Adjust __libc_tsd_{set,get} arguments.
1851 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1852 __libc_tsd_define arguments.
1853 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1855 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1856 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1857 (LOCALE): Adjust __libc_tsd_define arguments.
1858 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1860 (LOCALE): Adjust __libc_tsd_define arguments.
1861 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1863 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1866 2008-11-02 Ulrich Drepper <drepper@redhat.com>
1868 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1869 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1871 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1874 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1876 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1877 Ulrich Drepper <drepper@redhat.com>
1879 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1880 definition for GCC 3.1 and later.
1882 2008-10-31 Jakub Jelinek <jakub@redhat.com>
1884 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1885 refetch dtv, as it might have changed.
1886 * elf/Makefile: Add rules to build and run tst-tls18.
1887 * elf/tst-tls18.c: New test.
1888 * elf/tst-tlsmod18a.c: New file.
1890 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
1893 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1895 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1898 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1901 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1902 Fix length of copy operation.
1904 2008-10-02 Pierre Habouzit <madcoder@debian.org>
1906 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1907 and fix its calling convention.
1909 2008-10-07 Andreas Schwab <schwab@suse.de>
1912 * resolv/res_send.c (send_vc): Fix last change.
1913 (send_dg): Align here as well.
1915 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1917 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1918 return value in case rlimit is RLIM_INFINITY.
1921 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1923 * resource/Makefile (tests): Add bug-ulimit1.
1924 * resource/bug-ulimit1.c: New file.
1927 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1928 without dot. Properly terminate the string with a null byte.
1929 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1932 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1934 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1938 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1940 2008-10-30 Ulrich Drepper <drepper@redhat.com>
1942 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1943 abort if there is no initgroups_dyn function.
1945 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1946 result if any of the queries really provided an answer.
1948 2008-10-28 Ulrich Drepper <drepper@redhat.com>
1950 * po/lt.po: Update from translation team.
1952 2008-10-26 Ulrich Drepper <drepper@redhat.com>
1954 * po/id.po: Update from translation team.
1956 2008-10-24 Ulrich Drepper <drepper@redhat.com>
1958 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1959 Fix tests for existence of second reply.
1961 2008-10-23 Ulrich Drepper <drepper@redhat.com>
1963 * po/id.po: New file.
1964 Contributed by the Indonesian translation team.
1966 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1968 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1971 2008-10-17 Jakub Jelinek <jakub@redhat.com>
1973 * elf/Makefile: Add rules to build and run tst-tls17.
1974 * elf/tst-tls17.c: New test.
1975 * elf/tst-tlsmod17a.c: New file.
1976 * elf/tst-tlsmod17b.c: Likewise.
1978 2008-10-17 Ulrich Drepper <drepper@redhat.com>
1980 * stdlib/divmod_1.c: Use correct type for dummy variable.
1981 * stdlib/mod_1.c: Likewise.
1983 2008-10-16 Ulrich Drepper <drepper@redhat.com>
1985 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1987 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1989 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1990 __nonnull order for C++.
1991 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1992 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1994 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1996 * stdlib/longlong.h: Update from GCC.
1998 2008-10-09 Jakub Jelinek <jakub@redhat.com>
1999 David S. Miller <davem@davemloft.net>
2001 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2002 make sure any registers used with 64-bit 'branch-on-register'
2003 instructions have their top 32-bits clear.
2004 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2005 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2007 2008-09-18 Andreas Schwab <schwab@suse.de>
2010 * resolv/res_send.c (send_vc): Fix use of unaligned address.
2011 Properly handle partial reads.
2013 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2015 * elf/elf.h (STO_MIPS_PLT): New.
2017 (R_MIPS_JUMP_SLOT): New.
2018 (R_MIPS_NUM): Redefine to 128.
2019 (DT_MIPS_PLTGOT): New.
2020 (DT_MIPS_RWPLT): New.
2021 (DT_MIPS_NUM): Redefine to 0x35.
2023 2008-10-01 Ulrich Drepper <drepper@redhat.com>
2025 * timezone/africa: Update from tzdata2008f.
2026 * timezone/asia: Likewise.
2027 * timezone/australasia: Likewise.
2028 * timezone/europe: Likewise.
2029 * timezone/leapseconds: Likewise.
2030 * timezone/northamerica: Likewise.
2031 * timezone/southamerica: Likewise.
2032 * timezone/zone.tab: Likewise.
2034 2008-09-30 Ulrich Drepper <drepper@redhat.com>
2036 * nscd/connections.c: Disable use of paccept for now.
2038 2008-09-29 Ulrich Drepper <drepper@redhat.com>
2040 * socket/Versions: Remove paccept export for GLIBC_2.9.
2041 * socket/Makefile (routines): Remove paccept.
2042 * socket/sys/socket.h: Remove paccept declaration.
2044 * po/sv.po: Update from translation team.
2046 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2048 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2049 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2051 2008-09-16 Ulrich Drepper <drepper@redhat.com>
2053 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2054 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2056 2008-09-15 Ulrich Drepper <drepper@redhat.com>
2058 * sunrpc/rpc/svc.h: Declare svcfd_create.
2059 Patch by Michael Solberg <msolberg@redhat.com>.
2061 2008-09-12 Flavio Leitner <fleitner@redhat.com>
2062 Ulrich Drepper <drepper@redhat.com>
2064 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2066 (public_pVALLOc): Likewise.
2068 2008-09-02 Andreas Jaeger <aj@suse.de>
2070 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2073 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2076 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2078 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2080 * Makefile (check-data): Check data directory in add-ons.
2081 * elf/Makefile (check-data): Likewise.
2083 2008-08-18 Roland McGrath <roland@redhat.com>
2085 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2086 * configure: Regenerated.
2087 * config.make.in (cflags-cpu): New substituted variable.
2088 (with-cpu): Variable removed.
2089 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2091 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2094 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2095 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2096 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2097 redundant. Functions which call floating point assembler operations
2098 should go into a sysdeps powerpc/fpu directory.
2100 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2102 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2103 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2105 2008-08-14 Ulrich Drepper <drepper@redhat.com>
2107 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2109 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2110 change related to AT_EXECFN. We cannot use that string.
2111 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2113 * elf/dl-support.c: Remove _dl_execfn variable.
2114 (_dl_aux_init): Remove handling of AT_EXECFN.
2115 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2116 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2118 2008-08-13 Ulrich Drepper <drepper@redhat.com>
2121 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2122 byte gets added to writes and seeks from the end use the length of
2123 the buffer and not the currently terminating NUL byte.
2126 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2127 Set to true if locking failed.
2128 (getutid_r_file): Adjust caller.
2129 (pututline_file): Likewise. Return NULL in this case.
2130 Patch mostly by halesh.s@gmail.com.
2132 2008-08-12 Ulrich Drepper <drepper@redhat.com>
2135 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2137 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2139 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2142 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2143 macro since it is now available in elf/dynamic-link.h.
2145 2008-08-12 Roland McGrath <roland@frob.com>
2147 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2148 in case used outside of libc.
2149 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2151 2008-08-11 Ulrich Drepper <drepper@redhat.com>
2153 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2154 directly instead of going through dn_comp.
2156 2008-08-11 Aurelien Jarno <aurel32@debian.org>
2158 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2159 Fix asm constraints.
2161 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2164 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2165 (IPV6_PMTUDISC_PROBE): Likewise.
2167 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2170 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2172 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
2173 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2176 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2177 Added the members 'vsx' and 'arch_2_06'.
2178 (_dl_powerpc_platforms): Add the member 'power7'.
2179 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2180 to reflect the changes required by VSX and ISA 2.06.
2181 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2183 Defined PPC_PLATFORM_POWER7.
2184 (_dl_string_platform): Add support for POWER7.
2185 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2186 capability and ISA 2.06.
2188 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2191 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2192 macro to detect use of 128 bit long double.
2193 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2195 2008-08-05 Ulrich Drepper <drepper@redhat.com>
2197 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2200 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2202 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2203 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2205 2008-08-03 Ulrich Drepper <drepper@redhat.com>
2207 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2208 guaranteed to be large enough to read inotify event. Ignore
2209 EAGAIN error. Better error message. Add branch predicition.
2210 (main_loop_epoll): Likewise.
2212 2008-08-02 Roland McGrath <roland@frob.com>
2214 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2215 Add memory clobbers.
2217 2008-08-02 Ulrich Drepper <drepper@redhat.com>
2219 * manual/arith.texi: Avoid @strong{Note:}.
2220 * manual/creature.texi: Likewise.
2221 * manual/filesys.texi: Likewise.
2222 * manual/math.texi: Likewise.
2223 * manual/memory.texi: Likewise.
2224 * manual/resource.texi: Likewise.
2225 * manual/syslog.texi: Likewise.
2226 * manual/time.texi: Likewise.
2228 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2231 2008-08-01 Ulrich Drepper <drepper@redhat.com>
2233 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2234 new epoll_create1 interface.
2235 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2236 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2237 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2239 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2240 (NS_GET32): Likewise.
2242 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2245 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2246 use the AT_EXECFN value if it is no absolute path.
2247 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2250 * Versions.def: Add GLIBC_2.9 to libresolv.
2251 * include/resolv.h: Remove hidden proto declarations for __ns_*
2252 functions. Add them for __dn_count_labels and __p_secstodate.
2253 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2254 Define ns_msg_getflags macro here.
2255 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2257 * resolv/Versions: Export functions from <arpa/nameser.h> from
2258 libresolv in version GLIBC_2.9.
2259 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2261 * resolv/ns_netint.c: Likewise.
2262 * resolv/ns_parse.c: Likewise.
2263 * resolv/ns_print.c: Likewise.
2264 * resolv/ns_samedomain.c: Likewise.
2265 * resolv/ns_ttl.c: Likewise.
2266 * resolv/arpa/nameser_compat.h: Likewise.
2267 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2269 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2270 instead of ns_get16.
2271 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2272 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2273 (gaih_getanswer_slice): Likewise.
2274 * resolv/Makefile (libresolv-routines): Add ns_date.
2275 * resolv/ns_date.c: New file.
2277 * elf/Makefile (check-localplt.out): Also check libresolv and
2280 2008-07-31 Ulrich Drepper <drepper@redhat.com>
2282 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2285 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2287 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2288 buffer passed to NSS functions.
2290 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2292 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2295 * misc/syslog.c (openlog_internal): Fix compile problem.
2297 2008-07-28 Roland McGrath <roland@redhat.com>
2299 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2301 2008-07-28 Ulrich Drepper <drepper@redhat.com>
2303 * io/ftw.c (add_object): Remove inline to avoid warning.
2305 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2307 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2308 Use it instead of locally defined resplen2 variable.
2309 (res_nsend): Adjust for __libc_res_nsend interface change.
2310 (send_vc): Initialize *resplen2 if necessary. Read length of
2311 package into an appropriately aligned variable. Store converted length
2312 in new variable and use it appropriately.
2313 Add branch prediction help.
2314 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2315 and pass it on to __libc_res_nsend. Adjust all callers.
2316 (__libc_res_nsearch): Likewise.
2317 (__libc_res_nqeurydomain): Likewise.
2318 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2320 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2321 Define resplen2 variable and pass it to __libc_res_nsearch and then
2323 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2324 Add branch prediction.
2325 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2326 (gaih_getanswer): Don't decode second slice if first one failed due
2327 to a too small buffer. Don't let not found status of second
2328 decoder shadow results of the first.
2329 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2330 and __libc_res_nquery interface changes
2331 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2332 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2333 __libc_res_nsearch, and __libc_res_nsend.
2334 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2336 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2337 __libc_res_nsearch interface changes.
2339 2008-07-27 Ulrich Drepper <drepper@redhat.com>
2341 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2343 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2344 file descriptors with close-on-exec set.
2345 (exec_comm_child): Fix the case where the write end of the pipe is
2346 STDOUT_FILENO already. In case it is, clear close-on-exec.
2348 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2349 * io/pipe2.c: Likewise.
2350 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2351 instead of __ASSUME_PACCEPT.
2352 * include/unistd.h: Declare __have_pipe2.
2353 * libio/iopopen.c: Implement "e" flag.
2354 * libio/Makefile (tests): Add tst-popen1.
2355 * libio/tst-popen1.c: New file.
2357 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2358 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2360 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2363 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2364 success call of _IO_SEEKOFF or calls which failed because the
2365 descriptor is for a pipe.
2367 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2370 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2372 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2373 F_SETFD use if we know fopen set the flag.
2375 * login/utmp_file.c (setutent_file): Minor optimization in case
2376 O_CLOEXEC is available.
2378 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2380 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2381 * elf/Makefile: Use pie-ccflag variable.
2382 * nscd/Makefile: Likewise.
2383 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2385 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2388 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2389 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2390 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2391 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2392 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2393 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2394 utmp32, utmpx32 and login32.
2395 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2396 versions of struct utmp functions to libc and libutil.
2397 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2398 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2399 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2400 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2401 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2402 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2403 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2404 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2405 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2406 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2407 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2408 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2409 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2410 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2411 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2412 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2413 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2414 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2415 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2416 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2417 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2418 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2420 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2422 * scripts/gen-as-const.awk: Generate more widely usable code by
2423 using 64-bit arithmetic.
2425 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2426 the same treatment as narrow output code in last patch.
2428 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2431 * elf/dl-load.c (local_strdup): Remove inline.
2432 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2433 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2436 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2438 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2440 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2441 the new syscalls, too.
2443 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2444 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2447 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2448 parameter for end of buffer. If temporary copy is too large use
2450 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2452 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2453 string rewrite when allocating buffer.
2455 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2458 * nscd/connections.c (nscd_init): Clean up fcntl call.
2460 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2461 SOCK_NONBLOCK if possible.
2463 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2464 SOCK_CLOEXEC if available.
2466 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2467 __libc_clntudp_bufcreate_internal.
2468 * include/sys/socket.h: Declare __have_sock_cloexec.
2469 * socket/Makefile (aux): Add have_sock_cloexec.
2470 * socket/have_sock_cloexec.c: New file.
2471 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2472 __libc_clntudp_bufcreate.
2473 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2474 which takes an additional parameter. Create socket with non-blocking
2475 mode and close-on-exec flag set, if wanted.
2476 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2477 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2478 instead of clntudp_create. The socket has already the close-on-exec
2479 flag set if SOCK_CLOEXEC is defined.
2481 2008-07-24 Ulrich Drepper <drepper@redhat.com>
2483 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2484 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2486 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2487 non-blocking mode by using socket, paccept, and inotify_init1.
2489 * Versions.def (glibc): Add GLIBC_2.9.
2490 * io/Makefile (routines): Add dup3 and pipe2.
2491 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2492 * io/dup3.c: New file.
2493 * io/pipe2.c: New file.
2494 * posix/unistd.h: Declare dup3 and pipe2.
2495 * socket/Makefile (routines): Add paccept.
2496 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2497 * socket/paccept.c: New file.
2498 * socket/sys/socket.h: Declare paccept.
2499 * sysdeps/unix/syscalls.list: Add entry for dup3.
2500 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2501 epoll_create2 and inotify_init1.
2502 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2503 * sysdeps/unix/sysv/linux/paccept.c: New file.
2504 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2506 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2507 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2508 inotify_init1, and pipe2 entries.
2509 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2510 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2511 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2512 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2513 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2514 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2516 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2517 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2518 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2519 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2520 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2521 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2522 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2523 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2524 EPOLL_NONBLOCK. Declare epoll_create2.
2525 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2527 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2528 IN_NONBLOCK. Declare inotify_init1.
2529 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2531 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2534 * elf/elf.h: Define AT_EXECFN.
2535 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2537 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2538 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2539 if __ASSUME_AT_EXECFN is defined.
2540 (_dl_aux_init): Handle AT_EXECFN.
2541 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2543 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2544 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2545 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2546 _dl_execfn if available and avoid compatibility code if
2547 __ASSUME_AT_EXECFN is defined.
2549 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2550 _dl_discover_osversion only for older kernels.
2552 2008-07-22 Roland McGrath <roland@frob.com>
2554 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2556 2008-07-21 Roland McGrath <roland@frob.com>
2558 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2559 returned too much data out of line.
2561 2008-07-20 Ulrich Drepper <drepper@redhat.com>
2563 * locale/setlocale.c (setname): Remove inline to avoid compiler
2567 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2569 2008-07-15 Ulrich Drepper <drepper@redhat.com>
2571 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2572 doesn't manage to write anything, fail.
2574 * malloc/hooks.c (__malloc_check_init): Remove printf.
2576 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2578 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2580 2008-07-12 Ulrich Drepper <drepper@redhat.com>
2582 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2584 (main_loop_epoll): Likewise.
2586 2008-07-09 Ulrich Drepper <drepper@redhat.com>
2588 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2590 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2591 if DEBUG is defined.
2593 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2594 query. Adjust buffer size computation for padding.
2596 2008-07-08 Ulrich Drepper <drepper@redhat.com>
2598 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2599 * stdio-common/tst-setvbuf1.c: New file.
2600 * stdio-common/tst-setvbuf1.expect: New file.
2603 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2604 when selecting fully-buffered stream.
2605 Patch by Wang Xin <wxinee@gmail.com>.
2607 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2609 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2610 (__open_2): New function.
2611 (__open64_2): New alias to __open_2.
2612 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2613 (__openat_2): New function.
2614 (__openat64_2): New alias to __openat_2.
2616 2008-07-06 Ulrich Drepper <drepper@redhat.com>
2619 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2621 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2623 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2624 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2625 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2627 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2628 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2629 * sysdeps/mach/hurd/send.c (__send): Likewise.
2630 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2631 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2633 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2635 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2636 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2637 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2638 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2639 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2640 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2642 2008-06-27 Ulrich Drepper <drepper@redhat.com>
2645 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2647 Patch by Petr Baudis.
2649 2008-06-26 Ulrich Drepper <drepper@redhat.com>
2651 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2652 Patch by Peter Jones <pjones@redhat.com>.
2654 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2657 * stdlib/canonicalize.c (__realpath): readlink can write too much
2658 into the buffer on platforms without PATH_MAX.
2660 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2663 * posix/tst-regex.c (main): Rename to...
2664 (do_test): ... this. Remove cmdline option processing.
2666 (TEST_FUNCTION): Define.
2667 (CMDLINE_OPTIONS): Define.
2669 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2672 * configure.in: Add -Werror to -fstack-protector test to catch
2673 unsupported architectures.
2674 Patch by Gilles Esponasse <g.esp@free.fr>.
2676 2008-06-17 Joseph Myers <joseph@codesourcery.com>
2678 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2679 getcontext returns ENOSYS.
2681 2008-06-18 Ulrich Drepper <drepper@redhat.com>
2683 * nscd/connections.c (main_loop_poll): Fix test for read error.
2684 (main_loop_epoll): Likewise.
2686 2008-06-13 Ulrich Drepper <drepper@redhat.com>
2688 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2689 better place so it is not called when nscd is used.
2691 * nscd/connections.c: Also recognize and handle changes to the
2692 resolver configuration file.
2694 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2696 * time/strftime.c: Pass reference to tzset_called around to handle
2700 * time/strftime.c (__strftime_internal): Call tzset() only
2701 when printing timezone-dependent values.
2702 Based on a patch by Petr Baudis <pasky@suse.cz>.
2704 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2705 unconditionally use second gaih_getanswer_slice result.
2707 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2708 (getaddrinfo): RES must always be non-NULL.
2710 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2712 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2714 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2715 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2717 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2720 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2722 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2724 * nscd/connections.c (inotify_fd): New variable.
2725 (nscd_init): Try to open an inotify descriptor.
2726 If successful, watch files for databases using inotify instead of
2727 having prune threads stat the files.
2728 (nscd_run_prune): Recognize clear_cache flag being set and call
2729 prune_cache appropriately.
2730 (main_loop_poll): Add inotify descriptor to wait set and handle the
2732 (main_loop_epoll): Likewise.
2733 * nscd/cache.c (prune_cache): Don't stat files for databases if
2735 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2736 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2738 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2739 fixed-size portion of the record.
2740 * nscd/servicescache.c (cache_addserv): Likewise.
2741 * nscd/pwdcache.c (cache_addpw): Likewise.
2742 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2744 2008-06-11 Ulrich Drepper <drepper@redhat.com>
2746 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2747 out we don't use uninitialized memory.
2749 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2752 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2754 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2755 ignore T_DNAME messages.
2756 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2758 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2760 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2761 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2763 2008-06-03 Jakub Jelinek <jakub@redhat.com>
2765 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2766 instead of portstr to nscd_getserv_r. Patch by
2767 Roman Kagan <rkagan@mail.ru>.
2769 2008-05-26 Jim Meyering <meyering@redhat.com>
2771 Remove more useless "if" tests before "free".
2772 * include/inline-hashtab.h (htab_delete): Likewise.
2773 * libio/freopen.c (freopen): Likewise.
2774 * libio/freopen64.c (freopen64): Likewise.
2775 * locale/programs/ld-collate.c (collate_read): Likewise.
2776 * misc/fstab.c (libc_freeres_fn): Likewise.
2777 * posix/glob.c (globfree): Likewise.
2779 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2781 * string/Makefile (strop-tests): Add memmem.
2782 * string/test-memmem.c: New file.
2783 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2784 (test_init): Size buf1 according to BUF1PAGES.
2786 2008-05-24 Jakub Jelinek <jakub@redhat.com>
2788 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2789 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2790 (CFLAGS-scanf17.c): New.
2791 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2792 * stdio-common/scanf15.c (main): Likewise.
2793 * stdio-common/scanf16.c: New file.
2794 * stdio-common/scanf17.c: New file.
2796 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2798 * resolv/res_send.c (send_dg): If we already have one of two
2799 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2800 use the one answer insted of failing.
2802 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2804 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2805 being executed on PowerPC as the expected result exceeds IBM
2806 long double 128 __LDBL_MAX__.
2808 2008-05-21 Roland McGrath <roland@redhat.com>
2810 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2812 * Makefile (check-data): Use $(abi-name) before other guesses.
2813 Look in $(add-ons) dirs before scripts/data/.
2814 * elf/Makefile (check-data): Likewise.
2816 * scripts/soversions.awk: Grok ABI line.
2817 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2818 Emit definition for abi-name variable.
2820 2008-05-21 Ulrich Drepper <drepper@redhat.com>
2822 * string/endian.h: Define new fixed-size hto* and *toh macros only
2825 * iconvdata/Depend: Add localedata.
2827 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2829 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2831 2008-05-08 David S. Miller <davem@davemloft.net>
2833 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2835 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2836 (__SYSCALL_CLOBBERS): Remove %g* registers.
2837 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2838 (__SYSCALL_CLOBBERS): Likewise.
2839 * scripts/data/localplt-sparc-linux-gnu.data: New file.
2840 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2842 2008-05-21 Jakub Jelinek <jakub@redhat.com>
2844 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2845 (CALL_ERRNO_LOCATION): Define.
2846 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2847 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2848 (CALL_ERRNO_LOCATION): Define.
2849 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2850 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2851 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2853 2008-05-20 Ulrich Drepper <drepper@redhat.com>
2855 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2858 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2860 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2861 (FIRST_FRAME_POINTER): Define.
2863 2008-05-09 David S. Miller <davem@davemloft.net>
2865 * sysdeps/sparc/sparc64/backtrace.c: New file.
2867 2008-05-14 David S. Miller <davem@davemloft.net>
2869 * sysdeps/sparc/machine-gmon.h: New file.
2870 * sysdeps/sparc/sparc-mcount.S: Likewise.
2871 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2872 sysdep_routines in gmon directory.
2874 2008-05-19 Jakub Jelinek <jakub@redhat.com>
2876 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2878 2008-05-19 Ulrich Drepper <drepper@redhat.com>
2880 * resolv/res_query.c (__libc_res_nquery): In case one of two
2881 answer was too short don't try to read that answer's header.
2883 * resolv/res_send.c (send_dg): In case of timeout and there are
2884 two queries and one has been answered, return value indicating
2887 2008-05-18 Ulrich Drepper <drepper@redhat.com>
2889 * nscd/cache.c (cache_add): Take additional parameter specifying
2890 whether this is in response of a cache refill. Check alignment
2891 of package data. Revamp waking of pruning thread.
2892 (prune_cache): Small optimization.
2893 * nscd/nscd.h: Adjust cache_add prototypes.
2894 * nscd/aicache.c: Adjust cache_add calls.
2895 * nscd/grpcache.c: Likewise.
2896 * nscd/hstcache.c: Likewise.
2897 * nscd/initgrcache.c: Likewise.
2898 * nscd/pwdcache.c: Likewise.
2899 * nscd/servicescache.c: Likewise.
2900 * nscd/connections.c (restart): Really disable cache use before
2901 exec attempt. If it fails, reenable cache.
2902 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2903 time to max to be able to notice concurrent cache additions. Unlock
2904 prune_lock while performing gc. Afterwards compute wakeup time with
2905 current wakeup_time value in mind.
2907 2008-05-17 Ulrich Drepper <drepper@redhat.com>
2909 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2911 * nscd/mem.c (gc): Correctly determine highest used array element
2914 * nscd/mem.c (markrange): Add assert to check entries are all
2915 aligned. Small cleanup in bitmap use.
2917 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2918 blockoff of type nscd_ssize_t.
2919 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2920 (mempoll_alloc): Record block offset and not address.
2922 * nscd/mem.c (gc): Fix test for stack overuse.
2924 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2927 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2928 entry is available, believe it.
2930 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2931 no answers return NSS_STATUS_NOTFOUND.
2932 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2933 buffer does not have any content.
2935 2008-05-16 Ulrich Drepper <drepper@redhat.com>
2937 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2939 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2940 lookup, don't assign canon unconditionally.
2942 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2944 * string/Makefile (distribute): Add str-two-way.h.
2946 2008-03-29 Eric Blake <ebb9@byu.net>
2948 Rewrite string searches to O(n) rather than O(n^2).
2949 * string/str-two-way.h: New file. For linear fixed-allocation
2951 * string/memmem.c: New implementation.
2952 * string/strstr.c: New implementation.
2953 * string/strcasestr.c: New implementation.
2955 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
2957 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2959 (calc_first): Initialize constraint field.
2960 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2961 Use search_duplicated_node to avoid loops. Fix grammar.
2962 (duplicate_node): Merge constraint field for all node types.
2963 (calc_eclosure_iter): Look at constraint field for all node types.
2964 * posix/regex_internal.c (create_cd_newstate): Don't look at
2967 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2970 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2973 * string/endian.h: Add macros for fixed-size endian conversion.
2974 * bits/byteswap.h: Allow inclusion from <endian.h>.
2975 * sysdeps/i386/bits/byteswap.h: Likewise.
2976 * sysdeps/ia64/bits/byteswap.h: Likewise.
2977 * sysdeps/s390/bits/byteswap.h: Likewise.
2978 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2979 * string/Makefile (tests): Add tst-endian.
2980 * string/tst-endian.c: New file.
2982 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2983 Patch by Reuben Thomas.
2985 2008-05-14 Joseph Myers <joseph@codesourcery.com>
2987 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2989 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2991 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2994 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2996 (BODY for __gconv_transform_internal_ascii): Likewise.
2999 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3000 to be treated like link-local addresses.
3001 (match_prefix): Don't treat IPv4 loopback address special when
3002 converting to v4 mapped addressed.
3004 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3006 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3007 * posix/tst-rfc3484-2.c: Likewise.
3008 * posix/tst-rfc3484-3.c: Likewise.
3010 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3013 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3015 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3017 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3019 2008-05-13 Ulrich Drepper <drepper@redhat.com>
3021 * po/lt.po: New file. From Lituanian translation team.
3023 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
3025 Introduce TLS descriptors for i386 and x86_64.
3026 * include/inline-hashtab.h: New file, copied from 2005's
3027 libiberty, with fix for memory leak imported afterwards by
3028 Glauber de Oliveira Costa.
3029 * elf/tlsdeschtab.h: New file.
3030 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3031 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3032 (CHECK_STATIC_TLS): Move to...
3033 * elf/dynamic-link.h: ... this file.
3034 (TRY_STATIC_TLS): New macro.
3035 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3036 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3037 R_386_TLS_DESC): Define.
3038 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3040 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3041 R_X86_64_TLSDESC): Define.
3042 (R_386_NUM, R_X86_64_NUM): Adjust.
3043 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3044 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3045 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3046 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3047 release tlsdesc_table.
3048 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3049 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3050 (elf_machine_rel): Handle R_386_TLS_DESC.
3051 (elf_machine_rela): Likewise.
3052 (elf_machine_lazy_rel): Likewise.
3053 (elf_machine_lazy_rela): Likewise.
3054 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3055 * sysdeps/i386/dl-tlsdesc.S: New file.
3056 * sysdeps/i386/dl-tlsdesc.h: New file.
3057 * sysdeps/i386/tlsdesc.c: New file.
3058 * sysdeps/i386/tlsdesc.sym: New file.
3059 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3061 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3062 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3063 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3064 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3065 release tlsdesc_table.
3066 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3067 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3068 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3069 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3070 (elf_machine_rela): Likewise.
3071 (elf_machine_lazy_rel): Likewise.
3072 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3073 (__tls_get_addr): Do not declare for non-shared compiles.
3074 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3075 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3076 * sysdeps/x86_64/tlsdesc.c: New file.
3077 * sysdeps/x86_64/tlsdesc.sym: New file.
3078 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3079 tlsdesc_table for both 32- and 64-bit structs.
3081 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3083 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3084 its own function. This reduces the frame setup costs and more.
3086 2008-02-11 Joseph Myers <joseph@codesourcery.com>
3089 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3090 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3092 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3094 * io/openat.c (__openat_2): Also pass fd to __openat.
3095 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3096 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3098 * string/tester.c (test_memcmp): Add a few more tests.
3099 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3101 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3103 * nscd/cache.c (cache_add): Before returning with failure and this
3104 is the first use of the record, mark it as unusable.
3105 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3106 reporting a failure.
3107 * nscd/grpcache.c: Likewise
3108 * nscd/hstcache.c: Likewise.
3109 * nscd/initgrcache.c: Likewise.
3110 * nscd/pwdcache.c: Likewise.
3111 * nscd/servicescache.c: Likewise.
3113 2008-05-10 Roland McGrath <roland@redhat.com>
3116 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3118 2008-05-08 David S. Miller <davem@davemloft.net>
3120 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3122 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3123 (__ieee754_y0l): Likewise.
3124 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3125 (__ieee754_y1l): Likewise.
3126 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3127 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3128 frexpl and ldexpl. math_private.h provides them and the latter
3130 (__log1pl): Use __frexpl.
3132 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3134 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3136 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3137 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3138 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3139 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3141 (_nss_nis_gethostbyname4_r): New function.
3142 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3143 Change to also handle af==AF_UNSPEC.
3144 (get_tablename): New function. Use it to avoid duplication.
3145 (_nss_nisplus_gethostbyname4_r): New function.
3146 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3148 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3149 * nss/nss.h: Define struct gaih_addrtuple.
3150 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3152 (_nss_files_gethostbyname4_r): New function.
3153 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3154 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3156 * resolv/res_query.c (__libc_res_nquery): Take two additional
3157 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3158 look up IPv4 and IPv6.
3160 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3161 for an additional query and answer buffer. Pass to send_vc and
3163 (send_vc): Send possibly two requests and receive two answers.
3164 (send_dg): Likewise.
3165 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3167 (_nss_dns_gethostbyname4_r): New function.
3168 (gaih_getanswer_slice): Likewise.
3169 (gaih_getanswer): Likewise.
3170 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3171 __libc_res_nquery call.
3172 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3173 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3174 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3177 2008-05-05 David S. Miller <davem@davemloft.net>
3179 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3180 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3182 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3184 Fix termios bit macros.
3185 Move *DLY definitions where they belong, in termios.h.
3186 Add *[0-3] definitions.
3187 Fixes confusion between VT and FF.
3188 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3189 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3190 are already defined to avoid collision with termios.h.
3191 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3192 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3193 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3194 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3195 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3196 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3197 VTDLY, VT0, VT1): New macros.
3198 [__USE_GNU] (OLCUC): Change value of macro.
3199 [__USE_XOPEN] (OFILL): New macro.
3200 [__USE_BSD] (CRTSCTS): Change value.
3201 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3202 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3203 (B7200, B14400, B28800, B76800): New macros.
3205 2008-05-01 David S. Miller <davem@davemloft.net>
3207 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3208 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3209 (gen-as-const-headers): Add it.
3210 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3211 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3212 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3213 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3215 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3216 six system call parameters.
3217 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3219 2008-04-30 Ulrich Drepper <drepper@redhat.com>
3221 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3223 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3224 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3226 2008-04-30 Jakub Jelinek <jakub@redhat.com>
3228 * stdlib/tst-setcontext.c: Include unistd.h.
3230 2008-04-25 David S. Miller <davem@davemloft.net>
3232 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3233 Pass "union semun" properly in to sys_ipc, it must be passed
3234 by value, not by reference.
3236 2008-04-22 Jakub Jelinek <jakub@redhat.com>
3238 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3239 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3240 * nscd/connections.c (mem_in_flight): Likewise.
3242 * nscd/nscd.h (dbs): Make hidden.
3244 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3245 Avoid returning -1, return 0 instead.
3247 2008-04-19 Ulrich Drepper <drepper@redhat.com>
3249 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3251 2008-04-15 Ulrich Drepper <drepper@redhat.com>
3254 * sysdeps/unix/sysv/linux/times.c: New file.
3257 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3258 mem_in_flight_list variables. Add new parameter to mempool_alloc
3260 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3261 appropriate mem_in_flight element.
3262 (gc): Take allocations which have not yet been committed to the
3263 database into account.
3264 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3265 Reset mem_in_flight before returning.
3266 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3267 cue it up in mem_in_flight_list.
3268 * nscd/aicache.c: Adjust mempool_alloc call.
3269 * nscd/grpcache.c: Likewise.
3270 * nscd/hstcache.c: Likewise.
3271 * nscd/initgrcache.c: Likewise.
3272 * nscd/pwdcache.c: Likewise.
3273 * nscd/servicescache.c: Likewise.
3274 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3277 * nscd/connections.c (handle_request): Provide better error message
3278 in case SELinux forbids the service.
3280 * version.h (VERSION): Bump to 2.8.90.
3282 2008-04-17 Jakub Jelinek <jakub@redhat.com>
3284 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3286 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3288 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3289 Also use for 32-bit.
3290 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3291 __nextafter instead of nextafter to avoid local PLT.
3292 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3293 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3295 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3297 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3299 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3300 <fenv_libc.h> instead of <fenv.h>.
3301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3304 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3306 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3307 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3308 function from fegetexcept and make old name weak alias.
3309 * include/fenv.h: Declare __fegetexcept.
3310 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3312 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3313 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3315 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3316 instead of frexpl to avoid local PLT.
3317 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3318 ilogbl to avoid local PLT.
3319 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3320 instead of ldexpl to avoid local PLT.
3321 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3322 __roundl not roundl to avoid local PLT.
3323 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3324 local PLTs. Use __sincosl instead of separate sinl and cosl
3326 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3328 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3329 version for ppc64 to 2.4.21 since without it makecontext will fail.
3331 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3333 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3335 [__powerpc64__] (TLS_GD): Likewise.
3337 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3340 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3341 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3343 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3344 Likewise. Also account for when x is an odd number between 2^52
3346 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3347 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3348 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3349 detect aforementioned erroneous conditions.
3351 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3353 * configure.in: Check for -fno-section-anchors in addition to
3354 -fno-toplevel-reorder.
3356 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3358 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3360 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3362 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3363 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3364 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3365 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3367 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3370 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3371 * time/alt_digit.c: Likewise.
3372 * wcsmbs/wcsmbsload.c: Likewise.
3374 2008-04-10 Ulrich Drepper <drepper@redhat.com>
3376 * version.h (VERSION): Bump to 2.8.
3378 * timzeone/asia: Update from tzdata2008b.
3379 * timezone/backward: Likewise.
3380 * timezone/europe: Likewise.
3381 * timezone/northamerica: Likewise.
3382 * timezone/southamerica: Likewise.
3383 * timezone/iso3166.tab: Likewise.
3384 * timezone/leapseconds: Likewise.
3385 * timezone/zone.tab: Likewise.
3386 * timezone/private.h: Update from tzcode2008a.
3387 * timezone/zdump.c: Likewise.
3388 * timezone/zic.c: Likewise.
3390 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3393 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3394 Define additonal Data Cache Block instruction macros.
3395 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3396 Replace dcbst with dcbf and sync with sync/isync.
3398 2008-02-21 Alan Modra <amodra@bigpond.net.au>
3400 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3401 Always set ELF_RTYPE_CLASS_PLT.
3402 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3404 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3406 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3407 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3408 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3409 For ISA 2.01 and later replace mftb with mfspr 268.
3411 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3414 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3415 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3417 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3420 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3421 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3422 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3423 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3425 2008-04-10 Jakub Jelinek <jakub@redhat.com>
3427 * stdlib/tst-makecontext.c (othervar): New variable.
3428 (cf): Test sign extending the argument to long.
3430 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3432 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3433 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3434 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3435 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3436 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3437 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3438 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3440 2008-02-22 Alan Modra <amodra@bigpond.net.au>
3442 * elf/Makefile (tests): Substitute tests-vis-yes here.
3443 (tests-vis-yes): Delete.
3444 (modules-name, modules-vis-yes): Similarly.
3446 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3449 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3450 Preserve sign in signgamp when x is zero.
3452 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3454 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3455 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3456 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3457 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3458 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3459 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3461 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3464 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3468 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3469 a reserved error value.
3471 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3472 value to check for correct sign extension.
3475 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3476 Copy 64-bit parameter values even though this is not required in
3479 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3482 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3484 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3487 2008-04-09 Jakub Jelinek <jakub@redhat.com>
3489 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3491 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3494 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3495 in line-buffered stream failed.
3496 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3498 2008-04-08 Ulrich Drepper <drepper@redhat.com>
3501 * scripts/abi-versions.awk: If the version specified by
3502 --enable-oldest-abi is older than the first version for this
3503 architecture, use the default version.
3505 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3506 as well when ignoring the whole category.
3508 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3511 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3512 ETHERTYPE_* definitions.
3513 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3515 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3517 * stdlib/mbtowc.c (__no_r_state): Remove.
3518 (mbtowc): New static state variable. Use it instead of
3520 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3521 (__wctomb_state): New hidden variable.
3522 (wctomb): Use __wctomb_state instead of __no_r_state.
3523 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3524 (__wctomb_state): New extern decl.
3525 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3527 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3530 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3532 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3534 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3536 2008-04-06 Ulrich Drepper <drepper@redhat.com>
3538 * po/nl.po: Update from translation team.
3540 2008-03-31 Ulrich Drepper <drepper@redhat.com>
3543 * string/strfry.c: Handle empty strings again.
3545 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3548 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3549 before looking for translation.
3550 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3551 * locale/freelocale.c: Likewise.
3552 * locale/newlocale.c: Likewise.
3553 * locale/setlocale.c: Likewise.
3554 Based partially on a patch by ryo@np.css.fujitsu.com.
3556 2008-03-30 Jakub Jelinek <jakub@redhat.com>
3558 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3559 acquiring wrlock. Do conv_tab allocation while holding lock.
3560 * intl/Makefile: Add rules to build and run tst-gettext6.
3561 * intl/tst-gettext6.c: New test.
3562 * intl/tst-gettext6.sh: New file.
3564 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3566 * po/nl.po: Update from translation team.
3568 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3569 provided through st_blksize, try the default size before giving up.
3571 2008-03-29 Ulrich Drepper <drepper@redhat.com>
3573 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3576 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3578 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3579 error message. POSIX today does not require the messages to be in
3580 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3583 * sunrpc/auth_unix.c: Unify printed strings.
3584 * sunrpc/clnt_tcp.c: Likewise.
3585 * sunrpc/clnt_udp.c: Likewise.
3586 * sunrpc/clnt_unix.c: Likewise.
3587 * sunrpc/svc_tcp.c: Likewise.
3588 * sunrpc/svc_udp.c: Likewise.
3589 * sunrpc/svc_unix.c: Likewise.
3590 * sunrpc/xdr.c: Likewise.
3591 * sunrpc/xdr_array.c: Likewise.
3592 * sunrpc/xdr_rec.c: Likewise.
3593 * sunrpc/xdr_ref.c: Likewise.
3594 * locale/programs/ld-time.c (time_finish): Unify messages.
3595 * locale/programs/locfile.c (handle_copy): Fix typo.
3596 * nscd/nscd.c (options): Fix typo.
3599 * stdlib/strtod_l.c: Use correct sign for result in one more
3601 Patch by Eric Blake <ebb9@byu.net>.
3603 2008-03-27 Jakub Jelinek <jakub@redhat.com>
3605 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3606 and creat system calls.
3607 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3609 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3612 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3613 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3615 2008-03-27 Ulrich Drepper <drepper@redhat.com>
3617 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3618 <linux/limits.h> has defined it.
3619 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3620 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3622 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3623 it instead of ARG_MAX.
3625 2008-03-25 Jakub Jelinek <jakub@redhat.com>
3627 * posix/gai.conf: Fix comment for scope nullbits.
3628 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3629 default to 128 bits for v4 mapped addresses.
3631 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3633 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3634 ptrace call to get the ieee_instruction_pointer from the kernel.
3635 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3636 ptrace call to set the ieee_instructtion_pointer.
3637 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3638 Add comment that ieee_instruction_pointer is always 0.
3640 2008-03-09 Andreas Jaeger <aj@suse.de>
3643 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3644 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3645 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3647 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3648 (rint_test): Likewise.
3650 2008-03-24 Ulrich Drepper <drepper@redhat.com>
3652 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3654 (__nisfind_server): Similar for open readColdStartFile call.
3655 Patch partially by Jim Meyering.
3656 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3657 around internal_setent call.
3659 * po/vi.po: New Vietnamese translation.
3661 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3664 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3665 remove CLONE_STOPPED.
3667 2008-02-10 Jim Meyering <meyering@redhat.com>
3669 Remove useless "if" before "free":
3670 * elf/ldconfig.c (parse_conf_include): Likewise.
3671 * gmon/gmon.c (weak_alias): Likewise.
3672 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3673 * inet/rcmd.c (__validuser2_sa): Likewise.
3674 * intl/bindtextdom.c (set_binding_values): Likewise.
3675 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3676 * libio/genops.c (save_for_backup): Likewise.
3677 * libio/wgenops.c (save_for_wbackup): Likewise.
3678 * locale/programs/ld-collate.c (collate_read): Likewise.
3679 * locale/programs/linereader.c (get_string): Likewise.
3680 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3681 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3682 * resolv/res_debug.c (do_section): Likewise.
3683 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3684 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3685 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3686 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3687 * time/tzset.c (tzset_internal): Likewise.
3689 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3691 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3694 2008-03-11 Ulrich Drepper <drepper@redhat.com>
3697 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3698 not stream for output file. Open output file here.
3699 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3700 and output file name.
3701 (process_fd): Likewise.
3702 (process_file): Likewise.
3703 (main): Adjust callers of changed functions.
3704 * iconv/iconv_prog.h: Adjust prototype.
3706 2008-03-09 Andreas Jaeger <aj@suse.de>
3709 * sysdeps/ia64/ieee754.h: Use protected namespace
3710 __BIG_ENDIAN/__LITTLE_ENDIAN.
3711 * sysdeps/ieee754/ieee754.h: Likewise.
3712 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3714 2008-03-08 Roland McGrath <roland@frob.com>
3716 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3717 ignore a signal that came from a machine exception, treat it as a
3718 fatal core-dump signal instead.
3719 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3721 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3722 Clear DF bit in thread state's eflags.
3723 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3725 2008-03-08 Ulrich Drepper <drepper@redhat.com>
3728 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3729 of NAN(...) sequence.
3730 * stdlib/Makefile (tests): Add tst-strtod6.
3731 * stdlib/tst-strtod6.c: New file.
3733 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3736 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3737 putting offending option character in quotes. Clean up error
3739 * po/be.po: Adjust msgstr in translation file.
3740 * po/bg.po: Likewise.
3741 * po/ca.po: Likewise.
3742 * po/cs.po: Likewise.
3743 * po/da.po: Likewise.
3744 * po/de.po: Likewise.
3745 * po/es.po: Likewise.
3746 * po/fr.po: Likewise.
3747 * po/hr.po: Likewise.
3748 * po/ko.po: Likewise.
3749 * po/nl.po: Likewise.
3750 * po/rw.po: Likewise.
3751 * po/sk.po: Likewise.
3752 * po/sv.po: Likewise.
3753 * po/tr.po: Likewise.
3754 * po/zh_CN.po: Likewise.
3755 * po/zh_TW.po: Likewise.
3758 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3759 Patch by Roland Bless <roland@bless.de>.
3761 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3763 * elf/Makefile (routines): Add dl-sysdep.
3764 (elide-routines.os): Likewise.
3766 2008-03-07 Ulrich Drepper <drepper@redhat.com>
3769 * elf/dl-sysdep.c: Undefine ROUND after use.
3770 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3771 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3772 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3773 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3775 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3776 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3778 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3780 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3781 _dl_tls_get_addr_soft element.
3782 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3783 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3784 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3786 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3787 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3788 of internal_function.
3790 * stdlib/Makefile (aux): Add tens_in_limb.
3791 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3792 * stdlib/tens_in_limb.c: ...here. New file.
3795 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3796 __statfs_chown_restricted.
3797 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3798 for _PC_CHOWN_RESTRICTED.
3799 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3800 Implement __statfs_chown_restricted.
3801 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3802 _POSIX_CHOWN_RESTRICTED value to zero.
3803 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3806 * sysdeps/x86_64/rtld-memset.c: New file.
3808 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
3810 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3812 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3813 Barcelona machine. Make default fall through branch of
3814 __x86_64_preferred_memory_instruction check as the integer code path.
3816 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3818 * sysdeps/x86_64/cacheinfo.c
3819 (__x86_64_preferred_memory_instruction): New variable.
3820 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3822 * sysdeps/x86_64/memset.S: Rewrite.
3824 2008-03-04 Jakub Jelinek <jakub@redhat.com>
3826 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3827 __obstack_printf_chk): New prototypes.
3828 (__vasprintf_chk, __vdprintf_chk,
3829 __obstack_vprintf_chk): Likewise.
3830 Add libc_hidden_proto.
3832 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3833 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3834 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3835 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3836 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3837 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3838 __obstack_vprintf_chk): New prototypes.
3839 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3840 obstack_vprintf): New inlines.
3841 * debug/dprintf_chk.c: New file.
3842 * debug/vdprintf_chk.c: New file.
3843 * debug/asprintf_chk.c: New file.
3844 * debug/vasprintf_chk.c: New file.
3845 * debug/obprintf_chk.c: New file.
3846 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3847 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3848 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3850 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3851 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3852 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3853 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3855 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3856 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3857 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3858 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3859 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3861 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3862 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3863 obstack_vprintf_chk.
3864 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3865 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3866 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3867 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3868 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3869 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3871 2008-03-04 Ulrich Drepper <drepper@redhat.com>
3874 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3875 Patch by Roy Marples <roy@marples.name>.
3878 * malloc/malloc.c: Fix typo in comment.
3881 * locale/iso-639.def: Add Shuswap.
3883 2008-02-25 Jakub Jelinek <jakub@redhat.com>
3886 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3887 overwrite *h_errnop/*errnop values from getanswer_r in case of
3890 2008-03-03 Ulrich Drepper <drepper@redhat.com>
3893 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3894 (verify_persistent_db): Remove one unnecessary test and add a new one
3895 for bad configuration.
3896 (nscd_init): Improve error reported when persistent database cannot
3898 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3899 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3900 .suggested_module and .max_db_size and case config file says the
3902 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3905 * nis/ypclnt.c (yp_order): Fix handling of return value of
3907 Patch by Jeff Moyer <jmoyer@redhat.com>.
3909 * po/fr.po: Update from translation team.
3911 2008-02-22 Andreas Jaeger <aj@suse.de>,
3912 Carlos O'Donell <carlos@systemhalted.org>
3915 * FAQ.in: Describe why glibc needs to be compiled with
3918 2008-02-19 Roland McGrath <roland@redhat.com>
3920 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3922 2008-02-15 Ulrich Drepper <drepper@redhat.com>
3925 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3926 __USE_MISC is defined.
3928 2008-02-10 Ulrich Drepper <drepper@redhat.com>
3930 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3931 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3933 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3934 timerfd_gettime, timerfd_settime.
3935 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3936 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3938 2008-02-08 Roland McGrath <roland@redhat.com>
3940 * elf/elf.h (NT_PPC_SPE): New macro.
3942 2008-02-06 Roland McGrath <roland@redhat.com>
3944 * Makerules ($(common-objpfx)sysd-rules):
3945 Depend on $(sysdep-makeconfigs).
3947 2008-01-31 Roland McGrath <roland@redhat.com>
3950 * configure.in: Use -print-file-name if it yields a directory,
3951 for each of include and include-fixed.
3952 * configure: Regenerated.
3954 * Makeconfig (sysd-rules-targets): New variable.
3955 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3956 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3958 2008-01-30 Roland McGrath <roland@redhat.com>
3960 * manual/libc.texinfo: Update back-cover text.
3962 * elf/elf.h (NT_386_TLS): New macro.
3964 2008-01-29 Roland McGrath <roland@redhat.com>
3966 * Makeconfig (sysd-rules-patterns): New variable.
3967 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3968 (check-inhibit-asm): New canned sequence, replaces ...
3969 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3970 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3971 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3972 (CFLAGS-rtld): Variable removed.
3974 2008-01-24 Roland McGrath <roland@redhat.com>
3976 * configure.in: Let configure fragments set base_os.
3977 * configure: Regenerated.
3979 2008-01-22 Ulrich Drepper <drepper@redhat.com>
3981 * po/ko.po: Update from translation team.
3983 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3985 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3987 2008-01-12 Andreas Jaeger <aj@suse.de>
3990 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3993 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3995 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3996 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3997 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3999 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
4001 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4002 * elf/dl-close.c (_dl_close): Check for it.
4003 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4004 (_dl_allocate_static_tls): Likewise.
4005 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4006 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4008 * elf/tst-tls16.c: New file.
4009 * elf/tst-tlsmod16a.c: New file.
4010 * elf/tst-tlsmod16b.c: New file.
4011 * elf/Makefile: Add rules to build and run tst-tls16.
4013 2008-01-16 Ulrich Drepper <drepper@redhat.com>
4016 * bits/shm.h: Fix comment describing shmid_ds.
4017 * sysdeps/gnu/bits/shm.h: Likewise.
4018 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4019 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4020 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4021 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4022 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4023 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4024 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4025 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4026 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4029 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4031 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4032 additional suffixes.
4033 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4034 Add optional functions mq_timedreceive and mq_timedsend.
4035 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4036 * conform/data/pthread.h-data: Fix prototype of
4037 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4038 * conform/data/semaphore.h-data: Allow time.h definitions.
4039 * conform/data/signal.h-data: Likewise.
4040 * conform/data/stdio.h-data: getw and putw are not required in v6.
4041 * conform/data/stdlib.h-data: Change setstate prototype.
4042 * conform/data/string.h-data: Fix strerror_r prototype.
4043 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4044 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4045 Fix readlink prototype.
4046 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4048 * inet/netinet/in.h: Cleanup namespace.
4049 * posix/regex.h: Likewise.
4050 * resolv/netdb.h: Likewise.
4051 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4052 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4053 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4054 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4055 of names of in in6_addr.
4056 (default_precedence): Likewise.
4057 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4060 2008-01-15 Ulrich Drepper <drepper@redhat.com>
4062 * conform/data/fmtmsg.h-data: Add missing allows.
4063 * conform/data/ftw.h-data: Likewise.
4064 * conform/data/inttypes.h-data: Likewise.
4065 * conform/data/math.h-data: Likewise.
4066 * conform/data/signal.h-data: Likewise.
4067 * conform/data/net/if.h-data: Likewise.
4068 * conform/data/netinet/in.h-data: Likewise.
4069 * conform/data/sys/socket.h-data: Likewise.
4072 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4073 (__strtok_r): Simplify.
4074 * string/tester.c (test_strtok_r): Add test case for futile search
4075 with single-character seach string.
4077 2008-01-12 Ulrich Drepper <drepper@redhat.com>
4079 * po/ko.po: Update from translation team.
4081 2008-01-11 Andreas Jaeger <aj@suse.de>
4084 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4085 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4088 2008-01-10 Ulrich Drepper <drepper@redhat.com>
4090 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4091 native interface lookup in all the relevant places.
4093 2008-01-10 Jakub Jelinek <jakub@redhat.com>
4094 Ulrich Drepper <drepper@redhat.com>
4096 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4097 field. Use sockaddr_in6 for source_addr.
4098 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4099 (match_prefix): Likewise.
4100 (get_label): Likewise.
4101 (get_precedence): Likewise.
4102 (rfc3484_sort): Change to use indirect access to results array.
4103 Adjust to use of sockaddr_in6. Replace service_order test with
4104 simple index comparison.
4105 (getaddrinfo): Define order array. Initialize it. Don't initialize
4106 service_order field. Adjust qsort_t calls. Access sorted result
4107 array indirectly through order array.
4108 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4109 * posix/tst-rfc3484-2.c: Likewise.
4110 * posix/tst-rfc3484-3.c: Likewise.
4112 2008-01-09 Ulrich Drepper <drepper@redhat.com>
4115 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4117 Patch by André Cruz.
4120 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4121 (clnt_spcreateerror): Likewise.
4124 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4125 (public_mEMALIGn): Likewise.
4126 Patch mostly by Daniel Jacobowitz.
4128 2008-01-09 Jakub Jelinek <jakub@redhat.com>
4130 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4131 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4132 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4133 * stdlib/tst-makecontext2.c: New test.
4135 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4137 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4139 (REINIT_PARAMS): Likewise. Undefine before end of file.
4140 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4141 transliteration hooks and REINIT_PARAMS afterwards.
4142 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4144 (REINIT_PARAMS): Define.
4145 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4146 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4147 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4148 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4149 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4150 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4151 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4152 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4153 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4154 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4155 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4156 * iconvdata/tst-iconv7.c: New test.
4158 2008-01-07 Ulrich Drepper <drepper@redhat.com>
4160 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4162 2008-01-05 Jakub Jelinek <jakub@redhat.com>
4165 * nscd/connections.c (restart): Fix condition.
4167 2008-01-03 Jakub Jelinek <jakub@redhat.com>
4169 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4170 __ctype_toupper_loc): Add __THROW.
4172 2008-01-02 Ulrich Drepper <drepper@redhat.com>
4174 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4175 recognition of interface family.
4177 * posix/getconf.c: Update copyright year.
4178 * nss/getent.c: Likewise.
4179 * iconv/iconvconfig.c: Likewise.
4180 * iconv/iconv_prog.c: Likewise.
4181 * elf/ldconfig.c: Likewise.
4182 * catgets/gencat.c: Likewise.
4183 * csu/version.c: Likewise.
4184 * elf/ldd.bash.in: Likewise.
4185 * elf/sprof.c (print_version): Likewise.
4186 * locale/programs/locale.c: Likewise.
4187 * locale/programs/localedef.c: Likewise.
4188 * nscd/nscd.c (print_version): Likewise.
4189 * debug/xtrace.sh: Likewise.
4190 * malloc/memusage.sh: Likewise.
4191 * malloc/mtrace.pl: Likewise.
4192 * debug/catchsegv.sh: Likewise.
4194 2007-12-26 Ulrich Drepper <drepper@redhat.com>
4196 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4199 2007-12-23 Ulrich Drepper <drepper@redhat.com>
4201 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4202 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4204 2007-12-17 Roland McGrath <roland@redhat.com>
4206 * inet/ether_line.c (ether_line): Remove unused variable.
4208 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4210 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4212 * login/openpty.c (openpty): Likewise.
4213 * login/pty.h (openpty, forkpty): Likewise.
4214 * manual/terminal.texi (openpty, forkpty): Likewise.
4216 2007-12-17 Ulrich Drepper <drepper@redhat.com>
4218 * malloc/malloc.c (public_cALLOc): For arenas other than
4219 main_arena, count all bytes inside the mprotect_size range of the
4220 heap as uninitialized.
4222 2007-12-16 Ulrich Drepper <drepper@redhat.com>
4224 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4227 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4228 mTRIm for all of them.
4229 (mTRIm): Additionally iterate over all free blocks and use madvise
4230 to free memory for all those blocks which contain at least one
4232 * malloc/tst-trim1.c: New file.
4233 * malloc/Makefile (tests): Add tst-trim1.
4235 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4237 2007-12-14 Ulrich Drepper <drepper@redhat.com>
4239 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4240 First cast argument to long
4241 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4243 (__vdso_clock_gettime): Likewise.
4244 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4247 2007-12-13 Ulrich Drepper <drepper@redhat.com>
4249 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4250 * locale/nl_langinfo_l.c: Real implementation, copied from
4252 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4254 2007-12-01 Jim Meyering <meyering@redhat.com>
4256 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4257 that would inhibit utf8-optimization of a regexp containing line-
4258 or buffer-anchors, e.g., `^', `$'.
4260 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4262 * time/bug-getdate1.c (do_test): Don't use century values which
4263 aren't valid on 32-bit systems.
4265 2007-12-12 Jakub Jelinek <jakub@redhat.com>
4267 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4268 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4269 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4270 __strcat_g, __strncat_g): Add __asm__.
4272 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4275 * io/fchmodat.c: Fix typo in stub_warning use.
4276 Patch by Petr Salinger.
4278 2007-12-11 Ulrich Drepper <drepper@redhat.com>
4280 * iconvdata/hp-thai8.c: New file.
4281 * iconvdata/Makefile: Add rules for hp-thai8.c.
4282 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4283 * iconvdata/gconv-modules: Likewise.
4286 * iconvdata/hp-greek8.c: New file.
4287 * iconvdata/Makefile: Add rules for hp-greek8.c.
4288 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4289 * iconvdata/gconv-modules: Likewise.
4292 * iconvdata/hp-turkish8.c: New file.
4293 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4294 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4295 * iconvdata/gconv-modules: Likewise.
4297 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4298 (shrink_heap): ... this new function.
4299 (heap_trim): Call shrink_heap instead of grow_heap.
4301 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4302 case don't call alloc_perturb.
4304 2007-12-10 Ulrich Drepper <drepper@redhat.com>
4306 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4308 * sysdeps/unix/sysv/linux/kernel-features.h
4309 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4310 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4312 2007-12-08 Ulrich Drepper <drepper@redhat.com>
4315 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4316 * stdio-common/Makefile (tests): Add bug22.
4317 * stdio-common/bug22.c: New file.
4320 * time/getdate.c: Fix filling in default values.
4321 * time/bug-getdate1.c: New file.
4322 * time/Makefile: Add rules to build and run bug-getdate1.
4324 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4325 * iconvdata/ebcdic-es.c: Likewise.
4326 * iconvdata/ebcdic-es-a.c: Likewise.
4327 * iconvdata/ebcdic-uk.c: Likewise.
4328 * iconvdata/iso8859-16.c: Likewise.
4329 * iconvdata/viscii.c: Likewise.
4330 * iconvdata/iso8859-9e.c: Likewise.
4331 * iconvdata/Makefile: Adjust appropriately.
4334 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4337 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4340 * iconvdata/hp-roman9.c: New file.
4341 * iconvdata/Makefile: Add rules for hp-roman9.c.
4342 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4343 * iconvdata/gconv-modules: Likewise.
4345 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4346 * iconvdata/Makefile: Adjust appropriately.
4349 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4350 structure, it's allocated with alloca.
4351 * stdio-common/Makefile (tests): Add bug21.
4352 * stdio-common/bug21.c: New file.
4354 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4357 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4358 keyword for gcc's braced-groups.
4360 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4363 * inet/ether_line.c: Strip hostname of whitespaces.
4364 * inet/Makefile (tests): Add tst-ether_line.
4365 * inet/tst-ether_line.c: New file.
4367 2007-12-03 Ulrich Drepper <drepper@redhat.com>
4370 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4373 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4375 * stdlib/tst-setcontext.c: Catch the case where the links gets
4376 messed up and we do not reach main again.
4378 * po/ca.po: Update from translation team.
4380 2007-11-26 Ulrich Drepper <drepper@redhat.com>
4382 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4383 * posix/regex.h (REG_ENOSYS): Likewise.
4384 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4386 2007-11-25 Ulrich Drepper <drepper@redhat.com>
4388 * nscd/nscd.h (MAX_STACK_USE): Define.
4389 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4390 (gc): Initialize stack_used based on allocation in prune_cache.
4391 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4392 Clear array before use.
4394 * nscd/aicache.c (addhstaiX): Update statistics counter in case
4395 memory allocation failed.
4396 * nscd/hstcache.c (cache_addhst): Likewise.
4397 * nscd/grpcache.c (cache_addgr): Likewise.
4398 * nscd/servicescache.c (cache_addserv): Likewise.
4399 * nscd/pwdcache.c (cache_addpw): Likewise.
4400 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4402 2007-11-23 Ulrich Drepper <drepper@redhat.com>
4404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4405 and creat system calls.
4407 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4409 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4411 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4413 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4414 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4416 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4417 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4418 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4420 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4422 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4423 strncat): Define as macros to avoid compile errors.
4425 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4428 2007-11-22 Ulrich Drepper <drepper@redhat.com>
4431 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4432 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4433 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4435 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4437 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4438 Return zero in case the thread library is not NPTL.
4441 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4442 initializing interface list.
4445 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4446 use result of nss_getgrgid_r if nothing was found. For other
4447 error return with a failure.
4448 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4450 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4453 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4455 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4456 (get_scope): For IPv4 scope, use scopes table.
4457 (fini): Free scopes table if necessary.
4458 (free_scopelist): New function.
4459 (scopecmp): New function.
4460 (gaiconf_init): Also handle scopev4 entries.
4461 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4462 * posix/tst-rfc3484-2.c (do_test): Likewise.
4463 * posix/gai.conf: Document scopev4 defaults.
4464 * posix/Makefile (tests): Add tst-rfc3484-3.
4465 * posix/tst-rfc3484-3.c: New file.
4467 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4469 * posix/gai.conf: Update for current default tables.
4471 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4473 * po/tr.po: Update from translation team.
4475 2007-11-18 Roland McGrath <roland@frob.com>
4477 * manual/arith.texi (Remainder Functions): Spelling fix.
4478 From Shaun Silk <genix@mysoul.com.au>.
4480 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4482 2007-11-17 Ulrich Drepper <drepper@redhat.com>
4484 * po/zh_CN.po: Update from translation team.
4486 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4487 Add sys/signalfd.h and sys/eventfd.h.
4489 2007-11-15 Bruno Haible <bruno@clisp.org>
4492 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4494 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4495 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4496 it needs only fixed stack space. Delay the initialization of
4497 msgid_len until it is needed.
4499 2007-11-15 Andreas Jaeger <aj@suse.de>
4501 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4502 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4504 2007-11-15 Ulrich Drepper <drepper@redhat.com>
4506 * po/ko.po: Update from translation team.
4508 2007-11-14 Ulrich Drepper <drepper@redhat.com>
4510 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4511 significantly. The device type is also part of the ifinfomsg data.
4513 * po/sv.po: Update from translation team.
4514 * po/nl.po: Likewise.
4516 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4517 to wake up in 24 hours.
4519 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4521 2007-11-13 Ulrich Drepper <drepper@redhat.com>
4523 * po/cs.po: Update from translation team.
4524 * po/pl.po: Likewise.
4526 * include/ifaddrs.h: Remove in6ai_temporary.
4527 (struct in6addrinfo): Add index element.
4528 Declare __check_native.
4529 * inet/Makefile (aux): Add check_native.
4530 * sysdeps/unix/sysv/linux/check_native.c: New file.
4531 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4532 IFA_F_TEMPORARY. Pass back ifa_index.
4533 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4534 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4535 call __check_native if necessary.
4536 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4537 to sort addresses. Pass information about the results.
4538 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4539 of rfc3484_sort interface.
4540 * posix/tst-rfc3484-2.c: Likewise.
4542 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4543 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4545 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4546 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4547 on as third parameter to compare function and _quicksort.
4548 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4549 to the compare function.
4550 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4551 * Versions.def: Add GLIBC_2.8 for libc.
4553 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4554 * posix/tst-rfc3484-2.c: Likewise.
4556 * include/kernel-features.h: Moved to...
4557 * sysdeps/mach/hurd/kernel-features.h: ...here.
4559 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4561 * sysdeps/i386/i586/memcpy_chk.S: New file.
4562 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4563 * sysdeps/i386/i586/memset_chk.S: Likewise.
4565 2007-11-12 Ulrich Drepper <drepper@redhat.com>
4567 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4568 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4569 list of interfaces. Also store prefix length.
4570 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4571 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4572 prefix if source and destination address are in the same subnet.
4573 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4574 Always look for matching record in in6ai list.
4575 Correct source_addr_len value for IPv6->IPv4 converted records.
4577 2007-11-11 Roland McGrath <roland@frob.com>
4579 * include/kernel-features.h: New file.
4581 2007-11-10 Ulrich Drepper <drepper@redhat.com>
4583 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4584 complications for 64-bit platforms.
4586 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4587 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4588 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4590 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4592 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4593 * sysdeps/wordsize-64/alphasort.c: New file.
4594 * sysdeps/wordsize-64/alphasort64.c: New file.
4595 * sysdeps/wordsize-64/fseeko.c: New file.
4596 * sysdeps/wordsize-64/fseeko64.c: New file.
4597 * sysdeps/wordsize-64/ftello.c: New file.
4598 * sysdeps/wordsize-64/ftello64.c: New file.
4599 * sysdeps/wordsize-64/ftw.c: New file.
4600 * sysdeps/wordsize-64/ftw64.c: New file.
4601 * sysdeps/wordsize-64/iofgetpos.c: New file.
4602 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4603 * sysdeps/wordsize-64/iofopen.c: New file.
4604 * sysdeps/wordsize-64/iofopen64.c: New file.
4605 * sysdeps/wordsize-64/iofsetpos.c: New file.
4606 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4607 * sysdeps/wordsize-64/lockf.c: New file.
4608 * sysdeps/wordsize-64/lockf64.c: New file.
4609 * sysdeps/wordsize-64/mkostemp.c: New file.
4610 * sysdeps/wordsize-64/mkostemp64.c: New file.
4611 * sysdeps/wordsize-64/mkstemp.c: New file.
4612 * sysdeps/wordsize-64/mkstemp64.c: New file.
4613 * sysdeps/wordsize-64/scandir.c: New file.
4614 * sysdeps/wordsize-64/scandir64.c: New file.
4615 * sysdeps/wordsize-64/tmpfile.c: New file.
4616 * sysdeps/wordsize-64/tmpfile64.c: New file.
4617 * sysdeps/wordsize-64/versionsort.c: New file.
4618 * sysdeps/wordsize-64/versionsort64.c: New file.
4619 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4620 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4621 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4622 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4623 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4624 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4625 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4626 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4627 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4628 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4629 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4630 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4632 * crypt/sha256-crypt.c: Fix a comment.
4633 * crypt/sha512-crypt.c: Likewise.
4635 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4637 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4639 2007-11-07 Ulrich Drepper <drepper@redhat.com>
4642 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4643 because output buffer is too small break, don't loop.
4644 * iconvdata/Makefile (tests): Add bug-iconv6.
4645 * iconvdata/bug-iconv6.c: New file.
4647 2007-11-06 Ulrich Drepper <drepper@redhat.com>
4649 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4651 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4652 size_t. Add casts where needed.
4654 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4655 old headers, don't call avc_has_perm if we don't have the
4656 permission information.
4658 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4660 * elf/rtld.c (dl_main): Use the page size to find the map start.
4662 2007-11-05 Ulrich Drepper <drepper@redhat.com>
4664 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4665 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4667 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4668 when the lookup call failed.
4670 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4671 Add prune_cond and wakeup_time.
4672 (CACHE_PRUNE_INTERNAL): Define.
4673 Update declarations of prune_cache and setup_thread.
4674 * nscd/connections.c (dbs): Update initializers.
4675 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4676 (nscd_init): Default number of threads is now 4.
4677 (invalidate_cache): Take lock before calling prune_cache.
4678 (handle_request): If SELinux forbids the request, say so.
4679 (readylist_cond): Use static initializer.
4680 (nscd_run_prune): New function. Used only by pruning threads.
4681 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4683 (fd_ready): Update nscd_run reference.
4684 (start_threads): No need to initialize readylist_cond.
4685 Start pruning threads separately.
4686 * nscd/nscd_setup_thread.c: Change return value type to int and always
4688 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4689 to int and return nonzero value if we can use the TID address hack.
4690 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4691 the database is later than the new entry's timeout, update the
4692 wakeup time and wake the cleanup thread.
4693 (prune_cache): Return seconds the next entry in the database is still
4694 valid. Remove locking for pruning here.
4695 * nscd/nscd.conf: Document default number of threads.
4697 2007-10-31 Ulrich Drepper <drepper@redhat.com>
4699 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4700 stack is properly aligned for the target function.
4701 Correct unwind info.
4703 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4704 when using auditing libraries.
4706 2007-10-29 Ulrich Drepper <drepper@redhat.com>
4708 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4709 _nss_dns_getnetbyaddr2_r.
4710 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4711 extra parameter to getanswer_r.
4712 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4713 _nss_dns_getnetbyaddr2_r.
4715 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4717 * nscd/gethstbynm2_r.c: Remove.
4718 * nscd/gethstbynm3_r.c: New file.
4719 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4721 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4722 __gethostbyaddr_r compatibility wrapper.
4723 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4724 determining timeout of entry.
4725 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4727 (addhstbyX): Pass reference to variable for TTL to lookup and
4729 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4730 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4731 and __nss_next2. Remove __nss_services_lookup.
4732 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4734 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4736 * nss/getXXent_r.c: Likewise.
4737 * nss/getnssent_r.c: Likewise.
4738 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4739 does not exist in module, try the optional second name.
4740 (__nss_next2): New function.
4741 (__nss_next): Now wrapper around __nss_next2.
4742 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4743 Declare __nss_next2.
4744 Adjust definition of db_lookup_function type.
4745 * nss/service-lookup.c: Define NO_COMPAT.
4746 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4747 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4748 * inet/ether_ntoh.c: Likewise.
4749 * sunrpc/netname.c: Likewise.
4750 * sunrpc/publickey.c: Likewise.
4751 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4752 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4753 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4754 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4755 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4757 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4759 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4761 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4764 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4765 * crypt/sha512c-test.c: Likewise.
4768 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4769 to keep track of end of %[ format string element.
4770 * stdio-common/Makefile (tests): Add bug20.
4771 * stdio-common/bug20.c: New file.
4774 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4775 path elements in counting mode.
4777 2007-10-27 Andreas Jaeger <aj@suse.de>
4780 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4783 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4784 (__cleanup): Free shared library when exiting.
4785 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4786 (__cleanup): Free shared library when exiting.
4788 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4791 * math/libm-test.inc (check_float_internal): Support
4792 denormalized return.
4794 2007-10-23 Andreas Jaeger <aj@suse.de>
4797 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4798 __LONG_LONG_PAIR to handle little endian byte order.
4799 Suggested by abhishekrai@google.com
4801 2007-10-27 Ulrich Drepper <drepper@redhat.com>
4803 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4805 2007-10-26 Ulrich Drepper <drepper@redhat.com>
4807 * nscd/cache.c (prune_cache): Move test for modified file outside
4810 2007-10-21 Andreas Jaeger <aj@suse.de>
4812 * manual/texinfo.tex: Update to latest version.
4814 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4816 * manual/arith.texi (Status bit operations): Fix formatting.
4818 * manual/errno.texi (Error Messages): Fix formatting.
4820 * manual/sysinfo.texi (System Parameters): Fix formatting.
4822 * manual/libc.texinfo: Update VERSION and UPDATED.
4824 2007-10-19 Roland McGrath <roland@redhat.com>
4826 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4828 2007-10-06 David S. Miller <davem@davemloft.net>
4830 * configure.in: Add sparcv9v2 and sparc64v2.
4831 * scripts/config.sub: Likewise.
4832 * configure: Regenerate.
4833 * elf/elf.h (HWCAP_SPARC_N2): New.
4834 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4835 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4836 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4837 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4838 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4839 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4840 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4842 2007-10-18 Ulrich Drepper <drepper@redhat.com>
4844 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4845 even if the poll result indicates there is data to read.
4846 Patch by Jeff Moyer <jmoyer@redhat.com>.
4848 2007-10-18 Roland McGrath <roland@redhat.com>
4850 * elf/elf.h (NT_PPC_VMX): New macro.
4852 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4854 * version.h (VERSION): Set to 2.7.90.
4856 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4858 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4861 2007-10-17 Roland McGrath <roland@frob.com>
4863 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4864 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4866 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4868 * version.h (VERSION): Bump to 2.7.
4869 * include/features.h (__GLIBC_MINOR__): Bump to 7.
4872 * time/tzset.c (__tz_convert): Don't force testing for a change of
4873 TZ if not called from localtime. But then also see whether the
4874 file changed, in case __use_tzfile is set.
4876 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4877 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4878 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4879 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4880 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4881 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4882 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4883 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4885 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4887 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4888 and admin selects to be able to replace the gai.conf file, lock
4889 data structures around the qsort call.
4891 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4893 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4895 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
4896 too high for the improvements. Implement bzero unconditionally for
4899 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4900 Jakub Jelinek <jakub@redhat.com>
4902 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4903 even when time_t is 32-bit.
4904 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4905 timezone data read by __tzfile_default. Ensure __tzname[0] is
4906 always set after the search.
4908 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4910 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4911 unreachable code on 32-bit machines.
4913 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4916 * time/strftime_l.c: Include stdbool.h.
4917 (my_strftime): New wrapper, old function renamed to...
4918 (__strftime_internal): ... new function. Add tzset_called
4919 argument, pass it down to recursive calls, don't call tzset ()
4920 if already true, set to true after call to tzset ().
4922 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4924 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4925 into account when copying TZ string.
4927 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4929 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4930 num_transition rather than num_transitions - 1.
4932 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4934 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4937 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4938 a local label rather than HIDDEN_JUMPTARGET.
4940 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4942 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4943 (init_cacheinfo): Initialize it.
4944 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4945 Always define bzero.
4946 Remove non-glibc code.
4947 * sysdeps/x86_64/bzero.S: Make an empty file.
4949 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4951 * sysdeps/x86_64/cacheinfo.c
4952 (__x86_64_preferred_memory_instruction): New.
4953 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4955 * sysdeps/x86_64/memset.S: Rewrite.
4957 2007-10-15 Roland McGrath <roland@redhat.com>
4959 * po/libc.pot: Regenerated.
4961 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4963 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4967 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4968 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4969 address record to T_A/T_AAAA requests.
4971 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4973 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4975 * posix/glob.c: Add some branch prediction throughout.
4977 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4980 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4982 (rfc3484_sort): Make sure that even if qsort doesn't support
4983 stable sorting out sorting here is stable by comparing service_order.
4984 (getaddrinfo): Initialize service_order.
4985 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4986 service_order field to sorting structure.
4987 * posix/tst-rfc3484-2.c (do_test): Likewise.
4989 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4990 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4991 __tzset_parse_tz and updating of daylight, timezone, tzname into
4993 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4994 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4995 happens in __tz_compute.
4996 * time/tzfile.c (__tzfile_read): Also read TZ string.
4997 (find_transition): Fold into __tzfile_compute.
4998 (__tzfile_compute): For times beyond the last transition try to
5000 * timezone/tst-timezone.c: Information in daylight and tzname does
5001 change for Asia/Tokyo timezone with more concrete information.
5004 * include/stdio.h: Add libc_hidden_proto for ftello.
5005 * libio/ftello.c: Add libc_hidden_def.
5008 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5009 on the specified time and not the last entries in the file. Move
5010 code to determine tzname[] to...
5011 (find_transition): ...here. Add ugly guess for times before the
5014 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5017 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5019 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5020 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5021 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5022 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5024 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5025 read mechanism when there are no group members and avoid no-op
5026 read syscall in this case.
5029 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5030 (__readall): If reading failed due to EAGAIN error wait a bit
5031 and possibly try again.
5032 (__readvall): Likewise.
5034 2007-10-13 Bruno Haible <bruno@clisp.org>
5036 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5037 when we cannot recode the message.
5039 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5042 * libio/__freading.c (__freading): Don't return true for
5043 write-only streams. For read/write streams, check whether we
5044 performed a read operation already.
5045 * libio/Makefile (tests): Add tst-ext2.
5046 * libio/tst-ext2.c: New file.
5048 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5050 * locale/programs/repertoire.c (repertoire_read): Always free
5051 memory for repertoire file name [Coverity CID 270].
5053 * elf/cache.c (save_aux_cache): Free memory allocated for
5054 temporary file name [Coverity CID 267].
5056 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5058 * misc/Makefile (headers): Add bits/error.h.
5060 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5062 * posix/fnmatch_loop.c: Take rule index returned as part of
5063 findidx return value into account when accessing weights.
5064 * posix/regcomp.c: Likewise.
5065 * posix/regexec.c: Likewise.
5067 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5068 (skip_to): Fix problems with parameter of elifdef/elifndef.
5070 2007-10-11 Ulrich Drepper <drepper@redhat.com>
5072 * iconv/gconv_simple.c: Add some branch prediction.
5074 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5076 * locale/programs/ld-collate.c (collate_read): If ignore_content
5077 and nowtok is tok_define, eat any tok_eol tokens.
5079 2007-10-11 Jakub Jelinek <jakub@redhat.com>
5081 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5082 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5084 * inet/netinet/in.h: Don't include bits/socket.h.
5085 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5087 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5089 2007-10-10 Ulrich Drepper <drepper@redhat.com>
5091 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5093 * locale/programs/locfile-kw.gperf: Likewise.
5094 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5096 2007-10-10 Jakub Jelinek <jakub@redhat.com>
5098 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5099 (__find_specwc): Change into __extern_always_inline function.
5100 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5101 (__parse_one_specmb): Remove ps argument.
5102 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5103 Adjust __find_specmb and __parse_one_specmb callers.
5104 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5105 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5107 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5110 2007-10-09 Ulrich Drepper <drepper@redhat.com>
5112 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5113 with some Pentium Ds.
5115 2007-10-08 Ulrich Drepper <drepper@redhat.com>
5117 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5119 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5122 2007-10-07 Ulrich Drepper <drepper@redhat.com>
5125 * locale/C-time.c: Set week_1stday data to 19971201.
5126 * locale/programs/ld-time.c (time_finish): Default for
5127 first_workday is Monday.
5130 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5133 * posix/glob.c (glob): Recognize patterns starting \/.
5134 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5135 (main): Add test for pattern starting \/.
5137 * misc/error.h: Use __const instead of const.
5138 * misc/bits/error.h: Likewise.
5140 2007-10-07 Andreas Jaeger <aj@suse.de>
5142 * include/bits/error.h: New file.
5144 * misc/bits/error.h (error_at_line): Fix prototype.
5146 2007-10-06 Ulrich Drepper <drepper@redhat.com>
5149 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5150 more little bugs in creating the stack frame when pltexit has to
5153 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5154 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5157 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5158 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5159 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5160 * math/libm-test.inc: Add test for this case.
5163 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5164 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5165 map service succeeded.
5166 (svc_is_mapped): New function.
5167 (svc_unregister): Use it before trying to unmap service.
5169 2007-10-05 Ulrich Drepper <drepper@redhat.com>
5171 * timezone/zic.c: Update from tzcode2007h.
5174 * timezone/africa: Update from tzdata2007h.
5175 * timezone/antarctica: Likewise.
5176 * timezone/asia: Likewise.
5177 * timezone/australasia: Likewise.
5178 * timezone/europe: Likewise.
5179 * timezone/leapseconds: Likewise.
5180 * timezone/northamerica: Likewise.
5181 * timezone/southamerica: Likewise.
5182 * timzeone/zone.tab: Likewise.
5185 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5188 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5189 avoid warning with -Wconversion.
5190 (__strndup): Likewise.
5191 Half the patch by Christian Iseli <christian.iseli@licr.org>.
5194 * nscd/connections.c (restart): Don't resync if database is
5195 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5197 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5198 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5200 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5201 evetnfd_read, eventfd_write.
5202 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5203 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5204 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5205 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5206 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5207 eventfd_write for GLIBC_2.7.
5209 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5210 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5211 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5212 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5214 2007-10-04 Jakub Jelinek <jakub@redhat.com>
5216 * stdlib/msort.c: Include stdint.h.
5217 (struct msort_param): New type.
5218 (msort_with_tmp): Use struct msort_param pointer for unchanging
5219 parameters. Add optimized handling for several common sizes
5220 and indirect sorting mode.
5221 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5223 Suggested by Belazougui Djamel .
5225 * stdlib/Makefile (tests): Add tst-qsort2.
5226 * stdlib/tst-qsort2.c: New test.
5228 2007-10-04 Ulrich Drepper <drepper@redhat.com>
5230 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5231 for dup2 in case another thread races with the current one. Retry
5234 * misc/error.h: Remove support for use outside of libc. We have to
5235 include <features.h> now. Include <bits/error.h> if possible.
5236 * misc/bits/error.h: New file.
5238 2007-10-03 Jakub Jelinek <jakub@redhat.com>
5240 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5241 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5242 __extern_always_inline functions unconditionally, drop macros.
5244 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5245 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5246 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5248 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5249 add __artificial__ attribute.
5251 2007-10-02 Ulrich Drepper <drepper@redhat.com>
5253 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5254 backward to forward direction.
5256 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5259 * locale/programs/ld-collate.c (collate_finish): Compare against last
5260 used section which is known to have rules defined.
5261 (collate_read): After order_start, correctly record order of sections
5262 and queue sections up.
5264 2007-10-01 Ulrich Drepper <drepper@redhat.com>
5267 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5268 the same number of pages.
5269 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5271 * locale/programs/ld-collate.c (collate_read): After initial copy
5272 statement, continue in state 0.
5274 * include/stdio_ext.h (__fsetlocking): Define as macro.
5276 2007-09-30 Ulrich Drepper <drepper@redhat.com>
5278 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5281 * po/pt_BR.po: Fix typo.
5283 2007-09-29 Ulrich Drepper <drepper@redhat.com>
5285 * iconvdata/Makefile (modules): Add ISO8859-9E.
5286 (distribute): Add iso8859-9e.c.
5287 (gen-8bit-gap-modules): Add iso8859-9e.
5288 * iconvdata/iso8859-9e.c: New file.
5289 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5290 * iconvdata/TESTS: Likewise.
5291 * iconvdata/tst-tables.sh: Likewise.
5293 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5295 * locale/iso-639.def: Add several new entries.
5297 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5299 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5300 void * pointers instead of struct link_map **.
5301 (_dl_scope_free): Change argument type to void *.
5302 * include/link.h (struct link_map): Change type of l_reldeps
5303 to struct link_map_reldeps, move l_reldepsact into that
5305 * elf/dl-deps.c: Include atomic.h.
5306 (_dl_map_object_deps): Only change l->l_initfini when it is
5307 fully populated, use _dl_scope_free for freeing it. Optimize
5308 removal of libs from reldeps by using l_reserved flag, when
5309 some removal is needed, allocate a new list instead of
5310 reallocating and free the old with _dl_scope_free. Adjust
5311 for l_reldeps and l_reldepsact changes.
5312 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5313 searching in l_initfini and l_reldeps without holding dl_load_lock.
5314 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5315 l_reldepsact changes.
5316 * elf/dl-close.c (_dl_close_worker): Likewise.
5317 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5319 2007-09-28 Ulrich Drepper <drepper@redhat.com>
5321 * iconvdata/Makefile (modules): Add KOI8-RU.
5322 (distribute): Add koi8-ru.c.
5323 (gen-8bit-gap-modules): Add koi8-ru.
5324 * iconvdata/koi8-ru.c: New file.
5325 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5326 * iconvdata/TESTS: Likewise.
5327 * iconvdata/tst-tables.sh: Likewise.
5329 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5331 2007-09-26 Jakub Jelinek <jakub@redhat.com>
5333 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5334 with __warning__/__error__ attributes.
5335 (__warnattr): Define.
5336 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5337 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5339 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5340 of __*_chk if compile time detectable overflow is found.
5341 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5342 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5344 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5345 instead of __*_chk if compile time detectable overflow is found.
5346 (__gets_alias): Rename to...
5347 (__gets_warn): ... this. Add __warnattr.
5348 (gets): Call __gets_warn instead of __gets_alias.
5349 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5350 aliases with __warnattr.
5351 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5352 time detectable overflow is found.
5353 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5354 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5355 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5356 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5357 __getdomainname_chk_warn): New aliases with __warnattr.
5358 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5359 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5360 __*_chk_warn instead of __*_chk if compile time detectable overflow
5362 (__getgroups_chk): Rename argument to __listlen from listlen.
5363 (__getwd_alias): Rename to...
5364 (__getwd_warn): ... this. Add __warnattr.
5365 (getwd): Call __getwd_warn instead of __getwd_alias.
5366 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5367 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5368 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5369 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5370 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5371 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5372 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5373 compile time detectable overflow is found.
5374 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5375 to use __*_chk or not.
5376 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5377 in comparisons which function should be called and in __*_chk*
5378 arguments. Call __*_chk_warn instead of __*_chk if compile time
5379 detectable overflow is found.
5380 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5382 * debug/tst-chk1.c (do_test): Add a few more tests.
5384 2007-09-24 Ulrich Drepper <drepper@redhat.com>
5387 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5388 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5389 (_nl_unload_domain): Finalize conversions_lock.
5390 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5391 handling table of known conversions.
5393 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5395 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5396 close_not_cancel_no_status instead of close.
5398 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5401 * posix/regcomp.c (lookup_collation_sequence_value): Check that
5402 nrules != 0 for multibyte chars.
5404 2007-09-23 Ulrich Drepper <drepper@redhat.com>
5406 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5407 Provide better error message in case the type is unknown.
5410 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5411 * string/stratcliff.c: Make usable to test wide char functions.
5412 * wcsmbs/wcsatcliff.c: New file.
5413 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5416 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5417 (distribute): Add mac-centraleurope.c.
5418 (gen-8bit-gap-modules): Add mac-centraleurope.
5419 * iconvdata/mac-centraleurope.c: New file.
5420 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5421 * iconvdata/TESTS: Likewise.
5422 * iconvdata/tst-tables.sh: Likewise.
5425 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5427 2007-09-21 Ulrich Drepper <drepper@redhat.com>
5429 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5430 from __x86_64_core_cache_size_half.
5431 (init_cacheinfo): Compute shared cache size for AMD processors with
5432 shared L3 correctly.
5433 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5435 Patch in large parts by Evandro Menezes.
5437 2007-09-19 Ulrich Drepper <drepper@redhat.com>
5439 * elf/dl-lookup.c (add_dependency): Handle failing memory
5440 allocation for dependency list. Remove unnecessary check.
5442 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5443 open/close when determining source addresses.
5445 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5446 sha512-crypt, and sha512.
5447 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5448 (distribute): Add sha256.h and sha512.h.
5449 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5450 and call the appropriate code.
5451 * crypt/sha256-crypt.c: New file.
5452 * crypt/sha256.c: New file.
5453 * crypt/sha256.h: New file.
5454 * crypt/sha256c-test.c: New file.
5455 * crypt/sha256test.c: New file.
5456 * crypt/sha512-crypt.c: New file.
5457 * crypt/sha512.c: New file.
5458 * crypt/sha512.h: New file.
5459 * crypt/sha512c-test.c: New file.
5460 * crypt/sha512test.c: New file.
5462 2007-09-19 Jakub Jelinek <jakub@redhat.com>
5464 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5465 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5468 2007-09-18 Jakub Jelinek <jakub@redhat.com>
5470 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5471 %as in fscanf format strings.
5473 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5474 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5475 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5477 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5480 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5481 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5482 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5483 * elf/dl-sym.c (do_sym): Likewise.
5484 * include/link.h (struct link_map): Add l_serial field.
5485 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5486 * elf/dl-lookup.c (add_dependency): Add flags argument.
5487 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5488 flags, use THREAD_GSCOPE_RESET_FLAG before and
5489 THREAD_GSCOPE_SET_FLAG after
5490 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5491 Don't dereference map until it has been found on some list.
5492 If map->l_serial changed, return -1.
5494 2007-09-17 Jakub Jelinek <jakub@redhat.com>
5496 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5497 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5498 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5500 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5501 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5502 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5503 add libc_hidden_proto.
5504 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5505 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5506 conformance requested.
5507 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5508 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5509 conformance requested.
5510 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5511 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5512 conformance requested.
5513 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5514 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5515 ISO C99 or POSIX conformance requested.
5516 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5517 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5518 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5519 and __isoc99_vsscanf@@GLIBC_2.7.
5520 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5521 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5522 (tests): Add scanf14.
5523 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5524 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5525 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5526 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5527 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5528 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5529 from using internal headers.
5530 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5531 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5532 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5533 and __isoc99_vswscanf@@GLIBC_2.7.
5534 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5535 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5536 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5537 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5538 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5539 * stdio-common/isoc99_scanf.c: New file.
5540 * stdio-common/isoc99_vsscanf.c: New file.
5541 * stdio-common/isoc99_vscanf.c: New file.
5542 * stdio-common/isoc99_vfscanf.c: New file.
5543 * stdio-common/isoc99_fscanf.c: New file.
5544 * stdio-common/isoc99_sscanf.c: New file.
5545 * wcsmbs/isoc99_fwscanf.c: New file.
5546 * wcsmbs/isoc99_vswscanf.c: New file.
5547 * wcsmbs/isoc99_swscanf.c: New file.
5548 * wcsmbs/isoc99_wscanf.c: New file.
5549 * wcsmbs/isoc99_vwscanf.c: New file.
5550 * wcsmbs/isoc99_vfwscanf.c: New file.
5551 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5552 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5553 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5554 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5555 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5556 * stdio-common/scanf14.c: New test.
5557 * stdio-common/scanf15.c: New test.
5558 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5559 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5560 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5561 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5562 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5563 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5564 __nldbl___isoc99_scanf@@GLIBC_2.7,
5565 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5566 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5567 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5568 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5569 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5570 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5571 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5572 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5573 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5574 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5575 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5576 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5577 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5578 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5579 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5580 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5581 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5582 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5583 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5584 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5585 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5586 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5587 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5589 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5590 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5591 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5592 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5593 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5594 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5595 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5596 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5597 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5598 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5599 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5600 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5602 * stdio-common/Makefile (tests): Add scanf13.
5604 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5605 m modifier followed by l.
5606 (STRING_ARG): Add width argument.
5607 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5608 <case L_('C')>: Handle %mlc and %mC.
5609 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5611 * stdio-common/scanf13.c: New test.
5613 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5614 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5616 2007-09-18 Ulrich Drepper <drepper@redhat.com>
5618 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5619 type and __THROW marker of splice, vmsplice, and tee.
5620 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5621 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5622 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5623 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5624 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5625 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5626 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5627 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5628 as cancellation points.
5630 2003-11-01 Daniel Jacobowitz <dan@debian.org>
5632 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5633 parse more than three parts of the version number.
5635 2007-09-15 Ulrich Drepper <drepper@redhat.com>
5637 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5638 modifier. Patch by Jakub Jelinek.
5640 2007-08-26 Jakub Jelinek <jakub@redhat.com>
5642 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5643 call_fallocate in misc subdir.
5644 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5645 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5646 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5647 instead of __fallocate64.
5648 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5650 2007-09-15 Jakub Jelinek <jakub@redhat.com>
5652 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5653 * rt/Makefile (headers): Add bits/mqueue2.h.
5654 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5655 optimizing with GCC and __va_arg_pack_len is defined.
5656 * rt/bits/mqueue2.h: New file.
5657 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5658 (mq_open): New strong_alias.
5659 (__mq_open_2): New function.
5660 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5661 (mq_open): New strong_alias.
5662 (__mq_open_2): New function.
5663 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5664 * Versions.def (librt): Add GLIBC_2.7 version.
5665 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5666 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5668 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5669 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5670 is defined rather than when not C++.
5671 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5672 __openat64_alias): New redirects.
5673 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5674 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5675 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5676 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5677 functions instead of function-like macros.
5679 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5681 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5682 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5683 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5685 2007-09-15 Mike Frysinger <vapier@gentoo.org>
5687 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5688 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5690 2007-09-14 Mike Frysinger <vapier@gentoo.org>
5692 * inet/tst-network.c: Increment ERRORS for failing tests.
5694 2007-09-07 Jakub Jelinek <jakub@redhat.com>
5696 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5697 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5698 implement as __extern_always_inline function.
5699 (vsyslog): Define as __extern_always_inline function unconditionally.
5700 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5701 When __va_arg_pack is defined, implement as __extern_always_inline
5703 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5704 __extern_always_inline functions unconditionally.
5705 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5706 bits/stdio2.h will be included.
5707 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5708 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5709 implement as __extern_always_inline functions.
5710 (vswprintf, vwprintf, vfwprintf): Define as
5711 __extern_always_inline functions unconditionally.
5712 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5714 2007-09-03 Jakub Jelinek <jakub@redhat.com>
5716 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5717 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5719 * include/features.h (__USE_EXTERN_INLINES): Define only when
5720 __extern_inline is defined.
5721 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5722 is defined instead of when not __cplusplus.
5723 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5724 is defined instead of when not __cplusplus.
5725 * socket/sys/socket.h: Include bits/socket2.h when
5726 __extern_always_inline is defined instead of when not __cplusplus.
5727 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5728 is defined instead of when not __cplusplus.
5729 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5730 is defined instead of when not __cplusplus.
5731 * string/string.h: Include bits/string3.h when __extern_always_inline
5732 is defined instead of when not __cplusplus.
5733 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5734 is defined instead of when not __cplusplus.
5735 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5736 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5738 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5739 defined __extern_always_inline instead of !defined __cplusplus.
5740 * libio/bits/stdio-ldbl.h: Likewise.
5741 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5742 * misc/bits/syslog.h (syslog): Don't define for C++.
5743 (vsyslog): Use __extern_always_inline function for C++ instead of
5745 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5746 whenever that macro is defined.
5747 (vprintf): Don't provide the inline for C++.
5748 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5749 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5750 define the macros for C++.
5751 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5752 __extern_always_inline functions for C++.
5753 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5754 stat64, lstat64, fstat64, fstatat64): Don't define if not
5755 __USE_EXTERN_INLINES.
5756 * wcsmbs/bits/wchar2.h: Fix #error message.
5757 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5758 (vswprintf, vwprintf, vfwprintf): Define using
5759 __extern_always_inline functions for C++.
5760 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5761 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5762 strncpy, strcat, strncat): Define as __extern_always_inline
5763 functions instead of macros for C++.
5764 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5765 defined __extern_inline.
5766 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5767 to __extern_inline whenever that macro is defined.
5768 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5769 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5770 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5771 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5772 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5773 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5774 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5775 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5776 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5777 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5778 prototypes. Only provide __extern_inline routines if
5779 __USE_EXTERN_INLINES.
5780 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5782 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5783 For now avoid some *printf tests in C++. Skip all testing
5784 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5786 * debug/tst-chk4.cc: New file.
5787 * debug/tst-chk5.cc: New file.
5788 * debug/tst-chk6.cc: New file.
5789 * debug/tst-lfschk4.cc: New file.
5790 * debug/tst-lfschk5.cc: New file.
5791 * debug/tst-lfschk6.cc: New file.
5792 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5794 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5795 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5796 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5798 2007-09-13 Ulrich Drepper <drepper@redhat.com>
5800 * po/cs.po: Update from translation team.
5802 2007-09-11 Roland McGrath <roland@redhat.com>
5804 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5807 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5809 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5811 2007-09-05 Roland McGrath <roland@redhat.com>
5813 * manual/signal.texi (Signaling Another Process): Typo fix.
5814 From Karl Berry <karl@freefriends.org>.
5816 2007-08-29 Ulrich Drepper <drepper@redhat.com>
5818 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5819 zero if not defined.
5820 (make_request): Recognize optimistic addresses and treat them like
5821 deprecated addresses.
5822 Reported by Neil Horman <nhorman@redhat.com>.
5824 2007-08-28 Ulrich Drepper <drepper@redhat.com>
5826 * nscd/connections.c (send_ro_fd): Also transfer file size.
5827 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5828 file size don't call fstat.
5830 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5831 ahead and map the file. This should always be correct and we can
5832 catch problems later.
5834 2007-08-28 Jakub Jelinek <jakub@redhat.com>
5836 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5838 (__fread_alias, __fread_unlocked_alias): New aliases.
5839 (fread): New extern inline.
5840 (fread_unlocked): Likewise. Undef macro before definition of
5841 the inline function.
5842 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5843 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5844 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5845 and __fread_unlocked_chk@@GLIBC_2.7.
5846 * debug/fread_chk.c: New file.
5847 * debug/fread_u_chk.c: New file.
5848 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5850 2007-08-27 Jakub Jelinek <jakub@redhat.com>
5852 * sysdeps/unix/sysv/linux/syscalls.list
5853 (personality): Change caller to EXTRA.
5855 2007-08-25 Ulrich Drepper <drepper@redhat.com>
5857 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5859 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5861 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5864 * Makerules: Use -p option with mkdir.
5866 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5867 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5868 (_xdr_directory_obj): Likewise.
5869 (xdr_entry_obj): Likewise.
5870 (xdr_group_obj): Likewise.
5871 (xdr_link_obj): Likewise.
5872 (xdr_table_obj): Likewise.
5873 (_xdr_nis_result): Likewise.
5874 (_xdr_ns_request): Likewise.
5875 (_xdr_ib_request): Likewise.
5876 (_xdr_nis_taglist): Likewise.
5877 (xdr_cback_data): Likewise.
5878 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5879 (xdr_ypresp_maplist): Likewise.
5881 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5883 * posix/regex_internal.h: Prevent some declarations and definitions
5884 to be seen when used in tests.
5886 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5887 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5889 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5891 * config.make.in (datarootdir): Add to shut up configure.
5893 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5894 associativity for fully-associative caches.
5896 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5897 requests. Fill on more associativity values for L2.
5898 Patch mostly by Evandro Menezes.
5900 2007-08-24 Ulrich Drepper <drepper@redhat.com>
5902 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5903 (_libc_vdso_platform_setup): Avoid using exported variable by using
5906 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5908 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5909 fallocate64 as EXTRA. It is not referenced if the symbol isn't
5912 2007-08-23 Ulrich Drepper <drepper@redhat.com>
5914 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5915 align stack for call if pltexit is to be used.
5918 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5919 align for function call in case pltexit has to be called later.
5921 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5922 implicit atomic operation when storing function pointer.
5923 (_dl_runtime_profile): Likewise.
5925 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5927 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5930 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5933 * string/strtok.c: Fix typo in comment.
5936 * debug/segfault.c: Fix typos in comments.
5939 * stdio-common/tempnam.c: Fix comment, it is not checked that
5940 TMPDIR points to a writable directory.
5943 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5944 memory allocated for the name server address.
5947 * nscd/connections.c (handle_request): Using sendfile always
5948 requires that mmap is used for the database.
5949 Patch by Petr Baudis <pasky@suse.cz>.
5952 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5953 suddenly has two or more addresses, ignore it and remove the old
5957 * resolv/res_hconf.c: Prepare for compiling outside libc.
5958 * nscd/res_hconf.c: New file.
5959 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5961 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5962 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5964 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5967 * debug/pcprofiledump.c: Turn on internationalization by calling
5968 setlocale. Patch mostly by Benno Schulenberg.
5971 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5973 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5974 * iconvdata/bug-iconv5.c: New file.
5976 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5979 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5980 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5981 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5982 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5983 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5984 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5985 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5986 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5988 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5991 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5992 lookup loop. Suggested by John Reiser.
5994 2007-08-21 Jakub Jelinek <jakub@redhat.com>
5996 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5998 2007-08-20 Ulrich Drepper <drepper@redhat.com>
6000 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6001 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6002 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6003 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6004 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6006 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6008 2007-08-18 Ulrich Drepper <drepper@redhat.com>
6010 * po/nl.po: Update from translation team.
6012 2007-08-16 Andreas Jaeger <aj@suse.de>
6014 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6015 Reported by Peter Festner <peter.festner@ewetel.net>.
6017 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6019 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6021 2007-08-16 Jakub Jelinek <jakub@redhat.com>
6023 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6024 to check for undefined symbols.
6026 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6027 If the syscall fails, set errno to the actual returned error number
6029 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6030 arguments are incorrect, set errno to EINVAL, if the syscall
6031 fails, set errno to the actual returned error number.
6033 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6034 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6036 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6037 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6039 (ASI_PNF, ASI_BLK_P): Don't define.
6040 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6041 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6043 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6044 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6047 2007-08-15 Jakub Jelinek <jakub@redhat.com>
6049 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6050 FE_UNDERFLOW on Niagara CPUs.
6052 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6055 2007-08-14 Jakub Jelinek <jakub@redhat.com>
6057 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6058 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6059 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6060 flush should be used or not inside of the function.
6061 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6063 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6064 __thread_start): Use HIDDEN_JUMPTARGET.
6065 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6066 __thread_start): Likewise.
6067 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6069 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6070 Add libc_hidden_proto.
6071 (STRTOF): Add libc_hidden_proto.
6072 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6073 (strtold_l, wcstold_l): Use them as second argument for
6076 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6078 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6080 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6082 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6084 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6086 * po/bg.po: New file. From the translation team.
6088 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6090 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6091 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6092 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6093 when each feature was introduced.
6095 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6096 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6097 (CHECK_HASH): New macro.
6098 (PREPARE_VERSION): Use it.
6100 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6101 prototype if not __ASSUME_PSELECT.
6102 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6103 prototype if not __ASSUME_PPOLL.
6105 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6107 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6108 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6111 2007-08-13 Ulrich Drepper <drepper@redhat.com>
6113 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6114 (_libc_vdso_platform_setup): If vDSO is not available point
6115 __vdso_gettimeofday to the vsyscall.
6116 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6117 __vdso_gettimeofday instead of vsyscall.
6119 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6121 * nscd/servicescache.c: Include kernel-features.h.
6122 * nscd/gai.c: Likewise.
6123 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6124 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6125 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6126 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6127 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6128 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6129 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6130 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6131 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6133 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6135 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6136 and _dl_get_origin defines anymore.
6138 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6139 Build fix for systems which might lack POSIX timer support.
6141 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6142 (_libc_vdso_platform_setup): Mangle function pointers before storing
6144 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6145 Demangle vdso pointer before use.
6146 (INTERNAL_VSYSCALL): Likewise.
6148 * elf/cache.c (primes): Mark as const.
6149 Noted by Roland McGrath.
6151 2007-08-01 Andreas Jaeger <aj@suse.de>
6152 Jakub Jelinek <jakub@redhat.com>
6154 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6155 (options): Add option.
6156 (parse_opt): Handle option.
6157 (manual_link): Adjust process_file caller. Call implicit_soname.
6158 (search_dir): Formatting. Use and populate auxiliary cache.
6159 (main): Load and save auxiliary cache.
6160 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6161 stat64 from fstat64 to caller.
6162 (implicit_soname): New function.
6163 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6164 leave *soname as NULL.
6165 * elf/cache.c: Include libgen.h.
6166 (print_entry, print_cache, compare, save_cache, add_to_cache):
6167 Formatting and cleanups.
6168 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6169 aux_cache_file): New structures.
6170 (AUX_CACHEMAGIC): Define.
6171 (primes): New array.
6172 (aux_hash_size, aux_hash): New variables.
6173 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6174 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6175 load_aux_cache, save_aux_cache): New functions.
6176 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6177 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6178 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6179 (process_file): Adjust prototype.
6181 2007-08-12 Jakub Jelinek <jakub@redhat.com>
6183 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6186 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6188 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6189 r_found_version structure as second parameter.
6190 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6191 (_dl_vdso_vsym): Change type of second parameter accordingly.
6192 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6193 (_libc_vdso_platform_setup): Adjust.
6194 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6195 (_libc_vdso_platform_setup): Likewise.
6197 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6198 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6199 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6200 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6201 * csu/libc-start.c: Pretty printing.
6202 Use VDSO_SETUP if defined.
6203 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6204 and let generic code call into _libc_vdso_platform_setup.
6205 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6206 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6207 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6208 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6209 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6211 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6212 (sysdep_rountines): Add dl-vdso.
6214 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6217 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6218 attribute_hidden to __vdso_gettimeofday prototype.
6220 2007-08-12 Roland McGrath <roland@redhat.com>
6222 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6223 From: Karl Berry <karl@freefriends.org>.
6225 2007-08-11 Ulrich Drepper <drepper@redhat.com>
6227 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6228 an atime update for the files we read.
6230 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6232 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6234 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
6237 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6238 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6239 * misc/mkostemp.c: New file.
6240 * misc/mkostemp64.c: New file.
6241 * stdlib/stdlib.h: Declare the new functions.
6242 * sysdeps/posix/tempname.c: Add new parameter which is added to
6243 the flags for open. Remove __GT_BIGFILE handling.
6244 * stdio-common/tempname.c: Likewise.
6245 * include/stdio.h: Adjust __gen_tempname prototype.
6246 Renumber __GT_* constants.
6247 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6248 * misc/mkdtemp.c: Likewise.
6249 * misc/mkstemp.c: Likewise.
6250 * misc/mkstemp64.c: Likewise.
6251 * misc/mktemp.c: Likewise.
6252 * stdio-common/tempnam.c: Likewise.
6253 * stdio-common/tmpfile.c: Likewise.
6254 * stdio-common/tmpfile64.c: Likewise.
6255 * stdio-common/tmpnam.c: Likewise.
6256 * stdio-common/tmpnam_r.c: Likewise.
6258 2007-08-10 Roland McGrath <roland@frob.com>
6260 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6262 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6263 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6265 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6267 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6269 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6270 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6271 * nss/nss_files/files-have_o_cloexec.c: New file.
6273 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6276 2007-08-10 Jakub Jelinek <jakub@redhat.com>
6278 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6279 ___new_wcstold_l): New weak aliases.
6280 (strtold_l, wcstold_l): Use them as second argument for
6283 2007-08-09 Ulrich Drepper <drepper@redhat.com>
6285 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6286 register in test for error.
6288 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6289 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6291 * po/sv.po: Update from translation team.
6293 2007-08-06 Roland McGrath <roland@redhat.com>
6295 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6296 Remove __strto*_l inlines.
6297 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6298 * stdlib/strtod.c: Add libc_hidden_def.
6299 * stdlib/strtod_l.c: Likewise.
6300 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6301 for __new_strtold and __new_wcstold.
6302 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6304 * stdlib/strtol.c: Add libc_hidden_def.
6305 * stdlib/strtol_l.c: Likewise.
6306 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6309 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6311 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6312 * scripts/data/localplt-generic.data: ... here.
6313 * elf/Makefile (check-data): Get generic file if no other.
6314 ($(objpfx)check-localplt.out): Make target unconditional.
6316 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6319 2007-08-05 Ulrich Drepper <drepper@redhat.com>
6321 * po/zh_CN.po: Updated translation from translation team.
6323 2007-08-05 Jakub Jelinek <jakub@redhat.com>
6325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6326 Don't use CGOTSETUP and CGOTRESTORE macros.
6328 2007-08-04 Roland McGrath <roland@redhat.com>
6330 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6332 2007-08-04 Jakub Jelinek <jakub@redhat.com>
6334 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6335 __extension__ around the whole statement expression.
6337 2007-08-04 Ulrich Drepper <drepper@redhat.com>
6339 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6340 elements during initialization.
6342 * po/pl.po: Updated translation from translation team.
6343 * po/tr.po: Likewise.
6344 * po/nl.po: Likewise.
6346 2007-08-03 Ulrich Drepper <drepper@redhat.com>
6348 * rt/aio.h: Add __nonnull attributes.
6350 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6352 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6353 * stdlib/Makefile (tests): Add tst-strtod5.
6354 (tst-strtod5-ENV): New.
6355 * stdlib/tst-strtod5.c: New file.
6357 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6359 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6362 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6365 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6367 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6370 2007-08-02 Ulrich Drepper <drepper@redhat.com>
6372 * io/Makefile (aux): Add have_o_cloexec.
6373 * include/fcntl.h: Declare __have_o_cloexec.
6374 * io/have_o_cloexec.c: New file.
6375 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6376 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6377 fcntl call if not necessary.
6378 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6381 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6382 Avoid memset, add explicit initialization.
6383 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6384 to the end and change into zero-sized array.
6385 Move lock member to fill a hole on 64-bit platforms.
6387 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6389 * include/stdlib.h: Add __strto*_internal prototypes here.
6390 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6392 * include/wchar.h: Add __wcsto*_internal prototypes.
6393 * sysdeps/generic/inttypes.h: No need to protect the declaration
6394 of the __strto*_internal and __wcsto*_internal members here.
6396 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6398 2007-08-02 Roland McGrath <roland@redhat.com>
6400 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6401 $(inst_bindir)/getconf if possible.
6403 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6404 (generated): Add it.
6405 ($(inst_libexecdir)/getconf): Use it.
6407 2007-08-01 Ulrich Drepper <drepper@redhat.com>
6409 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6410 /proc is faster and sufficient. /sys is still needed for
6413 2007-08-01 Jakub Jelinek <jakub@redhat.com>
6415 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6416 syscall as __fallocate64.
6417 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6418 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6420 2007-07-30 Jakub Jelinek <jakub@redhat.com>
6422 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6425 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6426 if off_t is different rank from size_t.
6428 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6429 uw_frame_state_for): Avoid type punning warnings.
6430 * sysdeps/generic/unwind-dw2-fde-glibc.c
6431 (_Unwind_IteratePhdrCallback): Likewise.
6432 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6433 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6434 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6437 2007-07-31 Ulrich Drepper <drepper@redhat.com>
6439 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6440 total processors using sysfs.
6441 (__get_nprocs): Use sysfs to determine which processors are online.
6443 2007-07-31 Jakub Jelinek <jakub@redhat.com>
6445 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6446 syscall arguments count.
6448 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6450 2007-07-30 Roland McGrath <roland@redhat.com>
6452 * manual/libc.texinfo: Update copyrights, formatting magic, and
6453 @dircategory. From Karl Berry <karl@freefriends.org>.
6455 2007-07-29 Ulrich Drepper <drepper@redhat.com>
6458 * io/Makefile (headers): Add bits/fcntl2.h.
6460 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6462 (__CPU_EQUAL_S): Likewise.
6464 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6465 (tests): Add tst-cpuset.
6466 * posix/sched_cpualloc.c: New file.
6467 * posix/sched_cpufree.c: New file.
6468 * posix/tst-cpuset.c: New file.
6469 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6471 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6472 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6473 macros. Define CPU_*_S macros.
6475 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6477 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6481 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6482 #.0g and value rounded to 1.0.
6483 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6485 2007-07-26 Jakub Jelinek <jakub@redhat.com>
6487 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6488 for int_frac_digits and frac_digits.
6490 * login/logout.c (logout): Avoid aliasing violation.
6491 * login/logwtmp.c (logwtmp): Likewise.
6493 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6495 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6497 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6499 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6501 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6504 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6506 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6508 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6509 char * to avoid warning.
6510 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6512 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6514 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6515 allocate_arrays): Cast second argument to charmap_find_symbol
6516 to char * to avoid warnings.
6518 * locale/programs/repertoire.c (repertoire_new_char): Change
6519 from_nr, to_nr and cnt to unsigned long, adjust printf format
6522 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6523 Cast second argument to new_element to char * to avoid warnings.
6525 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6527 * intl/gettextP.h (struct loaded_domain): Change plural to const
6528 struct expression *.
6529 * intl/plural-eval.c (plural_eval): Change first argument to
6530 const struct expression *.
6531 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6532 argument to const struct expression **.
6533 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6535 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6536 in call to __gettext_free_exp.
6538 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6539 unitialized wstring/wpattern var warnings.
6541 * posix/runtests.c (struct a_test): Make data field const char *.
6543 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6544 vars if not LDBL_MANT_DIG >= 106.
6546 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6548 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6549 __find_specmb to avoid warning.
6551 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6553 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6556 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6559 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6560 tv var when it will be actually used.
6562 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6565 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6566 char array resp. pointer.
6567 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6569 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6570 to const unsigned char **.
6571 (ucs4_to_cns11643): Change second argument to unsigned char *.
6572 * iconvdata/euc-tw.c (BODY): Change endp type to
6573 const unsigned char *.
6574 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6576 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6577 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6578 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6579 types to unsigned char pointers/arrays instead of char.
6580 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6582 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6583 * iconvdata/jis0212.h: Include assert.h.
6584 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6585 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6586 of trying to handle that.
6587 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6589 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6590 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6591 two dimensional const unsigned char arrays.
6592 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6593 Initialize endp to inptr to shut up a warning.
6595 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6598 * time/strptime_l.c (__strptime_internal): Silently ignore
6599 strftime modifiers and field width in recursive calls.
6601 * include/time.h (enum ptime_locale_status): Remove.
6602 (__strptime_internal): Remove decided and era_cnt arguments,
6603 add statep argument.
6604 * time/strptime_l.c (__strptime_internal): Remove decided
6605 and era_cnt arguments, add statep argument. Don't recompute
6606 any fields in recursive calls, only update caller's tm
6607 and state, if recursive call fails, don't change tm nor
6609 (get_alt_number): Adjust.
6610 (recursive): Adjust caller.
6611 (strptime): Likewise.
6612 * time/strptime.c (strptime): Likewise.
6614 2007-07-19 Jakub Jelinek <jakub@redhat.com>
6616 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6617 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6618 if from and to charsets are the same.
6619 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6620 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6621 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6623 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6625 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6626 Don't define wint_t when __need_mbstate_t unless it
6628 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6629 in the typedef if possible.
6630 * wctype/wctype.h (wint_t): Define by including
6631 wchar.h with __need_wint_t instead of including stddef.h
6632 with __need_wint_t and as fallback definining it ourselves.
6633 * iconv/gconv.h (__need_wint_t): Define before including
6635 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6636 or _GLIBCPP_USE_WCHAR_T.
6637 (__need_wchar_t): Don't define
6638 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6639 (__need_wint_t): Don't define before including stddef.h,
6640 define before including wchar.h only if _LIBC or
6641 _GLIBCPP_USE_WCHAR_T.
6642 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6643 * sysdeps/mach/hurd/_G_config.h: Likewise.
6644 * sysdeps/generic/_G_config.h: Likewise.
6645 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6646 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6647 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6648 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6650 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6652 * sysdeps/posix/posix_fallocate64.c: Undefine
6653 __posix_fallocate64_l64 before alias handling.
6654 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6655 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6656 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6657 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6659 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6661 2007-07-23 Jakub Jelinek <jakub@redhat.com>
6663 * locale/programs/ld-collate.c (atwc): New variable.
6664 (add_to_tablewc): New toplevel function, moved from collate_output.
6665 (collate_output): Remove add_to_tablewc nested function.
6667 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6668 (name_insert): New function.
6669 (write_output): Remove hash_table and hash_size vars and name_insert
6672 2007-07-24 Roland McGrath <roland@redhat.com>
6674 * Makerules (install-others-programs-nosubdir): New target.
6675 (install-no-libc.a-nosubdir): Depend on it.
6677 * iconv/Makefile (install-others-programs): Set this instead of
6679 * login/Makefile (install-others-programs): Likewise.
6680 * posix/Makefile (install-others-programs): Likewise.
6682 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6685 2007-07-23 Ulrich Drepper <drepper@redhat.com>
6687 * io/Makefile (tests): Add tst-posix_fallocate.
6688 * io/tst-posix_fallocate.c: New file.
6690 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6693 2007-07-22 Roland McGrath <roland@frob.com>
6695 * hurd/getdport.c: Add missing copyright year update.
6697 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6698 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6700 2007-07-22 Ulrich Drepper <drepper@redhat.com>
6702 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6704 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6705 O_CLOEXEC is needed.
6706 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6707 Avoid additional fcntl to set O_CLOEXEC if not needed.
6708 * nis/nss_compat/compat-initgroups.c: Likewise.
6709 * nis/nss_compat/compat-pwd.c: Likewise.
6710 * nis/nss_compat/compat-spwd.c: Likewise.
6712 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6715 * manual/errno.texi: Change ECANCELED value to 119.
6718 * mach/lock-intern.h: Include <sys/cdefs.h>.
6721 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6725 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6728 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6730 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6732 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6734 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6736 2007-07-21 Ulrich Drepper <drepper@redhat.com>
6738 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6739 descriptor received from nscd.
6741 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6743 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6744 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6745 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6746 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6747 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6748 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6750 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6753 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6756 * login/forkpty.c (forkpty): Close master and slave fds on
6757 fork failure. Patch by
6758 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6760 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6762 * include/features.h (__USE_ISOC95): New define.
6763 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6764 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6765 for -std=iso9899:199409.
6766 * CONFORMANCE: Remove comments about unsupported AMD1.
6768 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6770 * sysdeps/ia64/sched_cpucount.c: New file.
6771 * sysdeps/powerpc/sched_cpucount.c: New file.
6773 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6774 __BEGIN_DECLS/__END_DECLS around the prototype.
6775 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6776 pointer to const cpu_set_t.
6778 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6779 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6780 __need_size_t and include stddef.h.
6781 * sysvipc/sys/msg.h: Likewise.
6782 * posix/sched.h: Likewise.
6783 * hurd/hurd/signal.h (__need_size_t): Define.
6785 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6786 neither does signal.h in pedantic ISO C namespaces. stdio.h
6787 no longer defines wint_t or wchar_t.
6789 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6790 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6791 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6792 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6793 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6794 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6795 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6796 * debug/printf_chk.c (__printf_chk): Likewise.
6797 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6798 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6800 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6803 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6804 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6806 2007-07-16 Jakub Jelinek <jakub@redhat.com>
6809 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6810 * malloc/malloc.h (realloc): Likewise.
6812 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6813 if one of proc_file_chain streams has that fileno.
6814 * stdio-common/Makefile (tests): Add tst-popen2.
6815 * stdio-common/tst-popen2.c: New test.
6817 2007-07-14 Jakub Jelinek <jakub@redhat.com>
6819 * elf/ldconfig.c: Allow GPLv2 or any later version.
6820 * elf/readlib.c: Likewise.
6821 * elf/chroot_canon.c: Likewise.
6822 * elf/cache.c: Likewise.
6823 * nscd/mem.c: Likewise.
6824 * nscd/getpwuid_r.c: Likewise.
6825 * nscd/grpcache.c: Likewise.
6826 * nscd/aicache.c: Likewise.
6827 * nscd/getsrvbynm_r.c: Likewise.
6828 * nscd/nscd.c: Likewise.
6829 * nscd/servicescache.c: Likewise.
6830 * nscd/getsrvbypt_r.c: Likewise.
6831 * nscd/initgrcache.c: Likewise.
6832 * nscd/gethstbyad_r.c: Likewise.
6833 * nscd/gethstbynm2_r.c: Likewise.
6834 * nscd/getgrnam_r.c: Likewise.
6835 * nscd/nscd_setup_thread.c: Likewise.
6836 * nscd/getpwnam_r.c: Likewise.
6837 * nscd/gai.c: Likewise.
6838 * nscd/connections.c: Likewise.
6839 * nscd/dbg_log.c: Likewise.
6840 * nscd/cache.c: Likewise.
6841 * nscd/hstcache.c: Likewise.
6842 * nscd/nscd_conf.c: Likewise.
6843 * nscd/getgrgid_r.c: Likewise.
6844 * nscd/pwdcache.c: Likewise.
6845 * catgets/gencat.c: Likewise.
6846 * locale/programs/linereader.h: Likewise.
6847 * locale/programs/locarchive.c: Likewise.
6848 * locale/programs/ld-paper.c: Likewise.
6849 * locale/programs/locfile-kw.h: Likewise.
6850 * locale/programs/ld-address.c: Likewise.
6851 * locale/programs/xmalloc.c: Likewise.
6852 * locale/programs/ld-time.c: Likewise.
6853 * locale/programs/localedef.c: Likewise.
6854 * locale/programs/simple-hash.c: Likewise.
6855 * locale/programs/xstrdup.c: Likewise.
6856 * locale/programs/ld-numeric.c: Likewise.
6857 * locale/programs/locfile-kw.gperf: Likewise.
6858 * locale/programs/ld-collate.c: Likewise.
6859 * locale/programs/charmap-kw.gperf: Likewise.
6860 * locale/programs/charmap.h: Likewise.
6861 * locale/programs/charmap-kw.h: Likewise.
6862 * locale/programs/config.h: Likewise.
6863 * locale/programs/locfile.c: Likewise.
6864 * locale/programs/ld-ctype.c: Likewise.
6865 * locale/programs/charmap.c: Likewise.
6866 * locale/programs/ld-messages.c: Likewise.
6867 * locale/programs/repertoire.h: Likewise.
6868 * locale/programs/locale.c: Likewise.
6869 * locale/programs/ld-name.c: Likewise.
6870 * locale/programs/linereader.c: Likewise.
6871 * locale/programs/locfile.h: Likewise.
6872 * locale/programs/3level.h: Likewise.
6873 * locale/programs/ld-monetary.c: Likewise.
6874 * locale/programs/ld-measurement.c: Likewise.
6875 * locale/programs/charmap-dir.c: Likewise.
6876 * locale/programs/ld-identification.c: Likewise.
6877 * locale/programs/localedef.h: Likewise.
6878 * locale/programs/charmap-dir.h: Likewise.
6879 * locale/programs/repertoire.c: Likewise.
6880 * locale/programs/simple-hash.h: Likewise.
6881 * locale/programs/ld-telephone.c: Likewise.
6882 * locale/programs/locale-spec.c: Likewise.
6883 * locale/programs/locfile-token.h: Likewise.
6884 * posix/getconf.c: Likewise.
6885 * iconv/dummy-repertoire.c: Likewise.
6886 * iconv/iconv_charmap.c: Likewise.
6887 * iconv/iconvconfig.c: Likewise.
6888 * iconv/iconv_prog.c: Likewise.
6889 * malloc/memusagestat.c: Likewise.
6890 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6892 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6894 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6895 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6896 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6897 check for the first argument.
6899 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6902 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6903 (__tgmath_real_type): Fix if expr is const int or other const
6904 qualified integral type.
6905 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6906 expressions and handle const qualified arguments.
6907 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6908 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6909 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6910 statement expressions.
6911 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6912 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6913 (__TGMATH_UNARY_IMAG): Define.
6914 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6915 * math/Makefile (tests): Add test-tgmath2.
6916 (CFLAGS-test-tgmath2.c): Add.
6917 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6918 count_cfloat, count_cldouble): New variables.
6920 (main): Check number of complex calls as well.
6921 (F(compile_test)): Add complex tests and tests with const qualified
6923 (y, z, ccount): Define.
6924 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6925 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6926 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6927 F(cproj)): New functions.
6928 * math/test-tgmath2.c: New test.
6930 2007-07-11 Jakub Jelinek <jakub@redhat.com>
6933 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6934 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6936 * dlfcn/Makefile (distribute): Add glreflib3.c.
6937 (module-names): Add glreflib3.
6938 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6940 (LDFLAGS_glreflib3.so): New.
6941 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6943 * dlfcn/glreflib3.c: New file.
6945 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6946 returned -1, return NULL.
6947 * intl/explodename.c (_nl_explode_name): Return -1 if
6948 _nl_normalize_codeset failed.
6950 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6952 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6953 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6954 and avoid branch misspredicts for > 31 bytes memset case.
6955 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6956 Remove toc ref to __cache_line_size.
6958 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6959 to get ISA-V2.0 branch hints.
6960 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6961 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6962 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6963 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6964 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6965 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6966 Remove toc ref to __cache_line_size.
6968 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6969 Include math_ldbl_opt.h.
6971 2007-07-10 Ulrich Drepper <drepper@redhat.com>
6974 * time/strptime_l.c (__strptime_internal): Implement greedy
6975 matching of weekday and month names.
6977 2007-07-09 Roland McGrath <roland@redhat.com>
6979 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6980 (ELF_NOTE_ABI): Use it.
6981 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6983 2007-07-09 Ulrich Drepper <drepper@redhat.com>
6985 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6986 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6988 2007-07-07 Ulrich Drepper <drepper@redhat.com>
6991 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6992 in loop to look for conversion specifier to avoid testing of
6994 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6995 * stdio-common/bug18.c: New file.
6996 * stdio-common/bug18a.c: New file.
6997 * stdio-common/bug19.c: New file.
6998 * stdio-common/bug19a.c: New file.
7000 2007-07-05 Mike Frysinger <vapier@gentoo.org>
7002 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7005 2007-07-01 Jakub Jelinek <jakub@redhat.com>
7007 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7008 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7009 Return NULL if mmap failed instead of asserting it does not.
7010 (calloc): Check for integer overflow.
7012 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7015 2007-07-03 Jakub Jelinek <jakub@redhat.com>
7018 * nis/nss-default.c: Include errno.h.
7019 (init): Preserve errno.
7021 2007-07-02 Ulrich Drepper <drepper@redhat.com>
7023 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7025 2007-06-30 Ulrich Drepper <drepper@redhat.com>
7027 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7029 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7031 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7033 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7035 * sysdeps/s390/dl-procinfo.c: New file.
7036 * sysdeps/s390/dl-procinfo.h: New file.
7037 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7039 2007-06-29 Jakub Jelinek <jakub@redhat.com>
7041 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7042 in PT_NOTE segments with multiple notes.
7043 * elf/readelflib.c (process_elf_file): Likewise.
7045 2007-06-22 Ulrich Drepper <drepper@redhat.com>
7047 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7050 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7052 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7054 2007-06-13 Jakub Jelinek <jakub@redhat.com>
7056 * include/link.h: Don't include rtld-lowlevel.h.
7057 (struct link_map): Remove l_scope_lock.
7058 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7059 (_dl_scope_free_list): New field (variable) in _rtld_global.
7060 (DL_LOOKUP_SCOPE_LOCK): Remove.
7061 (_dl_scope_free): New prototype.
7062 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7063 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7064 (_dl_profile_fixup): Likewise.
7065 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7066 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7067 THREAD_GSCOPE_RESET_FLAG around it.
7068 * elf/dl-close.c (_dl_close_worker): Don't use
7069 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7070 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7071 scopes were queued or if l_scope_mem has been abandoned.
7072 * elf/dl-open.c (_dl_scope_free): New function.
7073 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7074 * elf/dl-support.c (_dl_scope_free_list): New variable.
7075 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7076 Remove DL_LOOKUP_SCOPE_LOCK handling.
7077 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7079 * elf/dl-object.c (_dl_new_object): Don't use
7080 __rtld_mrlock_initialize.
7082 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7084 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7086 (rtld_global_ro): Likewise.
7088 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7090 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7091 Move PT_LOAD checking to...
7092 (_dl_addr_inside_object): ... here, new function.
7093 * elf/dl-sym.c (do_sym): If not l_contiguous,
7094 call _dl_addr_inside_object.
7095 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7096 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7097 * elf/dl-open.c (dl_open_worker): Likewise.
7098 (_dl_addr_inside_object): New function if IS_IN_rtld.
7099 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7100 holes are present or are PROT_NONE protected.
7101 * include/link.h (struct link_map): Add l_contiguous field.
7102 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7104 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7105 Tomas Janousek <tjanouse@redhat.com>
7106 Ulrich Drepper <drepper@redhat.com>
7109 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7110 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7112 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7113 unused member a bitmap.
7114 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7115 servers are configured.
7117 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7119 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7121 2007-06-17 Andreas Schwab <schwab@suse.de>
7123 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7125 2007-06-16 Andreas Jaeger <aj@suse.de>
7128 * sysdeps/unix/sysv/linux/sys/ptrace.h
7129 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7130 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7131 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7132 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7133 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7135 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7136 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7137 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7138 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7140 2007-06-16 Ulrich Drepper <drepper@redhat.com>
7143 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7144 determining whether there are IPv4/IPv6 addresses, ignore loopback
7147 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7149 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7150 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7151 as the return type. Change type of "r" variable to CMPtype.
7152 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7153 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7154 * soft-fp/gedf2.c (__gedf2): Likewise.
7155 * soft-fp/gesf2.c (__gesf2): Likewise.
7156 * soft-fp/getf2.c (__getf2): Likewise.
7157 * soft-fp/ledf2.c (__ledf2): Likewise.
7158 * soft-fp/lesf2.c (__lesf2): Likewise.
7159 * soft-fp/letf2.c (__letf2): Likewise.
7160 * soft-fp/unorddf2 (__unorddf2): Likewise.
7161 * soft-fp/unordsf2 (__unordsf2): Likewise.
7162 * soft-fp/unordtf2 (__unordtf2): Likewise.
7164 2007-06-09 Ulrich Drepper <drepper@redhat.com>
7166 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7167 make sure gcc doesn't mess around with this.
7169 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7171 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7173 2007-06-08 Jakub Jelinek <jakub@redhat.com>
7175 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7176 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7177 at most once per _dl_close_worker.
7179 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7181 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7182 __sched_cpucount as const.
7183 * posix/sched_cpucount.c: Adjust.
7185 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7186 instruction for counting bits.
7187 * sysdeps/x86_64/sched_cpucount.c: New file.
7189 2007-06-07 Ulrich Drepper <drepper@redhat.com>
7191 * configure.in: Avoid variable named BASH.
7192 * config.make.in: Likewise.
7193 Patch in part by Mike Frysinger.
7195 2007-06-06 Jakub Jelinek <jakub@redhat.com>
7198 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7199 pseudo-zeros as zero.
7200 * sysdeps/x86_64/ldbl2mpn.c: New file.
7201 * sysdeps/ia64/ldbl2mpn.c: New file.
7203 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7205 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7206 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7207 Remove unreachable code at the end.
7209 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7211 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7212 ldbl-128ibm in comment.
7213 (fpclassifyl): Correct classification of denormals.
7214 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7215 return value for MIN denormal. Rewrite using long double math too
7216 correctly handle denormals and canonicalize the results.
7218 2007-06-05 Jakub Jelinek <jakub@redhat.com>
7220 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7221 (__mpn_construct_long_double): Fix conversion where result ought
7222 to be smaller than __LDBL_MIN__, or the low double should be
7223 denormal. Fix decision where to negate low double - honor round
7225 * stdio-common/tst-sprintf2.c: Include string.h.
7226 (COMPARE_LDBL): Define.
7227 (TEST): Also test whether a string hexadecimal float representation
7228 can be parsed back to the number.
7229 (main): Add a couple of further tests.
7231 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7233 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7234 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7235 is non-zero, but smaller than 2 * __DBL_MIN__.
7236 * stdio-common/tst-sprintf2.c: New test.
7237 * stdio-common/Makefile (tests): Add tst-sprintf2.
7239 * math/test-misc.c (main): Don't run last batch of tests with
7240 IBM long double format.
7242 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7244 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7245 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7246 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7247 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7248 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7249 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7250 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7251 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7252 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7253 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7277 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7279 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7280 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7281 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7282 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7283 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7284 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7285 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7286 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7288 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7290 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7291 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7293 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7294 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7295 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7296 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7297 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7299 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7301 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7302 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7303 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7304 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7306 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7308 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7309 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7311 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7313 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7314 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7315 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7316 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7318 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7320 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7321 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7323 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7325 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7326 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7328 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7329 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7330 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7331 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7333 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7335 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7336 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7337 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7338 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7340 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7342 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7343 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7345 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7346 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7347 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7349 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7351 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7352 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7353 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7354 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7356 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7358 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7359 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7360 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7364 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7365 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7366 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7367 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7368 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7369 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7370 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7371 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7372 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7373 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7375 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7377 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7378 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7380 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7382 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7383 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7385 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7387 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7388 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7389 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7390 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7391 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7392 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7393 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7394 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7395 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7396 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7398 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7400 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7402 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7404 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7405 branch miss-predicts. Ensure that cache line crossing does not impact
7408 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7410 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7411 "../../powerpc32/power4/memcopy.h".
7412 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7413 "../../powerpc32/power4/wordcopy.c".
7415 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7417 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7418 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7419 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7420 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7421 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7422 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7424 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7426 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7428 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7430 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7431 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7432 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7433 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7434 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7435 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7436 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7437 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7439 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7441 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7443 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7445 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7446 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7447 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7448 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7449 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7450 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7451 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7453 2007-05-29 Roland McGrath <roland@redhat.com>
7455 * po/Makefile (po-sed-cmd): New variable.
7456 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7458 2007-05-29 Ulrich Drepper <drepper@redhat.com>
7460 * crypt/md5-crypt.c: Fix comment.
7462 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7463 of crashing. When this is the case or if the reply is malformed,
7464 don't try to close the new file descriptor since it does not
7466 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7468 2007-05-28 Jakub Jelinek <jakub@redhat.com>
7470 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7471 if __NR_utimensat is not defined.
7473 2007-05-26 Ulrich Drepper <drepper@redhat.com>
7475 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7477 2007-05-25 Jakub Jelinek <jakub@redhat.com>
7479 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7480 (open): Fix comment typos. Don't call __open_2 if flags
7481 is a compile time constant without O_CREAT.
7482 (__open64_2): Add nonnull attribute.
7483 (open64): Fix comment typos. Don't call __open64_2 if flags
7484 is a compile time constant without O_CREAT.
7485 (__openat_2): Add nonnull attribute, fix nonnull attribute
7487 (openat): Fix comment typos. Don't call __openat_2 if flags
7488 is a compile time constant without O_CREAT.
7489 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7491 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7492 is a compile time constant without O_CREAT.
7494 2007-05-24 Ulrich Drepper <drepper@redhat.com>
7496 * Makerules (sysd-rules): Define PTW for ptw-* files.
7497 * Versions: Define GLIBC_2.7 for libc.
7498 * include/stdio.h: Declare __fortify_fail.
7499 * debug/fortify_fail.c: New file.
7500 * debug/Makefile (routines): Add fortify_fail.
7501 * debug/chk_fail.c: Use __fortify_fail.
7502 * debug/stack_chk_fail.c: Likewise.
7503 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7504 __openat64_2 for GLIBC_2.7.
7505 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7506 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7507 and fails if necessary.
7508 * io/open64.c: Likewise.
7509 * io/openat.c: Likewise.
7510 * io/openat64.c: Likewise.
7511 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7512 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7513 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7514 * io/bits/fcntl2.h: New file.
7515 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7517 * include/bits/fcntl2.h: New file.
7518 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7520 * sysdeps/unix/sysv/linux/open_2.c: New file.
7522 2007-05-21 Ulrich Drepper <drepper@redhat.com>
7524 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7525 as second parameter to handle_intel.
7527 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7530 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7532 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7533 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7535 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7536 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7537 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7539 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7541 2007-05-21 Jakub Jelinek <jakub@redhat.com>
7544 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7545 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7546 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7548 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7551 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7552 reinitialize workend at the start of each do_positional format spec
7553 loop, free workstart before do_positional loops.
7554 (printf_unknown): Fix size of work_buffer.
7555 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7557 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7558 (public_sET_STATe): If ms->version < 3, put all chunks into
7559 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7562 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7563 * malloc/hooks.c: Likewise.
7564 * malloc/arena.c: Likewise.
7565 * malloc/malloc.c (do_check_malloc_state): Don't assert
7566 n_mmaps is not greater than n_mmaps_max. This removes the need
7567 for the previous change.
7569 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7572 2007-05-19 Ulrich Drepper <drepper@redhat.com>
7574 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7575 Define for kernel >= 2.6.22.
7577 2007-05-18 Ulrich Drepper <drepper@redhat.com>
7579 * elf/dl-close.c (_dl_close_worker): When removing object from
7580 global scope, wait for all lookups to finish afterwards.
7581 * elf/dl-open.c (add_to_global): When global scope array must
7582 grow, allocate a new one and free old array only after all
7584 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7585 (_dl_lookup_symbol_x): Likewise.
7586 * elf/dl-support.c: Define _dl_wait_lookup_done.
7587 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7588 _dl_wait_lookup_done.
7590 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7591 not overlapping with arena.
7593 * malloc/mcheck.c (reallochook): If size==0, free the block.
7595 * rt/tst-shm.c: Use fstat64 instead of fstat.
7597 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7598 __NR_sync_file_range is not defined.
7600 2007-05-17 Ulrich Drepper <drepper@redhat.com>
7602 Dummy files to prevent stub versions from being used.
7603 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7604 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7605 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7606 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7608 * version.h (VERSION): Set to 2.6.90.
7610 2007-05-14 Ulrich Drepper <drepper@redhat.com>
7612 * version.h (VERSION): Define to 2.6.
7613 * include/features.h (__GLIBC_MINOR__): Define to 6.
7615 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7617 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7620 2007-05-13 Ulrich Drepper <drepper@redhat.com>
7622 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7623 number of mmaps. n_mmaps_max is the target.
7624 * malloc/hooks.c: Likewise.
7625 * malloc/arena.c: Likewise.
7627 2007-05-12 Andreas Jaeger <aj@suse.de>
7629 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7632 2007-05-11 Ulrich Drepper <drepper@redhat.com>
7634 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7635 adding new variables.
7637 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7638 optimize. Completely extend global scope array before making the
7639 new entries visible.
7641 2007-05-10 Ulrich Drepper <drepper@redhat.com>
7643 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7644 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7647 * include/link.h: Move l_version and l_nversion members around to
7650 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7652 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7653 (__sched_setaffinity_new): If syscall was successful and
7654 RESET_VGETCPU_CACHE is defined, use it before returning.
7655 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7657 * io/sys/stat.h: Make sure struct timespec is defined for
7660 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7662 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7663 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7664 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7665 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7666 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7667 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7668 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7669 * io/sys/stat.h: Declare utimensat, futimens.
7670 * io/utimensat.c: New file.
7671 * io/futimens.c: New file.
7672 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7673 * sysdeps/unix/sysv/linux/futimens.c: New file.
7674 * io/Makefile (routines): Add utimensat, futimens.
7675 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7676 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7677 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7680 * include/sys/cdefs.h: Redefine __nonnull so that test for
7681 incorrect parameters in the libc code itself are not omitted.
7683 2007-05-09 Jakub Jelinek <jakub@redhat.com>
7685 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7686 exception in addition to inexact when asked to raise only FE_INEXACT.
7689 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7692 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7695 * string/strfry.c (strfry): Make result more random.
7697 2007-05-07 Richard Henderson <rth@redhat.com>
7699 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7700 if __NO_LONG_DOUBLE_MATH.
7701 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7702 available in the compiler, add .arch directive to the assembly.
7704 2007-05-07 Jakub Jelinek <jakub@redhat.com>
7706 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7707 compat_symbol to GLIBC_2_1.
7708 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7709 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7710 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7711 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7712 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7713 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7714 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7716 (__isnanl): New compat_symbol.
7718 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7719 Jakub Jelinek <jakub@redhat.com>
7721 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7722 (new_heap): Initialize mprotect_size.
7723 (grow_heap): When growing, only mprotect from mprotect_size till
7724 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7725 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7727 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
7728 Peter Bergner <bergner@us.ibm.com>
7730 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7731 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7732 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7733 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7734 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7735 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7736 Call __fe_mask_env() if all FP exceptions disabled.
7737 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7738 from old FPSCR to new fenv to propagate DFP rounding modes.
7739 Call __fe_mask_env() if FP exceptions previously enabled.
7740 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7741 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7742 transitioning from all exceptions disabled to any exception enabled
7744 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7745 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7746 when transitioning from all exceptions disabled to any exception
7747 enabled or visa versa.
7748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7755 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7758 * posix/unistd.h: Remove __THROW from fdatasync.
7760 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7763 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7765 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7767 * stdio-common/vfprintf.c (process_string_arg): Optimize
7768 ridiculous precision in wide char code printing multi-byte string.
7769 Reported by Jim Meyering <jim@meyering.net>.
7772 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7773 boundaries to work around systems with overlapping binary loading.
7774 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7776 2007-05-04 Ulrich Drepper <drepper@redhat.com>
7778 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7779 __mbsnrtowcs after last change.
7781 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7782 (get_ident): Likewise.
7784 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7786 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7787 with setting the sticky bit.
7788 * math/test-misc.c (main): Add more truncation tests.
7790 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
7792 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7793 double in the function declaration.
7794 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7795 double in the function declaration.
7796 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7797 float in the function declaration.
7798 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7799 float in the function declaration.
7801 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7802 denormal operands. Do not generate FP_EX_DENORM exception.
7803 (FP_UNPACK_RAW_EP): Ditto.
7804 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7805 undefined _FP_UNPACK_RAW_E.
7806 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7807 undefined _FP_UNPACK_RAW_EP.
7808 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7809 undefined _FP_PACK_RAW_E.
7810 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7811 undefined _FP_PACK_RAW_EP.
7813 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7815 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7818 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
7819 Jakub Jelinek <jakub@redhat.com>
7821 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7822 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7824 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7826 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7828 * math/test-misc.c (main): Add tests for rounding long double
7829 values close to smallest double denormalized value to double.
7831 2007-04-30 Joseph Myers <joseph@codesourcery.com>
7833 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7834 condition for truncating to 0. Set sticky bit for such
7837 2007-05-02 Jakub Jelinek <jakub@redhat.com>
7839 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7840 fixed length array for ignore.
7842 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7845 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7846 stack for large precisions.
7847 * stdio-common/test-vfprintf.c (main): Add test for large
7850 2007-04-30 Jakub Jelinek <jakub@redhat.com>
7852 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7854 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7857 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7858 account in the size check.
7859 * resolv/tst-inet_ntop.c: New test.
7860 * resolv/Makefile (tests): Add tst-inet_ntop.
7862 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7863 Jakub Jelinek <jakub@redhat.com>
7866 * malloc/malloc.c: Keep separate list for first blocks on the bin
7867 lists with a given size. This helps skipping over list elements
7868 we know won't fit in two places.
7869 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7871 2007-04-28 Ulrich Drepper <drepper@redhat.com>
7874 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7875 label to Teredo tunnel addresses 2001://32.
7877 2007-04-27 Ulrich Drepper <drepper@redhat.com>
7879 * locale/programs/ld-collate.c (collate_read): Allow order_start
7882 * locale/programs/ld-collate.c (collate_read): Fix printing of
7886 * locale/C-translit.h.in: Add entry for U2044.
7889 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7890 hexa-decimal floats without exponent.
7891 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7893 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7895 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7896 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7897 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7898 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7900 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7903 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7905 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7906 of 0 after the out_fail label.
7908 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7911 * iconv/gconv_charset.h (strip): Allow ':'.
7912 * iconv/iconv_open.c (iconv_open): Adjust comment.
7914 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7916 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7919 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7922 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7923 alignment of buffer and tmp_buffer.
7924 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7925 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7926 alignment of buffer.
7927 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7928 bigger than INT_MAX.
7929 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7930 h_errnop arguments. Fail if buflen is too small.
7931 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7933 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7936 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7937 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7939 2007-04-22 Roland McGrath <roland@redhat.com>
7941 * elf/elf.h (NT_PRXFPREG): New macro.
7943 2007-04-19 Andreas Jaeger <aj@suse.de>
7946 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7947 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7950 2007-04-19 Ulrich Drepper <drepper@redhat.com>
7952 * include/sys/mman.h: Mark madvise hidden.
7953 * misc/madvise.c: Add libc_hidden_def.
7955 2007-04-06 Jakub Jelinek <jakub@redhat.com>
7957 * nis/nis_domain_of.c (__nis_domain_of): New function.
7958 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7959 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7960 * nis/nis_call.c (rec_dirsearch): Likewise.
7961 (first_shoot): Likewise. Remove search_parent_first argument.
7962 (struct nis_server_cache): Rename search_parent_first field
7964 (nis_server_cache_search, nis_server_cache_add): Rename
7965 search_parent_first argument to search_parent.
7966 (__nisfind_server): Likewise. If search_parent, call
7969 2007-04-18 Ulrich Drepper <drepper@redhat.com>
7971 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7973 2007-04-17 Ulrich Drepper <drepper@redhat.com>
7976 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7978 2007-04-16 Ulrich Drepper <drepper@redhat.com>
7981 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7983 2007-04-15 Jakub Jelinek <jakub@redhat.com>
7985 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7986 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7987 current number of locales in SUPPORTED.
7988 (create_archive): Initialize serial.
7989 (enlarge_archive): Preserve aliases rather than duplicating
7992 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7994 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7995 after _IO_un_link, not before it.
7997 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7998 special case handling when wcp == wstartp + 1. Fix a comment typo.
7999 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8001 2007-03-30 Jakub Jelinek <jakub@redhat.com>
8003 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8004 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8005 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8007 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8008 _IO_file_xsgetn_maybe_mmap): Likewise.
8009 * libio/oldfileops.c (old_do_write): Likewise.
8010 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8011 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8012 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8013 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8014 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8015 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8016 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8017 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8018 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8019 _IO_file_underflow, _IO_file_underflow_mmap,
8020 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8021 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8022 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8023 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8024 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8025 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8026 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8027 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8028 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8029 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8030 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8031 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8032 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8033 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8034 _IO_adjust_column_internal, _IO_default_uflow_internal,
8035 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8036 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8037 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8038 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8039 _IO_file_close_it_internal, _IO_file_underflow_internal,
8040 _IO_file_overflow_internal, _IO_file_attach_internal,
8041 _IO_file_fopen_internal, _IO_file_sync_internal,
8042 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8043 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8044 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8045 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8046 _IO_seekpos_unlocked): Likewise.
8047 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8048 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8050 2007-04-16 Jakub Jelinek <jakub@redhat.com>
8052 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8053 argument in xmalloc size computation.
8055 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8057 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8058 math_opt_barrier and math_force_eval macros.
8060 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8063 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8064 * sysdeps/i386/fpu/math_private.h: New file.
8065 * sysdeps/x86_64/fpu/math_private.h: New file.
8066 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8067 math_force_eval macros. Use "+m" constraint on asm rather than
8069 * math/s_nextafter.c (__nextafter): Likewise.
8070 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8072 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8073 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8074 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8075 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8076 math_opt_barrier and math_force_eval macros.
8077 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8078 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8079 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8080 (__nexttoward): Use math_opt_barrier and
8081 math_force_eval macros. Use "+m" constraint on asm rather than
8082 "=m" and "m". Only use asm to force double result if
8083 FLT_EVAL_METHOD is 2.
8084 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8085 (__nexttowardf): Use math_opt_barrier and
8086 math_force_eval macros. Use "+m" constraint on asm rather than
8087 "=m" and "m". Only use asm to force double result if
8088 FLT_EVAL_METHOD is not 0.
8089 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8090 (__nexttowardf): Use math_opt_barrier and
8091 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8092 x to float using asm.
8093 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8094 (__nldbl_nexttowardf): Use math_opt_barrier and
8095 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8096 x to float using asm.
8097 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8098 (__nexttowardf): Use math_opt_barrier and math_force_eval
8099 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8100 * math/bug-nextafter.c (zero, inf): New variables.
8101 (main): Add new tests.
8102 * math/bug-nexttoward.c (zero, inf): New variables.
8103 (main): Add new tests.
8105 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8108 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8109 exceptions both in SW and MXCSR.
8110 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8111 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8112 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8113 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8114 in MXCSR if SSE is available.
8115 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8117 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8119 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8120 Return 0 rather than 1.
8121 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8122 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8123 * math/test-fenv.c (feholdexcept_tests): New function.
8126 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8129 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8132 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8135 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8136 Reported by David Anderson <davea42@earthlink.net>.
8138 2007-04-07 Ulrich Drepper <drepper@redhat.com>
8140 * posix/sys/wait.h: Remove unnecessary forward declaration.
8142 2007-04-05 Jakub Jelinek <jakub@redhat.com>
8144 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8145 with obj->do_servers after first_shoot.
8147 2007-04-03 Ulrich Drepper <drepper@redhat.com>
8149 * posix/Makefile (routines): Add sched_cpucount.
8150 (tests): Add tst-cpucount.
8151 * posix/sched_cpucount.c: New file.
8152 * posix/tst-cpucount.c: New file.
8153 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8154 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8155 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8156 * posix/sched.h: Define CPU_COUNT.
8158 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8160 * posix/fnmatch.c (STRUCT): Define.
8161 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8162 * posix/fnmatch_loop.c (struct STRUCT): New type.
8163 (FCT): Add ends argument. If ends != NULL and normal * is
8164 seen in the pattern, store current pattern and string pointers
8165 and return. Adjust recursive calls.
8166 (EXT): Adjust FCT callers.
8167 (STRUCT): Undef at the end of the file.
8168 * posix/Makefile (tests): Add tst-fnmatch2.
8169 * posix/tst-fnmatch2.c: New test.
8171 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8173 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8176 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8177 Change last argument to unsigned int.
8179 2007-03-23 Jakub Jelinek <jakub@redhat.com>
8181 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8183 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8185 * config.h.in (HAVE_LIBCAP): Add.
8186 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8188 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8189 free_caps. Cast away const from 4th cap_set_flag argument.
8191 2007-03-26 Ulrich Drepper <drepper@redhat.com>
8193 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8195 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8196 Add sync_file_range.
8197 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8199 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8201 * sysdeps/powerpc/bits/atomic.h
8202 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8203 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8204 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8205 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8206 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8207 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8208 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8209 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8210 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8211 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8212 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8213 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8214 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8215 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8216 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8217 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8218 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8219 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8220 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8221 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8223 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8225 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8226 (__cache_line_size): Define the variable here. Add
8227 attribute_hidden, remove weak_extern.
8228 (__libc_start_main): Set __cache_line_size
8230 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8231 (__cache_line_size): Define the variable here. Add
8232 attribute_hidden, remove weak_extern.
8233 (DL_PLATFORM_AUXV): Set __cache_line_size
8235 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8236 weak_extern, add attribute_hidden.
8237 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8239 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8241 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8243 2007-03-26 Jakub Jelinek <jakub@redhat.com>
8246 * timezone/africa: Update from tzdata2007d.
8247 * timezone/asia: Likewise.
8248 * timezone/australasia: Likewise.
8249 * timezone/backward: Likewise.
8250 * timezone/europe: Likewise.
8251 * timezone/iso3166.tab: Likewise.
8252 * timezone/leapseconds: Likewise.
8253 * timezone/northamerica: Likewise.
8254 * timezone/southamerica: Likewise.
8255 * timezone/zone.tab: Likewise.
8257 * timezone/private.h: Update from tzcode2007d.
8258 * timezone/zdump.c: Likewise.
8259 * timezone/zic.c: Likewise.
8261 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8263 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8264 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8266 (nis_server_cache_search, nis_server_cache_add): New functions.
8267 (__nisfind_server): Use them. Add dbp and flags argument, if
8268 call __nisbind_create.
8269 (__nisbind_create): Add server_used and current_ep arguments,
8270 only call __nis_findfastest if server_used is ~0.
8271 (__do_niscall2, __prepare_niscall): Adjust callers.
8272 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8273 ckey_cache_euid, ckey_cache_lock): New variables.
8274 (get_ckey): New function.
8275 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8276 __pmap_getnisport. Save __pmap_getnisport result in
8277 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8279 * nis/nis_lookup.c (nis_lookup): Likewise.
8280 * nis/nis_table.c (nis_list): Likewise.
8281 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8284 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8285 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8286 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8287 _nss_nisplus_getservbyport_r): Likewise.
8288 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8289 _nss_nisplus_getnetbyaddr_r): Likewise.
8290 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8291 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8292 _nss_nisplus_getntohost_r): Likewise.
8293 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8294 _nss_nisplus_getrpcbynumber_r): Likewise.
8296 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8298 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8299 * configure: Rebuilt.
8301 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8303 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8305 2006-06-07 Joseph Myers <joseph@codesourcery.com>
8308 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8311 2007-03-18 Jakub Jelinek <jakub@redhat.com>
8313 * nscd/gai.c: Include alloca.h.
8314 (__libc_use_alloca): Define.
8316 2007-03-16 Jakub Jelinek <jakub@redhat.com>
8318 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8320 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8321 (DL_DST_REQUIRED): Adjust user.
8323 * include/dlfcn.h (struct link_map): New forward decl.
8325 * inet/getnameinfo.c: Include stddef.h.
8326 (getnameinfo): Use offsetof.
8328 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8330 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8332 * string/strerror_l.c: Include stdlib.h.
8334 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8335 * config.make.in (gnu89-inline-CFLAGS): New variable.
8336 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8338 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8339 * argp/argp.h: Use it.
8340 * bits/mathinline.h: Likewise.
8341 * bits/sigset.h: Likewise.
8342 * bits/string.h: Likewise.
8343 * ctype/ctype.h: Likewise.
8344 * hurd/hurd.h: Likewise.
8345 * hurd/hurd/fd.h: Likewise.
8346 * hurd/hurd/port.h: Likewise.
8347 * hurd/hurd/signal.h: Likewise.
8348 * hurd/hurd/threadvar.h: Likewise.
8349 * hurd/hurd/userlink.h: Likewise.
8350 * io/sys/stat.h: Likewise.
8351 * libio/bits/stdio.h: Likewise.
8352 * libio/bits/stdio2.h: Likewise.
8353 * mach/lock-intern.h: Likewise.
8354 * mach/mach/mig_support.h: Likewise.
8355 * math/bits/cmathcalls.h: Likewise.
8356 * posix/bits/unistd.h: Likewise.
8357 * socket/bits/socket2.h: Likewise.
8358 * stdlib/bits/stdlib.h: Likewise.
8359 * stdlib/stdlib.h: Likewise.
8360 * string/argz.h: Likewise.
8361 * string/bits/string2.h: Likewise.
8362 * string/bits/string3.h: Likewise.
8363 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8364 * sysdeps/generic/inttypes.h: Likewise.
8365 * sysdeps/generic/machine-lock.h: Likewise.
8366 * sysdeps/generic/machine-sp.h: Likewise.
8367 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8368 * sysdeps/i386/i486/bits/string.h: Likewise.
8369 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8370 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8371 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8372 * sysdeps/mach/i386/machine-lock.h: Likewise.
8373 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8374 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8375 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8376 * sysdeps/s390/bits/string.h: Likewise.
8377 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8378 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8379 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8380 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8381 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8382 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8383 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8384 * wcsmbs/bits/wchar2.h: Likewise.
8385 * wcsmbs/wchar.h: Likewise.
8386 * stdlib/gmp.h: Likewise. Include <features.h> to get
8387 __extern_inline definition.
8389 2007-03-15 Jakub Jelinek <jakub@redhat.com>
8391 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8395 * math/libm-test.inc (log_test): Test -Inf and NaN.
8396 (log10_test, log1p_test, log2_test): Test -Inf.
8397 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8398 FE_INVALID when argument is qNaN.
8399 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8400 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8401 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8402 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8403 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8404 testb $4, %ah and jump if non-zero.
8405 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8406 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8409 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8410 ancestors with the same depths.
8411 Patch by Niels Moeller <nisse@lysator.liu.se>.
8412 (filter_doc): Don't crash if argp is NULL.
8413 * argp/Makefile (tests): Add tst-argp2.
8414 * argp/tst-argp2.c: New test.
8417 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8419 (updwtmp_file): Likewise.
8422 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8423 (inet6_opt_append): Don't check extlen is big enough if extbuf
8425 (inet6_opt_finish): Likewise.
8426 * inet/Makefile (tests): Add test-inet6_opt.
8427 * inet/test-inet6_opt.c: New test.
8429 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8430 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8431 NLMSG_ERR. Instead use a page sized buffer.
8432 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8435 2007-03-14 Richard Henderson <rth@redhat.com>
8437 * sysdeps/alpha/fpu/s_llround.c: New file.
8438 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8439 * sysdeps/alpha/fpu/s_lround.c: New file.
8440 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8441 * sysdeps/alpha/fpu/s_round.c: New file.
8442 * sysdeps/alpha/fpu/s_roundf.c: New file.
8443 * sysdeps/alpha/fpu/s_trunc.c: New file.
8444 * sysdeps/alpha/fpu/s_truncf.c: New file.
8446 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8447 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8448 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8449 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8450 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8451 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8453 * sysdeps/alpha/fpu/s_fmax.S: New file.
8454 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8455 * sysdeps/alpha/fpu/s_fmin.S: New file.
8456 * sysdeps/alpha/fpu/s_fminf.S: New file.
8457 * sysdeps/alpha/fpu/s_isnan.c: New file.
8458 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8459 * sysdeps/alpha/fpu/s_llrint.c: New file.
8460 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8461 * sysdeps/alpha/fpu/s_lrint.c: New file.
8462 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8463 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8464 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8466 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8467 (__fdimf, fdimf, __fdim, fdim): Remove.
8468 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8469 (__isnanf, __isnan, __isnanl): New.
8471 2007-03-13 Richard Henderson <rth@redhat.com>
8473 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8475 2007-03-13 Richard Henderson <rth@redhat.com>
8477 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8478 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8479 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8480 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8481 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8482 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8484 2007-03-13 Richard Henderson <rth@redhat.com>
8486 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8487 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8488 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8489 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8490 Move to dl-auxv.h; initialize instead of extern weak.
8491 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8493 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8494 Extern instead of initialized.
8496 2007-03-13 Richard Henderson <rth@redhat.com>
8498 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8499 __sigsuspend_nocancel.
8501 2007-03-06 Ulrich Drepper <drepper@redhat.com>
8503 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8504 172.16/12 address range.
8506 2007-03-02 Jakub Jelinek <jakub@redhat.com>
8508 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8509 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8512 2007-03-01 Jakub Jelinek <jakub@redhat.com>
8515 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8517 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8519 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8520 for x qNaN and y either +-inf or non-integer value.
8521 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8522 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8523 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8525 2007-02-10 Mike Frysinger <vapier@gentoo.org>
8527 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8528 from sysdep_headers.
8530 2007-02-28 Jakub Jelinek <jakub@redhat.com>
8532 * time/tzfile.c (find_transition): Instead of a linear search try to
8533 guess the transition index, use a linear search if the result is at
8534 most 10 transitions away from the guess or binary search otherwise.
8536 2007-02-27 Jakub Jelinek <jakub@redhat.com>
8538 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8539 memory reallocation.
8541 2007-02-21 Ulrich Drepper <drepper@redhat.com>
8543 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8545 Optimize use of TOLOWER.
8548 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8549 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8550 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8553 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8554 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8557 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8558 (open_dir_stream): Likewise.
8559 * io/Makefile (tests): Add bug-ftw5.
8560 * io/bug-ftw5.c: New file.
8562 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8563 * nscd/servicescache.c (cache_addserv): Likewise.
8565 * nscd/grpcache.c (cache_addgr): In case a record changed on
8566 refresh, adjust key_copy.
8569 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8570 refresh, adjust key_copy.
8573 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8575 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8577 2007-02-19 Ulrich Drepper <drepper@redhat.com>
8579 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8582 * stdio-common/vfscanf.c: Small cleanups throughout.
8584 2007-02-18 Ulrich Drepper <drepper@redhat.com>
8587 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8588 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8589 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8590 Patch by Jared Casper <jaredcasper@gmail.com>.
8592 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8593 * sysdeps/unix/opendir.c: Likewise.
8594 * sysdeps/unix/readdir.c: Likewise.
8597 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8599 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8601 * stdio-common/vfscanf.c: Fix problems in width accounting.
8602 * stdio-common/tst-sscanf.c (double_tests): New tests.
8603 (main): Hook them up.
8605 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8606 More simplifications of floating-point reader.
8608 * stdio-common/Makefile (tests): Add tst-swscanf.
8609 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8611 * stdio-common/tst-swscanf.c: New file.
8613 2007-02-17 Ulrich Drepper <drepper@redhat.com>
8616 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8617 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8618 Remove using for __jmp_buf_tag.
8619 * locale/locale.h (struct lconv): Also define in std namespace.
8620 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8623 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8624 using __libc_enable_secure.
8627 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8630 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8631 of names for ellipsises.
8634 * malloc/memusage.sh: Cleanups.
8635 * debug/xtrace.sh: Quoting and trap changes.
8637 2007-02-16 Ulrich Drepper <drepper@redhat.com>
8639 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8641 * locale/iso-3166.def: Update entry for Serbia.
8642 * locale/iso-4217.def: Define RSD, remove CSD.
8644 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8645 and 64-bit operations.
8648 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8651 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8654 2007-02-15 Ulrich Drepper <drepper@redhat.com>
8657 * assert/assert.h (assert): Simplify.
8658 (assert_perror): Likewise.
8659 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8661 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8664 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8665 change: don't pass NULL in place of an integer.
8667 2007-02-02 Bruno Haible <bruno@clisp.org>
8670 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8671 Add mapping for U+327E.
8672 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8673 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8674 mapping of 0xD9 0xE8.
8675 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8677 Reported by Jungshik Shin <jungshik@google.com>.
8680 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8681 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8682 Reported by Jungshik Shin <jungshik@google.com>.
8684 2007-02-14 Ulrich Drepper <drepper@redhat.com>
8686 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8690 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8691 byte variants. Patch mostly be tom@tommay.net.
8693 2007-02-14 Jakub Jelinek <jakub@redhat.com>
8696 * posix/glob.c (attribute_hidden): Define if not defined.
8697 (glob): Unescape dirname, filename or username when needed and not
8698 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8699 is NULL. Handle unescaped [ in pattern without closing ].
8700 Don't pass GLOB_CHECK down to recursive glob for directories.
8701 (__glob_pattern_type): New function.
8702 (__glob_pattern_p): Implement using __glob_pattern_type.
8703 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8704 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8705 Remove unreachable code.
8706 * posix/globtest.sh: Add a couple of new tests.
8708 2007-02-13 Ulrich Drepper <drepper@redhat.com>
8710 * po/ru.po: Update from translation team.
8712 2007-02-12 Jakub Jelinek <jakub@redhat.com>
8714 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8715 to the list of i486+ CPUs.
8716 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8718 2007-02-12 Ulrich Drepper <drepper@redhat.com>
8720 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8721 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8724 2007-02-09 Ulrich Drepper <drepper@redhat.com>
8726 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8728 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8729 * resolv/res_mkquery.c: Define __res_nopt.
8730 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8731 try adding EDNS0 record.
8732 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8733 EDNS0 record was send make sure we don't try it again.
8734 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8735 * include/resolv.h: Declare __res_nopt.
8737 2007-02-08 Jakub Jelinek <jakub@redhat.com>
8740 * time/strptime_l.c (__strptime_internal): Set have_mon for
8741 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8742 have been computed from tm_yday and tm_year. Don't crash
8743 in day_of_the_week or day_of_the_year if not have_mon
8744 and tm_mon contains bogus value.
8745 * time/Makefile (tests): Add tst-strptime3.
8746 * time/tst-strptime3.c: New test.
8748 2007-02-05 Jakub Jelinek <jakub@redhat.com>
8751 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8752 bit for RE_HAT_LISTS_NOT_NEWLINE.
8753 (build_charclass_op): Remove bogus comment.
8754 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8755 * posix/bug-regex27.c: New test.
8756 * posix/bug-regex28.c: New test.
8758 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8760 * po/sv.po: Update from translation team.
8762 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8764 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8766 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8768 * include/locale.h (__uselocale): Add libc_hidden_proto.
8769 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8771 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8774 2007-02-01 Ulrich Drepper <drepper@redhat.com>
8776 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8778 (PTR_DEMANGLE): Real definition now that it's not the same as
8780 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8782 * string/strerror_l.c: New file.
8783 * string/Makefile (routines): Add strerror_l.
8784 * string/string.h: Declare strerror_l.
8785 * string/Versions: Export strerror_l for GLIBC_2.6.
8787 2007-01-31 Ulrich Drepper <drepper@redhat.com>
8789 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8790 as parameter. Construct request record. Try sending request
8791 before the first poll use, it usually succeeds. Adjust all
8793 * nscd/nscd-client.h: Define MAXKEYLEN.
8794 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8796 2007-01-31 Jakub Jelinek <jakub@redhat.com>
8798 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8800 * nscd/nscd_helper.c: Include string.h.
8801 (__nscd_cache_search): Remove const qualifier from return value.
8802 On strict alignment architectures check hash entry and data head
8804 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8805 mmapped data during GC cycle contains garbage. If
8806 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8807 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8809 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8810 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8811 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8812 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8813 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8815 2007-01-30 Ulrich Drepper <drepper@redhat.com>
8817 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8819 2007-01-26 Ulrich Drepper <drepper@redhat.com>
8821 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8822 names not numbers in cfi_*.
8824 2007-01-26 Andreas Jaeger <aj@suse.de>
8826 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8827 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8828 Correct values of PER_HPUX and PER_OSF4.
8830 2007-01-24 Ulrich Drepper <drepper@redhat.com>
8832 * elf/dl-minimal.c: Undefine _itoa first.
8833 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8834 * malloc/mtrace.c: Revert last change.
8835 * posix/wordexp.c: Likewise.
8837 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8839 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8840 and __geode__ to the list of i486+ CPUs.
8841 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8843 2007-01-23 Ulrich Drepper <drepper@redhat.com>
8845 * stdio-common/_itoa.c: Include <limits.h>.
8846 * stdio-common/_itowa.c: Likewise.
8848 2007-01-22 Ulrich Drepper <drepper@redhat.com>
8850 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8852 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8854 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8856 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8860 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8861 * stdio-common/Makefile (tests): Add bug17.
8862 * stdio-common/bug17.c: New file.
8864 2007-01-19 Ulrich Drepper <drepper@redhat.com>
8866 * iconvdata/brf.c: New file.
8867 * iconvdata/testdata/BRF: New file.
8868 * iconvdata/testdata/BRF..UTF8: New file.
8869 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8870 * iconvdata/Makefile: Add rules to build BRF.
8871 * iconvdata/TESTS: Add BRF entry.
8872 * iconvdata/gconv-modules: Likewise.
8873 * iconvdata/tst-tables.sh: Likewise.
8875 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8877 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8878 type `long long int', not `long int'.
8881 2007-01-18 Ulrich Drepper <drepper@redhat.com>
8883 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8884 of values on 64-bit platforms which are too large.
8886 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8887 Joe Kerian <jkerian@us.us.ibm.com>
8890 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8891 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8892 (__copysignl): Use signbit() for comparison.
8893 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8894 SET_LDOUBLE_WORDS64.
8897 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8898 (__ceill): Remove calls to fegetround(), fesetround().
8899 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8900 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8901 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8903 2007-01-17 Jakub Jelinek <jakub@redhat.com>
8905 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8907 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8909 2007-01-17 Ulrich Drepper <drepper@redhat.com>
8911 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8913 * csu/libc-start.c: Likewise.
8915 2007-01-16 Ulrich Drepper <drepper@redhat.com>
8917 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8920 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8922 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8924 (handle_request): Remove unnecessary tests.
8926 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8928 2007-01-15 Jakub Jelinek <jakub@redhat.com>
8930 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8931 workbits in semi-raw fraction.
8933 * math/test-misc.c: Add new tests.
8935 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8937 * math/basic-test.c: Include test-skeleton.c.
8938 (TEST_TRUNC): Define.
8939 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8940 (main): Rename to ...
8941 (do_test): ...this. Run new tests.
8942 (TEST_FUNCTION): Define.
8944 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8945 Joe Kerian <jkerian@us.us.ibm.com>
8948 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8949 handling for high words.
8950 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8951 and overflow for infinity.
8953 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8955 * nscd/connections.c (handle_request): Add a __builtin_expect.
8957 * nscd/connections.c (serv2db): Change type into structure which
8958 also says whether this is a request for data. Renamed to
8959 servinfo. All users changed.
8960 (handle_request): Much simpler test whether we should search the cache.
8962 * nscd/connections.c (handle_request): Fix thinko in selinux test
8965 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8966 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8967 it before getting dl_load_lock and then relock.
8968 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8969 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8970 case we unlocked the scope.
8971 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8972 _dl_lookup_symbol_x in case we locked the scope.
8973 (_dl_profile_fixup): Likewise.
8974 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8975 set DL_LOOKUP_SCOPE_LOCK.
8977 2007-01-13 Ulrich Drepper <drepper@redhat.com>
8979 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8980 CFLAGS-getsrvbynpt_r.c.
8981 * nscd/getsrvbynm_r.c: New file.
8982 * nscd/getsrvbypt_r.c: New file.
8983 * nscd/nscd_getserv_r.c: New file.
8984 * nscd/servicescache.c: New file.
8985 * nscd/Makefile (routines): Add nscd_getserv_r.
8986 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8987 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8988 CFLAGS-getsrvbypt_r.c.
8989 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8990 table. Add entries for services database.
8991 * nscd/connections.c (serv2str): Mark as const. Add entries for
8993 (dbs): Add .reset_res and servdb initialization.
8994 (serv2db): Add entries for services database.
8995 (verify_persistent_db): Accept dbnr == servdb.
8996 (invalidate_cache): Rewrite database name recognition to use a table.
8997 Call res_init() if .reset_res is set for database.
8998 (handle_request): Add code to handle services database.
8999 * nscd/gai.c: Don't define __getservbyname_r.
9000 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9001 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9002 (serv_response_header): Define.
9003 (struct datahead): Add serv_response_header member.
9004 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9006 * nscd/nscd.conf: Add entries for services database.
9007 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9008 Declare serv_iov_disabled.
9009 Declare addservbyname, readdservbyname, addservbyport, and
9011 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9012 (find_db): Fix error message.
9013 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9014 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9015 * nscd/selinux.c (perms): Add entries for services database.
9016 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9017 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9019 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9020 * nscd/hstcache.c: Likewise.
9021 * nscd/pwdcache.c: Likewise.
9023 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9024 computation of keylen.
9026 * include/string.h: Only redefine strndupa if this is really for
9029 2007-01-12 Ulrich Drepper <drepper@redhat.com>
9031 * nscd/nscd_gethst_r.c: Minor cleanups.
9033 * nscd/connections.c (handle_request): Check selinux permissions
9034 for all non-admin commands.
9036 * sysdeps/i386/i486/bits/atomic.h: Define
9037 atomic_compare_and_exchange_val_acq,
9038 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9039 using __sync_* built-ins for gcc >= 4.1.
9040 * sysdeps/x86_64/bits/atomic.h: Likewise.
9043 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9046 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9048 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9049 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9050 (do_test): Check errno and exit(0) if ENOSYS.
9052 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9054 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9055 thousands separators.
9056 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9057 * stdlib/tst-strtod4.c: New test.
9060 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9061 hexadecimal digit should accept just the initial 0.
9062 * stdlib/tst-strtod2.c (tests): New variable.
9063 (do_test): Run several tests rather than just one.
9065 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9067 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9068 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9070 2007-01-10 Ulrich Drepper <drepper@redhat.com>
9072 * io/fts.c: Make sure fts_cur is always valid after return from
9074 Patch by Miloslav Trmac <mitr@redhat.com>.
9076 2006-10-27 Richard Sandiford <richard@codesourcery.com>
9078 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9079 (R_MIPS_NUM): Bump by 1.
9081 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9083 * posix/execvp.c: Include alloca.h.
9084 (allocate_scripts_argv): Renamed to...
9085 (scripts_argv): ... this. Don't allocate buffer here nor count
9087 (execvp): Use alloca if possible.
9088 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9089 * posix/tst-vfork3.c: New test.
9091 2007-01-03 Ulrich Drepper <drepper@redhat.com>
9093 * string/Makefile (tst-strxfrm2-ENV): Define.
9094 * stdlib/Makefile (tst-strtod3-ENV): Define.
9096 2007-01-02 Ulrich Drepper <drepper@redhat.com>
9098 * posix/getconf.c: Update copyright year.
9099 * nss/getent.c: Likewise.
9100 * iconv/iconvconfig.c: Likewise.
9101 * iconv/iconv_prog.c: Likewise.
9102 * elf/ldconfig.c: Likewise.
9103 * catgets/gencat.c: Likewise.
9104 * csu/version.c: Likewise.
9105 * elf/ldd.bash.in: Likewise.
9106 * elf/sprof.c (print_version): Likewise.
9107 * locale/programs/locale.c: Likewise.
9108 * locale/programs/localedef.c: Likewise.
9109 * nscd/nscd.c (print_version): Likewise.
9110 * debug/xtrace.sh: Likewise.
9111 * malloc/memusage.sh: Likewise.
9112 * malloc/mtrace.pl: Likewise.
9113 * debug/catchsegv.sh: Likewise.
9115 2006-12-24 Ulrich Drepper <drepper@redhat.com>
9117 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9120 2006-12-23 Ulrich Drepper <drepper@redhat.com>
9122 * posix/wordexp.c: Remove some unnecessary tests.
9124 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9126 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9127 blacklist the group till after we look it up.
9129 2006-12-21 Ulrich Drepper <drepper@redhat.com>
9131 * include/atomic.h (atomic_forced_read): New macro.
9133 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9135 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9137 2006-12-19 Jakub Jelinek <jakub@redhat.com>
9139 * nss/getXXbyYY_r.c: Include atomic.h.
9140 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9141 add atomic_write_barrier () in between.
9143 * stdlib/Makefile (tests): Add tst-makecontext.
9144 * stdlib/tst-makecontext.c: New test.
9146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9147 (__makecontext): Don't realign uc_mcontext.uc_regs.
9149 2006-11-28 Jakub Jelinek <jakub@redhat.com>
9151 * elf/dl-support.c: Include dl-procinfo.h.
9152 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9153 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9154 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9156 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9157 hardcoded constants.
9158 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9159 PPC_PLATFORM_* macros for array designators.
9161 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
9163 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9164 names to the beginning.
9165 (_dl_powerpc_platforms): Add "power6x".
9166 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9167 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9168 (_DL_PLATFORMS_COUNT): Increase.
9169 (_dl_string_platform): Handle power6x case.
9170 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9171 PPC_FEATURE_POWER6_EXT): Define.
9172 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9174 2006-12-18 Jakub Jelinek <jakub@redhat.com>
9177 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9178 [-2^31 .. 2^31) range.
9179 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9181 * stdlib/tst-rand48-2.c: New test.
9182 * stdlib/Makefile (tests): Add tst-rand48-2.
9184 2006-12-14 Jakub Jelinek <jakub@redhat.com>
9186 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9188 2006-12-14 Ulrich Drepper <drepper@redhat.com>
9190 * misc/tst-pselect.c (do_test): Make sure the helper process is
9191 terminating when the test is aborted.
9193 2006-12-13 Ulrich Drepper <drepper@redhat.com>
9195 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9196 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9197 Handle relatime mount option.
9200 * libio/Makefile (tests): Add tst-setvbuf1.
9201 * libio/tst-setvbuf1.c: New file.
9203 2006-12-08 Jakub Jelinek <jakub@redhat.com>
9206 * libio/genops.c (__uflow): Fix a typo.
9207 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9208 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9209 the narrow buffer size.
9211 2006-11-24 Jakub Jelinek <jakub@redhat.com>
9214 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9215 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9216 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9218 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9219 _IO_wstr_finish): Likewise.
9220 * libio/wmemstream.c (open_wmemstream): Likewise.
9221 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9222 even for wide streams.
9224 2006-12-13 Jakub Jelinek <jakub@redhat.com>
9226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9229 2006-12-11 Ulrich Drepper <drepper@redhat.com>
9231 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9232 separators also if no non-zero digits found.
9233 * stdlib/Makefile (tests): Add tst-strtod3.
9235 2006-12-09 Ulrich Drepper <drepper@redhat.com>
9238 * include/features.h: Fix comment about default value for
9242 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9243 empty parsed strings.
9244 * stdlib/Makefile (tests): Add tst-strtod2.
9245 * stdlib/tst-strtod2.c: New file.
9248 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9250 * stdlib/Makefile (tests): Add tst-atof2.
9251 * stdlib/tst-atof2.c: New file.
9254 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9255 correctly if removing trailing zero of hex-float.
9256 * stdlib/Makefile (tests): Add tst-atof1.
9257 * stdlib/tst-atof1.c: New file.
9259 2006-12-09 Jakub Jelinek <jakub@redhat.com>
9261 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9262 Start searching for next comma at p rather than rest.
9263 * misc/Makefile (tests): Add tst-mntent2.
9264 * misc/tst-mntent2.c: New test.
9266 * misc/getusershell.c (initshells): Check for integer overflows.
9267 Make strings buffer one bigger as fgets always succeeds when second
9268 argument is 1. Don't use calloc for shells array. Disallow
9271 2006-12-08 Ulrich Drepper <drepper@redhat.com>
9273 * malloc/memusage.c: Handle realloc with new size of zero and
9274 non-NULL pointer correctly.
9275 (me): Really write first record twice.
9276 (struct entry): Make format bi-arch safe.
9277 (dest): Write out more realloc statistics.
9278 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9280 2006-12-05 Jakub Jelinek <jakub@redhat.com>
9282 * nis/nis_subr.c (nis_getnames): Revert last change.
9284 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9286 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9287 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9288 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9289 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9291 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9292 * io/tst-ttyname_r.c: New test.
9294 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9296 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9298 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
9300 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9303 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9306 `clone' function to ensure proper unwinding stop of gdb.
9307 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9309 2006-12-01 Ulrich Drepper <drepper@redhat.com>
9311 * nscd/nscd.init: Remove obsolete and commented-out -S option
9314 2006-11-23 Jakub Jelinek <jakub@redhat.com>
9317 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9320 * manual/string.texi (strtok): Remove duplicate paragraph.
9322 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9324 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9325 libgcc not supporting `rflags' unwinding (register # >= 17).
9327 2006-11-30 Jakub Jelinek <jakub@redhat.com>
9329 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9332 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9333 Jakub Jelinek <jakub@redhat.com>
9334 Jan Kratochvil <jan.kratochvil@redhat.com>
9336 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9338 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9339 'restore_rt' even in the 'signal' directory.
9340 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9342 2006-11-27 Jakub Jelinek <jakub@redhat.com>
9345 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9346 malloc crashed. Don't allocate memory unnecessarily in each
9349 2006-10-21 Jakub Jelinek <jakub@redhat.com>
9351 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9353 2006-11-20 Ulrich Drepper <drepper@redhat.com>
9355 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9357 2006-11-18 Bruno Haible <bruno@clisp.org>
9359 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9360 __sysconf only after having tried to call getgroups32.
9362 2006-11-19 Ulrich Drepper <drepper@redhat.com>
9364 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9365 addresses for IPv4 queries if they can be mapped.
9367 2006-11-16 Jakub Jelinek <jakub@redhat.com>
9369 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9370 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9371 (signmask): Add .size directive.
9372 (othermask): Add .type directive.
9374 2006-11-14 Ulrich Drepper <drepper@redhat.com>
9376 * po/nl.po: Update from translation team.
9378 * timezone/zdump.c: Redo fix for BZ #3137.
9380 2006-11-14 Jakub Jelinek <jakub@redhat.com>
9382 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9383 to first_unused after parsing :include: file.
9385 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9387 * timezone/africa: Update from tzdata2006o.
9388 * timezone/antarctica: Likewise.
9389 * timezone/asia: Likewise.
9390 * timezone/australasia: Likewise.
9391 * timezone/backward: Likewise.
9392 * timezone/europe: Likewise.
9393 * timezone/iso3166.tab: Likewise.
9394 * timezone/northamerica: Likewise.
9395 * timezone/southamerica: Likewise.
9396 * timezone/zone.tab: Likewise.
9398 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9399 on machines with 64-bit time_t.
9401 * timezone/checktab.awk: Update from tzcode2006o.
9402 * timezone/ialloc.c: Likewise.
9403 * timezone/private.h: Likewise.
9404 * timezone/scheck.c: Likewise.
9405 * timezone/tzfile.h: Likewise.
9406 * timezone/tzselect.ksh: Likewise.
9407 * timezone/zdump.c: Likewise.
9408 * timezone/zic.c: Likewise.
9411 * elf/ldconfig.c (main): Call setlocale and textdomain.
9412 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9415 * manual/argp.texi: Fix typos.
9416 * manual/charset.texi: Likewise.
9417 * manual/errno.texi: Likewise.
9418 * manual/filesys.texi: Likewise.
9419 * manual/lang.texi: Likewise.
9420 * manual/maint.texi: Likewise.
9421 * manual/memory.texi: Likewise.
9422 * manual/message.texi: Likewise.
9423 * manual/resource.texi: Likewise.
9424 * manual/search.texi: Likewise.
9425 * manual/signal.texi: Likewise.
9426 * manual/startup.texi: Likewise.
9427 * manual/stdio.texi: Likewise.
9428 * manual/sysinfo.texi: Likewise.
9429 * manual/syslog.texi: Likewise.
9430 * manual/time.texi: Likewise.
9431 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9434 * sunrpc/clnt_raw.c: Minimal message improvements.
9435 * sunrpc/pm_getmaps.c: Likewise.
9436 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9437 * nis/nis_print_group_entry.c: Likewise.
9438 * locale/programs/repertoire.c: Likewise.
9439 * locale/programs/charmap.c: Likewise.
9440 * malloc/memusage.sh: Likewise.
9441 * elf/dl-deps.c: Likewise.
9442 * locale/programs/ld-collate.c: Likewise.
9443 * libio/vswprintf.c: Likewise.
9444 * malloc/memusagestat.c: Likewise.
9445 * sunrpc/auth_unix.c: Likewise.
9446 * sunrpc/rpc_main.c: Likewise.
9447 * nscd/cache.c: Likewise.
9448 * locale/programs/repertoire.c: Unify output messages.
9449 * locale/programs/charmap.c: Likewise.
9450 * locale/programs/ld-ctype.c: Likewise.
9451 * locale/programs/ld-monetary.c: Likewise.
9452 * locale/programs/ld-numeric.c: Likewise.
9453 * locale/programs/ld-time.c: Likewise.
9454 * elf/ldconfig.c: Likewise.
9455 * nscd/selinux.c: Likewise.
9456 * elf/cache.c: Likewise.
9457 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9460 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9464 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9466 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9467 if N is one bigger than return value.
9468 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9469 and l1 last arguments, if buf is defined, verify the return value
9470 equals to strlen (buf) and verify no byte beyond passed length
9473 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9475 * po/sv.po: Update from translation team.
9477 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9479 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9482 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9484 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9487 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9488 Use __new_sys_siglist instead of _sys_siglist_internal as
9489 second macro argument.
9490 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9493 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9496 * posix/unistd.h (sysconf): Remove const attribute.
9498 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9499 temporary or deprecated addresses.
9500 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9502 * string/Makefile (tests): Add tst-strxfrm2.
9503 * string/tst-strxfrm2.c: New file.
9505 2006-10-09 Jakub Jelinek <jakub@redhat.com>
9507 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9508 rather than r->r_brk.
9510 2006-11-08 Jakub Jelinek <jakub@redhat.com>
9512 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9513 optimization even if needed > n.
9515 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9516 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9517 return false, otherwise return true.
9518 (cache_rpath): Return decompose_rpath return value.
9520 2006-11-07 Jakub Jelinek <jakub@redhat.com>
9522 * include/libc-symbols.h (declare_symbol): Rename to...
9523 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9524 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9526 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9528 * sysdeps/gnu/siglist.c: Likewise.
9530 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9532 * sysdeps/powerpc/fpu/bits/mathinline.h
9533 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9534 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9536 2006-11-05 Ulrich Drepper <drepper@redhat.com>
9538 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9539 Update handling of cache descriptor 0x49 for new models.
9540 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9543 2006-11-02 Jakub Jelinek <jakub@redhat.com>
9545 * malloc/memusage.c (dest): Reset not_me back to false after
9546 printing statistics.
9548 2006-11-02 Ulrich Drepper <drepper@redhat.com>
9550 * configure.in: Work around ld --help change and avoid -z relro
9551 test completely if the architecture doesn't care about security.
9553 2006-11-01 Ulrich Drepper <drepper@redhat.com>
9555 * po/sv.po: Update from translation team.
9557 2006-10-31 Ulrich Drepper <drepper@redhat.com>
9559 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9560 generate compatibility version.
9562 2006-10-29 Ulrich Drepper <drepper@redhat.com>
9564 * configure.in: Relax -z relro requirement a bit.
9566 * po/sv.po: Update from translation team.
9568 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9570 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9571 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9572 * elf/dl-close.c (_dl_close_worker): Likewise.
9573 * elf/dl-open.c (_dl_open_worker): Likewise.
9574 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9576 2006-10-27 Ulrich Drepper <drepper@redhat.com>
9578 * configure.in: Require assembler support for visibility, compiler
9579 support for visibility and aliases, linker support for various -z
9581 * Makeconfig: Remove conditional code which now is unnecessary.
9582 * config.h.in: Likewise.
9583 * config.make.in: Likewise.
9584 * dlfcn/Makefile: Likewise.
9585 * elf/Makefile: Likewise.
9586 * elf/dl-load.c: Likewise.
9587 * elf/rtld.c: Likewise.
9588 * include/libc-symbols.h: Likewise.
9589 * include/stdio.h: Likewise.
9590 * io/Makefile: Likewise.
9591 * io/fstat.c: Likewise.
9592 * io/fstat64.c: Likewise.
9593 * io/fstatat.c: Likewise.
9594 * io/fstatat64.c: Likewise.
9595 * io/lstat.c: Likewise.
9596 * io/lstat64.c: Likewise.
9597 * io/mknod.c: Likewise.
9598 * io/mknodat.c: Likewise.
9599 * io/stat.c: Likewise.
9600 * io/stat64.c: Likewise.
9601 * libio/stdio.c: Likewise.
9602 * nscd/Makefile: Likewise.
9603 * stdlib/Makefile: Likewise.
9604 * stdlib/atexit.c: Likewise.
9605 * sysdeps/generic/ldsodefs.h: Likewise.
9606 * sysdeps/i386/dl-machine.h: Likewise.
9607 * sysdeps/i386/sysdep.h: Likewise.
9608 * sysdeps/i386/i686/memcmp.S: Likewise.
9609 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9610 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9611 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9613 * Makerules: USE_TLS support is now default.
9614 * tls.make.c: Likewise.
9615 * csu/Versions: Likewise.
9616 * csu/libc-start.c: Likewise.
9617 * csu/libc-tls.c: Likewise.
9618 * csu/version.c: Likewise.
9619 * dlfcn/dlinfo.c: Likewise.
9620 * elf/dl-addr.c: Likewise.
9621 * elf/dl-cache.c: Likewise.
9622 * elf/dl-close.c: Likewise.
9623 * elf/dl-iteratephdr.c: Likewise.
9624 * elf/dl-load.c: Likewise.
9625 * elf/dl-lookup.c: Likewise.
9626 * elf/dl-object.c: Likewise.
9627 * elf/dl-open.c: Likewise.
9628 * elf/dl-reloc.c: Likewise.
9629 * elf/dl-support.c: Likewise.
9630 * elf/dl-sym.c: Likewise.
9631 * elf/dl-sysdep.c: Likewise.
9632 * elf/dl-tls.c: Likewise.
9633 * elf/ldconfig.c: Likewise.
9634 * elf/rtld.c: Likewise.
9635 * elf/tst-tls-dlinfo.c: Likewise.
9636 * elf/tst-tls1.c: Likewise.
9637 * elf/tst-tls10.h: Likewise.
9638 * elf/tst-tls14.c: Likewise.
9639 * elf/tst-tls2.c: Likewise.
9640 * elf/tst-tls3.c: Likewise.
9641 * elf/tst-tls4.c: Likewise.
9642 * elf/tst-tls5.c: Likewise.
9643 * elf/tst-tls6.c: Likewise.
9644 * elf/tst-tls7.c: Likewise.
9645 * elf/tst-tls8.c: Likewise.
9646 * elf/tst-tls9.c: Likewise.
9647 * elf/tst-tlsmod1.c: Likewise.
9648 * elf/tst-tlsmod13.c: Likewise.
9649 * elf/tst-tlsmod13a.c: Likewise.
9650 * elf/tst-tlsmod14a.c: Likewise.
9651 * elf/tst-tlsmod2.c: Likewise.
9652 * elf/tst-tlsmod3.c: Likewise.
9653 * elf/tst-tlsmod4.c: Likewise.
9654 * elf/tst-tlsmod5.c: Likewise.
9655 * elf/tst-tlsmod6.c: Likewise.
9656 * include/errno.h: Likewise.
9657 * include/link.h: Likewise.
9658 * include/tls.h: Likewise.
9659 * locale/global-locale.c: Likewise.
9660 * locale/localeinfo.h: Likewise.
9661 * malloc/arena.c: Likewise.
9662 * malloc/hooks.c: Likewise.
9663 * malloc/malloc.c: Likewise.
9664 * resolv/Versions: Likewise.
9665 * sysdeps/alpha/dl-machine.h: Likewise.
9666 * sysdeps/alpha/libc-tls.c: Likewise.
9667 * sysdeps/generic/ldsodefs.h: Likewise.
9668 * sysdeps/generic/tls.h: Likewise.
9669 * sysdeps/i386/dl-machine.h: Likewise.
9670 * sysdeps/ia64/dl-machine.h: Likewise.
9671 * sysdeps/ia64/libc-tls.c: Likewise.
9672 * sysdeps/mach/hurd/fork.c: Likewise.
9673 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9674 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9675 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9676 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9677 * sysdeps/s390/libc-tls.c: Likewise.
9678 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9679 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9680 * sysdeps/sh/dl-machine.h: Likewise.
9681 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9682 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9683 * sysdeps/x86_64/dl-machine.h: Likewise.
9685 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9686 split out locking and parameter checking.
9687 (_dl_close): Call _dl_close_worker after locking and checking.
9688 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9690 * elf/Makefile: Add rules to build and run tst-thrlock.
9691 * elf/tst-thrlock.c: New file.
9694 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9698 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9699 we are sure we do not need it anymore for _dl_close. Also move
9700 the asserts inside the lock region.
9701 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9703 2006-10-27 Jakub Jelinek <jakub@redhat.com>
9705 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9707 (_dl_lookup_symbol_x): Adjust caller.
9709 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9711 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9713 * elf/dl-libc.c: Revert l_scope name changes.
9714 * elf/dl-load.c: Likewise.
9715 * elf/dl-object.c: Likewise.
9716 * elf/rtld.c: Likewise.
9717 * elf/dl-close.c (_dl_close): Likewise.
9718 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9719 always use __rtld_mrlock_{change,done}. Always free old scope list
9720 here if not l_scope_mem.
9721 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9722 change. Never free scope list here. Just __rtld_mrlock_lock before
9723 the lookup and __rtld_mrlock_unlock it after the lookup.
9724 * elf/dl-sym.c: Likewise.
9725 * include/link.h (struct r_scoperec): Remove.
9726 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9727 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9729 2006-10-25 Ulrich Drepper <drepper@redhat.com>
9731 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9733 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9735 * configure.in: Disable building profile libraries by default.
9737 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9739 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9740 as signed longs, check for x_base + pos overflow.
9741 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9742 * sunrpc/tst-xdrmem2.c: New test.
9744 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9746 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9747 _dl_lookup_symbol_x code.
9749 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9751 * elf/dl-runtime.c: Include sysdep-cancel.h.
9752 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9753 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9754 instead of catomic_* macros.
9755 * elf/dl-sym.c: Include sysdep-cancel.h.
9756 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9757 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9758 * elf/dl-close.c: Include sysdep-cancel.h.
9759 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9760 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9761 * elf/dl-open.c: Include sysdep-cancel.h.
9762 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9763 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9765 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9768 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9769 fastbin rather than end of fastbin array.
9771 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9773 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9775 * sysdeps/x86_64/bits/atomic.h
9776 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9777 (catomic_decrement): Use correct body macro.
9779 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9781 * include/atomic.h: Add a unique prefix to all local variables
9783 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9785 2006-10-16 Ulrich Drepper <drepper@redhat.com>
9788 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9791 2006-10-14 Ulrich Drepper <drepper@redhat.com>
9793 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9795 2006-10-13 Ulrich Drepper <drepper@redhat.com>
9798 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9799 determine highest fast bin to consolidate, always look into all of
9801 (do_check_malloc_state): Only require for empty bins for large
9802 sizes in main arena.
9804 * libio/stdio.h: Add more __wur attributes.
9806 * elf/dl-minimal.c (realloc): Optimize last patch.
9808 2006-10-12 Richard Sandiford <richard@codesourcery.com>
9811 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9812 and use memcpy() if it does.
9814 2006-11-12 Andreas Jaeger <aj@suse.de>
9817 * manual/search.texi (Hash Search Function): Clarify.
9818 (Array Search Function): Clarify.
9820 2006-11-12 Joseph Myers <joseph@codesourcery.com>
9823 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9825 * math/atest-exp2.c (read_mpn_hex): Likewise.
9826 * math/atest-sincos.c (main): Likewise.
9828 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9830 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9831 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9832 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9834 * Versions.def: Add GLIBC_2.6 for libc.
9836 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9838 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9840 2006-10-11 Jakub Jelinek <jakub@redhat.com>
9842 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9844 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9846 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9847 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9849 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9851 * include/atomic.c: Define catomic_* operations.
9852 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9853 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9854 * malloc/memusage.c: Likewise.
9855 * gmon/mcount.c: Likewise.
9856 * elf/dl-close.c: Likewise.
9857 * elf/dl-open.c: Likewise.
9858 * elf/dl-profile.c: Likewise.
9859 * elf/dl-sym.c: Likewise.
9860 * elf/dl-runtime.c: Likewise.
9861 * elf/dl-fptr.c: Likewise.
9862 * resolv/res_libc.c: Likewise.
9864 2006-10-10 Ulrich Drepper <drepper@redhat.com>
9866 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9867 components which lack them.
9869 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9870 at least one entry consisting of the parameter concatenated with
9873 2006-10-10 Roland McGrath <roland@frob.com>
9875 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9876 * sysdeps/mach/hurd/futimes.c: Likewise.
9877 * sysdeps/mach/hurd/lutimes.c: Likewise.
9879 2006-10-09 Ulrich Drepper <drepper@redhat.com>
9880 Jakub Jelinek <jakub@redhat.com>
9882 Implement reference counting of scope records.
9883 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9884 from the list in objects which remain. Always allocate new scope
9886 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9887 don't resize, allocate a new one.
9888 * elf/dl-runtime.c: Update reference counters before using a scope
9890 * elf/dl-sym.c: Likewise.
9891 * elf/dl-libc.c: Adjust for l_scope name change.
9892 * elf/dl-load.c: Likewise.
9893 * elf/dl-object.c: Likewise.
9894 * elf/rtld.c: Likewise.
9895 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9896 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9897 Add l_scoperec_lock.
9898 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9899 * sysdeps/generic/rtld-lowlevel.h: New file.
9901 * include/atomic.h: Rename atomic_and to atomic_and_val and
9902 atomic_or to atomic_or_val. Define new macros atomic_and and
9903 atomic_or which do not return values.
9904 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9906 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9908 * po/sv.po: Update from translation team.
9910 2006-10-07 Ulrich Drepper <drepper@redhat.com>
9912 * Versions.def: Add GLIBC_2.6 to libpthread.
9914 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9915 (versioned_symbol): Likewise.
9916 (compat_symbol): Likewise.
9918 * po/tr.po: Update from translation team.
9920 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9922 * nis/Banner: Removed. It's been integral part forever and the
9923 author info is incomplete anyway.
9924 * libio/Banner: Likewise.
9926 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9927 code, make sure the nis_freeresult call doesn't crash and that the
9928 result is reported correctly.
9930 2006-09-27 Jakub Jelinek <jakub@redhat.com>
9932 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9933 when callback is NULL.
9935 * nis/Versions (libnss_nisplus): Add
9936 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9937 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9938 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9939 _nss_create_tablename): Rename to...
9940 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9941 ... these. No longer static.
9942 (internal_setgrent): Adjust users.
9943 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9944 Don't use locking around _nss_grp_create_tablename call.
9945 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9947 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9949 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9951 2006-10-06 Andreas Jaeger <aj@suse.de>
9953 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9955 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9957 * po/pl.po: Update from translation team.
9959 * nscd/nscd.c (main): Fix typo in message.
9960 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9962 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9965 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9966 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9967 (__sigprocmask): Define.
9969 2006-10-02 Ulrich Drepper <drepper@redhat.com>
9971 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9974 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9976 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9977 in oldtotal and newtotal calculation.
9978 * nscd/nscd-client.h (struct mapped_database): Add datasize
9980 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9981 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9983 (__nscd_cache_search): Add checks to make sure we never reference
9984 data beyond the current mapping.
9986 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9988 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9989 variables const to avoid compiler warnings.
9991 * io/fts.c (fts_close): Remove redundant checks.
9992 (fts_build): Likewise.
9993 (fts_palloc): Likewise.
9995 * manual/message.texi (Advanced gettext functions,
9996 Using gettextized software): Fix typos.
9998 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10000 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10001 explain why there are no leaks.
10003 2006-09-29 Ulrich Drepper <drepper@redhat.com>
10005 * libio/wmemstream.c: Include <wchar.h>.
10006 * libio/bug-wmemstream1.c: Likewise.
10007 * libio/tst-wmemstream1.c: Likewise.
10008 * libio/tst-wmemstream2.c: Likewise.
10010 * version.h (RELEASE): Bump to 2.5.
10011 * README: Regenerated.
10013 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10016 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10017 found no group members.
10018 Patch by Petr Baudis.
10020 2006-09-29 Jakub Jelinek <jakub@redhat.com>
10022 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10023 assert bootstrap_map.l_tls_modid is zero.
10024 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10027 2006-09-27 Ulrich Drepper <drepper@redhat.com>
10029 * libio/stdio.h: Move open_wmemstream prototype to ...
10030 * wcsmbs/wchar.h: ... here.
10032 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10035 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10036 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10037 __{,l}chown to handle the rest.
10038 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10039 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10040 __{,l}chown to handle the rest.
10041 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10043 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10044 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10047 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10048 time, rather allocate increasingly bigger arrays of pointers, if
10049 possible with alloca, if too large with malloc.
10051 2006-09-24 Jakub Jelinek <jakub@redhat.com>
10053 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10055 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10057 2006-09-24 Ulrich Drepper <drepper@redhat.com>
10059 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10061 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10062 IFA_F_HOMEADDRESS flag for interfaces.
10063 * include/ifaddrs.h (struct in6addrinfo): Define
10066 2006-09-21 Jakub Jelinek <jakub@redhat.com>
10069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10070 PTR_DEMANGLE3): Define.
10071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10072 PTR_DEMANGLE3): Likewise.
10073 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10074 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10076 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10078 2006-09-20 Jakub Jelinek <jakub@redhat.com>
10080 * po/libc.pot: Regenerated.
10081 * po/be.po: Updated.
10082 * po/ca.po: Likewise.
10083 * po/cs.po: Likewise.
10084 * po/da.po: Likewise.
10085 * po/de.po: Likewise.
10086 * po/el.po: Likewise.
10087 * po/en_GB.po: Likewise.
10088 * po/es.po: Likewise.
10089 * po/fi.po: Likewise.
10090 * po/fr.po: Likewise.
10091 * po/gl.po: Likewise.
10092 * po/hr.po: Likewise.
10093 * po/hu.po: Likewise.
10094 * po/ja.po: Likewise.
10095 * po/ko.po: Likewise.
10096 * po/nb.po: Likewise.
10097 * po/nl.po: Likewise.
10098 * po/pl.po: Likewise.
10099 * po/pt_BR.po: Likewise.
10100 * po/ru.po: Likewise.
10101 * po/rw.po: Likewise.
10102 * po/sk.po: Likewise.
10103 * po/sv.po: Likewise.
10104 * po/tr.po: Likewise.
10105 * po/zh_CN.po: Likewise.
10106 * po/zh_TW.po: Likewise.
10109 * iconv/iconv_prog.c (main): Fix spelling in error message.
10110 * iconv/iconvconfig.c (main): Likewise.
10111 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10112 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10113 * locale/programs/localedef.c (main): Likewise.
10114 * locale/programs/repertoire.c (repertoire_read): Likewise.
10115 * timezone/zdump.c (main): Likewise.
10116 * nscd/connections.c (handle_request): Fix spelling in log message.
10117 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10119 2006-09-20 Ulrich Drepper <drepper@redhat.com>
10121 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10124 2006-09-20 Andreas Jaeger <aj@suse.de>
10126 * math/libm-test.inc (lrint_test_upward): Fix typo.
10128 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10131 * math/libm-test.inc (lrint_test_tonearest): New function.
10132 (lrint_test_towardzero): New function.
10133 (lrint_test_downward): New function.
10134 (lrint_test_upward): New function.
10135 (main): Run these new tests.
10136 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10137 of values near to 0.
10138 (two52): Use double not long double.
10139 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10140 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10141 (two23): Use float not double.
10142 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10143 (two23): Use float not double.
10144 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10145 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10146 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10147 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10149 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10151 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10152 Cast sp to unsigned long to avoid compiler warning.
10153 Use __makecontext_ret function instead of a trampoline on the stack.
10154 (__makecontext_ret): New function.
10155 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10157 2006-09-19 Jakub Jelinek <jakub@redhat.com>
10159 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10160 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10163 2006-09-19 Ulrich Drepper <drepper@redhat.com>
10165 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10166 sure no reference to the unloaded map's search list remains in the
10167 dependency's scope.
10169 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10171 * elf/Makefile: Add rules to build and run unload7 test.
10172 * elf/unload7.c: New test.
10173 * elf/unload7mod1.c: New file.
10174 * elf/unload7mod2.c: New file.
10176 2006-09-18 Jakub Jelinek <jakub@redhat.com>
10178 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10179 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10180 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10181 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10182 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10183 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10184 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10185 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10186 PTRACE_GETEVENTMSG): Likewise.
10187 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10190 2006-09-17 Mike Frysinger <vapier@gentoo.org>
10192 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10193 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10194 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10195 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10197 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10199 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10200 write '\0' to the fd.
10201 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10202 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10203 Change regs to unsigned long pointer from unsigned int, fix fscr
10206 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10208 * io/Makefile (CFLAGS-fstatat.c): Set.
10209 (CFLAGS-fstatat64.c): Likewise.
10210 (CFLAGS-mknodat.c): Likewise.
10212 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10213 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10214 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10215 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10217 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10218 Steven Munroe <sjmunroe@us.ibm.com>
10220 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10221 names to the beginning. Rename "cell" to "cellbe".
10222 (_dl_powerpc_platforms): New.
10223 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10224 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10225 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10226 (_DL_HWCAP_PLATFORM): Define to new mask.
10227 (_dl_platform_string, _dl_string_platform): New functions.
10228 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10229 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10231 2006-09-12 Jakub Jelinek <jakub@redhat.com>
10234 * README.libm: Fix a thinko in sqrt algorithm description.
10237 * manual/string.texi (argz_delete): Fix prototype.
10238 Patch by <alpt@freaknet.org>.
10240 2006-08-26 Joseph Myers <joseph@codesourcery.com>
10243 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10244 * io/tst-fcntl.c (do_prepare): Likewise.
10245 * posix/tst-exec.c (do_prepare): Likewise.
10246 * posix/tst-preadwrite.c (do_prepare): Likewise.
10247 * posix/tst-spawn.c (do_prepare): Likewise.
10248 * posix/tst-truncate.c (do_prepare): Likewise.
10249 * rt/tst-aio.c (do_prepare): Likewise.
10250 * rt/tst-aio64.c (do_prepare): Likewise.
10251 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10254 2006-09-09 Ulrich Drepper <drepper@redhat.com>
10257 * time/mktime.c (guess_time_tm): Fix overflow detection.
10258 * time/Makefile (tests): Add bug-mktime1.
10259 * time/bug-mktime1.c: New file.
10262 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10263 (mremap): Likewise.
10265 2006-09-07 Jakub Jelinek <jakub@redhat.com>
10268 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10269 Ensure relocation doesn't clobber any bits outside of the
10270 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10271 R_SPARC_HI22 and R_SPARC_H44.
10274 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10275 (long) (MINSIZE + nb - old_size) is positive.
10277 * malloc/arena.c (grow_heap): When growing bail even if new_size
10281 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10284 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10286 * posix/regex_internal.c (re_string_reconstruct): Handle
10287 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10288 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10289 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10290 re_string_context_at.
10291 * posix/Makefile: Add rules to build and run bug-regex26 test.
10292 * posix/bug-regex26.c: New test.
10294 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10295 rather than col_sym_free. Move seqp declaration earlier.
10297 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10299 2006-09-05 Jakub Jelinek <jakub@redhat.com>
10301 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10302 decl before first goto out.
10304 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10306 * Makerules (shlib.lds): If have-hash-style, put .hash section
10307 at the end of the RO segment.
10309 2006-09-04 Ulrich Drepper <drepper@redhat.com>
10311 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10312 style hash table format is used.
10314 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10316 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10317 randomization rather than before.
10318 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10320 2006-08-31 Jakub Jelinek <jakub@redhat.com>
10322 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10324 * malloc/malloc.c (_int_malloc): Use full list insert and not
10325 shortcut which assumes the list is empty for large requests
10328 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10330 2006-08-30 Jakub Jelinek <jakub@redhat.com>
10332 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10333 and offout arguments to the prototype.
10334 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10335 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10336 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10337 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10338 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10339 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10340 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10341 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10343 2006-08-28 Ulrich Drepper <drepper@redhat.com>
10345 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10347 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10350 2006-08-28 Jakub Jelinek <jakub@redhat.com>
10352 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10353 only if herrno is NETDB_INTERNAL. Handle errors other than
10354 ERANGE outside of the loops, handle TRY_AGAIN.
10356 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10357 if other's ctype category was missing.
10358 * locale/programs/ld-collate.c (collate_read): Return if
10359 copy_locale's collate category is missing.
10361 2006-08-27 Ulrich Drepper <drepper@redhat.com>
10364 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10365 arenas if allocation failed.
10366 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10368 2006-08-26 Ulrich Drepper <drepper@redhat.com>
10370 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10372 (malloc_state): Reduce bins size by 2.
10373 (_int_malloc): Fix test for large enough buffer for early termination.
10374 When no unsorted block matches perfectly and an exiting block has
10375 to be split, use full list insert and not shortcut which assumes
10378 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10381 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10383 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10386 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10387 symbol require exact match (these are PLTs).
10388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10389 (_dl_ppc64_addr_sym_match): Likewise.
10392 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10393 If symbol has a value use it.
10394 * elf/tst-dladdr1.c: New file.
10395 * elf/Makefile: Add rules to build and run tst-addr1.
10397 2006-08-24 Jakub Jelinek <jakub@redhat.com>
10399 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10400 keeps failing and heap growth or new heap creation isn't
10402 * malloc/tst-malloc.c (main): Add new tests.
10404 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10407 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10408 as in the x86-64 code to use bswap.
10410 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10413 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10415 * posix/bits/unistd.h: Likewise.
10417 2006-05-15 Mike Frysinger <vapier@gentoo.org>
10420 * string/strchr.c: Add cast to avoid warning.
10422 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10424 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10425 platforms define as 512K. For 64-bit platforms as 32MB. The lower
10426 limit is needed to avoid the exploding of the address space
10427 requirement for secondary heaps.
10428 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10429 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10431 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10434 * Makerules (depfiles): Handle extra-test-objs the same as
10436 (common-mostlyclean): Likewise.
10437 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10439 * elf/Makefile (extra-objs): Likewise.
10440 * stdlib/Makefile (extra-objs): Likewise.
10442 2006-08-14 Eric Blake <ebb9@byu.net>
10445 * misc/error.h: Assume C89 or better.
10446 * misc/error.c: Likewise.
10448 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10451 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10452 __ASSUME_ATFCTS is defined.
10454 2006-08-19 Ulrich Drepper <drepper@redhat.com>
10456 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10457 to sort in each call.
10459 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10460 is empty simply return and use next service.
10461 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10463 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10464 tells us when not finding a charmap file is an error.
10465 * locale/programs/charmap.h: Adjust charmap_read prototype.
10466 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10467 cannot find a charmap.
10468 * locale/programs/localedef.c (main): Adjust charmap_read call.
10470 2006-08-15 Jakub Jelinek <jakub@redhat.com>
10472 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10473 sysdeps/posix/pause.c implementation instead.
10475 2006-08-09 Jakub Jelinek <jakub@redhat.com>
10477 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10480 2006-08-13 Andreas Schwab <schwab@suse.de>
10482 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10483 Don't clobber caller's LRSAVE.
10484 (_dl_prof_resolve): Likewise.
10486 2006-08-14 Ulrich Drepper <drepper@redhat.com>
10489 * libio/memstream.c (open_memstream): Allocate initial buffer with
10491 * libio/wmemstream.c (open_wmemstream): Likewise.
10492 * libio/strops.c: Pretty printing.
10493 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10494 (enlarge_userbuf): New function.
10495 (_IO_str_seekoff): Call it if seek position is larger than current
10497 * libio/wstrops.c: Likewise.
10498 * libio/vasprintf.c: Add comment as to why we do not have to use
10499 calloc instead of malloc to allocate initial buffer.
10500 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10501 * libio/bug-memstream1.c: New file.
10502 * libio/bug-wmemstream1.c: New file.
10504 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10506 * libio/wstrops.c: Remove dead macro definitions and comments.
10507 * libio/strops.c: Likewise.
10510 * login/utmpname.c (__utmpname): Remove unnecessary test.
10512 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10515 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10518 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10521 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10523 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10524 setting of CPU clocks.
10526 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10529 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10530 since C99 requires the result to promote to 'int' when uint_least8_t
10531 and uint_least16_t promote to 'int'.
10533 2006-08-12 Ulrich Drepper <drepper@redhat.com>
10536 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10537 lenght of one output field, correct bitmask creation.
10538 * locale/programs/ld-time.c: Add alignment.
10541 * misc/error.c: Add space between program name and message if file
10544 2006-08-03 Eric Blake <ebb9@byu.net>
10547 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10549 2006-08-09 Ulrich Drepper <drepper@redhat.com>
10551 * malloc/memusagestat.c: Silence warnings.
10553 * malloc/malloc.c: Dynamically size mmap treshold if the program
10554 frees mmaped blocks.
10555 Patch by Valerie Henson and Arjan van de Ven.
10557 2006-08-08 Jakub Jelinek <jakub@redhat.com>
10559 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10562 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10563 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10564 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10565 Only provide var definitions in strtol_l (or for *ull*
10568 * stdio-common/bug16.c (tests): New array.
10569 (do_tests): Allow the first hexadecimal digit
10570 to be 1, 2, 4 or 8. Do 3 additional tests.
10572 * sysdeps/s390/fpu/libm-test-ulps: Update.
10574 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10575 fchownat syscall if available.
10576 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10577 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10578 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10580 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10582 * nis/nis_xdr.c: Avoid some function calls.
10584 2006-08-07 Jakub Jelinek <jakub@redhat.com>
10585 Ulrich Drepper <drepper@redhat.com>
10587 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10588 short cut if only one name component is stripped away.
10590 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10592 * nis/nis_call.c: Minor cleanups throughout.
10593 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10594 (first_shoot): Add search_parent_first parameter. Only if it is set
10595 search parent server first.
10596 If directory for table found through cold start cache is not the same
10597 as referenced in the cache, don't use it.
10598 (__nisfind_server): Take additional parameter. Pass it on to
10600 (__prepare_niscall): Adjust __nisfind_server call.
10601 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10602 * nis/nis_table.c: Adjust __nisfind_server call.
10603 * nis/nis_lookup.c: Likewise.
10604 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10606 2006-08-03 Ulrich Drepper <drepper@redhat.com>
10609 * math/s_cacosh.c: Return values from positive branch.
10610 * math/s_cacoshf.c: Likewise.
10611 * math/s_cacoshl.c: Likewise.
10614 * sysvipc/sys/msg.h: Change return value to ssize_t.
10615 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10616 * sysvipc/msgrcv.c: Likewise.
10617 * include/sys/msg.h: Likewise.
10619 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10620 test introduced in patch for bz #661.
10621 (getgrouplist): Simplify code a bit. Don't allocate one additional
10622 element for NEWGROUPS.
10625 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10626 'f', use '1' as leading digit not '\1'.
10627 * stdio-common/Makefile (tests): Add bug16.
10628 * stdio-common/bug16.c: New file.
10631 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10632 and don't try to open it. The patch introducing the macro
10633 contained a bug and used the same file name as the new file
10634 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10635 this out completely.
10638 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10639 Patch by Jerry James <Jerry.James@usu.edu>.
10641 * rt/Makefile (tests): Add tst-clock2.
10642 * rt/tst-clock2.c: New file.
10645 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10646 function and its parameters and pass it to new thread.
10647 (__gai_notify): Add support for alternative waiting for completion.
10648 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10649 waiting for completion.
10650 * resolv/getaddrinfo_a.c: Likewise.
10651 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10652 waiting for completion is used.
10653 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10654 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10655 * resolv/gai_error.c: Likewise.
10656 * resolv/gai_sigqueue.c: Likewise.
10658 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10660 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10661 errno to EBADF and return MACH_PORT_NULL.
10663 2006-06-23 Joseph Myers <joseph@codesourcery.com>
10666 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10668 2006-08-02 Ulrich Drepper <drepper@redhat.com>
10670 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10671 walk them instead of the symbol table.
10673 2006-08-01 Ulrich Drepper <drepper@redhat.com>
10676 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10677 status of NSS calls, not the number of returned entries.
10679 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10680 request_key, keyctl.
10682 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10684 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10686 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10688 * elf/tst-auditmod1.c: Fix typo in #error.
10690 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10692 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10694 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10696 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10698 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10699 that the directory is empty even on non-POSIX filesystems.
10701 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10703 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10705 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10706 the backend NSS module. If backend setgrent call failed, don't have
10707 internal_setgrent fail. Just remember this until it is needed.
10708 * nis/nss_compat/compat-pwd.c: Likewise.
10709 * nis/nss_compat/compat-spwd.c: Likewise.
10711 2006-07-30 Roland McGrath <roland@redhat.com>
10713 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10714 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10715 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10716 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10718 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10719 (nanosleep_not_cancel): New macro.
10720 (sigsuspend_not_cancel): new macro.
10721 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10722 (do_sigsuspend): Define as inline.
10723 (__sigsuspend): Always use do_sigsuspend.
10724 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10725 * include/signal.h: Declare __sigsuspend_nocancel.
10726 * sysdeps/posix/pause.c
10727 [! NO_CANCELLATION] (__pause_nocancel): New function.
10729 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10730 * include/time.h (__nanosleep_nocancel): Likewise.
10732 2006-07-30 Ulrich Drepper <drepper@redhat.com>
10734 * locale/programs/localedef.c (add_to_readlist): Rename local
10735 variables to avoid confusion.
10737 * locale/programs/charmap.c (charmap_read): Emit error message if
10738 charmap couldn't be found or read.
10740 2006-07-28 Ulrich Drepper <drepper@redhat.com>
10742 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10743 __ASSUME_FUTEX_LOCK_PI.
10744 * include/time.h: Declare __nanosleep_nocancel.
10745 * include/unistd.h: Declare __pause_nocancel.
10747 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10748 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10749 get the __stack_chk_fail_local definition when it's needed.
10751 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10753 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10754 * dlfcn/bug-atexit3.c: New file.
10755 * dlfcn/bug-atexit3-lib.cc: New file.
10757 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10758 used when the namespace is not the base namespace.
10760 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10762 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10763 (__new_exitfn): Bump it in every successful call.
10764 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10765 more exit handlers, call them right away.
10766 * stdlib/exit.h: Declare __new_exitfn_called.
10768 2006-07-25 Ulrich Drepper <drepper@redhat.com>
10770 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10771 calling registered handler.
10773 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10774 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10775 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10776 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10777 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10778 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10779 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10780 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10782 2006-07-10 Ulrich Drepper <drepper@redhat.com>
10784 * elf/dl-lookup.c (dl_new_hash): New functions.
10785 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10786 value here. Compute new-style hash value. Pass new hash value
10787 and reference to variable with the old value to do_lookup_x.
10788 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10789 old-style hash table.
10790 (_dl_debug_bindings): Pass new hash value and reference to variable
10791 with the old value to do_lookup_x.
10792 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10793 new-style hash value and change old-style hash value parameter to
10794 be a reference. Reoganize functions to determine whether
10795 new-style hash table is available. Only fall back on old-style
10796 table. If old-style hash value is needed, compute it here.
10797 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10799 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10800 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10801 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10802 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10803 * Makeconfig: If linker supports --hash-style option add it to all
10804 linker command lines to build DSOs.
10805 * config.make.in: Define have-hash-style.
10806 * configure.in: Test whether linker supports --hash-style option.
10808 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10809 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10811 2006-06-27 Ulrich Drepper <drepper@redhat.com>
10813 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10816 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10817 RPATH of main map twice.
10819 2006-06-22 Ulrich Drepper <drepper@redhat.com>
10821 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10822 look further, return original strings.
10823 (_nl_find_msg): Do not return found translation if the conversion
10824 failed. Either signal the string is unusable or that something went
10825 wrong and the original should be used.
10827 2006-06-21 Ulrich Drepper <drepper@redhat.com>
10829 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10831 2006-06-14 Jakub Jelinek <jakub@redhat.com>
10834 * misc/insremque.c (insque): Handle prev == NULL.
10835 * misc/Makefile (tests): Add tst-insremque.
10836 * misc/tst-insremque.c: New test.
10838 2006-06-17 Ulrich Drepper <drepper@redhat.com>
10841 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10842 conflict with DL_DST_REQUIRED.
10844 2006-06-16 Ulrich Drepper <drepper@redhat.com>
10846 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10847 match what Solaris does.
10849 2006-06-04 Ulrich Drepper <drepper@redhat.com>
10851 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10852 local_setegid instead of seteuid and setegid.
10853 * sysdeps/generic/local-setxid.h: New file.
10854 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10856 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10858 * string/Makefile (tests): Add bug-envz1.
10859 * string/bug-envz1.c: New file.
10861 2006-06-02 Jakub Jelinek <jakub@redhat.com>
10863 * posix/regex_internal.c (re_string_skip_chars): If no character has
10864 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10865 to the byte which couldn't be converted.
10866 (re_string_reconstruct): Don't clear valid_raw_len before calling
10867 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10868 tip_context using re_string_context_at.
10869 * posix/Makefile: Add rules to build and run bug-regex25 test.
10870 * posix/bug-regex25.c: New test.
10872 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10875 * string/envz.c (envz_strip): Correct erroneously reversed src
10876 and dest parameters to memmove() invocation.
10878 2006-05-30 Jakub Jelinek <jakub@redhat.com>
10880 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10881 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10882 to make sure the database has been already invalidated.
10883 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10884 after the cache has been invalidated. Use pthread_mutex_lock rather
10885 than pthread_mutex_trylock if fd != -1.
10886 * nscd/connections.c (invalidate_cache): Add fd argument, write
10887 response to fd if not calling prune_cache, pass fd to prune_cache.
10888 (handle_request): Adjust invalidate_cache caller.
10889 (nscd_run): Pass -1 as fd to prune_cache.
10891 2006-05-30 Ulrich Drepper <drepper@redhat.com>
10893 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10896 2006-05-29 Ulrich Drepper <drepper@redhat.com>
10898 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10899 * nscd/cache.c (prune_cache): Take prunelock before starting the
10900 work. Just return in case it is already taken.
10901 * nscd/connections.c (dbs): Initialize .prunelock.
10903 2006-05-25 Ulrich Drepper <drepper@redhat.com>
10905 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10906 copying. No need to allocate new array for group members. Just
10907 move the pointers and update the size.
10909 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10910 Avoid memory leak in case realloc fails. Simplification for
10911 better code generation.
10913 Avoid deprecation warning because of libc_hidden_proto for
10914 inet6_option_alloc.
10915 * inet/inet6_option.c (option_alloc): Renamed from
10916 inet6_option_alloc. Made static.
10917 (inet6_option_alloc): Now a simple wrapper around option_alloc.
10918 (inet6_option_append): Call option_alloc.
10919 * include/netinet/in.h: Remove libc_hidden_proto for
10920 inet6_option_alloc.
10922 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10923 for cleanup when cb!=NULL [Coverity CID 233].
10925 2006-05-24 Ulrich Drepper <drepper@redhat.com>
10928 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10929 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10930 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10931 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10932 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10933 and inet6_rth_getaddr.
10934 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10936 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10937 Mark inet6_option_* interfaces as deprecated.
10938 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10939 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10940 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10941 inet6_rth_segments, and inet6_rth_getaddr.
10942 * inet/inet6_opt.c: New file.
10943 * inet/inet6_rth.c: New file.
10945 * inet/netinet/icmp6.h: Pretty printing.
10948 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10950 2006-05-23 Ulrich Drepper <drepper@redhat.com>
10952 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10953 doing it all here. When server does not know the answer do not
10954 fail immediate, try parent first.
10956 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10959 2006-05-20 Ulrich Drepper <drepper@redhat.com>
10961 * nis/nis_call.c (__prepare_niscall): New function. Split out
10963 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10965 (__follow_path): New function. Split out from nis_list.
10966 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10968 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10970 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10972 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10973 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10974 from libnsl for version GLIBC_PRIVATE.
10975 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10976 Remove entry parameter from _nss_nisplus_parse_pwent and
10977 _nss_nisplus_parse_grent.
10978 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10979 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10980 again. Rewrite getpwent handling to not use nis_first_entry and
10981 nis_next_entry. Roll out own niscall handling.
10982 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10984 * sunrpc/xdr_rec.c: Fix typo in comment.
10986 2006-05-19 Ulrich Drepper <drepper@redhat.com>
10988 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10991 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10992 to allocate memory for my_pollfd. Better initialization of
10993 cb_is_running. Use TEMP_FAILURE_RETRY.
10995 * malloc/memusage.sh (memusageso): Add quotes.
10996 (memusagestat): Likewise.
10997 * debug/xtrace.sh (pcprofileso): Likewise.
10998 (pcprofiledump): Likewise.
10999 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11001 * malloc/Makefile ($(objpfx)memusage): Likewise.
11003 * nis/nis_callback.c (__nis_create_callback): Calls to
11004 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11005 asprintf call fails.
11007 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11008 no uninitialized memory is passed to sendto.
11010 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11012 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11013 of snprintf+strdup. Handle OOM.
11014 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11015 cb->serv together. Remove now obsolete free calls.
11016 (__nis_destroy_callback): Remove now obsolete free call.
11018 2006-05-18 David Woodhouse <dwmw2@redhat.com>
11020 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11021 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11022 and ULA respectively). Set precedence for IPv4 address to 10 as
11023 defined in RFC3484 for preferring IPv6.
11024 * posix/gai.conf: Update to match the new default tables.
11026 2006-05-18 Jakub Jelinek <jakub@redhat.com>
11028 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11029 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11030 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11031 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11033 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11035 (init_nss_interface): Remove initialization of these variables.
11037 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11039 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11040 nis_free_directory forward to avoid duplication.
11042 2006-05-17 Ulrich Drepper <drepper@redhat.com>
11044 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11045 rec_dirsearch returning NULL.
11046 (first_shoot): Handle __nis_finddirectory returning NULL.
11047 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11049 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11050 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11052 2006-05-17 Jakub Jelinek <jakub@redhat.com>
11054 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11057 2006-05-15 Ulrich Drepper <drepper@redhat.com>
11059 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11061 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11062 * nscd/nscd_getgr_r.c: Likewise.
11064 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11066 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11067 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11069 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11071 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11073 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11075 * include/rpc/auth.h: Mark xdr_des_block_internal and
11076 xdr_opaque_auth_internal as hidden.
11078 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11081 * include/rpc/xdr.h: Mark all _internal functions as hidden.
11083 * misc/getusershell.c (okshells): Don't use static initializers,
11086 * stdlib/fmtmsg.c (keywords): Change type of len element to
11087 uint32_t to not waste space on 64bit machines.
11089 * locale/setlocale.c: Change _nl_category_names into a string.
11090 Add new _nl_category_name_idxs. Change all users.
11091 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11092 Declare _nl_category_name_idxs.
11093 * locale/findlocale.c: Adjust for _nl_category_names change.
11094 * locale/loadlocale.c: Likewise.
11095 * locale/newlocale.c: Likewise.
11096 * intl/dcigettext.c: Likewise.
11098 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11099 (add_alias2): ...here. New function.
11100 (__gconv_read_conf): Simplify builtin alias handling.
11101 (builtin_aliases): Convert to string to avoid relocations.
11102 * iconv/gconv_builtin.h: Add comment about correct formatting.
11104 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11106 * resolv/res_debug.c (loc_ntoa): Make error const.
11108 2006-05-14 Andreas Schwab <schwab@suse.de>
11110 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11112 2006-05-12 Jakub Jelinek <jakub@redhat.com>
11114 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11115 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11116 sizeof (cpu_set_t).
11118 2006-05-11 Ulrich Drepper <drepper@redhat.com>
11120 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11122 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11124 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11125 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11127 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11128 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11130 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11131 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11134 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11135 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11138 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11139 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11141 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11142 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11144 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11145 * include/rpcsvc/nis_callback.h: New file.
11147 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11148 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11150 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11151 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11153 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11154 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11156 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11157 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11159 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11160 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11163 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11164 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11166 * nis/nis_error.c: Remove table of strings. Use position
11167 independent mechanism.
11168 * nis/nis_error.h: New file.
11170 2006-05-11 Jakub Jelinek <jakub@redhat.com>
11172 * locale/programs/ld-time.c (time_finish): If wide era name or
11173 format aren't provided, set both wname and wformat to L"".
11175 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11177 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11178 results if the call was succesful.
11180 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11182 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11185 2006-05-10 Jakub Jelinek <jakub@redhat.com>
11187 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11189 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11191 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11192 caller makes sure this is not the case.
11193 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11195 2006-05-09 Ulrich Drepper <drepper@redhat.com>
11197 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11200 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11201 [Coverity CID 229, 230]
11203 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11205 (hol_help): Likewise. [Coverity CID 226, 227]
11207 * string/argz-replace.c (__argz_replace): Unconditionally call
11208 free on SRC. [Coverity CID 225]
11210 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11211 the return value of __nis_default_owner and __nis_default_group,
11212 it has been especially allocated. [Coverity CID 224]
11214 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11215 searchgroup and searchowner. Significantly simplified.
11216 (__nis_default_owner): Remove duplication. Do not locally copy the
11217 string before duplicating it.
11218 (__nis_default_group): Likewise.
11220 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11221 we must clear the variable before calling __nisfind_server.
11223 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11224 nis_getnames. [Coverity CID 223]
11226 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11227 xmalloc to allocate local repertoire name. [Coverity CID 222]
11229 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11230 allocate memory for the input to add_bytes. [Coverity CID 221]
11232 * posix/wordexp.c (w_addword): Free word if realloc fails and it
11233 was allocated here. [Coverity CID 219, 220]
11235 * posix/getconf.c (print_all): Free confstr data after printing.
11238 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11239 list allocation fails. [Coverity CID 215]
11241 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11244 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11245 string is NULL. [Coverity CID 212]
11246 * argp/Makefile: Add rules to build and run bug-argp1.
11247 * argp/bug-argp1.c: New file.
11249 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11251 * stdlib/canonicalize.c (__realpath): Likewise.
11253 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11254 pointer. [Coverity CID 206]
11256 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11257 in statically linked code.
11258 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11259 statically built code, be prepared to have no link map.
11262 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11263 dgettext calls. [Coverity CID 204]
11265 * argp/argp-help.c (struct uparams): Remove valid member. Change
11267 (uparam_names): Reduce size. Avoid relative relocations.
11268 Moved to read-only segment.
11269 (fill_in_uparams): Update for new layout.
11271 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11272 assumed to always be != NULL. [Coverity CID 202]
11274 * argp/argp-help.c (hol_entry_help): Remove some dead code
11275 [Coverity CID 200].
11277 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11278 away a few more unconditional yperr2nss calls.
11279 (_nss_nis_getservbyname_r): Likewise.
11281 2006-05-06 Ulrich Drepper <drepper@redhat.com>
11283 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11286 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11287 that unused memory passed to sendto is nevertheless initialized.
11290 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11291 possibly unaligned memory accesses.
11293 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11294 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11295 and __putlong respectively. Correct buffer overflow check for
11298 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11300 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11301 (send_dg): Rewrite error handling to be more compact and avoid
11302 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11304 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11306 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11307 instead of ns_get16.
11308 (res_queriesmatch): Likewise. Minor optimization.
11311 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11312 __libc_res_nsend might reallocate the buffer for the answer. In
11313 this case we have to reload the HP pointer.
11315 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11317 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11318 some branch prediction hints.
11320 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11321 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11322 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11323 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11324 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11325 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11326 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11327 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11329 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11331 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11332 by a GOT relocation to make Scrt1.o position independent.
11333 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11335 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11336 six system call parameters.
11337 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11339 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11341 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11344 * sunrpc/svc_udp.c (BZERO): Remove definition.
11346 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11348 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11349 (des_SPtrans): Use uint32_t type.
11350 (des_skb): Likewise.
11352 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11354 2006-05-05 Jakub Jelinek <jakub@redhat.com>
11357 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11360 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11362 * locale/programs/ld-address.c (address_finish): Fix one more
11363 place where the iso639 array might be accessed beyond the limits.
11365 2006-05-04 Ulrich Drepper <drepper@redhat.com>
11367 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11368 filling it for the first time.
11370 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11371 Adjust all callers.
11372 Free res object content before returning.
11374 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11376 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11379 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11380 cleanup for initial thread, just the free call on TVP.
11382 * nscd/gai.c (__getline): Define.
11385 See ChangeLog.16 for earlier changes.