1 2005-11-09 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/generic/check_fds.c (check_one_fd): For writable
4 descriptors, use /dev/full.
5 (__libc_check_standard_fds): Reverse modes so that common operations on
8 2005-11-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10 * elf/elf.h (R_M32R_REL32): New macro.
12 2005-11-05 Marcus Brinkmann <marcus@gnu.org>
14 * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
15 (S_ISPARE): Unset the S_IMMAP0 flag.
17 2005-11-07 Roland McGrath <roland@redhat.com>
19 * configure.in: Grok --with-cpu=CPU option. If given, search for
20 sysdeps/.../machine/CPU subdirs, and give error if none are found.
21 * configure: Regenerated.
22 * config.make.in (with-cpu): New substituted variable.
23 * Makeconfig (+cflags): Add -mcpu=$(with-cpu) if set.
25 * malloc/malloc.c (munmap_chunk): Suppress warnings from last change.
27 * sysdeps/unix/bsd/sun: Directory and all subdirectories removed,
28 saved in ports repository.
29 * sysdeps/unix/sysv/linux/tcflush.c: Rewritten.
30 * sysdeps/unix/sysv/linux/tcflow.c: Rewritten.
32 2005-11-06 Ulrich Drepper <drepper@redhat.com>
34 * malloc/malloc.c (munmap_chunk): Add sanity checks.
36 * sysdeps/pthread/configure: Fix comment.
38 2005-11-05 Ulrich Drepper <drepper@redhat.com>
40 * configure.in: Remove gnu_as definition and everything using it.
41 * config.make.in: Remove gnu-as.
42 * config.h.in: Remove HAVE_GNU_AS.
44 * configure.in: Remove gnu_ld definition and everything using it.
45 * config.h.in: Remove HAVE_GNU_LD.
46 * config.make.in: Remove gnu-ld.
47 * csu/Makefile: Remove use of gnu-ld.
48 * csu/munch.awk: Removed.
49 * csu/munch-tmpl.c: Removed.
50 * include/libc-symbols.h: Remove use of HAVE_GNU_LD.
51 * posix/execl.c: Likewise.
52 * posix/execv.c: Likewise.
53 * stdio-common/psignal.c: Likewise.
54 * stdlib/exit.c: Likewise.
55 * string/strsignal.c: Likewise.
56 * string/tester.c: Likewise.
57 * sysdeps/generic/errlist.c: Likewise.
58 * sysdeps/generic/getenv.c: Likewise.
59 * sysdeps/generic/getgroups.c: Likewise.
60 * sysdeps/generic/init-posix.c: Likewise.
61 * sysdeps/posix/gettimeofday.c: Likewise.
62 * sysdeps/posix/system.c: Likewise.
63 * sysdeps/unix/bsd/init-posix.c: Likewise.
64 * sysdeps/unix/bsd/ulimit.c: Likewise.
65 * sysdeps/unix/bsd/sun/m68k/brk.S: Likewise.
66 * sysdeps/unix/bsd/sun/m68k/sethostid.S: Likewise.
67 * sysdeps/unix/bsd/sun/sparc/sethostid.S: Likewise.
68 * sysdeps/unix/i386/brk.S: Likewise.
69 * sysdeps/unix/sparc/brk.S: Likewise.
71 * configure.in: Remove test for support for subtracting local labels.
72 * config.h.in: Remove HAVE_SUBTRACT_LOCAL_LABELS.
73 * stdio-common/vfprintf.c: Remove test of
74 HAVE_SUBTRACT_LOCAL_LABELS.
76 * configure.in: If init_array/fini_array support is not available,
78 * config.h.in: Remove trace of optional init_array/fini_array support.
79 * config.make.in: Likewise.
80 * csu/elf-init.c: Likewise.
81 * dlfcn/dlfcn.c: Likewise.
82 * elf/soinit.c: Likewise.
83 * sysdeps/ia64/elf/initfinit.c: Likewise.
85 2005-11-04 Roland McGrath <roland@redhat.com>
87 * sysdeps/i386/configure.in (libc_mtune_example): Variable removed.
88 * sysdeps/i386/configure: Regenerated.
91 * configure.in: Change order of add-on sysdeps directories,
92 so they are interleaved with main sysdeps directories.
93 * configure: Regenerated.
95 2005-11-03 Roland McGrath <roland@redhat.com>
97 * NEWS: Synch with 2.3 branch updates.
99 2005-11-03 Ulrich Drepper <drepper@redhat.com>
101 * sunrpc/svc.c (svc_getreq_poll): Fix inefficient loop test.
103 2005-11-03 Roland McGrath <roland@redhat.com>
106 * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,
107 make sure constant is long.
108 From Jay Lan <jlan@engr.sgi.com>.
110 2005-11-03 Ulrich Drepper <drepper@redhat.com>
113 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use simple
114 gethostbyname2 lookup if AI_V4MAPPED|AI_ALL is set.
116 * sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid alloca when possible
117 while looking for scope delimiter.
118 Some pretty printing.
120 2005-10-31 Steven Munroe <sjmunroe@us.ibm.com>
122 * sysdeps/powerpc/powerpc64/Makefile
123 (sysdep_routines, elide-routines.os): Add hp-timing.
124 * sysdeps/powerpc/powerpc64/hp-timing.c: New file.
125 * sysdeps/powerpc/powerpc64/hp-timing.h: New file.
126 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: New file.
128 2005-10-31 Ulrich Drepper <drepper@redhat.com>
130 * resolv/res_init.c (__res_iclose): New function. Broken out of
131 res_nclose. Take addition parameter which determines whether
132 addresses should be freed.
133 (res_nclose): Call __res_iclose.
134 (res_thread_freeres): Likewise.
135 * resolv/res_data.c (res_close): Call __res_iclose.
136 * resolv/res_libc.c (res_init): No need to separately free the
138 (__res_maybe_init): Likewise.
139 * resolv/res_send.c: Use __res_iclose instead of res_nclose.
140 * resolv/Versions [GLIBC_PRIVATE]: Add __res_iclose.
141 * include/resolv.h: Declare __res_iclose.
142 Add libc_hidden_proto for __res_iclose.
143 * hesiod/hesiod.c (__hesiod_res_set): No need to free name server
144 addresses here again.
147 * debug/execinfo.h: Change backtrace_symbols_fd comment.
149 2005-10-24 H.J. Lu <hongjiu.lu@intel.com>
151 * sysdeps/ia64/fpu/libm-symbols.h (WEAK_LIBM_ENTRY): Add "__"
152 prefix to LOCAL_LIBM_ENTRY.
153 (WEAK_LIBM_END): Add "__" prefix to LOCAL_LIBM_END.
155 2005-10-26 Jakub Jelinek <jakub@redhat.com>
157 * elf/dl-conflict.c (_dl_resolve_conflicts): Use _dl_debug_printf
158 instead of _dl_printf to print conflict processing debug message.
159 Reported by John Reiser <jreiser@BitWagon.com>.
161 2005-10-30 Ulrich Drepper <drepper@redhat.com>
163 * misc/hsearch_r.c (hsearch_r): Remove duplicate test.
164 Patch by Chris Caputo <ccaputo@alt.net>.
166 2005-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
168 * sysdeps/unix/sh/sysdep.S: Remove unnecessary weak_alias.
169 * sysdeps/unix/sysv/linux/sh/socket.S: Honor NO_WEAK_ALIAS.
171 2005-10-28 Thorsten Kukuk <kukuk@suse.de>
173 * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Fix off
176 2005-10-24 Roland McGrath <roland@redhat.com>
179 * include/string.h: Use libc_hidden_proto for strnlen,
180 not libc_hidden_builtin_proto.
182 2005-10-23 Ulrich Drepper <drepper@redhat.com>
184 * rt/mqueue.h: Cleanups.
186 2005-10-22 Roland McGrath <roland@redhat.com>
189 * sysdeps/mach/hurd/getpeername.c (__getpeername): Fix last change.
190 From Samuel Thibault <samuel.thibault@ens-lyon.org>.
192 2005-10-17 Thomas Schwinge <tschwinge@gnu.org>
195 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Don't use ?: as lvalue.
196 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
198 2005-10-20 Ulrich Drepper <drepper@redhat.com>
200 * iconvdata/ibm1364.h (__ucs4_to_ibm1364sb): Fix one mapping.
201 * iconvdata/ibm1388.h (__ucs4_to_ibm1388sb): Likewise.
202 * iconvdata/testdata/IBM1364: Add missing valid input.
203 * iconvdata/testdata/IBM1388: Likewise.
204 * iconvdata/testdata/IBM1364..UTF8: Adjust appropriately.
205 * iconvdata/testdata/IBM1388..UTF8: Likewise.
206 Patch by Masahide Washizawa <washi@jp.ibm.com>.
208 2005-08-23 GOTO Masanori <gotom@debian.or.jp>
211 * sysdeps/alpha/remqu.S: Return the correct result when the same
212 dividend and divisor are provided, and they're negative numbers.
213 * sysdeps/alpha/divqu.S: Likewise.
215 2005-10-18 Steven Munroe <sjmunroe@us.ibm.com>
217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h (TESTS):
222 2005-10-19 Ulrich Drepper <drepper@redhat.com>
224 * iconvdata/Makefile (modules): Add IBM1364, IBM1371, IBM1388, IBM1390,
226 (distribute): Add ibm1364.c, ibm1364.h, ibm1371.c, ibm1371.h,
227 ibm1388.c, ibm1388.h, ibm1390.c, ibm1390.h, ibm1399.c, and ibm1399.h.
228 * iconvdata/TESTS: Add entries for IBM1364, IBM1371, IBM1388, IBM1390,
230 * iconvdata/gconv-modules: Likewise.
231 * iconvdata/ibm1364.c: New file.
232 * iconvdata/ibm1364.h: New file.
233 * iconvdata/ibm1371.c: New file.
234 * iconvdata/ibm1371.h: New file.
235 * iconvdata/ibm1388.c: New file.
236 * iconvdata/ibm1388.h: New file.
237 * iconvdata/ibm1390.c: New file.
238 * iconvdata/ibm1390.h: New file.
239 * iconvdata/ibm1399.c: New file.
240 * iconvdata/ibm1399.h: New file.
241 * iconvdata/testdata/IBM1364: New file.
242 * iconvdata/testdata/IBM1364..UTF8: New file.
243 * iconvdata/testdata/IBM1371: New file.
244 * iconvdata/testdata/IBM1371..UTF8: New file.
245 * iconvdata/testdata/IBM1388: New file.
246 * iconvdata/testdata/IBM1388..UTF8: New file
247 * iconvdata/testdata/IBM1390: New file.
248 * iconvdata/testdata/IBM1390..UTF8: New file.
249 * iconvdata/testdata/IBM1399: New file.
250 * iconvdata/testdata/IBM1399..UTF8: New file.
251 Original patch by Masahide Washizawa <washi@jp.ibm.com>.
253 2005-10-17 Roland McGrath <roland@redhat.com>
255 * elf/dl-load.c (MAP_COPY): When undefined, define to
256 MAP_PRIVATE|MAP_DENYWRITE instead of just MAP_PRIVATE.
257 (_dl_map_object_from_fd): Don't use MAP_DENYWRITE explicitly.
259 2005-10-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
261 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):
263 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS):
266 2005-10-17 Ulrich Drepper <drepper@redhat.com>
268 * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.
271 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Also
272 allow EACCES errors when opening /proc for now.
274 * wctype/wcfuncs.c: Don't use expensive wide char lookups in isw*
275 functions if character is in ASCII range.
276 * wctype/wcfuncs_l.c: Likewise.
278 2005-05-03 Robert Millan <robertmh@gnu.org>
280 * abi-tags (.*-.*-knetbsd.*-gnu.*): New match, with ABI value 4.
281 * elf/cache.c (print_entry): Match the kNetBSD ABI tag.
283 2005-10-16 Alfred M. Szmidt <ams@gnu.org>
285 * sysdeps/generic/bits/mman.h
286 [__USE_GNU] (MREMAP_MAYMOVE, REMAP_FIXED): New macros.
288 2005-10-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
290 * sysdeps/unix/sysv/linux/sh/makecontext.S: New file.
291 * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: New file.
292 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: New file.
293 * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: New file.
294 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: New file.
295 * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: New file.
296 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: New file.
297 * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: New file.
298 * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: New file.
299 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Removed.
300 * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: New file.
301 * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: New file.
303 2005-09-13 Jakub Jelinek <jakub@redhat.com>
306 * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Make sure these
307 are defined for -D_GNU_SOURCE or -D_ISOC99_SOURCE even when not
310 2005-10-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
312 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MREMAP_FIXED.
314 2005-08-05 Alfred M. Szmidt <ams@gnu.org>
317 * sysdeps/mach/hurd/setitimer.c (restart_itimer): Move static fn
318 forward decl out of function body.
319 * sysdeps/mach/hurd/profil.c: Likewise.
321 2005-10-16 Roland McGrath <roland@frob.com>
324 * sysdeps/mach/hurd/getpeername.c (__getpeername): Respect *LEN
325 byte limit when setting ADDR->sa_family.
326 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
329 * sysdeps/mach/hurd/dl-sysdep.h
330 [SHARED] (DL_ARGV_NOT_RELRO): New macro.
333 * sysdeps/mach/hurd/i386/init-first.c (init): Make cast kosher.
334 (_hurd_stack_setup): Don't declare with arguments and ellipsis.
335 Use __builtin_frame_address and __builtin_return_address.
336 (_dl_init_first): Likewise.
339 * sysdeps/mach/hurd/i386/init-first.c (_cthread_init_routine): Declare
341 (init): Check for it being undefined.
343 2005-10-16 Daniel Jacobowitz <dan@codesourcery.com>
344 Roland McGrath <roland@redhat.com>
346 * Makerules [module-names] (extra-modules-build): New variable.
347 ($(extra-modules-build:%=$(objpfx)%.so)): New static pattern rule.
348 Depend on libc.so and libc_nonshared.a.
349 * dlfcn/Makefile ($(test-modules)): Remove static pattern rule.
350 * elf/Makefile (modules-names-nobuild): New variable, add filtmod1.
351 ($(test-modules)): Remove static pattern rule.
353 2005-10-15 Thomas Schwinge <tschwinge@gnu.org>
355 * include/dirent.h: Include <stdbool.h>.
356 * sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
357 (fdopendir): Correct argument to _hurd_fd_get().
358 * sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
360 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
363 * posix/regcomp.c (init_word_char, duplicate_node_closure,
364 fetch_token, peek_token_bracket, build_range_exp,
365 build_collating_symbol): Remove forward decls; no longer needed
366 now that we use prototypes.
368 2005-10-15 Ulrich Drepper <drepper@redhat.com>
371 * posix/regex_internal.h: Remove last traces of
372 RE_NO_INTERNAL_PROTOTYPES.
375 * string/strxfrm_l.c (STRXFRM): Fix exit conditions of two loops.
377 * sysdeps/unix/fdopendir.c (fdopendir): Make sure descriptor
380 * wcsmbs/tst-mbrtowc2.c: Use de_DE.UTF-8 instead of en_US.UTF-8.
381 * wcsmbs/Makefile: Define tst-mbrtowc2-ENV.
383 * posix/regexec.c: Finish prototyping of static functions.
384 * posix/regex_internal.c: Likewise.
386 2005-10-14 Roland McGrath <roland@frob.com>
388 * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): New function, broken
390 (__opendir): ... here. Call it.
391 * sysdeps/mach/hurd/fdopendir.c: New file.
393 2005-10-14 Ulrich Drepper <drepper@redhat.com>
396 * math/tgmath.h: Correctly determine result type for
397 __TGMATH_BINARY_REAL_ONLY,
398 __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
399 __TGMATH_TERNARY_REAL_ONLY, and __TGMATH_BINARY_REAL_IMAG.
401 2005-09-17 Andreas Jaeger <aj@suse.de>
404 * math/test-tgmath-int.c: New file.
405 * math/Makefile (tests): Add test-tgmath-int.
407 2005-10-14 Ulrich Drepper <drepper@redhat.com>
410 * malloc/tst-mtrace.sh: Work around for bootstraping.
412 * locale/programs/ld-collate.c (collate_output): Fix counting of
413 elements. Don't limit table size. Use correct secondary hash
415 * locale/localeinfo.h (LIMAGIC): Change value returned for LC_COLLATE.
416 * posix/fnmatch_loop.c: Adjust for changed secondary hash function.
417 * posix/regcomp.c: Likewise.
419 * time/asctime.c (asctime_internal): Use __snprintf instead of
420 snprintf to avoid PLT entry.
422 * sysdeps/unix/opendir.c (__opendir): Pass extra argument to
424 (__alloc_dir): Only close descriptor on error if new parameter is true.
425 * sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to
426 __alloc_dir. Don't close fd on error.
427 * include/dirent.h (__alloc_dir): Adjust prototype.
429 * stdlib/Makefile (tests): Add tst-ucontext-off.
430 * stdlib/tst-ucontext-off.c: New file.
431 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TESTS): Define.
432 * sysdeps/unix/sysv/linux/i386/ucontext_i.h (TESTS): Likewise.
435 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Fix values for
436 oFPREGS, oSIGMASK, oFPREGSMEM, and oMXCSR.
437 Patch by Nicholas Miell <nmiell@comcast.net>.
440 * time/asctime.c (asctime_internal): New function, derived from
441 asctime_r. Takes additional parameter which is the buffer length.
442 Use snprintf instead sprintf, if it overflows, fail.
443 (asctime_r): Call asctime_internal with 26 as buffer length.
444 (asctime): Call asctime_internal with length of internal buffer.
445 * time/Makefile (tests): Add bug-asctime_r.
446 * time/bug-asctime_r.c: New file.
449 * time/asctime.c (__asctime_r): Check for tm_year computation to
450 overflow and fail in this case.
451 * time/Makefile (tests): Add bug-asctime.
452 * time/bug-asctime.c: New file.
455 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MREMAP_FIXED.
456 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
457 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
458 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
459 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
460 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
461 * misc/sys/mman.h: Add ellipsis after last parameter of mremap and
462 adjust leading comment.
463 * sysdeps/unix/sysv/linux/syscalls.list: Add pointer parameter to
465 * include/sys/mman.h (__mremap): Add ellipsis.
466 * malloc/memusage.c: Adjust mremap wrapper for optional additional
469 2005-10-13 Ulrich Drepper <drepper@redhat.com>
472 * libio/iogetdelim.c (_IO_getdelim): Fix truncation of return
473 value. Avoid overflow in computation.
476 * argp/argp.h: Remove __NTH for __argp_usage inline function.
478 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
481 * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
482 bitset_mask, re_string_allocate, re_string_construct,
483 re_string_reconstruct, re_string_destruct, re_string_elem_size_at,
484 re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case,
485 re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1,
486 re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect,
487 re_node_set_init_union, re_node_set_merge, re_node_set_insert,
488 re_node_set_insert_last, re_node_set_compare, re_node_set_contains,
489 re_node_set_remove_at, re_dfa_add_node, re_acquire_state,
490 re_acquire_state_context): Remove unnecessary forward decls.
491 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
492 Put __attribute at function definition, now that the function decl
494 * posix/regex_internal.c (re_string_peek_byte_case,
495 re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
498 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
501 * posix/regex_internal.c (re_string_skip_chars, register_state,
502 calc_state_hash): Remove forward decls.
503 * posix/regexec.c (acquire_init_state_context, check_halt_node_context,
504 proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes,
505 clean_state_log_if_needed): Likewise.
507 2005-10-13 Ulrich Drepper <drepper@redhat.com>
509 * posix/regex.c: No need to use K&R definitions for static functions.
510 * posix/regex_internal.c: Likewise.
511 * posix/regcomp.c: Likewise.
514 * sysdeps/generic/s_csqrt.c (__csqrt): For zero real part, return
515 principal square root.
516 * sysdeps/generic/s_csqrtf.c (__csqrtf): Likewise.
517 * sysdeps/generic/s_csqrtl.c (__csqrtl): Likewise.
518 * math/libm-test.inc (csqrt_test): Add test for returning
521 * include/features.h: Define _POSIX_C_SOURCE to 200112 for
522 _XOPEN_SOURCE == 600.
524 2005-10-12 Ulrich Drepper <drepper@redhat.com>
526 * malloc/malloc.c (_int_free): Fail if block size is obviously wrong.
528 * include/malloc.h: Remove _int_new_arena prototype.
529 * malloc/arena.c (_int_new_arena): Move definition ahead of
530 arena_get2 and make static.
532 Correctly implement M_MXFAST.
533 * malloc/malloc.c (struct malloc_state): Replace max_fast with flags
535 (global_max_fast): New variable.
536 (set_max_fast): Change to not require arena parameter and to modify
537 global_max_fast. Change all callers.
538 (get_max_fast): New macro. Use this instead of directly accessing
539 now removed max_fast arena member.
540 (have_fastchunks): Use flags instead of max_fast.
541 (clear_fastchunks): Likewise.
542 (set_fastchunks): Likewise.
543 (contiguous): Likewise.
544 (noncontiguous): Likewise.
545 (set_noncontiguous): Likewise.
546 (set_contiguous): Likewise.
547 (malloc_init_state): Explicitly set FASTCHUNKS_BIT. Call set_max_fast
549 * malloc/hooks.c (public_sET_STATe): Adjust set_max_fast use.
551 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
553 * sysdeps/generic/bits/byteswap.h (__bswap_constant_16): New macro.
554 (__bswap_16): Use it.
555 (__bswap_constant_32): New macro.
556 (__bswap_32): Use it.
558 2005-10-10 Ulrich Drepper <drepper@redhat.com>
560 * malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_recursive_cntr.
562 2005-10-08 Jakub Jelinek <jakub@redhat.com>
564 * nss/getent.c (hosts_keys): Pass INADDRSZ as size rather
565 than IN6ADDRSZ to AF_INET gethostbyaddr.
567 2005-10-07 Roland McGrath <roland@redhat.com>
570 * include/features.h: Make tests on _FORTIFY_SOURCE and __OPTIMIZE__
572 (__USE_FORTIFY_LEVEL): Always define it, to 0 if nothing else.
574 2005-10-06 Ulrich Drepper <drepper@redhat.com>
576 * sysdeps/unix/sysv/linux/readonly-area.c: Allow fopen to fail because
577 the file does not exist.
579 2005-10-05 Simon Josefsson <jas@extundo.com>
582 * crypt/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): New macros.
584 2005-10-05 Roland McGrath <roland@redhat.com>
586 * crypt/Makefile (distribute): Remove duplicate defn.
588 * sysdeps/generic/ldsodefs.h (struct audit_ifaces):
589 Use ARCH_PLTENTER_MEMBERS and ARCH_PLTEXIT_MEMBERS macros if defined.
590 * elf/tst-auditmod1.c: Include <tst-audit.h> to define more
591 architecture-specific code.
592 * sysdeps/generic/tst-audit.h: New file.
593 * elf/Makefile (distribute): Add it.
595 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
597 * elf/elf.h (R_ARM_TLS_DTPMOD32, R_ARM_TLS_DTPOFF32,
598 R_ARM_TLS_TPOFF32, R_ARM_TLS_GD32, R_ARM_TLS_LDM32,
599 R_ARM_TLS_LDO32, R_ARM_TLS_IE32, R_ARM_TLS_LE32): New macros.
601 2005-10-03 Roland McGrath <roland@redhat.com>
603 * sysdeps/powerpc/nofpu: Directory removed, saved in ports repository.
605 2005-09-30 Ulrich Drepper <drepper@redhat.com>
607 * posix/regex.h: Pretty printing.
608 Clean up namespace a bit.
610 2005-09-30 Jakub Jelinek <jakub@redhat.com>
612 * posix/regexec.c (update_cur_sifted_state, check_arrival,
613 check_arrival_add_next_nodes): Avoid using uninitialized variable.
615 * malloc/memusage.c (dest): Fix a bunch of warnings on 32-bit arches.
617 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 4.0.x.
619 2005-09-29 Ulrich Drepper <drepper@redhat.com>
621 * iconvdata/Makefile (modules): Add IBM803, IBM901, IBM902, IBM921,
622 IBM1008, IBM1008_420, IBM1097, IBM1112, IBM1123, IBM1130, IBM1140,
623 IBM1141, IBM1142, IBM1143, IBM1144, IBM1145, IBM1146, IBM1147, IBM1148,
624 IBM1149, IBM1166, IBM1167, IBM4517, IBM4899, IBM4909, IBM4971,
625 IBM5347, IBM9030, IBM9066, IBM9448, IBM12712, IBM16804.
626 (distribute): Add ibm803.c, ibm803.h, ibm901.c, ibm901.h, ibm902.c,
627 ibm902.h, ibm921.c, ibm921.h, ibm1008.c, ibm1008.h, ibm1008_420.c,
628 ibm1097.c, ibm1097.h, ibm1112.c, ibm1112.h, ibm1123.c, ibm1123.h,
629 ibm1130.c, ibm1130.h, ibm1140.c, ibm1140.h, ibm1141.c, ibm1141.h,
630 ibm1142.c, ibm1142.h, ibm1143.c, ibm1143.h, ibm1144.c, ibm1144.h,
631 ibm1145.c, ibm1145.h, ibm1146.c, ibm1146.h, ibm1147.c, ibm1147.h,
632 ibm1148.c, ibm1148.h, ibm1149.c, ibm1149.h, ibm1166.c, ibm1166.h,
633 ibm1167.c, ibm1167.h, ibm4517.c, ibm4517.h, ibm4899.c, ibm4899.h,
634 ibm4909.c, ibm4909.h, ibm4971.c, ibm4971.h, ibm5347.c, ibm5347.h,
635 ibm9030.c, ibm9030.h, ibm9066.c, ibm9066.h, ibm9448.c, ibm9448.h,
636 ibm12712.c, ibm12712.h, ibm16804.c, ibm16804.h.
637 * iconvdata/TESTS: Add entries for new modules.
638 * iconvdata/gconv-modules: Likewise.
639 * iconvdata/ibm803.c: New file.
640 * iconvdata/ibm803.h: New file.
641 * iconvdata/ibm901.c: New file.
642 * iconvdata/ibm901.h: New file.
643 * iconvdata/ibm902.c: New file.
644 * iconvdata/ibm902.h: New file.
645 * iconvdata/ibm921.c: New file.
646 * iconvdata/ibm921.h: New file.
647 * iconvdata/ibm1008.c: New file.
648 * iconvdata/ibm1008.h: New file.
649 * iconvdata/ibm1008_420.c: New file.
650 * iconvdata/ibm1097.c: New file.
651 * iconvdata/ibm1097.h: New file.
652 * iconvdata/ibm1112.c: New file.
653 * iconvdata/ibm1112.h: New file.
654 * iconvdata/ibm1123.c: New file.
655 * iconvdata/ibm1123.h: New file.
656 * iconvdata/ibm1130.c: New file.
657 * iconvdata/ibm1130.h: New file.
658 * iconvdata/ibm1140.c: New file.
659 * iconvdata/ibm1140.h: New file.
660 * iconvdata/ibm1141.c: New file.
661 * iconvdata/ibm1141.h: New file.
662 * iconvdata/ibm1142.c: New file.
663 * iconvdata/ibm1142.h: New file.
664 * iconvdata/ibm1143.c: New file.
665 * iconvdata/ibm1143.h: New file.
666 * iconvdata/ibm1144.c: New file.
667 * iconvdata/ibm1144.h: New file.
668 * iconvdata/ibm1145.c: New file.
669 * iconvdata/ibm1145.h: New file.
670 * iconvdata/ibm1146.c: New file.
671 * iconvdata/ibm1146.h: New file.
672 * iconvdata/ibm1147.c: New file.
673 * iconvdata/ibm1147.h: New file.
674 * iconvdata/ibm1148.c: New file.
675 * iconvdata/ibm1148.h: New file.
676 * iconvdata/ibm1149.c: New file.
677 * iconvdata/ibm1149.h: New file.
678 * iconvdata/ibm1166.c: New file.
679 * iconvdata/ibm1166.h: New file.
680 * iconvdata/ibm1167.c: New file.
681 * iconvdata/ibm1167.h: New file.
682 * iconvdata/ibm4517.c: New file.
683 * iconvdata/ibm4517.h: New file.
684 * iconvdata/ibm4899.c: New file.
685 * iconvdata/ibm4899.h: New file.
686 * iconvdata/ibm4909.c: New file.
687 * iconvdata/ibm4909.h: New file.
688 * iconvdata/ibm4971.c: New file.
689 * iconvdata/ibm4971.h: New file.
690 * iconvdata/ibm5347.c: New file.
691 * iconvdata/ibm5347.h: New file.
692 * iconvdata/ibm9030.c: New file.
693 * iconvdata/ibm9030.h: New file.
694 * iconvdata/ibm9066.c: New file.
695 * iconvdata/ibm9066.h: New file.
696 * iconvdata/ibm9448.c: New file.
697 * iconvdata/ibm9448.h: New file.
698 * iconvdata/ibm12712.c: New file.
699 * iconvdata/ibm12712.h: New file.
700 * iconvdata/ibm16804.c: New file.
701 * iconvdata/ibm16804.h: New file.
702 * iconvdata/testdata/IBM803: New file.
703 * iconvdata/testdata/IBM803..UTF8: New file.
704 * iconvdata/testdata/IBM901: New file.
705 * iconvdata/testdata/IBM901..UTF8: New file.
706 * iconvdata/testdata/IBM902: New file.
707 * iconvdata/testdata/IBM902..UTF8: New file.
708 * iconvdata/testdata/IBM921: New file.
709 * iconvdata/testdata/IBM921..UTF8: New file.
710 * iconvdata/testdata/IBM1008: New file.
711 * iconvdata/testdata/IBM1008..UTF8: New file.
712 * iconvdata/testdata/IBM1097: New file.
713 * iconvdata/testdata/IBM1097..UTF8: New file.
714 * iconvdata/testdata/IBM1112: New file.
715 * iconvdata/testdata/IBM1112..UTF8: New file.
716 * iconvdata/testdata/IBM1123: New file.
717 * iconvdata/testdata/IBM1123..UTF8: New file.
718 * iconvdata/testdata/IBM1130: New file.
719 * iconvdata/testdata/IBM1130..UTF8: New file.
720 * iconvdata/testdata/IBM1140: New file.
721 * iconvdata/testdata/IBM1140..UTF8: New file.
722 * iconvdata/testdata/IBM1141: New file.
723 * iconvdata/testdata/IBM1141..UTF8: New file.
724 * iconvdata/testdata/IBM1142: New file.
725 * iconvdata/testdata/IBM1142..UTF8: New file.
726 * iconvdata/testdata/IBM1143: New file.
727 * iconvdata/testdata/IBM1143..UTF8: New file.
728 * iconvdata/testdata/IBM1144: New file.
729 * iconvdata/testdata/IBM1144..UTF8: New file.
730 * iconvdata/testdata/IBM1145: New file.
731 * iconvdata/testdata/IBM1145..UTF8: New file.
732 * iconvdata/testdata/IBM1146: New file.
733 * iconvdata/testdata/IBM1146..UTF8: New file.
734 * iconvdata/testdata/IBM1147: New file.
735 * iconvdata/testdata/IBM1147..UTF8: New file.
736 * iconvdata/testdata/IBM1148: New file.
737 * iconvdata/testdata/IBM1148..UTF8: New file.
738 * iconvdata/testdata/IBM1149: New file.
739 * iconvdata/testdata/IBM1149..UTF8: New file.
740 * iconvdata/testdata/IBM1166: New file.
741 * iconvdata/testdata/IBM1166..UTF8: New file.
742 * iconvdata/testdata/IBM1167: New file.
743 * iconvdata/testdata/IBM1167..UTF8: New file.
744 * iconvdata/testdata/IBM4517: New file.
745 * iconvdata/testdata/IBM4517..UTF8: New file.
746 * iconvdata/testdata/IBM4899: New file.
747 * iconvdata/testdata/IBM4899..UTF8: New file.
748 * iconvdata/testdata/IBM4909: New file.
749 * iconvdata/testdata/IBM4909..UTF8: New file.
750 * iconvdata/testdata/IBM4971: New file.
751 * iconvdata/testdata/IBM4971..UTF8: New file.
752 * iconvdata/testdata/IBM5347: New file.
753 * iconvdata/testdata/IBM5347..UTF8: New file.
754 * iconvdata/testdata/IBM9030: New file.
755 * iconvdata/testdata/IBM9030..UTF8: New file.
756 * iconvdata/testdata/IBM9066: New file.
757 * iconvdata/testdata/IBM9066..UTF8: New file.
758 * iconvdata/testdata/IBM9448: New file.
759 * iconvdata/testdata/IBM9448..UTF8: New file.
760 * iconvdata/testdata/IBM12712: New file.
761 * iconvdata/testdata/IBM12712..UTF8: New file.
762 * iconvdata/testdata/IBM16804: New file.
763 * iconvdata/testdata/IBM16804..UTF8: New file.
764 Patch by Masahide WASHIZAWA <washi@jp.ibm.com>.
766 * iconvdata/run-iconv-test.sh: Run ASCII->encoding->ASCII suntzus
767 test only if $subset is N.
769 2005-09-29 Roland McGrath <roland@redhat.com>
772 * posix/sys/wait.h [!__GNUC__ || __cplusplus] (__WAIT_INT): Use const.
774 2005-09-29 Alfred M. Szmidt <ams@gnu.org>
776 * elf/rtld.c [DL_ARGV_NOT_RELRO] (_dl_argc, _dl_skip_args):
777 Don't use attribute_relro.
779 2005-09-29 Roland McGrath <roland@redhat.com>
782 * posix/sys/wait.h (__WAIT_INT): Rewrite using an initializer,
783 in case __typeof yields a const-qualified type.
785 2005-09-28 Ulrich Drepper <drepper@redhat.com>
787 * dirent/dirent.h: Declare fdopendir.
788 * dirent/Versions: Export fdopendir for GLIBC_2.4.
789 * dirent/Makefile (routines): Add fdopendir.
790 (tests): Add tst-fdopendir.
791 * dirent/tst-fdopendir.c: New file.
792 * include/dirent.h: Declare __alloc_dir.
793 * sysdeps/generic/fdopendir.c: New file.
794 * sysdeps/unix/fdopendir.c: New file.
795 * sysdeps/unix/opendir.c: Split off back part of opendir into new
796 function __alloc_dir.
798 2005-09-26 Steven Munroe <sjmunroe@us.ibm.com>
801 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
804 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
805 Ulrich Drepper <drepper@redhat.com>
808 Change bitset word type from unsigned int to unsigned long int,
809 as this has better performance on typical 64-bit hosts. Change
810 bitset type name to bitset_t.
811 * posix/regcomp.c (build_equiv_class, build_charclass):
812 (build_range_exp, build_collating_symbol):
813 Prefer bitset_t to re_bitset_ptr_t in prototypes, when the actual
814 argument is a bitset. This is merely a style issue, but it makes
815 it clearer that an entire array is expected.
816 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps,
817 lower_subexp): Adjust for new bitset_t definition.
818 (lower_subexp, parse_bracket_exp, built_charclass_op): Likewise.
819 * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain,
820 bitset_not, bitset_merge, bitset_set_all, bitset_mask): Likewise.
821 * posix/regexec.c (check_dst_limits_calc_pos_1,
822 check_subexp_matching_top, build_trtable, group_nodes_into_DFAstates):
824 * posix/regcomp.c (utf8_sb_map): Don't assume initializer
826 * posix/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
828 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
829 (bitset_word_t): New type, replacing 'unsigned int' for bitset uses.
831 (BITSET_WORD_MAX): New macro.
832 (bitset_set, bitset_clear, bitset_contain, bitset_empty,
833 (bitset_set_all, bitset_copy): Adjust for bitset_t change.
834 (bitset_empty, bitset_copy):
835 Prefer sizeof (bitset_t) to multiplying it out ourselves.
836 (bitset_not_merge): Remove; unused.
837 (bitset_contain): Return bool, not unsigned int with one bit on.
839 * posix/regexec.c (build_trtable): Don't assume bitset_t has no
840 stricter alignment than re_node_set; do this by defining a new
841 internal type struct dests_alloc and using it to allocate memory.
843 2005-09-27 Ulrich Drepper <drepper@redhat.com>
846 * stdlib/strtod_l.c (STRNCASECMP): Always use C locale object.
847 (TOLOWER_C): Define. Use it when recognizing inf and nan.
848 * stdlib/Makefile (tests): Add bug-strtod2.
849 * stdlib/bug-strtod2.c: New file.
851 2005-09-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
854 * argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
855 * argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
856 argp/argp-xinl.c: Fix up whitespace.
858 2005-09-27 Ulrich Drepper <drepper@redhat.com>
861 * stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
862 which the functions were registered.
863 * dlfcn/Makefile: Add rules to build and run bug-atexit1 and
865 * dlfcn/bug-atexit1.c: New file.
866 * dlfcn/bug-atexit1-lib.c: New file.
867 * dlfcn/bug-atexit2.c: New file.
868 * dlfcn/bug-atexit2-lib.c: New file.
871 * libio/fileops.c (_IO_new_file_xsputn): Determine amount of
872 available space in non-line-buffered buffer correctly.
873 * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
874 * stdio-common/Makefile (tests): Add tst-fwrite.
875 * stdio-common/tst-fwrite.c: New file.
877 2005-09-26 Ulrich Drepper <drepper@redhat.com>
880 * malloc/arena.c (ptmalloc_lock_all): If global lock already taken
881 by the same thread, just bump the counter.
882 (ptmalloc_unlock_all): If counter for recursive locks hasn't reached
883 zero, don't do anything else.
884 * malloc/Makefile (tests): Add tst-mallocfork.
885 * malloc/tst-mallocfork.c: New file.
888 * malloc/malloc.c (_int_realloc): Make error message clearer.
891 * libio/iofgets.c: Treat N==1 correctly.
892 * libio/iofgets_u.c: Likewise.
893 * libio/iofgetws.c: Likewise.
894 * libio/iofgetws_u.c: Likewise.
895 * stdio-common/Makefile (tests): Add tst-fgets.
896 * stdio-common/tst-fgets.c: New file.
898 2005-01-11 Thorsten Kukuk <kukuk@suse.de>
901 * posix/getconf.c: Add new option -a to print the names of
902 the current system configuration variables to stdout.
903 Based on patch from Josh Aas <josha@sgi.com>.
905 2005-09-26 Ulrich Drepper <drepper@redhat.com>
908 * sysdeps/posix/getaddrinfo.c (fls): New function.
909 (gaih_inet): Don't use ffs, use fls. Convert address to native byte
911 * posix/Makefile (tests): Add tst-rfc3484.
912 * posix/tst-rfc3484.c: New file.
915 * libio/iofclose.c (_IO_new_fclose): Unlock the internal lock
916 before destroying it as part of the _IO_FINISH call.
917 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
920 * sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if
921 number of bits is multiple of 8.
922 Patch by Fredrik Tolf <fredrik@dolda2000.com>.
925 * elf/dl-load.c: Report failed loading due to ELF class mismatch
929 * manual/llio.texi (Waiting for I/O): Correct description of read
930 conditions reported by select.
932 2005-09-24 Jakub Jelinek <jakub@redhat.com>
934 * inet/getnetgrent_r.c (innetgr): Call endfct even if result != 0.
935 Return 1 only if result == 1. Patch by Benoit Capelle.
937 2005-09-25 Ulrich Drepper <drepper@redhat.com>
940 * manual/stdio.texi (Hook Functions): Correct type of position
941 parameter of seeker and fix fallout of the change in the text.
944 * iconv/loop.c [!STORE_REST] (SINGLE): Correctly record number of
945 left-over bytes and store them correctly.
946 * wcsmbs/tst-mbrtowc2.c: New file.
947 * wcsmbs/Makefile (tests): Add tst-mbrtowc2.
949 2005-09-24 Roland McGrath <roland@redhat.com>
951 * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository.
952 * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
954 2005-09-24 Ulrich Drepper <drepper@redhat.com>
957 * locale/iso-639.def: More updates from the current spec.
959 * locale/programs/ld-address.c (address_finish): Produce better
960 error messages for invalid lang_ab use.
962 * locale/iso-639.def: Add a few updates from current spec.
964 2005-09-23 Ulrich Drepper <drepper@redhat.com>
967 * locale/iso-4217.def: Replace MGF with MGA.
969 * iconvdata/jis0208.c (__jisx0208_from_ucs4_lat1): Reduce size of
971 * iconvdata/jis0208.h (ucs4_to_jisx0208): Adjust access.
973 2004-08-13 GOTO Masanori <gotom@debian.or.jp>
976 * iconvdata/jis0208.c: Remove 0x005C mapping from
977 __jisx0208_from_ucs4_lat1.
978 Reported by Fumitoshi UKAI <ukai@debian.or.jp>
980 2005-09-23 Ulrich Drepper <drepper@redhat.com>
983 * libio/fmemopen.c (fmemopen_write): Return 0 instead of -1 if
984 nothing can be written.
985 * libio/iofopncook.c (_IO_cookie_write): If something went wrong,
988 2005-09-22 Ulrich Drepper <drepper@redhat.com>
991 * posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
992 * posix/regcomp.c: Remove unnecessary uses of
993 unsigned RE_TRANSLATE_TYPE.
994 * posix/regex_internal.h: Likewise.
995 * posix/regex_internal.c: Likewise.
996 * posix/regexexec.c: Likewise.
997 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
1000 * locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
1003 * nscd/nscd_getpw_r.c (nscd_getpw_r): Remove incorrectly C&Ped
1004 free call in code handling detection of GC runs.
1006 2005-09-22 Roland McGrath <roland@redhat.com>
1008 * elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
1009 static __thread variable.
1010 From Alexandre Oliva <aoliva@redhat.com>
1012 * Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
1013 Reported by Alexandre Oliva <aoliva@redhat.com>.
1015 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1017 * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.
1019 2005-09-20 Roland McGrath <roland@redhat.com>
1021 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use execv, not execl.
1024 * elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
1025 magic on __stack_prot only if [SHARED]. Skip mprotect if __stack_prot
1026 lies outside the page-rounded-down relro region.
1028 2005-09-19 Richard Henderson <rth@redhat.com>
1031 * sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s)
1032 to a temporary first.
1033 (inline_syscall2, inline_syscall3, inline_syscall4): Likewise.
1034 (inline_syscall5, inline_syscall6): Likewise.
1036 * sysdeps/alpha/ldiv.S (lldiv): Add alias.
1038 2005-09-17 Ulrich Drepper <drepper@redhat.com>
1041 * sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
1044 * debug/xtrace.sh: Add missing escape character in -? match.
1045 Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
1048 * wctype/wctype.h: Remove stray __END_NAMESPACE_C99.
1049 * stdlib/stdlib.h: Use __END_NAMESPACE_STD instead of
1050 __END_NAMESPACE_C99 in one place.
1051 * scripts/begin-end-check.pl: New file.
1052 Patch by Ralph Loader <suckfish@ihug.co.nz>.
1053 * Makefile: Add rules to run scripts/begin-end-check.pl.
1055 2005-09-17 Andreas Jaeger <aj@suse.de>
1057 * timezone/zdump.c: Include ctype.h.
1059 2005-09-16 Andreas Jaeger <aj@suse.de>
1062 * sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
1064 2005-09-16 Maciej W. Rozycki <macro@linux-mips.org>
1067 * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
1068 the syscall immediately before invocation.
1069 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
1070 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
1072 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
1073 macros to handle GP.
1074 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
1075 Likewise. Update inaccurate comments.
1077 2005-09-13 Ulrich Drepper <drepper@redhat.com>
1079 * sysdeps/posix/spawni.c (__spawni): Automatically recognize some
1080 more cases when we can use vfork.
1082 2005-08-29 Thomas Schwinge <schwinge@nic-nac-project.de>
1085 * manual/memory.texi (Hooks for Malloc): Correct prototype of
1086 my_init_hook and definition of my_free_hook.
1088 2005-09-12 Roland McGrath <roland@redhat.com>
1091 * malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
1093 Reported by Matej Vela <vela@debian.org>.
1095 2005-09-12 Jakub Jelinek <jakub@redhat.com>
1097 * malloc/malloc.c (struct malloc_chunk): Fix comment typo.
1098 (public_cALLOc): For mmapped chunks and perturb_byte != 0,
1099 don't clear SIZE_SZ bytes more than should be cleared.
1101 2005-09-09 Jakub Jelinek <jakub@redhat.com>
1103 * inet/getnetgrent_r.c: Include assert.
1104 (setup): Remove FUNC_NAME and ALL arguments, assume they are always
1105 "setnetgrent" and 1.
1106 (endnetgrent_hook): New function.
1107 (internal_endnetgrent): Use it.
1108 (__internal_setnetgrent_reuse): Use it. Adjust setup caller.
1109 If status is NSS_STATUS_SUCCESS, yet action is continue, call
1111 (internal_getnetgrent_r): Use __nss_lookup_function rather than
1112 setup. Recompute getfct pointer after successful
1113 __internal_setnetgrent_reuse. Don't use __nss_next.
1114 (innetgr): Use __nss_lookup_function instead of __nss_lookup.
1115 Adjust setup caller.
1116 * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Always clear
1117 data_size and cursor. Add libnss_files_hidden_proto and
1118 libnss_files_hidden_def.
1119 (_nss_files_setnetgrent): Call _nss_files_endnetgrent on failure.
1120 * nis/nss_nis/nis-netgrp.c (internal_endnetgrent): Always clear
1121 data_size and cursor.
1122 (_nss_nis_setnetgrent): Don't call internal_endnetgrent.
1123 (_nss_nis_getnetgrent_r): Remove result->cursor == NULL handling.
1124 * nis/nss_nisplus/nisplus-netgrp.c (internal_endnetgrent): Always clear
1125 data_size and position.
1126 (_nss_nisplus_setnetgrent): Don't call internal_endnetgrent.
1128 2005-09-09 Ulrich Drepper <drepper@redhat.com>
1130 * nss/getent.c (netgroup_keys): Call endnetgrent.
1131 (main): Call mtrace.
1133 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): We don't
1134 need locking for the stream. Use feof_unlocked.
1136 2005-09-09 Jakub Jelinek <jakub@redhat.com>
1139 * locale/loadarchive.c (_nl_load_locale_from_archive): Free
1140 normalized_codeset even if p was already normalized.
1141 Reported by Jaroslav Snajdr <jsnajdr@kerio.com>.
1143 2005-09-08 Roland McGrath <roland@redhat.com>
1145 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
1146 properly, first byte is bit number in mask. Skip disabled caps.
1148 2005-07-11 Derek R. Price <derek@ximbiot.com>
1151 * sysdeps/generic/glob.c (glob): Only a 0 return from
1152 getlogin_r means success, according to POSIX 1003.2.
1154 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
1157 * time/mktime.c: Import from gnulib.
1158 The following macros are now consistent with other gnulib code.
1159 This does not change mktime's behavior.
1160 (TYPE_IS_INTEGER): New macro.
1161 (time_t_is_integer): Use it.
1162 (TYPE_TWOS_COMPLEMENT): New macro.
1163 (twos_complement_arithmetic): Use it.
1164 (TYPE_ONES_COMPLEMENT): New macro.
1165 (TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
1166 mktime doesn't use this, but the code now matches other gnulib code.
1167 (ranged_convert): Pacify GCC 4.0 in a different way, which
1168 generates a few bytes less code.
1169 (ranged_convert, __mktime_internal): When calling a function via a
1170 pointer P, use P () rather than (*P) (), as we now assume C89 or
1173 2005-09-07 Alexandre Oliva <aoliva@redhat.com>
1175 * timezone/test-tz.c: Update to match tzdata2005m.
1176 * timezone/tst-timezone.c: Likewise.
1178 2005-09-07 Ulrich Drepper <drepper@redhat.com>
1180 * posix/regexec.c (find_recover_state): Remove unnecessary
1182 (transit_state_bkref): Make DFA a const pointer.
1183 (get_subexp): Likewise.
1184 (check_arrival): Likewise.
1185 (update_cur_sifted_state): Likewise.
1186 (re_search_internal): Likewise.
1187 (prune_impossible_nodes): Likewise.
1188 (acquire_init_state_context): Likewise.
1189 (proceed_next_node): Likewise.
1190 (set_regs): Likewise.
1191 (free_fail_stack_return): Likewise.
1192 (check_arrival_expand_ecl): Mark DFA parameter as const.
1193 (check_arrival_expand_ecl_sub): Likewise.
1194 (check_subexp_limits): Likewise.
1195 (sub_epsilon_src_nodes): Likewise.
1196 (add_epsilon_src_nodes): Likewise.
1197 (merge_state_array): Likewise.
1198 (update_regs): Likewise.
1199 (build_trtable): Likewise.
1200 (sift_states_backward): Mark MCTX parameter as const.
1201 (build_sifted_states): Likewise.
1202 (update_cur_sifted_state): Likewise.
1203 (sift_states_mkref): Likewise.
1204 (check_arrival_expand_ecl): Mark eclosure as const.
1205 (check_dst_limits_calc_pos_1): Likewise.
1206 * posix/regex_internal.h (re_match_context_t): Make dfa a const
1209 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1211 * timezone/africa: Update from tzdata2005m.
1212 * timezone/asia: Likewise.
1213 * timezone/australasia: Likewise.
1214 * timezone/backward: Likewise.
1215 * timezone/europe: Likewise.
1216 * timezone/northamerica: Likewise.
1217 * timezone/southamerica: Likewise.
1218 * timezone/zone.tab: Likewise.
1219 * timezone/zdump.c: Update from tzcode2005m.
1221 * posix/regexec.c (merge_state_with_log): Define dfa as const pointer.
1222 (transit_state_sb): Likewise.
1223 (transit_state_mb): Likewise.
1224 (sift_states_iter_mb): Likewise.
1225 (check_arrival_add_next_nodes): Likewise.
1226 (check_node_accept_bytes): Change first parameter to pointer-to-const.
1227 [_LIBC] (re_search_2_stub): Use mempcpy.
1229 * posix/regex_internal.c (re_string_reconstruct): Avoid calling
1230 mbrtowc for very simple UTF-8 case.
1232 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
1234 * posix/regex_internal.c (build_wcs_upper_buffer): Fix portability
1235 bugs in int versus size_t comparisons.
1237 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1239 * posix/regex_internal.c (re_acquire_state): Make DFA pointer arg
1241 (re_acquire_state_context): Likewise.
1242 * posix/regex_internal.h: Adjust prototypes.
1244 2005-08-31 Jim Meyering <jim@meyering.net>
1246 * posix/regcomp.c (search_duplicated_node): Make first pointer arg
1248 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate,
1249 register_state): Likewise.
1250 * posix/regexec.c (search_cur_bkref_entry, check_dst_limits):
1251 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
1252 (group_nodes_into_DFAstates): Likewise.
1254 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
1256 * posix/regexec.c (re_search_internal): Simplify update of
1257 rm_so and rm_eo by replacing "if (A == B) A += C - B;"
1258 with the equivalent of "if (A == B) A = C;".
1260 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1262 * posix/regcomp.c (re_compile_internal): Change third parameter type
1264 (init_dfa): Likewise. Make sure that arithmetic on pat_len doesn't
1266 * posix/regex_internal.h (struct re_dfa_t): Change type of nodes_alloc
1267 and nodes_len to size_t.
1268 * posix/regex_internal.c (re_dfa_add_node): Use size_t as type for
1269 new_nodes_alloc. Check for overflow.
1271 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
1273 * posix/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
1274 (optimize_subexps, lower_subexp):
1275 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
1276 since the signed shift might overflow. Use 1u<<31 instead.
1277 * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
1279 * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise.
1280 (check_subexp_matching_top): Likewise.
1281 * posix/regcomp.c (optimize_subexps, lower_subexp):
1282 Use CHAR_BIT rather than 8, for clarity.
1283 * posix/regexec.c (check_dst_limits_calc_pos_1):
1284 (check_subexp_matching_top): Likewise.
1285 * posix/regcomp.c (init_dfa): Make table_size unsigned, so that we
1286 don't have to worry about portability issues when shifting it left.
1287 Remove no-longer-needed test for table_size > 0.
1288 * posix/regcomp.c (parse_sub_exp): Do not shift more bits than there
1289 are in a word, as the resulting behavior is undefined.
1290 * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise;
1291 in one case, a <= should have been an <, and in another case the
1292 whole test was missing.
1293 * posix/regex_internal.h (BYTE_BITS): Remove. All uses changed to
1294 the standard name CHAR_BIT.
1296 * posix/regex_internal.h (re_sub_match_top_t): Remove unused member
1298 (struct re_dfa_t): Remove unused member states_alloc.
1299 * posix/regcomp.c (init_dfa): Don't initialize unused members.
1301 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
1303 * posix/regexec.c (set_regs): Don't alloca with an unbounded size.
1305 alloca modernization/simplification for regex.
1306 * posix/regex.c: Remove portability cruft for alloca. This no longer
1307 needs to be at the start of the file, and can be moved into
1308 regex_internal.h and simplified.
1309 * posix/regex_internal.h: Include <alloca.h>.
1310 (__libc_use_alloca) [!defined _LIBC]: New macro.
1311 * posix/regexec.c (build_trtable): Remove "#ifdef _LIBC",
1312 since the code now works outside glibc.
1314 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1316 * include/regex.h: Remove use of _RE_ARGS.
1318 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
1320 * posix/regexec.c (find_recover_state): Change "err" to "*err".
1322 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
1324 * posix/regcomp.c (regerror): Pointer args are 'restrict',
1326 * posix/regex.h (regerror): Likewise.
1327 * manual/pattern.texi (POSIX Regexp Compilation): Likewise.
1328 Similarly for regcomp and regexec. Also, first 2 args of regexec
1329 and 2nd arg of regerror are const.
1331 * posix/regex.c: Do not include <sys/types.h>, as POSIX no longer
1332 requires this. (The code never needed it.)
1334 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
1336 * posix/regexec.c (sift_states_bkref): re_node_set_insert returns
1337 int, not reg_errcode_t.
1339 * posix/regex_internal.c (calc_state_hash): Put 'inline' before type,
1340 since some broken compilers warn about it otherwise.
1342 * posix/regcomp.c (create_initial_state): Remove duplicate decl.
1344 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
1346 * posix/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
1347 C89 or better. All uses removed.
1349 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1351 * posix/regex.c: Prevent using C++ compilers.
1353 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
1355 * posix/regcomp.c (duplicate_node): Return new index, not an error
1356 code, and let the caller return REG_ESPACE if out of space. This
1357 removes an uninitialied-variable warning with GCC 4.0.1, and also
1358 avoids taking the address of a local variable. All callers
1361 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1363 * include/time.h (__strptime_internal): Rename parameter to avoid
1364 bogus compiler warning.
1366 2005-08-19 Jim Meyering <jim@meyering.net>
1368 * posix/regexec.c (proceed_next_node): Redo local variables to
1369 avoid GCC shadowing warnings.
1371 2005-09-06 Ulrich Drepper <drepper@redhat.com>
1373 * posix/regex_internal.c (re_acquire_state): Minor code rearrangement.
1374 (re_acquire_state_context): Likewise.
1376 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
1378 * posix/regex_internal.c (re_string_realloc_buffers):
1379 (re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
1380 Rename local variables to avoid GCC shadowing warnings.
1382 2005-07-08 Eric Blake <ebb9@byu.net>
1383 Paul Eggert <eggert@cs.ucla.edu>
1385 * posix/regcomp.c (init_dfa): Store __btowc value in wint_t, not
1386 wchar_t. Remove now-unnecessary cast.
1387 (build_range_exp): Likewise.
1389 2005-08-31 Bob Wilson <bob.wilson@acm.org>
1391 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Remove the
1392 exponent bias from the increment value for scaling by 2^60.
1394 2005-09-05 Alexandre Oliva <aoliva@redhat.com>
1396 * configure.in: Compile source test file with -fPIC for -shared.
1398 2005-09-04 Ulrich Drepper <drepper@redhat.com>
1400 * iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
1401 it wasn't used. Remove use of from_object and to_object variable,
1402 replace with some constants. Adjust users.
1404 * sysdeps/i386/bits/string.h: Removed.
1406 * stdio-common/Makefile (tests): Add tst-put-error.
1407 * stdio-common/tst-put-error.c: New file.
1408 * libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
1409 data would have to be written signal error.
1410 * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
1412 * libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
1414 2005-09-02 Ulrich Drepper <drepper@redhat.com>
1416 * elf/dl-load.c (_dl_map_object_from_fd): No need to change
1417 protection of memory used for the last segment.
1419 2005-08-22 Robert Millan <robertmh@gnu.org>
1421 * sysdeps/mach/hurd/nfs/nfs.h: Move to ...
1422 * sysdeps/generic/nfs/nfs.h: ... here.
1424 2005-09-01 Ulrich Drepper <drepper@redhat.com>
1426 * libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
1427 Add __wur to feof{,_unlocked}, ferror{,_unlocked},
1428 fileno{,_unlocked}, and popen.
1430 2005-08-30 Ulrich Drepper <drepper@redhat.com>
1432 * sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
1434 2005-08-01 Bob Wilson <bob.wilson@acm.org>
1435 Richard Sandiford <richard@codesourcery.com>
1437 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
1438 exponent bias to the value for 2^126.
1440 2005-08-30 Jakub Jelinek <jakub@redhat.com>
1441 Alan Modra <amodra@bigpond.net.au>
1443 * elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
1444 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
1445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
1447 2005-08-23 Ulrich Drepper <drepper@redhat.com>
1449 * nscd/nscd.c (main): Use error while process isn't running in the
1450 background, not dbg_log.
1451 * nscd/nscd_conf.c (nscd_parse_file): Likewise.
1452 Mark messages with _(). Unify testing for database name.
1454 * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
1455 (dbs): Initialize max_db_size fields.
1456 (nscd_init): When mapping the database, use max_db_size as the
1457 mapping size even if it is bigger than the file size.
1458 * nscd/mem.c (mempool_alloc): When resizing the file make sure the
1459 limit in max_db_size is not exceeded. Don't use mremap, just
1460 posix_fallocate is enough (according to Linus). Use posix_fallocate
1462 * nscd/nscd.conf: Add max-db-size parameters.
1463 * nscd/nscd.h (struct database_dyn): Add max_db_size field.
1464 Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
1465 Temporarily define TEMP_FAILURE_RETRY_VAL here.
1466 * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
1467 and add sanity checks for it.
1469 * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
1471 * nscd/connection.c (writeall): Likewise.
1472 (handle_request): Likewise.
1473 * nscd/grpcache.c (cache_addgr): Likewise.
1474 * nscd/hstcache.c (cache_addhst): Likewise.
1475 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1476 * nscd/nscd.c (parse_opt): Likewise.
1477 * nscd/nscd_stat.c (send_stats): Likewise.
1478 (receive_print_stats): Likewise.
1479 * nscd/pwdcache.c (cache_addpw): Likewise.
1481 * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
1483 2005-08-22 Jakub Jelinek <jakub@redhat.com>
1485 * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
1486 sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
1487 Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
1488 * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
1489 * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
1490 len by sizeof (wchar_t).
1491 * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
1492 * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
1493 Fix type of SRC argument. Pass &SRC rather than SRC to
1495 * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
1497 * debug/tst-chk1.c: Include assert.h.
1498 (do_test): Change enough array from VLA into a fixed size array.
1499 Assert that MB_CUR_MAX is <= sizeof (enough). Use FAIL () macro
1500 instead of print error details. Add several new tests.
1501 Kill some unused variable warnings.
1503 2005-08-21 Ulrich Drepper <drepper@redhat.com>
1505 * resolv/res_send.c (Aerror): Fix printing IP address.
1507 * resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
1509 2005-08-19 H.J. Lu <hongjiu.lu@intel.com>
1511 * sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
1513 2005-08-17 Robert Love <rml@novell.com>
1515 * sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
1517 2005-08-19 Bruno Haible <bruno@clisp.org>
1519 * intl/localealias.c (read_alias_file): In case of failure, close the
1520 file descriptor and sort the array before returning.
1522 2005-08-19 Ulrich Drepper <drepper@redhat.com>
1524 * malloc/Makefile: Link libmemusage.so with ld.so.
1525 * malloc/memusage.c: Use atomic operations for all counter and size
1526 computations. Handle thread stacks.
1527 * sysdeps/generic/memusage.h: Define memusage_cntr_t and
1529 * sysdeps/i386/i686/memusage.h: New file.
1530 * include/atomic.h: Define atomic_max and atomic_min.
1532 * debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
1534 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
1537 * posix/regex.h: Remove spurious space-before-tab. From gnulib.
1539 2005-08-16 Ulrich Drepper <drepper@redhat.com>
1541 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1543 * sysdeps/unix/sysv/linux/sys/inotify.h: New file.
1544 * sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
1546 * nscd/cache.c (prune_cache): Add more debug output. Only for
1547 debug level 3 and higher and very verbose.
1549 * nscd/cache.c (prune_cache): Use stat64 not stat.
1550 * nscd/connections.c (nscd_init): Likewise.
1552 2005-08-10 Sergio Gelato <Sergio.Gelato@astro.su.se>
1555 * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
1556 from (len > 0) to (len >= 0).
1558 2005-08-16 Ulrich Drepper <drepper@redhat.com>
1560 * nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
1561 Reported by Thomas Schwinge.
1563 2005-08-15 Jakub Jelinek <jakub@redhat.com>
1565 * nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
1567 2005-08-16 Ulrich Drepper <drepper@redhat.com>
1569 * nss/getent.c (more_help): Use open_memstream instead of handling
1570 memory allocation ourselves.
1572 2005-08-16 Jay Fenlason <fenlason@redhat.com>
1574 * nss/getent.c (parse_options): change the -s option to support
1575 {database}:{search} to override /etc/resolv.conf for only the
1578 2005-08-08 Ulrich Drepper <drepper@redhat.com>
1580 * nscd/connections.c (main_loop_epoll): Pass NULL as event
1581 argument for epoll_ctl(EPOLL_CTL_DEL) calls.
1583 * nscd/nscd_stat.c (receive_print_stats): Really print values of
1584 thread number, paranoia, and restart interval the server is using.
1586 * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
1587 * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
1588 * debug/vfprintf_chk.c: Add libc_hidden_def.
1590 2005-08-08 Roland McGrath <roland@redhat.com>
1592 * argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
1593 (__argp_failure): Likewise.
1595 2005-08-08 Ulrich Drepper <drepper@redhat.com>
1597 * nscd/cache.c (cache_add): Commit hash table and header to disk.
1599 * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
1600 * nscd/connections.c (nscd_init): Likewise.
1602 2005-08-08 Jakub Jelinek <jakub@redhat.com>
1604 * stdio-common/fxprintf.c: Include libioP.h.
1606 * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
1607 getdomainname): Add __NTH.
1608 * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
1610 (realpath): Likewise. Use __const instead of const. Add __restrict
1612 * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
1613 * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
1614 wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
1615 mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
1616 * string/bits/string3.h (__memset_ichk): Likewise.
1617 (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
1618 __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
1619 __strncat_ichk): Likewise. Use __const instead of const.
1620 (__stpncpy_chk): Use __const instead of const.
1621 (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
1623 2005-08-08 Ulrich Drepper <drepper@redhat.com>
1624 Jakub Jelinek <jakub@redhat.com>
1626 * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
1628 * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
1629 * nscd/connections.c (usekey): New enum.
1630 (check_use, verify_persistent_db): New functions.
1631 (nscd_init): If persistent database is corrupted, unlink it and
1632 recreate rather than falling back to non-persistent database.
1633 Call verify_persistent_db. Avoid overflows in total computation.
1635 2005-08-08 Ulrich Drepper <drepper@redhat.com>
1637 * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
1638 better readable. Avoid passing var to loop function, it's not
1641 2005-08-07 Ulrich Drepper <drepper@redhat.com>
1643 * elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
1646 2005-08-05 Ulrich Drepper <drepper@redhat.com>
1648 * timezone/checktab.awk: Update from tzcode2005k.
1649 * timezone/private.h: Likewise.
1650 * timezone/scheck.c: Likewise.
1651 * timezone/tzselect.ksh: Likewise.
1652 * timezone/zdump.c: Likewise.
1653 * timezone/zic.c: Likewise.
1654 * timezone/africa: Update from tzdata2005k.
1655 * timezone/antarctica: Likewise.
1656 * timezone/asia: Likewise.
1657 * timezone/australasia: Likewise.
1658 * timezone/europe: Likewise.
1659 * timezone/iso3166.tab: Likewise.
1660 * timezone/leapseconds: Likewise.
1661 * timezone/northamerica: Likewise.
1662 * timezone/solar87: Likewise.
1663 * timezone/solar88: Likewise.
1664 * timezone/solar89: Likewise.
1665 * timezone/southamerica: Likewise.
1666 * timezone/zone.tab: Likewise.
1668 2005-08-05 Roland McGrath <roland@frob.com>
1671 * mach/shortcut.awk: Ignore `weak_alias' lines.
1672 Reported by Alfred M. Szmidt <ams@gnu.org>.
1675 * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
1676 Reported by Alfred M. Szmidt <ams@gnu.org>.
1678 2005-08-03 Dwayne Grant McConnell <dgm69@us.ibm.com>
1680 * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
1681 Use +=, not =, to append. Remove duplicate flags.
1682 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
1683 Likewise. Fix comments.
1685 2005-08-01 Ulrich Drepper <drepper@redhat.com>
1687 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
1688 call if it returned EINTR.
1690 2005-07-31 Ulrich Drepper <drepper@redhat.com>
1692 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
1693 helper variable into .data.rel.ro. Simplify the code. Extend
1694 comment to explain prelinking.
1696 2005-07-31 Andreas Jaeger <aj@suse.de>
1698 * include/bits/syslog.h: New file.
1700 2005-07-30 Ulrich Drepper <drepper@redhat.com>
1702 * elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
1703 up. We have more program header entries now and the note section
1704 was normally not loaded.
1706 * nis/nis_subr.c: Some minor code cleanups.
1708 2005-07-29 Ulrich Drepper <drepper@redhat.com>
1710 * misc/bits/syslog.h: New file.
1711 * misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
1712 * misc/Makefile (headers): Add bits/syslog.h.
1713 * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
1714 * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
1715 Call __vfprintf_chk if necessary. Make vsyslog a wrapper. Add
1717 * misc/Versions: Export __syslog_chk and __vsyslog_chk.
1719 2005-07-28 Thomas Schwinge <schwinge@nic-nac-project.de>
1722 * misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.
1724 2005-07-28 Ulrich Drepper <drepper@redhat.com>
1726 * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
1729 2005-07-28 Jakub Jelinek <jakub@redhat.com>
1731 * stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
1733 * gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.
1735 2005-07-28 Ulrich Drepper <drepper@redhat.com>
1737 * nis/nis_file.c: Rewrite the two pairs of functions into wrappers
1738 around a pair of new, generalized functions. 22% size reduction.
1740 2005-07-27 Ulrich Drepper <drepper@redhat.com>
1742 * nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
1743 Rearrange code. This reduces the code size 10%.
1745 2005-07-26 Jakub Jelinek <jakub@redhat.com>
1747 * misc/error.c (error_tail): Fix a comment typo.
1749 2005-07-25 Ulrich Drepper <drepper@redhat.com>
1751 * po/zh_TW.po: Update from translation team.
1753 * debug/mbstowcs_chk.c: New file.
1754 * debug/wcstombs_chk.c: New file.
1755 * debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
1756 * debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
1757 * stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.
1759 * wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.
1761 2005-07-24 Ulrich Drepper <drepper@redhat.com>
1763 * string/test-memset.c (test_main): Use negative byte value in
1766 * string/test-memset.c (do_one_test): Compare effect of call, not
1768 Add a few casts to avoid warnings.
1770 2005-07-24 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1772 * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
1774 2005-07-24 Ulrich Drepper <drepper@redhat.com>
1777 * posix/Makefile (tests): Add tst-execvp4.
1778 * posix/tst-execvp4.c: New file.
1780 2005-07-24 Jakub Jelinek <jakub@redhat.com>
1783 * posix/execvp.c (execvp): Change path_malloc to
1784 char *, free that pointer on failure.
1786 2005-07-24 Ulrich Drepper <drepper@redhat.com>
1788 * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
1789 * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
1790 * wcsmbs/tst-wchar-h.c: New file.
1792 2005-07-22 Ulrich Drepper <drepper@redhat.com>
1794 * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
1796 2005-07-22 Jakub Jelinek <jakub@redhat.com>
1798 * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
1799 __gnuc_va_list rather than _G_va_list.
1801 2005-07-22 Roland McGrath <roland@redhat.com>
1804 * Makerules ($(objpfx)stubs): Fix last change.
1806 2005-07-21 Roland McGrath <roland@redhat.com>
1808 * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
1810 * stdlib/Makefile (headers): Move bits/wchar.h to ...
1811 * wcsmbs/Makefile (headers): ... here. Add bits/wchar2.h too.
1813 2005-07-21 Jakub Jelinek <jakub@redhat.com>
1815 * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
1816 * debug/tst-chk1.c (do_test): Add test for swprintf with format
1817 being the last argument.
1819 2005-07-21 Thorsten Kukuk <kukuk@suse.de>
1821 * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
1823 * stdio-common/fxprintf.c: Include string.h.
1825 2005-07-20 Ulrich Drepper <drepper@redhat.com>
1828 * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
1829 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1830 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1832 2005-07-20 Bob Wilson <bob.wilson@acm.org>
1833 Darin Petkov <darin@tensilica.com>
1836 * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
1838 2005-07-20 Jakub Jelinek <jakub@redhat.com>
1840 * include/stdio.h (__fxprintf): Remove wfmt argument.
1841 * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
1842 (__fxprintf): Remove wfmt argument, create wfmt format string on
1844 * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
1845 * argp/argp-help.c: Likewise.
1846 * assert/assert-perr.c: Likewise.
1847 * assert/assert.c: Likewise.
1848 * gmon/gmon.c: Likewise.
1849 * inet/rcmd.c: Likewise.
1850 * malloc/obstack.c: Likewise.
1851 * misc/error.c: Likewise.
1852 * misc/getpass.c: Likewise.
1853 * posix/getopt.c: Likewise.
1854 * resolv/res_hconf.c: Likewise.
1855 * stdio-common/perror.c: Likewise.
1856 * stdio-common/psignal.c: Likewise.
1857 * stdlib/fmtmsg.c: Likewise.
1858 * sunrpc/auth_unix.c: Likewise.
1859 * sunrpc/clnt_perr.c: Likewise.
1860 * sunrpc/clnt_tcp.c: Likewise.
1861 * sunrpc/clnt_udp.c: Likewise.
1862 * sunrpc/clnt_unix.c: Likewise.
1863 * sunrpc/svc_simple.c: Likewise.
1864 * sunrpc/svc_tcp.c: Likewise.
1865 * sunrpc/svc_udp.c: Likewise.
1866 * sunrpc/svc_unix.c: Likewise.
1867 * sunrpc/xdr.c: Likewise.
1868 * sunrpc/xdr_array.c: Likewise.
1869 * sunrpc/xdr_rec.c: Likewise.
1870 * sunrpc/xdr_ref.c: Likewise.
1871 * sysdeps/generic/wordexp.c: Likewise.
1873 2005-07-20 Ulrich Drepper <drepper@redhat.com>
1875 * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
1876 wcsrtombs, mbsnrtowcs, and wcsnrtombs.
1877 * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
1878 wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
1879 * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
1880 __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
1881 * debug/tst-chk1.c: Add tests for new functions.
1882 * debug/mbsnrtowcs_chk.c: New file.
1883 * debug/mbsrtowcs_chk.c: New file.
1884 * debug/wcrtomb_chk.c: New file.
1885 * debug/wcsnrtombs_chk.c: New file.
1886 * debug/wcsrtombs_chk.c: New file.
1888 2005-07-19 Ulrich Drepper <drepper@redhat.com>
1890 * stdio-common/Makefile (aux): Add fxprintf.
1891 * stdio-common/fxprintf.c: New file.
1892 * include/stdio.h: Add declaration for __fxprintf.
1893 * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
1894 orientation test and two separate function calls.
1895 * argp/argp-help.c: Likewise.
1896 * assert/assert-perr.c: Likewise.
1897 * assert/assert.c: Likewise.
1898 * gmon/gmon.c: Likewise.
1899 * inet/rcmd.c: Likewise.
1900 * malloc/obstack.c: Likewise.
1901 * misc/error.c: Likewise.
1902 * misc/getpass.c: Likewise.
1903 * posix/getopt.c: Likewise.
1904 * resolv/res_hconf.c: Likewise.
1905 * stdio-common/perror.c: Likewise.
1906 * stdio-common/psignal.c: Likewise.
1907 * stdlib/fmtmsg.c: Likewise.
1908 * sunrpc/auth_unix.c: Likewise.
1909 * sunrpc/clnt_perr.c: Likewise.
1910 * sunrpc/clnt_tcp.c: Likewise.
1911 * sunrpc/clnt_udp.c: Likewise.
1912 * sunrpc/clnt_unix.c: Likewise.
1913 * sunrpc/svc_simple.c: Likewise.
1914 * sunrpc/svc_tcp.c: Likewise.
1915 * sunrpc/svc_udp.c: Likewise.
1916 * sunrpc/svc_unix.c: Likewise.
1917 * sunrpc/xdr.c: Likewise.
1918 * sunrpc/xdr_array.c: Likewise.
1919 * sunrpc/xdr_rec.c: Likewise.
1920 * sunrpc/xdr_ref.c: Likewise.
1921 * sysdeps/generic/wordexp.c: Likewise.
1924 * misc/Makefile: Add rules to build and run tst-error1.
1925 * misc/tst-error1.c: New file.
1926 * misc/error.c: Fix memory leak and possibly endless loop.
1928 * configure.in: Check for -fstack-protector gcc option.
1929 * config.make.in (have-ssp): Add template.
1930 * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
1932 * nscd/nscd.c (main): Don't ignore result of chdir call.
1934 2005-07-18 Roland McGrath <roland@redhat.com>
1937 * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
1938 objdump command line.
1940 2005-07-18 Ulrich Drepper <drepper@redhat.com>
1942 * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
1944 * nscd/connections.c: Fix a few wur warnings.
1947 * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
1948 length. Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
1950 * debug/confstr_chk.c: New file.
1951 * debug/getdomainname_chk.c: New file.
1952 * debug/getgroups_chk.c: New file.
1953 * debug/gethostname_chk.c: New file.
1954 * debug/getlogin_r_chk.c: New file.
1955 * debug/ttyname_r_chk.c: New file.
1956 * posix/bits/unistd.h: Add definitions for new debug versions.
1957 * debug/tst-chk1.c: Add tests for new functions.
1958 * debug/Versions: Export new functions.
1959 * debug/Makefile (routines): Add new files.
1961 * stdlib/bits/stdlib.h: Fix typo.
1963 2005-07-13 Thorsten Kukuk <kukuk@suse.de>
1965 * manual/Makefile (libc/index.html): Depend on dir-add.texi.
1967 2005-07-15 Ulrich Drepper <drepper@redhat.com>
1969 * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
1971 * wcsmbs/bits/wchar2.h: Likewise.
1973 2005-07-15 Andreas Jaeger <aj@suse.de>
1975 * debug/Makefile (tst-lfschk3-ENV): New, set locale.
1976 (tst-lfschk2-ENV): New.
1977 (tst-lfschk1-ENV): New.
1978 (tst-chk3-ENV): New.
1979 (tst-chk2-ENV): New.
1980 (tst-chk1-ENV): New.
1983 * include/stdlib.h: Remove malloc attribute from __posix_memalign.
1984 * stdlib/stdlib.h: Likewise.
1986 2005-07-15 Ulrich Drepper <drepper@redhat.com>
1988 * wcsmbs/bits/wchar2.h: New file.
1989 * include/bits/wchar2.h: New file.
1990 * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
1992 * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
1993 * string/bits/string3.h: Add fortified stpncpy definitions.
1994 * sysdeps/generic/stpncpy_chk.c: New file.
1995 * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
1996 Export _IO_wstrn_jumps.
1997 * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
1998 * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
1999 * debug/fgetws_chk.c: New file.
2000 * debug/fgetws_u_chk.c: New file.
2001 * debug/fwprintf_chk.c: New file.
2002 * debug/swprintf_chk.c: New file.
2003 * debug/vfwprintf_chk.c: New file.
2004 * debug/vswprintf_chk.c: New file.
2005 * debug/vwprintf_chk.c: New file.
2006 * debug/wcpcpy_chk.c: New file.
2007 * debug/wcpncpy_chk.c: New file.
2008 * debug/wcscat_chk.c: New file.
2009 * debug/wcscpy_chk.c: New file.
2010 * debug/wcsncat_chk.c: New file.
2011 * debug/wcsncpy_chk.c: New file.
2012 * debug/wmemcpy_chk.c: New file.
2013 * debug/wmemmove_chk.c: New file.
2014 * debug/wmempcpy_chk.c: New file.
2015 * debug/wmemset_chk.c: New file.
2016 * debug/wprintf_chk.c: New file.
2017 * debug/tst-chk1.c: Add tests for new functions.
2018 * debug/Versions: Export new functions.
2019 * debug/Makefile (routines): Add new functions.
2021 2005-07-13 Ulrich Drepper <drepper@redhat.com>
2023 * nscd/nscd_helper.c: Add a few __builtin_expect.
2026 * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
2027 * nscd/nscd_helper.c (wait_on_socket): New function.
2028 (get_mapping): Use wait_on_socket instead of poll. The former handles
2029 EINTR of poll correctly.
2030 (__nscd_open_socket): Likewise.
2031 (get_mapping): Make sure BUF is aligned correctly.
2032 (get_mapping): Use munmap on correct pointer.
2034 2005-07-12 Ulrich Drepper <drepper@redhat.com>
2036 * include/libc-symbols.h: Define macros for librt hidden symbols.
2037 * include/time.h: Add librt_hidden_proto definition for clock_gettime.
2038 * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
2039 * sysdeps/unix/clock_gettime.c: Likewise.
2041 * stdlib/bits/stdlib.h: New file.
2042 * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
2044 * Makefile (headers): Add bits/stdlib.h.
2045 * include/bits/stdlib.h: New file.
2046 * debug/Depend: New file.
2047 * debug/ptsname_r_chk.c: New file.
2048 * debug/realpath_chk.c: New file.
2049 * debug/wctomb_chk.c: New file.
2050 * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
2052 * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
2054 * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
2057 2005-07-12 Jakub Jelinek <jakub@redhat.com>
2060 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
2061 (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
2062 instead of read and close_not_cancel_no_status instead of close.
2065 * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
2066 HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
2068 2005-06-27 Carlos O'Donell <carlos@systemhalted.org>
2070 * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
2073 2005-07-08 Ulrich Drepper <drepper@redhat.com>
2075 * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret. Remove
2077 * sysdeps/x86_64/fpu/s_sincos.S: New file.
2079 * include/fenv.h: Add libm_hidden_proto for fesetround and
2081 * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
2082 * sysdeps/alpha/fpu/fesetround.c: Likewise.
2083 * sysdeps/generic/feholdexcpt.c: Likewise.
2084 * sysdeps/generic/fesetround.c: Likewise.
2085 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2086 * sysdeps/i386/fpu/fesetround.c: Likewise.
2087 * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
2088 * sysdeps/ia64/fpu/fesetround.c: Likewise.
2089 * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
2090 * sysdeps/powerpc/fpu/fesetround.c: Likewise.
2091 * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
2092 * sysdeps/s390/fpu/fesetround.c: Likewise.
2093 * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
2094 * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
2095 * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
2096 * sysdeps/sparc/fpu/fesetround.c: Likewise.
2097 * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
2098 * sysdeps/x86_64/fpu/fesetround.c: Likewise.
2099 * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
2101 * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
2103 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
2104 __cos, not sin and cos.
2106 2005-07-07 Ulrich Drepper <drepper@redhat.com>
2108 * resolv/res_send.c (send_dg): Recognize referral results and
2109 treat them as server errors.
2110 Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
2112 2005-07-08 Carlos O'Donell <carlos@systemhalted.org>
2114 * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
2116 * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
2117 * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
2118 * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
2119 * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
2120 * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
2121 * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
2123 2005-07-07 Ulrich Drepper <drepper@redhat.com>
2125 * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
2126 * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
2127 * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
2128 * sysdeps/generic/s_ctan.c (__ctan): Likewise.
2129 * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
2130 * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
2132 2005-04-13 H.J. Lu <hongjiu.lu@intel.com>
2135 * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
2136 (__preinit_array_end): Likewise.
2137 (__init_array_start): Likewise.
2138 (__init_array_end): Likewise.
2139 (__libc_csu_init): Take int argc, char **argv, char **envp.
2140 Call preinit_array and init_array with argc, argv, envp.
2141 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
2143 * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
2144 * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
2145 tst-array5dep.c, and tst-array5.exp.
2146 (tests): Add tst-array5.
2147 (tests-static): Add tst-array5-static.
2148 ($(objpfx)tst-array5): New target.
2149 ($(objpfx)tst-array5.out): Likewise.
2150 ($(objpfx)tst-array5-static.out): Likewise.
2151 * elf/tst-array5-static.c: New file.
2152 * elf/tst-array5-static.exp: Likewise.
2153 * elf/tst-array5.c: Likewise.
2154 * elf/tst-array5.exp: Likewise.
2155 * elf/tst-array5dep.c: Likewise.
2157 2005-07-07 Ulrich Drepper <drepper@redhat.com>
2159 * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
2161 2005-07-05 Jakub Jelinek <jakub@redhat.com>
2163 * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
2164 Reported by Ulrich Weigand <uweigand@de.ibm.com>.
2166 * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
2168 2005-07-06 Ulrich Drepper <drepper@redhat.com>
2170 * elf/dl-error.c (_dl_signal_error): When testing for executable
2171 being relocated, take into account that nothing might even be loaded.
2173 * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
2174 consider_profiling always to zero. Don't count of compiler to
2175 remove unreached if block.
2176 * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
2178 * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
2179 * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
2180 * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
2182 * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
2184 * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
2185 (_dl_profile_resolve): Likewise.
2186 * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
2187 (_dl_profile_resolve): Likewise.
2188 * gmon/Makefile: Add rules to build and run tst-profile-static.
2189 * gmon/tst-profile-static.c: New file.
2190 * Makeconfig (+link-static): Allow passing program-specific flags.
2192 2005-07-05 Thorsten Kukuk <kukuk@suse.de>
2195 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
2196 module provides getgrgid_r.
2197 (getgrnam_plusgroup): Preserve original return value.
2198 * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
2199 original return value.
2200 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
2202 2005-07-05 Ulrich Drepper <drepper@redhat.com>
2205 * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
2207 (build_wcs_upper_buffer): Likewise.
2209 * csu/elf-init.c (__libc_csu_fini): Pretty printing.
2211 2005-07-02 Roland McGrath <roland@redhat.com>
2213 * NEWS: Note LinuxThreads removal.
2214 * manual/install.texi (Installation): Don't mention linuxthreads.
2215 (Configuring and compiling): Don't use linuxthreads as example.
2217 * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
2219 * sysdeps/unix/sysv/linux/configure: Regenerated.
2220 * resolv/Depend: Add nptl.
2221 * rt/Depend: Likewise.
2223 * linuxthreads, linuxthreads_db: Directories removed (preserved in
2226 2005-06-27 Jakub Jelinek <jj@ultra.linux.cz>
2229 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
2232 2005-06-16 Jakub Jelinek <jakub@redhat.com>
2235 * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
2237 2005-06-23 Thorsten Kukuk <kukuk@suse.de>
2240 * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
2241 with own translation.
2243 2005-06-25 Jakub Jelinek <jakub@redhat.com>
2246 * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
2247 t2 to uint32_t instead of ulong.
2248 * sunrpc/Makefile (tests): Add tst-xdrmem.
2249 * sunrpc/tst-xdrmem.c: New test.
2251 * Versions.def (ld): Add GLIBC_2.4.
2252 * configure.in: Add --enable-stackguard-randomization option.
2253 (ENABLE_STACKGUARD_RANDOMIZE): New define.
2254 * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
2255 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
2256 (_dl_setup_stack_chk_guard): New inline function.
2257 * sysdeps/generic/dl-osinfo.h: Include stdint.h.
2258 (_dl_setup_stack_chk_guard): New inline function.
2259 * elf/rtld.c (__stack_chk_guard): New variable.
2260 (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
2261 Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
2262 use THREAD_SET_STACK_GUARD if defined.
2263 * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
2264 * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
2265 (__libc_start_main): Set __stack_chk_guard to
2266 _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
2267 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
2268 traces of TLS_INIT_TP_EXPENSIVE.
2269 * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
2270 * debug/Makefile (routines): Add stack_chk_fail.
2271 (static-only-routines): Add stack_chk_fail_local.
2272 * debug/stack_chk_fail_local.c: New file.
2273 * debug/stack_chk_fail.c: New file.
2274 * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
2276 * elf/tst-stackguard1.c: New file.
2277 * elf/tst-stackguard1-static.c: New file.
2278 * elf/stackguard-macros.h: New file.
2280 2005-06-21 Ulrich Drepper <drepper@redhat.com>
2282 * resource/Makefile (tests): Add tst-getrlimit.
2283 * resource/tst-getrlimit.c: New file.
2285 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
2286 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2287 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2289 2005-06-20 Ulrich Drepper <drepper@redhat.com>
2291 * nscd/nscd.init: Get more in line with lsb3.
2292 * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
2293 * nscd/connections.c: Likewise.
2295 2005-06-20 Jakub Jelinek <jakub@redhat.com>
2298 * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
2299 _LINUX_QUOTA_VERSION >= 2.
2300 (_LINUX_QUOTA_VERSION): Define if not yet defined.
2302 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
2303 RLIMIT_RTPRIO): Add.
2304 (RLIMIT_NLIMITS): Adjust.
2305 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
2306 RLIMIT_RTPRIO): Add.
2307 (RLIMIT_NLIMITS): Adjust.
2308 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
2309 RLIMIT_RTPRIO): Add.
2310 (RLIMIT_NLIMITS): Adjust.
2311 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
2312 RLIMIT_RTPRIO): Add.
2313 (RLIMIT_NLIMITS): Adjust.
2315 2005-06-17 Ulrich Drepper <drepper@redhat.com>
2318 * time/mktime.c: Always include <string.h> for prototype of
2319 implicitly used memcpy.
2322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
2323 (truncate64): Use __truncate, not truncate.
2324 (__have_no_truncate64): Renamed from have_no_truncate64.
2325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
2326 (__have_no_truncate64): Renamed from have_no_truncate64.
2328 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
2329 float functions for gcc 4.
2331 2005-06-10 Jakub Jelinek <jakub@redhat.com>
2333 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
2334 Handle prelinked libraries and binaries with new style PLT.
2336 2005-06-07 Jakub Jelinek <jakub@redhat.com>
2338 * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
2339 R_PPC_REL16_HA): Define.
2341 2005-06-14 Alan Modra <amodra@bigpond.net.au>
2343 * config.h.in (HAVE_ASM_PPC_REL16): Add.
2344 * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
2345 * elf/tls-macros.h (PowerPC32): Include config.h. Add variants of
2346 TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
2347 * sysdeps/powerpc/powerpc32/configure.in: New file,
2348 * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
2349 * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
2350 (ppc_got): New inline function.
2351 (elf_machine_dynamic): Use ppc_got. Add attribute const.
2352 (elf_machine_load_address): Add attribute const. Don't use int vars.
2353 Use bcl rather than bl to save trashing branch target stack. Use
2354 elf_machine_dynamic rather than duplicating code here.
2355 (elf_machine_runtime_setup): New inline function replacing define.
2357 (elf_machine_fixup_plt): Handle new PLT.
2358 (elf_machine_rela): Likewise.
2359 * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
2360 (CALL_MCOUNT): Don't set up counter vars.
2361 * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
2362 * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
2363 define when HAVE_ASM_PPC_REL16.
2364 (_start): Add HAVE_ASM_PPC_REL16 code.
2365 * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
2366 into the GOT when HAVE_ASM_PPC_REL16.
2367 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2368 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
2369 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
2370 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2371 * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2372 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2373 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
2374 * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
2375 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
2376 * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
2377 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
2378 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2379 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2380 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
2382 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
2383 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2384 (__getcontext): Likewise.
2385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2386 (__setcontext): Likewise.
2387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2388 (__swapcontext): Likewise.
2389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
2391 (__socket): Bomb if NARGS >= 7. Invoke CGOTSETUP and CGOTRESTORE.
2393 2005-06-17 Ulrich Drepper <drepper@redhat.com>
2396 * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
2398 * sysdeps/posix/signal.c: Likewise.
2399 * sysdeps/posix/sigset.c: Likewise.
2400 * sysdeps/posix/sysv_signal.c: Likewise.
2401 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2402 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2403 * sysdeps/unix/sysv/linux/system.c: Likewise.
2405 2005-06-15 Jakub Jelinek <jakub@redhat.com>
2408 * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
2409 or both classes equal here.
2410 (parse_config_file): If both classes are equal, clear the second one.
2412 2005-06-08 Karl Kelley <kekelley@iastate.edu>
2415 * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
2416 * hesiod/hesiod.c (hesiod_init): Initialize classes. Fail if no
2417 valid classes were given or if both are equal.
2418 (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
2420 (parse_config_file): Handle classes keyword.
2421 * hesiod/README.hesiod: Mention addition of the classes keyword.
2423 2005-06-14 Ulrich Drepper <drepper@redhat.com>
2426 * configure.in: Add test for availability of libaudit.
2427 * config.h.in: Define HAVE_LIBAUDIT.
2428 * config.make.in: Define have-libaudit.
2429 * nscd/Makefile: If libaudit is available, link nscd with it.
2430 * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
2431 Patch by Steve Grubb <sgrubb@redhat.com>.
2433 * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
2434 * sysdeps/posix/posix_fallocate64.c: Likewise.
2435 * include/string.h: Use libc_hidden_proto for strnlen.
2436 * sysdeps/generic/strnlen.c: Add libc_hidden_def.
2437 * include/libintl.h: Use libc_hidden_proto for __dcgettext.
2438 * intl/dcgettext.c: Add libc_hidden_def.
2439 * include/execinfo.h: Add libc_hidden_proto for __backtrace and
2440 __backtrace_symbols_fd.
2441 * sysdeps/generic/backtrace.c: Add libc_hidden_def.
2442 * sysdeps/generic/backtracesymsfd.c: Likewise.
2443 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2444 * sysdeps/i386/backtrace.c: Likewise.
2445 * sysdeps/ia64/backtrace.c: Likewise.
2446 * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
2447 * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
2448 * sysdeps/s390/s390-32/backtrace.c: Likewise.
2449 * sysdeps/s390/s390-64/backtrace.c: Likewise.
2451 2005-06-13 Ulrich Drepper <drepper@redhat.com>
2453 * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
2454 where HANDLED_REALTIME is not defined. [BZ #966]
2456 2005-06-13 Jakub Jelinek <jakub@redhat.com>
2459 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
2460 __netlink_receive): Remove prototypes.
2461 (__netlink_request): New prototype.
2462 * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
2464 (__netlink_sendreq): Make static.
2465 (__netlink_receive): Rename to...
2466 (__netlink_request): ... this. Add type argument, call
2467 __netlink_sendreq. If MSG_TRUNC is set after recvmsg, retry
2468 with a bigger buffer. Don't record buffers that contain no
2469 messages we are expecting.
2470 (getifaddrs): Use __netlink_request instead of __netlink_sendreq
2471 and __netlink_receive pairs. Formatting.
2472 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
2473 __netlink_request instead of __netlink_sendreq and __netlink_receive
2476 2005-06-13 Thorsten Kukuk <kukuk@suse.de>
2478 * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
2479 headers, instead copy important structs/defines.
2481 2005-06-13 Jakub Jelinek <jakub@redhat.com>
2483 * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
2484 _dl_debug_state call.
2486 2005-06-12 Ulrich Drepper <drepper@redhat.com>
2488 * elf/dl-error.c (_dl_signal_error): Store information about use of
2489 real malloc in the catch object.
2490 (_dl_catch_error): Forward information about malloc use to caller
2492 (_dl_out_of_memory): Make static.
2493 * elf/dl-deps.c: Adjust callers of _dl_catch_error.
2494 * elf/dl-libc.c: Likewise.
2495 * elf/dl-open.c: Likewise.
2496 * elf/rtld.c: Likewise.
2497 Add new --audit option.
2498 * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
2499 (rtld_global_ro._dl_signal_error): Add new parameter.
2500 * include/dlfcn.h (_dl_catch_error): Add new parameter.
2501 * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
2502 _dl_catch_error. Only free if the returned newly value says so.
2504 2005-06-01 Roland McGrath <roland@redhat.com>
2507 * posix/tst-mmap.c (main): Fill the test file with enough data for the
2510 2005-05-30 Jakub Jelinek <jakub@redhat.com>
2512 * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
2513 GLRO(dl_osversion) has been already set to a value smaller than
2514 _dl_discover_osversion (), don't overwrite it here.
2516 2005-05-24 Thomas Schwinge <schwinge@nic-nac-project.de>
2518 * sysdeps/mach/i386/syscall.S (syscall): Call END.
2520 2005-05-28 Richard Henderson <rth@redhat.com>
2522 * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
2523 * sysdeps/alpha/dl-dtprocnum.h: New file.
2524 * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
2525 (elf_machine_load_address): Simplify to rely on gprel relocations.
2526 (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
2527 Remove thread safety workaround for binutils 2.6.
2528 (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
2529 * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
2530 (_dl_runtime_profile_new): New.
2531 (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
2532 (_dl_runtime_profile_old): Rename from _dl_runtime_profile. Fix
2533 typo in _dl_call_pltexit argument loading.
2535 * sysdeps/alpha/div_libc.h (funcnoplt): New.
2536 * sysdeps/alpha/divl.S: Use it.
2537 * sysdeps/alpha/divq.S: Likewise
2538 * sysdeps/alpha/divqu.S: Likewise.
2539 * sysdeps/alpha/reml.S: Likewise.
2540 * sysdeps/alpha/remq.S: Likewise.
2541 * sysdeps/alpha/remqu.S: Likewise.
2543 2005-05-26 Andreas Schwab <schwab@suse.de>
2545 * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
2547 2005-05-26 Ulrich Drepper <drepper@redhat.com>
2549 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
2550 Reported by Colin Gibbs <colin@gibbsonline.net>. [BZ #954]
2552 2005-05-17 Alan Modra <amodra@bigpond.net.au>
2554 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
2555 _dl_hwcap access in PIC && !SHARED case.
2556 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2558 2005-05-25 Dwayne Grant McConnell <dgm69@us.ibm.com>
2560 * gmon/gmon.c: Add space in weak_alias use.
2561 * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
2562 * sysdeps/alpha/htonl.S: Likewise.
2563 * sysdeps/alpha/htons.S: Likewise.
2564 * sysdeps/alpha/elf/start.S: Likewise.
2565 * sysdeps/i386/i386-mcount.S: Likewise.
2566 * sysdeps/ia64/strchr.S: Likewise.
2567 * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2568 * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2569 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2570 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2571 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2572 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2573 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2574 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2575 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2576 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2577 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2578 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2579 * sysdeps/mach/hurd/readdir64_r.c: Likewise.
2580 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
2581 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2582 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2583 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2584 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2585 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2586 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2587 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2588 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2589 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2590 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2591 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2592 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2593 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
2594 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
2595 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
2596 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2597 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2598 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2599 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2600 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2601 * sysdeps/sparc/sparc32/memset.S: Likewise.
2602 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2603 * sysdeps/sparc/sparc32/strchr.S: Likewise.
2604 * sysdeps/sparc/sparc32/strchr.S: Likewise.
2605 * sysdeps/sparc/sparc64/memcmp.S: Likewise.
2606 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2607 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2608 * sysdeps/sparc/sparc64/memset.S: Likewise.
2609 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2610 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2611 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2612 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2613 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2614 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2615 * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
2616 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2617 * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
2618 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2619 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
2620 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2621 * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2622 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2623 * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
2624 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2625 * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
2626 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2627 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2628 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
2629 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
2630 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2631 * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
2632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2633 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
2634 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
2635 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2636 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2637 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2638 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2639 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
2640 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
2641 * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
2642 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
2643 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
2644 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
2645 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
2646 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2647 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
2648 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2649 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2650 * sysdeps/x86_64/_mcount.S: Likewise.
2652 2005-05-24 Roland McGrath <roland@redhat.com>
2654 * sysdeps/unix/sysv/linux/i386/sysdep.h
2655 (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
2656 * sysdeps/i386/sysdep.h [PIC]: ... to here.
2658 2005-05-23 Roland McGrath <roland@redhat.com>
2660 * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
2661 Subdirectories moved to ports repository.
2662 * configure.in (base_machine): Remove arm* and thumb* patterns.
2663 * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
2665 2005-05-23 Ulrich Drepper <drepper@redhat.com>
2668 * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
2669 implementations are broken and don't accept ports < 512.
2671 2005-05-22 Dmitry V. Levin <ldv@altlinux.org>
2674 * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
2677 2005-05-23 Ulrich Drepper <drepper@redhat.com>
2680 * sunrpc/pm_getport.c (__get_socket): New function.
2681 (pmap_getport): Use it to open a non-reserved socket to the portmapper
2683 * include/rpc/pmap_clnt.h (__get_socket): Declare.
2684 * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
2685 non-reserved socket for the portmapper.
2686 Based on a patch by Steve Dickson <steved@redhat.com>.
2689 * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
2690 If we tried looking at the usual range without success extend the
2691 range to even lower ports.
2693 * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
2695 2005-05-22 Andreas Schwab <schwab@suse.de>
2697 * elf/rtld.c: Include <dl-osinfo.h>.
2699 2005-05-17 Alan Modra <amodra@bigpond.net.au>
2701 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
2702 JUMPTARGET. Instead append @local to __syscall_error.
2703 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
2704 of JUMPTARGET. Instead append @local to labels.
2705 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
2706 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2707 * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
2708 * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
2710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
2711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
2717 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
2718 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
2719 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
2720 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
2721 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise. Use one GOT
2722 slot to access both constants.
2723 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
2724 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
2726 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
2727 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
2728 * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
2729 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
2730 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
2731 (NEGZERO.0, POINTFIVE.0): Delete.
2732 * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
2733 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
2734 * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
2735 (TWO52.0, POINTFIVE.0): Delete.
2736 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
2737 (TWO23.0, POINTFIVE.0): Delete.
2738 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
2740 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
2742 * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
2744 2005-05-19 Richard Henderson <rth@redhat.com>
2746 * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
2749 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
2750 __arch_compare_and_exchange_bool_64_acq,
2751 __arch_compare_and_exchange_val_32_acq,
2752 __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
2753 Use __sync builtin without _si or _di suffix.
2755 2005-05-19 Jakub Jelinek <jakub@redhat.com>
2758 * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
2761 2005-05-17 Andreas Schwab <schwab@suse.de>
2763 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2764 (clock_getcpuclockid): Always return a defined value.
2766 2005-05-17 Neal H. Walfield <neal@gnu.org>
2769 * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
2771 (gaih_inet): Likewise.
2773 2005-05-11 Ulrich Drepper <drepper@redhat.com>
2775 * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
2776 (Elf64_auxv_t): Likewise.
2777 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
2778 removal of a_ptr element in ElfXX_auxv_t.
2779 * elf/dl-support.c (_dl_aux_init): Likewise.
2781 2005-05-09 Daniel Jacobowitz <dan@codesourcery.com>
2783 * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
2784 * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
2786 2005-05-09 Alan Modra <amodra@bigpond.net.au>
2788 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
2789 .pushsection/.popsection in place of .section/.previous.
2791 2005-05-08 Ulrich Drepper <drepper@redhat.com>
2793 * MakeTAGS: Make xgettext not look into test cases.
2795 * MakeTAGS: Make sure translations in error calls are marked with
2796 c-format by xgettext.
2798 2005-05-07 Ulrich Drepper <drepper@redhat.com>
2800 * intl/libintl.h: Always use __attribute_format_arg__ for gettext
2801 functions since gcc sometimes forgets the attribute for the
2804 2005-05-06 Jakub Jelinek <jakub@redhat.com>
2807 * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
2808 __libc_lock_* macros if not _LIBC.
2809 (struct re_dfa_t): Add lock.
2810 * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
2811 * posix/regexec.c (regexec, re_search_stub): Add locking.
2813 2005-05-04 Jakub Jelinek <jakub@redhat.com>
2815 * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
2816 as argument to the scripts.
2817 * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
2818 * intl/tst-gettext4.sh: Likewise. Use run_program_prefix argument.
2819 * intl/tst-gettext5.sh: Likewise.
2821 * intl/tst-translit.sh: Add mkdir -p.
2823 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
2824 .ifndef/.endif to allow use of this macro more than once per .S
2826 (LOAD_PIC_REG): New macro.
2827 * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
2829 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2830 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2831 * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro. Add call frame
2833 * sysdeps/i386/fpu/e_log10f.S: Likewise.
2834 * sysdeps/i386/fpu/s_expm1.S: Likewise.
2835 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2836 * sysdeps/i386/fpu/e_log2l.S: Likewise.
2837 * sysdeps/i386/fpu/s_log1pf.S: Likewise.
2838 * sysdeps/i386/fpu/s_lrint.S: Likewise.
2839 * sysdeps/i386/fpu/s_llrint.S: Likewise.
2840 * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
2841 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2842 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2843 * sysdeps/i386/fpu/e_log.S: Likewise.
2844 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2845 * sysdeps/i386/fpu/s_lrintl.S: Likewise.
2846 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2847 * sysdeps/i386/fpu/e_scalb.S: Likewise.
2848 * sysdeps/i386/fpu/s_log1p.S: Likewise.
2849 * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
2850 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2851 * sysdeps/i386/fpu/s_log1pl.S: Likewise.
2852 * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
2853 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2854 * sysdeps/i386/fpu/s_expm1l.S: Likewise.
2855 * sysdeps/i386/fpu/s_lrintf.S: Likewise.
2856 * sysdeps/i386/fpu/e_acosh.S: Likewise.
2857 * sysdeps/i386/fpu/s_cexp.S: Likewise.
2858 * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
2859 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2860 * sysdeps/i386/fpu/e_powl.S: Likewise.
2861 * sysdeps/i386/fpu/e_powf.S: Likewise.
2862 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2863 * sysdeps/i386/fpu/e_logl.S: Likewise.
2864 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2865 * sysdeps/i386/fpu/s_frexp.S: Likewise.
2866 * sysdeps/i386/fpu/e_pow.S: Likewise.
2867 * sysdeps/i386/fpu/e_logf.S: Likewise.
2868 * sysdeps/i386/fpu/e_log2.S: Likewise.
2869 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2870 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2871 * sysdeps/i386/fpu/s_llrintf.S: Likewise.
2872 * sysdeps/i386/fpu/s_ilogb.S: Likewise.
2873 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2874 * sysdeps/i386/fpu/e_atanh.S: Likewise.
2875 * sysdeps/i386/fpu/e_log10.S: Likewise.
2876 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2877 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2878 * sysdeps/i386/fpu/s_llrintl.S: Likewise.
2879 * sysdeps/i386/fpu/e_log10l.S: Likewise.
2880 * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
2881 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2882 * sysdeps/i386/fpu/e_log2f.S: Likewise.
2883 * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
2884 * sysdeps/i386/mul_1.S: Likewise.
2885 * sysdeps/i386/strtok.S: Likewise.
2886 * sysdeps/i386/sub_n.S: Likewise.
2887 * sysdeps/i386/submul_1.S: Likewise.
2888 * sysdeps/i386/i586/addmul_1.S: Likewise.
2889 * sysdeps/i386/i586/memcpy.S: Likewise.
2890 * sysdeps/i386/i586/mul_1.S: Likewise.
2891 * sysdeps/i386/i586/rshift.S: Likewise.
2892 * sysdeps/i386/i586/sub_n.S: Likewise.
2893 * sysdeps/i386/i586/submul_1.S: Likewise.
2894 * sysdeps/i386/i686/memcmp.S: Likewise.
2895 * sysdeps/i386/i686/memmove.S: Likewise.
2896 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2897 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2898 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2899 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2901 2005-05-03 Ulrich Drepper <drepper@redhat.com>
2903 * sysdeps/i386/add_n.S: Add call frame information.
2904 * sysdeps/i386/addmul_1.S: Likewise.
2905 * sysdeps/i386/bsd-setjmp.S: Likewise.
2906 * sysdeps/i386/lshift.S: Likewise.
2907 * sysdeps/i386/memchr.S: Likewise.
2908 * sysdeps/i386/memcmp.S: Likewise.
2909 * sysdeps/i386/mul_1.S: Likewise.
2910 * sysdeps/i386/rawmemchr.S: Likewise.
2911 * sysdeps/i386/rshift.S: Likewise.
2912 * sysdeps/i386/stpncpy.S: Likewise.
2913 * sysdeps/i386/strchr.S: Likewise.
2914 * sysdeps/i386/strchrnul.S: Likewise.
2915 * sysdeps/i386/strcspn.S: Likewise.
2916 * sysdeps/i386/strpbrk.S: Likewise.
2917 * sysdeps/i386/strrchr.S: Likewise.
2918 * sysdeps/i386/strspn.S: Likewise.
2919 * sysdeps/i386/strtok.S: Likewise.
2920 * sysdeps/i386/sub_n.S: Likewise.
2921 * sysdeps/i386/submul_1.S: Likewise.
2922 * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
2923 * sysdeps/i386/i486/strcat.S: Likewise.
2924 * sysdeps/i386/i586/add_n.S: Likewise.
2925 * sysdeps/i386/i586/addmul_1.S: Likewise.
2926 * sysdeps/i386/i586/lshift.S: Likewise.
2927 * sysdeps/i386/i586/memcpy.S: Likewise.
2928 * sysdeps/i386/i586/memset.S: Likewise.
2929 * sysdeps/i386/i586/mul_1.S: Likewise.
2930 * sysdeps/i386/i586/rshift.S: Likewise.
2931 * sysdeps/i386/i586/strchr.S: Likewise.
2932 * sysdeps/i386/i586/strcpy.S: Likewise.
2933 * sysdeps/i386/i586/sub_n.S: Likewise.
2934 * sysdeps/i386/i586/submul_1.S: Likewise.
2935 * sysdeps/i386/i686/add_n.S: Likewise.
2936 * sysdeps/i386/i686/memcmp.S: Likewise.
2937 * sysdeps/i386/i686/memmove.S: Likewise.
2938 * sysdeps/i386/i686/mempcpy.S: Likewise.
2939 * sysdeps/i386/i686/memset.S: Likewise.
2940 * sysdeps/i386/i686/strtok.S: Likewise.
2941 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2942 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2943 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2944 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2945 * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2946 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2948 * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
2950 * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
2953 2005-04-29 Jakub Jelinek <jakub@redhat.com>
2956 * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
2957 call ftruncate if offset is bigger than current size. Make sure
2958 the file is offset + len bytes long if that is more than current size.
2959 Don't overwrite previous content of the file.
2960 * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
2963 2005-05-02 Roland McGrath <roland@redhat.com>
2966 * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
2968 2005-04-29 Roland McGrath <roland@redhat.com>
2970 * timezone/africa: Update from tzdata2005i.
2971 * timezone/asia: Likewise.
2972 * timezone/northamerica: Likewise.
2973 * timezone/yearistype: Likewise.
2975 * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
2977 2005-04-29 Ulrich Drepper <drepper@redhat.com>
2980 * nis/nis_table.c: Fix realloc handling.
2981 * nis/nis_removemember.c: Likewise.
2983 2005-04-28 Ulrich Drepper <drepper@redhat.com>
2986 * nscd/Makefile: Help losers who use --with-headers.
2988 2005-04-28 Roland McGrath <roland@redhat.com>
2991 * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
2992 Define NEED_DL_SYSINFO_DSO for all platforms.
2994 * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
2995 * sysdeps/alpha/dl-sysdep.h: Likewise.
2996 Use #include_next instead of duplicating generic file's contents.
2997 * sysdeps/ia64/dl-sysdep.h: Likewise.
2998 * sysdeps/sparc/dl-sysdep.h: Likewise.
3000 2005-03-22 Steven Munroe <sjmunroe@us.ibm.com>
3002 * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
3004 2005-03-07 Steven Munroe <sjmunroe@us.ibm.com>
3007 * sysdeps/unix/sysv/linux/kernel-features.h
3008 (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
3009 (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
3010 (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
3012 (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
3014 2005-04-28 Ulrich Drepper <drepper@redhat.com>
3016 * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
3017 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3018 * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
3019 cfi_startproc and cfi_endproc.
3021 * configure.in: Remove ultrasparc names.
3023 * sysdeps/i386/i686/memcmp.S: Move misplaced END.
3025 2005-03-27 Bruno Haible <bruno@clisp.org>
3027 Make it possible for multiple threads to use gettext() in different
3029 * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
3030 (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
3032 (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
3033 (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
3036 * intl/tst-gettext4.c: New file.
3037 * intl/tst-gettext4.sh: New file.
3038 * intl/tst-gettext4-de.po: New file.
3039 * intl/tst-gettext4-fr.po: New file.
3040 * intl/tst-gettext5.c: New file.
3041 * intl/tst-gettext5.sh: New file.
3042 * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
3043 tst-gettext4-fr.po, tst-gettext5.sh.
3044 (multithread-test-srcs): New variable.
3045 (test-srcs): Add its contents.
3046 (tests): Depend on tst-gettext4.out, tst-gettext5.out.
3047 (tst-gettext4.out, tst-gettext5.out): New rules.
3048 (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
3049 Add rule for linking the multithread-test-srcs with the appropriate
3052 2005-04-28 Ulrich Drepper <drepper@redhat.com>
3054 * po/rw.po: New file. From translation team.
3056 * scripts/config.guess: Update from upstream.
3057 * scripts/config.sub: Likewise.
3059 2005-04-27 Ulrich Drepper <drepper@redhat.com>
3062 * nscd/connections.c (nscd_run): Use time() value in prune_cache
3063 call, not timeout value, since the latter might be from another clock.
3065 2005-04-27 Roland McGrath <roland@redhat.com>
3068 * posix/unistd.h: Remove __nonnull from acct decl.
3070 * rt/tst-cpuclock1.c: New file.
3071 * rt/tst-cpuclock2.c: New file.
3072 * rt/tst-cputimer1.c: New file.
3073 * rt/tst-cputimer2.c: New file.
3074 * rt/tst-cputimer3.c: New file.
3075 * rt/Makefile (tests): Add them.
3077 * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
3078 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
3079 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
3080 (HAS_CPUCLOCK): New macro.
3081 (clock_getcpuclockid): Function removed.
3082 #include the new linux file to define it instead.
3083 * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
3084 New function, broken out of ...
3085 (clock_gettime) [HP_TIMING_AVAIL]: ... here. Call it.
3086 (realtime_gettime): New function, broken out of ...
3087 (clock_gettime) [! HANDLED_REALTIME]: ... here. Call it.
3088 (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
3089 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
3090 (SYSDEP_GETTIME_CPUTIME): New macro.
3091 (SYSDEP_GETTIME): Use both.
3092 [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
3094 (SYSDEP_GETTIME): ... here. Use it.
3095 [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
3096 (SYSDEP_GETTIME_CPUTIME): New macro. Handle CPU timers by trying
3097 kernel support and falling back to hp-timing code.
3098 * sysdeps/posix/clock_getres.c
3099 [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
3100 (clock_getres) [HP_TIMING_AVAIL]: ... here. Call it.
3101 (realtime_getres): New function, broken out of ...
3102 (clock_getres) [! HANDLED_REALTIME]: ... here. Call it.
3103 (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
3104 * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
3105 (SYSDEP_GETRES_CPUTIME): New macro.
3106 (SYSDEP_GETRES): Use both.
3107 [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
3109 (SYSDEP_GETRES): ... here. Use it.
3110 [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
3111 (SYSDEP_GETRES_CPUTIME): New macro. Handle CPU timers by trying
3112 kernel support and falling back to hp-timing code.
3113 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
3114 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
3115 translating to the kernel clockid_t for our own process/thread clock.
3117 2005-04-27 Ulrich Drepper <drepper@redhat.com>
3119 * stdlib/test-canon.c: Make doesExist a directory and add more tests
3120 for the new error case.
3122 2004-06-02 Dmitry V. Levin <ldv@altlinux.org>
3123 Ranjani Murthy <ranmur@gmail.com>
3125 * stdlib/canonicalize.c (__realpath): Change realpath(3) to
3126 return NULL and set errno to ENOTDIR for such pathnames like
3127 "/path/to/existing-non-directory/".
3129 2005-04-26 Ulrich Drepper <drepper@redhat.com>
3132 * time/strptime_l.c (__strptime_internal): Handle 'z' to set
3134 * time/Makefile (tests): Add tst-strptime2.
3135 * time/tst-strptime2.c: New file.
3137 2005-04-26 Jakub Jelinek <jakub@redhat.com>
3140 * elf/dl-close.c: Include stddef.h.
3141 (_dl_close): If called recursively, just remember GC needs to be rerun
3142 and decrease l_direct_opencount. Avoid GC if l_direct_opencount
3143 decreased to 1. Rerun GC at the end if any destructor unloaded some
3144 additional libraries.
3145 * elf/Makefile: Add rules to build and run unload6 test.
3146 * elf/unload6.c: New test.
3147 * elf/unload6mod1.c: New file.
3148 * elf/unload6mod2.c: New file.
3149 * elf/unload6mod3.c: New file.
3151 * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
3152 if magic_p is not NULL.
3153 (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
3154 (malloc_check): Fail if sz == -1.
3155 (free_check): Adjust mem2chunk_check caller.
3156 (realloc_check): Likewise. Fail if bytes == -1. If bytes == 0 and
3157 oldmem != NULL, call free_check and return NULL. If reallocating
3158 and returning NULL, invert magic byte again to make oldmem valid
3159 region for further checking.
3160 (memalign_check): Fail if bytes == -1.
3161 * malloc/Makefile: Add rules to build and run tst-mcheck.
3162 * malloc/tst-mcheck.c: New test.
3164 2005-04-26 Ulrich Drepper <drepper@redhat.com>
3167 * stdio-common/vfscanf.c: Correctly account for characters of
3168 decimal points right after +-.
3170 2005-04-26 Roland McGrath <roland@redhat.com>
3172 * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
3173 ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
3175 2005-04-25 Roland McGrath <roland@redhat.com>
3177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3178 (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
3180 * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
3182 * elf/dl-load.c: Revert last change.
3184 2005-04-24 Ulrich Drepper <drepper@redhat.com>
3187 * stdio-common/vfscanf.c: Fix parsing of decimal point after +-.
3188 Patch by Hamed Malek <hamed@bamdad.org>.
3190 2005-04-21 Roland McGrath <roland@redhat.com>
3192 * elf/dl-load.c (_dl_map_object_from_fd): Don't use MAP_DENYWRITE,
3193 since Linux ignores it in user mmap calls.
3195 2005-04-17 David S. Miller <davem@davemloft.net>
3197 * sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
3198 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3200 2005-04-15 Roland McGrath <roland@redhat.com>
3202 * timezone/Makefile (zic-deps): New variable.
3203 ($(testdata)/America/New_York): Use it instead of explicit deps.
3204 ($(testdata)/Etc/UTC, $(testdata)/Australia/Melbourne): Likewise.
3205 ($(testdata)/America/Sao_Paulo, $(testdata)/Asia/Tokyo): Likewise.
3206 (%/UTC %/Universal): New pattern rule, replaces ...
3207 ($(testdata)/UTC, $(testdata)/Universal): ... these removed targets.
3208 ($(testdata)/%/Berlin $(testdata)/%/London): New pattern rule.
3209 ($(testdata)/Europe/London, $(testdata)/Europe/Berlin): Removed.
3211 2005-04-14 Roland McGrath <roland@redhat.com>
3213 * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well.
3214 (extract): Filter-out distinfo file name.
3217 * MakeTAGS (text-srcs): Match %.bash.in files too.
3220 * nscd/Makefile (all-nscd-modules): New variable, include selinux
3221 module regardless of configuration.
3222 (distribute): Use that instead of $(nscd-modules).
3224 2005-04-13 David S. Miller <davem@davemloft.net>
3226 Add sparc64 TLS and NPTL support.
3227 * elf/tls-macros.h: Add Sparc64 defines.
3228 * sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
3230 (elf_machine_fixup_plt): Likewise.
3231 (elf_machine_rela): Handle TLS relocations.
3232 (elf_machine_type_cleaa): Likewise.
3233 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3234 (SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
3235 It does not always fit in R_SPARC_GOT13 when building -fPIC.
3236 Also, add TLS handling.
3237 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3238 Increase it to 2.4.21 for sparc64.
3239 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
3240 backtrace by zero'ing out %fp. Store away flags, func_ptr,
3241 and func_arg in global registers not local registers.
3242 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
3243 and CTID arguments properly. Add RESET_PID handling.
3244 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
3245 do not invoke __sigprocmask(). We can always assume rt signals
3246 are present on sparc64, so just do an inline syscall.
3248 2005-04-13 Jakub Jelinek <jakub@redhat.com>
3250 * sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
3251 inclusion guard for the first half of the header.
3252 (elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
3253 ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
3254 elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
3255 #ifndef dl_machine_h guarded part of the header.
3257 2005-04-14 Ulrich Drepper <drepper@redhat.com>
3260 * posix/execvp.c (execvp): Use file name including path when
3261 trying to run it with shell.
3262 * posix/Makefile: Add rules to build and run tst-execvp3.
3263 * posix/tst-execvp3.c: New file.
3265 2005-04-12 Ulrich Drepper <drepper@redhat.com>
3268 * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
3269 * string/tst-strfry.c: New file.
3270 * string/Makefile (tests): Add tst-strfry.
3272 2005-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
3274 * manual/string.texi: Fix typo in wmemcpy decl.
3276 2005-04-10 David S. Miller <davem@davemloft.net>
3278 * sysdeps/sparc/sparc32/dl-trampoline.S: Use std not stx.
3280 2005-04-08 Carlos O'Donell <carlos@baldric.uwo.ca>
3282 * FAQ.in: Explain why `make' might fail running rpcgen.
3285 2005-04-07 Roland McGrath <roland@redhat.com>
3287 * po/libc.pot: Regenerated.
3289 2005-04-07 Roland McGrath <roland@redhat.com>
3291 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion)
3292 [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
3293 GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version,
3294 we can skip the uname call if it's there.
3295 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use
3296 DL_SYSDEP_OSCHECK here.
3297 * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead.
3299 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro):
3300 Add _dl_sysinfo_map.
3301 * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the
3302 rtld_is_main case. Call it unconditionally later.
3303 Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call.
3304 Initialize GLRO(dl_sysinfo_map).
3305 * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called.
3306 * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro.
3307 (_dl_important_hwcaps)
3308 [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
3309 GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names
3311 * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro.
3312 (hwcap_extra): New static variable.
3313 (is_hwcap_platform): Check hwcap_extra for a matching name.
3314 Remove tls special case.
3315 (path_hwcap): Likewise.
3316 (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits
3317 and their names, stored in hwcap_extra.
3318 (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls".
3320 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for
3321 _dl_hwcap and _dl_hwcap_mask.
3322 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for
3323 AT_HWCAP to unsigned long int.
3324 * elf/dl-support.c (_dl_aux_init): Likewise.
3325 (_dl_hwcap): Update defn.
3327 * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic.
3328 * elf/ldconfig.c (search_dir): Likewise.
3330 2005-04-05 Roland McGrath <roland@redhat.com>
3332 * NEWS: Copy 2.3.5 section from 2.3 branch.
3334 * intl/tst-codeset.sh: Use mkdir -p. Put msgfmt output in temporary
3335 file and mv it into place.
3336 * intl/tst-gettext3.sh: Likewise.
3338 * Makefile (glibc-%.tar rule): Use make -q to ensure configure scripts
3339 are up to date in srcdir. Touch all configure scripts after export.
3341 * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
3343 2005-04-05 H.J. Lu <hongjiu.lu@intel.com>
3346 * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
3347 (comment changes only).
3348 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
3349 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
3350 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3351 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3352 * sysdeps/ia64/fpu/e_exp.S: Likewise.
3353 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
3354 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
3355 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
3356 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
3357 * sysdeps/ia64/fpu/e_expf.S: Likewise.
3358 * sysdeps/ia64/fpu/e_log.S: Likewise.
3359 * sysdeps/ia64/fpu/e_logf.S: Likewise.
3360 * sysdeps/ia64/fpu/e_pow.S: Likewise.
3361 * sysdeps/ia64/fpu/e_powf.S: Likewise.
3362 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3363 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3364 * sysdeps/ia64/fpu/libm_error.c: Likewise.
3365 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
3366 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
3367 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
3368 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
3369 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
3370 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
3371 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
3372 * sysdeps/ia64/fpu/s_cos.S: Likewise.
3373 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
3374 * sysdeps/ia64/fpu/s_erf.S: Likewise.
3375 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
3376 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
3377 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
3378 * sysdeps/ia64/fpu/s_erff.S: Likewise.
3379 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
3380 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
3381 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3382 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3383 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
3384 * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
3385 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
3386 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
3387 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
3389 2005-04-05 Roland McGrath <roland@redhat.com>
3391 * scripts/config.guess: Update from master, timestamp='2005-03-24'.
3392 * scripts/config.sub: Update from master, timestamp='2005-02-10'.
3394 2005-04-04 David S. Miller <davem@davemloft.net>
3396 * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
3397 * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
3398 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
3399 (elf_machine_runtime_setup): Test for dl_profile non-null.
3400 * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
3401 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
3402 * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
3403 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
3404 (elf_machine_runtime_setup): Test for dl_profile non-null.
3405 * sysdeps/sparc/bits/link.h: New file.
3406 * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
3407 La_sparc64_regs, La_sparc64_retval): New.
3408 (struct audit_ifaces): Add sparc entries.
3409 * elf/tst-auditmod1.c: Add sparc entries.
3411 2005-03-27 Bruno Haible <bruno@clisp.org>
3413 * intl/tst-gettext3.c: New file.
3414 * intl/tst-gettext3.sh: New file.
3415 * intl/Makefile (distribute): Add tst-gettext3.sh.
3416 (test-srcs): Add tst-gettext3.
3417 (tests): Depend on tst-gettext3.out.
3418 (tst-gettext3.out): New rule.
3419 (CFLAGS-tst-gettext3.c): New variable.
3421 Fix bug exposed by tst-gettext3.
3422 * intl/gettextP.h (struct converted_domain): New type.
3423 (struct loaded_domain): Remove the conv, conv_tab fields. Add
3424 conversions, nconversions fields.
3425 (_nl_init_domain_conv): Remove declaration.
3426 (_nl_free_domain_conv): Remove declaration.
3427 (_nl_find_msg): Add convert argument.
3428 * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
3429 (_nl_find_msg): Add convert argument. When a conversion to a different
3430 charset is needed, create a new converted_domain element, instead of
3431 throwing away the old converted translations.
3432 (get_output_charset): New function.
3433 * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
3434 (_nl_free_domain_conv): Remove function.
3435 (_nl_load_domain): Initialize the conversions array to empty. Use
3436 _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
3438 (_nl_unload_domain): Free the conversions array and its contents.
3440 * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
3441 (struct binding): Likewise.
3442 * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
3445 2005-04-04 Jakub Jelinek <jakub@redhat.com>
3448 * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
3449 of trying to encode uninitialized arglen.
3451 2005-04-04 Ulrich Drepper <drepper@redhat.com>
3454 * timezone/scheck.c: Update from tzcode2005h.
3455 * timezone/tzfile.h: Likewise.
3456 * timezone/zdump.c: Likewise.
3457 * timezone/zic.c: Likewise.
3460 * timezone/antarctica: Update from tzdata2005h.
3461 * timezone/asia: Likewise.
3462 * timezone/australasia: Likewise.
3463 * timezone/etcetera: Likewise.
3464 * timezone/europe: Likewise.
3465 * timezone/northamerica: Likewise.
3466 * timezone/southamerica: Likewise.
3467 * timezone/leapseconds: Likewise.
3468 * timezone/iso3166.tab: Likewise.
3470 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3473 * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
3475 2005-04-01 Ulrich Drepper <drepper@redhat.com>
3477 * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
3478 * wcsmbs/wctob.c (wctob): Likewise.
3479 * wcsmbs/wchar.h (btowc): Add optimized inline function.
3482 2005-03-31 Jakub Jelinek <jakub@redhat.com>
3484 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
3485 equivalent, but shorter instructions.
3486 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3487 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3488 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3489 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3490 * sysdeps/unix/x86_64/sysdep.S: Likewise.
3491 * sysdeps/x86_64/strchr.S: Likewise.
3492 * sysdeps/x86_64/memset.S: Likewise.
3493 * sysdeps/x86_64/strcspn.S: Likewise.
3494 * sysdeps/x86_64/strcmp.S: Likewise.
3495 * sysdeps/x86_64/elf/start.S: Likewise.
3496 * sysdeps/x86_64/strspn.S: Likewise.
3497 * sysdeps/x86_64/dl-machine.h: Likewise.
3498 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
3499 * sysdeps/x86_64/bsd-setjmp.S: Likewise.
3500 * sysdeps/x86_64/strtok.S: Likewise.
3502 2005-03-30 H.J. Lu <hongjiu.lu@intel.com>
3505 * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
3506 * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
3507 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
3508 * sysdeps/ia64/fpu/e_acosh.S: Likewise.
3509 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3510 * sysdeps/ia64/fpu/e_acos.S: Likewise.
3511 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3512 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3513 * sysdeps/ia64/fpu/e_asin.S: Likewise.
3514 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3515 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3516 * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
3517 * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
3518 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
3519 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3520 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3521 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3522 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
3523 * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
3524 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
3525 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
3526 * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
3527 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
3528 * sysdeps/ia64/fpu/e_expf.S: Likewise.
3529 * sysdeps/ia64/fpu/e_exp.S: Likewise.
3530 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3531 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3532 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3533 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3534 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3535 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3536 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
3537 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
3538 * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
3539 * sysdeps/ia64/fpu/e_log2f.S: Likewise.
3540 * sysdeps/ia64/fpu/e_log2l.S: Likewise.
3541 * sysdeps/ia64/fpu/e_log2.S: Likewise.
3542 * sysdeps/ia64/fpu/e_logf.S: Likewise.
3543 * sysdeps/ia64/fpu/e_logl.S: Likewise.
3544 * sysdeps/ia64/fpu/e_log.S: Likewise.
3545 * sysdeps/ia64/fpu/e_powf.S: Likewise.
3546 * sysdeps/ia64/fpu/e_powl.S: Likewise.
3547 * sysdeps/ia64/fpu/e_pow.S: Likewise.
3548 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3549 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3550 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3551 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3552 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3553 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3554 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3555 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3556 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3557 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3558 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3559 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3560 * sysdeps/ia64/fpu/libm_error.c: Likewise.
3561 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
3562 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
3563 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
3564 * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
3565 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
3566 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3567 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3568 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
3569 * sysdeps/ia64/fpu/libm_support.h: Likewise.
3570 * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
3571 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
3572 * sysdeps/ia64/fpu/s_atanf.S: Likewise.
3573 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
3574 * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
3575 * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
3576 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
3577 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3578 * sysdeps/ia64/fpu/s_cos.S: Likewise.
3579 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
3580 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
3581 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
3582 * sysdeps/ia64/fpu/s_erfl.S: Likewise.
3583 * sysdeps/ia64/fpu/s_erf.S: Likewise.
3584 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
3585 * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
3586 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
3587 * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
3588 * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
3589 * sysdeps/ia64/fpu/s_fdim.S: Likewise.
3590 * sysdeps/ia64/fpu/s_frexp.c: Likewise.
3591 * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
3592 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
3593 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
3594 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
3595 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
3596 * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
3597 * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
3598 * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
3599 * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
3600 * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
3601 * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
3602 * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
3603 * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
3604 * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
3605 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
3606 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
3607 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3608 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
3609 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
3610 * sysdeps/ia64/fpu/s_logb.S: Likewise.
3611 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
3612 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
3613 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
3614 * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
3615 * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
3616 * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
3617 * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
3618 * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
3619 * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
3620 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
3621 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
3622 * sysdeps/ia64/fpu/s_round.S: Likewise.
3623 * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
3624 * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
3625 * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
3626 * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
3627 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3628 * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
3629 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
3630 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
3631 * sysdeps/ia64/fpu/s_tan.S: Likewise.
3632 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
3633 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
3634 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
3635 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
3636 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
3637 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
3640 * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
3641 * sysdeps/ia64/fpu/libm_error_codes.h: New file.
3644 * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
3646 * sysdeps/ia64/fpu/import_file.awk: Likewise.
3647 * sysdeps/ia64/fpu/import_intel_libm: Likewise.
3648 * sysdeps/ia64/fpu/Makefile: Likewise.
3650 2005-03-29 Jakub Jelinek <jakub@redhat.com>
3653 * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
3654 avoid calling mbsrtowcs twice.
3656 2005-03-29 Roland McGrath <roland@redhat.com>
3658 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
3659 function, inline broken out of ...
3660 (DL_SYSDEP_OSCHECK): ... here. Use that.
3661 Do the discovery and set GLRO(dl_osversion) if successful,
3662 if __LINUX_KERNEL_VERSION <= 0.
3663 * elf/dl-load.c: Don't include dl-osinfo.h here.
3665 2005-03-29 Alfred M. Szmidt <ams@gnu.org>
3667 * manual/install.texi (Tools for Compilation): GNU binutils 2.15
3670 2005-03-19 Bruno Haible <bruno@clisp.org>
3672 * intl/dcigettext.c (struct known_translation_t): Change type of
3673 domainname field to 'const char *'.
3674 (DCIGETTEXT): Remove const-cast.
3676 2005-03-29 Thorsten Kukuk <kukuk@suse.de>
3679 * grp/initgroups.c (internal_getgrouplist): Check if we have
3680 enough space before adding the primary group to the list.
3682 * posix/tst-execle1.c (do_test): Fix execle arguments.
3683 * posix/tst-execle2.c (do_test): Likewise.
3685 2005-03-28 Roland McGrath <roland@redhat.com>
3687 * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
3688 Reported by Mark Mitchell <mark@codesourcery.com>.
3689 * Versions.def (libm): Define GLIBC_2.4 set.
3690 * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
3691 * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
3692 * sysdeps/ia64/Versions: Likewise.
3693 * sysdeps/m68k/Versions: Likewise.
3694 * sysdeps/sparc/sparc64/Versions: Likewise.
3695 * sysdeps/x86_64/Versions: New file.
3696 * sysdeps/mips/mips64/Versions: New file.
3698 * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
3699 [__USE_GNU] (NL_LOCALE_NAME): New macro.
3700 * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
3701 return locale name string for the category.
3703 2005-03-25 Jakub Jelinek <jakub@redhat.com>
3706 * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
3709 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3711 * sysdeps/mips/atomicity.h: Remove unused file.
3712 * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
3713 * sysdeps/mips/dl-tls.h: New file.
3714 * sysdeps/mips/libc-tls.c: New file.
3715 * sysdeps/mips/tls-macros.h: New file.
3716 * sysdeps/mips/bits/atomic.h: New file.
3717 * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
3718 * sysdeps/mips/elf/configure.in: New file.
3719 * sysdeps/mips/elf/configure: Generated.
3720 * sysdeps/mips/sys/asm.h: New file.
3721 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
3722 * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
3724 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
3725 (INTERNAL_SYSCALL_NCS): New.
3726 (INTERNAL_SYSCALL): Update for non-constant support.
3727 (internal_syscall0): Likewise.
3728 (internal_syscall1): Likewise.
3729 (internal_syscall2): Likewise.
3730 (internal_syscall3): Likewise.
3731 (internal_syscall4): Likewise.
3732 (internal_syscall5): Likewise.
3733 (internal_syscall6): Likewise.
3734 (internal_syscall7): Likewise.
3735 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
3736 Update to match the kernel.
3737 (SIGEV_CALLBACK): Likewise.
3738 (SIGEV_THREAD_ID): Likewise.
3740 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3743 * elf/tst-auditmod1.c: Add MIPS support.
3744 * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
3745 (La_mips_32_retval): New.
3746 (La_mips_64_regs): New.
3747 (La_mips_64_retval): New.
3748 (struct audit_ifaces): Add MIPS entries.
3749 * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
3750 (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
3751 ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
3752 ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
3753 (RTLD_START): Align the stack before calling _dl_init_internal.
3754 Use .ent for _dl_start_user.
3755 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
3756 (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
3757 (elf_machine_runtime_setup): Use "auto inline".
3758 (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
3759 (elf_machine_got_rel): Likewise. Use RESOLVE_MAP.
3760 * sysdeps/mips/dl-trampoline.c: New file.
3761 * sysdeps/mips/bits/link.h: New file.
3762 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
3763 (internal_syscall5): Use register operands instead of non-lvalue
3765 (internal_syscall6): Likewise.
3766 (internal_syscall7): Likewise.
3768 2005-03-27 Andreas Jaeger <aj@suse.de>
3770 * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
3771 avoid warnings with older compiler.
3772 (__builtin___memcpy_chk): Likewise.
3773 (__builtin___memmove_chk: Likewise.
3774 (__builtin___mempcpy_chk): Likewise.
3775 (__builtin___memset_chk): Likewise.
3776 (__builtin___stpcpy_chk): Likewise.
3777 (__builtin___strcat_chk): Likewise.
3778 (__builtin___strcpy_chk): Likewise.
3779 (__builtin___strncat_chk): Likewise.
3780 (__builtin___strncpy_chk): Likewise.
3781 (__builtin_object_size): Likewise.
3783 2005-03-27 Daniel Jacobowitz <dan@codesourcery.com>
3785 * elf/tls-macros.h: Correct typo.
3787 2005-03-23 Jakub Jelinek <jakub@redhat.com>
3790 * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
3791 (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
3793 2005-03-22 Roland McGrath <roland@redhat.com>
3795 * locale/setlocale.c: Comment typo.
3797 * scripts/versions.awk: No errors for GLIBC_PRIVATE.
3799 * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
3801 * scripts/versions.awk: Print all errors and die at the end.
3802 Use library name in versions array keys.
3804 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3806 * elf/elf.h (PT_ARM_EXIDX): New macro.
3808 2005-03-21 Thorsten Kukuk <kukuk@suse.de>
3811 * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
3812 Convert correctly between long/int on 64bit big-endian.
3814 2005-03-21 David Mosberger <davidm@hpl.hp.com>
3816 * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
3817 with more than 8 output registers. Fix this by passing original
3818 ar.pfs to _mcount_ret_helper via r3.
3820 2005-03-15 Jakub Jelinek <jakub@redhat.com>
3823 * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
3824 GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
3825 * elf/Makefile: Add rules to build and run tst-tls15.
3826 * elf/tst-tls15.c: New test.
3827 * elf/tst-tlsmod15a.c: New file.
3828 * elf/tst-tlsmod15b.c: New file.
3830 2005-03-20 Ulrich Drepper <drepper@redhat.com>
3832 * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
3834 2005-03-20 Alfred M. Szmidt <ams@gnu.org>
3836 * elf/dl-open.c (dl_open_worker): Fix typo.
3838 2005-03-20 Ulrich Drepper <drepper@redhat.com>
3840 * malloc/malloc.c (public_cALLOc): We cannot skip the memory
3841 clearing if perturb_byte != 0.
3843 2005-03-20 Jakub Jelinek <jakub@redhat.com>
3845 * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
3846 instead of __off_t for last argument.
3847 * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
3848 * debug/tst-lfschk1.c: New test.
3849 * debug/tst-lfschk2.c: New test.
3850 * debug/tst-lfschk3.c: New test.
3852 2005-02-09 Jakub Jelinek <jakub@redhat.com>
3854 * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
3855 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
3856 and __USE_XOPEN guards to match linux/bits/termios.h.
3857 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3859 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3861 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
3864 * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
3866 2005-02-27 Denis Barbier <barbier@debian.org>
3869 * locale/iso-4217.def: Add CSD currency.
3871 2005-03-19 Ulrich Drepper <drepper@redhat.com>
3873 * inet/test-ifaddrs.c: Use test-skeleton.
3874 * inet/test_ifindex.c: Likewise.
3877 * elf/dl-lookup.c (add_dependency): Always search l_initfini if
3881 * elf/Makefile: Add rules to build and run order2.
3882 * elf/order2.c: New file.
3883 * elf/order2mod1.c: New file.
3884 * elf/order2mod2.c: New file.
3885 * elf/order2mod3.c: New file.
3886 * elf/order2mod4.c: New file.
3888 2005-03-19 Jakub Jelinek <jakub@redhat.com>
3891 * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
3892 it has been incremented before.
3894 2005-03-18 Ulrich Drepper <drepper@redhat.com>
3897 * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
3898 function _dl_sort_fini.
3899 (_dl_sort_fini): New function.
3900 * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
3901 * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
3902 destructors to call them in the right order.
3904 2005-02-07 Steven Munroe <sjmunroe@us.ibm.com>
3906 * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
3907 (La_ppc64_retval): Correct size of lrc_fp.
3908 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
3909 Fix up ABI problems and complete function.
3911 2005-03-10 Jakub Jelinek <jakub@redhat.com>
3913 * math/test-misc.c (main): Add some more tests.
3915 2005-03-17 Jakub Jelinek <jakub@redhat.com>
3917 * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
3918 __wcrtomb. Check return values of other __wcrtomb calls.
3919 * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
3920 Change mbclen type to size_t.
3921 (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
3922 Handle mb chars whose upper case doesn't have multibyte representation
3923 in locale's charset.
3925 2005-03-15 Jakub Jelinek <jakub@redhat.com>
3927 * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
3928 public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
3932 * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
3935 2005-03-10 Jakub Jelinek <jakub@redhat.com>
3937 * misc/sys/cdefs.h (__always_inline): Define.
3938 * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
3939 Use __always_inline instead of __inline.
3940 * socket/bits/socket2.h (recv, recvfrom): Likewise.
3941 * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
3942 * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
3943 __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
3944 __strcat_ichk, __strncat_ichk): Use __always_inline instead of
3945 __inline__ __attribute__ ((__always_inline__)).
3947 2005-03-09 Jakub Jelinek <jakub@redhat.com>
3949 * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
3950 (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
3951 readlink. Add some more tests for read, pread, pread64, fgets and
3954 * posix/bits/unistd.h (read, pread, pread64, readlink,
3955 getcwd, getwd): Change macros into extern inline functions.
3956 (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
3957 __getcwd_alias, __getwd_alias): New prototypes.
3958 * socket/bits/socket2.h (recv, recvfrom): Change macros into
3959 extern inline functions.
3960 (__recv_alias, __recvfrom_alias): New prototypes.
3961 * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
3962 into extern inline functions.
3963 (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
3965 * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
3967 * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
3970 2005-03-18 Daniel Jacobowitz <dan@codesourcery.com>
3972 * configure.in: Use %function instead of @function.
3974 2005-03-18 Ulrich Drepper <drepper@redhat.com>
3977 * include/link.h (struct link_map): Remove l_opencount. Add l_removed.
3978 Change type of l_idx to int.
3979 * elf/dl-close.c: Basically rewrite. Do not use l_opencount to
3980 determine whether a DSO has to be unloaded. Instead compute this
3982 * elf/dl-deps.c: No need to manipulate l_opencount anymore.
3983 * elf/dl-lookup.c: Likewise.
3984 * elf/rtld.c: Likewise
3985 * elf/dl-open.c: Likewise. Use l_init_called to determine whether
3986 object was just loaded.
3987 * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
3988 * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
3989 is about to be unloaded as a match.
3990 (_dl_map_object): Likewise.
3991 * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
3993 * elf/circleload1.c: Don't use l_opencount anymore.
3994 * elf/neededtest.c: Likewise.
3995 * elf/neededtest2.c: Likewise.
3996 * elf/neededtest3.c: Likewise.
3997 * elf/neededtest4.c: Likewise.
3998 * elf/unload.c: Likewise.
3999 * elf/unload2.c: Likewise.
4000 * elf/loadtest.c: Likewise.
4003 * elf/rtld.c: Preloading errors are now never fatal.
4005 2005-03-08 Jakub Jelinek <jakub@redhat.com>
4008 * elf/Makefile: Add rules to build and run unload5 test.
4009 * elf/unload5.c: New file.
4012 * elf/Makefile: Add rules to build and run unload4 test.
4013 * elf/unload4.c: New file.
4014 * elf/unload4mod1.c: New file.
4015 * elf/unload4mod2.c: New file.
4016 * elf/unload4mod3.c: New file.
4017 * elf/unload4mod4.c: New file.
4019 2005-03-17 Roland McGrath <roland@redhat.com>
4021 * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
4023 2005-03-16 Richard Henderson <rth@redhat.com>
4026 * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
4028 (__hidden_def1, __hidden_dot_def1): Remove.
4029 (__hidden_def2, __hidden_def3): Remove.
4030 (__hidden_ver1): New.
4031 (hidden_ver, hidden_def, hidden_weak): Use it.
4032 (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
4033 version of the macro.
4036 * include/wchar.h (__wcscoll): Remove.
4037 * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
4038 * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
4040 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4042 * elf/elf.h: Define MIPS TLS relocations.
4044 2005-03-16 Ulrich Drepper <drepper@redhat.com>
4046 * elf/circleload1.c (main): Pretty printing.
4048 2005-03-15 Jakub Jelinek <jakub@redhat.com>
4050 * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
4051 Patch by Dan Kegel <dank@kegel.com>.
4054 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
4055 elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
4057 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4058 elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
4060 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4061 elf_machine_rela_relative, elf_machine_lazy_rel): Likewise. Change
4062 static inline into auto inline.
4063 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4064 elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
4065 * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
4067 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
4068 elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
4071 2005-03-15 Jakub Jelinek <jakub@redhat.com>
4074 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
4075 Remove memory clobber.
4077 * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
4078 thread-safe. Subtract GLRO(dl_hp_timing_overhead) from Diff.
4080 2005-03-14 Jakub Jelinek <jakub@redhat.com>
4082 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
4085 2005-03-10 GOTO Masanori <gotom@debian.or.jp>
4087 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
4089 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4090 Correct MAP_GROWSDOWN value.
4092 2005-03-13 Roland McGrath <roland@redhat.com>
4094 * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
4095 version if there is one. Only #error if macros are then undefined.
4096 * sysdeps/generic/tls-macros.h: New file.
4098 2005-03-10 GOTO Masanori <gotom@debian.or.jp>
4100 * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
4101 * sysdeps/hppa/configure: Regenerated.
4103 2005-03-08 Roland McGrath <roland@redhat.com>
4105 * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
4106 array types match exactly in C alias decls.
4108 2005-03-07 Ulrich Drepper <drepper@redhat.com>
4110 * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
4111 mallopt appropriately.
4112 * malloc/malloc.h: Define M_PERTURB.
4113 * malloc/malloc.c (perturb_byte): New variable.
4114 (alloc_perturb, free_perturb): New macros.
4115 (_int_malloc): Before returning, overwrite the memory if this is
4117 (_int_free): Overwrite freed memory if requested.
4118 (mALLOPt): Handle M_PERTURB.
4119 * test-skeleton.c: Add call to mallopt with M_PERTURB command.
4121 * elf/dl-close.c (_dl_close): Decrement l_opencount before
4122 printing debug message.
4123 * elf/dl-open.c (dl_open_worker): Always print the new opencount
4126 2005-03-06 Ulrich Drepper <drepper@redhat.com>
4128 * elf/dl-close.c (_dl_close): Unify debug message format.
4130 * elf/dl-close.c (_dl_close): Print debug message just before
4131 destroying a link map.
4133 * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
4134 * elf/dl-version.c (match_symbol): Likewise.
4136 * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
4138 * debug/recv_chk.c (__recv_chk): Always fail if request could
4139 overflow the buffer.
4140 * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
4141 * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
4142 we know the call succeeds.
4143 (recvfrom): Likewise.
4145 2005-03-05 Ulrich Drepper <drepper@redhat.com>
4147 * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
4149 * posix/regex_internal.c (re_string_reconstruct): Add cast to
4151 (build_wcs_upper_buffer): Change type of bug to plain char.
4152 * locale/weightwc.h (findidx): Add casts to avoid warnings.
4153 * time/mktime.c (ranged_convert): Initialize tm to make the
4155 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
4156 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
4157 * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
4158 * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
4159 * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
4160 * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
4161 * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
4162 * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
4163 * libio/iofwide.c: Add casts to avoid warnings.
4164 * stdio-common/printf-prs.c (parse_printf_format): Introduce new
4165 variable f to avoid warnings.
4166 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4167 Fix a few casts to avoid warnings.
4168 * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
4172 * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
4173 dynamically sized array.
4174 (build_wcs_upper_buffer): Likewise.
4176 2005-03-05 Jakub Jelinek <jakub@redhat.com>
4178 * include/bits/unistd.h: New file.
4179 * include/bits/socket2.h: New file.
4181 2005-03-05 Ulrich Drepper <drepper@redhat.com>
4183 * sunrpc/key_call.c: Remove doors support.
4184 * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
4185 * configure.in: Remove test for doors support which never existed.
4186 * config.make.in: Remove have_doors entry.
4188 * configure.in: Make sure at least gcc 3.4 is used. Undo last change.
4189 * config.make.in: Undo last change.
4191 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
4194 2005-03-05 Roland McGrath <roland@redhat.com>
4196 * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
4197 (_dl_out_of_memory): Use rtld_hidden_proto.
4198 * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
4199 (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
4200 * elf/dl-open.c (_dl_open): Likewise.
4201 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4203 * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
4205 * elf/dl-addr.c (_dl_addr): Add a cast.
4208 * elf/unload3mod4.c: Declare foo.
4209 * elf/testobj2.c: Include <stdio.h>.
4211 * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
4212 value constant, and use it in the defn.
4213 * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
4214 Use actual size for compat array decls.
4216 * config.make.in (cc-mtune): New substituted variable.
4217 * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
4218 done only if libc_mtune_example is defined.
4219 * sysdeps/i386/configure.in (libc_mtune_example): Set it.
4220 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
4222 2005-03-05 Jakub Jelinek <jakub@redhat.com>
4225 * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
4226 unconditionally to (defined RTLD_BOOTSTRAP).
4227 * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
4229 2005-03-05 Jakub Jelinek <jakub@redhat.com>
4231 * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
4232 $(inst_slibdir) in AS_NEEDED directive.
4234 2005-03-03 Jakub Jelinek <jakub@redhat.com>
4236 * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
4238 2005-03-01 H.J. Lu <hongjiu.lu@intel.com>
4241 * iconv/iconvconfig.c: Fix comment for the output file.
4242 (write_output): Clear padding in header.
4244 2005-03-03 Ulrich Drepper <drepper@redhat.com>
4247 * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
4248 loader is closed. Fixes unload3.
4249 * elf/tst-global1.c: New file.
4250 * elf/Makefile (tests): Add tst-global1.
4251 * elf/testobj2.c (p): New function.
4253 2005-03-03 Jakub Jelinek <jakub@redhat.com>
4256 * elf/Makefile: Add rules to build and run unload3 test.
4257 * elf/unload3.c: New test.
4258 * elf/unload3mod1.c: New file.
4259 * elf/unload3mod2.c: New file.
4260 * elf/unload3mod3.c: New file.
4261 * elf/unload3mod4.c: New file.
4263 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4266 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
4269 2005-03-01 Jakub Jelinek <jakub@redhat.com>
4271 * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
4273 * socket/bits/socket2.h (recv, recvfrom): Likewise.
4275 2005-03-01 Roland McGrath <roland@redhat.com>
4278 * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
4281 2005-03-01 Alfred M. Szmidt <ams@gnu.org>
4284 * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
4285 Add missing initializer.
4288 * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
4289 USE_TLS && !USE___THREAD].
4291 2005-02-26 GOTO Masanori <gotom@debian.or.jp>
4293 * csu/Makefile: Use printf instead of echo for some shells.
4295 2005-02-28 Roland McGrath <roland@redhat.com>
4297 * debug/warning-nop.c (__nop): Rename to nop, make it static.
4298 (__warndecl): Use alias attribute directly, instead of strong_alias
4299 macro. Add attribute_hidden.
4301 2005-02-28 Ulrich Drepper <drepper@redhat.com>
4303 * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
4304 determine the call will never trigger a failure.
4305 * debug/read_chk.c (__read_chk): Always fail if the buffer is too
4307 * debug/readlink_chk.c (__readlink_chk): Likewise.
4308 * debug/pread64_chk.c (__pread64_chk): Likewise.
4309 * debug/pread_chk.c (__pread_chk): Likewise.
4311 * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
4312 * sysdeps/x86_64/memset_chk.S: Likewise.
4314 2005-02-24 Roland McGrath <roland@redhat.com>
4316 * debug/Versions (libc: GLIBC_2.4): Remove
4317 __memset_zero_constant_len_parameter.
4318 * sysdeps/generic/memset_chk.c: Remove alias and warning.
4319 * misc/sys/cdefs.h (__warndecl): New macro.
4320 * debug/warning-nop.c: New file.
4321 * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
4322 arguments, instead of calling __memset_zero_constant_len_parameter.
4323 Use __warndecl for __warn_memset_zero_len.
4324 * debug/Makefile (routines): Add $(static-only-routines).
4325 (static-only-routines): New variable.
4327 2005-02-27 Ulrich Drepper <drepper@redhat.com>
4329 * po/tr.po: Update from translation team.
4331 2005-02-26 Ulrich Drepper <drepper@redhat.com>
4333 * elf/dl-addr.c: Cleanups. Move declaration next to first use.
4335 * dlfcn/dlerror.c (check_free): New function. Extract common code
4336 from fini and free_key_mem. Check whether this is libdl in the
4339 2005-02-25 Ulrich Drepper <drepper@redhat.com>
4341 * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
4344 2004-11-11 Richard Sandiford <rsandifo@redhat.com>
4347 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
4348 preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
4349 like __NR_N32_open. Just include <asm/unistd.h> otherwise.
4350 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4351 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
4352 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
4353 standard __NR prefix.
4354 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
4355 * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
4356 the output file is compatible with both pre-2.6 and 2.6 kernel headers.
4357 Extract separate syscall lists for each ABI.
4359 2005-02-23 Ulrich Drepper <drepper@redhat.com>
4361 * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
4364 * elf/Makefile: Run tst-tls9-static again.
4366 2005-02-22 Ulrich Drepper <drepper@redhat.com>
4369 * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
4371 (__libc_setup_tls): Initialize length of DTV based on array length.
4372 * elf/dl-load.c: Revert last change.
4373 * sysdeps/generic/dl-tls.c: Revert last change.
4375 * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
4376 tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
4377 tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
4378 * posix/tst-execl1.c: New file.
4379 * posix/tst-execl2.c: New file.
4380 * posix/tst-execle1.c: New file.
4381 * posix/tst-execle2.c: New file.
4382 * posix/tst-execlp1.c: New file.
4383 * posix/tst-execlp2.c: New file.
4384 * posix/tst-execv1.c: New file.
4385 * posix/tst-execv2.c: New file.
4386 * posix/tst-execve1.c: New file.
4387 * posix/tst-execve2.c: New file.
4388 * posix/tst-execvp1.c: New file.
4389 * posix/tst-execvp2.c: New file.
4391 2005-02-22 Roland McGrath <roland@redhat.com>
4393 * include/signal.h: Revert last change.
4394 (__sigemptyset): Use __builtin_memset instead of memset.
4396 2005-02-22 Ulrich Drepper <drepper@redhat.com>
4398 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
4399 non-cancelable I/O functions.
4401 2005-02-22 Jakub Jelinek <jakub@redhat.com>
4404 * nscd/nscd-client.h: Include sys/uio.h.
4405 (__readall, __readvall, writeall): New prototypes.
4406 * nscd/connections.c (writeall): New function.
4407 (handle_request): Use it.
4408 * nscd/aicache.c (addhstaiX): Likewise.
4409 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4410 * nscd/hstcache.c (cache_addhst): Likewise.
4411 * nscd/grpcache.c (cache_addgr): Likewise.
4412 * nscd/pwdcache.c (cache_addpw): Likewise.
4413 * nscd/nscd_helper.c (__readall, __readvall): New functions.
4414 * nscd/nscd_getai.c (__nscd_getai): Use them.
4415 * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
4416 * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
4417 * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
4418 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4420 2005-02-22 Roland McGrath <roland@redhat.com>
4422 * include/sys/socket.h: Declare __recv.
4423 * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
4424 * sysdeps/mach/hurd/recv.c: Likewise.
4426 * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
4427 __backtrace_* decls.
4429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4430 (INTERNAL_SYSCALL_ERROR_P): Evalute VAL. Parenthesize ERR.
4431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4433 * include/signal.h: Include <string.h> for memset decl.
4435 2005-02-22 Andreas Schwab <schwab@suse.de>
4437 * posix/execvp.c (execvp): Fix invalid free.
4439 2005-02-22 Jakub Jelinek <jakub@redhat.com>
4442 * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
4443 * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
4444 librpcsvc.a objects.
4446 2005-02-21 Ulrich Drepper <drepper@redhat.com>
4449 * iconvdata/ibm930.h: Correct Yen mapping.
4450 * iconvdata/ibm939.h: Likewise.
4451 * iconvdata/testdata/IBM930..UTF8: Adjust test data.
4452 * iconvdata/testdata/IBM939..UTF8: Likewise.
4453 Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
4455 * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
4456 IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
4457 (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
4458 ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
4459 ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
4460 ibm1158.c, and ibm1158.h.
4461 * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
4462 IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
4463 * iconvdata/gconv-modules: Likewise.
4464 * iconvdata/ibm1025.c: New file.
4465 * iconvdata/ibm1025.h: New file.
4466 * iconvdata/ibm1122.c: New file.
4467 * iconvdata/ibm1122.h: New file.
4468 * iconvdata/ibm1137.c: New file.
4469 * iconvdata/ibm1137.h: New file.
4470 * iconvdata/ibm1153.c: New file.
4471 * iconvdata/ibm1153.h: New file.
4472 * iconvdata/ibm1154.c: New file.
4473 * iconvdata/ibm1154.h: New file.
4474 * iconvdata/ibm1155.c: New file.
4475 * iconvdata/ibm1155.h: New file.
4476 * iconvdata/ibm1156.c: New file.
4477 * iconvdata/ibm1156.h: New file.
4478 * iconvdata/ibm1157.c: New file.
4479 * iconvdata/ibm1157.h: New file.
4480 * iconvdata/ibm1158.c: New file.
4481 * iconvdata/ibm1158.h: New file.
4482 * iconvdata/testdata/IBM1025: New file.
4483 * iconvdata/testdata/IBM1025..UTF8: New file.
4484 * iconvdata/testdata/IBM1122: New file.
4485 * iconvdata/testdata/IBM1122..UTF8: New file.
4486 * iconvdata/testdata/IBM1137: New file.
4487 * iconvdata/testdata/IBM1137..UTF8: New file.
4488 * iconvdata/testdata/IBM1153: New file.
4489 * iconvdata/testdata/IBM1153..UTF8: New file.
4490 * iconvdata/testdata/IBM1154: New file.
4491 * iconvdata/testdata/IBM1154..UTF8: New file.
4492 * iconvdata/testdata/IBM1155: New file.
4493 * iconvdata/testdata/IBM1155..UTF8: New file.
4494 * iconvdata/testdata/IBM1156: New file.
4495 * iconvdata/testdata/IBM1156..UTF8: New file.
4496 * iconvdata/testdata/IBM1157: New file.
4497 * iconvdata/testdata/IBM1157..UTF8: New file.
4498 * iconvdata/testdata/IBM1158: New file.
4499 * iconvdata/testdata/IBM1158..UTF8: New file.
4500 Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
4502 2005-02-10 Paolo Bonzini <bonzini@gnu.org>
4504 * posix/regcomp.c (lower_subexp): Do not optimize empty
4505 subexpressions even with REG_NOSUB.
4506 * posix/rxspencer/tests: Add a previously failing testcase.
4508 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4511 * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
4512 array index is within bounds.
4514 2005-02-21 Ulrich Drepper <drepper@redhat.com>
4517 * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
4519 * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
4520 * elf/Makefile: Remove rules to build and run tst-tls9-static.
4523 * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
4524 THREAD_DTV multiple times, this minimally reduces code size on
4527 2005-02-21 Jakub Jelinek <jakub@redhat.com>
4530 * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
4531 NETDB_INTERNAL if buffer is too small.
4534 * nscd/hstcache.c (INCR): Remove.
4535 (addhstbyX): Double buflen in each iteration rather than add INCR.
4536 * nscd/grpcache.c: Likewise.
4537 * nscd/pwdcache.c: Likewise.
4539 2005-02-21 Ulrich Drepper <drepper@redhat.com>
4541 * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
4543 * debug/chk_fail.c: Request backtrace and memory map dump.
4545 * Versions.def: Add GLIBC_2.4 for libc.
4546 * debug/fgets_chk.c: New file.
4547 * debug/fgets_u_chk.c: New file.
4548 * debug/getcwd_chk.c: New file.
4549 * debug/getwd_chk.c: New file.
4550 * debug/readlink_chk.c: New file.
4551 * debug/read_chk.c: New file.
4552 * debug/pread_chk.c: New file.
4553 * debug/pread64_chk.c: New file.
4554 * debug/recv_chk.c: New file.
4555 * debug/recvfrom_chk.c: New file.
4556 * debug/Versions: Add all new functions with version GLIBC_2.4.
4557 * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
4558 pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
4559 getwd_chk, and getcwd_chk. Plus appropriate CFLAGS definitions.
4560 * debug/tst-chk1.c: Add more tests.
4561 * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
4562 * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
4563 * posix/unistd.h: Include <bits/unistd.h> for fortification.
4564 * posix/bits/unistd.h: New file.
4565 * posix/Makefile (headers): Add bits/unistd.h.
4566 * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
4567 * socket/bits/socket2.h: New file.
4568 * socket/Makefile (headers): Add bits/socket2.h.
4570 * string/bits/string3.h: Extend memset macro to check for zero 3rd
4571 parameter and use __memset_zero_constant_len_parameter in that case.
4572 * sysdeps/generic/memset_chk.c: Add
4573 __memset_zero_constant_len_parameter alias and linker warning.
4574 * debug/Versions: Add __memset_zero_constant_len_parameter to libc
4575 with version GLIBC_2.4.
4577 * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
4578 in __STD_TYPE definition.
4580 2005-02-21 Jakub Jelinek <jakub@redhat.com>
4582 * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
4583 the error message rather than program name.
4585 2005-02-21 Ulrich Drepper <drepper@redhat.com>
4588 * posix/unistd.h: symlink and readlink are unconditionally
4589 available in the 2001 spec.
4591 2005-02-16 Roland McGrath <roland@redhat.com>
4593 * intl/dcigettext.c (_nl_find_msg): Add a cast.
4595 * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
4596 * nis/nis_clone_obj.c (nis_clone_object): Likewise.
4597 * nis/nis_clone_res.c (nis_clone_result): Likewise.
4599 * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
4600 for END_OF_MESSAGE and CP.
4602 * resolv/res_send.c (send_dg): Add else branch for case impossible
4603 unless `poll' is buggy.
4605 * crypt/crypt_util.c (__setkey_r): Add a cast.
4607 * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
4608 NBYTES, and unsigned char * for BYTES.
4610 * locale/programs/charmap.c (charmap_new_char): Use size_t and
4611 unsighed char * for NBYTES, BYTES parameters.
4613 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
4615 * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
4617 * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
4619 * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
4621 * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
4622 (authdes_marshal): Don't use unsigned int for LEN.
4623 * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
4624 (xdr_u_hyper): Likewise.
4625 (xdr_u_short): Don't use u_long for L.
4626 * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
4628 * inet/rexec.c (rexec_af): Use socklen_t.
4629 * sunrpc/key_call.c (getkeyserv_handle): Likewise.
4630 * sunrpc/rtime.c (rtime): Likewise.
4631 * resolv/res_send.c (send_vc, send_dg): Likewise.
4632 * nis/nis_callback.c (__nis_create_callback): Likewise.
4634 * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
4636 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
4638 * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
4640 * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
4641 (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
4642 (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
4643 * intl/bindtextdom.c (INTUSE): Macro removed.
4644 (_nl_default_dirname): Use libc_hidden_proto.
4645 (set_binding_values): Don't use INTUSE.
4646 * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
4647 (_libc_intl_domainname): Use libc_hidden_proto.
4648 * posix/regex_internal.h (gettext): Remove INTUSE on it.
4649 * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
4651 * include/libintl.h (_): Don't use *_internal name.
4653 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
4655 * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
4657 * iconv/gconv_open.c (__gconv_open): Remove useless cast.
4660 * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
4662 * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
4663 * sysdeps/powerpc/powerpc32/dl-machine.h
4664 (elf_machine_rel, elf_machine_rel_relative): Removed.
4665 * sysdeps/powerpc/powerpc64/dl-machine.h
4666 (elf_machine_rel, elf_machine_rel_relative): Removed.
4668 2005-02-03 Alexandre Oliva <aoliva@redhat.com>
4671 * elf/dynamic-link.h: Don't declare nested auto functions that are
4672 not going to be defined.
4674 2004-07-23 Jakub Jelinek <jakub@redhat.com>
4677 * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
4678 if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
4680 2005-02-16 Roland McGrath <roland@redhat.com>
4682 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
4683 inside [! SHARED] where it's used.
4685 2005-02-15 Ulrich Drepper <drepper@redhat.com>
4687 * sysdeps/generic/bits/byteswap.h: Make sure result of all the
4688 functions and macros is unsigned.
4690 2005-02-11 Barry deFrese <bddebian@comcast.net>
4693 * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
4694 * sysdeps/mach/hurd/setresuid.c: Likewise.
4696 2005-02-14 GOTO Masanori <gotom@debian.or.jp>
4698 * misc/sys/syslog.h: Fix typo in comment.
4700 2005-02-14 Roland McGrath <roland@redhat.com>
4703 * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
4704 if it wasn't originally.
4706 2005-02-14 GOTO Masanori <gotom@debian.or.jp>
4708 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
4710 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4711 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4713 2005-02-11 Jakub Jelinek <jakub@redhat.com>
4715 * scripts/soversions.awk: Only record first WORDSIZE{32,64}
4718 2005-02-14 Alan Modra <amodra@bigpond.net.au>
4721 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
4722 with auto inline, and attribute always_inline.
4723 (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
4724 (elf_machine_rel, elf_machine_rel_relative): Likewise.
4725 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4726 (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
4727 (elf_machine_rel, elf_machine_rel_relative): Likewise.
4728 (elf_machine_tprel): Likewise.
4730 2005-02-14 Andreas Schwab <schwab@suse.de>
4732 * manual/filesys.texi (Random Access Directory): Fix type of file
4733 position value for telldir and seekdir.
4734 (Attribute Meanings): Fix typo.
4736 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
4738 * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
4740 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
4741 if SHARED isn't defined.
4742 * elf/Makefile (tests-static): Add tst-array1-static.
4743 ($(objpfx)tst-array1-static.out): New target.
4744 * elf/tst-array1-static.c: New file.
4746 2005-02-11 Jakub Jelinek <jakub@redhat.com>
4749 * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
4750 __libc_message to kill GCC warning about noreturn function returning.
4752 * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
4753 before relocating ld.so again.
4755 * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
4756 for already prelinked ld.so.
4758 2005-02-11 Roland McGrath <roland@redhat.com>
4761 * Makefile (installed-stubs): New variable.
4762 Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
4763 or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
4764 [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
4765 ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
4767 ($(inst_includedir)/gnu/stubs.h): New target, install from ...
4768 * include/stubs-biarch.h: New file.
4770 * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
4772 * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
4773 Emit defn for variable `biarch'.
4775 * include/stub-tag.h: Update comment.
4777 * scripts/soversions.awk: Fix default version set handling.
4779 2005-02-10 Roland McGrath <roland@redhat.com>
4782 * include/libc-symbols.h (stub_warning): Emit a marker section called
4783 .gnu.glibc-stub.NAME.
4784 * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
4785 Use objdump to collect those marker section names.
4786 ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
4788 * Rules (subdir_objs, subdir_stubs): New phony targets.
4789 * Makefile (+subdir_targets): Add them.
4791 * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
4794 * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
4795 Reported by H.J. Lu <hongjiu.lu@intel.com>.
4797 * scripts/lib-names.awk: Always print WORDSIZE32 section first when
4800 2005-02-10 Jakub Jelinek <jakub@redhat.com>
4802 * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
4803 * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
4804 * sysdeps/powerpc/bits/link.h: ... here. New file.
4806 2005-02-09 Jakub Jelinek <jakub@redhat.com>
4809 * stdlib/random_r.c (__initstate_r): Save old state.
4810 * stdlib/Makefile (tests): Add tst-random2.
4811 * stdlib/tst-random2.c: New test.
4812 Reported by Peter Bergner <bergner@vnet.ibm.com>.
4814 2005-01-25 H.J. Lu <hongjiu.lu@intel.com>
4816 * dlfcn/dlfcn.c (init): Put it in .init_array section.
4818 2005-02-10 Roland McGrath <roland@redhat.com>
4821 * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
4823 Grok shlib-versions lines with WORDSIZE* in second column.
4824 Add new leading column to output, DEFAULT for existing output lines.
4825 Also emit lines with WORDSIZE* for alternate configurations.
4826 * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
4827 ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
4828 ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
4829 of soversions.mk; replace inline shell script with use of ...
4830 * scripts/lib-names.awk: New file. If input has non-DEFAULT lines,
4831 emit multiple sets of macros under #if.
4832 * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
4833 (s390x-.*-.*): Likewise for s390.
4834 (powerpc64-.*-.*): Likewise for powerpc.
4835 (sparc64-.*-.*): Likewise for sparc.
4836 (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
4837 for these mapping back to the above.
4839 2005-02-08 Jakub Jelinek <jakub@redhat.com>
4841 * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
4843 2005-02-08 Andreas Schwab <schwab@suse.de>
4845 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
4848 2005-02-07 Richard Henderson <rth@redhat.com>
4851 * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
4853 2005-02-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4855 * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
4858 2005-02-07 Ulrich Drepper <drepper@redhat.com>
4860 * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
4863 2005-01-07 Richard Henderson <rth@redhat.com>
4866 * math/math_private.h (__copysign): Define as builtin for gcc 4.
4867 (__copysignf, __copysignl): Likewise.
4868 * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
4870 (copysignf, copysignl, fabsf, fabs): Likewise.
4871 (__copysign, __copysignf, __copysignl): Remove.
4872 (__fabs, __fabsf): Remove.
4874 2005-01-07 Jakub Jelinek <jakub@redhat.com>
4877 * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
4878 avoid writing to it if none of the standard search directories exist.
4880 2005-02-07 Steven Munroe <sjmunroe@us.ibm.com>
4883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4884 (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
4885 Load MSR as a doubleword.
4886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4887 (__novec_swapcontext, __swapcontext): Likewise.
4889 2005-02-07 Ulrich Drepper <drepper@redhat.com>
4891 * iconv/iconv_prog.c (main): Provide more help in case on an error.
4893 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
4895 2005-02-07 Jakub Jelinek <jakub@redhat.com>
4898 * nscd/nscd.c (termination_handler): Avoid segfault if some database
4902 * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
4903 __nss_not_use_nscd_hosts and return -1.
4904 * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
4905 initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
4906 Avoid leaking sockets.
4908 2005-01-28 Andreas Schwab <schwab@suse.de>
4909 H.J. Lu <hongjiu.lu@intel.com>
4912 * elf/dl-runtime.c (fixup): Change return type to
4913 DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
4914 DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
4915 values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
4916 store and retrieve relocation values.
4917 (profile_fixup): Likewise.
4918 * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
4920 * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
4921 * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
4922 (DL_FIXUP_MAKE_VALUE): Likewise.
4923 (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
4924 (DL_FIXUP_VALUE_ADDR): Likewise.
4925 (DL_FIXUP_ADDR_VALUE): Likewise.
4926 * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
4927 (DL_FIXUP_VALUE_TYPE): New.
4928 (DL_FIXUP_MAKE_VALUE): Likewise.
4929 (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
4930 (DL_FIXUP_VALUE_ADDR): Likewise.
4931 (DL_FIXUP_ADDR_VALUE): Likewise.
4932 * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
4933 (elf_machine_profile_plt): Removed.
4934 (elf_machine_fixup_plt): Change return type and type of value
4935 parameter to struct fdesc.
4936 (elf_machine_plt_value): Likewise.
4937 (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
4938 argument for elf_machine_fixup_plt.
4940 2005-02-07 Jakub Jelinek <jakub@redhat.com>
4943 * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
4944 after the status string printed by killproc.
4946 2004-11-18 Alexandre Oliva <aoliva@redhat.com>
4948 * manual/.cvsignore: Add dir-add.texi.
4950 2005-02-06 Richard Henderson <rth@redhat.com>
4952 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
4955 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
4957 * configure.in (sysnames): Append sysdeps/generic for each add-on.
4958 * configure: Regenerated.
4960 2005-02-02 Alfred M. Szmidt <ams@gnu.org>
4962 * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
4963 (dtv_t): Change pointer type to be a struct which also contains
4964 information whether the memory pointed to is static TLS or not.
4966 * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
4968 * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
4969 (FALSEP): ... this. Updated all references.
4972 * libio/fmemopen.c: Include <stdint.h>.
4974 2005-01-30 Ulrich Drepper <drepper@redhat.com>
4977 * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
4978 * nscd/connections.c (send_ro_fd): Likewise.
4980 2005-01-28 H.J. Lu <hongjiu.lu@intel.com>
4982 * elf/tst-auditmod1.c: Add ia64 entries.
4983 * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
4984 (La_ia64_retval): New.
4985 (audit_ifaces): Add ia64 entries.
4986 * sysdeps/ia64/bits/link.h: New file.
4987 * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
4988 for dl_profile non-null.
4989 (ARCH_LA_PLTENTER): New.
4990 (ARCH_LA_PLTEXIT): New.
4991 * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
4992 only 2 output registers. Allocate stack to save/restore
4993 8 incoming fp registers. Call _dl_fixup instead of fixup.
4994 (_dl_runtime_profile): Rewrite.
4996 2005-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
4998 * sysdeps/s390/bits/link.h: New file.
4999 * sysdeps/s390/s390-32/dl-trampoline.S: New file.
5000 * sysdeps/s390/s390-64/dl-trampoline.S: New file.
5001 * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
5002 dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
5004 (elf_machine_runtime_setup): Test for dl_profile non-null.
5005 (elf_machine_rela): Remove code using RESOLVE.
5006 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
5007 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5008 * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
5009 La_s390_64_regs, La_s390_64_retval): New.
5010 * elf/tst-auditmod1.c: Add s390 entries.
5013 * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
5014 strncat, memchr, strcmp): Add missing memory clobber.
5016 2005-01-27 Ulrich Drepper <drepper@redhat.com>
5018 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
5019 copy gl_offs. Patch by Sergey Tikhonov <tsv@solvo.ru>.
5021 2005-01-27 Paolo Bonzini <bonzini@gnu.org>
5024 * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
5025 Initialize the node sets in dfa->inveclosures.
5026 (analyze): Initialize inveclosures only if it is needed.
5027 Check errors from calc_inveclosure.
5028 * posix/regex_internal.c (re_dfa_add_node): Do not initialize
5029 the inveclosure node set.
5030 * posix/regexec.c (re_search_internal): If nmatch includes unused
5031 subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
5033 * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
5034 Do build a SIMPLE_BRACKET token.
5036 * posix/regexec.c (transit_state_mb): Do not examine nodes
5037 where ACCEPT_MB is not set.
5039 2005-01-27 Jakub Jelinek <jakub@redhat.com>
5041 * stdlib/tst-fmtmsg.c: Include stdlib.h.
5042 * stdio-common/tst-fmemopen2.c: Include string.h.
5043 * posix/execvp.c: Include stdbool.h.
5045 2004-12-13 Paolo Bonzini <bonzini@gnu.org>
5047 Separate parsing and creation of the NFA. Avoided recursion on
5048 the (very unbalanced) parse tree.
5050 * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
5051 re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
5052 (optimize_subexps, duplicate_tree, calc_first, calc_next,
5053 mark_opt_subexp): Rewritten.
5054 (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
5055 create_token_tree, free_tree, free_token): New.
5056 (analyze): Accept a regex_t *. Invoke the passes via the preorder and
5057 postorder generic visitors. Do not initialize the fields in the
5058 re_dfa_t that represent the transitions.
5059 (free_dfa_content): Use free_token.
5060 (re_compile_internal): Analyze before UTF-8 optimizations. Do not
5061 include optimization of subexpressions.
5062 (create_initial_state): Fetch the DFA node index from the first node's
5064 (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
5065 Return on COMPLEX_BRACKET.
5066 (duplicate_node_closure): Fix comment.
5067 (duplicate_node): Do not initialize the fields in the
5068 re_dfa_t that represent the transitions.
5069 (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
5070 (create_tree): Remove final argument. All callers adjusted. Rewritten
5071 to use create_token_tree.
5072 (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
5073 build_charclass_op): Use create_tree or create_token_tree instead
5074 of re_dfa_add_tree_node.
5075 (parse_dup_op): Likewise. Also free the tree using free_tree for
5076 "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
5077 to "a|". Adjust invocation of mark_opt_subexp.
5078 (parse_sub_exp): Create a single SUBEXP node.
5079 * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
5080 always perform as if it was 1. Do not initialize OPT_SUBEXP and
5081 DUPLICATED, and initialize the DFA fields representing the transitions.
5082 * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
5083 (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
5084 section. Add a tree-only code SUBEXP. Remove OP_DELETED_SUBEXP.
5085 (bin_tree_t): Include a full re_token_t for TOKEN. Turn FIRST and
5086 NEXT into pointers to trees. Remove ECLOSURE.
5088 2004-12-28 Paolo Bonzini <bonzini@gnu.org >
5091 * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
5092 that were already created.
5093 * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
5094 in the token if needed.
5095 (create_ci_newstate, create_cd_newstate): Set accept_mb field
5096 from the tokens' field.
5097 * posix/regex_internal.h (re_token_t): Add accept_mb field.
5098 (ACCEPT_MB_NODE): Removed.
5099 * posix/regexec.c (proceed_next_node, transit_states_mb,
5100 build_sifted_states, check_arrival_add_next_nodes): Use
5101 accept_mb instead of ACCEPT_MB_NODE.
5103 2005-01-26 Ulrich Drepper <drepper@redhat.com>
5106 * debug/chk_fail.c (__chk_fail): Print program name in final message.
5108 * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
5109 MSG_NOSIGNAL being in 2.2 kernels.
5111 2005-01-26 Jakub Jelinek <jakub@redhat.com>
5113 * sysdeps/unix/sysv/linux/i386/sysdep.h
5114 (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
5117 * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
5118 (WORD_DELIM_CONSTRAINT): ...this.
5119 (NOT_WORD_DELIM_CONSTRAINT): Define.
5120 (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
5121 change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
5122 * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
5123 anchor instead of INSIDE_WORD.
5124 (parse_expression): Handle NOT_WORD_DELIM constraint.
5125 * posix/bug-regex19.c (tests): Adjust tests that relied on \B
5126 being inside word instead of not word delim.
5127 * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
5129 * posix/rxspencer/tests: Add some new tests.
5131 2005-01-14 GOTO Masanori <gotom@debian.or.jp>
5134 * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
5135 irrespective of Cflag.
5137 * manual/memory.texi (sbrk): Fix definition.
5138 * manual/string.texi (strcasestr): Fix example typo.
5140 2005-01-25 Roland McGrath <roland@redhat.com>
5142 * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
5144 2005-01-23 Roland McGrath <roland@redhat.com>
5147 * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
5148 in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
5149 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
5150 (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
5151 from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
5152 * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
5154 2005-01-25 Jakub Jelinek <jakub@redhat.com>
5157 * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
5158 (free_mem): Don't free string.
5159 * stdlib/tst-fmtmsg.c: Include string.h.
5160 (main): Add some more tests.
5162 2005-01-25 Andreas Schwab <schwab@suse.de>
5165 * timezone/asia: Update from tzdata2005c.
5166 * timezone/backward: Likewise.
5167 * timezone/europe: Likewise.
5168 * timezone/leapseconds: Likewise.
5169 * timezone/northamerica: Likewise.
5170 * timezone/southamerica: Likewise.
5173 * timezone/private.h: Update from tzcode2005c.
5174 * timezone/tzfile.h: Likewise.
5175 * timezone/zdump.c: Likewise.
5176 * timezone/zic.c: Likewise.
5178 2005-01-25 Ulrich Drepper <drepper@redhat.com>
5180 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
5182 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
5184 * elf/rtld.c (_dl_start): Remove RESOLVE definition.
5186 2005-01-25 Alan Modra <amodra@bigpond.net.au>
5188 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
5189 sym_map, not sym, against zero.
5191 2005-01-24 Ulrich Drepper <drepper@redhat.com>
5194 * misc/syslog.c: Moved to...
5195 * sysdeps/generic/syslog.c: ...here.
5196 [NO_SIGIPE]: Don't install SIGPIPE handler.
5197 * sysdeps/unix/sysv/linux/syslog.c: New file.
5198 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5199 __ASSUME_MSG_NOSIGNAL.
5201 2005-01-22 Richard Henderson <rth@redhat.com>
5203 * sysdeps/alpha/dl-trampoline.S: New file.
5204 * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
5205 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
5206 (elf_machine_runtime_setup): Test for dl_profile non-null.
5207 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
5208 * sysdeps/alpha/bits/link.h: New file.
5209 * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
5210 (struct audit_ifaces): Add alpha entries.
5211 * elf/tst-auditmod1.c: Add alpha entries.
5213 2005-01-22 Ulrich Drepper <drepper@redhat.com>
5215 * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
5216 * sysdeps/ia64/dl-trampoline.S: New file.
5218 * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
5219 La_x86_64_xmm definition.
5221 * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
5223 * stdlib/Makefile (CFLAGS-system.os): Use this instead of
5224 CFLAGS-system.c for frame pointer option.
5226 2005-01-21 Roland McGrath <roland@redhat.com>
5228 * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
5229 * sysdeps/i386/dl-machine.h: Update decl.
5231 2005-01-21 Jakub Jelinek <jakub@redhat.com>
5234 * elf/Makefile: Add rules to build and run tst-align2.
5235 * elf/tst-align2.c: New test.
5236 * elf/tst-alignmod2.c: New file.
5237 * sysdeps/powerpc/tst-stack-align.h: New file.
5238 * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
5239 pointer before calling _dl_init.
5240 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
5242 2005-01-20 Ulrich Drepper <drepper@redhat.com>
5244 * posix/execl.c: Do not allocate potentially large buffers on the
5246 * posix/execle.c: Likewise.
5247 * posix/execlp.c: Likewise.
5248 * posix/execvp.c: Likewise.
5249 (script_execute): Removed.
5250 (allocate_scripts_argv): New function. Called at most once to
5251 allocate memory, not every time a script is run. Adjust caller.
5253 * sysdeps/generic/wordexp.c (exec_comm): Add a few
5254 TEMP_FAILURE_RETRY. Reorganize code to avoid multiple calls to
5256 (exec_comm_child): Can now be inlined.
5258 * posix/Makefile: Add -fomit-frame-pointer for a few more files.
5259 * stdlib/Makefile: Likewise.
5261 2005-01-19 Roland McGrath <roland@redhat.com>
5264 * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
5266 Reported by Marcus Meissner <meissner@suse.de>.
5268 2005-01-19 Jakub Jelinek <jakub@redhat.com>
5270 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
5272 * iconv/strtab.c (strtabfinalize): Likewise.
5274 * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
5276 2005-01-17 Roland McGrath <roland@redhat.com>
5279 * nscd/Makefile (LDLIBS-nscd): New variable.
5280 ($(objpfx)nscd): Use that instead of selinux-LIBS.
5282 * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
5283 (link-extra-libs-static): Define to $(link-extra-libs).
5284 (link-extra-libs-bounded): Likewise.
5286 2005-01-17 Ulrich Drepper <drepper@redhat.com>
5288 * include/link.h: Remove stray definition of pltenter.
5290 2005-01-16 GOTO Masanori <gotom@debian.or.jp>
5293 * sysdeps/unix/rewinddir.c: Reset filepos.
5294 * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
5296 2005-01-15 Ulrich Drepper <drepper@redhat.com>
5298 * elf/tst-auditmod1.c: Reduce duplication.
5300 2005-01-16 Andreas Schwab <schwab@suse.de>
5302 * sysdeps/m68k/dl-machine.h: Remove trampoline code. Define
5303 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
5304 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
5305 GLRO(dl_profile) != NULL.
5306 * sysdeps/m68k/dl-trampoline.S: New file.
5307 * sysdeps/m68k/bits/link.h: New file.
5308 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
5310 * elf/tst-auditmod1.c: Add m68k support.
5312 2005-01-14 Ulrich Drepper <drepper@redhat.com>
5314 * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
5315 LC_* variable. Patch by Aharon Robbins <arnold@skeeve.com>.
5318 * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
5319 * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
5321 2005-01-12 Ulrich Drepper <drepper@redhat.com>
5323 * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
5324 callers from libc anymore.
5326 * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
5327 to _dl_map_object_deps.
5328 * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
5329 protections when loading auditing modules.
5331 * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
5333 * posix/getconf.c: Update copyright year.
5334 * nss/getent.c: Likewise.
5335 * nscd/nscd_nischeck.c: Likewise.
5336 * iconv/iconvconfig.c: Likewise.
5337 * iconv/iconv_prog.c: Likewise.
5338 * elf/ldconfig.c: Likewise.
5339 * catgets/gencat.c: Likewise.
5340 * csu/version.c: Likewise.
5341 * elf/ldd.bash.in: Likewise.
5342 * elf/sprof.c (print_version): Likewise.
5343 * locale/programs/locale.c: Likewise.
5344 * locale/programs/localedef.c: Likewise.
5345 * nscd/nscd.c (print_version): Likewise.
5346 * debug/xtrace.sh: Likewise.
5347 * malloc/memusage.sh: Likewise.
5348 * malloc/mtrace.pl: Likewise.
5349 * debug/catchsegv.sh: Likewise.
5351 2005-01-11 Thorsten Kukuk <kukuk@suse.de>
5354 * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
5356 * sunrpc/svc_unix.c (svcunix_create): Likewise.
5359 * grp/putgrent.c (putgrent): Don't write 0 as group
5360 ID if groupname starts with + or -.
5361 * pwd/putpwent.c (putpwent): Don't write 0 as user or
5362 group ID if user name starts with + or -.
5364 2005-01-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5366 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
5367 * sysdeps/elf/tst-auditmod1.c: Add sh support.
5368 * sysdeps/sh/bits/link.h: New.
5369 * sysdeps/sh/dl-machine.h: Remove trampoline code here. Define
5370 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT. Remove obsolete comments.
5371 (RTLD_START): Define __fpscr_values.
5372 * sysdeps/sh/dl-trampoline.S: New file.
5373 * sysdeps/sh/sh4/dl-trampoline.S: New file.
5374 * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
5375 * sysdeps/sh/sh4/dl-machine.h: Remove.
5377 2005-01-10 Jakub Jelinek <jakub@redhat.com>
5380 * time/tst-strptime.c (day_tests): Add 2 new tests.
5381 (test_tm, main): Issue an error instead of segfaulting if
5382 strptime returns NULL.
5384 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
5386 * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
5387 * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
5389 2005-01-11 Ulrich Drepper <drepper@redhat.com>
5391 * malloc/malloc.h: Remove no-glibc support.
5393 2005-01-12 GOTO Masanori <gotom@debian.or.jp>
5396 * malloc/malloc.h: Always include features.h.
5398 2005-01-10 Roland McGrath <roland@redhat.com>
5400 * sysdeps/ia64/fpu/e_logl.c: File removed.
5402 * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
5404 2005-01-10 Ulrich Drepper <drepper@redhat.com>
5406 * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
5407 recognition of last entry.
5409 2005-01-09 Ulrich Drepper <drepper@redhat.com>
5411 * elf/dl-runtime.c: Include <sys/param.h>.
5413 * elf/Makefile (headers): Add bits/link.h.
5415 2005-01-09 Andreas Schwab <schwab@suse.de>
5417 * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
5419 2005-01-09 Andreas Jaeger <aj@suse.de>
5422 * time/strptime_l.c (__strptime_internal): Add braces to avoid
5425 * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
5427 * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
5429 2005-01-08 Jakub Jelinek <jakub@redhat.com>
5431 * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
5433 2005-01-09 Ulrich Drepper <drepper@redhat.com>
5435 * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
5436 those of all the regular objects.
5438 * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
5439 use it to select the r_debug structure for that namespace.
5440 * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
5441 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5442 * elf/dl-open.c (_dl_open): Likewise.
5443 * elf/rtld.c (dl_main): Likewise.
5444 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
5446 (_dl_debug_initialize): Add new parameter in declaration.
5448 * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
5449 called for the auditing objects themselves.
5450 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5452 2005-01-07 Ulrich Drepper <drepper@redhat.com>
5454 * sysdeps/powerpc/powerpc64/dl-machine.h
5455 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
5456 GLRO(dl_profile) != NULL.
5457 * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
5459 * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
5460 Extend _dl_prof_resolve to add pass extra parameters to
5461 _dl_profile_fixup and set up structure with register content.
5463 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
5464 If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
5465 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
5466 Extend _dl_prof_resolve to add pass extra parameters to
5467 _dl_profile_fixup and set up structure with register content.
5468 * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
5469 the register and result structures.
5470 * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
5471 in the 32-bit register and result structures.
5473 * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
5475 * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
5476 * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
5477 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
5478 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
5479 * elf/tst-auditmod1.c: Add ppc32 support.
5480 * sysdeps/powerpc/powerpc32/bits/link.h: New file.
5481 * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
5483 * malloc/malloc.c (malloc_printerr): Print program name as part of
5486 * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
5487 * stdlib/stdlib.h: Make realloc with
5488 __attribute_warn_unused_result__ instead of __wur.
5489 * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
5490 markers as in <stdlib.h>.
5492 * libio/stdio.h: Remove __wur from rename and remove.
5493 * posix/unistd.h: Remove __wur from dup2.
5495 2005-01-03 Andreas Jaeger <aj@suse.de>
5497 * elf/Makefile (tests): Revert patch from 2005-01-03.
5499 2005-01-07 Ulrich Drepper <drepper@redhat.com>
5501 * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
5502 make __libc_init_first hidden.
5504 * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
5505 l_relocated of rtld map.
5506 * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
5507 * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
5508 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
5509 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
5510 * elf/tst-auditmod1.c: Add ppc64 support.
5511 * sysdeps/powerpc/powerpc64/bits/link.h: New file.
5513 2005-01-06 Roland McGrath <roland@redhat.com>
5516 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
5517 indicating file-name lookup errors, and return ENOSYS or EBADF instead.
5519 2005-01-06 Ulrich Drepper <drepper@redhat.com>
5521 * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
5522 * sysdeps/generic/libc-start.c: Don't register program destructor here.
5524 * dlfcn/Makefile: Add rules to build dlfcn.c.
5525 (LDFLAGS-dl.so): Removed.
5526 * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
5528 * dlfcn/dlmopen.c: Likewise for _dl_open.
5529 * dlfcn/dlopen.c: Likewise.
5530 * dlfcn/dlopenold.c: Likewise.
5531 * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
5532 * elf/Makefile (routines): Remove dl-open and dl-close.
5533 (dl-routines): Add dl-open, dl-close, and dl-trampoline.
5534 Add rules to build and run tst-audit1.
5535 * elf/tst-audit1.c: New file.
5536 * elf/tst-auditmod1.c: New file.
5537 * elf/Versions [libc]: Remove _dl_open and _dl_close.
5538 * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
5539 * elf/dl-open.c: Likewise.
5540 * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
5541 signaled by nonzero parameter.
5542 * elf/dl-init.c: Fix use of r_state.
5543 * elf/dl-load.c: Likewise.
5545 * elf/dl-close.c: Add auditing checkpoints.
5546 * elf/dl-open.c: Likewise.
5547 * elf/dl-fini.c: Likewise.
5548 * elf/dl-load.c: Likewise.
5549 * elf/dl-sym.c: Likewise.
5550 * sysdeps/generic/libc-start.c: Likewise.
5551 * elf/dl-object.c: Allocate memory for auditing information.
5552 * elf/dl-reloc.c: Remove RESOLV. We now always need the map.
5553 Correctly initialize slotinfo.
5554 * elf/dynamic-link.h: Adjust after removal of RESOLV.
5555 * sysdeps/hppa/dl-lookupcfg.h: Likewise.
5556 * sysdeps/ia64/dl-lookupcfg.h: Likewise.
5557 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
5558 * elf/dl-runtime.c (_dl_fixup): Little cleanup.
5559 (_dl_profile_fixup): New parameters to point to register struct and
5560 variable for frame size.
5561 Add auditing checkpoints.
5562 (_dl_call_pltexit): New function.
5563 Don't define trampoline code here.
5564 * elf/rtld.c: Recognize LD_AUDIT. Load modules on startup.
5565 Remove all the functions from _rtld_global_ro which only _dl_open
5566 and _dl_close needed.
5567 Add auditing checkpoints.
5568 * elf/link.h: Define symbols for auditing interfaces.
5569 * include/link.h: Likewise.
5570 * include/dlfcn.h: Define __RTLD_AUDIT.
5571 Remove prototypes for _dl_open and _dl_close.
5572 Adjust access to argc and argv in libdl.
5573 * dlfcn/dlfcn.c: New file.
5574 * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
5576 * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
5577 * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
5578 * sysdeps/i386/dl-machine.h: Remove trampoline code here.
5579 Adjust for removal of RESOLVE.
5580 * sysdeps/x86_64/dl-machine.h: Likewise.
5581 * sysdeps/generic/dl-trampoline.c: New file.
5582 * sysdeps/i386/dl-trampoline.c: New file.
5583 * sysdeps/x86_64/dl-trampoline.c: New file.
5585 * sysdeps/generic/dl-tls.c: Cleanups. Fixup for dtv_t change.
5586 Fix updating of DTV.
5587 * sysdeps/generic/libc-tls.c: Likewise.
5589 * sysdeps/arm/bits/link.h: Renamed to ...
5590 * sysdeps/arm/bits/linkmap.h: ...this.
5591 * sysdeps/generic/bits/link.h: Renamed to...
5592 * sysdeps/generic/bits/linkmap.h: ...this.
5593 * sysdeps/hppa/bits/link.h: Renamed to...
5594 * sysdeps/hppa/bits/linkmap.h: ...this.
5595 * sysdeps/i386/bits/link.h: Renamed to...
5596 * sysdeps/i386/bits/linkmap.h: ...this.
5597 * sysdeps/ia64/bits/link.h: Renamed to...
5598 * sysdeps/ia64/bits/linkmap.h: ...this.
5599 * sysdeps/s390/bits/link.h: Renamed to...
5600 * sysdeps/s390/bits/linkmap.h: ...this.
5601 * sysdeps/sh/bits/link.h: Renamed to...
5602 * sysdeps/sh/bits/linkmap.h: ...this.
5603 * sysdeps/x86_64/bits/link.h: Renamed to...
5604 * sysdeps/x86_64/bits/linkmap.h: ...this.
5606 * posix/unistd.h: Declare ftruncate for POSIX 2003. [BZ #640]
5608 2004-12-22 Steven Munroe <sjmunroe@us.ibm.com>
5611 * math/libm-test.inc (rint_test_tonearest): New test.
5612 (rint_test_towardzero): New test.
5613 (rint_test_downward): New test.
5614 (rint_test_upward): New test.
5615 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
5616 Remove redundant const values.
5617 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
5618 Remove redundant const values. Use float const.
5619 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
5620 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
5622 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
5623 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
5625 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
5626 Remove redundant const values.
5627 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
5628 Remove redundant const values. Use float const.
5629 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
5630 Remove redundant const values.
5631 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
5632 Remove redundant const values. Use float const.
5633 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
5634 alignment. Fix -0.0 case. Remove redundant const values.
5635 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
5636 alignment. Fix -0.0 case. Remove redundant const values.
5638 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
5639 alignment. Fix -0.0 case.
5640 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
5641 alignment. Fix -0.0 case. Use float const.
5642 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
5643 alignment. Fix -0.0 case.
5644 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
5645 alignment. Fix -0.0 case. Use float const.
5646 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
5647 alignment. Fix -0.0 case. Remove redundant const values.
5648 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
5649 alignment. Fix -0.0 case. Remove redundant const values.
5651 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
5652 alignment. Fix -0.0 case.
5653 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
5654 alignment. Fix -0.0 case. Remove redundant const values.
5657 2005-01-06 Ulrich Drepper <drepper@redhat.com>
5659 * misc/sys/cdefs.h: Define __wur.
5660 * libio/stdio.h: Use __wur for a number of interfaces.
5661 * posix/unistd.h: Likewise.
5662 * stdlib/stdlib.h: Likewise.
5664 2004-12-29 Jakub Jelinek <jakub@redhat.com>
5667 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
5668 libc_hidden_proto instead of HIDDEN_PROTO.
5669 * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
5670 (__libm_error_support): If ASSEMBLER and in libc, define to
5671 HIDDEN_JUMPTARGET(__libm_error_support).
5673 2004-12-28 David Mosberger <davidm@hpl.hp.com>
5676 * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
5677 (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
5678 with $(duplicated-routines).
5679 (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
5682 2004-12-27 David Mosberger <davidm@hpl.hp.com>
5685 * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
5686 undefine "ret" macro. Add __libm_error_support hidden definitions.
5689 * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment. Add
5690 missing portion of copyright statement.
5691 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
5692 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
5695 * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment. Add
5696 missing portion of copyright statement.
5697 (__ieee754_lgamma): Rename from lgamma(). Make lgamma() a weak alias.
5698 (__ieee754_gamma): Likewise.
5699 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
5700 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
5702 2004-12-09 H.J. Lu <hjl@lucon.org>
5705 * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
5706 * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
5707 * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
5708 * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
5709 * sysdeps/ia64/fpu/e_expl.S: Likewise.
5710 * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
5712 2004-11-18 David Mosberger <davidm@hpl.hp.com>
5715 * sysdeps/ia64/fpu/README: New file.
5716 * sysdeps/ia64/fpu/gen_import_file_list: New file.
5717 * sysdeps/ia64/fpu/import_check: Likewise.
5718 * sysdeps/ia64/fpu/import_diffs: Likewise.
5719 * sysdeps/ia64/fpu/import_file.awk: Likewise.
5720 * sysdeps/ia64/fpu/import_intel_libm: Likewise.
5721 * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
5724 * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
5725 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5726 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5727 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5728 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5729 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5730 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5731 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5732 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5733 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5734 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5735 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5736 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5737 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5738 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5739 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5740 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5741 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5742 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5743 * sysdeps/ia64/fpu/e_log.S: Likewise.
5744 * sysdeps/ia64/fpu/e_log2.S: Likewise.
5745 * sysdeps/ia64/fpu/e_log2f.S: Likewise.
5746 * sysdeps/ia64/fpu/e_log2l.S: Likewise.
5747 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5748 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5749 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5750 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5751 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5752 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5753 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5754 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5755 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5756 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5757 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5758 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5759 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5760 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5761 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5762 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5763 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5764 * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
5765 * sysdeps/ia64/fpu/libm_support.h: Likewise.
5766 * sysdeps/ia64/fpu/s_atan.S: Likewise.
5767 * sysdeps/ia64/fpu/s_atanf.S: Likewise.
5768 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
5769 * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
5770 * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
5771 * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
5772 * sysdeps/ia64/fpu/s_ceil.S: Likewise.
5773 * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
5774 * sysdeps/ia64/fpu/s_ceill.S: Likewise.
5775 * sysdeps/ia64/fpu/s_cos.S: Likewise.
5776 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
5777 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
5778 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
5779 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
5780 * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
5781 * sysdeps/ia64/fpu/s_fabs.S: Likewise.
5782 * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
5783 * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
5784 * sysdeps/ia64/fpu/s_floor.S: Likewise.
5785 * sysdeps/ia64/fpu/s_floorf.S: Likewise.
5786 * sysdeps/ia64/fpu/s_floorl.S: Likewise.
5787 * sysdeps/ia64/fpu/s_frexp.c: Likewise.
5788 * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
5789 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5790 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5791 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5792 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5793 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5794 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5795 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5796 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5797 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5798 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5799 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5800 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5801 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5802 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5803 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5804 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5805 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5806 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5807 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5808 * sysdeps/ia64/fpu/s_round.S: Likewise.
5809 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5810 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5811 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5812 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5813 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5814 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5815 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5816 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5817 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5818 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5819 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5822 * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
5823 * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
5824 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
5825 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
5826 * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
5827 * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
5828 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
5829 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
5830 * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
5831 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5832 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
5833 * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
5834 * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
5835 * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
5836 * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
5837 * sysdeps/ia64/fpu/e_logl.S: Likewise.
5838 * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
5839 * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
5840 * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
5841 * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
5842 * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
5843 * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
5844 * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
5845 * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
5846 * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
5847 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
5848 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
5849 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
5850 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
5851 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
5852 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
5853 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
5854 * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
5855 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
5856 * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
5857 * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
5858 * sysdeps/ia64/fpu/s_erf.S: Likewise.
5859 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
5860 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
5861 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
5862 * sysdeps/ia64/fpu/s_erff.S: Likewise.
5863 * sysdeps/ia64/fpu/s_erfl.S: Likewise.
5864 * sysdeps/ia64/fpu/s_fdim.S: Likewise.
5865 * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
5866 * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
5867 * sysdeps/ia64/fpu/s_fma.S: Likewise.
5868 * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
5869 * sysdeps/ia64/fpu/s_fmal.S: Likewise.
5870 * sysdeps/ia64/fpu/s_fmax.S: Likewise.
5871 * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
5872 * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
5873 * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
5874 * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
5875 * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
5876 * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
5877 * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
5878 * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
5879 * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
5880 * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
5881 * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
5882 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
5883 * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
5884 * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
5885 * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
5886 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
5887 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
5888 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
5889 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5890 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5891 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5894 * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
5895 * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
5896 * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
5897 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5898 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5899 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5900 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5901 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5902 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5903 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5904 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5905 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5906 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5907 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5908 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5909 * sysdeps/ia64/fpu/w_expl.c: Likewise.
5910 * sysdeps/ia64/fpu/e_expl.S: Likewise.
5911 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5912 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5913 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5914 * sysdeps/ia64/fpu/w_log2.c: Likewise.
5915 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5916 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5917 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5918 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5919 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5922 * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
5923 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5924 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5925 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5926 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5927 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5928 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5931 * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
5932 * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
5933 * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
5936 * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
5939 * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
5940 alias for use by libm_error.c
5943 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
5944 libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
5945 Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
5946 libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
5947 libm_scalbn{,f,l}, libm_scalblnf.
5948 (sysdep_routines): Remove libm_frexp4{,f,l}.
5949 Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
5950 (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
5951 _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
5952 -DSIZE_LONG_LONG_INT_64.
5954 2005-01-05 Steven Munroe <sjmunroe@us.ibm.com>
5957 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
5958 l_text_end are set for a VDSO with a single PT_LOAD entry.
5960 2005-01-05 Ulrich Drepper <drepper@redhat.com>
5963 * libio/iofopncook.c (_IO_cookie_seekoff): Define. Mark offset as
5964 invalid to disable optimizations in fileops which won't work here.
5965 (_IO_cookie_jumps): Use it.
5966 (_IO_old_cookie_jumps): Likewise.
5967 * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
5968 not the return value.
5969 * stdio-common/Makefile (tests): Add tst-fmemopen2.
5970 * stdio-common/tst-fmemopen2.c: New file.
5972 * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
5974 2005-01-05 Roland McGrath <roland@redhat.com>
5976 * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
5977 * sysdeps/i386/configure.in: ... here. New file.
5979 2005-01-03 Ulrich Drepper <drepper@redhat.com>
5982 * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
5983 initialize __environ again.
5984 * stdlib/Makefile: Add rules to build and run tst-putenv.
5985 * stdlib/tst-putenv.c: New file.
5986 * stdlib/tst-putenvmod.c: New file.
5988 * sysdeps/unix/sysv/linux/init-first.c: Clean file up. Don't
5989 define unnecessary wrappers or aliases of static functions.
5991 2005-01-03 Andreas Jaeger <aj@suse.de>
5993 * csu/Makefile (generated): Add start.os and start.ob.
5995 * elf/Makefile (tests): Change rule for tst-pie1 so that make
5998 2004-12-29 Roland McGrath <roland@redhat.com>
6001 * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
6002 than always up; when nearest is zero, round up to one.
6004 2004-12-28 Ulrich Drepper <drepper@redhat.com>
6006 * po/es.po: Update from translation team.
6009 * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
6011 2004-12-27 Ulrich Drepper <drepper@redhat.com>
6014 * include/signal.h: Define __sigemptyset.
6016 2004-04-27 Paolo Bonzini <bonzini@gnu.org>
6018 * posix/regex_internal.h (struct re_dfastate_t): Make
6019 word_trtable a pointer to the 512-item transition table.
6020 * posix/regexec.c (build_trtable): Fill in either state->trtable
6021 or state->word_trtable. Return a boolean indicating success.
6022 (transit_state): Expect state->trtable to be a 256-item
6023 transition table. Reorganize code to have less tests in
6024 the common case, and to save an indentation level.
6025 * posix/regex_internal.c (free_state): Free word_trtable.
6027 2004-12-21 Jakub Jelinek <jakub@redhat.com>
6030 * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
6031 calling fn is 16 byte aligned.
6032 * sysdeps/i386/tst-stack-align.h: New file.
6035 * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
6036 (ecvt_r): Special case denormals.
6037 * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
6038 * misc/tst-efgcvt.c: Include float.h.
6039 (ecvt_tests): Add 2 new tests.
6041 2004-12-20 Roland McGrath <roland@frob.com>
6043 * version.h (RELEASE, VERSION): development, 2.3.90
6044 * include/features.h (__GLIBC_MINOR__): Now 4.
6047 See ChangeLog.15 for earlier changes.