1 2004-01-01 Andreas Jaeger <aj@suse.de>
3 * resolv/Makefile (generated): New.
5 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
9 2003-12-30 Paul Eggert <eggert@twinsun.com>
11 * time/mktime.c: (my_mktime_localtime_r):
12 Remove. All uses changed to __localtime_r.
13 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
14 get its implementation.
15 Fix compile-command to allow for TIME_R_POSIX.
17 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
18 Remove. All uses changed to __localtime_r and __gmtime_r.
19 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
20 Include "time_r.h" to get their implementations.
22 * time/timegm.c: Allow use in GNU applications outside glibc.
23 [defined HAVE_CONFIG_H]: Include <config.h>.
24 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
25 Define __gmtime_r, and declare __mktime_internal.
26 (timegm): Define via a prototype, since we can safely assume C89 now.
28 * time/mktime.c (check_result): Use less-confusing report format.
29 "long" -> "long int", as per usual GNU style.
31 Don't loop if the iteration overflows time_t.
32 Allow a negative step in the iteration.
34 * time/mktime.c: Assume freestanding C89 or better.
35 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
37 (__P): Remove; not used.
38 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
40 Prototypes use const * where appropriate.
41 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
42 which caused the testing code to dump core on some hosts.
44 2003-12-31 Ulrich Drepper <drepper@redhat.com>
46 * locale/setlocale.c (setlocale): Avoid duplicating locale names
47 if we can reuse old strings.
49 * inet/rcmd.c: Provide better error message in case of unknown
50 host. Remove USE_IN_LIBIO.
52 * nscd/nscd.init: Updated version, more conforming with current
55 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
56 /var/run/nscd directory.
57 (_PATH_NSCDSOCKET): Likewise.
59 * test-skeleton.c (timeout_handler): Fix error message.
61 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
64 2003-12-30 Jakub Jelinek <jakub@redhat.com>
66 * posix/regexec.c (get_subexp): Only set bkref_str after the first
67 loop, use buf + bkref_str_off in the loop instead.
68 * posix/bug-regex11.c (tests): Add 3 new tests.
70 * posix/regexec.c (clean_state_log_if_need): Rename to...
71 (clean_state_log_if_needed): ...this.
72 (transit_state_mb, get_subexp_sub): Adjust callers.
74 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
75 failed. Reported by Steve Grubb.
77 2003-12-29 Ulrich Drepper <drepper@redhat.com>
79 * elf/elf.h: Add a few definitions from Solaris 9.
81 2003-12-29 Andreas Schwab <schwab@suse.de>
83 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
84 $(fno_unit_at_a_time) to avoid reordering assembler output.
86 2003-12-29 Jakub Jelinek <jakub@redhat.com>
88 * posix/regexec.c (re_copy_regs): Revert comment change.
89 Avoid memory leak if realloc fails.
90 (proceed_next_node): Return -2 if re_node_set_insert fails.
91 Return -2 if push_fail_stack fails.
92 (push_fail_stack): Change fs->alloc only after successful realloc.
93 (pop_fail_stack): Formatting.
94 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
95 (check_arrival_add_next_nodes): Merge identical statements
98 * signal/Makefile (tests): Add tst-raise.
99 * signal/tst-raise.c: New test.
101 2003-12-28 Ulrich Drepper <drepper@redhat.com>
103 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
105 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
106 (push_fail_stack): Add missing check for failed memory allocation.
108 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
109 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
112 2003-12-28 Andreas Jaeger <aj@suse.de>
114 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
115 overflow for 0 as argument. Raise Invalid exception for negative args.
116 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
117 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
118 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
119 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
120 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
121 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
122 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
123 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
124 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
125 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
126 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
128 * math/libm-test.inc (yn_test): Expect invalid exception for
133 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
134 execptions for exp(NaN).
136 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
138 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
139 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
140 among the tokens, rather than among the epsilon-transiting nodes.
141 (re_token_t): Add the opt_subexp flag.
142 * posix/regcomp.c (optimize_utf8, calc_first,
143 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
144 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
145 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
146 OP_DUP_ASTERISK and marking optional subexpressions
147 as such using mark_opt_subexp.
148 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
149 and pass it to update_regs.
150 (update_regs): Use the PREV_INDEX_MATCH parameter, together
151 with the opt_subexp flag, in order to discard a final empty
152 match of a repeated subexpression.
153 * posix/BOOST.tests: Adjust test vectors.
154 * posix/PCRE.tests: Likewise.
155 * posix/rxspencer/tests: Likewise.
157 2000-05-22 Jakub Jelinek <jakub@redhat.com>
159 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
160 with omitted middle operand.
162 2003-12-22 Jakub Jelinek <jakub@redhat.com>
164 * posix/regcomp.c: Remove C99-ism.
165 * posix/tst-rxspencer.c: Likewise.
166 Based on a patch by Alex Davis <alex14641@yahoo.com>.
168 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
170 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
171 (re_string_allocate, re_string_construct, re_string_reconstruct,
172 re_string_realloc_buffers, build_wcs_buffer,
173 build_wcs_upper_buffer, build_upper_buffer,
174 re_string_translate_buffer, re_string_destruct,
175 re_string_elem_size_at, re_string_char_size_at,
176 re_string_wchar_at, re_string_context_at,
177 re_node_set_alloc, re_node_set_init_1
178 re_node_set_init_2, re_node_set_init_copy,
179 re_node_set_add_intersect, re_node_set_init_union,
180 re_node_set_merge, re_node_set_insert
181 re_node_set_compare, re_node_set_contains
182 re_node_set_remove_at, re_dfa_add_node,
183 re_acquire_state, re_acquire_state_context,
184 free_state): Add internal_function to declaration.
186 * posix/regexec.c (match_ctx_init, match_ctx_clean,
187 match_ctx_free, match_ctx_free_subtops,
188 match_ctx_add_entry, search_cur_bkref_entry,
189 match_ctx_clear_flag, match_ctx_add_subtop,
190 match_ctx_add_sublast, sift_ctx_init,
191 re_search_internal, re_search_2_stub, re_search_stub,
192 re_copy_regs, acquire_init_state_context,
193 prune_impossible_nodes, check_matching,
194 check_halt_node_context, check_halt_state_context
195 update_regs, proceed_next_node, push_fail_stack,
196 pop_fail_stack, set_regs, free_fail_stack_return,
197 sift_states_iter_mb, sift_states_backward
198 update_cur_sifted_state, add_epsilon_src_nodes,
199 sub_epsilon_src_nodes, check_dst_limits,
200 check_dst_limits_calc_pos, check_subexp_limits,
201 sift_states_bkref, clean_state_log_if_need,
202 merge_state_array, transit_state,
203 check_subexp_matching_top, transit_state_sb,
204 transit_state_mb, transit_state_bkref,
205 get_subexp, get_subexp_sub, find_subexp_node,
206 check_arrival, check_arrival_add_next_nodes,
207 find_collation_sequence_value, check_arrival_expand_ecl,
208 check_arrival_expand_ecl_sub, expand_bkref_cache,
209 build_trtable, check_node_accept_bytes, extend_buffers,
210 group_nodes_into_DFAstates, check_node_accept): Likewise.
212 * posix/regex_internal.c (re_string_construct_common,
213 re_string_skip_chars, create_newstate_common,
214 register_state, create_ci_newstate, create_cd_newstate,
215 calc_state_hash): Likewise.
216 (re_string_peek_byte_case, re_fetch_byte_case): Change
217 declaration from ANSI to K&R.
219 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
221 * posix/regexec.c (build_trtable): Don't allocate the trtable
222 until state->word_trtable is known. Don't hardcode UINT_BITS
223 iterations on each bitset item.
225 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
227 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
228 Initialize REF before passing it to _dl_lookup_symbol.
230 2003-12-21 Roland McGrath <roland@frob.com>
232 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
234 2003-12-21 Jakub Jelinek <jakub@redhat.com>
236 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
238 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
239 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
240 * posix/bug-regex19.c (tests): Add new tests.
242 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
244 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
245 after checking syntax. Optimize.
246 (calc_first): Fix comment.
247 * posix/bug-regex13.c (tests): Add new tests.
249 2003-12-21 Roland McGrath <roland@redhat.com>
251 * manual/arith.texi (Parsing of Integers): Typo fix.
253 2003-12-20 Roland McGrath <roland@frob.com>
255 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
256 add missing dereference of IFREQS before counting loop.
258 2003-12-21 Andreas Schwab <schwab@suse.de>
260 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
263 2003-12-20 Ulrich Drepper <drepper@redhat.com>
265 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
267 2003-12-18 Ulrich Drepper <drepper@redhat.com>
269 * stdio-common/printf_fp.c: Add support to use alternative decimal
271 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
272 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
274 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
276 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
277 reload PIC if we need to call __syscall_error, cleanup asm.
279 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
281 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
282 FE_ALL_EXCEPT before complimenting.
283 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
284 and gcc '+r' constraint.
285 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
286 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
287 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
288 exception bits, OR with envp, pass to fesetenv.
289 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
290 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
291 triggered by M_PI/69.69 converted to single precision.
292 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
293 bits not raised exception bits.
295 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
296 correct build strings.
297 * sysdeps/hppa/dl-fptr.h: New file.
298 * sysdeps/hppa/dl-fptr.c: Removed.
299 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
300 remove const qualifier for map.
301 (_dl_function_address): Removed.
302 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
303 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
304 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
305 DL_DT_FINI_ADDRESS use the previous two macros.
307 2003-12-17 Jakub Jelinek <jakub@redhat.com>
309 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
310 (tr_memalignhook): New function.
311 (mtrace): Register tr_memalignhook.
312 (muntrace): Deregister tr_memalignhook.
313 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
314 call it directly instead of memalign_internal.
316 2003-12-17 Ulrich Drepper <drepper@redhat.com>
318 * misc/mntent_r.c: Change encoding to match recently changed decoder.
319 Patch by Alexander Achenbach <xela@slit.de>.
321 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
323 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
326 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
328 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
329 conditional to include typedef elf_vrreg_t.
331 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
333 * posix/regexec.c (re_search_internal): Limit search to the
334 beginning of the buffer if the initial states are empty for
335 contexts that do not include CONTEXT_BEGBUF or, if
336 !preg->newline_anchor, that do not include any one of
337 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
339 2003-12-17 Andreas Jaeger <aj@suse.de>
341 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
342 Kevin Pedretti <pedretti@ieee.org>.
344 2003-12-17 Ulrich Drepper <drepper@redhat.com>
346 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
347 removes the visibility attributes which might be defined earlier
348 for some gcc versions. Instead spell out what strong_alias does
351 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
353 * posix/regex_internal.h: Make sure the regex code compile
354 with non-GCC compilers by hiding attributes.
356 2003-12-16 Jakub Jelinek <jakub@redhat.com>
357 Paolo Bonzini <bonzini@gnu.org>
359 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
360 dests_ch items that are empty.
362 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
364 * posix/regexec.c (check_arrival): Remove duplicate test.
366 2003-12-15 Ulrich Drepper <drepper@redhat.com>
368 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
369 * posix/regex_internal.c: Likewise.
370 * posix/regexec.c: Likewise.
371 Patch by Paolo Bonzini.
373 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
375 * posix/regex_internal.c (re_acquire_state_context):
376 Compare the node sets after all the other comparisons.
378 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
380 * posix/regexec.c (find_subexp_node, check_arrival,
381 check_arrival_add_next_nodes, check_arrival_expand_ecl,
382 check_arrival_expand_ecl_sub, expand_bkref_cache):
383 Rename the FL_OPEN parameter to TYPE, which is either
384 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
386 2003-12-12 Andreas Jaeger <aj@suse.de>
388 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
391 2003-12-11 Ulrich Drepper <drepper@redhat.com>
393 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
394 There might always be processes which have no vDSO.
395 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
396 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
398 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
400 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
403 2003-12-01 Jes Sorensen <jes@wildopensource.com>
405 * rt/tst-clock.c (do_test): Print message when skipping
406 CLOCK_PROCESS_CPUTIME_ID test.
408 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
409 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
411 2003-12-02 David Mosberger <davidm@hpl.hp.com>
413 * sysdeps/ia64/elf/initfini.c: Add unwind info.
415 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
417 (elf_machine_dynamic): Mark with attributes "unused" and "const".
418 (elf_machine_runtime_setup): Likewise.
420 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
421 attribute "always_inline".
422 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
425 * configure.in: Check whether compiler has libunwind support.
426 * config.make.in (have-cc-with-libunwind): New variable.
427 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
428 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
431 2003-11-12 David Mosberger <davidm@hpl.hp.com>
433 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
434 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
435 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
438 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
439 instead of DO_CALL().
441 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
444 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
445 to take advantage of DO_CALL() macro.
446 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
447 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
449 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
450 program header. On ia64, the check failed previously because
451 there are two program headers.
453 2003-12-10 Andreas Jaeger <aj@suse.de>
454 Ruediger Oertel <ro@suse.de>
456 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
458 2003-12-07 Ulrich Drepper <drepper@redhat.com>
460 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
461 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
462 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
463 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
464 * sysdeps/generic/s_nexttowardf.c: Likewise.
465 * math/Makefile (tests): Add bug-nexttoward.
466 * math/bug-nexttoward.c: New file.
468 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
469 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
470 * math/bug-nextafter.c (main): Add tests for overflow and negative
473 2003-12-06 Ulrich Drepper <drepper@redhat.com>
475 * math/Makefile (tests): Add bug-nextafter.
476 * math/bug-nextafter.c: New file.
477 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
478 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
479 * math/libm-test.inc (nextafter_test): Add test for overflow after
482 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
484 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
486 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
488 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
490 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
492 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
493 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
494 (END): Add cfi_endproc directive.
495 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
496 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
497 cfi_startproc and cfi_endproc directive.
498 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
499 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
500 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
501 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
502 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
504 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
506 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
507 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
508 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
509 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
510 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
511 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
512 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
513 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
514 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
516 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
518 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
519 directives. Move thread_start out of ENTRY/PSEUDO_END block to
520 make backchain terminate.
521 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
523 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
524 (unwind_backtrace, unwind_getip): New variables.
525 (init, __backchain_backtrace, backtrace_helper): New functions.
526 (__backtrace): Use unwind info for backtrace instead of backchain
527 walking if the unwind functions can be found.
528 * sysdeps/s390/s390-64/backtrace.c: Likewise.
530 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
532 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
533 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
534 (elf_prstatus32, elf_prpsinfo32): New structures.
535 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
537 * scripts/data/c++-types-s390-linux-gnu.data: New file.
538 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
540 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
542 * stdlib/strfmon.c: Correct formatting of international currency
543 values. The international currency formatting should prefer the
544 int_* values if they are set for a locale, and use the domestic
545 values if the int_* values are unset.
547 2003-12-03 Jakub Jelinek <jakub@redhat.com>
549 * posix/Makefile (distribute): Add BOOST.tests.
550 (tests): Add tst-boost, depend on tst-boost-mem.
551 (generated): Add tst-boost-mem and tst-boost.mtrace.
552 (tst-boost-ARGS, tst-boost-ENV): Set.
553 ($(objpfx)tst-boost-mem): New.
554 * posix/tst-boost.c: New test.
555 * posix/BOOST.tests: New file.
557 * posix/Makefile (distribute): Add PCRE.tests.
558 (tests): Add tst-pcre, depend on tst-pcre-mem.
559 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
560 (tst-pcre-ARGS, tst-pcre-ENV): Set.
561 ($(objpfx)tst-pcre-mem): New.
562 * posix/tst-pcre.c: New test.
563 * posix/PCRE.tests: New file.
565 2003-12-02 Jakub Jelinek <jakub@redhat.com>
567 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
569 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
570 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
572 2003-12-03 Ulrich Drepper <drepper@redhat.com>
574 * locale/programs/locarchive.c (enlarge_archive): Print size info
575 only in verbose mode.
577 * locale/iso-3166.def: Three letter code of Romania changed.
579 2003-12-02 Roland McGrath <roland@redhat.com>
581 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
582 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
584 2003-11-30 Andreas Jaeger <aj@suse.de>
586 * config.make.in (fno-unit-at-a-time): Define.
588 * configure.in: Add test for -fno-unit-at-a-time.
591 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
592 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
596 * version.h (VERSION): Bump to 2.3.3.
598 2003-11-30 Andreas Jaeger <aj@suse.de>
600 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
601 decrease stack usage.
603 2003-11-30 Andreas Schwab <schwab@suse.de>
605 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
606 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
608 2003-11-29 Ulrich Drepper <drepper@redhat.com>
610 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
611 recognize \134 as well.
613 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
615 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
617 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
619 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
621 (struct ia64_fpreg): New definition.
623 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
625 (ELF_NGREG): New #define.
626 (ELF_NFPREG): Likewise.
627 (elf_greg_t): New type.
628 (elf_gregset_t): Likewise.
629 (elf_fpreg_t): Likewise.
630 (elf_fpregset_t): Likewise.
632 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
634 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
636 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
637 (pt_all_user_regs): New type.
639 2003-10-10 Simon Josefsson <jas@extundo.com>
641 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
642 strchrnul.h, strndup.h (from gnulib).
643 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
645 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
646 Autoconf manual version.
647 * argp/argp.h: Map __restrict to restrict or empty string when
648 necessary, copied verbatim from posix/regex.h.
650 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
652 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
653 addition to c++-types-$(base-machine)-$(config-os).data.
654 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
655 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
657 2003-11-28 Ulrich Drepper <drepper@redhat.com>
659 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
661 * manual/sysinfo.texi (mtab): Adjust description accordingly.
662 Reported by Andries.Brouwer@cwi.nl.
664 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
665 to compensate other setup.
667 2003-11-27 Andreas Jaeger <aj@suse.de>
669 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
671 * math/libm-test.inc (atan2_test): Add test that run infinitly.
672 Reported by "Willus" <etc231etc231@willus.com>.
674 2003-11-27 Michael Matz <matz@suse.de>
676 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
679 2003-11-28 Jakub Jelinek <jakub@redhat.com>
681 * posix/regexec.c (acquire_init_state_context): Make inline.
682 Add always_inline attribute.
683 (check_matching): Add BE macro. Move if (cur_state->has_backref)
684 into if (dfa->nbackref).
685 (sift_states_backward): Fix comment.
686 (transit_state): Add BE macro. Move if (next_state->has_backref)
687 into if (dfa->nbackref && next_state). Don't check for next_state
689 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
691 (parse_expression): Only call init_word_char if word context will be
694 * posix/bug-regex11.c (tests): Add new tests.
696 * posix/tst-regex.c: Include getopt.h.
697 (timing): New variable.
698 (main): Set timing to 1 if --timing argument is present.
700 (run_test, run_test_backwards): Handle timing.
702 2003-11-27 Jakub Jelinek <jakub@redhat.com>
704 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
705 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
706 offsets_needed fields. Change icase, is_utf8 and map_notascii
707 type from int bitfield to unsigned char.
708 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
709 (build_wcs_upper_buffer): Change prototype to return int.
710 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
711 defines, add prototypes.
712 * posix/regex_internal.c (re_string_allocate): Don't initialize
713 stop here. Don't initialize mbs_case. Set valid_raw_len.
714 Use mbs_allocated instead of MBS_* macros.
715 (re_string_construct): Don't initialize stop and valid_len here.
716 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
717 macros. Reallocate buffers if build_wcs_upper_buffer converted
718 too few bytes. Set valid_len to bufs_len only for single byte
719 no translation and set in that case valid_raw_len as well.
720 (re_string_realloc_buffers): Reallocate offsets if not NULL.
721 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
723 (re_string_construct_common): Initialize raw_len, mbs_allocated,
725 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
726 after it. Set valid_raw_len. Don't set mbs_case.
727 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
728 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
729 before mbrtowc instead of after it. If upper case character
730 uses different number of bytes than lower case, goto to the
731 slow path. Don't call towupper unnecessarily twice. Set
732 valid_raw_len as well. Handle in the slow path the case if
733 lower and upper case use different number of characters.
735 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
736 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
738 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
740 (re_string_reconstruct): Use raw_len/raw_stop to initialize
741 len/stop. Clear valid_raw_len and offsets_needed when clearing
742 valid_len. Use mbs_allocated instead of MBS_* macros.
743 Check original offset against valid_raw_len instead of valid_len.
744 Remove mbs_case handling. Adjust valid_raw_len together with
745 valid_len. If is_utf8 and looking for tip context, apply
746 pstr->trans first. If buffers start with partial multi-byte
747 character, initialize mbs array as well if mbs_allocated.
748 Check return value of build_wcs_upper_buffer.
749 (re_string_peek_byte_case): New function.
750 (re_string_fetch_byte_case): New function.
751 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
752 Don't free mbs_case. Free offsets.
753 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
755 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
756 as well. Use valid_raw_len instead of valid_len when looking
757 through fastmap. Adjust registers through input.offsets.
758 (extend_buffers): Allow build_wcs_upper_buffer to fail.
759 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
762 2003-11-26 Jakub Jelinek <jakub@redhat.com>
764 * posix/regexec.c (check_subexp_limits): Only check close
765 subexpression limitation if one is found. Formatting.
766 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
768 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
771 2003-11-26 Ulrich Drepper <drepper@redhat.com>
773 * sysdeps/unix/sysv/linux/kernel-features.h
774 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
775 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
776 if __ASSUME_PROT_GROWSUPDOWN is defined.
778 2003-11-26 Andreas Jaeger <aj@suse.de>
780 * sysdeps/unix/sysv/linux/dl-execstack.c
781 (_dl_make_stack_executable): Set dl_stack_flags always for
784 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
786 * locale/program/ld-monetary.c: Only check the first three
787 characters in int_curr_symbol against ISO-4217, to make the
788 separator character used by a locale independent of the content
790 * locale/iso-4217.def: Remove the space character from all
791 currency values to get the new test code in ld-monetary.c working.
793 2003-11-21 David Mosberger <davidm@hpl.hp.com>
795 * elf/soinit.c (_fini): Put _fini() in .init_array section if
796 HAVE_INITFINI_ARRAY is defined.
798 2003-11-25 Ulrich Drepper <drepper@redhat.com>
800 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
801 Define it appropriately after last change. Use it where __sqrtl
804 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
806 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
807 sqrt for gcc 3.3 and above.
809 2003-11-25 Ulrich Drepper <drepper@redhat.com>
811 * posix/runptests.c (main): Make errors fatal.
812 * posix/PTESTS: One test in GA135 and GA136 check functionality
813 which seems not guaranteed.
815 2003-11-25 Jakub Jelinek <jakub@redhat.com>
817 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
818 returned REG_NOMATCH, set match_last to -1. Don't initialize
819 pmatch[0] needlessly. Fix comment.
820 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
821 (set_regs): Fix comment.
822 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
823 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
824 (build_charclass_op): Set has_plural_match if adding both
825 SIMPLE_BRACKET and COMPLEX_BRACKET.
826 * posix/bug-regex11.c (tests): Fix register values for one commented
827 out test. Add new tests.
829 * posix/regex_internal.c (re_string_allocate): Make sure init_len
830 is at least dfa->mb_cur_max.
831 (re_string_reconstruct): If is_utf8, don't fall back into
832 re_string_skip_chars just because idx points into a middle of
833 valid UTF-8 character. Instead, set the wcs bytes which correspond
834 to the partial character bytes to WEOF.
835 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
836 instead of dfa->nodes_len + 1 state_log entries initially.
837 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
840 2003-11-24 Jakub Jelinek <jakub@redhat.com>
842 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
844 (re_dfa_t): Add sb_char field.
845 (bitset_mask): New function.
846 * posix/regcomp.c (free_dfa_content): Free sb_char.
847 (init_dfa): Don't initialize word_char unnecessarily.
849 (duplicate_node): Don't duplicate !word_char CHARACTERs with
850 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
851 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
852 (duplicate_node_closure): Handle clone_dest == -1 from
854 (peek_token): Initialize word_char bit.
855 (parse_expression, parse_dup_op): Add comments.
856 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
857 starting bytes here at the beginning. Mask off the bits right
858 before creating SIMPLE_BRACKET.
859 (build_charclass_op): Likewise.
860 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
861 set accept bits for single-byte characters.
862 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
863 being single byte encoded and the rest multi-byte.
864 * posix/bug-regex19.c (tests): Add new tests.
865 (do_mb_tests): Initialize t to *test.
866 (main): Fail even on do_mb_tests errors.
868 2003-11-23 Ulrich Drepper <drepper@redhat.com>
870 * posix/regexec.c: Correct several memory allocation problems.
872 * posix/regex_internal.c: Likewise.
873 * posix/regcomp.c: Likewise.
875 * posix/regexec.c: Add const in a number of places.
876 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
877 debugging. Its value isn't important.
879 2003-11-22 Ulrich Drepper <drepper@redhat.com>
881 * posix/PTESTS: Fix first test of GA143.
883 2003-11-21 Ulrich Drepper <drepper@redhat.com>
885 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
888 * locale/programs/charmap.c (charmap_read): If encoding is found
889 not ASCII compatible, set enc_not_ascii_compatible.
890 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
891 * locale/programs/ld-ctype.c (ctype_startup): If
892 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
894 2003-11-22 Jakub Jelinek <jakub@redhat.com>
896 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
897 if !__libc_enable_secure.
899 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
901 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
902 (dl_main): Set GL(dl_use_load_bias) default.
903 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
904 Add EXTRA_LD_ENVVARS_13.
905 * elf/dl-support.c (_dl_use_load_bias): New variable.
906 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
907 with GL(dl_use_load_bias).
908 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
910 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
911 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
912 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
913 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
914 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
916 2003-11-21 Ulrich Drepper <drepper@redhat.com>
918 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
920 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
921 pointer. Adjust callers.
923 * posix/regcomp.c (fetch_token): Change interface to match
924 peek_token. This avoids some copying and reduces code size.
926 2003-11-21 Jakub Jelinek <jakub@redhat.com>
928 * posix/bug-regex19.c (tests): Add more tests.
930 * posix/bug-regex11.c: And one more commented out test.
932 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
933 tests multiple times unnecessarily.
935 * posix/bug-regex19.c (BRE, ERE): Define.
936 (tests): Add many new tests, remove UTF-8 ones.
937 (do_one_test, do_mb_tests): New functions.
938 (main): Rewritten using do_one_test and do_mb_tests.
940 2003-11-20 Ulrich Drepper <drepper@redhat.com>
942 * posix/PTESTS: Fix first test in GA143.
944 2003-11-20 Jakub Jelinek <jakub@redhat.com>
946 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
948 * posix/regex_internal.c (create_newstate_common, free_state):
949 Don't free trtable_search.
950 * posix/regexec.c (check_matching): Remove fl_search argument.
951 (transit_state_sb): Likewise. #ifdef out as unused.
952 (build_trtable): Remove fl_search argument. Set state->word_trtable
953 and state->trtable. Build separate word and non-word tables if
954 multi-byte and they differ for some character.
955 (transit_state): Remove fl_search argument. Don't update
956 state->trtable here. Handle state->word_trtable.
957 #ifdef out unused call to transit_state_sb.
958 (re_search_internal): Update check_matching caller.
959 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
960 bitmask for multi-byte locales.
961 * posix/bug-regex19.c (tests): Enable some commented out tests, add
963 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
964 multi-byte. Don't run identical multi-byte tests multiple times
966 (main): Check setlocale return value.
967 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
968 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
969 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
970 here, without --utf8 argument but with MALLOC_TRACE.
972 2003-11-19 Jakub Jelinek <jakub@redhat.com>
974 * posix/regexec.c (extend_buffers): Don't allocate
975 twice as big state_log as needed. Don't modify pstr->valid_len
976 for mb_cur_max == 1 !icase !trans.
978 * posix/regcomp.c (free_bin_tree): Removed.
979 (create_tree): Add dfa argument. Don't call re_malloc for
980 each tree, instead allocate from str_tree_storage.
981 (re_dfa_add_tree_node): New function.
982 (free_dfa_content): Handle freeing if dfa->nodes == NULL
983 or dfa->state_table == NULL.
984 (re_compile_internal): Call free_dfa_content if init_dfa
985 fails. Call free_workarea_compile, re_string_destruct
986 and free_dfa_content for most of the other failure paths.
987 (init_dfa): Initialize str_tree_storage_idx.
988 Don't clear any fields on allocation failure.
989 (free_workarea_compile): Free str_tree_storage chunks
990 instead of free_bin_tree (dfa->str_tree).
991 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
992 followed by create_tree. Add dfa argument to remaining
993 create_tree calls. Remove new_idx variable. Remove calls
995 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
996 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
997 (duplicate_tree): Remove calls to free_bin_tree, add dfa
998 argument to create_tree.
999 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1000 (bin_tree_storage_t): New type.
1001 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1003 * posix/Makefile (tests): Add bug-regex21.
1004 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1005 tst-rxspencer-mem and tst-rxspencer.mtrace.
1006 (tests): Depend on $(objpfx)bug-regex21-mem
1007 and $(objpfx)tst-rxspencer-mem.
1008 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1009 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1010 * posix/tst-rxspencer.c (main): Add call to mtrace.
1011 Free line at the end.
1012 * posix/bug-regex21.c: New test.
1014 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1016 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1018 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1019 fails, just use the byte, do no fancy conversions.
1021 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1023 (re_string_is_single_byte_char): Likewise.
1025 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1027 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1028 reload buf and bkref_str. Little optimization by avoiding memcmp.
1030 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1032 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1033 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1034 that all existing GAS versions have a problem with .align inside
1036 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1037 * sysdeps/ia64/memcpy.S: Likewise.
1038 * sysdeps/ia64/memset.S: Likewise.
1039 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1040 out of .text into .rodata, where it belongs.
1042 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1043 save/restore input-arguments, because they're necessarily
1044 preserved by the kernel to support syscall-restart.
1046 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1048 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1049 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1051 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1052 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1053 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1054 Handle OP_UTF8_PERIOD.
1055 (re_string_reconstruct): Set valid_len for single byte char searching
1056 with no translation and case sensitivity.
1057 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1059 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1061 (optimize_utf8): Remove BACK_SLASH case.
1062 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1064 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1065 any bits set and COMPLEX_BRACKET is used.
1066 * posix/regexec.c (transit_state_mb): Fix comment typo.
1067 (group_nodes_into_DFAstates, check_node_accept): Handle
1069 (check_node_accept_bytes): Likewise. Reorder slightly so that
1070 re_string_char_size_at and re_string_elem_size_at are called
1072 * posix/bug-regex20.c (BRE, ERE): Define.
1073 (tests): Use them to make lines shorter. Expect . to be
1074 optimized. Add lots of new tests.
1075 (main): Run (ATM just case sensitive) test with backwards searching
1078 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1080 * io/bug-ftw4.c: Include string.h.
1081 * posix/fnmatch.c (mbsinit): Remove define.
1083 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1085 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1087 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1088 followed by dup operator is expected to be optimized.
1090 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1091 variables to the block where they are only used, initialize
1092 nrules only immediately before using it.
1094 2003-11-15 Andreas Jaeger <aj@suse.de>
1096 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1097 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1098 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1099 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1100 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1101 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1103 * math/libm-test.inc (floor_test): Test also ±0.25.
1104 (ceil_test): Test -0.25.
1106 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1108 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1109 selection according to RFC 3484.
1111 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1113 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1114 Replace last two parameters of re_string_allocate and
1115 re_string_construct with pointer to DFA.
1116 (re_dfa_t): Add map_notascii field.
1117 * posix/regcomp.c (re_compile_internal): Add call of
1118 re_string_construct.
1119 (init_dfa): Initialize map_notascii.
1120 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1121 and re_string_construct.
1122 Pass DFA to re_string_construct. Adjust definition. Initialize
1124 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1125 method to map ASCII values to upper case.
1126 * posix/regex.c: Include localeinfo.h.
1127 * posix/regexec.c: Adjust call of re_string_allocate.
1129 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
1130 * locale/localeinfo.h (LIMAGIC): Change value.
1131 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
1132 * locale/C-ctype.h: Likewise.
1133 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
1134 ASCII to non-ASCII value. Write out that value.
1136 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
1137 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
1139 2003-11-14 Jakub Jelinek <jakub@redhat.com>
1141 * posix/tst-rxspencer.c (check_match): @ without any following
1142 characters must match only end of string.
1143 (main): Fix filename in error message.
1145 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1147 * sysdeps/ia64/dl-machine.h: Force inlining of
1148 elf_machine_runtime_setup().
1150 2003-11-13 Andreas Jaeger <aj@suse.de>
1152 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
1153 (CFLAGS-test-double.c): Likewise.
1154 (CFLAGS-test-ldouble.c): Likewise.
1155 (CPPFLAGS-test-ifloat.c): Likewise.
1156 (CPPFLAGS-test-idouble.c): Likewise.
1157 (CPPFLAGS-test-ildoubl.c): Likewise.
1159 * math/libm-test.inc (ceil_test): Test ceil (0.25).
1161 2003-11-04 Ulrich Drepper <drepper@redhat.com>
1163 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
1164 sends the netlink data.
1165 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1167 2003-11-13 Jakub Jelinek <jakub@redhat.com>
1169 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
1170 with no bits set for >= 0x80 chars is seen.
1171 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
1173 (main): Run all tests with RE_ICASE as well.
1175 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1177 * posix/Makefile: Add rules to build and run tst-rxspencer.
1178 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
1179 * posix/tst-rxspencer.c: New file.
1180 * posix/rxspencer/tests: New file.
1181 * posix/rxspencer/COPYRIGHT: New file.
1182 Patch mostly by Jakub Jelinek.
1184 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
1185 this is no option given the first token.
1187 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
1188 hyphen in range expression. Return EBRACK in this case.
1190 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
1191 we expect them or it's the last element in the bracket expression.
1192 Indicated by new parameter. Adjust all callers.
1194 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
1195 Prettier error messages.
1197 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
1198 number in {,} expression is larger.
1200 2003-11-13 Andreas Jaeger <aj@suse.de>
1202 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1203 Define appropriately for x86_64.
1204 (__ASSUME_UTIMES): Likewise.
1205 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
1207 * sysdeps/x86_64/fpu/s_ceill.S: New file.
1209 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1211 * posix/regcomp.c (parse_expression): In BRE consecutive
1212 duplications are not allowed.
1214 2003-11-12 Ulrich Drepper <drepper@redhat.com>
1216 * posix/regcomp.c (parse_bracket_exp): If end of expression is
1217 seen, return EBRACK error, not BADPAT.
1219 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
1220 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
1221 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
1222 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
1224 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
1227 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
1228 * posix/runptests.c (main): Handle comments.
1229 * posix/PTESTS2C.sed: Handle comments.
1231 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1233 * posix/regcomp.c (optimize_utf8): New function.
1234 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
1236 (re_compile_internal): Call optimize_utf8 if not case insensitive
1237 and in UTF-8 locale.
1238 * posix/regex_internal.h: Ifdef out some prototypes if
1239 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
1240 * posix/Makefile (tests): Add bug-regex20.
1241 (bug-regex20-ENV): Add LOCPATH.
1242 * posix/bug-regex20.c: New test.
1244 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1246 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
1248 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1250 * posix/tst-regex.c (umemlen): New variable.
1251 (test_expr): Add expectedicase argument. Test case insensitive
1252 searches as well as backwards searches (case sensitive and
1254 (run_test): Add icase argument. Use it to compute regcomp flags.
1255 (run_test_backwards): New function.
1256 (main): Cast read to size_t to avoid warning. Set umemlen.
1257 Add expectedicase arguments to test_expr.
1258 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
1259 find previous character by walking back instead of converting
1260 all chars from beginning.
1262 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1264 * posix/regex_internal.h (struct re_string_t): Add is_utf8
1265 and mb_cur_max fields.
1266 (struct re_dfa_t): Likewise. Reorder fields to make structure
1267 smaller on 64-bit arches.
1268 (re_string_allocate, re_string_construct): Add mb_cur_max and
1270 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
1271 instead of MB_CUR_MAX.
1272 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
1273 instead of MB_CUR_MAX.
1274 (re_compile_internal): Pass new arguments to re_string_construct.
1275 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
1276 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
1278 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
1279 dfa->mb_cur_max instead of MB_CUR_MAX.
1280 * posix/regex_internal.c (re_string_construct_common): Add
1281 mb_cur_max and is_utf8 arguments. Initialize fields with them.
1282 (re_string_allocate, re_string_construct): Add mb_cur_max and
1283 is_utf8 arguments, pass them to re_string_construct_common.
1284 Use mb_cur_max instead of MB_CUR_MAX.
1285 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
1287 (re_string_reconstruct): Likewise.
1288 (re_string_context_at): Use input->mb_cur_max instead of
1290 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
1291 instead of MB_CUR_MAX.
1292 * posix/regexec.c (re_search_internal): Likewise.
1293 Pass new arguments to re_string_allocate.
1294 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
1296 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
1298 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1300 * posix/Makefile (tests): Add bug-regex19.
1301 (bug-regex19-ENV): Add LOCPATH.
1302 * posix/bug-regex19.c: New test.
1304 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1306 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
1307 with MB_CUR_MAX > 1 locales in the fastmap.
1309 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1311 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
1312 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
1314 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
1315 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
1316 * posix/bug-regex17.c: New file
1317 * posix/bug-regex18.c: New file.
1319 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
1321 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
1322 Define __NR_pread/__NR_pwrite if not done in kernel headers
1324 2003-11-11 Roland McGrath <roland@redhat.com>
1326 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
1328 * manual/Makefile (info): Don't depend on dir-add.info.
1329 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
1330 (dir-add.info): Target removed, replaced with ...
1331 (dir-add.texi): New target.
1332 (distribute): Add it.
1333 (install): Remove variant with --section arguments.
1334 Let the @dircategory directives do their work.
1335 (mostlyclean): Don't remove dir-add.info here.
1336 (realclean): Remove dir-add.texi here.
1337 * manual/libc.texinfo: @include dir-add.texi
1338 * configure.in: Remove check for old Debian install-info.
1339 * configure: Regenerated.
1340 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
1342 2003-11-08 Andreas Schwab <schwab@suse.de>
1344 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
1346 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
1348 * io/ftwtest-sh: Fix nested sed commands.
1350 2003-11-10 Jakub Jelinek <jakub@redhat.com>
1352 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
1353 valid_len wide chars.
1355 2003-11-09 Roland McGrath <roland@redhat.com>
1357 * manual/examples/dir2.c (one): Add const to argument type.
1358 Reported by J de Haan <j.de.haan@home.nl>.
1360 2003-11-07 Ulrich Drepper <drepper@redhat.com>
1362 * po/pl.po: Update from translation team.
1364 2003-11-07 Jakub Jelinek <jakub@redhat.com>
1366 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1367 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
1368 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
1369 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
1371 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1372 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
1373 and nftw64@@GLIBC_2.3.3.
1375 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
1376 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
1377 * io/ftw.c (ftw_dir): Add old_dir argument.
1378 Clear result if it was FTW_SKIP_SIBLINGS after processing all
1379 dir entries. Change cwd back if old_dir != NULL.
1380 (process_entry): Adjust caller. Don't change cwd back here.
1381 Change FTW_SKIP_SUBTREE result to 0.
1382 (ftw_startup): Adjust ftw_dir caller.
1383 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
1384 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
1385 (options, main): Add --skip-subtree and --skip-siblings options.
1386 (cb): Use return FTW_CONTINUE instead of return 0.
1387 Handle --skip-subtree and --skip-siblings.
1388 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
1389 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
1391 2003-11-04 Jakub Jelinek <jakub@redhat.com>
1393 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
1395 * io/Makefile (tests): Add bug-ftw4.
1396 * io/bug-ftw4.c: New test.
1398 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
1400 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
1401 (struct _IO_FILE_complete_plus): New type.
1402 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
1403 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
1404 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
1405 Call _IO_old_init instead of _IO_init.
1407 2003-11-03 Ulrich Drepper <drepper@redhat.com>
1409 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
1411 * locale/iso-639.def: Add Blin.
1412 Patch by Daniel Yacob <locales@geez.org>.
1414 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
1416 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
1417 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
1419 2003-11-01 Randolph Chung <tausq@debian.org>
1421 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
1422 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
1423 Add missing parentheses.
1425 2003-11-01 Roland McGrath <roland@redhat.com>
1427 * libio/bug-ftell.c (do_test): Add a cast.
1429 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
1431 * Makerules (shlib.lds): Make sure that ld doesn't try to link
1432 anything while generating the linker script.
1434 2003-10-31 Roland McGrath <roland@redhat.com>
1436 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
1439 2003-10-29 Ulrich Drepper <drepper@redhat.com>
1441 * po/be.po: Update from translation team.
1443 2003-10-27 Ulrich Drepper <drepper@redhat.com>
1445 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
1448 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
1451 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
1452 rest of line. We use getline which means this cannot happen.
1454 2003-10-26 Ulrich Drepper <drepper@redhat.com>
1456 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
1457 Avoid infinite loops in case the mounts file is hosed.
1458 * io/Makefile: Add rules to build and run tst-statvfs.
1459 * io/tst-statvfs.c: New file.
1461 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
1462 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
1463 executables unless __RTLD_OPENEXEC flag is present.
1464 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
1465 _dl_map_object when loading the executable.
1467 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
1469 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
1471 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
1472 reverse lookup format for IPv6 addresses is using bitstring and
1474 * resolv/ns_name.c: Implement encoding and decoding bitstring in
1477 2003-10-23 Jakub Jelinek <jakub@redhat.com>
1479 * locale/programs/locale.c (show_info): Fix printing word values on
1480 64-bit big-endian architectures.
1482 2003-10-19 Bruno Haible <bruno@clisp.org>
1484 * intl/hash-string.c (hash_string): Zero-extend each char from the
1485 string; the old code did a sign-extend on some platforms.
1487 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
1489 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
1490 append options to these.
1491 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
1493 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1495 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
1497 2003-10-15 Roland McGrath <roland@redhat.com>
1499 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
1500 Fake an entry for the main executable and then call __dl_iterate_phdr.
1501 * elf/Makefile (routines): Remove dl-iteratephdr-static.
1502 (elide-routines.os): Likewise.
1503 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
1504 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
1505 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
1507 2003-10-15 Jakub Jelinek <jakub@redhat.com>
1509 * elf/rtld.c (print_statistics): Print also number of relative
1512 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
1514 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
1515 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
1516 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
1517 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
1518 and undef JUMPTARGET before use.
1519 [PIC]: Save pic register around syscall.
1520 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
1521 Cleanup asm statment.
1523 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1525 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
1526 after trapa instruction.
1528 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1530 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
1532 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
1534 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
1536 2003-10-09 Roland McGrath <roland@redhat.com>
1538 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
1541 2003-10-08 Jakub Jelinek <jakub@redhat.com>
1543 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
1544 two identical copies of strings.
1546 2003-10-06 Ulrich Drepper <drepper@redhat.com>
1548 * posix/bug-regex11.c: Add some more tests which fail so far.
1549 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
1551 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
1553 * posix/bug-regex11.c: Add more backreference-related test cases.
1554 (main): Show the failing regex in the error messages.
1555 * posix/regexec.c (check_dst_limits_calc_pos):
1556 Simplify some nested conditionals. Replace if's with a switch
1558 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
1559 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
1560 does not change in the recursive invocation, fixing an infinite loop
1561 in the ()\1*\1* regex.
1562 (sift_states_backward): Fix function comment.
1563 * posix/regcomp.c (calc_epsdest): Add an assertion.
1565 2003-10-06 Ulrich Drepper <drepper@redhat.com>
1567 * manual/examples/testopt.c: Fix warnings. Better error message
1568 for missing -c argument.
1569 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
1571 * timezone/asia: Update from tzdata2003d.
1572 * timezone/australasia: Likewise.
1573 * timezone/backward: Likewise.
1574 * timezone/europe: Likewise.
1575 * timezone/iso3166.tab: Likewise.
1576 * timezone/northamerica: Likewise.
1577 * timezone/southamerica: Likewise.
1578 * timezone/zone.tab: Likewise.
1580 2003-10-05 Jakub Jelinek <jakub@redhat.com>
1582 * sysdeps/ia64/backtrace.c: New file.
1583 * sysdeps/x86_64/backtrace.c: New file.
1584 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
1585 (_Unwind_Backtrace): New prototype.
1587 2003-10-03 Ulrich Drepper <drepper@redhat.com>
1589 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
1590 * sysdeps/i386/elf/setjmp.S: Likewise.
1592 2003-10-02 Roland McGrath <roland@redhat.com>
1594 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
1595 * argp/argp-namefrob.h
1596 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
1597 (__argp_short_program_name): Don't declare fn, define it as a macro.
1599 2003-08-22 Simon Josefsson <jas@extundo.com>
1601 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
1603 * argp/argp-help.c: Don't include malloc.h, some platforms
1604 complain and it doesn't appear to be used.
1605 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
1607 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
1609 (hol_entry_long_iterate): Change __attribute to __attribute__.
1610 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
1611 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
1612 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
1613 modified after comments from Ulrich Drepper.
1614 (__argp_short_program_name): Ditto.
1615 (__argp_state_help, __argp_error, __argp_failure): Use it.
1616 (__argp_failure): Use strerror when necessary.
1618 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
1619 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
1620 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
1621 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
1622 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
1623 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
1624 non-unlocked functions.
1625 [!_LIBC]: Add prototypes for __argp_basename and
1626 __argp_short_program_name.
1628 * argp/argp-parse.c (argp_default_parser): Only use
1629 program_invocation{_short,}_name if declared.
1630 (parser_init): Use __argp_short_program_name.
1632 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
1633 '#include features.h'.
1635 * argp/argp.h [!__attribute__]: Define to nothing.
1637 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
1639 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
1640 for the first token in a subexpression as well.
1642 2003-10-02 Jakub Jelinek <jakub@redhat.com>
1644 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
1646 (parse_reg_exp): Likewise.
1647 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
1649 * posix/bug-regex11.c (tests): Add new tests.
1650 * posix/bug-regex12.c (tests): Add new test.
1652 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
1654 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
1655 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
1657 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
1659 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
1660 the old thread-m.h header too.
1662 2003-10-02 Ulrich Drepper <drepper@redhat.com>
1664 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
1665 back to 131027 since this is what the kernel enforces.
1667 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
1668 define it with libc_freeres_ptr.
1670 2003-10-01 Roland McGrath <roland@redhat.com>
1672 * elf/rtld.c (dl_main): Add cast in last change.
1674 2003-09-10 Chris Demetriou <cgd@broadcom.com>
1676 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
1677 "#if 0" surrounding most of contents.
1678 (SYSCALL_ERROR_LABEL): Define.
1679 (__SYSCALL_CLOBBERS): Add $10.
1680 (internal_syscall7): Remove.
1681 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1683 2003-09-30 Ulrich Drepper <drepper@redhat.com>
1685 * elf/rtld.c (dl_main): Also set l_map_start.
1687 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
1689 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
1690 to work around kernel problem.
1692 2003-09-27 Wolfram Gloger <wg@malloc.de>
1694 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
1695 "thread-m.h", so that default parameters can be overridden in a
1696 system-specific malloc-machine.h. Remove extra ; from extern "C"
1698 * sysdeps/generic/malloc-machine.h: New file.
1699 * sysdeps/mach/hurd/malloc-machine.h: New file.
1700 * malloc/thread-m.h: Removed.
1701 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
1702 is in sysdeps/generic/malloc-machine.h now.
1704 2003-09-29 Ulrich Drepper <drepper@redhat.com>
1706 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
1707 variables only used if TLS_TCB_AT_TP is defined into the #if
1710 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
1711 well to cover using long long in C90.
1713 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
1715 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
1716 Redefine and use __libc_cleanup_region_end instead.
1718 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
1720 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
1721 fix prototypes for picky C++ compilers.
1723 2003-09-27 Ulrich Drepper <drepper@redhat.com>
1725 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
1726 the device ID is invalid and return -1.
1727 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
1729 2003-09-26 Andreas Schwab <schwab@suse.de>
1731 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
1732 rt_sigprocmask system call.
1734 2003-09-25 Roland McGrath <roland@redhat.com>
1736 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
1737 Don't check for zero __libc_stack_end, it should be initialized.
1738 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
1739 and fall back if it fails with EINVAL.
1740 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
1742 2003-09-25 Jakub Jelinek <jakub@redhat.com>
1744 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
1745 sysdeps/i386/dl-procinfo.c instead of
1746 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
1747 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
1750 2003-09-25 Ulrich Drepper <drepper@redhat.com>
1752 * posix/regcomp.c (peek_token): Remove recent changes for anchor
1754 (parse_reg_exp): Likewise.
1755 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
1757 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
1760 * nis/nis_table.c (nis_list): Always strdup string used with
1761 ibreq->ibr_name. Add several NULL pointer checks.
1763 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
1765 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1766 * nis/nss_nisplus/nisplus-grp.c: Likewise.
1767 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1768 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
1769 * nis/nss_nisplus/nisplus-network.c: Likewise.
1770 * nis/nss_nisplus/nisplus-proto.c: Likewise.
1771 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1772 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1773 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1774 * nis/nss_nisplus/nisplus-service.c: Likewise.
1775 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1777 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
1779 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1780 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
1781 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1782 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1783 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1784 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1785 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1786 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1787 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1788 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1789 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1791 2003-09-25 Jakub Jelinek <jakub@redhat.com>
1793 * misc/syslog.c: Include locale.h.
1794 (vsyslog): Add date always in C locale %h %e %T format.
1796 2003-09-24 Paul Eggert <eggert@twinsun.com>
1798 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
1799 size_t overflow when reallocating storage.
1800 * argp/argp-help.c (make_hol, hol_append): Likewise.
1801 (SIZE_MAX): New macro.
1803 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
1805 * sysdeps/mach/hurd/bits/libc-lock.h
1806 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
1808 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
1810 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
1811 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
1812 #include_next dl-procinfo.h to get them.
1813 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
1814 (_DL_PLATFORMS_COUNT): Likewise.
1815 (_DL_FIRST_PLATFORM): Likewise.
1816 (_DL_HWCAP_PLATFORM): Likewise.
1817 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
1818 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
1819 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
1820 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
1821 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
1822 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
1823 HWCAP_IMPORTANT): Likewise.
1824 (_DL_PROCINFO_H_): Likewise.
1825 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
1826 (_dl_string_platform): Likewise.
1827 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
1828 * sysdeps/i386/dl-procinfo.c: ... here, new file.
1830 2003-09-24 Ulrich Drepper <drepper@redhat.com>
1832 * sysdeps/unix/sysv/linux/dl-execstack.c
1833 (_dl_make_stack_executable): Remember that we changed the permission.
1835 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
1836 __libc_stack_end. Patch by David Mosberger.
1838 2003-09-24 Jakub Jelinek <jakub@redhat.com>
1840 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
1841 __libc_stack_end@GLIBC_PRIVATE.
1843 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
1844 (_dl_sysdep_start): Set __libc_stack_end here.
1845 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
1847 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
1848 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
1849 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
1850 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1851 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
1852 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
1853 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
1854 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
1855 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
1856 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
1857 (RTLD_START): Remove setting of __libc_stack_end.
1858 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
1859 (RTLD_START): Remove setting of __libc_stack_end.
1861 2003-09-24 Ulrich Drepper <drepper@redhat.com>
1863 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
1864 function definitions. Adjust macro expansions accordingly.
1865 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
1866 minor, makedev name.
1867 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
1869 2003-09-24 Jakub Jelinek <jakub@redhat.com>
1871 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
1874 2003-09-24 Jakub Jelinek <jakub@redhat.com>
1876 * nscd/Makefile (others): Add nscd before including ../Rules.
1878 2003-09-24 Ulrich Drepper <drepper@redhat.com>
1880 * nscd/Makefile: Add rules to build nscd as a PIE.
1881 * configure.in: Check for -fpie and -pie compiler options.
1882 * config.make.in (have-fpie): Define.
1884 2003-09-23 Ulrich Drepper <drepper@redhat.com>
1886 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
1888 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
1889 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
1890 * sysdeps/unix/sysv/linux/makedev.c: New file.
1891 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
1892 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
1893 (sysdep_routines): Add makedev.
1894 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
1895 major, minor, makedev.
1896 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
1898 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
1899 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
1900 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
1901 Code by Alexander Viro <aviro@redhat.com>.
1903 2003-09-23 Ulrich Drepper <drepper@redhat.com>
1905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
1906 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
1908 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
1909 for include Altivec support for PPC32. It was not compatible.
1910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
1911 offsets for ucontext_t change.
1912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
1913 for ucontext_t change. Add compatibility code.
1914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
1915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1917 Patch by Paul Mackerras <paulus@samba.org>.
1919 2003-02-25 Randolph Chung <tausq@debian.org>
1921 * sysdeps/hppa/Makefile: Include compat code in build.
1922 * sysdeps/hppa/libgcc-compat.c: New file.
1923 * sysdeps/hppa/Dist: Add libgcc-compat.c.
1924 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
1926 2003-09-23 Roland McGrath <roland@redhat.com>
1928 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
1929 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
1930 Move GL(dl_make_stack_executable_hook) initialization up.
1931 * elf/tst-execstack-prog.c: New file.
1932 * elf/Makefile (tests-execstack-yes): Add it.
1933 (LDFLAGS-tst-execstack-prog): New variable.
1935 2003-09-23 Jakub Jelinek <jakub@redhat.com>
1937 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
1938 before calling _dl_start, using %rip relative access.
1939 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
1942 2003-09-23 Roland McGrath <roland@redhat.com>
1944 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
1945 calling _dl_start, using GOTOFF access.
1947 * configure.in (libc_cv_z_execstack): New check.
1948 * configure: Regenerated.
1949 * config.make.in (have-z-execstack): New variable set by it.
1950 * elf/tst-execstack.c: New file.
1951 * elf/tst-execstack-mod.c: New file.
1952 * elf/tst-execstack-needed.c: New file.
1953 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
1955 (tests, modules-names): Conditionally include them.
1956 (distribute): Add tst-execstack-mod.c here.
1957 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
1958 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
1959 ($(objpfx)tst-execstack-needed): New target.
1960 (LDFLAGS-tst-execstack-needed): New variable.
1962 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
1963 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
1964 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
1965 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
1966 Initialize _dl_make_stack_executable_hook.
1967 * elf/dl-support.c: Define those new variables.
1968 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
1969 (_dl_phdr): Fix type.
1970 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
1971 enable execute permission for the stack if necessary.
1972 * sysdeps/generic/dl-execstack.c: New file.
1973 * elf/Makefile (dl-routines): Add it.
1974 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
1975 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
1977 2003-09-23 Ulrich Drepper <drepper@redhat.com>
1979 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
1981 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
1983 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
1984 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
1987 2003-09-22 Ulrich Drepper <drepper@redhat.com>
1989 * malloc/malloc.c: Include <stdint.h>.
1991 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
1993 * posix/regcomp.c (build_word_op): Rename like...
1994 (build_charclass_op): ...this. Accept two extra parameters,
1995 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
1996 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
1997 (parse_expression): Replace build_word_op with
1998 build_charclass_op, add new arguments, accept OP_SPACE
2000 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2003 * posix/regcomp.c (peek_token): Don't look back for ( or |
2004 to check whether to treat a caret as special. It fails
2005 for the (extended) regex \(^.
2006 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2007 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2009 * posix/regexec.c: Check out of bounds value before shifting.
2011 * posix/regex_internal.h: Define __attribute for non-gcc.
2013 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2015 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2016 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2019 * sysdeps/unix/opendir.c: Include string.h.
2021 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2023 * timezone/zdump.c: Update from tzcode2003c.
2024 * timezone/zic.c: Likewise.
2025 * timezone/leapseconds: Update from tzdata2003c.
2027 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2029 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2030 final build to ease quality control.
2032 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2033 ld.so, don't include NULL buffer pointer handling.
2035 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2037 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2039 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2041 * libio/memstream.c (open_memstream): Use _IO_init instead of
2044 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2046 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2047 have to recognize octal and hexadecimal numbers as well. Simplify
2048 function, signs are handled in strtol.
2049 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2050 numbers in arithmetic expressions.
2052 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2054 * elf/Makefile (distribute): Add tst-alignmod.c.
2055 (tests): Add tst-align.
2056 (modules-names): Add tst-alignmod.
2057 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2058 $(stack-align-test-flags).
2059 ($(objpfx)tst-align): Depend on libdl.
2060 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2061 * elf/tst-align.c: New file.
2062 * elf/tst-alignmod.c: New file.
2063 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2064 * misc/tst-tsearch.c: Include tst-stack-align.h.
2065 (stack_align_check): New array.
2066 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2067 (main): Report error if stack was not enough aligned
2068 in cmp_fn or walk_action.
2069 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2070 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2071 (align_check): New var.
2072 (compare): Use TEST_STACK_ALIGN () macro.
2073 (main): Report error if stack was not enough aligned in compare.
2074 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2075 unneeded -mpreferred-stack-boundary=4.
2076 * sysdeps/x86_64/tst-stack-align.h: New file.
2078 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2079 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2081 2003-09-17 Philip Blundell <philb@gnu.org>
2083 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2085 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2087 * sysdeps/arm/sysdep.h (DO_RET): New.
2089 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2090 required but not defined. Improve test of error code.
2092 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2094 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2095 -malign-double -mpreferred-stack-boundary=4.
2097 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2099 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2100 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2102 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2104 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2105 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2107 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2109 * Makeconfig (stack-align-test-flags): Set.
2110 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2111 $(stack-align-test-flags).
2112 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2113 (align_check): New var.
2114 (comp): Use TEST_STACK_ALIGN macro.
2115 (do_test): Fail if align_check != 1.
2116 * sysdeps/generic/tst-stack-align.h: New file.
2117 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2118 * sysdeps/i386/i686/tst-stack-align.h: New file.
2120 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2122 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2123 stack which is aligned (mod 16).
2125 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2126 Hans-Peter Nilsson <hp@axis.com>
2128 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
2129 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
2131 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2133 * dirent/scandir.c: Include bits/libc-lock.h.
2134 (struct scandir_cancel_struct): New type.
2135 (cancel_handler): New function.
2136 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
2137 scandir_cancel_struct.
2139 2003-09-16 Ulrich Drepper <drepper@redhat.com>
2141 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
2142 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2143 Add internal_statvfs.
2144 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
2145 instead of including "internal_statvfs.c".
2146 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2147 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
2148 Add code to avoid the stat calls on all the reported mount points
2149 when we can determine mismatch in advance.
2150 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
2151 USBDEVFS_SUPER_MAGIC.
2153 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2155 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
2156 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
2158 2003-09-16 Bruno Haible <bruno@clisp.org>
2160 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
2161 invoking msgfmt, not before.
2163 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2165 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
2166 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
2168 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
2169 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
2170 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
2171 * elf/dl-iteratephdr.c (cancel_handler): New function.
2172 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
2173 * elf/link.h (dl_iterate_phdr): Remove __THROW.
2174 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
2175 Add $(uses-callbacks).
2176 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
2177 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
2178 $(exceptions) to $(uses-callbacks).
2179 * Makeconfig (uses-callbacks): Set to $(exceptions).
2180 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
2182 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
2185 2003-09-15 Andreas Schwab <schwab@suse.de>
2187 * sysdeps/m68k/setjmp.c: Add hidden_def.
2189 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2191 * libio/memstream.c (open_memstream): Don't allow wide char operations.
2193 * dirent/dirent.h: Remove __THROW from scandir.
2195 2003-09-14 Philip Blundell <philb@gnu.org>
2197 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
2200 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
2202 * sysdeps/arm/memset.S: Rewrite.
2204 2003-09-12 Jakub Jelinek <jakub@redhat.com>
2206 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
2207 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
2208 __SLONGWORD_TYPE otherwise.
2210 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2212 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
2213 (CFLAGS-ftw64.c): Likewise.
2215 2003-09-13 Ulrich Drepper <drepper@redhat.com>
2217 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
2218 (CFLAGS-nscd_getgr_r.c): Likewise.
2219 (CFLAGS-nscd_gethst_r.c): Likewise.
2221 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2223 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
2226 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
2227 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
2228 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
2229 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
2230 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
2231 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
2233 * misc/Makefile (CFLAGS-err.c): Likewise.
2234 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
2235 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
2236 CFLAGS-glob64.c): Likewise.
2237 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
2238 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
2239 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
2240 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
2241 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
2243 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
2245 * libio/stdio.h: Remove __THROW from cuserid prototype.
2247 * locale/loadarchive.c: Use only non-cancelable interfaces.
2248 * resolv/herror.c (herror): Likewise.
2250 * malloc/hooks.c: Before using IO stream mark stream so it uses
2251 only non-cancelable interfaces.
2252 * malloc/malloc.c: Likewise.
2253 * posix/getopt.c: Likewise.
2256 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2258 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
2260 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2262 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
2264 * misc/err.h: Remove __THROW from all prototypes.
2266 * posix/getopt.h (__THROW): Define if not already defined. Add
2267 __THROW to the getopt functions.
2269 2003-09-11 Ulrich Drepper <drepper@redhat.com>
2271 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
2272 (CFLAGS-fts.c): Likewise.
2273 * io/fcntl.h: Remove __THROW from lockf prototypes.
2274 * io/fts.h: Remove most __THROW.
2276 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
2278 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
2282 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2284 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
2285 _IO_free_backup_area call.
2287 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2289 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
2291 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
2292 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
2293 Also, only assert off_t size is 4 for N32 and O32, and clean up
2295 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
2297 2003-09-10 Roland McGrath <roland@redhat.com>
2299 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
2300 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
2301 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
2302 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2303 Reported by Daniel Jacobowitz <drow@mvista.com>.
2305 2003-09-10 Jakub Jelinek <jakub@redhat.com>
2307 * string/Makefile (strop-tests): Add memccpy.
2308 * string/test-memccpy.c: New test.
2310 2003-09-09 Jakub Jelinek <jakub@redhat.com>
2312 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
2313 siginfo_t * argument before, change into struct ucontext *.
2314 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
2315 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
2316 instead of structure.
2317 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
2320 2003-09-09 Ulrich Drepper <drepper@redhat.com>
2322 * string/stratcliff.c (main): Check memccpy.
2324 2003-04-11 Jes Sorensen <jes@wildopensource.com>
2326 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
2327 character is found during recovery, use correct register when
2328 determining the position of the found character.
2330 2003-04-01 Jes Sorensen <jes@wildopensource.com>
2332 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
2333 avoid segfaults when reading from unmapped pages. For aligned
2334 reload and continue, for misaligned, roll back and use byte copy.
2335 Save ar.ec on entry and restore on exit.
2337 2003-09-09 Chris Demetriou <cgd@broadcom.com>
2339 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
2341 2003-09-08 Chris Demetriou <cgd@broadcom.com>
2343 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
2344 the top of the list.
2345 * sysdeps/mips/mips64/n64/Implies: Likewise.
2347 2003-09-08 Roland McGrath <roland@frob.com>
2349 * sysdeps/unix/sysv/linux/speed.c
2350 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
2351 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
2352 * sysdeps/unix/sysv/linux/bits/termios.h
2353 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
2354 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2355 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2357 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2359 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
2360 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
2362 2003-09-08 Jakub Jelinek <jakub@redhat.com>
2364 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
2365 (__u_quad_t): Make unsigned long int if 64-bit.
2366 (__SQUAD_TYPE): Make long int if 64-bit.
2367 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
2368 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
2370 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2372 * Makefile (tests): Run check-c++-types.sh if possible.
2373 * scripts/check-c++-types.h: New file.
2374 * scripts/data/c++-types-i386-linux-gnu.data: New file.
2376 2003-09-08 Andreas Jaeger <aj@suse.de>
2378 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2379 Use struct sigcontext.
2381 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
2382 Use struct sigcontext.
2384 (GET_FRAME): Likewise.
2385 (GET_STACK): Likewise.
2387 2003-09-08 Wolfram Gloger <wg@malloc.de>
2389 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
2390 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
2391 (mALLOPt): Avoid requirement of C99.
2393 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2395 * libio/bug-ftell.c: Include <sys/types.h>.
2396 (main): Mark cp as const.
2398 2003-09-07 Jakub Jelinek <jakub@redhat.com>
2400 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
2401 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
2403 2003-09-05 Roland McGrath <roland@redhat.com>
2405 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
2406 and c_ospeed fields.
2407 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
2408 (cfsetispeed): Set c_ispeed field.
2409 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
2410 to match corresponding speed.c code.
2412 2003-09-06 Ulrich Drepper <drepper@redhat.com>
2414 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
2415 narrow character buffer.
2416 * libio/Makefile: Add rules to build and run bug-ftell.
2417 * libio/bug-ftell.c: New file.
2419 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
2421 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
2422 matching the decimal point and possibly leading the thousands
2423 separator. This caused the recognition of thousands separators to
2426 2003-09-05 Ulrich Drepper <drepper@redhat.com>
2428 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
2429 write mode from read in backup buffer.
2430 * libio/Makefile (tests): Add bug-ungetc2.
2431 * libio/bug-ungetc2.c: New file.
2433 2003-09-05 Roland McGrath <roland@redhat.com>
2435 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
2437 2003-09-04 Roland McGrath <roland@frob.com>
2439 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
2440 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
2442 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
2444 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
2447 2003-09-05 Andreas Jaeger <aj@suse.de>
2449 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
2450 to make it conforming C.
2451 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
2453 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
2454 prototype to use variable argument lists and get the possible one
2455 argument via va_arg.
2456 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
2457 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
2459 2003-09-04 Ulrich Drepper <drepper@redhat.com>
2461 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
2463 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2464 Report correct value for vxfs.
2465 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
2467 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
2470 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
2471 over the place. It would be allowed to have these functions as
2472 cancellation points but the cleanup would be ugly and a lot of
2475 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
2476 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
2478 * include/fcntl.h (__fcntl_nocancel): Declare.
2479 * sysdeps/unix/sysv/linux/fcntl.c: New file.
2480 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
2481 cancellation if absolutely needed.
2482 (__fcntl_nocancel): Define.
2484 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
2485 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
2487 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
2490 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
2493 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
2494 unnecessary errno handling.
2496 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
2497 Initialize it in all cases. Change it to be a bit more like the
2500 2003-09-04 Jakub Jelinek <jakub@redhat.com>
2502 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
2504 (_IO_file_open): Likewise. Use close_not_cancel.
2506 2003-09-04 Ulrich Drepper <drepper@redhat.com>
2508 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
2509 * libio/fileops.c [_LIBC]: Remove close macro.
2510 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
2511 (_IO_new_file_open): Recognize 'c' flag in mode string.
2512 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
2513 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
2515 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
2516 * inet/rcmd.c: Likewise.
2517 * inet/ruserpass.c: Likewise.
2518 * intl/localealias.c: Likewise.
2519 * malloc/mtrace.c: Likewise.
2520 * misc/getpass.c: Likewise.
2521 * misc/getttyent.c: Likewise.
2522 * misc/mntent_r.c: Likewise.
2523 * misc/getusershell.c: Likewise.
2524 * nss/nsswitch.c: Likewise.
2525 * resolv/res_hconf.c: Likewise.
2526 * resolv/res_init.c: Likewise.
2527 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2528 * time/getdate.c: Likewise.
2529 * time/tzfile.c: Likewise.
2530 * misc/fstab.h: Undo last change.
2531 * misc/mntent.h: Likewise.
2532 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
2533 CFLAGS-fstab.c definition.
2535 2003-09-04 Jakub Jelinek <jakub@redhat.com>
2537 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
2539 2003-09-03 Ulrich Drepper <drepper@redhat.com>
2541 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
2542 returning ERANGE if this wasn't intended.
2544 2003-09-03 Jakub Jelinek <jakub@redhat.com>
2546 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
2547 function-like macros.
2549 2003-09-03 Ulrich Drepper <drepper@redhat.com>
2551 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
2552 (CFLAGS-getgrent.c): Likewise.
2553 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
2554 (CFLAGS-getpwent.c): Likewise.
2555 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
2556 (CFLAGS-getspent.c): Likewise.
2558 * inet/Makefile: Add -fexceptions to CFLAGS for the various
2559 getXXent and getXXbyYY functions.
2561 * locale/loadlocale.c: Use not-cancelable variants of open, close,
2564 2003-09-02 Jakub Jelinek <jakub@redhat.com>
2566 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2567 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
2569 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
2571 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
2572 unused __syscall_ stubs.
2573 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
2575 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
2576 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
2577 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
2578 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
2579 unused __syscall_ stubs.
2580 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
2581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
2582 (__syscall_*): Remove unused __syscall_ stubs.
2583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
2584 (__syscall_*): Likewise.
2585 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
2587 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
2588 Remove unused __syscall_ stubs.
2589 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
2590 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
2591 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
2592 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
2593 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
2594 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
2595 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
2596 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
2597 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
2598 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
2599 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
2600 __syscall_* prototypes.
2601 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
2602 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
2603 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
2604 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
2605 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2606 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2607 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
2608 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2609 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2610 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
2611 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
2612 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2613 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
2614 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2615 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2616 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2617 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2618 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2619 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2620 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
2621 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2622 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
2623 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2624 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2625 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2626 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2627 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2628 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2629 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
2630 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2631 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2632 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2633 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2634 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2635 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2636 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2637 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2638 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
2639 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2640 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
2641 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
2642 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2643 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2644 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2645 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2646 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2647 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2648 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2649 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2650 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2651 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
2652 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2653 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2654 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2655 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2656 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
2657 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
2658 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2659 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2660 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
2661 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
2662 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
2663 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
2664 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2665 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2666 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2667 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2668 * sysdeps/unix/sysv/linux/execve.c: Likewise.
2669 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2670 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
2671 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
2672 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
2673 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2674 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2675 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
2676 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
2677 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2678 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2679 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2680 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2681 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
2682 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2683 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
2684 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
2685 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2686 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2687 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
2688 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2689 * sysdeps/unix/sysv/linux/poll.c: Likewise.
2690 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2691 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2692 * sysdeps/unix/sysv/linux/pread.c: Likewise.
2693 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2694 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2695 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2696 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2697 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2698 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2699 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2700 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2701 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2702 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2704 2003-09-02 Jakub Jelinek <jakub@redhat.com>
2706 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
2707 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
2708 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
2710 2003-09-02 Ulrich Drepper <drepper@redhat.com>
2712 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
2714 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
2715 open, close, and read.
2717 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
2720 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
2722 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
2723 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
2724 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
2726 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
2728 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
2729 (CFLAGS-fstatfs.c): Likewise.
2730 (CFLAGS-statvfs.c): Likewise.
2731 (CFLAGS-fstatvfs.c): Likewise.
2733 2003-09-01 Ulrich Drepper <drepper@redhat.com>
2735 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
2736 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
2738 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
2739 (CFLAGS-pathconf.c): Likewise.
2740 (CFLAGS-fpathconf.c): Likewise.
2742 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
2743 * misc/fstab.h: Remove all __THROW.
2744 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
2745 (CFLAGS-mntent_r.c): Likewise.
2746 * misc/mntent.h: Remove most __THROW.
2748 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
2749 (CFLAGS-mkstemp64.c): Likewise.
2751 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
2752 around call to exec_comm.
2753 * posix/wordexp.h: Remove __THROW from wordexp.
2754 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
2756 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
2757 not-cancelable functions.
2759 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
2760 (CFLAGS-iofopen.c): Likewise.
2761 (CFLAGS-iofopen64.c): Likewise.
2763 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
2765 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
2766 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
2768 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
2769 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
2771 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
2773 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
2774 NSS_STATUS_SUCCESS if entry was found.
2775 (getspent_next_file): Store user in blacklist after entry
2776 was found, use innetgr.
2778 2003-09-01 Jakub Jelinek <jakub@redhat.com>
2780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
2781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
2783 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
2784 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
2785 DTV_AT_TP, optimize.
2787 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2789 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
2790 posix_fallocate64 at GLIBC_2.3.3.
2791 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
2792 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
2794 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2796 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
2799 2003-08-31 Ulrich Drepper <drepper@redhat.com>
2801 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
2802 Code by Richard Henderson.
2804 2003-08-31 Philip Blundell <philb@gnu.org>
2806 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
2807 posix_fallocate64 at GLIBC_2.3.3.
2809 2003-08-31 Ulrich Drepper <drepper@redhat.com>
2811 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
2812 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
2814 2003-08-30 Jakub Jelinek <jakub@redhat.com>
2816 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
2817 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
2818 included multiple times.
2819 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
2820 ptid, tls, ctid arguments to the kernel.
2821 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2822 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
2823 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2824 (__libc_sigaction): Use INLINE_SYSCALL instead of
2825 __syscall_rt_sigaction.
2826 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
2827 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
2828 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
2829 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
2830 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
2831 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
2832 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
2833 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
2834 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
2835 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
2836 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
2837 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2838 (__CLONE_SYSCALL_STRING): Define.
2839 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
2841 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2842 (__CLONE_SYSCALL_STRING): Define.
2843 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
2845 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
2847 2003-08-30 Ulrich Drepper <drepper@redhat.com>
2849 * sunrpc/rpc/clnt.h: Remove a few __THROW.
2850 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
2851 (CFLAGS-key_call.c): Likewise.
2852 (CFLAGS-pmap_rmt.c): Likewise.
2853 (CFLAGS-clnt_perr.c): Likewise.
2854 * sunrpc/rpc/auth.h: Remove serveral __THROW.
2856 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
2857 (CFLAGS-gethstbynm_r.c): Likewise.
2858 (CFLAGS-gethstbynm2_r.c): Likewise.
2859 (CFLAGS-rcmd.c): Likewise.
2860 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
2862 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
2863 (CFLAGS-argp-fmtstream.c): Likewise.
2864 * argp/argp.h: Remove a number of __THROW.
2866 * misc/sys/syslog.h (vsyslog): Remove __THROW.
2868 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
2869 * misc/getpass.c (getpass): Add cleanup handler to ensure the
2870 stream is closed even if the thread is canceled.
2871 (call_fclose): New function.
2872 * posix/unistd.h: Remove __THROW from getpass prototype.
2874 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
2876 * signal/signal.h (psignal): Remove __THROW.
2877 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
2879 * misc/Makefile (CFLAGS-error.c): Define.
2880 * misc/error.c (error): Disable cancellation handling around the
2881 actual output. The message should in any case be printed.
2882 (error_at_line): Likewise.
2884 * misc/error.h: Protect parameter names with leading __.
2886 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
2888 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
2890 2003-08-29 Jakub Jelinek <jakub@redhat.com>
2892 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
2895 2003-08-29 Ulrich Drepper <drepper@redhat.com>
2897 * libio/stdio.h: Remove a few more __THROW.
2899 2003-08-29 Jakub Jelinek <jakub@redhat.com>
2901 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
2902 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
2903 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
2904 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
2905 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
2906 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
2907 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
2908 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
2909 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
2910 putwchar.c and rewind.c with exceptions.
2911 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
2912 _IO_release_lock): Define.
2913 * libio/fileops.c (_IO_new_file_underflow): Use it.
2914 * libio/fputc.c (fputc): Likewise.
2915 * libio/fputwc.c (fputwc): Likewise.
2916 * libio/freopen64.c (freopen64):
2917 * libio/freopen.c (freopen): Likewise.
2918 * libio/fseek.c (fseek): Likewise.
2919 * libio/fseeko64.c (fseeko64): Likewise.
2920 * libio/fseeko.c (fseeko): Likewise.
2921 * libio/ftello64.c (ftello64): Likewise.
2922 * libio/ftello.c (ftello): Likewise.
2923 * libio/fwide.c (fwide): Likewise.
2924 * libio/getc.c (_IO_getc): Likewise.
2925 * libio/getchar.c (getchar): Likewise.
2926 * libio/getwc.c (_IO_getwc): Likewise.
2927 * libio/getwchar.c (getwchar): Likewise.
2928 * libio/iofclose.c (_IO_new_fclose):
2929 * libio/iofflush.c (_IO_fflush): Likewise.
2930 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
2931 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2932 * libio/iofgets.c (_IO_fgets): Likewise.
2933 * libio/iofgetws.c (fgetws): Likewise.
2934 * libio/iofputs.c (_IO_fputs): Likewise.
2935 * libio/iofputws.c (fputws): Likewise.
2936 * libio/iofread.c (_IO_fread): Likewise.
2937 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
2938 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
2939 * libio/ioftell.c (_IO_ftell): Likewise.
2940 * libio/iofwrite.c (_IO_fwrite): Likewise.
2941 * libio/iogetdelim.c (_IO_getdelim): Likewise.
2942 * libio/iogets.c (_IO_gets): Likewise.
2943 * libio/ioputs.c (_IO_puts): Likewise.
2944 * libio/ioseekoff.c (_IO_seekoff): Likewise.
2945 * libio/ioseekpos.c (_IO_seekpos): Likewise.
2946 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
2947 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
2948 * libio/ioungetc.c (_IO_ungetc): Likewise.
2949 * libio/ioungetwc.c (ungetwc): Likewise.
2950 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2951 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
2952 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
2953 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
2954 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
2955 * libio/peekc.c (_IO_peekc_locked): Likewise.
2956 * libio/putc.c (_IO_putc): Likewise.
2957 * libio/putchar.c (putchar): Likewise.
2958 * libio/putwc.c (putwc): Likewise.
2959 * libio/putwchar.c (putwchar): Likewise.
2960 * libio/rewind.c (rewind): Likewise.
2961 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
2963 2003-08-29 Ulrich Drepper <drepper@redhat.com>
2965 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
2966 available in XPG4.2.
2968 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
2969 Jakub Jelinek <jakub@redhat.com>
2971 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
2972 big endian arches. Don't read beyond end of fds_bits array.
2974 2003-04-27 Bruno Haible <bruno@clisp.org>
2976 * manual/message.texi (Advanced gettext functions): Add information
2977 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
2978 Add section about Lithuanian, reported by Ricardas Cepas
2979 <rch@richard.eu.org>.
2980 Add information about Croatian.
2981 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
2982 Remove remark about continuation lines that is not true for PO files.
2983 Fix formula for Slovenian, reported by Roman Maurer
2984 <roman.maurer@amis.net>.
2986 2003-08-27 Ulrich Drepper <drepper@redhat.com>
2988 * math/math_private.h: Declare __copysignf.
2989 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
2992 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
2993 __signbit, and __signbitl inline functions.
2995 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
2996 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
2998 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
2999 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3001 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3003 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3005 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3007 * include/stdio.h: Add declarations for __builtin_fwrite and
3008 __builtin_fwrite_unlocked.
3010 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3012 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3013 fits into allocation. Add padding on 32-bit arches so that
3014 dirp->data is enough aligned for struct dirent64.
3015 Avoid clearing of the buffer, just clear DIR structure.
3017 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3019 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3020 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3022 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3024 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3026 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3028 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3029 to match format string.
3030 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3032 (__new_semctl): Shut up warning.
3033 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3034 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3036 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3038 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3039 link file use the real file name, not the resolved name we got by
3040 following the symlinks.
3042 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3044 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3045 if the object size is large enough.
3047 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3049 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3050 if it won't point to itself unless it is .so symlink for the linker.
3052 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3054 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3055 use _mode if _IO_fwide_maybe_incompatible.
3056 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3057 the compatibility test.
3059 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3061 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3063 Duplicate last old cache entry if the count would be odd.
3065 2003-08-25 Andreas Jaeger <aj@suse.de>
3067 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3068 __LONG_LONG_PAIR to long.
3070 2003-08-25 Philip Blundell <philb@gnu.org>
3072 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3073 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3075 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3077 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3078 and use __libc_cleanup_region_end instead.
3080 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3082 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3084 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3086 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3088 (posix_fallocate64): Change type of third parameter to off64_t.
3089 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3090 * sysdeps/posix/posix_fallocate.c: Likewise.
3091 * sysdeps/generic/posix_fallocate64.c: Likewise.
3092 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3093 code for 32-bit platforms.
3094 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3097 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3098 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3100 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3102 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3103 the type, not to name.
3105 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3106 into source directory.
3108 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3111 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3114 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3116 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3119 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3121 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3122 (elf_machine_lazy_rel): Likewise.
3124 2003-08-18 Art Haas <ahaas@airmail.net>
3126 * malloc/malloc.h: Remove unneeded ';' where closing the C++
3129 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3131 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
3132 loading big binaries where @gprel(sym) cannot be handled in 'add'
3133 but instead has to be used with 'movl'.
3135 2003-08-17 Juergen Kreileder <jk@blackdown.de>
3136 Andreas Jaeger <aj@suse.de>
3138 * sysdeps/x86_64/bits/byteswap.h: New file.
3140 2003-08-17 Andreas Jaeger <aj@suse.de>
3142 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
3144 2003-08-16 Jakub Jelinek <jakub@redhat.com>
3146 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
3147 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3148 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
3149 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3150 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
3151 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3152 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
3153 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3154 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
3155 ret_ERRVAL): Define.
3156 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
3157 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3158 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
3159 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3160 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
3162 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
3163 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3164 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
3166 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
3167 posix_fadvise64_64): Remove.
3168 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
3170 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
3172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3173 (posix_fadvise64): Likewise.
3174 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
3175 (posix_fadvise64): Likewise.
3176 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3177 (posix_fadvise64): Likewise.
3178 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
3180 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
3181 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
3182 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
3183 (__posix_fadvise64_l32): New function.
3184 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
3185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
3186 posix_fadvise64@@GLIBC_2.3.3.
3187 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3188 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3189 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
3191 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
3193 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3194 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
3196 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3198 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
3199 (elf_machine_matches_host): Remove weak extern stuff.
3200 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
3201 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
3202 stuff. Use GL(dl_hwcap) unconditionally.
3204 2003-08-16 Alan Modra <amodra@bigpond.net.au>
3206 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
3207 __libc_start_main branch.
3209 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
3210 Andreas Jaeger <aj@suse.de>
3212 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
3213 instead of setting errno.
3214 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3216 2003-08-16 Andreas Jaeger <aj@suse.de>
3218 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
3219 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3221 2003-08-15 Ulrich Drepper <drepper@redhat.com>
3223 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
3225 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
3226 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
3227 description indicating the error value is returned, not -1.
3228 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
3229 __ASSUME_FADVISE64_64_SYSCALL.
3230 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
3231 posix_madvise in one file. Have posix_madvise defined with error
3233 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
3235 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
3236 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
3237 PSEUDO_END_ERRVAL, and ret_ERRVAL.
3238 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3239 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3240 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
3243 * posix/Makefile (routines): Add posix_madvise.
3244 * sysdeps/generic/madvise.c: Don't define posix_madvise.
3245 * sysdeps/generic/posix_madvise.c: New file.
3246 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
3247 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
3248 Add posix_fadvise64_64.
3250 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3252 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3253 3.0, not for !gcc or gcc < 3.0.
3255 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
3257 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
3258 Address passed to test_in_mod1 and test_in_mod2 without casting.
3259 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
3260 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
3261 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
3262 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
3264 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3266 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
3267 Change quotes before using [].
3269 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
3271 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
3273 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
3274 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
3275 argument. Select one of 64 locks from address bits.
3276 (atomic_compare_and_exchange_val_acq,
3277 atomic_compare_and_exchange_bool_acq): Pass memory address to
3278 __sparc32_atomic_do_{,un}lock.
3280 2003-08-14 Ulrich Drepper <drepper@redhat.com>
3282 * assert/assert.h (assert): Use !! in front of expression to allow
3285 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
3286 Changed conversion of JIS X 0201 from using a table to calculating.
3287 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
3288 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
3290 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
3291 * iconvdata/CP932.irreversible: New file.
3292 * iconvdata/EUC-JP-MS.irreversible: New file.
3293 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3295 2003-08-13 Ulrich Drepper <drepper@redhat.com>
3297 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
3299 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
3300 text processing tools.
3302 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
3303 element unless BROKEN_THREAD_SIGNALS is defined.
3304 (struct requestlist): Likewise.
3305 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
3306 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
3307 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3308 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
3309 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
3310 Pass current PID to __aio_sigqueue.
3311 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
3312 call. Don't initialize caller_pid field of waitlist element.
3314 2003-08-12 Jakub Jelinek <jakub@redhat.com>
3316 * libio/libioP.h (_IO_vtable_offset): Define.
3317 * libio/freopen.c (freopen): Use it.
3318 * libio/ioputs.c (_IO_puts): Likewise.
3319 * libio/freopen64.c (freopen64): Likewise.
3320 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
3322 * libio/iofclose.c (_IO_new_fclose): Likewise.
3323 * libio/iofputs.c (_IO_fputs): Likewise.
3324 * libio/ioftell.c (_IO_ftell): Likewise.
3325 * libio/iofwrite.c (_IO_fwrite): Likewise.
3326 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
3327 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3328 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
3329 * stdio-common/vfscanf.c (ORIENT): Likewise.
3331 2003-08-11 Ulrich Drepper <drepper@redhat.com>
3333 * assert/assert.h: Use __builtin_expect in assert and
3334 assert_perror definitions if possible.
3336 2003-08-07 Jakub Jelinek <jakub@redhat.com>
3338 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
3339 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
3340 * elf/rtld.c (rtld_lock_default_lock_recursive,
3341 rtld_lock_default_unlock_recursive): New functions.
3342 (dl_main): Initialize _dl_rtld_lock_recursive and
3343 _dl_rtld_unlock_recursive.
3345 2003-08-05 Jakub Jelinek <jakub@redhat.com>
3347 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
3348 config_file directories instead of prepending.
3350 2003-08-02 Ulrich Drepper <drepper@redhat.com>
3352 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3353 __ASSUME_CLONE_STOPPED.
3355 2003-08-01 Ulrich Drepper <drepper@redhat.com>
3357 * sysdeps/generic/bits/libc-lock.h
3358 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
3360 2003-08-01 Roland McGrath <roland@frob.com>
3362 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
3364 2003-07-31 Jakub Jelinek <jakub@redhat.com>
3366 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
3367 instead of __SWORD_TYPE.
3368 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3369 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3370 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
3372 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
3374 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
3376 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
3378 * dlfcn/dlerror.c (once): New.
3379 (dlerror): Call __libc_once.
3380 (_dlerror_run): Remove once.
3382 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
3383 Sync with 2.5.7 and 2.5.73 kernel changes.
3385 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
3386 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
3388 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
3389 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
3390 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
3391 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
3392 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
3393 difference argument.
3394 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
3396 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
3397 %d format and cast expected value to int.
3398 * sysdeps/generic/libc-start.c (STATIC): Add
3399 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
3400 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
3401 to ieee_float_shape_type.
3402 (__sqrt): Avoid type punning.
3403 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
3404 to ieee_float_shape_type.
3405 (__sqrtf): Avoid type punning.
3406 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
3407 refsym if in dl-conflict.c.
3408 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3409 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
3410 (__new_semctl): Shut up warning.
3411 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
3412 (__new_semctl): Shut up warning.
3413 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
3414 Change old into union of __old_shmid_ds and __old_shminfo structs.
3416 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
3418 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
3419 modtime computation.
3420 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
3421 * sysdeps/posix/utimes.c (__utimes): Likewise.
3423 2003-07-30 Jakub Jelinek <jakub@redhat.com>
3425 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
3426 call dl_signal_error directly. If already relocated, call
3427 GL(dl_init_static_tls) directly, otherwise queue it for later.
3428 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
3429 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
3430 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
3431 for all static TLS initializations delayed in _dl_allocate_static_tls.
3432 * elf/dl-support.c (_dl_init_static_tls): New variable.
3433 * include/link.h (struct link_map): Add l_need_tls_init.
3434 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
3435 (_dl_nothread_init_static_tls): New prototype.
3436 (_dl_allocate_static_tls): Adjust prototype.
3438 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
3440 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
3442 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
3443 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
3444 reloc_addr is aligned.
3445 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
3446 elf_machine_rela_relative): Adjust.
3447 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
3448 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
3449 * sysdeps/cris/dl-machine.h (elf_machine_rela,
3450 elf_machine_rela_relative): Adjust.
3451 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
3452 elf_machine_rela_relative): Adjust.
3453 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
3454 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
3455 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
3456 elf_machine_rela_relative): Adjust.
3457 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
3458 elf_machine_rela_relative): Adjust.
3459 * sysdeps/mips/dl-machine.h (elf_machine_rela,
3460 elf_machine_rela_relative): Adjust.
3461 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
3462 elf_machine_rela_relative): Adjust.
3463 * sysdeps/powerpc/powerpc64/dl-machine.h
3464 (elf_machine_rela_relative, elf_machine_rela): Adjust.
3465 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
3466 elf_machine_rela_relative): Adjust.
3467 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
3468 elf_machine_rela_relative): Adjust.
3469 * sysdeps/sh/dl-machine.h (elf_machine_rela,
3470 elf_machine_rela_relative): Adjust.
3471 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3472 elf_machine_rela_relative): Adjust.
3473 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3474 elf_machine_rela_relative): Adjust.
3475 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
3476 elf_machine_rela_relative): Adjust.
3478 2003-07-29 Ulrich Drepper <drepper@redhat.com>
3480 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
3481 alignment of TCB used before the last change so that it matches
3482 ld's output for IE code.
3484 2003-07-29 Jakub Jelinek <jakub@redhat.com>
3486 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
3487 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
3488 break strict-aliasing rules" warnings.
3490 2003-07-29 Roland McGrath <roland@redhat.com>
3492 * elf/Makefile: Revert accidental changes in last commit.
3493 * elf/dl-support.c: Likewise.
3495 * rt/tst-timer2.c: New file.
3496 * rt/Makefile (tests): Add it.
3498 2003-07-25 Jakub Jelinek <jakub@redhat.com>
3500 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
3502 2003-07-29 Roland McGrath <roland@redhat.com>
3504 * elf/Makefile (tests) [$(build-shared) = yes]:
3505 Depend on $(test-modules).
3506 * dlfcn/Makefile: Likewise.
3508 2003-07-28 Roland McGrath <roland@redhat.com>
3510 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
3511 Use that instead of `typedef' when using __*_TYPE macros in rhs.
3513 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
3514 * elf/tst-tlsmod14a.c: Likewise.
3516 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
3517 before <linux/sysctl.h>.
3519 2003-07-27 Ulrich Drepper <drepper@redhat.com>
3521 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
3522 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
3523 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
3524 * sysdeps/unix/syscalls.list: umask syscall never fails.
3526 2003-07-27 Andreas Jaeger <aj@suse.de>
3528 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
3530 2003-07-25 Jakub Jelinek <jakub@redhat.com>
3532 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
3533 Include bits/a.out.h.
3534 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3536 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
3537 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
3538 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
3539 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
3540 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
3541 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
3542 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
3543 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
3545 2003-07-24 Jakub Jelinek <jakub@redhat.com>
3547 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
3548 if aiocbp != NULL and has already completed. Return -1/EINVAL if
3549 aiocbp->aio_fildes does not match fildes.
3551 2003-07-24 Ulrich Drepper <drepper@redhat.com>
3553 * timezone/zic.c (rpytime): Replace cheap overflow check with a
3556 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
3557 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
3558 Fix calculation of offsets to take misalignment of first byte in
3560 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
3561 l_tls_firstbyte_offset field.
3562 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
3563 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
3564 Take l_tls_firstbyte_offset information into account.
3565 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
3566 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
3567 * elf/Makefile: Add rules to build and run tst-tls14.
3568 * elf/tst-tls14.c: New file.
3569 * elf/tst-tlsmod14a.c: New file.
3570 * elf/tst-tlsmod14b.c: New file.
3572 2003-07-23 Jakub Jelinek <jakub@redhat.com>
3574 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
3575 (lio_listio): Use it.
3576 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
3577 after few defines to avoid duplication.
3579 2003-07-22 Jakub Jelinek <jakub@redhat.com>
3581 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
3582 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
3584 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
3585 Add libc_hidden_def.
3586 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
3587 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3588 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
3589 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
3590 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
3591 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
3592 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
3594 * sysdeps/generic/unwind.inc: Removed.
3596 * include/resolv.h (__resp): Declare. Define to __libc_resp
3598 (_res): If USE___THREAD, define to (*__resp).
3599 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
3600 even if USE___THREAD.
3601 (__resp): New __thread variable.
3602 (__libc_resp): New alias.
3603 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
3604 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
3605 * sysdeps/generic/res-state.c (__res_state): Return __resp
3608 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
3610 * elf/dl-support.c (_dl_hwcap): New variable.
3611 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
3613 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
3614 and <dl-procinfo.h>.
3615 (__feclearexcept): Clear MXCSR if needed.
3616 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
3618 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
3619 that newer hardware needs more than these macros.
3621 * sysdeps/i386/setfpucw.c: New file.
3623 2003-07-22 Jakub Jelinek <jakub@redhat.com>
3625 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
3626 * elf/ldconfig.c: Include dl-procinfo.c.
3627 (PROCINFO_CLASS): Define.
3628 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
3629 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
3630 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
3631 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
3632 Define if not yet defined. Use it instead of EXTERN. Undefine
3633 at the end of the file.
3634 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
3636 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
3637 (PROCINFO_CLASS): Likewise.
3638 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
3639 (PROCINFO_CLASS): Likewise.
3641 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
3643 * elf/ldconfig.c (main): Issue a fatal error if relative path
3644 is used to build cache.
3646 2003-07-22 Ulrich Drepper <drepper@redhat.com>
3648 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
3650 2003-07-21 Art Haas <ahaas@airmail.net>
3652 * manual/charset.texi (Converting a Character): Fix example code so a
3653 valid pointer is returned.
3655 2003-07-22 Andreas Jaeger <aj@suse.de>
3657 * elf/readlib.c (process_file): Check that file is a shared
3660 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
3661 will not optimize it away.
3662 (__DTOR_END__): Likewise.
3663 (__CTOR_END__): Likewise.
3665 * include/libc-symbols.h (_elf_set_element): Use attribute used so
3666 that gcc will not optimize it away.
3667 (link_warning): Likewise.
3669 2003-07-22 Ulrich Drepper <drepper@redhat.com>
3671 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
3672 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
3673 * wcsmbs/tst-wcpncpy.c: New file.
3675 2003-07-21 Ulrich Drepper <drepper@redhat.com>
3677 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
3679 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
3680 stmxcsr and ldmxcsr.
3682 * Makerules (build-module-helper): Add -z defs unless explicitly said
3684 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
3685 which has undefined symbols.
3686 * elf/Makefile: Likewise.
3688 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
3689 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3690 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3691 * sysdeps/i386/fpu/fesetround.c: Likewise.
3692 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
3694 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
3696 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3697 if it won't point to itself.
3699 2003-07-20 Ulrich Drepper <drepper@redhat.com>
3701 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
3703 2003-07-20 Andreas Jaeger <aj@suse.de>
3705 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
3706 STANDARD_TO_LOOP_ERR_HANDLER.
3707 * iconvdata/euc-jp-ms.c (BODY): Likewise.
3709 2003-07-19 Ulrich Drepper <drepper@redhat.com>
3711 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
3713 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
3715 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
3716 Andreas Jaeger <aj@suse.de>
3718 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
3719 256K, remove unneeded declaration of __getpagesize.
3721 2003-07-16 Andreas Schwab <schwab@suse.de>
3723 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
3725 2003-07-15 Ulrich Drepper <drepper@redhat.com>
3727 * io/test-utime.c (main): Make test yet more robust.
3729 2003-07-14 Ulrich Drepper <drepper@redhat.com>
3731 More cancellation handling fixups.
3732 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
3733 * sysdeps/generic/not-cancel.h: Likewise.
3734 * catgets/open_catalog.c: Use not-cancelable syscalls.
3735 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
3736 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
3737 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
3738 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
3739 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
3740 * libio/fileops.c: Use not-cancelable syscalls for fclose.
3741 * libio/iopopen.c: Use no-cancelable syscalls.
3742 * libio/stdio.h: Mark popen and pclose with __THROW again.
3743 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
3744 * misc/syslog.c: Fix locking and cancellation cleanup handling.
3745 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
3746 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
3747 CFLAGS-tempname.c): Add -fexceptions.
3748 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3749 * string/string.h: Mark strerror and strerror_r with _THROW again.
3750 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
3751 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
3752 #ifs since we now need all the code compiled.
3753 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
3754 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
3755 * sysdeps/unix/opendir.c: Likewise.
3757 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
3758 Add rule for EUC-JP-MS dependency.
3759 * iconvdata/cp932.c: New file.
3760 * iconvdata/eucjp-ms.c: New file.
3761 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
3762 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3764 2003-07-15 Jakub Jelinek <jakub@redhat.com>
3766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
3769 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3771 * sysdeps/unix/sysv/linux/kernel-features.h
3772 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
3773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
3775 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
3777 2003-07-14 Ulrich Drepper <drepper@redhat.com>
3779 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3780 __ASSUME_TGKILL for Alpha appropriately.
3782 2003-07-12 Ulrich Drepper <drepper@redhat.com>
3784 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
3785 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
3787 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
3790 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3791 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
3793 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
3794 second parameter == NULL.
3795 * sysdeps/unix/sysv/linux/utimes.c: New file.
3797 2003-07-12 Jakub Jelinek <jakub@redhat.com>
3799 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
3800 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
3803 2003-07-12 Ulrich Drepper <drepper@redhat.com>
3805 * time/sys/time.h: Namespace cleanup.
3806 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3807 __ASSUME_UTIMES for the architectures which always had the syscall.
3808 * sysdeps/unix/sysv/linux/futimes.c: New file.
3810 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3812 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
3813 register across CENABLE and CDISABLE.
3815 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3817 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
3818 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3819 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3820 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
3821 int before assigning to max to avoid warnings.
3823 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
3827 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
3828 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
3830 2003-07-10 Jakub Jelinek <jakub@redhat.com>
3832 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
3833 .data.rel.ro.local to "aw".
3835 2003-07-10 Ulrich Drepper <drepper@redhat.com>
3837 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
3838 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
3839 (PIC-ccflag): Define.
3841 2003-07-04 Jakub Jelinek <jakub@redhat.com>
3843 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
3845 * sysdeps/s390/s390-64/elf/start.S: Likewise.
3847 2003-07-07 Jakub Jelinek <jakub@redhat.com>
3849 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
3850 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
3852 2003-07-07 Ulrich Drepper <drepper@redhat.com>
3854 * sysdeps/unix/sysv/linux/kernel-features.h: Version
3855 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
3857 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
3858 compilation with HAVE_AUX_SECURE defined.
3860 2003-07-05 Richard Henderson <rth@redhat.com>
3862 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
3864 2003-07-03 Ulrich Drepper <drepper@redhat.com>
3866 * configure.in: Also check for .cfi_rel_offset pseudo-op.
3868 2003-07-03 Jakub Jelinek <jakub@redhat.com>
3870 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
3873 2003-07-03 Ulrich Drepper <drepper@redhat.com>
3875 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
3877 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
3879 2003-07-02 Jakub Jelinek <jakub@redhat.com>
3881 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
3882 decl and use with #ifdef NEED_DL_SYSINFO.
3884 2003-07-02 Ulrich Drepper <drepper@redhat.com>
3886 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
3887 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
3888 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3889 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
3890 vsyscall DSO was added.
3892 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
3893 depending on selected standard.
3894 (NGROUPS_MAX): Define to 8 if not defined.
3896 2003-07-02 Andreas Jaeger <aj@suse.de>
3898 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
3900 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
3902 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
3903 * malloc/thread-m.h: Include <atomic.h>.
3904 (atomic_full_barrier): Provide default.
3905 (atomic_read_barrier): Likewise.
3906 (atomic_write_barrier): Likewise.
3907 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
3909 2003-06-30 Ulrich Drepper <drepper@redhat.com>
3911 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
3913 2003-06-30 Richard Henderson <rth@redhat.com>
3915 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
3916 Invert the sense of the return value.
3917 (__arch_exchange_16_int): Fix paste-o.
3918 (__arch_exchange_{32,64}_int): Fix think-o.
3920 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
3922 2003-06-30 Richard Henderson <rth@redhat.com>
3924 * include/sys/resource.h (__getrusage): Mark hidden.
3925 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
3926 * include/sys/wait.h (__wait4): Likewise.
3928 2003-06-17 Guido Guenther <agx@sigxcpu.org>
3930 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
3932 (xstat_conv): Rename to __xstat_conv and remove static inline.
3933 (xstat64_conv): Likewise.
3935 2003-06-29 Ulrich Drepper <drepper@redhat.com>
3937 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
3938 values which cannot be handled in one nanosleep call.
3940 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
3942 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
3943 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
3945 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
3947 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
3949 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
3952 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
3954 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
3955 Conditionalize function definitions that use struct kernel_stat.
3956 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
3957 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
3958 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
3960 2003-06-28 Ulrich Drepper <drepper@redhat.com>
3962 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
3965 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
3967 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
3968 (getgrent_next_file): Don't store group name to early in blacklist.
3970 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
3971 and use memcpy instead of strcpy.
3973 2003-06-28 Ulrich Drepper <drepper@redhat.com>
3975 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
3977 * nis/nss_compat/compat-initgroups.c: Likewise.
3978 * nis/nss_compat/compat-pwd.c: Likewise.
3979 * nis/nss_compat/compat-spwd.c: Likewise.
3981 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
3983 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
3984 functions, dlopen corresponding NSS module instead.
3986 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
3988 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
3989 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3990 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3991 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3993 2003-06-27 Ulrich Drepper <drepper@redhat.com>
3995 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
3997 2003-06-26 Roland McGrath <roland@frob.com>
3999 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4000 * sysdeps/mach/configure: Regenerated.
4001 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4002 (__times): Assume `creation_time' field is available.
4003 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4004 Don't append set-init.
4005 * sysdeps/mach/hurd/set-init.c: File removed.
4007 2003-06-26 Roland McGrath <roland@redhat.com>
4009 * elf/elf.h (AT_SECURE): New macro.
4010 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4011 set __libc_enable_secure.
4012 (_dl_show_auxv): Add AT_SECURE to name table.
4013 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4014 __libc_enable_secure and __libc_enable_secure_decided.
4015 * sysdeps/unix/sysv/linux/ldsodefs.h
4016 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4017 * sysdeps/unix/sysv/linux/kernel-features.h
4018 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4020 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4022 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4023 boundary test to take rounding of nanoseconds into account.
4025 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4026 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4027 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4028 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4029 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4030 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4031 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4033 2003-06-26 Andreas Schwab <schwab@suse.de>
4035 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4036 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4037 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4039 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4041 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4042 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4043 dlopen corresponding NSS module instead.
4044 * nis/nss_compat/compat-pwd.c: Likewise.
4045 * nis/nss_compat/compat-spwd.c: Likewise.
4046 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4047 * nss/Versions: Export __nss_lookup_function.
4049 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4051 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4052 for the SH architecture.
4054 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4056 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4058 2003-06-25 Andreas Jaeger <aj@suse.de>
4060 * stdlib/tst-strtod.c (main): Declare constant long double as
4061 suggested by Jakub Jelinek and Andreas Schwab.
4063 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4066 * stdio-common/tst-fphex.c: Fix format string.
4068 * posix/transbug.c: Include <string.h> for memset and strlen
4071 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4073 * stdlib/tst-strtod.c (main): Pass long double value.
4075 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4077 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4079 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4082 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4084 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4085 * elf/dl-libc.c (struct dl_open_hook): New.
4086 (_dl_open_hook): New variable.
4087 (do_dlsym_private): New function.
4088 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4089 and initialize it if found.
4090 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4091 call dlopen_mode hook.
4092 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4094 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4097 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4099 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4100 result to long int so that extensions to long long int work.
4101 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4103 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4105 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4106 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4107 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4109 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4110 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4111 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4112 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4114 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4116 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4117 retry once after a second. If killed == 0, assume
4118 WTERMSIG (status) == SIGKILL.
4120 2003-06-18 Roland McGrath <roland@redhat.com>
4122 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4123 elements in the table instead of printing an empty name string.
4125 2003-06-05 Roland McGrath <roland@redhat.com>
4127 * elf/elf.h (PT_GNU_STACK): New macro.
4129 2003-06-24 Ulrich Drepper <drepper@redhat.com>
4131 * include/time.h: Define CLOCK_IDFIELD_SIZE.
4132 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
4133 * sysdeps/unix/clock_gettime.c: Likewise.
4134 * sysdeps/unix/clock_settime.c: Likewise.
4135 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
4136 clock id for thread CPU clocks.
4138 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
4139 for the fstatfs64 syscall.
4140 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
4141 the statfs64 syscall.
4143 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4144 __ASSUME_STATFS64 appropriately.
4146 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
4147 from statfs structure if it has been filled in.
4149 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
4151 (struct statfs64): Likewise.
4152 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
4153 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4155 2003-06-24 Richard Henderson <rth@redhat.com>
4157 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
4158 the 64-bit syscall name.
4160 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
4162 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
4163 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
4165 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
4166 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
4168 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4169 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
4172 * sysdeps/alpha/bits/atomic.h: New file.
4174 2003-06-24 Andreas Schwab <schwab@suse.de>
4176 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4178 2003-06-24 Andreas Jaeger <aj@suse.de>
4180 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
4181 redeclaration with 32-bit code.
4183 2003-05-19 Ed Connell <ed.connell@sas.com>
4185 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
4186 floating point mask.
4187 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
4189 2003-06-23 Ulrich Drepper <drepper@redhat.com>
4191 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
4192 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
4193 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
4195 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
4196 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
4197 instead of __libc_cleanup_region_*.
4199 2003-06-20 Richard Henderson <rth@redhat.com>
4201 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
4202 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
4204 2003-06-20 Richard Henderson <rth@redhat.com>
4206 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
4207 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
4209 (__ASSUME_TIMEVAL64): Set for alpha.
4210 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4211 adjtimex, osf_sigprocmask, old_adjtimex.
4212 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
4213 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
4214 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
4215 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4216 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4217 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4218 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4219 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4220 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4221 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4222 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
4224 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4225 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
4226 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
4227 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
4228 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4229 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
4230 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
4231 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
4232 defer to __syscall_name; error for rt_sigaction.
4233 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
4235 2003-06-18 Ulrich Drepper <drepper@redhat.com>
4237 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
4238 hasn't happened yet.
4240 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4241 Fix completely broken implementation. The second parameter is of
4242 type struct ucontext*.
4244 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
4247 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
4248 * sysdeps/generic/dl-hash.h: Likewise.
4250 * sysdeps/generic/memcmp.c: Remove inline from
4251 memcmp_common_alignment and memcmp_not_common_alignment definition.
4253 * intl/localealias.c (read_alias_file): Determine whether line is
4254 read incompletely early, before we modify the line.
4256 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4258 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
4259 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
4261 2003-06-17 Paul Mackerras <paulus@samba.org>
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
4264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
4265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
4266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
4268 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
4270 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4272 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
4274 2003-06-17 Ulrich Drepper <drepper@redhat.com>
4276 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4277 takes care of enabling cancellation.
4279 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
4280 cancelable. It's not correct to disable cancellation. Instead of
4283 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
4284 and part of the incoming set, create a temporary set without this
4286 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4287 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4289 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
4290 returning because seconds==0. Add __builtin_expect.
4292 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4294 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
4296 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
4299 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
4301 * include/libc-symbols.h: Add static_link_warning macro.
4302 * grp/initgroups.c: Print linker warning if this function
4303 is called in a static linked binary.
4304 * nss/getXXbyYY.c: Likewise.
4305 * nss/getXXbyYY_r.c: Likewise.
4306 * nss/getXXent.c: Likewise.
4307 * nss/getXXent_r.c: Likewise.
4308 * sysdeps/posix/getaddrinfo.c: Likewise.
4310 2003-06-16 Bruno Haible <bruno@clisp.org>
4312 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
4314 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
4315 (IBM1047): Add alias IBM-1047.
4316 (GBK): Add aliases MS936, WINDOWS-936.
4318 2003-06-16 Jakub Jelinek <jakub@redhat.com>
4320 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
4321 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
4322 (__xstat64_conv): Change xstat_conv to __xstat_conv.
4324 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4326 * locale/iso-639.def: Update from current official ISO 639.
4328 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
4330 2003-06-15 Andreas Jaeger <aj@suse.de>
4332 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
4334 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4335 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
4336 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
4338 * math/tgmath.h (carg): Handle real arguments.
4344 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
4345 (tests): Add test-tgmath-ret.
4346 * math/test-tgmath-ret.c: New file.
4348 * math/tgmath.h (ilogb): Return always an int.
4350 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4352 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
4353 computation so that prelinking works.
4355 2003-06-15 Ulrich Drepper <drepper@redhat.com>
4357 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
4359 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
4360 dynamic linker's map.
4362 Fix cancellation point handling wrt exception based cleanup.
4363 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
4364 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
4366 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
4367 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
4368 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
4370 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
4371 sigwait.c, and sigwaitinfo.c with exceptions.
4372 * stdlib/Makefile: Compile system.c with exceptions.
4373 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
4374 * termios/Makefile: Compile tcdrain.c with exceptions.
4375 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
4377 * sysdeps/generic/pselect.c: Likewise.
4378 * sysdeps/posix/sigpause.c: Likewise.
4379 * sysdeps/posix/system.c: Likewise.
4380 * sysdeps/posix/waitid.c: Likewise.
4381 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
4382 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
4383 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
4384 INTERNAL_SYSCALL to not use push inside asm statement so that
4385 unwind info is correct around the syscall.
4386 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
4387 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
4389 2003-06-15 Andreas Jaeger <aj@suse.de>
4391 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4394 2003-06-15 Guido Guenther <agx@sigxcpu.org>
4396 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
4399 2003-06-14 Ulrich Drepper <drepper@redhat.com>
4401 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
4404 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
4405 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
4408 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
4409 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
4410 * inet/Makefile (routines): Add inet6_option.
4411 * inet/inet6_option.c: New file.
4412 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
4413 inet6_option_init, inet6_option_append, inet6_option_alloc,
4414 inet6_option_next, and inet6_option_find.
4416 2003-06-13 Ulrich Drepper <drepper@redhat.com>
4418 * inet/netinet/ip6.h (struct ip6_ext): Define.
4420 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
4422 Fixing gcc 3.3 warnings, part II.
4423 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
4424 * elf/dl-load.c (cache_rpath): Don't inline.
4425 * iconvdata/cns11642l2.h: Always inline all functions.
4426 * iconvdata/iso-ir-165.h: Likewise.
4427 * locale/Makefile (aux): Add coll-lookup.
4428 * locale/coll-lookup.c: New file.
4429 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
4430 (collseq_table_lookup): Likewise.
4431 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
4432 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
4434 * posix/regcomp.c: Likewise.
4435 * posix/regexec.c: Likewise.
4436 * locale/programs/3level.h (*_get): Always inline.
4437 * locale/programs/locfile.h: Move definition of handle_copy to...
4438 * locale/programs/locfile.c: ...here.
4439 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
4440 (obstack_int32_grow_fast): Likewise.
4441 (utf8_encode): Likewise.
4442 (find_element): Avoid aliasing problems.
4443 (insert_value): Likewise.
4444 (collate_read): Likewise.
4445 * nss/getent.c (print_hosts): Don't inline
4446 (print_networks): Likewise.
4447 (print_shadow): Likewise.
4448 (build_doc): Likewise.
4449 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
4451 * posix/regcomp.c (re_set_fastmap): Always inline.
4452 (seek_collating_symbol_entry): Likewise.
4453 (lookup_collation_sequence_value): Likewise.
4454 (build_range_exp): Likewise.
4455 (build_collating_symbol): Likewise.
4456 * posix/regexec.c (acquire_init_state_context): Don't inline.
4457 (clean_state_log_if_need): Likewise.
4458 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
4460 (evConsTime): Likewise.
4461 (evAddTime): Likewise.
4462 (evSubTime): Likewise.
4463 (evNowTime): Likewise.
4464 (evTimeSpec): Removed.
4465 (__libc_res_nsend): Avoid aliasing problem.
4466 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
4467 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
4468 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
4470 (_dl_string_platform): Likewise.
4471 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
4472 (wcwidth_table_lookup): Likewise.
4473 (wctrans_table_lookup): Likewise.
4475 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
4477 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4479 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
4481 2003-05-29 Jim Meyering <jim@meyering.net>
4483 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
4484 && HAVE_STRFTIME]: Use underlying_strftime for %r.
4485 Suggested by Daniel Yacob <locales@geez.org>.
4487 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
4489 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
4490 @got notation with @toc.
4491 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
4492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
4494 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4496 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
4497 if only PF_INET address is needed.
4499 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
4502 * scripts/config.guess: Update from upstream version.
4503 * scripts/config.sub: Likewise.
4505 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4507 * locale/programs/ld-time.c (time_output): Also copy the era format,
4510 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
4512 * posix/transbug.c (run_test): Return 1 for failure.
4513 (do_test): Compare only if run_test is successful.
4515 2003-06-12 Simon Josefsson <jas@extundo.com>
4517 * argp/argp.h [!__THROW]: Define if undefined.
4519 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4521 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
4522 more than four parameters.
4523 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4525 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4527 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
4528 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
4529 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
4531 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
4533 2003-06-12 Roland McGrath <roland@redhat.com>
4535 * Makerules ($(objpfx)stubs): Rewrite sed magic.
4537 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
4539 * posix/regcomp.c (parse_expression): Deliver translation to
4540 build_word_op, and build_charclass.
4541 (build_charclass): Apply translation for character classes too.
4542 (build_word_op): Deliver translation to build_charclass.
4543 * posix/transbug.c: New file.
4544 * posix/Makefile (tests): Add transbug.
4546 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
4548 * posix/regexec.c (group_nodes_into_DFAstates): Check for
4549 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
4550 'continue' before the others.
4552 2003-06-11 Ulrich Drepper <drepper@redhat.com>
4554 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
4555 function [PR libc/5045].
4557 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
4560 * time/tzfile.c: Add a couple of __builtin_expect.
4562 Remove warnings gcc 3.3 shows.
4563 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
4564 * elf/dl-load.c (fillin_rpath): Likewise.
4565 (add_path): Likewise.
4566 * elf/dl-version.c (find_needed): Always inline.
4567 * elf/do-lookup.c (FCT): Don't inline.
4568 * iconv/Makefile: Extend vpath to intl subdir.
4569 (iconvconfig-modules): Add hash-string.
4570 * iconv/gconv_charset.h (strip): Don't inline.
4571 (upstr): Always inline.
4572 Move __gconv_compare_alias prototype to...
4573 * iconv/gconv_int.h: ...here.
4574 * iconv/gconv_db.c: Don't include gconv_charset.h.
4575 * iconv/gconv_conf.c (add_alias): Don't inline.
4576 (insert_module): Likewise.
4577 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
4578 (internal_ucs4_loop_unaligned): Likewise.
4579 (internal_ucs4_loop_single): Likewise.
4580 (ucs4_internal_loop): Likewise.
4581 (ucs4_internal_loop_unaligned): Likewise.
4582 (ucs4_internal_loop_single): Likewise.
4583 (internal_ucs4le_loop): Always inline.
4584 (internal_ucs4le_loop_unaligned): Likewise.
4585 (internal_ucs4le_loop_single): Likewise.
4586 (ucs4le_internal_loop): Likewise.
4587 (ucs4le_internal_loop_unaligned): Likewise.
4588 (ucs4le_internal_loop_single): Likewise.
4589 * iconv/loop.c: Always inline the defined functions.
4590 * iconvdata/cns11642.h: Likewise.
4591 * iconvdata/cns11642l1.h: Likewise.
4592 * iconvdata/euc-kr.c: Likewise.
4593 * iconvdata/gb2312.h: Likewise.
4594 * iconvdata/jis0201.h: Likewise.
4595 * iconvdata/jis0208.h: Likewise.
4596 * iconvdata/jis0212.h: Likewise.
4597 * iconvdata/jisx0213.h: Likewise.
4598 * iconvdata/ksc5601.h: Likewise.
4599 * iconvdata/utf-7.c (base64): Don't inline.
4600 * include/libc-symbols.h (symbol_set_first_element): Add cast
4601 (symbol_set_end_p): Likewise.
4602 * include/set-hooks (RUN_HOOK): Likewise.
4603 * inet/Makefile (aux): Add ifreq.
4604 * intl/Makefile (aux): Add some entries from routines. Add
4606 * intl/hash-string.c: New file.
4607 * intl/hash-string.h: Remove hash_string definition. Declare
4609 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
4610 * iconv/iconvconfig.c (new_name): Likewise.
4611 * intl/dcigettext.c (_nl_find_msg): Likewise.
4612 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4613 * io/ftw.c (open_dir_stream): Always inline.
4614 (process_entry): Don't inline.
4615 * locale/findlocale.c: Include gconv_int.h.
4616 * locale/setlocale.c (new_composite_name): Don't inline.
4617 * locale/weight.h (findidx): Always inline.
4618 * locale/weightwc.h (findidx): Likewise.
4619 * locale/programs/linereader.c (lr_ignore_rest): Define here.
4620 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
4622 (lr_getc): Always inline.
4623 (lr_ungetc): Likewise.
4624 * nss/nss_files/files-parse.c (parse_list): Likewise.
4625 * stdio-common/Makefile (aux): Add printf-parsemb and
4627 * stdio-common/_itoa.h (_itoa_word): Always inline.
4628 (_fitoa_word, _fitoa): Don't define here, only declare.
4629 * stdio-common/_itoa.c (_iftoa_word): Add here.
4631 * stdio-common/_itowa.h (_itowa_word): Always inline.
4632 * stdio-common/printf-parse.h (read_int): Don't inline.
4633 (find_spec): Don't define.
4634 Declare __find_specmb and __find_specwc.
4635 (parse_one_spec): Don't define.
4636 Declare __parse_one_specmb and __parse_one_specwc.
4637 * stdio-common/printf-parsemb.c: New file.
4638 * stdio-common/printf-parsewc.c: New file.
4639 * stdio-common/vfprintf.c: Update calls to find_spec and
4640 parse_one_spec for new names.
4641 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
4642 * stdlib/Makefile (aux): Add grouping and groupingwc.
4643 * stdlib/grouping.c: New file.
4644 * stdlib/groupingwc.c: New file.
4645 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
4647 * stdlib/rpmatch.c (try): Don't inline.
4648 * stdlib/strtod.c (round_and_return): Don't line.
4649 (str_to_mpn): Likewise.
4650 (__mpn_lshift_1): Always inline. Optimize only for constant count.
4651 Adjust for name change of correctly_grouped_prefix.
4652 * sysdeps/generic/strtol.c: Adjust for name change of
4653 correctly_grouped_prefix.
4654 * string/strxfrm.c (utf8_encode): Don't inline.
4655 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
4656 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
4657 * sysdeps/generic/ifreq.c: New file.
4658 * sysdeps/unix/sysv/linux/ifreq.c: New file.
4659 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
4660 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
4661 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
4662 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
4663 (fde_split): Likewise.
4664 (fde_merge): Likewise.
4665 (end_fde_sort): Likewise.
4666 (init_object): Likewise.
4667 (binary_search_unencoded_fdes): Likewise.
4668 (binary_search_single_encoding_fdes): Likewise.
4669 (binary_search_mixed_encoding_fdes): Likewise.
4670 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
4671 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
4672 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
4673 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4675 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
4676 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
4677 Export them. Prepend __ to name.
4678 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
4679 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
4680 conversion functions.
4681 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4682 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4683 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4684 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4685 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4686 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4687 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4688 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4689 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
4690 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
4691 to name. Change callers.
4692 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
4693 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
4695 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
4696 * time/tzfile.c (decode): Always inline.
4697 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
4698 Remove cast in tomb function call.
4699 * wcsmbs/wcsrtombs.c Likewise.
4700 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
4703 2003-06-10 Ulrich Drepper <drepper@redhat.com>
4705 * po/zh_CN.po: Update from translation team.
4707 2003-06-10 Jakub Jelinek <jakub@redhat.com>
4709 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
4710 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
4712 2003-06-10 Ulrich Drepper <drepper@redhat.com>
4714 * inet/Makefile (aux): Add check_pf.
4715 * include/ifaddrs.h: Add prototype for __check_pf.
4716 * sysdeps/generic/check_pf.c: New file.
4717 * sysdeps/unix/sysv/linux/check_pf.c: New file.
4718 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
4719 from no_netlink_support. Export.
4720 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
4723 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
4725 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
4726 from getifaddr calls.
4728 2003-06-09 Jakub Jelinek <jakub@redhat.com>
4730 * sysdeps/unix/sysv/linux/kernel-features.h
4731 (__ASSUME_SETRESGID_SYSCALL): Define.
4732 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
4733 instead of __ASSUME_SETRESUID_SYSCALL.
4734 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
4736 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
4737 inline syscall if __NR_setresuid32 is defined.
4738 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
4739 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
4740 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
4741 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4742 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
4743 code handling non-existant setresgid32 syscall with
4744 #if __ASSUME_SETRESGID_SYSCALL == 0.
4746 2003-06-09 Andreas Schwab <schwab@suse.de>
4748 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
4749 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
4750 $(objpfx)rpc-proto.d.
4751 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
4752 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
4753 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
4755 2003-06-08 Ulrich Drepper <drepper@redhat.com>
4757 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
4758 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
4759 defined drop compatibility code.
4760 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
4761 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
4762 defined drop compatibility code.
4763 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
4764 setresuid32 syscall directly if possible.
4765 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
4766 setresgid32 syscall directly if possible.
4767 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
4768 compliant. Don't change sgid.
4769 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
4770 compliant. Don't change suid.
4772 * config.h.in: Add have-forced-unwind.
4773 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
4775 2003-06-07 Ulrich Drepper <drepper@redhat.com>
4777 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
4778 returned status from child matches.
4780 * Makeconfig (gnulib): Add -lgcc_eh once again.
4782 2003-06-06 Ulrich Drepper <drepper@redhat.com>
4784 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
4786 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
4787 %edx for first parameter. This means no pushl and therefore the
4788 unwind info isn't screwed up.
4790 2003-06-04 Richard Henderson <rth@redhat.com>
4792 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
4793 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4794 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
4795 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
4796 entry sequence and explicit relocs. Add unwind info for sigreturn
4798 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
4800 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
4801 Annotate some parameters.
4802 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
4804 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
4806 * include/libc-symbols.h (symbol_set_declare): Use arrays
4807 of unspecified size.
4809 2003-06-04 Jakub Jelinek <jakub@redhat.com>
4811 * config.make.in (ASFLAGS-config): New.
4812 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
4813 * configure.in (libc_cv_as_noexecstack): New check.
4814 (ASFLAGS_config): Substitute.
4816 2003-06-04 Jakub Jelinek <jakub@redhat.com>
4818 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
4819 hypot, logb): Protect with #ifdef __FAST_MATH__.
4821 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4823 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
4824 #ifdef __FAST_MATH__.
4826 2003-06-03 Ulrich Drepper <drepper@redhat.com>
4828 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
4829 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
4830 * posix/globtest.sh: Adjust for this change.
4832 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
4833 to get the actual PID value used in the records passed up.
4834 (getifaddrs): Don't initialize nh.pid here.
4836 2003-06-02 Ulrich Drepper <drepper@redhat.com>
4838 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
4841 * po/zh_CN.po: Update from translation team.
4843 * posix/getconf.c (main): Also recognize names without the
4846 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
4848 2003-06-02 Bernd Schmidt <bernds@redhat.com>
4850 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
4851 ldexpf, ldexpl): Only define if __FAST_MATH__.
4853 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
4855 Replace hard-coded offsets into struct sigcontext with generated file.
4856 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
4857 * sysdeps/unix/sysv/linux/ia64/Makefile
4858 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
4859 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
4860 defining SC_* macros here.
4862 2003-06-02 Jakub Jelinek <jakub@redhat.com>
4864 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
4866 2003-06-01 Jakub Jelinek <jakub@redhat.com>
4868 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
4870 2003-06-01 Ulrich Drepper <drepper@redhat.com>
4872 * test-skeleton.c (main): Request getopt to not reorder the
4875 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
4877 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
4880 2003-05-31 Ulrich Drepper <drepper@redhat.com>
4882 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
4884 2003-05-31 Jakub Jelinek <jakub@redhat.com>
4886 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
4888 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
4889 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
4890 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
4892 2003-05-31 Ulrich Drepper <drepper@redhat.com>
4894 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
4897 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
4899 * libio/fileops.c (_IO_file_open): Don't mark as inline.
4901 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
4904 2003-05-30 Ulrich Drepper <drepper@redhat.com>
4906 * scripts/config.guess: Update from master copy.
4907 * scripts/config.sub: Likewise.
4909 2003-05-30 Guido Guenther <agx@sigxcpu.org>
4911 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
4912 SETUP_GP64 and friends.
4913 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
4914 names in internal_syscall{6,7}.
4915 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
4916 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
4917 number of syscall arguments.
4918 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4919 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4920 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4922 2003-05-30 Andreas Jaeger <aj@suse.de>
4924 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4927 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
4930 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
4932 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4935 2003-05-30 Jakub Jelinek <jakub@redhat.com>
4937 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
4940 2003-05-11 Andreas Schwab <schwab@suse.de>
4942 * Makerules: Always use -MP together with -MD.
4943 (sed-remove-dotot): Substitute $(..) also at start of line.
4944 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
4945 Generated defines with a single compiler call.
4946 Use $(sed-remove-dotdot).
4947 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
4948 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
4949 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
4950 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
4951 * sysdeps/unix/sysv/linux/mips/Makefile
4952 ($(objpfx)syscall-%.h): Likewise.
4954 2003-05-28 Roland McGrath <roland@redhat.com>
4956 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
4958 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
4960 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
4962 2003-05-28 Roland McGrath <roland@redhat.com>
4964 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
4965 rt_sigprocmask system call.
4966 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
4967 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
4969 2003-05-28 Ulrich Drepper <drepper@redhat.com>
4971 * include/libc-symbols.h: Define hidden attribute for real also if
4972 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
4974 * csu/Makefile: Add rules to build Scrt1.o.
4975 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
4976 * sysdeps/x86_64/elf/start.S: Likewise.
4978 2003-05-27 Jakub Jelinek <jakub@redhat.com>
4980 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
4981 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
4982 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
4983 pa_short_int, pa_u_short_int and pa_float.
4985 2003-05-26 Jakub Jelinek <jakub@redhat.com>
4987 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
4988 _IO_str_init_static_internal.
4989 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
4990 change size argument to _IO_size_t, don't limit sprintf to 64M.
4991 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
4992 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
4993 _IO_size_t, don't limit swprintf to 256M.
4994 (_IO_wstr_init_readonly): Remove.
4995 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
4997 (_IO_wstr_init_readonly): Remove prototype.
4998 * libio/iovsprintf.c (_IO_vsprintf): Use
4999 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5000 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5001 * libio/memstream.c (open_memstream): Likewise.
5002 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5003 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5004 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5005 * stdio-common/tst-sprintf.c (main): Add new test.
5007 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5009 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5010 other implementation in respect of multiple uses of parameter with
5013 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5015 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5016 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5018 2003-05-22 Andreas Jaeger <aj@suse.de>
5020 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5022 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5023 * sysdeps/x86_64/strtok.S: Likewise.
5025 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5027 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5028 to -60 and define SI_TKILL.
5030 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5032 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5033 (feexcp_mask_test): Likewise.
5035 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5037 * locale/programs/locale.c (main): Fix typo in last patch.
5039 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5040 __init_array_start, __init_array_end, __fini_array_start, and
5041 __fini_array_end as hidden.
5043 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5045 * locale/programs/locale.c (main): Report an error if setlocale()
5046 fails [PR libc/2254].
5048 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5050 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5052 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5055 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5056 LOADARGS_6): Don't error if syscall argument is a string literal.
5057 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5058 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5059 LOADARGS_6): Likewise.
5061 2003-05-21 Andreas Jaeger <aj@suse.de>
5063 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5064 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5065 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5067 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5071 * configure.in: Test for asm cfi directives.
5073 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5075 2003-05-17 Andreas Jaeger <aj@suse.de>
5077 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5079 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5081 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5083 * rt/Makefile (tests): Add tst-clock_nanosleep.
5084 * rt/tst-clock_nanosleep.c: New file.
5085 * posix/Makefile (tests): Add tst-nanosleep.
5086 * posix/tst-nanosleep.c: New file.
5088 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5090 * include/features.h (__USE_XOPEN2K): Define also for
5091 _POSIX_C_SOURCE>=200112L.
5093 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5094 SI_TKILL code into SI_USER.
5095 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5097 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5099 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5101 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5102 Remove sym argument, always use refsym.
5103 (__process_machine_rela): Adjust callers.
5104 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5106 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5108 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5110 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5112 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5113 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5114 print numeric values.
5116 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5118 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5120 2003-05-14 Andreas Schwab <schwab@suse.de>
5122 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5124 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5126 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
5127 even if no DT_NEEDED is present.
5129 2003-05-13 David Mosberger <davidm@hpl.hp.com>
5131 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
5132 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
5133 __sigjmp_save) so we can't keep the saved unat value in a scratch
5134 register (r16). Use loc2 instead.
5136 2003-05-13 Ulrich Drepper <drepper@redhat.com>
5138 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
5139 binaries it has to be relocatable.
5141 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
5143 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5145 * sysdeps/powerpc/bits/atomic.h
5146 (__arch_compare_and_exchange_bool_8_rel): Define.
5147 (__arch_compare_and_exchange_bool_16_rel): Define.
5148 (__ARCH_REL_INSTR): Define if not already defined.
5149 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
5150 (__arch_atomic_decrement_if_positive_32):
5151 Add "memory" to clobber list.
5152 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
5153 (__arch_compare_and_exchange_val_32_rel): Define.
5154 (__arch_atomic_exchange_32): Remove.
5155 (__arch_atomic_exchange_32_acq): Define.
5156 (__arch_atomic_exchange_32_rel): Define.
5157 (atomic_compare_and_exchange_val_rel): Define.
5158 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
5159 (atomic_exchange_rel): Define.
5160 * sysdeps/powerpc/powerpc32/bits/atomic.h
5161 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
5162 (__arch_compare_and_exchange_bool_32_rel): Define.
5163 (__arch_compare_and_exchange_bool_64_rel): Define.
5164 (__arch_compare_and_exchange_val_64_rel): Define.
5165 (__arch_atomic_exchange_64): Remove.
5166 (__arch_atomic_exchange_64_acq): Define.
5167 (__arch_atomic_exchange_64_rel): Define.
5168 * sysdeps/powerpc/powerpc64/bits/atomic.h
5169 (__arch_compare_and_exchange_bool_32_rel): Define.
5170 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
5171 (__arch_compare_and_exchange_bool_64_rel): Define.
5172 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
5173 (__arch_compare_and_exchange_val_64_rel): Define.
5174 (__arch_atomic_exchange_64): Remove.
5175 (__arch_atomic_exchange_64_acq): Define.
5176 (__arch_atomic_exchange_64_rel): Define.
5177 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
5178 (__arch_atomic_decrement_if_positive_64):
5179 Add "memory" to clobber list.
5180 [!UP](__ARCH_REL_INSTR): Define as lwsync.
5182 2003-05-11 Andreas Schwab <schwab@suse.de>
5184 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
5186 2003-05-11 Ulrich Drepper <drepper@redhat.com>
5188 * time/tst-strftime.c (do_test): Add tests for - flag.
5190 2003-05-11 Jim Meyering <jim@meyering.net>
5192 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
5193 the space-padded-by-default conversion specifiers, %e, %k, %l.
5195 2003-05-11 Andreas Schwab <schwab@suse.de>
5197 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
5199 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5201 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
5202 already defined and when really needed.
5203 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5205 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5207 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
5208 headers, add defines from kernel header, move it from here...
5209 * inet/netinet/igmp.h: ... to here.
5210 * inet/Makefile (headers): Add netinet/igmp.h.
5211 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
5212 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
5214 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5216 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
5217 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
5219 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5221 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
5222 (remove __THROW from possible cancellation points).
5224 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5226 * posix/sched.h (CPU_SETSIZE): Define.
5228 2003-05-09 Ulrich Drepper <drepper@redhat.com>
5230 * Makeconfig (gnulib): Remove -lgcc_eh again.
5232 * posix/sched.h: Change prototypes of sched_getaffinity and
5233 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
5234 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
5235 * sysdeps/generic/sched_setaffinity.c: Likewise.
5236 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
5237 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
5238 __CPU_CLR, and __CPU_ISSET.
5239 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5240 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
5241 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
5243 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
5244 (atomic_exchange_rel): New #define.
5245 * sysdeps/ia64/bits/atomic.h: Likewise.
5246 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
5248 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
5249 * sysdeps/powerpc/bits/atomic.h: Likewise.
5250 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
5251 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
5252 * sysdeps/x86_64/bits/atomic.h: Likewise.
5253 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
5255 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
5257 2003-05-08 Ulrich Drepper <drepper@redhat.com>
5259 * malloc/thread-m.h: Remove special handling of thread_atfork if
5260 HAVE_register_atfork_malloc is defined.
5262 2003-05-07 Andreas Jaeger <aj@suse.de>
5264 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
5267 2003-05-06 Ulrich Drepper <drepper@redhat.com>
5269 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
5270 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5271 * libio/libioP.h: Declare _IO_old_init.
5272 * libio/genops.c (_IO_no_init): Split in two. New function
5275 2003-05-05 Ulrich Drepper <drepper@redhat.com>
5277 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
5279 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
5281 * include/unistd.h: Declare __libc_enable_secure_decided.
5282 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
5283 and AT_EGID. If all found, set __libc_enable_secure and
5284 __libc_enable_secure_decided.
5286 * sysdeps/generic/libc-start.c [!SHARED]: Call
5287 __libc_check_standard_fds after __libc_init_first.
5289 2003-05-05 Roland McGrath <roland@redhat.com>
5291 * Makerules (common-before-compile): New variable.
5292 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
5293 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
5294 to after all setting of before-compile.
5296 2003-05-05 Jakub Jelinek <jakub@redhat.com>
5298 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5299 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
5300 * sysdeps/powerpc/powerpc32/bits/atomic.h
5301 (__arch_compare_and_exchange_val_64_acq): Likewise.
5302 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5303 (__arch_compare_and_exchange_val_8_acq,
5304 __arch_compare_and_exchange_val_16_acq,
5305 __arch_compare_and_exchange_val_64_acq): Likewise.
5306 * sysdeps/sparc/sparc64/bits/atomic.h
5307 (__arch_compare_and_exchange_val_8_acq,
5308 __arch_compare_and_exchange_val_16_acq): Likewise.
5309 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5310 __arch_compare_and_exchange_val_16_acq,
5311 __arch_compare_and_exchange_val_64_acq): Likewise.
5312 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5313 (__arch_compare_and_exchange_val_64_acq): Likewise.
5314 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
5316 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
5318 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5319 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
5320 Return long instead of int.
5321 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
5322 0xfffff001u with -4095UL.
5324 2003-05-05 Andreas Jaeger <aj@suse.de>
5326 * sysdeps/x86_64/fpu_control.h: New from i386.
5328 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
5329 Define if not defined.
5331 * sunrpc/Makefile (generated-dirs): New variable.
5332 * resolv/Makefile (generated): New variable.
5334 2003-05-04 Roland McGrath <roland@redhat.com>
5336 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
5337 Depend on $(before-compile).
5339 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
5340 pattern rule. The implicit rule could be ruled out when $(objpfx)
5341 didn't exist at the time of its consideration (ugh!).
5343 * Makerules (+make-deps): Fix target matching.
5344 Use $(sed-remove-dotdot).
5346 2003-05-03 Ulrich Drepper <drepper@redhat.com>
5348 * nscd/nscd.c (main): Parse config file right after parsing
5349 parameters. Then, if get_stats is true, call receive_print_stats.
5350 Drop parameter from nscd_init call.
5351 (get_stats): New variable.
5352 (parse_opt): Set get_stats, don't call receive_print_stats here.
5353 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
5355 * nscd/connections.c (stat_user, stat_uid): New variables.
5357 (nscd_init): Don't read configuration file here. Drop parameter.
5358 (handle_request): Cleanup handling of non-database lookup requests.
5359 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
5360 Get UID of the specified user. Use xstrdup instead of strdup.
5361 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
5363 * nscd/Makefile (nscd-modules): Add xstrdup.
5364 * nscd/nscd.conf: Document stat-user entry.
5366 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
5368 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
5371 2003-04-22 Roland McGrath <roland@redhat.com>
5373 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
5374 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5375 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
5376 * elf/dl-support.c: Update defn.
5377 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
5378 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5379 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
5380 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
5381 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
5382 set, set up a link_map for the preloaded, prelinked object.
5384 2003-05-03 Roland McGrath <roland@redhat.com>
5386 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
5387 * stdio-common/Makefile: ... not here.
5389 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
5390 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
5392 2003-05-02 Ulrich Drepper <drepper@redhat.com>
5394 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
5396 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
5398 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
5399 comparing ftab elements.
5400 (_dl_unmap): Fix typo in test.
5401 (_dl_make_fptr): Fix typos introduced in last change.
5403 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
5404 original patch. Use non-exported symbols. Mark translatable
5405 strings. Pretty printing.
5407 2003-05-02 Roland McGrath <roland@redhat.com>
5409 * Makerules (do-stamp): Do $(make-target-directory).
5411 2003-04-07 H.J. Lu <hjl@gnu.org>
5413 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
5415 2003-04-03 H.J. Lu <hjl@gnu.org>
5417 * sysdeps/ia64/dl-fptr.c: Moved to ...
5418 * sysdeps/generic/dl-fptr.c: Here.
5420 * sysdeps/generic/dl-fptr.h: New.
5421 * sysdeps/ia64/dl-fptr.h: New.
5423 * sysdeps/ia64/dl-symaddr.c: Moved to ...
5424 * sysdeps/generic/dl-symaddr.c: here.
5426 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
5427 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
5428 (ia64_fdesc): Likewise.
5429 (ia64_fdesc_table): Likewise.
5430 (__ia64_make_fptr): Likewise.
5431 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
5432 with _dl_boot_fptr_table.
5433 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
5435 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
5437 2003-05-01 Roland McGrath <roland@redhat.com>
5439 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
5440 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5442 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5443 Use $(make-target-directory).
5444 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
5446 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
5447 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
5448 (compile-command.s, compile-command.c): Likewise.
5449 ($(objpfx)%.d): All such pattern rules removed.
5450 ($(+sysdir_pfx)sysd-rules): Don't generate them.
5451 ($(common-objpfx)dummy.d): Target removed.
5452 (make-dummy-dep): Variable removed.
5453 (generate-md5): Likewise.
5454 (%.d: %.dt): New pattern rule.
5455 (+depfiles): Use $(wildcard) function to get just existing *.d files
5456 and .d files for existing *.dt files.
5457 (common-clean): Remove all *.d and *.dt files.
5458 (before-compile): Add $(objpfx). when it doesn't exist,
5459 regardless of $(no_deps).
5460 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
5461 (rtld-depfiles): Use .os.d instead of .d names.
5462 Include existing *.d files and .d files for existing *.dt files.
5464 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
5465 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
5467 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
5468 Do s-*.d includes only if we have some syscall routines in this subdir.
5470 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
5471 @nobits. The former is accepted by gas on any ELF platform.
5473 2003-05-01 Ulrich Drepper <drepper@redhat.com>
5475 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
5477 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
5479 2003-04-29 Andreas Schwab <schwab@suse.de>
5481 * string/test-strcat.c (do_one_test): Fix attribute name.
5483 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
5485 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
5486 uc_flags long for all ABIs.
5488 2003-04-30 Andreas Jaeger <aj@suse.de>
5490 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
5491 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
5492 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
5493 Add bi-arch support.
5495 2003-04-30 Ulrich Drepper <drepper@redhat.com>
5497 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
5498 (__posix_memalign): Use __memalign_internal instead of memalign.
5500 2003-04-29 Roland McGrath <roland@redhat.com>
5502 * configure.in: Search for AUTOCONF unconditionally.
5503 Just don't complain about missing it under --without-cvs.
5505 * include/libc-symbols.h (__symbol_set_attribute): New macro,
5506 give hidden for [SHARED] and weak for [! SHARED].
5507 (symbol_set_declare): Use that. Never need weak_extern these days.
5508 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
5509 Depend on $(..)Makerules.
5511 2003-04-29 Ulrich Drepper <drepper@redhat.com>
5513 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
5514 variants of socket, bind, recvmsg, and sendto.
5516 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
5518 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
5519 * signal/sigaddset.c: Add libc_hidden_def.
5520 * signal/sigdelset.c: Likewise.
5522 2003-04-29 Jakub Jelinek <jakub@redhat.com>
5524 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
5525 to the end of the file.
5527 * configure.in: Change __oline__ to $LINENO.
5528 (HAVE_BUILTIN_REDIRECTION): New check.
5529 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
5530 * include/libc-symbols.h (libc_hidden_builtin_proto,
5531 libc_hidden_builtin_def, libc_hidden_builtin_weak,
5532 libc_hidden_builtin_ver): Define.
5533 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
5534 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
5535 strspn, strstr): Add libc_hidden_builtin_proto.
5536 * intl/plural.y: Include string.h.
5537 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
5538 libc_hidden_builtin_def.
5539 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
5540 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
5541 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
5542 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
5543 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
5544 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
5545 * sysdeps/alpha/memchr.S (memchr): Likewise.
5546 * sysdeps/alpha/memset.S (memset): Likewise.
5547 * sysdeps/alpha/strcat.S (strcat): Likewise.
5548 * sysdeps/alpha/strchr.S (strchr): Likewise.
5549 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
5550 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
5551 * sysdeps/alpha/strlen.S (strlen): Likewise.
5552 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
5553 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
5554 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
5555 * sysdeps/arm/memset.S (memset): Likewise.
5556 * sysdeps/arm/strlen.S (strlen): Likewise.
5557 * sysdeps/generic/memchr.c (memchr): Likewise.
5558 * sysdeps/generic/memcpy.c (memcpy): Likewise.
5559 * sysdeps/generic/memmove.c (memmove): Likewise.
5560 * sysdeps/generic/memset.c (memset): Likewise.
5561 * sysdeps/generic/strcat.c (strcat): Likewise.
5562 * sysdeps/generic/strchr.c (strchr): Likewise.
5563 * sysdeps/generic/strcmp.c (strcmp): Likewise.
5564 * sysdeps/generic/strcpy.c (strcpy): Likewise.
5565 * sysdeps/generic/strcspn.c (strcspn): Likewise.
5566 * sysdeps/generic/strlen.c (strlen): Likewise.
5567 * sysdeps/generic/strncmp.c (strncmp): Likewise.
5568 * sysdeps/generic/strncpy.c (strncpy): Likewise.
5569 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
5570 * sysdeps/generic/strrchr.c (strrchr): Likewise.
5571 * sysdeps/generic/strspn.c (strspn): Likewise.
5572 * sysdeps/generic/strstr.c (strstr): Likewise.
5573 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
5574 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
5575 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
5576 * sysdeps/i386/i586/memset.S (memset): Likewise.
5577 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
5578 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
5579 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
5580 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
5581 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
5582 * sysdeps/i386/i686/memset.S (memset): Likewise.
5583 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
5584 * sysdeps/i386/memchr.S (memchr): Likewise.
5585 * sysdeps/i386/memset.c (memset): Likewise.
5586 * sysdeps/i386/strchr.S (strchr): Likewise.
5587 * sysdeps/i386/strcspn.S (strcspn): Likewise.
5588 * sysdeps/i386/strlen.c (strlen): Likewise.
5589 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
5590 * sysdeps/i386/strrchr.S (strrchr): Likewise.
5591 * sysdeps/i386/strspn.S (strspn): Likewise.
5592 * sysdeps/ia64/memchr.S (memchr): Likewise.
5593 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
5594 * sysdeps/ia64/memmove.S (memmove): Likewise.
5595 * sysdeps/ia64/memset.S (memset): Likewise.
5596 * sysdeps/ia64/strcat.S (strcat): Likewise.
5597 * sysdeps/ia64/strchr.S (strchr): Likewise.
5598 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
5599 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
5600 * sysdeps/ia64/strlen.S (strlen): Likewise.
5601 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
5602 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
5603 * sysdeps/m68k/memchr.S (memchr): Likewise.
5604 * sysdeps/m68k/strchr.S (strchr): Likewise.
5605 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
5606 * sysdeps/mips/mips64/memset.S (memset): Likewise.
5607 * sysdeps/mips/memcpy.S (memcpy): Likewise.
5608 * sysdeps/mips/memset.S (memset): Likewise.
5609 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
5610 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
5611 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
5612 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
5613 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
5614 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
5615 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
5616 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
5617 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
5618 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
5619 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
5620 * sysdeps/powerpc/strcat.c (strcat): Likewise.
5621 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
5622 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
5623 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
5624 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
5625 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
5626 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
5627 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
5628 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
5629 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
5630 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
5631 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
5632 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
5633 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
5634 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
5635 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
5636 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
5637 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
5638 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
5639 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
5640 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
5641 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
5642 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
5643 * sysdeps/sh/memcpy.S (memcpy): Likewise.
5644 * sysdeps/sh/memset.S (memset): Likewise.
5645 * sysdeps/sh/strlen.S (strlen): Likewise.
5646 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
5647 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
5648 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
5649 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
5650 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
5651 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
5652 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
5653 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
5654 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
5655 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
5656 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
5657 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
5658 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
5659 * sysdeps/x86_64/memset.S (memset): Likewise.
5660 * sysdeps/x86_64/strcat.S (strcat): Likewise.
5661 * sysdeps/x86_64/strchr.S (strchr): Likewise.
5662 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
5663 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
5664 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
5665 * sysdeps/x86_64/strlen.S (strlen): Likewise.
5666 * sysdeps/x86_64/strspn.S (strspn): Likewise.
5667 * string/string-inlines.c: Move...
5668 * sysdeps/generic/string-inlines.c: ...here.
5669 (__memcpy_g, __strchr_g): Remove.
5670 (__NO_INLINE__): Define before including <string.h>,
5671 undefine after. Include bits/string.h and bits/string2.h.
5672 * sysdeps/i386/i486/string-inlines.c: New file.
5673 * sysdeps/i386/string-inlines.c: New file.
5674 * sysdeps/i386/i486/Versions: Remove.
5675 All GLIBC_2.1.1 symbols moved...
5676 * sysdeps/i386/Versions (libc): ...here.
5678 2003-04-29 Ulrich Drepper <drepper@redhat.com>
5680 * sysdeps/i386/fpu/Makefile: New file.
5681 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
5682 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
5683 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
5684 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
5687 2003-04-28 Ulrich Drepper <drepper@redhat.com>
5689 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
5690 * nscd/nscd_getpw_r.c: Likewise.
5691 * nscd/nscd_gethst_r.c: Likewise.
5693 2003-04-27 Ulrich Drepper <drepper@redhat.com>
5695 * nscd/pwdcache.c: Initialize .version element in result.
5696 * nscd/grpcache.c: Likewise.
5697 * nscd/pwdcache.c: Likewise.
5699 2003-04-27 Andreas Schwab <schwab@suse.de>
5701 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
5704 2003-04-27 Andreas Schwab <schwab@suse.de>
5706 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
5708 2003-04-27 Ulrich Drepper <drepper@redhat.com>
5710 * nscd/connections.c (client_queued): New variable.
5711 (nscd_run): Revamp the loop. Don't call poll except for cleanup
5712 threads. Keep track of the number of delays caused because of busy
5714 * nscd/nscd.h: Declare client_queued.
5715 * nscd/nscd_stat.c: Transmit and print client_queued information.
5717 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
5719 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
5720 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
5722 2003-04-26 Ulrich Drepper <drepper@redhat.com>
5724 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
5725 tracking of freed memory in static TLS block.
5726 * elf/Makefile: Add rules to build and run tst-tls13.
5727 * elf/tst-tls13.c: New file.
5728 * elf/tst-tlsmod13.c: New file.
5729 * elf/tst-tlsmod13a.c: New file.
5731 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
5733 * elf/dl-reloc.c: Pretty printing.
5735 2003-04-26 Roland McGrath <roland@redhat.com>
5737 * Makerules ($(common-objpfx)shlib.lds): New target.
5738 (common-generated): Add it.
5739 (build-shlib, build-module): Use that instead of generating every time.
5740 ($(common-objpfx)libc.so): Depend on it.
5741 (lib%.so rule): Likewise.
5742 (build-module-helper-objlist): Remove %.lds.
5743 (LDSEDCMD-c.so): Variable removed.
5744 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
5745 Depend on $(common-objpfx)shlib.lds.
5746 * dlfcn/Makefile ($(test-modules)): Likewise.
5748 2003-04-26 Roland McGrath <roland@frob.com>
5750 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
5752 2003-04-26 Andreas Schwab <schwab@suse.de>
5754 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
5756 2003-04-25 Ulrich Drepper <drepper@redhat.com>
5758 * nscd/cache.c (cache_search): Keep track of how many chain links
5759 we searched and update table statistics.
5760 (cache_add): Keep track of how many values are in the table.
5761 (prune_cache): Likewise. Keep track of locking success.
5762 Print messages about removed entries in separate pass.
5763 * nscd/connections.c (handle_request): Don't print debug message here.
5764 The caller will do it. Keep track of locking success.
5765 (nscd_run): Print debug message. Also print PID of the client process.
5766 * nscd/nscd.c (start_time): New variable.
5767 (main): Remember start time.
5768 * nscd/nscd.h: Declare start_time.
5769 (struct database): Add more members for new statistics.
5770 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
5773 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
5775 2003-04-22 Jakub Jelinek <jakub@redhat.com>
5777 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
5778 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
5779 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
5781 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
5782 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
5783 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
5784 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
5787 2003-04-24 Ulrich Drepper <drepper@redhat.com>
5789 * nss/getent.c: Implement alternative host database lookup via
5792 * include/ifaddrs.h: New file.
5793 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
5795 * resolv/netdb.h: ...here.
5796 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
5797 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5798 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
5801 2003-04-24 Roland McGrath <roland@redhat.com>
5803 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
5805 2003-04-24 Jakub Jelinek <jakub@redhat.com>
5807 * elf/dl-reloc.c (allocate_static_tls): Rename to...
5808 (_dl_allocate_static_tls): ... this function. No longer static.
5809 (CHECK_STATIC_TLS): Adjust.
5810 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
5811 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
5812 Add SYM_MAP argument.
5813 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
5814 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
5815 TLS relocs here. #ifdef out relocs which never appear in
5816 .gnu.conflict section from dl-conflict.c processing.
5817 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5818 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
5820 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
5821 out relocs which never appear in .gnu.conflict section from
5822 dl-conflict.c processing.
5823 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
5824 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5825 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
5826 Use r_type in RESOLVE macro.
5828 2003-04-23 Ulrich Drepper <drepper@redhat.com>
5830 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
5831 NULL. Remove code made redundant by this assumption.
5832 (__yp_unbind): Add call to free. Adjust all callers.
5834 * nis/ypclnt.c (yp_all): Free the dom_binding object after
5837 * grp/initgroups.c (getgrouplist): Don't copy too much into the
5838 user buffer if more groups are found than fit into it.
5840 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
5843 2003-04-23 Jakub Jelinek <jakub@redhat.com>
5845 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
5846 not rc == errno. Use extend_alloca.
5848 * elf/tst-tls12.c (main): Fix declaration.
5849 * elf/tst-tls10.c (dummy): Make hidden instead of static.
5850 * elf/tst-tlsmod7.c (dummy): Likewise.
5851 * elf/tst-tlsmod8.c (dummy): Likewise.
5852 * elf/tst-tlsmod9.c (dummy): Likewise.
5854 2003-04-22 Roland McGrath <roland@redhat.com>
5856 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
5857 (open_not_cancel): Make last argument non-optional.
5858 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
5859 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
5860 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5862 * include/tls.h: Protect against multiple inclusion.
5864 2003-04-22 Ulrich Drepper <drepper@redhat.com>
5866 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
5867 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
5868 open_socket. Not static anymore.
5869 (nscd_gethst_r): Use __nscd_open_socket.
5870 * nscd/nscd_getgr_r.c (open_socket): Removed.
5871 (nscd_getgr_r): Use __nscd_open_socket.
5872 * nscd/nscd_getpw_r.c (open_socket): Removed.
5873 (nscd_getpw_r): Use __nscd_open_socket.
5875 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
5876 * nscd/connections.c (handle_request): Add cast to avoid warning.
5878 2003-04-21 Ulrich Drepper <drepper@redhat.com>
5880 * signal/sigfillset.c: Moved to...
5881 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
5882 do not set the corresponding bit.
5884 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
5886 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
5887 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
5888 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
5889 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
5890 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
5892 2003-04-20 Ulrich Drepper <drepper@redhat.com>
5894 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
5895 first syscall parameter to const char*.
5897 2003-04-19 Ulrich Drepper <drepper@redhat.com>
5899 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
5901 * configure.in: Add AC_PROG_CXX.
5902 * config.make.in (CXX): Define.
5904 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
5905 __len to size_t to avoid warnings.
5907 2003-04-18 Jes Sorensen <jes@wildopensource.com>
5909 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
5911 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5913 2003-04-19 Ulrich Drepper <drepper@redhat.com>
5915 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
5916 UNREGISTER_ATFORK if d == NULL.
5918 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
5919 * dirent/dirent.h: Likewise.
5920 * dlfcn/dlfcn.h: Likewise.
5921 * grp/grp.h: Likewise.
5922 * iconv/iconv.h: Likewise.
5923 * io/fcntl.h: Likewise.
5924 * io/ftw.h: Likewise.
5925 * libio/stdio.h: Likewise.
5926 * misc/sys/mman.h: Likewise.
5927 * misc/sys/select.h: Likewise.
5928 * misc/sys/syslog.h: Likewise.
5929 * misc/sys/uio.h: Likewise.
5930 * posix/spawn.h: Likewise.
5931 * posix/unistd.h: Likewise.
5932 * posix/sys/wait.h: Likewise.
5933 * pwd/pwd.h: Likewise.
5934 * resolv/netdb.h: Likewise.
5935 * rt/aio.h: Likewise.
5936 * shadow/shadow.h: Likewise.
5937 * signal/signal.h: Likewise.
5938 * socket/sys/socket.h: Likewise.
5939 * stdlib/stdlib.h: Likewise.
5940 * streams/stropts.h: Likewise.
5941 * string/string.h: Likewise.
5942 * sysdeps/gnu/utmpx.h: Likewise.
5943 * sysvipc/sys/msg.h: Likewise.
5944 * termios/termios.h: Likewise.
5945 * time/time.h: Likewise.
5946 * wcsmbs/wchar.h: Likewise.
5947 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
5949 * misc/daemon.c: Likewise.
5950 * sysdeps/generic/backtracesymsfd.c: Likewise.
5951 * sysdeps/generic/check_fds.c: Likewise.
5952 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
5953 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
5954 * sysdeps/generic/not-cancel.h: New file.
5955 * csu/Makefile (distribute): Add not-cancel.h.
5956 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
5957 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
5958 for assert.c and assert-perr.c to include <fatal-prepare.h>.
5959 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
5961 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
5962 errno and unlink first.
5964 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
5966 2003-04-18 Ulrich Drepper <drepper@redhat.com>
5968 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
5969 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
5971 2003-04-17 Ulrich Drepper <drepper@redhat.com>
5973 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
5975 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
5976 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
5979 * signal/Makefile (tests): Add tst-sigsimple.
5980 * signal/tst-sigsimple.c: New file.
5982 2003-04-16 Jakub Jelinek <jakub@redhat.com>
5984 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
5986 (tests): Add tst-tls1[0-2].
5987 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
5988 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
5989 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
5990 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
5991 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
5992 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
5993 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
5994 * elf/tst-tls10.c: New test.
5995 * elf/tst-tls11.c: New test.
5996 * elf/tst-tls12.c: New test.
5997 * elf/tst-tls10.h: New file.
5998 * elf/tst-tlsmod7.c: New file.
5999 * elf/tst-tlsmod8.c: New file.
6000 * elf/tst-tlsmod9.c: New file.
6001 * elf/tst-tlsmod10.c: New file.
6002 * elf/tst-tlsmod11.c: New file.
6003 * elf/tst-tlsmod12.c: New file.
6005 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6007 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6008 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6009 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6011 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6013 * posix/regex.h: Include <sys/types.h>.
6015 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6016 The signal number must be checked.
6017 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6018 The signal number must be checked [PR libc/5004].
6020 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6021 don't do anything fancy.
6023 * sysdeps/generic/bits/libc-lock.h: Define
6024 __rtld_lock_define_initialized_recursive.
6026 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6027 contacting nscd if NOT_USENSCD_NAME > 0.
6028 * nss/nsswitch.c (__nss_disable_nscd): New function.
6029 * nss/nsswitch.h: Declare it.
6030 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6031 * nscd/nscd.c (main): Call __nss_disable_nscd.
6033 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6035 * stdio-common/perror.c (perror): We don't need to set the offset
6036 to _IO_pos_bad, this is how streams are initialized.
6038 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6039 (time_output): If necessary, allocate new buffer for .name string if
6040 padding is required.
6042 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6043 before copying. This might leave holes in the list. Adjust
6044 pointers if necessary.
6045 (netlink_receive): Allocate only one block.
6046 (free_netlink_handle): Adjust appropriately.
6047 (getifaddrs): Lots of cleanups.
6049 * string/test-strncpy.c (do_one_test): Mark start and stop as
6051 * string/test-memchr.c: Likewise.
6052 * string/test-memcmp.c: Likewise.
6053 * string/test-memcpy.c: Likewise.
6054 * string/test-memmove.c: Likewise.
6055 * string/test-memset.c: Likewise.
6056 * string/test-strcat.c: Likewise.
6057 * string/test-strchr.c: Likewise.
6058 * string/test-strcmp.c: Likewise.
6059 * string/test-strcpy.c: Likewise.
6060 * string/test-strlen.c: Likewise.
6061 * string/test-strncmp.c: Likewise.
6062 * string/test-strpbrk.c: Likewise.
6063 * string/test-strrchr.c: Likewise.
6064 * string/test-strspn.c: Likewise.
6066 2003-04-15 Roland McGrath <roland@redhat.com>
6068 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6070 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6071 INTUSE(__register_frame_info_bases).
6073 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6075 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6076 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6077 AT_SYSINFO_EH_FRAME. Adjust string width.
6078 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6079 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6080 Add _dl_sysinfo_eh_frame field.
6081 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6082 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6084 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6085 if _dl_sysinfo_eh_frame is non-NULL.
6087 * Makeconfig (gnulib): Add -lgcc_eh.
6089 * config.h.in: Define HAVE_FORCED_UNWIND.
6091 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6093 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6094 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6096 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6098 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6099 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6100 against local symbol in conflict processing.
6102 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6104 * sysdeps/powerpc/bits/atomic.h
6105 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6106 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6108 (__arch_compare_and_exchange_val_32_acq): Define.
6109 (atomic_compare_and_exchange_val_acq): Define.
6111 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6113 * include/atomic.h: Pretty printing.
6115 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6117 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6119 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6121 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6122 * sysdeps/x86_64/bits/atomic.h: Likewise.
6124 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6126 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
6127 POPARGS_1 to emit labels for the mov instructions.
6129 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6131 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
6133 2003-04-14 Roland McGrath <roland@redhat.com>
6135 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
6138 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
6140 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6142 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
6143 position. Reported by jreiser@BitWagon.com.
6145 2003-04-13 Ulrich Drepper <drepper@redhat.com>
6147 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
6148 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6149 * sysdeps/generic/unwind-dw2.c: Likewise.
6150 * sysdeps/generic/unwind-pe.h: Likewise.
6152 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
6154 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
6155 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
6156 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
6157 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
6158 (mcontext_t): Make it match the 32-bit mips kernel in o32.
6159 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
6160 the mips and mips64 headers.
6161 (struct user): Port to n32/n64.
6163 2003-04-12 Ulrich Drepper <drepper@redhat.com>
6165 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
6168 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
6169 __ASSUME_VSYSCALL is defined don't add restorer.
6170 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6171 __ASSUME_VSYSCALL for 2.5.53.
6173 2003-04-11 Ulrich Drepper <drepper@redhat.com>
6175 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
6176 Remove HAVE_CANCELBUF code. Replace with code using the new
6177 initializers for unwind-based cleanup handling.
6178 * sysdeps/generic/unwind.h: Update from latest gcc version.
6179 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
6180 places to allow unwind data generation.
6181 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
6182 * sysdeps/x86_64/bits/setjmp.h: Likewise.
6183 * sysdeps/sh/bits/setjmp.h: Likewise.
6184 * sysdeps/powerpc/bits/setjmp.h: Likewise.
6185 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
6186 * sysdeps/alpha/bits/setjmp.h: Likewise.
6188 2003-04-11 Roland McGrath <roland@redhat.com>
6190 * csu/tst-empty.c: New file.
6191 * csu/Makefile (tests, tests-static): Add it.
6193 2003-04-11 Jakub Jelinek <jakub@redhat.com>
6195 * string/test-strcmp.c (do_random_tests): Test whether return value
6196 has been promoted to wordsize if the ABI requires caller to do so.
6197 * string/test-strncmp.c (do_random_tests): Likewise.
6198 * string/test-memcmp.c (do_random_tests): Likewise.
6200 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
6203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6204 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
6205 is not defined, but the prctl constants are.
6207 * string/tester.c (test_strcmp): Fix a typo.
6209 2003-04-09 Ulrich Drepper <drepper@redhat.com>
6211 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
6212 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
6214 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6216 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
6218 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
6220 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
6222 * sysdeps/mips/mips64/memset.S: Likewise.
6223 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
6224 Use t0 instead of t4 as temporary.
6226 2003-04-07 Ulrich Drepper <drepper@redhat.com>
6228 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
6229 feof_unlocked instead of feof.
6230 (add_dir): Ignore trailing whitespace.
6232 2003-04-07 Jakub Jelinek <jakub@redhat.com>
6234 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
6235 sum of SIZE1 and SIZE2 arguments.
6237 2003-04-06 Ulrich Drepper <drepper@redhat.com>
6239 * iconv/iconv_prog.c (process_block): Don't print message about
6240 invalid input if the -c option is used.
6241 (main): Correctly append IGNORE string for -c option.
6243 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6245 * sysdeps/sh/bits/atomic.h: Moved to ...
6246 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
6247 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
6249 (atomic_bit_set, atomic_bit_test_set): Likewise.
6250 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
6252 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6254 2003-04-06 Roland McGrath <roland@redhat.com>
6256 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
6257 restoration as done for setcontext yesterday.
6259 2003-04-06 Jakub Jelinek <jakub@redhat.com>
6261 * elf/rtld.c: Revert 2003-03-14 change.
6262 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
6263 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
6265 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6267 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
6269 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6270 Always initialize *signgamp before returning an error.
6272 2003-04-05 Roland McGrath <roland@redhat.com>
6274 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
6275 below the stack pointer even if switching to the same context we are
6278 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6280 * catgets/gencat.c (read_input_file): Make sure that \n is not
6281 alone on the line before testing for continuation.
6283 * math/test-tgmath.c (compile_test): Initialize c.
6285 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
6287 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
6288 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
6289 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
6291 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
6292 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
6293 structure on n32 as well.
6294 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
6295 data types on n32 and n64.
6297 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6299 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
6302 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
6303 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
6304 instead of __register_atfork.
6306 2003-04-05 Jakub Jelinek <jakub@redhat.com>
6308 * stdio-common/reg-printf.c (__register_printf_function): Calloc
6309 instead of malloc __printf_arginfo_table and __printf_function_table.
6310 Reported by John Reiser <jreiser@BitWagon.com>.
6312 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
6314 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
6315 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
6317 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
6320 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
6322 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
6325 2003-04-03 Roland McGrath <roland@redhat.com>
6327 * configure.in: Fix up use of compilation flags to match the build:
6328 For .s files, $ASFLAGS;
6329 For .S files, $CPPFLAGS $ASFLAGS;
6330 For .c files, $CFLAGS $CPPFLAGS;
6331 when linking, add $LDFLAGS.
6332 * configure: Regenerated.
6334 2003-04-03 Jakub Jelinek <jakub@redhat.com>
6336 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
6337 for atomic_compare_and_exchange_bool_acq failure.
6339 2003-04-03 Ulrich Drepper <drepper@redhat.com>
6341 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
6342 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
6343 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
6344 Remove declaration of pthread_atfork.
6346 2003-04-02 Ulrich Drepper <drepper@redhat.com>
6348 * locale/iso-639.def: Add many more languages from the current ISO 639.
6350 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
6351 * sysdeps/generic/semtimedop.c: New file.
6352 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
6353 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
6354 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6355 * sysvipc/Makefile (routines): Add semtimedop.
6356 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
6357 * sysvipc/sys/sem.h: Declare semtimedop.
6359 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
6361 * configure.in: Check for __register_frame_info in both
6363 * configure: Regenerated.
6365 2003-04-01 Roland McGrath <roland@redhat.com>
6367 * scripts/abilist.awk: Allow dots in soname suffix.
6369 * scripts/abilist.awk (emit): Fix bailout condition.
6371 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6373 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
6376 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
6377 register as input to asm.
6379 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6381 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
6383 2003-04-01 Andreas Jaeger <aj@suse.de>
6385 * configure.in: Output as/ld as name if version is too old.
6387 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
6389 * configure.in: Don't require an installed C library in the test
6390 for ".set" assembler support.
6392 2003-03-31 Roland McGrath <roland@redhat.com>
6394 * signal/tst-sigset.c: New file.
6395 * signal/Makefile (tests): Add it.
6397 2003-03-31 Ulrich Drepper <drepper@redhat.com>
6399 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
6400 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
6401 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
6402 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
6403 (__SIGRTMAX): Adjust accordingly.
6404 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
6405 second compatibility symbol set.
6406 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
6408 2003-03-31 Andreas Schwab <schwab@suse.de>
6410 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
6412 (atomic_decrement_and_test): Fix test.
6414 2003-03-31 Jakub Jelinek <jakub@redhat.com>
6416 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
6417 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
6418 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
6419 * sysdeps/sparc/sparc32/atomicity.h: Removed.
6420 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
6421 * sysdeps/sparc/sparc64/atomicity.h: Removed.
6423 2003-03-30 Roland McGrath <roland@redhat.com>
6425 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
6427 * intl/po2test.sed: Anchor substitution regexps to fix last change.
6429 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
6431 * intl/po2test.sed: Unify the transformations for msgid and msgstr
6432 and remove a useless s/// command.
6434 2003-03-27 David Mosberger <davidm@hpl.hp.com>
6436 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
6437 directive into empty .prologue region to ensure that call-chain
6438 is terminated even for the first instruction.
6440 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
6441 to terminate call-chain right from the get-go.
6443 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
6444 stop bit between compare & branch.
6446 2003-03-29 Ulrich Drepper <drepper@redhat.com>
6448 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
6449 point correctly [PR libc/4993].
6451 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
6452 netlink_open calls if netlink is known to not be available.
6454 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
6456 * configure.in: Add mips64* support.
6457 * sysdeps/mips/bits/endian.h: Make it bi-endian.
6458 * sysdeps/mips/mipsel/bits/endian.h: Removed.
6459 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
6460 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
6461 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
6462 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
6463 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
6464 * sysdeps/mips/Implies: Moved wordsize-32 to...
6465 * sysdeps/mips/mips32/Implies: New file.
6466 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
6468 (ret, PSEUDO_END): Moved past END.
6469 (PSEUDO): Moved to...
6470 * sysdeps/unix/mips/mips32/sysdep.h: New file.
6471 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
6472 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
6473 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
6474 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
6475 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
6477 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
6480 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
6482 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
6483 * inet/test-ifaddrs.c: Allow AF_PACKET.
6484 * sysdeps/unix/sysv/linux/kernel-features.h: Add
6485 __ASSUME_NETLINK_SUPPORT.
6487 2003-03-28 Ulrich Drepper <drepper@redhat.com>
6489 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
6491 2003-03-26 H.J. Lu <hjl@gnu.org>
6493 * elf/vismod.h (getvarlocal1): Return const char **.
6494 (getvarinmod1): Likewise.
6495 (getvaritcpt1): Likewise.
6496 (getvarlocal2): Likewise.
6497 (getvarinmod2): Likewise.
6498 (getvaritcpt2): Likewise.
6499 (getvaritcpt3): Likewise.
6500 * elf/vismain.c (do_test): Adjusted.
6501 * elf/vismod1.c (getvarlocal1): Return address.
6502 (getvarinmod1): Likewise.
6503 (getvaritcpt1): Likewise.
6504 * elf/vismod2.c (getvarlocal2): Likewise.
6505 (getvarinmod2): Likewise.
6506 (getvaritcpt2): Likewise.
6507 * elf/vismod3.c (getvaritcpt3): Likewise.
6509 2003-03-28 Roland McGrath <roland@redhat.com>
6511 * elf/vismain.c (do_test): Print both addresses when they don't match.
6513 * scripts/abilist.awk: If given -v filename_regexp and/or -v
6514 libname_regexp when parsing names, then produce output only
6515 for those matching the given regexps. In combine mode, save all
6516 stanzas for a final sorting by stanza header at the end.
6517 Emit a blank line between stanzas.
6519 * scripts/abilist.awk: When given -v combine=1, do parse_names and
6520 emit a single output stream with lib name in stanza header lines.
6522 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
6524 2003-03-27 Roland McGrath <roland@redhat.com>
6526 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
6527 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
6529 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6531 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
6532 Return old value. Make asm output reg constraint earlyclobber.
6534 (__arch_compare_and_exchange_8_acq): ... this.
6535 (__arch_compare_and_exchange_val_16_acq):
6536 Return old value. Make asm output reg constraint earlyclobber.
6538 (__arch_compare_and_exchange_16_acq): ... this.
6539 (__arch_compare_and_exchange_val_32_acq):
6540 Return old value. Make asm output reg constraint earlyclobber.
6542 (__arch_compare_and_exchange_32_acq): ... this.
6543 (__arch_compare_and_exchange_val_64_acq):
6545 (__arch_compare_and_exchange_64_acq): ... this.
6546 (atomic_exchange_and_add): Use local variables and
6547 __arch_compare_and_exchange_val_64_acq.
6548 (atomic_add): Likewise.
6549 (atomic_add_negative, atomic_add_zero): Use local variables.
6551 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
6553 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
6555 2003-03-27 Ulrich Drepper <drepper@redhat.com>
6557 * Makefile: Remove libmd5crypt goal.
6559 2003-03-25 Jakub Jelinek <jakub@redhat.com>
6561 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
6562 special handling of relocations against local symbols.
6564 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
6566 * sysdeps/powerpc/bits/atomic.h
6567 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
6568 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
6569 Define PPC64 specific version.
6570 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
6571 Change (mem) constraint to "b".
6572 [__powerpc64__] (__arch_atomic_exchange_and add_64):
6573 Replace addi with add. Change (value) contraint to "r".
6574 Change (mem) constraint to "b".
6575 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
6576 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
6577 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
6578 (__arch_atomic_decrement_if_positive_32): New macro.
6579 (atomic_decrement_if_positive): Use __arch* macros.
6581 2003-03-27 Jakub Jelinek <jakub@redhat.com>
6583 * sysdeps/ia64/fpu/libm-test-ulps: Update.
6585 2003-03-27 Roland McGrath <roland@redhat.com>
6587 * scripts/rpm2dynsym.sh: New file.
6588 * Makefile (distribute): Add it.
6590 2003-03-27 David Mosberger <davidm@hpl.hp.com>
6592 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
6593 ar.unat before returning. Add missing .mem.offset directives
6594 to ensure file gets assembled without warnings.
6595 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6597 2003-03-27 Jakub Jelinek <jakub@redhat.com>
6599 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
6600 Return -1 instead of 0 if clock_getres failed.
6602 2003-03-27 Roland McGrath <roland@redhat.com>
6604 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
6605 header lines and write out foo.symlist files for each foo.so.NN listed.
6607 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
6608 This symbol is exported, and we don't want to hide it.
6609 Add libc_hidden_proto instead.
6610 (_IO_file_jumps): Add libc_hidden_proto.
6611 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
6613 * libio/fileops.c (_IO_file_jumps): Likewise.
6614 * libio/stdfiles.c: Don't use INTUSE on them.
6615 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
6616 * libio/iofopen.c (__fopen_internal): Likewise.
6617 * libio/freopen.c (freopen): Likewise.
6618 * libio/freopen64.c (freopen64): Likewise.
6619 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6621 * Makerules (check-abi) [$(enable-check-abi) = warn]:
6622 Ignore exit status from diff.
6623 * configure.in (enable_check_abi): Document possible value "warn".
6624 Change default to no for now.
6625 * configure: Regenerated.
6627 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
6628 macro calls and a #include <stub-tag.h> at the end.
6629 * Makerules ($(objpfx)stubs): Tweak sed commands.
6631 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
6632 caller column for *xattr syscalls, since they are in sysdeps/generic.
6634 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
6635 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
6637 2003-03-26 Roland McGrath <roland@redhat.com>
6639 * Makerules (check-abi-config): Use /thread instead of /tls when
6640 use-thread and not just use-tls is set.
6642 * Makerules (update-abi): Put quotes around $(update-abi-config).
6644 * elf/Makefile (check-abi): Depend on check-abi-ld.
6645 (update-abi): Depend on update-abi-ld.
6647 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
6649 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
6650 do not check for errors (unless testing for 32bit variant).
6651 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
6653 2003-03-27 Philip Blundell <philb@gnu.org>
6655 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
6656 unconditional mov. Remove nop.
6658 * sysdeps/unix/sysv/linux/kernel-features.h
6659 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
6660 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
6661 when __ASSUME_VFORK_SYSCALL is defined.
6662 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
6663 __ASSUME_MMAP2_SYSCALL.
6664 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
6665 __ASSUME_REALTIME_SIGNALS.
6667 2003-03-26 Ulrich Drepper <drepper@redhat.com>
6669 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
6670 only if DL_NO_COPY_RELOCS is not defined.
6671 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
6673 2003-03-26 Roland McGrath <roland@redhat.com>
6675 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
6676 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
6677 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
6678 (sysdep_routines): Add stub-syscalls.
6679 ($(objpfx)stub-syscalls.c): New target.
6680 (generated): Add stub-syscalls.c.
6682 * tls.make.c: Also define use-tls according to USE_TLS macro.
6684 2003-03-26 Ulrich Drepper <drepper@redhat.com>
6686 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
6687 no-op padding element.
6688 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6689 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6690 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6691 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6693 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
6695 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
6696 condition check for the return value of getgroups32.
6698 2003-03-26 Jakub Jelinek <jakub@redhat.com>
6700 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
6702 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
6703 PSEUDO_END_NOERRNO): Define.
6704 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
6705 Define to PSEUDO_END.
6707 2003-03-26 Ulrich Drepper <drepper@redhat.com>
6709 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
6711 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
6713 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
6714 * iconvdata/bug-iconv4.c: New file.
6715 * iconvdata/Makefile (tests): Add bug-iconv4.
6717 2003-03-25 H.J. Lu <hjl@gnu.org>
6719 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
6721 (_dl_lookup_versioned_symbol): Likewise.
6723 2003-03-26 Jakub Jelinek <jakub@redhat.com>
6725 * csu/tst-atomic.c (do_test): Add some new
6726 atomic_compare_and_exchange_val_acq, atomic_add_zero,
6727 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
6728 * include/atomic.h (atomic_add_negative, atomic_add_zero):
6729 Prefix local variable so that it doesn't clash with the one
6730 in atomic_exchange_and_add.
6731 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
6733 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
6734 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
6735 value into register.
6736 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
6737 Cast newval to long.
6738 * sysdeps/x86_64/bits/atomic.h
6739 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
6741 (atomic_exchange): Cast newvalue to long if sizeof == 8.
6742 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
6743 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6744 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
6746 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
6748 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
6749 bit from backtrace addresses.
6751 2003-03-21 Andreas Schwab <schwab@suse.de>
6753 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
6756 2003-03-25 Roland McGrath <roland@redhat.com>
6758 * config.make.in (enable-check-abi): New variable from configure.
6759 * configure.in (enable_check_abi): New substituted variable,
6760 controlled by --{enable,disable}-check-abi (default yes).
6761 * configure: Regenerated.
6762 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
6763 on check-abi dependency.
6765 2003-03-26 Andreas Schwab <schwab@suse.de>
6767 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
6768 * include/atomic.h: Likewise.
6770 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
6772 2003-03-25 Roland McGrath <roland@redhat.com>
6774 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
6775 (__arch_atomic_exchange_64): New macro.
6776 (atomic_exchange): Use them.
6777 (__arch_atomic_exchange_and_add_32): New macro.
6778 (__arch_atomic_exchange_and_add_64): New macro.
6779 (atomic_exchange_and_add): Use them.
6780 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
6782 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
6784 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
6786 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
6788 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
6789 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
6790 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
6791 to decide whether to add padding.
6792 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
6793 to decide whether to add padding.
6794 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
6795 old_kernel_sigaction): Likewise.
6797 2003-03-25 Ulrich Drepper <drepper@redhat.com>
6799 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
6800 atomic_add_zero were supposed to do.
6801 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
6804 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
6805 This matches the new timer implementation.
6806 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
6808 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
6810 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
6811 timer info for what the kernel provides these days.
6812 (struct sigevent): Add _tid field.
6813 Define SIGEV_THREAD_ID.
6814 Remove struct __pthread_attr_s forward declaration.
6815 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
6816 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6817 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6818 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6820 * Versions.def (librt): Add GLIBC_2.3.3.
6822 * abilist/libpthread.abilist: Update for nptl.
6824 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
6826 * inet/netinet/in.h: Add IPPROTO_SCTP.
6828 2003-03-24 Ulrich Drepper <drepper@redhat.com>
6830 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
6832 2003-03-24 Philip Blundell <philb@gnu.org>
6834 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
6835 Remove a1 from clobber list.
6837 2003-03-24 Ulrich Drepper <drepper@redhat.com>
6839 * timezone/antarctica: Update from tzdata2003a.
6840 * timezone/asia: Likewise.
6841 * timezone/australasia: Likewise.
6842 * timezone/europe: Likewise.
6843 * timezone/iso3166.tab: Likewise.
6844 * timezone/northamerica: Likewise.
6845 * timezone/southamerica: Likewise.
6846 * timezone/zone.tab: Likewise.
6848 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
6850 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
6852 2003-03-23 Ulrich Drepper <drepper@redhat.com>
6854 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
6855 unwanted expansion by definining to ret. Patch by Ian Wienand.
6857 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
6858 the parameter description to denote no error checking. Generate
6859 appropriate pseudo asm code.
6860 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
6861 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
6862 getpgrp, and getppid with 'E'.
6863 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
6864 PSEUDO_END_NOERRNO, and ret_NOERRNO.
6865 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6866 * sysdeps/unix/sysdep.h: Likewise.
6867 * sysdeps/unix/alpha/sysdep.h: Likewise.
6868 * sysdeps/unix/sparc/sysdep.h: Likewise.
6869 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
6870 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
6871 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
6872 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6873 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
6874 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6875 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6876 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6877 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
6878 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6879 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6881 2003-03-23 Roland McGrath <roland@redhat.com>
6883 * Makeconfig (+includes): Don't use $(last-includes).
6885 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
6887 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
6888 * sysdeps/unix/sysv/linux/configure: Rebuilt.
6890 2003-03-23 Jakub Jelinek <jakub@redhat.com>
6892 * sysdeps/alpha/fpu/libm-test-ulps: Update.
6893 * sysdeps/arm/libm-test-ulps: Update.
6894 * sysdeps/hppa/fpu/libm-test-ulps: Update.
6895 * sysdeps/ia64/fpu/libm-test-ulps: Update.
6896 * sysdeps/mips/fpu/libm-test-ulps: Update.
6897 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
6898 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6899 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6900 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6901 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
6902 * sysdeps/s390/fpu/libm-test-ulps: Update.
6903 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6905 2003-03-22 Roland McGrath <roland@redhat.com>
6907 * include/atomic.h: Put parens around all macro arguments.
6908 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
6909 (atomic_compare_and_exchange_val_acq): Use it.
6910 (atomic_compare_and_exchange_bool_acq): Likewise.
6911 (atomic_increment_and_test): Invert sense of test.
6912 (atomic_decrement_and_test): Likewise.
6913 * csu/tst-atomic.c: Update those tests to match.
6915 2003-03-22 Jakub Jelinek <jakub@redhat.com>
6917 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
6918 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
6919 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
6920 __oldval variable in the macro, since it might be macro argument.
6921 (atomic_decrement_if_positive): Initialize __memp, remove setting
6922 of non-existent variable.
6923 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
6924 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
6925 using atomic_compare_and_exchange_val_acq.
6926 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
6927 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
6929 (__arch_compare_and_exchange_bool_8_acq): ... this.
6930 (__arch_compare_and_exchange_val_16_acq): Renamed from...
6931 (__arch_compare_and_exchange_bool_16_acq): ... this.
6932 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
6934 (__arch_compare_and_exchange_bool_32_acq): ... this.
6935 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
6937 (__arch_compare_and_exchange_bool_64_acq): ... this.
6938 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
6939 variables types instead of assuming int.
6940 Change prefix of local variables to __arch.
6941 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
6943 (atomic_compare_and_exchange_val_acq,
6944 atomic_compare_and_exchange_bool_acq): Define.
6946 * csu/tst-atomic.c: New test.
6947 * csu/tst-atomic-long.c: New test.
6948 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
6950 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
6952 * sysdeps/s390/Versions: Add trailing newline.
6954 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
6955 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
6957 2003-03-22 Andreas Schwab <schwab@suse.de>
6959 * sysdeps/m68k/fpu/libm-test-ulps: Update.
6961 * sysdeps/m68k/m68020/bits/atomic.h: New file.
6962 * sysdeps/m68k/m68020/atomicity.h: Removed.
6964 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
6966 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
6967 data structures and macros. Protect from multiple inclusion.
6969 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
6972 2003-03-21 Andreas Jaeger <aj@suse.de>
6974 * sysdeps/i386/fpu/libm-test-ulps: Update.
6976 * math/libm-test.inc (tgamma_test): Recompute some constants with
6977 36 digits precision.
6978 (lgamma_test): Likewise.
6979 (ccos_test): Likewise.
6980 (ccosh_test): Likewise.
6981 (clog10_test): Likewise.
6982 (csin_test): Likewise.
6983 (csinh_test): Likewise.
6984 (ctan_test): Likewise.
6985 (ctanh_test): Likewise.
6987 2003-03-19 Jakub Jelinek <jakub@redhat.com>
6989 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
6991 2003-03-21 Roland McGrath <roland@redhat.com>
6993 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
6994 constraint to permit non-constant BIT argument.
6995 (atomic_bit_test_set): Likewise.
6996 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
6997 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
6998 For quadword case, use "i" constraint if __builtin_constant_p and < 32
6999 or "r" constraint otherwise.
7001 * configure.in: Move AC_PROG_CC and other program-finding before all
7003 * configure: Regenerated.
7005 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7007 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7008 unaligned copying of 8-15 bytes. From Chris Demetriou
7009 <cgd@broadcom.com>. Fix label names.
7010 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7011 change as to memcpy.S.
7012 * sysdeps/mips/memcpy.S: Formatting changes.
7013 * sysdeps/mips/memset.S: Likewise.
7015 2003-03-21 Roland McGrath <roland@redhat.com>
7017 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7019 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7021 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7022 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7024 2003-03-21 Roland McGrath <roland@redhat.com>
7026 * sysdeps/i386/i486/bits/atomic.h
7027 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7028 version of the macro to avoid compile-time warnings.
7029 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7030 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7031 (atomic_increment, atomic_decrement): Likewise.
7033 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7035 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7036 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7038 2003-03-21 Roland McGrath <roland@redhat.com>
7040 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7042 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7044 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7045 atomic_compare_and_exchange_val_rel,
7046 atomic_compare_and_exchange_bool_acq, and
7047 atomic_compare_and_exchange_bool_rel instead of
7048 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7049 * sysdeps/i386/i486/bits/atomic.h: Define
7050 __arch_compare_and_exchange_val_*_acq instead of
7051 __arch_compare_and_exchange_*_acq.
7052 * sysdeps/x86_64/bits/atomic.h: Likewise.
7053 * sysdeps/ia64/bits/atomic.h: Define
7054 __arch_compare_and_exchange_bool_*_acq instead of
7055 __arch_compare_and_exchange_*_acq.
7056 * sysdeps/powerpc/bits/atomic.h: Likewise.
7057 * sysdeps/s390/bits/atomic.h: Likewise.
7058 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7059 * malloc/set-freeres.c: Likewise.
7060 * nscd/cache.c: Likewise.
7061 * stdlib/cxa_finalize.c: Likewise.
7062 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7064 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7066 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7067 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7068 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7070 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7071 into high and low halves on n64.
7072 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7073 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7074 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7076 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7078 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7079 correct atomic_compare_and_exchange_acq semantics.
7081 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7083 * sysdeps/mips/ieee754.h: Remove excess #endif.
7085 2003-03-20 Roland McGrath <roland@redhat.com>
7087 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7088 variable. Remove superfluous memory clobber.
7090 * include/atomic.h: Syntax braino fix.
7092 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7093 in decimal. Don't bail if niced at start. Just check that nice call
7094 bumps the total at all.
7096 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7098 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7099 including pc, gp, sp and fp, as long long.
7100 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7101 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7102 Add gp argument, and set gp in the jmpbuf to it.
7103 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7105 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7107 * include/atomic.h: Define atomic_exchange and
7108 atomic_decrement_if_positive if not already defined. Add some
7110 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7111 * sysdeps/x86_64/bits/atomic.h: Likewise.
7112 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7113 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7114 atomic_exchange, atomic_exchange_and_add, and
7115 atomic_decrement_if_positive
7117 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7119 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7120 with a single instruction.
7122 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7124 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7126 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
7127 Word before comparing with gotsym. Take reloc_addr argument as
7128 void*. Remove the code added for the compiler to drop any
7129 alignment assumptions.
7131 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7133 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
7134 * include/atomic.h: New file.
7135 * sysdeps/i386/i486/bits/atomic.h: New file.
7136 * sysdeps/x86_64/bits/atomic.h: New file.
7137 * sysdeps/s390/bits/atomic.h: New file.
7138 * sysdeps/sh/bits/atomic.h: New file.
7139 * sysdeps/ia64/bits/atomic.h: New file.
7140 * sysdeps/powerpc/bits/atomic.h: New file.
7141 * sysdeps/generic/bits/atomic.h: New file.
7142 * sysdeps/i386/i486/atomicity.h: Removed.
7143 * sysdeps/x86_64/atomicity.h: Removed.
7144 * sysdeps/s390/s390-32/atomicity.h: Removed.
7145 * sysdeps/s390/s390-64/atomicity.h: Removed.
7146 * sysdeps/ia64/atomicity.h: Removed.
7147 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
7148 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
7149 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
7150 use of macros from atomicity.h to new names and semantics.
7151 * gmon_mcount.c: Likewise.
7152 * malloc/set-freeres.c: Likewise.
7153 * nscd/cache.c: Likewise.
7154 * stdlib/cxa_finalize.c: Likewise.
7155 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7157 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
7159 * sysdeps/mips/ieee754.h: New file, suitable to replace both
7160 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
7161 mips-specific for now.
7163 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7165 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
7166 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
7167 * stdlib/tst-strtod.c: Add test for the bug.
7169 * posix/tst-nice.c (do_test): Remove invalid of return value.
7170 Don't run test if initial level != 0.
7172 2003-03-19 Amos Waterland <apw@us.ibm.com>
7174 * posix/tst-nice.c: New file.
7175 * posix/Makefile (tests): Add tst-nice.
7177 2003-03-18 Roland McGrath <roland@redhat.com>
7179 * abilist: New directory of libfoo.abilist files maintained using
7180 scripts/merge-abilist.awk and "make update-abi" rules.
7181 * Makefile (distribute): Add abilist/*.abilist.
7182 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
7183 Depend on check-abi.
7185 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
7186 * configure: Regenerated.
7188 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
7190 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7192 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
7195 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
7197 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
7199 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7201 * Versions.def: Add GLIBC_2.3.3 for libpthread.
7203 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7205 * sysdeps/generic/libc-start.c [!SHARED &&
7206 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
7208 2003-03-17 Roland McGrath <roland@redhat.com>
7210 * include/ctype.h: Revert last change.
7212 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7214 * argp/tst-argp1.c: Use test-skeleton.c.
7215 * locale/tst-C-locale.c: Likewise.
7217 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
7219 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
7220 * sysdeps/mips/mips64/n64/Implies: New file.
7221 * sysdeps/mips/mips64/n64/Makefile: New file.
7222 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
7223 * sysdeps/mips/mips64/n32/Implies: New file.
7224 * sysdeps/mips/mips64/n32/Makefile: New file.
7225 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
7226 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
7227 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
7228 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
7229 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
7230 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
7231 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
7232 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
7233 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
7234 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
7235 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
7236 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
7237 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
7238 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
7240 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
7241 lib64 for mips64/n64 and lib32 for mips64/n32.
7242 (ldd_rewrite_script): Needed for all mips64 configurations.
7243 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7244 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
7245 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
7247 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
7250 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
7251 asm/unistd.h into asm-unistd.h.
7252 * sysdeps/unix/sysv/linux/mips/configure: Generated.
7253 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
7255 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
7256 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
7259 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
7260 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
7261 long type for registers on n32.
7263 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
7265 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
7266 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
7267 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
7268 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
7269 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
7270 * sysdeps/unix/mips/brk.S: Likewise.
7271 * sysdeps/unix/mips/sysdep.S: Likewise.
7272 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7273 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
7274 * sysdeps/mips/sys/ucontext.h: Likewise.
7275 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
7276 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
7277 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
7278 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7279 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
7280 * sysdeps/mips/mips64/setjmp.S: Likewise.
7281 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
7282 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
7285 2003-03-16 Ulrich Drepper <drepper@redhat.com>
7287 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
7288 not at function level.
7289 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
7291 2003-03-15 Roland McGrath <roland@redhat.com>
7293 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
7294 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
7295 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
7296 * nis/nis_table.c (__create_ib_request): Likewise.
7298 * posix/fnmatch_loop.c: Add casts for signedness.
7299 * nss/nss_files/files-hosts.c: Likewise.
7300 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7301 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
7302 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
7304 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
7305 get errors into the log file.
7306 (libc_cv_broken_visibility_attribute): Likewise.
7307 (libc_cv_broken_alias_attribute): Likewise.
7308 (libc_cv_asm_weak_directive): Likewise.
7309 (libc_cv_need_minus_P): Likewise.
7310 (libc_cv_dot_text): Likewise.
7311 (libc_cv_asm_global_directive): Likewise.
7312 (libc_cv_asm_type_prefix): Likewise.
7313 * configure: Regenerated.
7315 * nscd/cache.c (cache_search): Give first arg type `request_type'.
7316 * nscd/nscd.h: Update decl.
7318 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
7319 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7320 * elf/dl-close.c (_dl_close): Likewise.
7321 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
7322 * io/fts.c (fts_build): Likewise.
7323 * elf/cache.c (add_to_cache): Likewise.
7324 * locale/programs/locarchive.c (show_archive_content): Likewise.
7326 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
7328 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
7330 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
7332 2003-03-15 Ulrich Drepper <drepper@redhat.com>
7334 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
7335 code for most parts.
7337 2003-03-15 Roland McGrath <roland@redhat.com>
7339 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
7340 * sysdeps/unix/sysv/linux/system.c: ... here.
7341 (FORK): Don't #define if already #define'd.
7342 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
7343 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
7344 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
7346 * dlfcn/tst-dlinfo.c: New file.
7347 * dlfcn/Makefile (tests): Add tst-dlinfo.
7348 ($(objpfx)tst-dlinfo): New target.
7350 * dlfcn/dlinfo.c: New file.
7351 * dlfcn/Makefile (libdl-routines): Add it.
7352 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
7353 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
7354 [__USE_GNU] (RTLD_DI_*): New enum constants.
7355 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
7356 * elf/dl-load.c (cache_rpath): New inline function.
7357 (_dl_map_object): Use it.
7358 (_dl_rtld_di_serinfo): New function.
7359 * sysdeps/generic/ldsodefs.h: Declare it.
7360 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
7362 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
7363 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
7364 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
7365 (__libc_start_main): Just call the generic one for most of the work.
7367 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
7368 static function by that name instead of BP_SYM (__libc_start_main).
7369 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
7370 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
7371 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
7373 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
7374 Use this macro for extra AT_* cases.
7375 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
7376 New macro, guts from ...
7377 (__aux_init_cache): ... here, function removed.
7378 (DL_PLATFORM_INIT): Don't define this.
7380 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
7381 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
7383 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
7385 2003-03-14 Roland McGrath <roland@redhat.com>
7387 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
7389 2003-03-14 Jakub Jelinek <jakub@redhat.com>
7391 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
7393 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
7394 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
7396 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7398 * sysdeps/mips/fpu/bits/mathdef.h: New.
7399 (__NO_LONG_DOUBLE_MATH): Define for o32.
7401 * sysdeps/mips/sys/asm.h: Formatting changes.
7402 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
7403 (CPADD): Define for all of them.
7404 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
7405 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
7406 NARGSAVE): Define per ABI spec.
7407 (END): Don't redefine.
7408 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
7409 LONG_SRAV): Remove duplicate definitions.
7410 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
7411 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
7412 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
7413 (PTR_LA): Define for all 3 ABIs.
7415 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
7416 (elf_machine_matches_host): Prevent linking of o32 and n32
7418 (elf_machine_dynamic): Document assumption on $gp.
7419 (STRINGXP, STRINGXV, STRINGV_): New macros.
7420 (elf_machine_load_address): Use them to stringize PTR_LA and
7422 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
7423 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
7424 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
7425 (__dl_runtime_resolve): Cast the symtab initializer to the
7427 (RTLD_START): Use it. Adjust it for all 3 ABIs.
7428 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
7429 Handle 64-bit R_MIPS_REL composite relocation and accept
7430 R_MIPS_64 relocations to shift addend size to 64 bits.
7431 Document assumption regarding local GOT entries. Document
7432 backward-compatibility departing from the ABI behavior in
7433 applying relocations that reference section symbols, no longer
7434 used. Support relocations to mis-aligned offsets.
7435 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
7437 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
7439 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
7440 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
7441 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
7442 restore_rt functions. Use them.
7444 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
7445 .set mips2 on new abis.
7447 2003-03-13 Ulrich Drepper <drepper@redhat.com>
7449 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
7450 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
7451 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
7452 * sysdeps/posix/pathconf.c: Likewise.
7453 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7454 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7455 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
7457 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
7460 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7462 * include/gmp.h: Include/gmp-mparam.h.
7463 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
7466 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
7467 ELF_MACHINE_NO_RELA is set.
7468 * elf/rtld.c (dl_main): No prelink support for REL-only.
7470 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
7471 FLAG_MIPS64_LIBN64): Define.
7472 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
7474 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
7475 * sysdeps/mips/memset.S: Likewise.
7476 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
7477 depending on the ABI.
7479 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
7480 Don't .set mips2 on new abi.
7481 (compare_and_swap): Likewise. Support 64-bit longs on n64.
7483 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
7485 2003-03-13 Roland McGrath <roland@redhat.com>
7487 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
7488 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
7490 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
7492 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
7494 * stdlib/fpioconst.c: Likewise.
7495 * stdlib/strtod.c: Likewise.
7497 * sysdeps/mips/add_n.S: Use L macro for local labels.
7498 * sysdeps/mips/addmul_1.S: Likewise.
7499 * sysdeps/mips/lshift.S: Likewise.
7500 * sysdeps/mips/memcpy.S: Likewise.
7501 * sysdeps/mips/memset.S: Likewise.
7502 * sysdeps/mips/mul_1.S: Likewise.
7503 * sysdeps/mips/rshift.S: Likewise.
7504 * sysdeps/mips/sub_n.S: Likewise.
7505 * sysdeps/mips/submul_1.S: Likewise.
7506 * sysdeps/mips/mips64/add_n.S: Likewise.
7507 * sysdeps/mips/mips64/addmul_1.S: Likewise.
7508 * sysdeps/mips/mips64/lshift.S: Likewise.
7509 * sysdeps/mips/mips64/mul_1.S: Likewise.
7510 * sysdeps/mips/mips64/rshift.S: Likewise.
7511 * sysdeps/mips/mips64/sub_n.S: Likewise.
7512 * sysdeps/mips/mips64/submul_1.S: Likewise.
7513 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
7514 conventions. Define END as in sys/asm.h.
7515 * sysdeps/unix/mips/sysdep.S: Likewise.
7516 * sysdeps/unix/mips/wait.S: Likewise.
7517 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7519 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
7520 Cast shifted values that may be too narrow to mp_limb_t.
7521 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
7523 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
7525 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
7526 (__mpn_extract_long_double): Likewise.
7527 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
7528 (__mpn_construct_long_double): Likewise.
7529 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
7530 (__mpn_extract_long_double): Likewise.
7531 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
7532 (__mpn_construct_long_double): Likewise.
7534 2003-03-13 Roland McGrath <roland@redhat.com>
7536 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
7537 entries in the map file match too.
7539 2003-03-13 Guido Guenther <agx@sigxcpu.org>
7541 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
7542 label .Lthread_start since current binutils don't allow branches
7543 to globally visible symbols.
7545 2003-03-13 Jakub Jelinek <jakub@redhat.com>
7547 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
7548 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
7549 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
7550 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
7551 clobbered by the syscall.
7552 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
7553 ASM_ARGS_6): Change constraints from r to index of corresponding
7555 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
7556 ptid and ctid to match kernel.
7557 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
7559 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
7561 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
7562 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
7563 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
7565 2003-03-11 Roland McGrath <roland@redhat.com>
7567 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7568 Check SYM_MAP rather than SYM as definedness check.
7569 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
7570 Don't handle R_PPC64_REL24 reloc.
7571 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
7573 * sysdeps/powerpc/powerpc64/dl-machine.h
7574 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
7575 block, so we cover all the TPREL16* flavors without 6 ||s.
7576 [USE_TLS] (elf_machine_tprel): New function.
7577 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
7578 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
7579 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
7581 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
7583 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
7584 instead of jalr to invoke subroutine so restoring the $gp register
7587 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
7589 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
7590 to __NR_pread if not defined.
7591 (__NR_pwrite64): Define to __NR_pwrite if not defined.
7593 2003-03-11 Jakub Jelinek <jakub@redhat.com>
7595 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
7596 * sysdeps/unix/sysv/linux/kernel-features.h
7597 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
7600 2003-03-11 Jakub Jelinek <jakub@redhat.com>
7602 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
7603 allocate space even for the trailing '/'.
7604 Reported by John Reiser <jreiser@BitWagon.com>.
7606 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
7607 ASM_CLOBBERS_6): Define.
7608 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
7609 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
7610 to match IA-32 order.
7611 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
7613 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
7615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
7616 Copy extra params for NPTL to registers used in clone syscall.
7618 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7620 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
7621 call names for pread and pwrite.
7623 2003-03-10 Roland McGrath <roland@redhat.com>
7625 * dlfcn/Makefile (libdl-routines): Add dladdr1.
7626 * dlfcn/dladdr1.c: New file.
7627 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
7628 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
7629 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
7630 a const ElfNN_Sym ** to fill in.
7631 * include/dlfcn.h: Update decl. Include <link.h>.
7632 * dlfcn/dladdr.c (dladdr): Update caller.
7633 * malloc/mtrace.c (tr_where): Likewise.
7634 * sysdeps/generic/elf/backtracesyms.c: Likewise.
7635 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7636 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
7637 * Versions.def (libdl): Define GLIBC_2.3.3 set.
7639 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
7641 * sysdeps/unix/Makefile (compile-syscall): New variable.
7642 Pass -g0 to compiler for assembling syscall stubs from stdin.
7644 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
7645 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
7646 Define these to do nothing.
7648 * configure.in: New check for -g on .S files.
7649 * configure: Regenerated.
7650 * config.make.in (have-cpp-asm-debuginfo): New variable.
7651 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
7652 * Makeconfig (ASFLAGS): New variable, if undefined and
7653 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
7654 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
7656 2003-03-09 Roland McGrath <roland@redhat.com>
7658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
7659 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
7661 2003-03-09 Ulrich Drepper <drepper@redhat.com>
7663 * po/fi.po: Update from translation team.
7664 * po/ca.po: Likewise.
7665 * po/da.po: Likewise.
7667 2003-03-08 Ulrich Drepper <drepper@redhat.com>
7669 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
7671 2003-03-07 Ulrich Drepper <drepper@redhat.com>
7673 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
7675 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
7677 2003-03-07 Roland McGrath <roland@redhat.com>
7679 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
7680 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
7682 2003-03-04 Guido Guenther <agx@sigxcpu.org>
7684 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
7685 stubs, we have INLINE_SYSCALL.
7686 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
7689 2003-03-06 Roland McGrath <roland@redhat.com>
7691 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
7692 permanent extent and add a comment about testing its implicit teardown.
7694 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
7696 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
7698 2003-03-05 Ulrich Drepper <drepper@redhat.com>
7700 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
7701 reversed __builtin_expect expectation.
7703 2003-03-05 Roland McGrath <roland@redhat.com>
7705 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
7706 * libio/swscanf.c: Likewise.
7707 * libio/swprintf.c: Likewise.
7709 2003-03-04 Roland McGrath <roland@redhat.com>
7711 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
7712 (elf_machine_rela): Always use RESOLVE_MAP, needed for
7713 R_PPC64_JMP_SLOT as well as TLS cases.
7714 (BIT_INSERT): Move parenthesis where it ought to have been.
7715 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
7717 * posix/confstr.c (confstr): Correct STRING_LEN values for
7718 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
7719 break. Reported by Alexandre Julliard <julliard@winehq.com>.
7721 2003-03-04 Jakub Jelinek <jakub@redhat.com>
7723 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
7725 2003-03-04 Ulrich Drepper <drepper@redhat.com>
7727 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
7730 * po/sv.po: Update from translation team.
7732 2003-03-04 Andreas Jaeger <aj@suse.de>
7733 Ulrich Drepper <drepper@redhat.com>
7735 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
7737 2003-03-03 Ulrich Drepper <drepper@redhat.com>
7739 * sysdeps/generic/dl-sysdep.h: Add double include protection.
7741 * po/tr.po: Update from translation team.
7743 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
7744 are holes between the segments. Only call mprotect to set
7745 proection to PROT_NONE if there are some.
7747 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
7750 * include/sched.h (__clone2): Use ... instead of adding all the
7753 2003-03-03 Roland McGrath <roland@redhat.com>
7755 * elf/dl-load.c (struct filebuf): Fix typo in last change.
7757 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
7758 PI_STATIC_AND_HIDDEN.
7760 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
7762 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
7764 * include/sched.h: Update clone2 prototype.
7766 2003-03-03 Andreas Jaeger <aj@suse.de>
7768 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
7769 (llrint): Use it to correct return type.
7772 (llround): Likewise.
7774 2003-03-03 Ulrich Drepper <drepper@redhat.com>
7776 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
7779 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
7780 if ccs parameter isn't valid. Reported by Andreas Schwab.
7782 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
7784 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
7785 for system call numbers > 255.
7786 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
7787 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
7788 INTERNAL_SYSCALL): Likewise.
7789 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
7790 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
7791 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
7792 INTERNAL_SYSCALL): Likewise.
7794 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
7796 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
7797 array if it is the initial dtv.
7799 2003-03-03 Ulrich Drepper <drepper@redhat.com>
7801 * po/es.po: Update from translation team.
7802 * po/fr.po: Likewise.
7803 * po/gl.po: Likewise.
7804 * po/sk.po: Likewise.
7805 * po/sv.po: Likewise.
7807 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
7808 * misc/sys/mman.h: Add prototype for remap_file_pages.
7809 * sysdeps/generic/remap_file_pages.c: New file.
7810 * misc/Makefile (routines): Add remap_file_pages.
7811 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
7813 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
7815 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7816 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
7817 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7818 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7819 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
7820 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
7821 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
7822 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
7824 2003-03-03 Roland McGrath <roland@redhat.com>
7826 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
7827 * sysdeps/ia64/dl-machine.h: Likewise.
7828 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
7830 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
7832 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
7833 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
7834 * locale/Versions (libc: GLIBC_2.3): Move those to ...
7835 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
7836 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
7837 * Versions.def (libc): Add GLIBC_2.3.3 set.
7839 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
7840 * sysdeps/ia64/dl-machine.h: Update decl.
7842 2003-03-03 Andreas Jaeger <aj@suse.de>
7844 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
7846 2003-03-02 Roland McGrath <roland@redhat.com>
7848 * scripts/abilist.awk: Reject data items with apparent 0 size.
7850 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
7851 after foo.* as if it were a duplicate.
7853 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
7855 2003-03-02 Ulrich Drepper <drepper@redhat.com>
7857 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
7859 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
7860 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
7861 if not already defined. Use SYSDEP_GETRES to allow other files to
7862 provide alternative implementations.
7863 * sysdeps/unix/sysv/linux/clock_getres.c: New file
7864 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
7865 if not already defined. Use SYSDEP_GETTIME to allow other files to
7866 provide alternative implementations.
7867 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
7868 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
7869 if not already defined. Use SYSDEP_GETTIME to allow other files to
7870 provide alternative implementations.
7871 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
7872 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
7873 other files to provide alternative implementations. Rearrange
7874 tests for invalid parameters.
7875 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
7876 * sysdeps/unix/sysv/linux/sysconf.c: New file.
7877 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7878 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
7879 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
7880 _POSIX_MONOTONIC_CLOCK.
7882 2003-03-02 Roland McGrath <roland@redhat.com>
7884 * scripts/merge-abilist.awk: More checks for bogus input.
7885 Uniquify duplicate config names.
7887 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
7889 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
7890 from dl_reloc_overflow, make global.
7891 (__process_machine_rela): Update callers.
7892 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
7893 Add attribute_hidden to __process_machine_rela decl.
7894 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
7896 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
7899 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
7900 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
7901 (elf_machine_rela): Clean up.
7903 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
7905 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
7906 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
7907 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
7908 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
7909 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
7910 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
7913 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
7914 macros out of [SHARED].
7915 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
7917 * elf/elf.h: Define R_PPC_* relocs for TLS support.
7918 Clean up R_PPC64_* macro definition comments.
7920 * configure.in: In "running configure fragment for" message,
7921 omit $srcdir from the name if we prepended it.
7922 * configure: Regenerated.
7924 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
7925 From Jakub Jelinek <jakub@redhat.com>.
7927 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
7928 which duplicated the O_DIRECT defn.
7930 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
7932 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
7935 2003-03-01 Andreas Schwab <schwab@suse.de>
7937 * resolv/Makefile (tests): Don't depend on
7938 $(objpfx)mtrace-tst-leaks when cross compiling.
7940 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
7941 __libc_stack_end through GOT since it is a global symbol.
7943 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
7945 * argp/argp.h: Fix a typo.
7946 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
7948 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
7950 2003-02-27 Pat Rankin <rankin@pactechdata.com>
7952 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
7954 (get_subexp): Likewise.
7956 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
7958 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
7960 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
7962 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
7964 2003-02-27 Roland McGrath <roland@redhat.com>
7966 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
7967 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
7968 repeat it and avoids the test for the common case.
7969 Clean up and fix calculations for TLS relocs.
7971 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
7972 * sysdeps/powerpc/dl-tls.h: ... here.
7973 (TLS_TP_OFFSET): New macro.
7975 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
7977 2003-02-27 Ulrich Drepper <drepper@redhat.com>
7979 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
7980 code generation changes in recent gcc.
7982 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
7984 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
7985 Rename argument to avoid symbol conflict.
7987 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
7988 [__USE_GNU] (O_DIRECT): New macro.
7990 2003-02-24 David Mosberger <davidm@hpl.hp.com>
7992 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
7995 2003-02-27 Ulrich Drepper <drepper@redhat.com>
7997 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
7998 initializer anymore now that res_thread_freeres is more careful.
8000 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8001 except the PKTINFO. Reset interface in PKTINFO.
8002 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8004 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8006 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8007 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8009 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8010 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8011 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8012 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8014 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8015 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8017 2003-02-25 Andreas Jaeger <aj@suse.de>
8019 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8020 behaviour of M_MMAP_THRESHOLD.
8022 2003-02-25 Roland McGrath <roland@redhat.com>
8024 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8025 zero, inidicating _res was not initialized yet.
8027 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8029 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8032 2003-02-24 Roland McGrath <roland@redhat.com>
8034 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8036 2003-02-23 Roland McGrath <roland@redhat.com>
8038 * sysdeps/posix/pause.c: New file.
8039 * sysdeps/unix/common/pause.c: File removed.
8041 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8043 * sysdeps/generic/bits/confname.h: Remove #ifs.
8045 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8046 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8048 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8051 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8053 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8055 2003-02-22 Roland McGrath <roland@redhat.com>
8057 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8058 * resolv/Makefile (tests): Add tst-leaks.
8059 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8060 (tst-leaks-ENV): New variable.
8061 ($(objpfx)mtrace-tst-leaks): New target.
8062 (tests): Depend on it.
8064 * include/libc-internal.h: Declare __libc_thread_freeres.
8066 * Makerules: Fix last change to use $($(subdir)-version) when set.
8068 * Makerules (install-lib-nosubdir): Depend on installed
8069 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8070 regardless of the libfoo.so target's dependencies.
8072 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8073 Use that in $(MAKE) calls.
8075 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8077 * catgets/gencat.c (read_input_file): Collision between
8078 auto-assigned numbers and user-defined nubmers is not fatal.
8080 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8081 * catgets/Makefile: Add rules to run test2.msg test.
8082 * catgets/test2.msg: New file.
8084 * catgets/gencat.c (main): Return 1 if messages have been printed.
8086 * iconv/iconv_prog.c (main): Unify messages.
8088 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8089 when shifting retval.
8090 * stdlib/tst-strtod.c (main): Add strtold test case.
8091 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8093 2003-02-21 Roland McGrath <roland@redhat.com>
8095 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8096 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8097 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8099 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8100 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8101 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8104 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8105 * malloc/thread-freeres.c: New file.
8106 * malloc/Makefile (aux): Add it.
8107 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8108 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8109 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8111 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8112 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8114 2003-02-21 Roland McGrath <roland@frob.com>
8116 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8118 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8119 [$(have-thread-library) = yes].
8121 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8123 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8125 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
8126 not chechk for errors (unless testing for 32bit variant).
8127 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
8128 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
8129 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
8131 2003-02-21 Jakub Jelinek <jakub@redhat.com>
8133 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
8134 Check for signed overflow, not unsigned.
8136 * sysdeps/sparc/sparc64/elf/configure.in: New file.
8137 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
8138 Use -fcall-used-g6, not -fcall-used-g7.
8140 2003-02-21 Andreas Jaeger <aj@suse.de>
8142 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
8145 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
8146 clear whole mxcsr but only exceptions.
8148 2003-02-21 Roland McGrath <roland@redhat.com>
8150 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
8151 for libfoo.so that need $(make-link) rules.
8153 2003-02-21 Roland McGrath <roland@frob.com>
8155 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
8156 to match existing struct stat layout in mig protocols.
8158 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8160 * version.h (VERSION): Bump to 2.3.2.
8162 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
8163 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
8165 * sysdeps/generic/Dist: Add sysdep-cancel.h.
8166 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
8167 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
8168 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
8169 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
8170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
8172 * Makefile (distribute): Add include/stubs-prologue.h,
8173 include/gnu/stubs.h, scripts/merge-abilist.awk, and
8174 scripts/extract-abilist.awk.
8176 2003-02-20 Roland McGrath <roland@redhat.com>
8178 * math/Makefile (distribute): Don't add generated files.
8180 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8182 * math/Makefile: Rearrange variable definitions slightly to get
8183 definition in the right order.
8185 2003-02-20 Roland McGrath <roland@redhat.com>
8187 * Makerules: Clean up conditional around include of tls.make.
8188 * Make-dist: Export generating=t to prevent using that.
8189 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
8191 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8193 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
8194 around in search if port IPPORT_RESERVED/2 has been test.
8196 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
8198 * posix/regcomp.c: Remove inclusions.
8199 * posix/regexec.c: Likewise.
8200 * posix/regex_internal.c: Likewise.
8201 * posix/regex_internal.h: Add inclusions here.
8202 * posix/regex.c: Only include sys/types.h before regex.h. Include
8203 regex_internal.h here. Include regex_internal.c before regcomp.c
8204 and regexec.c (might expose more opportunities to the C compiler).
8206 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
8208 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
8209 [!_LIBC] (__wcrtomb): New definition.
8210 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
8211 HAVE_LOCALE_H as well.
8213 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8215 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
8216 patch to check for system call errors.
8218 2002-07-24 Philip Blundell <philb@gnu.org>
8220 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
8223 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8225 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
8226 * sysdeps/unix/sysv/linux/kernel-features.h
8227 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
8228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
8230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
8231 interprocedure branches.
8232 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
8233 * sysdeps/powerpc/nofpu/Dist: ...here.
8234 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
8235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
8236 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
8237 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
8238 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
8240 2003-02-18 Alan Modra <amodra@bigpond.net.au>
8242 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
8244 2003-02-20 Philip Blundell <philb@gnu.org>
8246 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
8247 missing arguments to INTERNAL_SYSCALL_ERROR_P and
8248 INTERNAL_SYSCALL_ERRNO.
8250 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8252 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
8253 for __ASSUME_32BITUIDS.
8255 2003-02-20 Andreas Schwab <schwab@suse.de>
8257 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
8258 POSIX_MADV_* constants.
8260 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8262 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
8263 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
8264 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
8265 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
8267 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
8269 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
8271 2003-02-16 Roland McGrath <roland@redhat.com>
8273 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
8275 2003-02-19 Ulrich Drepper <drepper@redhat.com>
8277 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
8278 decimal input digits.
8279 * stdlib/tst-strtod.c (main): Add test for strtof bug.
8281 2003-02-18 Ulrich Drepper <drepper@redhat.com>
8283 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
8284 invalid file descriptors and missing access permissions.
8286 2003-02-17 Ulrich Drepper <drepper@redhat.com>
8288 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
8291 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
8292 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
8293 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
8296 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
8297 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8299 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
8300 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
8301 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
8302 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8303 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
8305 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8307 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
8308 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
8309 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
8310 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
8311 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
8312 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
8314 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
8315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
8316 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
8317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
8319 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
8320 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
8321 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
8322 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
8324 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
8326 * nss/getent.c (print_hosts): Print all IP addresses of one host.
8328 2003-02-15 Roland McGrath <roland@frob.com>
8330 * sysdeps/mach/hurd/tls.h: New file.
8331 * sysdeps/mach/hurd/i386/tls.h: New file.
8333 * mach/errsystems.awk: Include <errno.h> in generated output.
8335 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
8336 use target mach-before-compile instead of generated.
8337 (mach-before-compile): New target.
8338 * Makerules: Disable use of tls.make if $(generating) is set.
8339 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
8340 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
8341 mach-shortcuts.h so mach/ generation happens before hurd/.
8343 2003-02-14 Ulrich Drepper <drepper@redhat.com>
8345 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
8346 of demorm correctly if low word is zero.
8347 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8348 * math/libm-test.inc (nextafter_test): New test, but disabled due
8351 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
8352 counter and only call __exit_thread if this is not the last thread.
8354 2003-02-13 Jakub Jelinek <jakub@redhat.com>
8356 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
8357 subtracting map->l_tls_offset.
8359 2003-02-12 Ulrich Drepper <drepper@redhat.com>
8361 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
8362 _CS_GNU_LIBPTHREAD_VERSION.
8363 * posix/conststr.c: Handle these new values.
8364 * posix/getconf.c: Likewise.
8366 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
8367 masking of version index.
8368 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8370 2003-02-11 Ulrich Drepper <drepper@redhat.com>
8372 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
8373 correctly. Reported by Thorsten Kukuk.
8375 2003-02-10 Ulrich Drepper <drepper@redhat.com>
8377 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
8378 _BSD_SOURCE to compiler.
8379 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
8380 Patches by Alan Modra.
8382 2003-02-08 Ulrich Drepper <drepper@redhat.com>
8384 * io/ftwtest.c: Get current working directory before and after the
8385 nftw call and make sure they match.
8387 2003-02-08 Jim Meyering <jim@meyering.net>
8389 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
8390 the current directory, not just when DIR contains a slash.
8391 Reported by Manoj Srivastava.
8393 2003-02-07 Jim Meyering <jim@meyering.net>
8395 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
8396 Include autoconf-recommended block of dirent/NAMELEN-related
8397 definitions and includes. Use NAMELEN throughout, rather than
8399 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
8400 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
8401 (stpcpy): Declare, if necessary.
8402 (mempcpy): Define, if necessary.
8403 [!_LIBC] (__stpcpy, __mempcpy): Define.
8404 [!_LIBC] (LXSTAT, XSTAT): Define.
8405 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
8406 (find_object): Don't use c99-style struct initializer.
8407 Tweak wording in a couple comments.
8409 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8411 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
8413 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
8414 after the trapa instruction.
8415 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
8417 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
8418 (NEED_SYSCALL_INST_PAD): Define.
8419 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
8420 avoid to use definition for the kernel.
8421 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8422 Save and restore the frame pointer.
8423 (SYSCALL_INST_PAD): Define.
8424 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8425 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
8426 after trapa instruction.
8427 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8428 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8430 2003-02-07 Jakub Jelinek <jakub@redhat.com>
8432 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
8433 so that it can have aliases.
8434 * inet/herrno.c (h_errno): Put it into .bss not .data section.
8436 2003-02-07 Ulrich Drepper <drepper@redhat.com>
8438 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
8439 (profile_fixup): Likewise.
8440 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8442 2002-11-24 Robert Love <rml@tech9.net>
8444 * posix/sched.h: Second parameter of sched_setaffinity and
8445 sched_getaffinity is `unsigned int', not `unsigned long'.
8446 * sysdeps/generic/sched_setaffinity.c: Likewise.
8447 * sysdeps/generic/sched_getaffinity.c: Likewise.
8449 2003-02-05 Ulrich Drepper <drepper@redhat.com>
8451 * debug/catchsegv.sh: Fix typo in error messsage.
8452 Reported by John Levon <levon@movementarian.org>.
8454 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
8455 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
8456 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
8457 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8459 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8460 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8462 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
8463 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
8465 2003-02-05 Jim Meyering <jim@meyering.net>
8467 Fix a heap-corrupting bug.
8468 * io/ftw.c: Include <limits.h>.
8469 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
8470 (process_entry): Allocate enough space to hold the resulting
8471 file name. Don't presume that 2*dirbufsize is enough.
8472 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
8473 it is guaranteed to be defined.
8475 2003-02-04 Ulrich Drepper <drepper@redhat.com>
8477 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
8478 * iconvdata/bug-iconv3.c: New file.
8480 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
8482 * sysdeps/unix/sysv/linux/s390/system.c: New file.
8484 2003-02-03 Jakub Jelinek <jakub@redhat.com>
8486 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
8488 * config.h.in (BROKEN_SPARC_WDISP22): Add.
8490 2003-02-03 Ulrich Drepper <drepper@redhat.com>
8492 * sysdeps/i386/i686/memmove.S: New file.
8494 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
8497 Include kernel-features.h
8498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
8499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
8500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
8501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
8503 2003-02-02 Jakub Jelinek <jakub@redhat.com>
8505 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
8507 2003-01-25 Jim Meyering <jim@meyering.net>
8509 * io/ftw.c (object_compare): Compare inode numbers before device
8510 numbers, since the former are much more likely to differ.
8512 2003-02-01 Ulrich Drepper <drepper@redhat.com>
8514 * time/tzfile.c (__tzfile_compute): Change return value type to
8515 void. Adjust return statements.
8516 * include/time.h (__tzfile_compute): Adjust prototype.
8518 2003-02-01 Jim Meyering <jim@meyering.net>
8520 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
8523 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8526 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
8528 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
8531 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
8532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8533 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
8534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8535 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
8536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8537 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
8539 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8541 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
8542 back to 2.4.19 for powerpc64.
8543 * sysdeps/unix/sysv/linux/kernel-features.h
8544 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
8545 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
8547 2003-02-01 Ulrich Drepper <drepper@redhat.com>
8549 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
8550 platforms with strange alignment requirements on wchar_t.
8552 2003-01-31 Andreas Schwab <schwab@suse.de>
8554 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
8555 aliases, already added by make-syscalls.sh.
8556 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8557 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8558 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8559 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8560 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8561 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8562 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8563 * sysdeps/unix/inet/syscalls.list: Likewise.
8564 * sysdeps/unix/syscalls.list: Likewise.
8566 2003-01-31 Andreas Schwab <schwab@suse.de>
8568 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
8571 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8573 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
8574 not l to load tls from stack.
8576 2003-01-30 Roland McGrath <roland@redhat.com>
8578 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
8579 null argument before all else.
8580 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
8582 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8584 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
8585 Move to RESOLVE protected part of the header.
8586 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
8589 2003-01-30 Ulrich Drepper <drepper@redhat.com>
8591 * stdio-common/Makefile (tests): Add bug15.
8592 (bug15-ENV): Define.
8593 * stdio-common/bug15.c: New file.
8595 2002-10-07 Wolfram Gloger <wg@malloc.de>
8597 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
8598 to foreign sbrk()'s if arena is contiguous. Bug report from
8599 Bruno Haible <bruno@clisp.org>.
8601 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8603 * sysdeps/s390/libc-tls.c: Include stdlib.h.
8605 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8607 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
8610 2003-01-30 Ulrich Drepper <drepper@redhat.com>
8612 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
8614 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
8616 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
8618 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8620 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
8621 (allocate_static_tls): ...here. Add __attribute_noinline__.
8622 Don't return on failure.
8623 (_dl_reloc_bad_type): Add __attribute_noinline__.
8624 * elf/do-rel.h (elf_dynamic_do_rel): Add
8625 __attribute__((always_inline)).
8626 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
8627 elf_machine_rel_relative, elf_machine_rela_relative,
8628 elf_machine_lazy_rel): Add prototypes with
8629 __attribute__((always_inline)).
8631 2003-01-29 David Mosberger <davidm@hpl.hp.com>
8633 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
8635 2003-01-29 Roland McGrath <roland@redhat.com>
8637 * configure.in: Barf if configured in $srcdir.
8639 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
8641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8642 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
8644 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
8646 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
8647 clone parameters to match the order used on ia32.
8648 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8650 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
8652 * elf/elf.h: Add new s390 relocs.
8653 * elf/tls-macros.h: Add s390 versions.
8654 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
8655 * sysdeps/s390/dl-tls.h: New file.
8656 * sysdeps/s390/libc-tls.c: New file.
8657 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
8658 relocs for class PLT.
8659 (elf_machine_rela): Handle TLS relocs.
8660 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8661 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
8662 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8663 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
8664 CLONE_CHILD_*TID flags.
8665 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8666 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
8668 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8669 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8670 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
8671 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
8672 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
8674 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8675 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
8676 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
8678 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
8679 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
8680 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
8681 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
8684 2003-01-28 Ulrich Drepper <drepper@redhat.com>
8686 * sysdeps/unix/common/pause.c (do_pause): New function. Split
8687 from __libc_pause. Implement using sigsuspend.
8688 (__libc_pause): Call do_pause to do the real work.
8690 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
8691 sig_or_mask parameter is is_sig != 0.
8693 2003-01-21 Philip Blundell <philb@gnu.org>
8695 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
8697 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
8699 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
8701 2003-01-27 Ulrich Drepper <drepper@redhat.com>
8703 * stdio-common/bug14.c: Use official name for the locale.
8705 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
8706 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
8707 instead of __libc_cleanup_region_end.
8709 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
8710 as first parameter to __libc_cleanup_region_start.
8712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8713 (__fe_nomask_env): Use __prctl not prctl.
8714 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
8717 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
8719 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
8721 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
8722 wrap-around in test.
8724 2003-01-26 Andreas Schwab <schwab@suse.de>
8726 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
8727 compatibility symbols. Remove INTDEF for __divdi3.
8728 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
8729 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
8730 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
8732 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
8734 2003-01-24 Jakub Jelinek <jakub@redhat.com>
8736 * elf/tls-macros.h: Add SPARC 32-bit definitions.
8737 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
8738 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
8739 for the first half of the header. Include tls.h.
8740 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
8742 (elf_machine_rela): Handle TLS relocs.
8743 * sysdeps/sparc/dl-tls.h: New file.
8745 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
8748 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
8749 * sysdeps/sparc/sparc32/memchr.S: Likewise.
8750 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8751 * sysdeps/sparc/sparc32/strcat.S: Likewise.
8752 * sysdeps/sparc/sparc32/strchr.S: Likewise.
8753 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
8754 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
8755 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
8756 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8757 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8758 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
8759 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8760 * sysdeps/sparc/sparc64/strcat.S: Likewise.
8761 * sysdeps/sparc/sparc64/strchr.S: Likewise.
8762 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
8763 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
8764 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8765 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8766 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8767 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8769 2003-01-24 Andreas Schwab <schwab@suse.de>
8771 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
8772 elements, and process them backwards.
8773 * elf/Makefile ($(objpfx)tst-array4): New target.
8774 ($(objpfx)tst-array4.out): Likewise.
8775 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
8776 * elf/tst-array4.c: New file.
8777 * elf/tst-array4.exp: Likewise.
8779 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
8781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
8783 2003-01-27 Guido Guenther <agx@sigxcpu.org>
8785 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
8786 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
8787 cancellation handling and handle both __NR_pread64 and __NR_pread.
8788 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8789 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
8790 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
8791 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8792 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
8793 case, use register names consistently.
8795 2003-01-27 Wolfram Gloger <wg@malloc.de>
8797 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
8798 pointer, not of the computed chunk. Bug report from Carlos
8799 O'Donell <carlos@baldric.uwo.ca>.
8801 2003-01-25 Andreas Schwab <schwab@suse.de>
8803 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
8804 addressing to save GOT entries.
8806 2003-01-21 Jakub Jelinek <jakub@redhat.com>
8808 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
8809 inline_syscall1, inline_syscall2, inline_syscall3,
8810 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
8811 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
8812 __attribute__((unused)) to ChEcK.
8814 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8816 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
8817 Fix inline assembler constraints.
8818 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
8821 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
8824 2003-01-20 Segher Boessenkool <segher@koffie.nl>
8826 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
8827 compute the cosine, not the sine, even if x > 0.8.
8829 2003-01-19 Ulrich Drepper <drepper@redhat.com>
8831 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
8832 _nss_nis_setspent. Work around the different prototypes.
8833 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
8834 internal_nis_endrpcent.
8835 (internal_nis_endrpcent): Change return type to void. Change callers.
8836 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
8837 _nss_nis_setpwent. Work around the different prototypes.
8838 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
8839 of the function to...
8840 (internal_nis_endprotoent): ... here. New function.
8841 (internal_nis_setprotoent): Use internal_nis_endprotoent.
8842 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
8843 _nss_nis_setnetent. Work around the different prototypes.
8844 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
8845 of the function to...
8846 (internal_nis_endnetgrent): ... here. New function.
8847 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
8849 2003-01-19 Jim Meyering <jim@meyering.net>
8851 * time/strftime.c: (widen): Merge nearly-identical definitions.
8852 (nl_get_alt_digit) [! defined my_strftime]: Define.
8853 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
8854 _nl_get_alt_digit and _nl_get_walt_digit.
8856 2003-01-19 Ulrich Drepper <drepper@redhat.com>
8858 * time/strftime.c (my_strftime): Handle very large width
8859 specifications for numeric values correctly. Improve checks for
8861 * time/Makefile (tests): Add tst-strftime.
8862 * time/tst-strftime.c: New file.
8864 2003-01-18 Ulrich Drepper <drepper@redhat.com>
8866 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
8867 _nss_nis_sethostent. Work around the different prototypes.
8868 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
8869 _nss_nis_setgrent. Work around the different prototypes.
8870 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
8871 function. Split out from _nss_nis_endetherent.
8872 (internal_nis_setetherent): Use internal_nis_endetherent instead of
8873 duplicating the code.
8874 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
8875 of _nss_nis_setaliasent.
8876 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
8877 internal_nis_endservent code, don't duplicate it.
8879 * inet/rexec.c (rexec_af): Protect socket operations with
8880 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
8881 * inet/rcmd.c (rcmd_af): Likewise.
8883 2003-01-17 Roland McGrath <roland@redhat.com>
8885 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
8886 Add test of value 0.80190127184058835.
8888 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
8890 2003-01-17 Richard Henderson <rth@redhat.com>
8892 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
8893 relocs for class PLT.
8894 * sysdeps/alpha/libc-tls.c: New file.
8895 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
8896 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
8898 2003-01-17 Jakub Jelinek <jakub@redhat.com>
8900 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
8901 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
8904 2003-01-17 Andreas Jaeger <aj@suse.de>
8906 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
8908 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
8911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
8913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
8914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
8915 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
8916 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
8919 2003-01-16 Ulrich Drepper <drepper@redhat.com>
8921 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
8922 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
8925 * sysdeps/generic/sysconf.c: Unconditionally implement
8926 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
8927 * sysdeps/posix/sysconf.c: Likewise.
8929 2003-01-16 Jakub Jelinek <jakub@redhat.com>
8931 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
8932 set *err to the returned error, not to REG_ESPACE unconditionally.
8933 (build_word_op): Likewise.
8934 * posix/Makefile (tests): Add bug-regex16.
8935 * posix/bug-regex16.c: New test.
8937 2003-01-16 Jakub Jelinek <jakub@redhat.com>
8939 * elf/dl-load.c (_dl_map_object_from_fd): Use
8940 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
8941 been already initialized.
8943 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
8945 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
8947 2003-01-16 Jakub Jelinek <jakub@redhat.com>
8949 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
8950 allocated too. Reported by Al Viro <aviro@redhat.com>.
8952 2003-01-16 Roland McGrath <roland@redhat.com>
8954 Tweak merged .abilist file format to merge duplicate symbols in
8955 different sets into multi-version stanzas with new "| SET regexp..."
8956 header continuation lines.
8957 * scripts/merge-abilist.awk: Rewritten for new format.
8958 * scripts/extract-abilist.awk: Likewise.
8960 2003-01-15 Ulrich Drepper <drepper@redhat.com>
8962 * nscd/connections.c (nscd_run): Remove bogus return which isn't
8963 necessary with gcc 3.2+.
8964 (nscd_init): Don't use error() to print message, use dbg_log.
8966 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
8967 expected size into state.
8968 (UNPACK_BYTES): Do the reverse.
8969 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
8970 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
8971 Reported by Al Viro <aviro@redhat.com>.
8973 * stdio-common/Makefile (tests): Add bug14.
8974 * stdio-common/bug14.c: New file.
8976 * stdio-common/vfscanf.c: When recognizing multibyte characters in
8977 string reset the byte counter after mbrtowc reported it is not a
8978 partial character. Reported by Al Viro <aviro@redhat.com>.
8980 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
8982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
8983 sysdep-cancel.h, not sysdep.h.
8985 2003-01-15 Ulrich Drepper <drepper@redhat.com>
8987 * nscd/connections.c (nscd_run): Protect accept call with
8990 2003-01-15 Andreas Schwab <schwab@suse.de>
8992 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
8993 (common-generated): Add s-proto-bp.d.
8994 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
8996 * sysdeps/unix/s-proto-bp.S: New file.
8997 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
8998 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
8999 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9001 2003-01-15 Roland McGrath <roland@redhat.com>
9003 * Makerules: Use -include for tls.make, suppresses warning.
9004 Move gen-as-const-headers rules up so before-compile is set in time.
9005 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9007 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9009 * nscd/nscd.c (main): Make code to close all file descriptors
9010 faster and more robust.
9012 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9013 request with one writev call. Protect all read calls with
9015 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9016 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9018 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9019 Protect writev calls with TEMP_FAILURE_RETRY.
9020 * nscd/grpcache.c: Likewise.
9021 * nscd/pwdcache.c: Likewise.
9023 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9024 IPv6 address in debug output.
9026 2003-01-14 Roland McGrath <roland@redhat.com>
9028 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9029 $(objpfx) directories, and get rid of vpath directives. The previous
9030 arrangement resulted in files being written to the source directories
9031 when run in a clean build. Find all .abilist files in $(..)abilist/.
9032 (update-abi-%): Likewise.
9033 (generated): Don't add .symlist files, they'll be intermediates.
9035 * sysdeps/generic/init-first.c: Add a comment.
9037 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9039 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9040 #includes and expressions.
9042 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9043 config list when it already contains cpu-.*-os.* without / part.
9045 * Makerules (sed-remove-dotdot): New variable.
9046 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9047 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9048 (check-abi-config): New variable, append /tls or /notls to the tuple.
9049 (check-abi-%): Use that for -v config value.
9050 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9051 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9053 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9055 * manual/install.texi: Correct description of header preparation for
9056 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9058 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9060 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9061 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9062 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9064 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9067 (INTERNAL_SYSCALL): Make use of ERR parameter.
9068 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9069 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9070 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9073 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9075 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9077 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9079 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9080 Fix entry for bit 31.
9082 * iconvdata/Makefile: Add rules to build IBM866NAV.
9083 * iconvdata/ibm866nav.c: New file.
9084 * iconvdata/tst-tables.sh: Add IBM866NAV.
9085 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9087 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9089 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9090 to test void* parameters.
9092 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9093 source pointer before dereferencing.
9094 (__STRING_SMALLL_GET32): Likewise.
9095 (__memset_gc): Add missing parenthesis around macro arguments.
9096 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9098 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9099 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9101 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9103 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9106 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9108 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9109 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9111 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9113 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9115 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9117 (PSEUDO): ... to here.
9118 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9120 (PSEUDO): ... to here.
9122 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9124 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9125 dirent64 instead of struct dirent for dirent. Call readdir64
9128 * locale/programs/locfile.c (siblings_uncached): Use struct
9129 dirent64 instead of struct dirent for other_dentry. Call
9130 readdir64 instead of readdir.
9132 * elf/ldconfig.c (direntry): Change type to struct dirent64.
9133 (search_dir): Use readdir64 instead of readdir.
9134 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
9136 2003-01-12 Roland McGrath <roland@redhat.com>
9138 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
9139 not strtol. The former is usable in ld.so, the latter not.
9141 * include/fcntl.h: Declare __libc_creat.
9143 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
9144 libhurduser-link.so-no-z-defs): New variables.
9146 * malloc/malloc.c: Revert last change.
9147 * malloc/malloc.h (_int_*): Move these decls to ...
9148 * include/malloc.h: ... here. Add attribute_hidden.
9149 (_int_valloc): Declare it too.
9151 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9153 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
9154 search for removed searchlist. Reported by Roland McGrath.
9156 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9157 given as start file.
9159 * io/ftw.c (ftw_startup): Use correct name in check for symlink
9160 without existing target. Patch by Jim Meyering.
9162 * Makerules (build-shlib-helper): Don't use -z defs linker option
9163 if no-z-defs is defined either.
9165 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9167 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
9170 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9172 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
9173 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9175 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9177 * io/ftwtest-sh: Add test case for relative path with /. at the end.
9179 2003-01-12 Jim Meyering <jim@meyering.net>
9181 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
9182 use the basename if we've already chdir'd into its parent directory.
9184 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9186 * io/ftw.c (process_entry): Use relative path when using chdir()
9187 to change directory after call to ftw_dir.
9188 * io/ftwtest-sh: Add test for relative path argument to nftw()
9189 with FTW_CHDIR option.
9191 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9193 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9195 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
9197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9198 (INTERNAL_SYSCALL): Make use of ERR parameter.
9199 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9200 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9201 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
9204 2003-01-09 Richard Henderson <rth@redhat.com>
9206 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
9207 DTPREL64 and TPREL64 without loadbase applied.
9209 2003-01-09 Richard Henderson <rth@redhat.com>
9211 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
9214 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
9215 * sysdeps/unix/alpha/sysdep.h: ... here.
9216 (PSEUDO_LOADGP): Remove.
9217 (PSEUDO_PROLOGUE): Load GP in non-pic case.
9218 (SYSCALL_ERROR_LABEL): New.
9219 (PSEUDO): Use it in error branch.
9220 (PSEUDO_END): Add $syscall_error label.
9222 2003-01-12 Andreas Jaeger <aj@suse.de>
9224 * math/bits/mathcalls.h: Round is a const function.
9226 2003-01-11 Jim Meyering <jim@meyering.net>
9228 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
9229 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
9230 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
9231 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
9232 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
9233 [!_LIBC] (internal_function, dirent64, MAX): Define.
9234 (__set_errno): Define if not already defined.
9235 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
9236 the basename, not the entire file name.
9237 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
9238 the basename, not the entire file name.
9240 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9242 * string/tester.c (test_strcpy): Disable last added strcpy until
9245 2003-01-11 Philip Blundell <philb@gnu.org>
9247 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
9249 2003-01-11 Andreas Schwab <schwab@suse.de>
9251 * Makerules: Add vpath for %.dynsym and %.so so that the
9252 implicit rule chaining for check-abi works.
9254 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9256 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9259 2003-01-11 Jakub Jelinek <jakub@redhat.com>
9261 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
9262 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
9264 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
9265 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
9266 Ensure libc.so in DT_NEEDED.
9267 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
9268 CHECK_STATIC_TLS before l_tls_offset use.
9269 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9271 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9272 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
9273 Allocate TLS_PRE_TCB_SIZE bytes below result.
9274 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
9275 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
9276 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
9277 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
9278 bytes below result and add tcb_offset to memsz.
9279 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
9280 * sysdeps/ia64/dl-machine.h: Include tls.h.
9281 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
9283 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
9284 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
9285 * sysdeps/ia64/libc-tls.c: New file.
9287 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
9289 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
9290 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
9291 Fix type. Move definition out of #if.
9292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
9293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
9294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
9295 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
9296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
9297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
9299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
9300 ftruncate64, pread64, pwrite64, truncate64 entries.
9301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9302 (INLINE_SYSCALL): New version that supports function call like
9303 syscalls. Add __builtin_expect.
9304 (LOADARGS_n): Add argument size safety checks.
9305 (INTERNAL_SYSCALL): New Macro.
9306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
9307 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
9308 redefinition of elf_fpreg_t and elf_fpregset_t.
9310 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9312 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
9313 simplify test for unloading. If loader of a DSO is unloaded do not
9314 use its scope anymore. Fall back to own scope and adjust opencounts.
9315 Fix several comments.
9316 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
9317 the l_searchlist, not only for l_initfini.
9319 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
9320 dependencies if objects cannot be removed. Remove object with the
9321 definition as not unloadable if necessary.
9323 * elf/reldep6.c: Create relocation dependency before closing the first
9326 2003-01-10 Guido Günther <agx@sigxcpu.org>
9328 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
9329 * sysdeps/unix/mips/brk.S: Likewise.
9330 * sysdeps/unix/mips/pipe.S: Likewise.
9332 2003-01-10 Andreas Schwab <schwab@suse.de>
9334 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
9336 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
9337 are known to have the vfork syscall.
9339 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
9341 * sysdeps/unix/sysv/linux/kernel-features.h
9342 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
9343 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
9344 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
9346 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9348 * elf/Makefile: Add rules to build and run reldep9 test.
9349 * elf/reldep9.c: New file.
9350 * elf/reldep9mod1.c: New file.
9351 * elf/reldep9mod2.c: New file.
9352 * elf/reldep9mod3.c: New file.
9354 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9356 * elf/Makefile: Add rules to build and run nodelete2 test.
9357 * elf/nodelete2.c: New file.
9358 * elf/nodel2mod1.c: New file.
9359 * elf/nodel2mod2.c: New file.
9360 * elf/nodel2mod3.c: New file.
9362 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9364 * posix/test-vfork.c (noop): Add __attribute_noinline__.
9365 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
9366 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
9368 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
9369 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
9370 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
9371 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
9372 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
9374 2003-01-09 Andreas Schwab <schwab@suse.de>
9376 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
9378 2003-01-08 Ulrich Drepper <drepper@redhat.com>
9380 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
9381 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9383 (INTERNAL_SYSCALL_DECL): Define.
9385 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9387 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
9388 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9390 (INTERNAL_SYSCALL_DECL): Define.
9391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9392 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9393 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9394 (INLINE_SYSCALL): Adjust.
9395 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9396 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9397 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9398 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9399 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
9400 add err argument to INTERNAL_SYSCALL* macros.
9401 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9402 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
9403 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
9404 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
9406 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
9407 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
9408 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
9410 2003-01-07 Ulrich Drepper <drepper@redhat.com>
9412 Unify symbols in user namespace exported by libc.so and libc.a.
9413 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
9414 argp_fmtstream_free, and argp_fmtstream_printf.
9415 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
9416 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
9417 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
9418 argp_fmtstream_point.
9419 * gmon/gmon.c: Don't define write_profiling.
9420 * libio/genops.c: Don't define _cleanup.
9422 * intl/explodename.c (_nl_find_language.c): Mark as static.
9423 * intl/loadinfo.h: Remove _nl_find_language prototype.
9425 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
9426 * libio/libioP.h: Remove declaration.
9428 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
9429 * libio/libioP.h: Remove declaration.
9431 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
9432 * sysdeps/generic/framestate.c: Define STATIC before including
9435 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
9437 2003-01-06 Philip Blundell <philb@gnu.org>
9439 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
9440 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
9442 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
9444 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
9445 (SYSCALL_ERROR): New.
9446 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
9448 (INTERNAL_SYSCALL): Define.
9449 (INLINE_SYSCALL): Use it.
9450 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9451 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
9452 SYSCALL_ERROR in place of __syscall_error.
9454 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9456 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
9457 __bswap_32, __bswap_64): Put x into temporary variable
9459 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
9461 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
9462 __bswap_32, __bswap_64): Put x into temporary variable
9464 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
9466 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
9469 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9471 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
9474 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9476 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
9477 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
9479 2003-01-07 Ulrich Drepper <drepper@redhat.com>
9481 * math/libm-test.inc (significand_test): New function.
9484 2003-01-06 Roland McGrath <roland@redhat.com>
9486 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
9488 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
9489 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
9490 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
9492 * string/tester.c (test_strcpy): Add test with `void *' arguments.
9494 2003-01-06 Ulrich Drepper <drepper@redhat.com>
9496 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
9497 return significand and not the exponent.
9498 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9500 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
9501 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
9503 * malloc/malloc.c: Mark all _int_* functions as static.
9505 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9507 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
9508 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
9510 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9512 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9514 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
9515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
9517 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
9518 ftruncate64, truncate64, pread64 and pwrite64 entries.
9519 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9520 (INLINE_SYSCALL): Add __builtin_expect.
9521 (LOADARGS_n): Add argument size safety checks.
9522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
9523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
9524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
9525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
9526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
9527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
9529 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9531 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
9532 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
9533 (LIBC_CANCEL_HANDLED): Add.
9535 * sysdeps/unix/sysv/linux/alpha/sysdep.h
9536 (inline_syscall_r0_constraint): Rename to...
9537 (inline_syscall_r0_out_constraint): ... this. Add =.
9538 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
9540 2003-01-06 Andreas Schwab <schwab@suse.de>
9542 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
9543 sure this is always inlined.
9544 (elf_machine_rela): Likewise.
9546 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
9548 2003-01-04 Roland McGrath <roland@redhat.com>
9550 * Makeconfig (+mkdep): Add -MP flag.
9551 Suggested by Art Haas <ahaas@airmail.net>.
9553 2003-01-05 Andreas Schwab <schwab@suse.de>
9555 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
9557 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9559 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
9560 SYSCALL_ERROR_HANDLER.
9561 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
9562 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
9563 Add support for cancellation handling.
9564 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
9565 SYSCALL_ERROR_HANDLER.
9566 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
9567 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
9568 Add support for cancellation handling.
9569 (SYSCALL_ERROR_HANDLER): Define PIC variants.
9571 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
9574 __syscall_pread64 and __syscall_pwrite64 cancelable.
9575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9576 (INTERNAL_SYSCALL): New macro.
9577 (LOADARGS_0, LOADARGS_1): Fix.
9579 2003-01-05 Ulrich Drepper <drepper@redhat.com>
9581 * Makerules (build-shlip-helper): Unless told otherwise, add
9582 -Wl,-z,defs to linker command line.
9583 * rt/Makefile (librt.so): Link with ld.so.
9584 * dlfcn/Makefile (libdl.so): Likewise.
9586 2003-01-05 Jakub Jelinek <jakub@redhat.com>
9588 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
9589 cancellation handling.
9590 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9591 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
9593 2003-01-04 Ulrich Drepper <drepper@redhat.com>
9595 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
9596 order of parameters passed to kill.
9598 2003-01-04 Andreas Schwab <schwab@suse.de>
9600 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
9602 2003-01-03 Paul Eggert <eggert@twinsun.com>
9604 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
9605 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
9606 when compiling Bison 1.875's `bitset bset = obstack_alloc
9607 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
9609 2003-01-04 Ulrich Drepper <drepper@redhat.com>
9611 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
9613 Correct reference counter in case SIGQUIT handler installation failed.
9615 2003-01-03 Ulrich Drepper <drepper@redhat.com>
9617 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
9618 Define using _Pragma(weak ...).
9620 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
9622 * resolv/res_libc.c: Provide declaration for __res_init_weak and
9623 reorder declarations.
9625 2003-01-03 Art Haas <ahaas@airmail.net>
9627 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
9628 initializer syntax to C99.
9629 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
9630 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
9631 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
9632 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
9633 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
9634 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
9635 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
9636 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
9637 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
9638 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
9639 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
9640 * localedata/tests-mbwc/dat_mblen.c: Likewise.
9641 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
9642 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
9643 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
9644 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
9645 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
9646 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
9647 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
9648 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
9649 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
9650 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
9651 * localedata/tests-mbwc/dat_towlower.c: Likewise.
9652 * localedata/tests-mbwc/dat_towupper.c: Likewise.
9653 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
9654 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
9655 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
9656 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
9657 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
9658 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
9659 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
9660 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
9661 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
9662 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
9663 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
9664 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
9665 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
9666 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
9667 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
9668 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
9669 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
9670 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
9671 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
9672 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
9673 * localedata/tests-mbwc/dat_wctob.c: Likewise.
9674 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
9675 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
9676 * localedata/tests-mbwc/dat_wctype.c: Likewise.
9677 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
9679 2003-01-03 Richard Henderson <rth@redhat.com>
9681 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
9682 (inline_syscall_r0_constraint): New.
9683 (inline_syscall[0-6]): Use them.
9685 2003-01-03 Jakub Jelinek <jakub@redhat.com>
9687 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
9688 Add rtld_hidden_proto.
9689 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
9690 (_dl_allocate_tls): Likewise. Remove INTDEF.
9692 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9694 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
9695 Morita <toshiyasu.morita@hsa.hitachi.com>.
9696 * sysdeps/sh/memcpy.S: Likewise.
9698 2003-01-02 Ulrich Drepper <drepper@redhat.com>
9700 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
9701 any, but unify the test.
9703 2003-01-02 Jakub Jelinek <jakub@redhat.com>
9705 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
9706 sigaction): Protect weak_alias and libc_hidden_weak with
9707 #ifndef LIBC_SIGACTION.
9708 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
9709 sigaction): Likewise.
9710 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
9711 sigaction): Likewise.
9712 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
9713 sigaction): Likewise.
9714 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
9715 sigaction): Likewise.
9716 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
9717 sigaction): Likewise.
9718 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
9719 sigaction): Likewise.
9720 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
9721 sigaction): Likewise. Remove SIGCANCEL handling here.
9722 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
9725 2003-01-02 Art Haas <ahaas@airmail.net>
9727 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
9729 2003-01-02 Ulrich Drepper <drepper@redhat.com>
9731 * posix/getconf.c: Update copyright year.
9732 * nss/getent.c: Likewise.
9733 * nscd/nscd_nischeck.c: Likewise.
9734 * iconv/iconvconfig.c: Likewise.
9735 * iconv/iconv_prog.c: Likewise.
9736 * elf/ldconfig.c: Likewise.
9737 * catgets/gencat.c: Likewise.
9738 * csu/version.c: Likewise.
9739 * elf/ldd.bash.in: Likewise.
9740 * elf/sprof.c (print_version): Likewise.
9741 * locale/programs/locale.c: Likewise.
9742 * locale/programs/localedef.c: Likewise.
9743 * nscd/nscd.c (print_version): Likewise.
9744 * debug/xtrace.sh: Likewise.
9745 * malloc/memusage.sh: Likewise.
9746 * malloc/mtrace.pl: Likewise.
9748 2003-01-01 Jakub Jelinek <jakub@redhat.com>
9750 * io/sys/stat.h: Include time.h with __need_timespec even if
9751 __USE_MISC is defined but __USE_XOPEN is not.
9753 2003-01-01 Andreas Jaeger <aj@suse.de>
9755 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
9756 type to avoid strict aliasing problem.
9757 (_nss_dns_gethostbyname2_r): Likewise.
9758 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
9759 (_nss_dns_getnetbyname_r): Likewise.
9760 * resolv/gethnamaddr.c (_gethtent): Likewise.
9761 (gethostbyname2): Likewise.
9763 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9765 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
9766 to avoid using the exported symbols. Define aliases with the
9767 original names separately.
9769 * include/time.h: Add libc_hidden_proto for __strftime_l.
9770 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
9771 * time/strftime.c: Always use libc_hidden_def if _LIBC.
9773 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
9774 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
9776 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
9779 * csu/Makefile (routines): Add dso_handle.
9780 * csu/dso_handle.c: New file.
9782 2002-12-31 Roland McGrath <roland@redhat.com>
9784 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
9785 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
9786 (S-CPPFLAGS): Add -DASSEMBLER here instead.
9787 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
9789 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9791 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
9794 2002-12-31 Andreas Jaeger <aj@suse.de>
9796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
9798 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
9799 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
9800 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
9802 * sysdeps/unix/sysv/linux/kernel_stat.h
9803 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
9805 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
9806 __unused[1-3] since they're needed by some platforms. Handle
9807 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
9809 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
9810 for structs stat and stat64.
9811 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9812 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
9813 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9814 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9816 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
9818 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
9819 nsec resolution changes.
9820 (xstat64_conv): Likewise.
9821 (xstat32_conv): Likewise.
9823 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
9826 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
9827 structs stat and stat64.
9829 * time/time.h (__timespec_defined): Define for __USE_MISC.
9831 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9833 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
9834 and __libc_current_sigrtmax.
9836 2002-12-31 Jakub Jelinek <jakub@redhat.com>
9838 * include/errno.h (__errno_location): Add prototype.
9839 Use libc_hidden_proto unconditionally.
9840 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
9842 * include/resolv.h (__res_state): Likewise.
9844 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
9845 * include/sys/socket.h (accept): Add libc_hidden_proto.
9846 * include/errno.h (__errno_location): Likewise.
9847 * include/netdb.h (__h_errno_location): Likewise.
9848 * include/resolv.h (__res_state): Likewise.
9849 * include/unistd.h (__lseek): Likewise.
9850 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
9851 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
9852 * sysdeps/generic/res-state.c (__res_state): Likewise.
9853 * sysdeps/generic/accept.c (accept): Likewise.
9854 * sysdeps/generic/lseek.c (__lseek): Likewise.
9855 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
9856 __libc_current_sigrtmax): Likewise.
9857 * sysdeps/mach/hurd/accept.c (accept): Likewise.
9858 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
9859 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
9860 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
9861 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
9862 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
9863 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
9864 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
9865 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
9867 (__GI_accept): New alias to accept.
9868 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
9869 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
9870 New alias to llseek.
9871 (__GI_accept): New alias to accept.
9872 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
9874 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
9876 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
9878 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
9879 strong_alias (name, __GI_name).
9880 * sysdeps/arm/bsd-_setjmp.S : Likewise.
9881 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
9882 * sysdeps/i386/bsd-_setjmp.S : Likewise.
9883 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
9884 * sysdeps/mips/bsd-_setjmp.S : Likewise.
9885 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
9886 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
9887 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
9888 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
9889 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
9890 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
9891 * sysdeps/sh/bsd-_setjmp.S : Likewise.
9892 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
9893 * sysdeps/unix/arm/fork.S : Likewise.
9894 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
9895 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
9896 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
9897 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
9898 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
9899 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
9900 * sysdeps/unix/i386/fork.S : Likewise.
9901 * sysdeps/unix/mips/fork.S : Likewise.
9902 * sysdeps/unix/sparc/fork.S : Likewise.
9903 * sysdeps/unix/sparc/vfork.S : Likewise.
9904 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
9905 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
9906 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
9907 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
9908 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
9909 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
9910 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
9911 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
9912 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
9913 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
9914 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
9915 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
9916 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
9917 * sysdeps/unix/fork.S : Likewise.
9918 * sysdeps/vax/bsd-_setjmp.S : Likewise.
9919 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
9921 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
9924 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9926 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
9927 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
9928 * sysdeps/mach/hurd/fork.c: Likewise.
9929 * sysdeps/unix/sysv/aix/fork.c: Likewise.
9930 * sysdeps/unix/fork.S: Add __GI___fork alias.
9931 * sysdeps/unix/arm/fork.S: Likewise.
9932 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
9933 * sysdeps/unix/i386/fork.S: Likewise.
9934 * sysdeps/unix/mips/fork.S: Likewise.
9935 * sysdeps/unix/sparc/fork.S: Likewise.
9936 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
9937 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
9938 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9939 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
9940 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
9941 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9942 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
9943 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
9944 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
9945 * sysdeps/unix/sparc/vfork.S: Likewise.
9946 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
9947 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
9948 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
9949 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
9950 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
9951 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
9952 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
9953 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
9955 * include/time.h: Add libc_hidden_proto for __nanosleep.
9956 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
9957 * sysdeps/mach/nanosleep.c: Likewise.
9958 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
9959 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
9961 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
9962 _IO_list_unlock, and _IO_list_resetlock.
9963 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
9964 _IO_list_unlock, and _IO_list_resetlock.
9966 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
9967 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
9968 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
9969 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
9971 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
9972 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
9973 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
9974 __GI___longjmp alias.
9976 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
9977 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
9978 * sysdeps/arm/bsd-_setjmp.S: Likewise.
9979 * sysdeps/generic/bsd-_setjmp.c: Likewise.
9980 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
9981 * sysdeps/i386/bsd-_setjmp.S: Likewise.
9982 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9983 * sysdeps/mips/bsd-_setjmp.S: Likewise.
9984 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9985 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
9986 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
9987 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
9988 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
9989 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
9990 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
9991 * sysdeps/sh/bsd-_setjmp.S: Likewise.
9992 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
9993 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
9994 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
9995 * sysdeps/vax/bsd-_setjmp.S: Likewise.
9996 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
9998 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10000 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10002 2002-12-30 Roland McGrath <roland@redhat.com>
10004 * Rules (generated): Target removed.
10005 * mach/Makefile (generated): Define it here instead.
10007 * math/Makefile (generated): Add m_*l and m_*f variants too.
10009 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10011 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10012 the to-be-deleted objects right away instead of later separately.
10013 The latter fails because the scope data structures of the DSO
10014 might already be gone.
10016 * elf/Makefile: Add rules to build and run reldep8 test.
10017 * elf/reldep8.c: New file.
10018 * elf/reldep8mod1.c: New file.
10019 * elf/reldep8mod2.c: New file.
10020 * elf/reldep8mod3.c: New file.
10021 Contributed by Jakub Jelinek.
10023 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10025 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10026 checking of return value ENOSYS from getdents64.
10028 2002-12-28 Andreas Schwab <schwab@suse.de>
10030 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10031 ($(common-objpfx)s-%.d): Generalized from
10032 $(common-objpfx)s-proto.d rule.
10033 (common-generated): Add s-proto-cancel.d.
10034 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10035 cancellable syscalls.
10036 * sysdeps/unix/s-proto-cancel.S: New file.
10038 2002-12-29 Roland McGrath <roland@redhat.com>
10040 * resolv/res_libc.c: Move _res defn magic after res_init defn
10041 so _res macro is in effect for that code.
10043 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10044 pattern for prepending $(..) so it doesn't affect $(foo).
10046 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10048 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10050 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10053 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10055 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10057 2002-12-28 Andreas Jaeger <aj@suse.de>
10059 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10061 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10063 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10065 * inet/herrno.c (__h_errno_location): Remove.
10066 * inet/Makefile (routines): Add herrno-loc.
10067 * resolv/res_libc.c (__res_state): Remove.
10068 * resolv/Makefile (routines): Add res-state.
10069 * sysdeps/generic/herrno-loc.c: New file.
10070 * sysdeps/generic/res-state.c: New file.
10072 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10074 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10075 Only define if USE_DL_SYSINFO is defined.
10077 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10079 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10080 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10081 Define. Patch by Richard Henderson and Jes Sorensen.
10082 (PSEUDO): Remove unnecessary ;;.
10083 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10084 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10085 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10086 if not initializing thread pointer.
10087 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10088 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10089 make it weak also if NONTLS_INIT_TP.
10090 * sysdeps/unix/common/pause.c: Handle cancellation.
10091 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10092 (LOADSYSCALL): Remove.
10093 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10094 (SYSCALL_ERROR_HANDLER): Use it.
10095 (PSEUDO): Don't jump around error handler.
10096 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10097 jump around error handler.
10098 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10099 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10100 to __syscall_error_handler on failure.
10101 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10102 (LOADSYSCALL): Remove.
10103 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10104 (SYSCALL_ERROR_HANDLER): Use it.
10105 (PSEUDO): Don't jump around error handler.
10106 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10107 jump around error handler.
10108 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10109 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10110 to __syscall_error_handler on failure.
10112 2002-12-27 Roland McGrath <roland@redhat.com>
10114 * scripts/gen-as-const.awk: New file.
10115 * Makefile (distribute): Add it.
10116 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10117 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10119 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10121 2002-12-27 Andreas Schwab <schwab@suse.de>
10123 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10125 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10127 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
10130 2002-12-27 Andreas Schwab <schwab@suse.de>
10132 * Makerules ($(common-objpfx)%.make): Filter through
10133 $(sed-remove-objpfx).
10135 2002-12-23 Roland McGrath <roland@redhat.com>
10137 * scripts/abilist.awk: Produce a more compact format, divided into
10138 stanzas for each version set, the set name listed only once.
10139 * scripts/extract-abilist.awk: New file.
10140 * scripts/merge-abilist.awk: New file.
10141 * Makerules (check-abi-%, update-abi-%): New pattern rules.
10142 (update-abi, check-abi): New targets.
10143 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
10145 2002-12-19 Roland McGrath <roland@redhat.com>
10147 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
10149 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
10152 2002-12-21 Andreas Schwab <schwab@suse.de>
10154 * elf/check-textrel.c (handle_file): Swap p_type.
10156 2002-12-21 Andreas Schwab <schwab@suse.de>
10158 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
10159 (INLINE_SYSCALL): Use it.
10160 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10161 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10163 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
10164 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
10166 2002-12-20 Art Haas <ahaas@airmail.net>
10168 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
10171 2002-12-21 Philip Blundell <philb@gnu.org>
10173 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
10174 top as seventh arg to __libc_start_main.
10175 Reported by paulnash@wildseed.com.
10177 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
10179 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
10180 compatibility cruft when new enough kernel is assumed.
10182 2002-12-20 Jakub Jelinek <jakub@redhat.com>
10184 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
10185 instead of INLINE_SYSCALL.
10187 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10189 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
10192 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
10193 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
10194 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
10195 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10196 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10197 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10198 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10199 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10200 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
10201 Patch by William Lee Irwin <wli@holomorphy.com>.
10203 2002-12-20 Andreas Schwab <schwab@suse.de>
10205 * locale/programs/ld-measurement.c (measurement_output): Fix
10208 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10210 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
10211 Redefine _IO_flockifle and _IO_funlockfile as inlines.
10213 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
10214 builds add "tls" in the search path.
10215 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
10216 (path_hwcap): Recognize "tls".
10218 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10220 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
10221 __waitpid instead of waitpid.
10223 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
10225 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10226 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10227 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10229 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
10230 information for system calls.
10232 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
10235 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
10237 2002-12-19 Roland McGrath <roland@redhat.com>
10239 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
10240 * iconvdata/ibm922.h: Likewise.
10241 * iconvdata/ibm930.h: Likewise.
10242 * iconvdata/ibm932.h: Likewise.
10243 * iconvdata/ibm933.h: Likewise.
10244 * iconvdata/ibm935.h: Likewise.
10245 * iconvdata/ibm937.h: Likewise.
10246 * iconvdata/ibm939.h: Likewise.
10247 * iconvdata/ibm943.h: Likewise.
10248 * iconvdata/isiri-3342.h: Likewise.
10250 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10252 * test-skeleton.c (main): Make sure correct value is seen as
10253 argv[0] after adjustment of argv, and argc.
10255 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
10256 RTLD_CORRECT_DYNAMIC_WEAK is defined.
10258 2002-12-19 Jakub Jelinek <jakub@redhat.com>
10260 * nscd/connections.c (nscd_run): Shut up warning.
10261 * tst-ungetc.c (assert): Undefined before redefining.
10263 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10265 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
10268 2002-12-17 Art Haas <ahaas@airmail.net>
10270 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
10271 * iconvdata/cp775.h: Likewise.
10272 * iconvdata/ibm1046.h: Likewise.
10273 * iconvdata/ibm1124.h: Likewise.
10274 * iconvdata/ibm1129.h: Likewise.
10275 * iconvdata/ibm1132.h: Likewise.
10276 * iconvdata/ibm1133.h: Likewise.
10277 * iconvdata/ibm1160.h: Likewise.
10278 * iconvdata/ibm1161.h: Likewise.
10279 * iconvdata/ibm1162.h: Likewise.
10280 * iconvdata/ibm1163.h: Likewise.
10281 * iconvdata/ibm1164.h: Likewise.
10283 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10285 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
10286 __ASSUME_CLONE_THREAD_FLAGS is defined.
10287 * sysdeps/unix/sysv/linux/kernel-features.h
10288 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
10290 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10292 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
10294 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10296 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
10298 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10300 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
10302 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10304 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10305 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
10306 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
10309 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10311 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
10312 __libc_writev to...
10313 [libc: GLIBC_PRIVATE]: ...here.
10314 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
10315 __libc_msgsnd to...
10316 [libc: GLIBC_PRIVATE]: ...here.
10318 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10320 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
10321 Use it instead of directly int $0x80.
10322 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
10323 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10324 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10325 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10326 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10327 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10329 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10331 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
10333 * elf/elf.h (AT_SYSINFO): New define.
10334 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
10337 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10339 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
10341 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
10343 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
10345 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
10347 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
10349 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
10351 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
10352 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
10353 available, otherwise __libc_maybe_call.
10354 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
10355 cancellation handling.
10356 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
10358 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10360 * posix/regcomp.c (free_workarea_compile): Free the new member
10362 (analyze): Initialize ORG_INDICES.
10363 (duplicate_node_closure): Search for a existing node, which is
10364 duplicated from the node ORG_DEST and satisfies the constraint
10365 CONSTRAINT. And use it to avoid inifimite loop.
10366 (search_duplicated_node): New function.
10367 (duplicate_node): Store the index of the original node.
10368 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
10370 * posix/regex_internal.h (re_dfa_t): Add new members.
10372 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10374 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
10376 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10378 * sysdeps/posix/system.c (do_system): Add support for installation
10379 of cancellation handlers.
10380 * sysdeps/unix/sysv/linux/i386/system.c: New file.
10382 * stdlib/Makefile (tests): Add tst-system.
10383 * stdlib/tst-system.c: New file.
10385 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
10386 CENABLE]: Don't lose content of %ebx.
10388 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10390 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
10391 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
10393 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10395 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
10396 fails to return a function pointer don't use it.
10398 2002-12-16 Art Haas <ahaas@airmail.net>
10400 * io/ftw.c: Convert GCC extension initializer syntax to C99.
10401 * iconvdata/iso-ir-165.c: Likewise.
10402 * iconvdata/jis0208.c: Likewise.
10403 * iconvdata/jis0212.c: Likewise.
10405 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10407 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
10408 epoll_ctl, and epoll_wait.
10409 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
10410 epoll_create, epoll_ctl, and epoll_wait.
10411 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
10412 Davide Libenzi <davidel@xmailserver.org>.
10413 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
10414 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
10417 2002-12-16 Art Haas <ahaas@airmail.net>
10419 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
10421 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
10422 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
10423 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
10425 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10427 * stdio-common/Makefile (routines): Remove lockfile. Add
10428 flockfile, ftrylockfile, and funlockfile.
10429 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
10430 * sysdeps/generic/flockfile.c: New file.
10431 * sysdeps/generic/ftrylockfile.c: New file.
10432 * sysdeps/generic/funlockfile.c: New file.
10434 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10436 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
10437 macros instead of doing the calls directly.
10438 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
10439 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
10442 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10444 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
10445 * sysdeps/ieee754/bits/nan.h: Likewise.
10447 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
10448 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
10450 2002-12-16 Roland McGrath <roland@redhat.com>
10452 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
10453 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
10454 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
10456 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
10457 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
10459 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
10460 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
10461 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
10462 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
10463 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
10464 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
10465 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
10466 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
10468 2002-12-13 Paul Eggert <eggert@twinsun.com>
10470 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
10471 is now u_int, not int.
10472 (struct XDR.x_handy): Now u_int, not int.
10473 * sunrpc/xdr_mem.c: Include <limits.h>.
10474 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
10475 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
10476 x_handy is now unsigned, not signed.
10477 Do not decrement x_handy if no change is made.
10478 (xdrmem_setpos): Check for int overflow.
10479 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
10480 (xdr_sizeof): Remove cast that is now unnecessary, now that
10481 x_handy is unsigned.
10483 2002-12-15 Art Haas <ahaas@airmail.net>
10485 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
10486 * iconvdata/gap.awk: Likewise.
10487 * iconvdata/gen-8bit-gap-1.sh: Likewise.
10488 * iconvdata/gen-8bit-gap.sh: Likewise.
10489 * locale/C-address.c: Likewise.
10490 * locale/C-collate.c: Likewise.
10491 * locale/C-ctype.c: Likewise.
10492 * locale/C-identification.c: Likewise.
10493 * locale/C-measurement.c: Likewise.
10494 * locale/C-messages.c: Likewise.
10495 * locale/C-monetary.c: Likewise.
10496 * locale/C-name.c: Likewise.
10497 * locale/C-numeric.c: Likewise.
10498 * locale/C-paper.c: Likewise.
10499 * locale/C-telephone.c: Likewise.
10500 * locale/C-time.c: Likewise.
10501 * nscd/connections.c: Likewise.
10502 * nscd/grpcache.c: Likewise.
10503 * nscd/hstcache.c: Likewise.
10504 * nscd/pwdcache.c: Likewise.
10505 * stdio-common/vfprintf.c: Likewise.
10506 * stdlib/random.c: Likewise.
10507 * sysdeps/generic/siglist.c: Likewise.
10508 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10509 * sysdeps/ieee754/bits/nan.h: Likewise.
10510 * sysdeps/posix/sprofil.c: Likewise.
10511 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
10512 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
10513 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
10515 2002-12-15 Roland McGrath <roland@redhat.com>
10517 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
10519 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
10520 <tls.h> here, no need for it.
10521 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
10523 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
10524 parameter, not varargs parameter.
10526 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
10527 argument so it's not an unused variable.
10529 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
10530 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
10533 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
10535 2002-12-15 Ulrich Drepper <drepper@redhat.com>
10537 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
10538 original __libc_fcntl code. Just renamed.
10540 2002-12-15 Andreas Schwab <schwab@suse.de>
10542 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
10544 2002-12-14 Olaf Hering <olh@suse.de>
10546 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
10547 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
10549 2002-12-15 Ulrich Drepper <drepper@redhat.com>
10551 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
10553 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
10554 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
10556 * sysdeps/unix/sysv/linux/open64.c: New file.
10558 * sysdeps/generic/pselect.c: Add support for cancellation handling.
10559 * sysdeps/posix/open64.c: Likewise.
10560 * sysdeps/posix/sigpause.c: Likewise.
10561 * sysdeps/posix/sigwait.c: Likewise.
10562 * sysdeps/posix/system.c: Likewise.
10563 * sysdeps/posix/waitid.c: Likewise.
10564 * sysdeps/unix/sysv/linux/accept.S: Likewise.
10565 * sysdeps/unix/sysv/linux/connect.S: Likewise.
10566 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
10567 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10568 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
10569 * sysdeps/unix/sysv/linux/poll.c: Likewise.
10570 * sysdeps/unix/sysv/linux/pread.c: Likewise.
10571 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10572 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
10573 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10574 * sysdeps/unix/sysv/linux/readv.c: Likewise.
10575 * sysdeps/unix/sysv/linux/recv.S: Likewise.
10576 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
10577 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
10578 * sysdeps/unix/sysv/linux/send.S: Likewise.
10579 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
10580 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
10581 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
10582 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
10583 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
10584 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
10585 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
10586 * sysdeps/unix/sysv/linux/wait.c: Likewise.
10587 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
10588 * sysdeps/unix/sysv/linux/writev.c: Likewise.
10589 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
10590 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10592 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10594 * sysdeps/generic/sysdep-cancel.h: New file.
10595 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
10596 cancelable syscall.
10597 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
10598 recvmsg, send, sendmsg, sendto): Make cancelable.
10599 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
10600 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
10601 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10602 sendto, osf_select): Likewise.
10603 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
10604 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
10605 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
10606 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10608 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
10609 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
10610 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
10611 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10613 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
10614 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10615 sendto, select): Likewise.
10616 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
10617 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
10619 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
10620 select, fcntl): Likewise.
10621 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
10622 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
10623 read, readv, select, sigsuspend, write, writev): Likewise.
10625 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10627 * dirent/bug-readdir1.c: Include unistd.h.
10629 2002-12-13 Jakub Jelinek <jakub@redhat.com>
10631 * locale/programs/locale.c: Include locarchive.h.
10632 (ARCHIVE_NAME): Define.
10633 (write_archive_locales): New function.
10634 (write_locales): Use it. Ensure the same locale is not printed
10635 multiple times in verbose mode.
10636 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
10637 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
10639 (struct nameent): New type.
10640 (nameentcmp): New function.
10642 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10644 * posix/regex_internal.c (re_string_context_at): Guard wide char
10645 code with #ifdef RE_ENABLE_I18N.
10647 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
10649 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
10651 2002-12-13 Roland McGrath <roland@redhat.com>
10653 * posix/bug-regex15.c: New file.
10654 * posix/Makefile (tests): Add it.
10656 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
10657 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
10659 2002-12-13 Ulrich Drepper <drepper@redhat.com>
10661 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
10663 * misc/syslog.c (log_cleanup): Don't use parameter in
10664 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
10665 pass NULL instead of a pointer to syslog_lock.
10667 2002-12-12 Ulrich Drepper <drepper@redhat.com>
10669 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
10670 linker map for all iconv modules.
10671 (distribute): Add gconv.map.
10672 * iconvdata/gconv.map: New file.
10674 * elf/Makefile: Also check all iconv modules for text relocations.
10676 * stdlib/Makefile: Remove code to automatically import GMP.
10678 * elf/Makefile (tests): Add rules to build and run check-textrel.
10679 * elf/check-textrel.c: New file.
10681 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
10684 2002-12-11 Jakub Jelinek <jakub@redhat.com>
10686 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
10689 2002-04-30 Bruno Haible <bruno@clisp.org>
10691 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
10692 the encoding if it already has slashes.
10693 Reported by Perry Rapp <prapp@erols.com>.
10695 2002-12-11 Roland McGrath <roland@redhat.com>
10697 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
10698 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
10699 Turn off PIC for compiling this file.
10701 2002-12-11 Ulrich Drepper <drepper@redhat.com>
10703 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
10704 definitions. Not needed.
10705 [_LIBC]: Use definitions from libc-lock.h instead of referencing
10706 pthread routines directly.
10707 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
10709 (arena_get2): Don't look at return value of mutex_lock.
10711 2002-12-11 Roland McGrath <roland@redhat.com>
10713 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
10714 elf-init.o instead of compiling a PIC version.
10716 2002-12-11 Bruno Haible <bruno@clisp.org>
10718 * intl/gettext.h: Renamed to ...
10719 * intl/gmo.h: ... here.
10720 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
10721 * intl/gettextP.h: Update.
10722 * intl/loadmsgcat.c: Update.
10724 * intl/gettextP.h (PARAMS): Make more portable.
10725 (attribute_hidden): Define as empty macro if not already defined.
10726 * intl/hash-string.h (PARAMS): Make more portable.
10727 * intl/loadinfo.h (PARAMS): Likewise.
10728 * intl/plural-exp.h (PARAMS): Likewise.
10729 (attribute_hidden): Move definition near the definition of
10732 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
10733 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
10735 2002-07-13 Bruno Haible <bruno@clisp.org>
10737 * intl/dcigettext.c (freea): New macro.
10738 (FREE_BLOCKS): Free also the registered blocks.
10739 (DCIGETTEXT): Free the 'search' variable.
10740 Reported by Andreas Fischer <a.fischer@asentics.de>.
10742 2002-04-27 Bruno Haible <bruno@clisp.org>
10744 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
10745 * intl/dcigettext.c: Likewise.
10746 * intl/dcgettext.c: Likewise.
10747 * intl/dgettext.c: Likewise.
10748 * intl/gettext.c: Likewise.
10749 * intl/dcngettext.c: Likewise.
10750 * intl/dngettext.c: Likewise.
10751 * intl/ngettext.c: Likewise.
10752 * intl/textdomain.c: Likewise.
10753 * intl/bindtextdom.c: Likewise.
10754 * intl/plural-exp.h: Likewise.
10756 2002-01-02 Bruno Haible <bruno@clisp.org>
10758 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
10760 2001-04-30 Bruno Haible <bruno@clisp.org>
10762 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
10763 default macro definitions. Needed for mingw32.
10765 2002-12-10 Ulrich Drepper <drepper@redhat.com>
10767 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
10768 __builtin_constant_p to macro parameter.
10770 * sysdeps/generic/sigpause.c: Define all functions as weak.
10771 * sysdeps/posix/sigpause.c: Likewise.
10773 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
10776 2002-12-10 Jakub Jelinek <jakub@redhat.com>
10778 * elf/tst-array1.c (preinit_array, init_array, fini_array):
10779 Explicitly align the array to sizeof (void *).
10780 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
10782 * include/libc-symbols.h: Fix a comment typo.
10784 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
10785 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
10787 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
10789 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
10790 (__libc_sigsuspend): Likewise.
10791 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
10792 (__libc_sigsuspend): Likewise.
10793 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
10794 (creat): New weak alias.
10796 2002-12-10 Roland McGrath <roland@redhat.com>
10798 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
10799 contributes a manual chapter.
10800 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
10803 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
10804 and move contents to ...
10805 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
10806 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
10807 it instead of duplicating its contents.
10808 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
10810 2002-12-09 Jakub Jelinek <jakub@redhat.com>
10812 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
10814 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
10816 (EXTRA_LD_ENVVARS): Use it.
10817 (DL_OSVERSION_INIT): Define.
10818 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
10820 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
10822 2002-12-10 Ulrich Drepper <drepper@redhat.com>
10824 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
10826 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
10827 call. It is not allowed to destroy pthread mutexes which are
10828 still in use even though it is safe for our implementations. If
10829 somebody still uses the descriptor it is a bug.
10831 2002-12-09 Richard Henderson <rth@redhat.com>
10833 * csu/abi-note.S: Use .p2align, not .align.
10835 2002-12-09 Ulrich Drepper <drepper@redhat.com>
10837 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
10838 __libc_select aliases.
10840 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
10843 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
10845 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
10847 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
10849 * sysdeps/unix/syscalls.list: Define __libc_select alias.
10851 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
10853 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
10854 __libc___xpg_sigpause aliases.
10856 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
10858 * misc/error.c: Remove use of USE_IN_LIBIO.
10860 2002-12-08 Roland McGrath <roland@redhat.com>
10862 * elf/Makefile (tests): Uncomment tst-array[123].
10863 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
10864 * csu/elf-init.c: New file.
10865 * csu/Makefile (routines, static-only-routines): Add elf-init.
10866 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
10867 and __libc_csu_fini in place of _fini.
10868 * sysdeps/arm/elf/start.S: Likewise.
10869 * sysdeps/cris/elf/start.S: Likewise.
10870 * sysdeps/hppa/elf/start.S: Likewise.
10871 * sysdeps/i386/elf/start.S: Likewise.
10872 * sysdeps/ia64/elf/start.S: Likewise.
10873 * sysdeps/m68k/elf/start.S: Likewise.
10874 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
10875 * sysdeps/mips/elf/start.S: Likewise.
10876 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
10877 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
10878 * sysdeps/s390/s390-32/elf/start.S: Likewise.
10879 * sysdeps/s390/s390-64/elf/start.S: Likewise.
10880 * sysdeps/sh/elf/start.S: Likewise.
10881 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10882 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10883 * sysdeps/x86_64/elf/start.S: Likewise.
10885 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
10886 struct containing function ptr and value, free it.
10887 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
10888 It's not safe to let the new thread use the SIGEV pointer.
10890 2001-10-20 Paul Eggert <eggert@twinsun.com>
10892 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
10893 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
10894 Use strerror_r that is only a macro, even if it is not a function.
10895 (strerror): Check for HAVE_DECL_STRERROR before declaring.
10896 (private_strerror): Use prototypes, not old-style function definition.
10897 (print_errno_message): New function.
10898 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
10899 char*-flavored one.
10900 (error_tail, error, error_at_line): Use it.
10902 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
10904 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
10906 2002-12-08 Ulrich Drepper <drepper@redhat.com>
10908 * scripts/output-format.sed: Fix bug in one of the s expressions
10909 which used / for one too many things.
10911 * include/unistd.h: Declare __libc_close.
10913 2002-12-07 Ulrich Drepper <drepper@redhat.com>
10915 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
10917 2002-12-07 Roland McGrath <roland@redhat.com>
10919 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
10920 from 2002-12-06, but remove unnecessary memset call without removing
10921 necessary copy of initialization image.
10923 * Makerules ($(common-objpfx)format.lds): New target.
10924 (common-generated): Add it.
10925 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
10926 * scripts/output-format.sed: New file.
10927 * Makefile (distribute): Add it.
10929 2002-12-07 Ulrich Drepper <drepper@redhat.com>
10931 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
10932 Reported by Art Haas <ahaas@airmail.net>.
10934 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
10936 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
10938 2002-12-07 Jakub Jelinek <jakub@redhat.com>
10940 * string/test-strncpy.c (do_random_tests): Improve test coverage.
10942 2002-12-06 Ulrich Drepper <drepper@redhat.com>
10944 * test-skeleton.c (timeout_handler): Allow expected signal to be
10947 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
10949 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
10951 2002-12-07 Jakub Jelinek <jakub@redhat.com>
10953 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
10954 (SYSCALL_ERROR_HANDLER): Fix a pasto.
10955 Reported by Jeff Bailey <jbailey@nisa.net>.
10957 2002-12-06 Ulrich Drepper <drepper@redhat.com>
10959 * sysdeps/generic/libc-tls.c: Undo last patch.
10961 * include/wctype.h: Define iswalnum with libc_hidden_proto.
10963 * include/signal.h: Define raise with libc_hidden_proto.
10965 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
10966 __execve instead of snprintf and execve.
10968 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
10971 2002-12-06 Jakub Jelinek <jakub@redhat.com>
10973 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
10974 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
10976 2002-12-06 Ulrich Drepper <drepper@redhat.com>
10978 * misc/syslog.c (log_cleanup): New function.
10979 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
10980 (closelog): Likewise.
10982 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
10983 * elf/dl-iteratephdr.c: Likewise.
10984 * elf/dl-lookup.c: Likewise.
10985 * elf/dl-misc.c: Likewise.
10986 * elf/dl-open.c: Likewise.
10987 * elf/dl-support.c: Likewise.
10988 * elf/rtld.c: Likewise.
10989 * sysdeps/generic/ldsodefs.h: Likewise.
10990 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
10991 * sysdeps/mach/bits/libc-lock.h: Likewise.
10992 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
10994 2002-12-06 Roland McGrath <roland@redhat.com>
10996 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
10998 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
10999 (malloc_starter, memalign_starter, free_starter): Don't define these.
11000 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11001 Don't declare them either.
11002 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11003 __pthread_initialize, so no need to set hooks to *_starter.
11004 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11005 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11006 (__libc_malloc_pthread_startup): New function.
11007 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11009 * malloc/hooks.c (memalign_starter): New function.
11010 * malloc/malloc.c: Declare it.
11011 * malloc/arena.c (save_memalign_hook): New variable.
11012 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11014 * elf/dl-minimal.c (free): Clear the memory.
11015 (calloc): Just call malloc, knowing all memory it returns is cleared.
11017 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11018 malloc and memset; calloc can avoid the zeroing when redundant.
11019 (_dl_tls_setup): Likewise.
11020 * elf/dl-load.c (decompose_rpath): Likewise.
11021 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11022 call, since memory from sbrk at startup is already zero.
11024 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11025 error string for failure, null for success. Update callers.
11026 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11027 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11029 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11031 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11033 (readahead): Change args to i:iii.
11034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11035 Change args to i:iii.
11036 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11039 2002-12-05 Roland McGrath <roland@redhat.com>
11041 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11042 call all functions rather than none.
11043 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11045 2002-12-04 Roland McGrath <roland@redhat.com>
11047 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11048 on _nl_current_LC_* variables.
11050 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11052 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11053 the file descriptor. This is testing what the bug report was about.
11055 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11057 * po/be.po: New file.
11059 * argp/Makefile (tests): Add tst-argp1.
11061 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11062 Change type of _attribute to void*.
11063 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11064 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11065 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11066 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11067 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11069 2002-12-04 Roland McGrath <roland@redhat.com>
11071 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11072 members to the end, so a libpthread compiled with !USE_TLS will still
11073 find other members properly.
11075 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11076 operand for DEST memory. Fix dummy input operand to use SRC.
11077 Reported by Davin McCall <davmac@ozonline.com.au>.
11079 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11080 alignment when initializing the DTV entry.
11082 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11083 when TLS has not been set up, try to set it up if we can.
11084 * elf/tst-tls4.c: Revert last change.
11085 * elf/tst-tls5.c: Likewise.
11086 * elf/tst-tls6.c: Likewise.
11087 * elf/tst-tls7.c: Likewise.
11088 * elf/tst-tls8.c: Likewise.
11089 * elf/tst-tls9.c: Likewise.
11091 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11092 * sysdeps/generic/ldsodefs.h: Declare it.
11093 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11094 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11095 function, broken out of __libc_setup_tls.
11096 (init_static_tls): Likewise.
11097 (__libc_setup_tls): Call them.
11098 (_dl_tls_setup): New function, uses new subroutines.
11100 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11101 Clear the pointer when returning true.
11102 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11103 first element of the slotinfo list too.
11105 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11108 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11109 (_dl_determine_tlsoffset): Likewise.
11111 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11112 startup_error_tsd, made global.
11113 (dl_main): Update initialization.
11114 * elf/dl-tsd.c: Likewise.
11115 * sysdeps/generic/ldsodefs.h: Declare it.
11117 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11119 * manual/texinfo.tex: Update from latest upstream version.
11121 2002-12-03 Roland McGrath <roland@redhat.com>
11123 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11124 area surplus in calculation for sbrk call.
11126 * iconvdata/cp1125.c: New file.
11127 * iconvdata/Makefile (distribute): Add it.
11128 (modules): Add CP1125.
11129 (gen-8bit-gap-modules): Add cp1125.
11130 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
11131 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
11133 2002-12-03 Andreas Jaeger <aj@suse.de>
11135 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11137 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11139 * sysdeps/posix/system.c (do_system): Make signal handler
11140 installation thread safe.
11142 2002-12-02 Roland McGrath <roland@redhat.com>
11144 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
11145 caller from EXTRA to -.
11146 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11147 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11148 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11150 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
11152 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
11153 bits of RM are cleared.
11155 2002-12-02 Roland McGrath <roland@redhat.com>
11157 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
11158 TLS setup is required.
11159 * elf/tst-tls5.c: Likewise.
11160 * elf/tst-tls6.c: Likewise.
11161 * elf/tst-tls7.c: Likewise.
11162 * elf/tst-tls8.c: Likewise.
11163 * elf/tst-tls9.c: Likewise.
11165 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
11166 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
11167 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
11168 for being null before calling free_slotinfo.
11169 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
11170 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
11172 2002-11-30 Bruno Haible <bruno@clisp.org>
11174 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
11175 (struct __gconv_step): New field __btowc_fct.
11176 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
11177 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
11179 (__gconv_btwoc_ascii): New declaration.
11180 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11181 (__gconv_btwoc_ascii): New function.
11182 * iconv/gconv_builtin.h: Add BtowcFct argument to all
11183 BUILTIN_TRANSFORMATION invocations.
11184 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11185 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
11186 * iconv/gconv_builtin.c (map): New field btowc_fct.
11187 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
11189 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
11190 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
11191 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
11192 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
11193 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
11194 (gconv_init): Initialize __btowc_fct field.
11195 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
11196 * iconv/loop.c: Document ONEBYTE_BODY.
11197 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
11198 Undefine ONEBYTE_BODY at the end.
11199 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
11200 * iconvdata/8bit-gap.c (NONNUL): New macro.
11201 (BODY for FROM_LOOP): Use it.
11202 (ONEBYTE_BODY): New macro.
11203 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
11204 (NONNUL): New macro.
11205 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
11206 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
11207 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
11208 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
11209 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
11210 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
11211 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
11212 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
11213 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
11214 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
11215 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
11216 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
11217 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
11218 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
11219 * iconvdata/ibm932.c: Include <stdbool.h>.
11220 (TRUE, FALSE): Remove macros.
11221 (BODY for FROM_LOOP): Remove unused variable rp1.
11222 (ONEBYTE_BODY): New macro.
11223 (BODY for TO_LOOP): Use bool.
11224 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
11225 * iconvdata/ibm943.c: Include <stdbool.h>.
11226 (TRUE, FALSE): Remove macros.
11227 (BODY for FROM_LOOP): Remove unused variable rp1.
11228 (ONEBYTE_BODY): New macro.
11229 (BODY for TO_LOOP): Use bool.
11230 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
11231 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
11232 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
11233 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
11234 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
11235 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
11236 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
11237 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
11238 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
11239 * iconvdata/gbbig5.c: Tweak comment.
11241 2002-12-02 Ulrich Drepper <drepper@redhat.com>
11243 * po/fi.po: Update from translation team.
11245 2002-12-01 Roland McGrath <roland@redhat.com>
11247 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11248 testing getdents64 return value.
11250 * scripts/versions.awk: Don't pass -n flag to sort command.
11252 * posix/bug-regex13.c: Include <string.h>.
11254 * sysdeps/generic/libc-start.c (__libc_start_main): Do
11255 DL_SYSDEP_OSCHECK here.
11256 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
11257 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
11259 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
11260 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
11262 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
11263 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
11265 * include/link.h: Comment typo fix.
11267 2002-12-01 Roland McGrath <roland@frob.com>
11269 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
11270 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
11271 _POSIX_MEMORY_PROTECTION): Likewise.
11272 (_POSIX_POLL, _POSIX_SELECT): Removed.
11274 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11276 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11277 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
11279 2002-11-28 Jakub Jelinek <jakub@redhat.com>
11281 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
11283 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
11286 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11288 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
11289 branch prediction buffers by using unpaired call/ret.
11291 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11293 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
11294 first parameters constraint string.
11295 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
11297 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
11299 * posix/regcomp.c (parse_expression): Set the bit since the back
11300 reference is used in the regular expression.
11301 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
11303 (re_node_set_init_copy): Likewise.
11304 * posix/regex_internal.h (state_array_t): New structure.
11305 (re_sub_match_last_t): Likewise.
11306 (re_sub_match_top_t): Likewise.
11307 (re_match_context_t): Add new members.
11308 (re_dfa_t): Likewise.
11309 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
11310 to check the matching is really correct, and retry if failed.
11311 Move the routin pruning the impossible nodes from here, ...
11312 (prune_impossible_nodes): To this function.
11313 (check_matching): Invoke check_subexp_matching_top, and replace
11314 redundant checking with transit_state_bkref invocation.
11315 (proceed_next_node): Replace strncmp with memcmp. Reported by
11316 Paolo Bonzini <bonzini@gnu.org>.
11317 (update_cur_sifted_state): Remove search_subexp invocation.
11318 (search_subexp): Remove this function.
11319 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
11321 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
11322 Remove unused invocation of match_ctx_add_entry.
11323 (transit_state): Invoke check_subexp_matching_top.
11324 (check_subexp_matching_top): New function.
11325 (transit_state_bkref): Remove unused array.
11326 Merge transit_state_bkref_loop.
11327 (transit_state_bkref_loop): Use get_subexp instead of
11328 sift_states_backward. Use search_cur_bkref_entry for optimization.
11329 Merge this function to transit_state_bkref.
11330 (get_subexp): New function.
11331 (get_subexp_sub): Likewise.
11332 (find_subexp_node): Likewise.
11333 (check_arrival): Likewise.
11334 (check_arrival_expand_ecl): Likewise.
11335 (check_arrival_expand_ecl_sub): Likewise.
11336 (expand_bkref_cache): Likewise.
11337 (match_ctx_init): Initialize new members.
11338 (match_ctx_clean): New function.
11339 (match_ctx_free): Release new members.
11340 (match_ctx_free_subtops): New function.
11341 (match_ctx_add_entry): Fix indent.
11342 (search_cur_bkref_entry): New function.
11343 (match_ctx_add_subtop): Likewise.
11344 (match_ctx_add_sublast): Likewise.
11346 2002-11-25 Ulrich Drepper <drepper@redhat.com>
11348 * iconv/Makefile (tests): Remove tst-iconv4.c
11349 * iconv/tst-iconv4.c: Moved to...
11350 * iconvdata/tst-iconv4.c: ...here. New file.
11351 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
11353 2002-11-25 Roland McGrath <roland@redhat.com>
11355 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
11356 Grok AF_LINK if defined.
11357 From Momchil Velikov <velco@fadata.bg>.
11359 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
11360 brdaddr, or dstaddr, just set those pointers to null and don't fail.
11361 Reported by Momchil Velikov <velco@fadata.bg>.
11363 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
11364 is > sizeof IFR->ifa_addr, advance past the whole longer length.
11365 (__ifreq): Count up NIFS that way too.
11366 Reported by Momchil Velikov <velco@fadata.bg>.
11368 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
11370 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
11371 and <fpu_control.h>.
11373 2002-11-24 Ulrich Drepper <drepper@redhat.com>
11375 * elf/elf.h (EM_ST19): Fix typo.
11377 2002-11-25 Jakub Jelinek <jakub@redhat.com>
11379 * include/errno.h (__set_errno): Define as errno = val
11382 2002-11-24 Roland McGrath <roland@redhat.com>
11384 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
11385 * sysdeps/posix/writev.c: Likewise.
11386 From Momchil Velikov <velco@fadata.bg>.
11388 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
11389 calling *GL(dl_error_catch_tsd) for a thread-local location.
11390 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
11391 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
11392 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
11394 * libio/iofflush.c: Add libc_hidden_def.
11395 * libio/iofwrite.c: Likewise.
11396 * sysdeps/generic/sigtimedwait.c: Likewise.
11397 * sysdeps/generic/sigwaitinfo.c: Likewise.
11398 * sysdeps/posix/sigwait.c: Likewise.
11399 Reported by Momchil Velikov <velco@fadata.bg>.
11401 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
11402 to match <arpa/inet.h> declaration.
11403 * inet/inet_netof.c (inet_netof): Likewise.
11404 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
11405 Reported by Momchil Velikov <velco@fadata.bg>.
11407 * configure.in: Skip AUTOCONF check under --without-cvs.
11408 * configure: Regenerated.
11410 * posix/Makefile (headers): Add bits/pthreadtypes.h.
11411 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
11412 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
11414 2002-11-24 Andreas Schwab <schwab@suse.de>
11416 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
11417 with six arguments.
11419 2002-11-19 Jim Meyering <jim@meyering.net>
11421 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
11423 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
11425 2002-11-23 Roland McGrath <roland@redhat.com>
11427 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
11428 Just produce hex output for datum sizes.
11430 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
11431 Reported by Luca Barbieri <ldb@ldb.ods.org>.
11433 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
11435 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
11436 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
11437 and __unused3 fields.
11438 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
11439 [__WORDSIZE == 32]: Only PPC32 requires __unused1
11440 and __unused2 fields.
11441 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
11442 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
11443 __unused3, and __unused4 fields.
11445 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
11446 obtain lowest address for profiling in __monstartup call.
11448 2002-11-21 Roland McGrath <roland@redhat.com>
11450 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
11451 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
11453 * locale/localeinfo.h (struct locale_data): Revert last change.
11455 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
11456 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11458 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
11459 __NR_pread64 if not defined.
11460 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
11461 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11463 2002-11-21 Roland McGrath <roland@frob.com>
11465 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
11466 __libc_multiple_libcs here. Call __setfpucw.
11468 2002-11-21 Ulrich Drepper <drepper@redhat.com>
11470 * elf/Makefile (tests): Don't run test-arrayX tests for now.
11472 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
11473 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
11474 CLONE_CHILD_*TID flags.
11476 2002-11-20 Andreas Jaeger <aj@suse.de>
11478 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
11479 We pass struct ucontext on x86-64.
11481 (GET_FRAME): Adjust.
11482 (GET_STACK): Adjust.
11484 2002-11-20 Roland McGrath <roland@redhat.com>
11486 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
11487 conditionalize [! DO_VERSIONING] #error.
11489 * scripts/abilist.awk: Grok function descriptor symbols.
11491 * intl/tst-gettext.c (main): Check return values from setlocale.
11492 Add necessary unsetenv's to make LANG=existing-locale check work.
11494 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
11495 so aborted prior runs don't confuse things.
11497 * locale/localeinfo.h (struct locale_data: union locale_data_value):
11498 Use uintptr_t instead of unsigned int for `word' member.
11499 (_NL_CURRENT_WORD): Cast to uint32_t.
11501 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
11504 2002-11-20 Ulrich Drepper <drepper@redhat.com>
11506 * elf/tls-macros.h: Add IA-64 definitions.
11507 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
11509 * iconv/Makefile (tests): Add tst-iconv4.
11510 * iconv/tst-iconv4.c: New file.
11512 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
11513 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
11514 __GCONV_INCOMPLETE_INPUT.
11515 (ucs4le_internal_loop): Likewise.
11516 (ucs4le_internal_loop_unaligned): Likewise.
11517 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
11518 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
11519 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
11521 * iconv/loop.c (LOOPFCT): First test for empty input then for full
11524 * inet/getnameinfo.c: Use extend_alloca where appropriate.
11525 * sysdeps/posix/getaddrinfo.c: Likewise.
11527 * include/alloca.h (extend_alloca): New define. Based on stack
11528 direction it'll try to append to the previouls allocated buffer.
11530 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
11532 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
11533 use the same service for AF_INET and AF_INET6.
11535 2002-11-19 Ulrich Drepper <drepper@redhat.com>
11537 * intl/localealias.c (read_alias_file): Use only about 400 bytes
11538 of stack space instead of 16k.
11540 2002-11-18 Wolfram Gloger <wg@malloc.de>
11543 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
11544 nothing if not initialized. Bug report from Marcus Brinkmann
11545 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11547 2002-11-19 Roland McGrath <roland@redhat.com>
11549 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
11552 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
11553 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
11554 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
11555 * configure: Regenerated.
11557 2002-11-19 Ulrich Drepper <drepper@redhat.com>
11559 * include/dlfcn.h: __libc_dlopen is now a macro calling
11560 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
11561 (__libc_dlopen_mode): New prototype.
11562 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
11563 new parameter. Store new parameter in mode field of structure passed
11565 (struct do_dlopen_args): Add new field mode.
11566 (do_dlopen): Pass mode from parameter structure to _dl_open.
11568 2002-11-11 Randolf Chung <tausq@debian.org>
11570 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
11571 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
11572 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
11574 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
11576 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
11577 Set -mdisable-fpregs for this file.
11579 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
11581 * sysdeps/unix/sysv/linux/configure.in:
11582 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
11583 from gcc-3.0 era for backwards compatibility.
11584 * sysdeps/unix/sysv/linux/configure: Regenerate.
11586 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
11587 Define mcontext_t as a sigcontext.
11589 2002-11-18 Roland McGrath <roland@redhat.com>
11591 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
11592 Free memory in `last_result' if it was used.
11594 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
11595 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
11596 Do the parsing inline instead of copying strings and calling
11597 inet_network, and properly skip all alias names not matching the form.
11599 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
11601 2002-11-17 Ulrich Drepper <drepper@redhat.com>
11603 * manual/pattern.texi (Wordexp Example): Fix sample code.
11605 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
11606 childs stack which will be loaded into the %esi register.
11608 2002-11-14 Paul Eggert <eggert@twinsun.com>
11610 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
11611 overflow when skipping the question part and when unpacking aliases.
11613 2002-11-15 Roland McGrath <roland@redhat.com>
11615 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
11616 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
11617 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
11619 2002-11-15 Jakub Jelinek <jakub@redhat.com>
11621 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
11622 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
11624 2002-11-15 Roland McGrath <roland@redhat.com>
11626 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
11627 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
11628 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
11629 (+make-include-of-dep): New canned sequence.
11631 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
11632 From Dmitry V. Levin <ldv@altlinux.org>.
11634 2002-11-14 Roland McGrath <roland@redhat.com>
11636 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
11637 * inet/herrno.c (__libc_h_errno): Likewise.
11638 * resolv/res_libc.c (__libc_res): Likewise.
11639 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
11640 (__res_state) [! USE___THREAD]: Don't define as weak.
11641 * csu/Versions: Revert last change.
11642 * resolv/Versions: Revert last change.
11644 * Makerules ($(common-objpfx)%.make): New pattern rule.
11645 * tls.make.c: New file.
11646 * Makefile (distribute): Add it.
11648 * sysdeps/generic/errno.c [! USE___THREAD]
11649 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
11650 with compat_symbol so they are not link-time visible.
11651 [! USE___THREAD] (__libc_errno): New alias for errno.
11652 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
11653 Add __libc_errno here.
11654 * inet/herrno.c [USE___THREAD]: Use this conditional
11655 in place of [USE_TLS && HAVE___THREAD].
11656 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
11657 (h_errno, _h_errno): Declare these with compat_symbol so they are not
11659 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
11660 * resolv/res_libc.c [! USE___THREAD]
11661 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
11662 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
11663 (__libc_res): Define as alias for _res.
11664 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
11665 Add __libc_h_errno and __libc_res here.
11667 2002-11-14 Jakub Jelinek <jakub@redhat.com>
11669 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
11670 * resolv/Versions (h_errno, _res): Likewise.
11672 2002-11-14 Roland McGrath <roland@redhat.com>
11674 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
11675 (%.symlist): Likewise.
11677 2002-11-13 Roland McGrath <roland@redhat.com>
11679 * scripts/abilist.awk: New file.
11680 * Makefile (distribute): Add it.
11681 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
11682 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
11683 [$(subdir) = elf] (tests): Depend on libc.symlist.
11684 (generated, common-generated): Add those files.
11686 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
11687 * configure: Regenerated.
11688 * config.make.in (OBJDUMP): New variable, substituted by configure.
11690 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
11691 (mallochook, reallochook): Set them up.
11692 (checkhdr): Check HDR->magic2 value.
11693 (freehook): Reset HDR->magic2.
11694 (memalignhook): New static function.
11695 (old_memalign_hook): New static variable.
11696 (mcheck, reallochook): Set __memalign_hook to memalignhook.
11698 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
11701 2002-11-13 Andreas Jaeger <aj@suse.de>
11703 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
11705 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11707 2002-11-11 Paul Eggert <eggert@twinsun.com>
11709 * manual/crypt.texi (Cryptographic Functions): Mention that
11710 the MD5 one-way algorithm is compatible with BSD's.
11712 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11714 * posix/regex_internal.c (re_string_skip_chars): Also return the last
11716 (re_string_reconstruct): Calculate the context by itself when the
11717 offset points out of the valid range.
11718 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
11719 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
11720 (IS_WIDE_WORD_CHAR): New macro.
11721 (IS_WIDE_NEWLINE): New macro.
11723 2002-11-12 Andreas Jaeger <aj@suse.de>
11725 * sysdeps/x86_64/strchr.S: Don't use one register for two
11726 purposes, this fixes a bug noticed by test-strchr.c.
11728 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
11731 2002-11-12 Roland McGrath <roland@redhat.com>
11733 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
11734 (_G_IO_NO_BACKWARD_COMPAT): Define it.
11736 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
11737 instead of <pt-machine.h>.
11738 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
11740 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11742 2002-11-10 Roland McGrath <roland@redhat.com>
11744 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
11745 Call fputs instead of fwprintf (simpler to follow in debugger).
11747 * crypt/md5-crypt.c: Doc fix.
11749 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
11750 the beginning of generated target commands.
11752 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
11753 dependencies for these in case implicit rule search skipped the
11754 nonexistent source directory.
11755 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
11756 files with $(object-suffixes) as targets too.
11757 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
11758 and a target for it using $(make-target-directory).
11760 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
11762 2002-11-10 Roland McGrath <roland@frob.com>
11764 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
11765 * sysdeps/generic/bits/pthreadtypes.h: ... here.
11767 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
11768 l_start == 0 and l_len == 1 as we do l_len == 0.
11770 2002-11-10 Ulrich Drepper <drepper@redhat.com>
11772 * po/da.po: Update from translation team.
11774 2002-11-10 Roland McGrath <roland@redhat.com>
11776 * config.make.in (includedir): New variable, substituted by configure.
11777 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
11778 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
11780 2002-11-10 Andreas Jaeger <aj@suse.de>
11782 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
11783 REG_OLDMASK and REG_CR2 to synch with kernel header.
11786 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
11788 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
11789 * nss/getnssent_r.c (__nss_getent_r): Likewise.
11790 (__nss_setent): Likewise.
11791 (__nss_getent_r): Likewise.
11792 * inet/getnetgrent_r.c (innetgr): Likewise.
11793 (__internal_setnetgrent_reuse): Likewise.
11794 (internal_getnetgrent_r): Likewise.
11795 * inet/ether_hton.c (ether_hostton): Likewise.
11796 * inet/ether_ntoh.c (ether_ntohost): Likewise.
11797 * sunrpc/netname.c (netname2user): Likewise.
11798 * sunrpc/publickey.c (getpublickey): Likewise.
11799 (getsecretkey): Likewise.
11801 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
11803 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
11804 error in range calculation.
11806 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11808 * string/test-strspn.c (do_test): Ensure zero termination.
11809 * string/test-strpbrk.c (do_test): Likewise.
11810 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
11811 * string/test-strncpy.c (stupid_strncpy): Likewise.
11812 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
11814 2002-10-08 Roland McGrath <roland@redhat.com>
11816 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
11817 nonzero characters.
11819 2002-09-22 H.J. Lu <hjl@gnu.org>
11821 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
11822 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
11823 only if __NR_mmap2 is defined.
11825 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
11826 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
11827 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
11828 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
11830 2002-11-08 Jakub Jelinek <jakub@redhat.com>
11832 * posix/bug-regex13.c (tests): Add new test.
11834 * string/test-strchr.c (stupid_strchr): New function.
11835 (do_random_tests): Make sure the string is zero terminated.
11836 * string/test-strpbrk.c (stupid_strpbrk): New function.
11837 (do_random_tests): Make sure the string is zero terminated.
11838 * string/test-strcmp.c (stupid_strcmp): New function.
11839 (do_random_tests): Make sure the strings are zero terminated.
11840 * string/test-strspn.c (stupid_strspn): New function.
11841 (simple_strspn): Rename rej argument to acc.
11842 (do_random_tests): Make sure the string is zero terminated.
11843 * string/test-strcspn.c (stupid_strcspn): New function.
11844 * string/test-strncpy.c (stupid_strncpy): New function.
11845 * string/test-stpncpy.c (stupid_stpncpy): New function.
11846 * string/test-strncmp.c (stupid_strncmp): New function.
11847 (do_random_tests): Make sure the strings are zero terminated.
11848 * string/test-string.h (impl_t): Change test into long.
11849 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
11851 2002-11-08 Roland McGrath <roland@redhat.com>
11853 * sysdeps/ia64/elf/configure.in: Add TLS check.
11854 From Ian Wienand <ianw@cse.unsw.edu.au>.
11855 * sysdeps/ia64/elf/configure: Regenerated.
11857 2002-11-07 Roland McGrath <roland@redhat.com>
11859 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
11860 place of _IO_new_do_write.
11861 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
11862 #undef before versioned_symbol use.
11864 2002-11-07 Richard Henderson <rth@redhat.com>
11866 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
11867 * configure: Regenerated.
11868 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
11869 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
11870 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
11871 _dl_fini via gp-relative relocations.
11872 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
11874 * elf/tls-macros.h: Add alpha versions.
11875 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
11876 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
11877 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
11878 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
11879 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
11880 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
11881 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
11882 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
11883 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
11884 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
11885 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
11886 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
11887 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
11888 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
11889 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
11890 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
11891 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
11892 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
11894 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
11895 Kill argument registers across the inline syscall.
11897 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
11899 * linuxthreads/sysdeps/alpha/tls.h: New file.
11900 * sysdeps/alpha/dl-tls.h: New file.
11902 2002-10-29 David Mosberger <davidm@hpl.hp.com>
11904 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
11905 (gmon_initializer): New function.
11906 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
11907 __gmon_start__ here. Call it from gmon_initializer() instead.
11909 2002-03-12 H.J. Lu <hjl@gnu.org>
11911 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
11912 tst-array2, and tst-array3.
11913 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
11914 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
11915 ($(objpfx)tst-array1.out): New target.
11916 ($(objpfx)tst-array2): Likewise.
11917 ($(objpfx)tst-array2.out): Likewise.
11918 ($(objpfx)tst-array3.out): Likewise.
11919 * elf/tst-array1.c: New file.
11920 * elf/tst-array1.exp: Likewise.
11921 * elf/tst-array2.c: Likewise.
11922 * elf/tst-array2dep.c: Likewise.
11923 * elf/tst-array2.exp: Likewise.
11924 * elf/tst-array3.c: Likewise.
11926 2002-10-28 David Mosberger <davidm@hpl.hp.com>
11928 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
11929 Don't add L->l_addr to array entry values.
11931 2002-11-07 Jakub Jelinek <jakub@redhat.com>
11933 * string/test-string.h: New file.
11934 * string/test-strlen.c: New file.
11935 * string/test-string.h: New file.
11936 * string/test-strcmp.c: New file.
11937 * string/test-strchr.c: New file.
11938 * string/test-strrchr.c: New file.
11939 * string/test-strcpy.c: New file.
11940 * string/test-stpcpy.c: New file.
11941 * string/test-strncpy.c: New file.
11942 * string/test-stpncpy.c: New file.
11943 * string/test-strpbrk.c: New file.
11944 * string/test-strcspn.c: New file.
11945 * string/test-strspn.c: New file.
11946 * string/test-strcat.c: New file.
11947 * string/test-strncmp.c: New file.
11948 * string/test-memchr.c: New file.
11949 * string/test-memcmp.c: New file.
11950 * string/test-memset.c: New file.
11951 * string/test-memcpy.c: New file.
11952 * string/test-mempcpy.c: New file.
11953 * string/test-memmove.c: New file.
11954 * string/Makefile (strop-tests): New variable.
11955 (tests): Add strop-tests.
11956 (distribute): Add test-string.h.
11958 2002-11-06 Ulrich Drepper <drepper@redhat.com>
11960 * posix/regcomp.c: Use tabs instead of spaces.
11961 * posix/regexec.c: Likewise.
11962 * posix/regex_internal.h: Likewise.
11964 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
11966 2002-11-06 Jakub Jelinek <jakub@redhat.com>
11968 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
11970 (regcomp): Don't set can_be_null here.
11971 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
11972 (re_compile_internal): Clear can_be_null, set regs_allocated.
11974 * posix/regcomp.c (re_set_fastmap): New function.
11975 (re_compile_fastmap_iter): Use it. Remove redundant type ==
11976 COMPLEX_BRACKET check.
11977 * posix/regexec.c (re_search_internal): Optimize searching with
11978 fastmap. Call re_string_reconstruct even if match_first is
11979 smaller than raw_mbs_idx.
11981 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
11983 * posix/regcomp (free_dfa_content): Use free_state.
11984 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
11985 pointers in case that realloc failed.
11986 (re_node_set_merge): Likewise.
11987 (register_state): Likewise.
11988 (create_newstate_common): Invoke memory release functions in case of
11990 (create_ci_newstate): Likewise.
11991 (create_cd_newstate): Likewise.
11992 (free_state): New function.
11993 * posix/regexec.c (re_search_internal): Invoke memory release
11994 functions in case of error conditions.
11995 (sift_states_backward): Likewise.
11996 (merge_state_array): Likewise.
11997 (add_epsilon_src_nodes): Likewise.
11998 (sub_epsilon_src_nodes): Likewise.
11999 (search_subexp): Likewise.
12000 (sift_states_bkref): Likewise.
12001 (transit_state_sb): Likewise.
12002 (transit_state_mb): Likewise.
12003 (transit_state_bkref_loop): Likewise.
12004 (group_nodes_into_DFAstates): Likewise.
12005 (push_fail_stack): Don't edit pointers in case that realloc failed.
12006 (extend_buffers): Likewise.
12007 (match_ctx_add_entry): Likewise.
12009 2002-11-06 Roland McGrath <roland@redhat.com>
12011 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12012 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12014 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12015 * configure: Regenerated.
12017 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12019 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12020 If re_compile_internal failed free fastmap buffer.
12021 (free_dfa_content): Broken out of regfree function. Frees all dfa
12023 (regfree): Add free_dfa_content.
12024 (re_compile_internal): If any of the called functions fails free
12025 all dfa related memory.
12027 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12029 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12030 warnings from the kernel headers.
12032 2002-11-05 Roland McGrath <roland@redhat.com>
12034 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12035 From Johannes Stezenbach <js@convergence.de>.
12037 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12038 #errlist-compat magic comment to give 123 as size.
12039 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12040 (libc: GLIBC_2.2): ... here.
12041 (libc: GLIBC_2.3): Likewise.
12043 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12045 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12046 which happens at the beginning so that we can unload modules in
12049 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12051 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12052 under [__USE_MISC || _ASM].
12054 * elf/elf.h: Remove the obsolete SH TLS relocations.
12056 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12058 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12060 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12063 __NR_pread64 and __NR_pwrite64.
12064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12065 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12067 Revert change to use INLINE_SYSCALL.
12068 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12069 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12070 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12071 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12073 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12076 Update clobber list and add a comment about the syscall ABI.
12078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12079 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12081 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12083 * iconv/gconv_dl.c (free_mem): Clear loaded.
12084 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12087 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12089 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12091 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12092 as old code without locking. _IO_seekoff calls this function after
12093 locking the stream.
12094 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12095 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12096 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12098 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12099 of _IO_seekoff_internal.
12100 (_IO_rewind): Likewise.
12101 * libio/ioftell.c: Likewise.
12102 * libio/ftello.c: Likewise.
12103 * libio/ftello64.c: Likewise.
12104 * libio/iofgetpos.c: Likewise.
12105 * libio/iofgetpos64.c: Likewise.
12106 * libio/oldiofgetpos.c: Likewise.
12107 * libio/oldiofgetpos64.c: Likewise.
12108 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12109 _IO_seekpos_internal.
12110 * libio/iofsetpos64.c: Likewise.
12111 * libio/oldiofsetpos.c: Likewise.
12112 * libio/oldiofsetpos64.c: Likewise.
12114 2002-11-04 Roland McGrath <roland@redhat.com>
12116 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12117 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12118 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12119 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12120 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12121 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12122 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12123 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12124 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12125 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
12127 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
12128 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
12129 Remove these, no longer used.
12131 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
12134 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
12135 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
12136 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
12137 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
12138 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
12141 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
12142 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12143 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
12145 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12146 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
12148 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12150 2002-11-03 Roland McGrath <roland@redhat.com>
12152 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
12153 `_dl_tls_static_used'.
12154 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
12155 (__libc_setup_tls): Initialize it. Let the initial value of
12156 _dl_tls_static_size indicate some surplus space in the computed value.
12157 * elf/dl-open.c (_dl_tls_static_size): New variable.
12158 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
12159 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
12160 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
12161 (CHECK_STATIC_TLS): Use it.
12162 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
12163 closed objects occupied a trailing contiguous chunk of static TLS area.
12165 2002-10-18 Bruno Haible <bruno@clisp.org>
12167 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
12169 2002-11-04 Ulrich Drepper <drepper@redhat.com>
12171 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
12172 _wide_data->_IO_read_end if adjustment can be made in the current
12175 * sysdeps/unix/sysv/linux/fexecve.c: New file.
12177 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
12178 wide oriented streams are used.
12180 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
12181 service hasn't been used [PR libc/4744].
12183 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
12184 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
12186 * manual/examples/dir.c: Don't include <stddef.h>.
12187 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
12188 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
12190 2002-11-02 H.J. Lu <hjl@gnu.org>
12192 * stdio-common/reg-printf.c: Include <stddef.h>.
12194 2002-11-03 Ulrich Drepper <drepper@redhat.com>
12196 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
12198 * po/ca.po: Update from translation team.
12199 * po/es.po: Likewise.
12201 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
12202 is defined write out memory map.
12203 * sysdeps/unix/sysv/linux/segfault.c: New file.
12205 2002-11-02 Roland McGrath <roland@redhat.com>
12207 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
12208 pointers that can alias.
12209 Reported by Daniel Jacobowitz <drow@mvista.com>.
12211 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
12213 2002-11-02 Roland McGrath <roland@redhat.com>
12215 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
12216 description to be clearer and to say that *RESULT is set to ENTRY.
12218 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12220 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
12221 dests_ch arrays together. Alloca or malloc dest_states,
12222 dest_states_word and dest_states_nl arrays together. Free memory on
12225 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
12227 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
12228 and current_saltbits.
12230 2002-11-02 Roland McGrath <roland@redhat.com>
12232 * stdio-common/reg-printf.c: Include <stdlib.h>.
12234 2002-11-02 H.J. Lu <hjl@gnu.org>
12236 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
12237 caller to EXTRA instead of execve.
12239 2002-11-01 Roland McGrath <roland@redhat.com>
12241 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
12242 in place of [!(USE_TLS && HAVE___THREAD)].
12243 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
12245 2002-10-31 Roger Sayle <roger@eyesopen.com>
12247 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
12249 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12251 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
12252 without defining FP_ROUNDMODE.
12254 2002-10-29 Jakub Jelinek <jakub@redhat.com>
12256 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
12257 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
12259 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12260 (OLD_SIGLIST_SIZE): Define.
12261 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12262 (OLD_SIGLIST_SIZE): Define.
12263 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
12265 2002-11-01 Jakub Jelinek <jakub@redhat.com>
12267 * sysdeps/ia64/strncpy.S: Fix recovery code.
12269 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12271 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
12273 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
12275 * elf/dl-libc.c (free_mem): Likewise.
12276 * iconv/gconv_conf.c (free_mem): Likewise.
12277 * iconv/gconv_db.c (free_mem): Likewise.
12278 * iconv/gconv_dl.c (free_mem): Likewise.
12279 * iconv/gconv_cache.c (free_mem): Likewise.
12280 * intl/finddomain.c (free_mem): Likewise.
12281 * intl/dcigettext.c (free_mem): Likewise.
12282 * locale/setlocale.c (free_mem): Likewise.
12283 * misc/fstab.c (fstab_free): Likewise.
12284 * nss/nsswitch.c (free_mem): Likewise.
12285 * posix/regcomp.c (free_mem): Likewise.
12286 * resolv/gai_misc.c (free_res): Likewise.
12287 * stdlib/fmtmsg.c (free_mem): Likewise.
12288 * sunrpc/clnt_perr.c (free_mem): Likewise.
12289 * sysdeps/generic/setenv.c (free_mem): Likewise.
12290 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
12291 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
12292 * time/tzset.c (free_mem): Likewise.
12293 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
12294 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
12295 * malloc/set-freeres.c (__libc_freeres): Likewise.
12297 * login/getutent.c: Include stdlib.h instead of stddef.h.
12298 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12299 (__getutent): Allocate buffer the first time it is run.
12300 * login/getutid.c: Include stdlib.h instead of stddef.h.
12301 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12302 (__getutid): Allocate buffer the first time it is run.
12303 * login/getutline.c: Include stdlib.h instead of stddef.h.
12304 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12305 (__getutline): Allocate buffer the first time it is run.
12306 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
12307 (mtrace): Allocate malloc_trace_buffer.
12308 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
12309 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
12310 * string/strerror.c: Include libintl.h and errno.h.
12311 (buf): New variable.
12312 (strerror): Only allocate buffer if actually needed (unknown error).
12313 * time/tzfile.c (transitions): Add libc_freeres_ptr.
12316 2002-10-25 Jakub Jelinek <jakub@redhat.com>
12318 * include/libc-symbols.h (libc_freeres_ptr): New macro.
12319 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
12321 (__libc_freeres): Free all pointers in that section.
12322 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
12323 commands when creating .lds script.
12324 (LDSEDCMD-c.so): New variable.
12325 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12326 (rcmd_af): Use strdup to allocate ahostbuf.
12327 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12328 (rexec_af): Use strdup to allocate ahostbuf.
12329 * stdio-common/reg-printf.c (printf_funcs): Remove.
12330 (__printf_arginfo_table): Change into printf_arginfo_function **.
12331 Add libc_freeres_ptr.
12332 (__register_printf_function): Allocate __printf_arginfo_table
12333 and __printf_function_table the first time it is called.
12334 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
12335 printf_arginfo_function **.
12336 (parse_one_spec): Add __builtin_expect.
12337 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
12338 (free_mem): Remove.
12339 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
12340 (free_mem): Remove.
12341 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
12342 (string_space, map): Add libc_freeres_ptr.
12343 (free_mem): Remove.
12344 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
12345 (free_mem): Remove.
12346 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
12347 (free_mem): Remove.
12348 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
12349 (buffer): Add libc_freeres_ptr.
12350 (free_mem): Remove for _LIBC.
12351 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
12352 (free_mem): Remove.
12353 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
12354 (free_mem): Remove.
12355 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
12356 (free_mem): Remove.
12357 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
12358 (free_mem): Remove.
12359 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
12360 (free_mem): Remove.
12361 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
12362 (free_mem): Remove.
12363 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
12365 (free_mem): Remove.
12366 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
12368 (free_mem): Remove.
12370 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12372 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
12373 instead of duplicating the whole function in libc.
12375 2002-10-31 Roland McGrath <roland@redhat.com>
12377 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
12378 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
12380 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12382 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
12383 32bit-predefine when creating .new32 list and -U for each
12384 32bit-predefine when creating .new64 list.
12385 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
12387 2002-10-29 Andreas Schwab <schwab@suse.de>
12389 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
12390 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
12392 2002-10-25 Roland McGrath <roland@redhat.com>
12394 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
12395 * sysdeps/unix/sysv/linux/configure: Regenerated.
12397 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
12398 _dl_starting_up decl.
12400 2002-10-20 H.J. Lu <hjl@gnu.org>
12402 * sysdeps/unix/sysv/linux/configure.in: Don't check
12403 /lib/modules/`uname -r`/build/include for kernel headers if
12405 * sysdeps/unix/sysv/linux/configure: Regenerated.
12407 2002-10-25 Roland McGrath <roland@redhat.com>
12409 * math/math.h (M_LOG2El): Correct the value.
12410 From Stephen L Moshier <steve@moshier.net>.
12412 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
12413 conditional from __libc_multiple_libcs access. Remove kludge for weak
12414 symbol access with old compilers we no longer support.
12415 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
12416 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
12418 2002-10-25 Roland McGrath <roland@redhat.com>
12420 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
12421 implement SV_RESETHAND by translating it to SA_RESETHAND.
12423 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
12425 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
12426 type on ELF64 platforms.
12428 2002-10-24 Ulrich Drepper <drepper@redhat.com>
12430 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
12432 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
12434 2002-10-24 Jakub Jelinek <jakub@redhat.com>
12436 * elf/dl-misc.c: Include <sysdep.h>.
12437 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
12439 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
12440 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12441 (INLINE_SYSCALL): Use that.
12442 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
12443 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12444 (INLINE_SYSCALL): Use that.
12445 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
12446 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12447 (INLINE_SYSCALL): Use that.
12448 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
12450 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12451 (__INTERNAL_SYSCALL_STRING): Define.
12452 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12454 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12455 (__INTERNAL_SYSCALL_STRING): Define.
12456 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
12457 __SYSCALL_STRING to inline_syscall*.
12458 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
12460 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
12461 inline_syscall4, inline_syscall5, inline_syscall6): Add string
12464 2002-10-24 Roland McGrath <roland@redhat.com>
12466 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
12467 * sysdeps/unix/sysv/linux/init-first.c: Not here.
12468 * sysdeps/powerpc/elf/libc-start.c: Or here.
12469 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
12470 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
12471 * sysdeps/unix/sysv/aix/init-first.c: Or here.
12472 * sysdeps/generic/libc-start.c: Or here.
12473 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
12474 access with [! SHARED].
12475 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
12477 * libio/bug-wfflush.c: New file.
12478 * libio/Makefile (tests): Add bug-wfflush.
12480 2002-10-23 Roland McGrath <roland@redhat.com>
12482 * stdio-common/tst-fphex.c: New file.
12483 * stdio-common/Makefile (tests): Add tst-fphex.
12484 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
12485 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
12486 chars always before the value digits.
12487 Reported by James Antill <james.antill@redhat.com>.
12489 2002-10-24 Jakub Jelinek <jakub@redhat.com>
12491 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
12492 (free_mem): New function.
12493 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
12494 if not cross compiling.
12495 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
12496 (bug-regex14-ENV): Set.
12497 (bug-regex14-mem): New target.
12498 * posix/bug-regex14.c: New file.
12500 2002-10-23 Roland McGrath <roland@redhat.com>
12502 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
12503 target, so we don't touch it when the link fails.
12505 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
12506 Check for the result overflowing off_t and fail with EOVERFLOW.
12507 * libio/ioftell.c (_IO_ftell): Likewise.
12508 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
12510 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
12511 use a temporary timeval on the stack for gettimeofday and copy it.
12512 * login/logout.c (logout): Likewise.
12513 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
12515 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
12516 Use __SWORD_TYPE instead of int for member types.
12517 (struct statfs64): Likewise.
12518 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
12519 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
12520 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
12521 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
12522 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
12524 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
12525 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
12526 (ST_NODIRATIME): Restore fixed value of 2048.
12527 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
12528 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
12530 Rearranged <bits/types.h> definitions to reduce duplication.
12531 * sysdeps/generic/bits/types.h: Rewritten, using macros from
12532 <bits/wordsize.h> and new header <bits/typesizes.h>.
12533 * posix/Makefile (headers): Add bits/typesizes.h here.
12534 * sysdeps/generic/bits/typesizes.h: New file.
12535 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
12536 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
12537 * sysdeps/mach/hurd/bits/typesizes.h: New file.
12538 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
12539 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
12540 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
12541 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
12542 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
12543 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
12544 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
12545 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
12546 <bits/pthreadtypes.h> here, not in <bits/types.h>.
12547 * signal/signal.h: Likewise.
12549 * streams/stropts.h: Include <bits/xtitypes.h>.
12550 * streams/Makefile (headers): Add bits/xtitypes.h here.
12551 * sysdeps/generic/bits/xtitypes.h: New file.
12552 * sysdeps/s390/bits/xtitypes.h: New file.
12553 * sysdeps/ia64/bits/xtitypes.h: New file.
12554 * sysdeps/x86_64/bits/xtitypes.h: New file.
12556 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
12557 * sysdeps/generic/bits/ipctypes.h: New file.
12558 * sysdeps/mips/bits/ipctypes.h: New file.
12559 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
12560 * sysdeps/gnu/bits/msq.h: Likewise.
12561 * sysvipc/sys/ipc.h: Likewise.
12563 2002-10-22 Ulrich Drepper <drepper@redhat.com>
12565 * elf/dl-load.c (struct filebuf): For buf element to have the
12566 alignment of ElfXX_Ehdr since this is what will be stored in it.
12568 2002-10-22 Jakub Jelinek <jakub@redhat.com>
12570 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
12571 into pointer to locrec_offset.
12572 (add_locale_to_archive): Adjust callers. Free normalized_name right
12573 before returning, not immediately after add_locale, pass it to
12574 add_alias if not NULL instead of name. Rename second normalized_name
12575 occurence to nnormalized_codeset_name.
12577 * locale/programs/locarchive.c (enlarge_archive): Make sure
12578 string_size is always a multiple of 4.
12579 Reported by Andreas Schwab <schwab@suse.de>.
12581 2002-10-21 Andreas Schwab <schwab@suse.de>
12583 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
12584 caller to EXTRA instead of execve, since the latter has a
12585 higher-priority implementation in linuxthreads.
12587 2002-10-21 Roland McGrath <roland@redhat.com>
12589 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
12590 slotinfo list's len member to the proper size, not just 1.
12591 Initialize static_map.l_tls_initimage.
12593 * elf/dl-open.c (dl_open_worker): Fix loop searching for
12594 dtv_slotinfo_list element containing new modules' l_tls_modid.
12596 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
12597 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
12598 * elf/Makefile (tests): Add tst-tls9.
12599 (tests-static): Add tst-tls9-static.
12600 (tst-tls9-static-ENV): New variable.
12601 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
12603 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
12604 modids used by partially loaded modules being closed can't be known.
12606 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
12608 * posix/Makefile: Add a test case for the bug reported by Aharon
12609 Robbins <arnold@skeeve.com>.
12610 * posix/bug-regex13.c: New file.
12611 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
12613 2002-10-21 Ulrich Drepper <drepper@redhat.com>
12615 * csu/gmon-start.c: Pretty printing.
12617 2002-10-19 Art Haas <ahaas@neosoft.com>
12619 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
12620 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
12621 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
12622 * configure: Regenerated.
12624 2002-10-19 Roland McGrath <roland@redhat.com>
12626 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
12627 and then set $subdirs directly, because the new Autoconf breaks
12628 compatibility in every way imaginable and insists on whining
12629 about usage that worked since the dawn of time.
12630 * configure: Regenerated.
12632 * configure: Regenerated (using Autoconf 2.54).
12633 * sysdeps/alpha/elf/configure: Likewise.
12634 * sysdeps/generic/configure: Likewise.
12635 * sysdeps/i386/elf/configure: Likewise.
12636 * sysdeps/ia64/elf/configure: Likewise.
12637 * sysdeps/mach/hurd/configure: Likewise.
12638 * sysdeps/mach/configure: Likewise.
12639 * sysdeps/unix/configure: Likewise.
12640 * sysdeps/unix/common/configure: Likewise.
12641 * sysdeps/unix/sysv/aix/configure: Likewise.
12642 * sysdeps/unix/sysv/linux/configure: Likewise.
12643 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12644 * sysdeps/x86_64/elf/configure: Likewise.
12646 * config.make.in: Nix completely-soft nonsense.
12647 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
12648 of machine directories instead of fpu subdirectory.
12649 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
12650 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
12651 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
12652 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
12653 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
12654 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
12655 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
12656 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
12657 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
12658 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
12659 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
12660 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
12661 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
12662 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
12663 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
12664 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
12665 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
12666 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
12667 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
12668 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
12669 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
12670 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
12671 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
12672 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
12673 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
12674 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
12675 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
12676 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
12677 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
12678 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
12679 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
12680 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
12681 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
12682 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
12683 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
12684 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
12685 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
12686 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
12687 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
12688 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
12690 2002-10-19 Bruno Haible <bruno@clisp.org>
12692 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
12694 2002-10-18 Roland McGrath <roland@redhat.com>
12696 * io/Makefile (routines): Add lchmod.
12697 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
12698 * sysdeps/generic/lchmod.c: New file.
12699 * sysdeps/mach/hurd/lchmod.c: New file.
12700 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
12702 2002-10-18 Art Haas <ahaas@neosoft.com>
12704 * configure.in: Remove remaining AC_FD_CC macros, and replace
12705 AC_FD_MSG with AS_MESSAGE_FD.
12707 2002-10-18 Roland McGrath <roland@redhat.com>
12709 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
12710 typos: VALUE -> FINALADDR.
12712 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
12713 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
12714 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
12715 (inline_syscall6): Move these macros ...
12716 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
12718 * configure.in (libc_link_dests, libc_link_sources): Remove these
12719 variables and the AC_LINK_FILES call.
12721 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
12722 change to put new symbols here instead of in GLIBC_2.2.
12723 * sysdeps/powerpc/Subdirs: Move this file ...
12724 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
12726 2002-10-07 Roland McGrath <roland@redhat.com>
12728 * sysdeps/generic/bits/time.h: Replaced with contents of the
12729 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
12730 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
12731 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
12732 macros is ok even for architectures that don't now implement them.
12733 * sysdeps/mach/hurd/bits/time.h: File removed.
12734 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
12735 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
12736 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
12737 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
12738 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
12740 2002-10-18 Jeff Bailey <jbailey@gnu.org>
12742 * configure.in: Replace obsolete AC_OUTPUT syntax with
12743 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
12745 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
12746 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
12748 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
12749 * sysdeps/alpha/elf/configure.in: Likewise.
12750 * sysdeps/i386/elf/configure.in: Likewise.
12751 * sysdeps/mach/hurd/configure.in: Likewise.
12752 * sysdeps/x86_64/elf/configure.in: Likewise.
12754 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
12756 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
12757 * sysdeps/generic/configure.in: Likewise.
12758 * sysdeps/i386/elf/configure.in: Likewise.
12759 * sysdeps/ia64/elf/configure.in: Likewise.
12760 * sysdeps/mach/configure.in: Likewise.
12761 * sysdeps/mach/hurd/configure.in: Likewise.
12762 * sysdeps/unix/configure.in: Likewise.
12763 * sysdeps/unix/common/configure.in: Likewise.
12764 * sysdeps/unix/sysv/aix/configure.in: Likewise.
12765 * sysdeps/unix/sysv/linux/configure.in: Likewise.
12766 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
12767 * sysdeps/x86_64/elf/configure.in: Likewise.
12769 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
12770 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
12771 that it's obvious when extra autoconf machinery is being dragged in.
12773 2002-10-18 Roland McGrath <roland@redhat.com>
12775 * configure.in: Remove bogus echo included in
12776 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
12777 * configure: Regenerated.
12779 2002-10-18 Jakub Jelinek <jakub@redhat.com>
12781 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
12782 (statfs_filesize_max): New function.
12783 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
12784 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
12785 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
12786 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
12787 statfs_filesize_max.
12788 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12789 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
12790 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
12792 2002-10-17 Roland McGrath <roland@redhat.com>
12794 * configure.in (MIG): Just AC_SUBST it here.
12795 * configure: Regenerated.
12796 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
12797 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
12798 * sysdeps/mach/configure: Regenerated.
12800 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
12801 and AC_PROVIDE([_AS_CR_PREPARE]).
12803 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
12804 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
12806 * elf/dl-support.c: Move _dl_tls_* variables to ...
12807 * sysdeps/generic/libc-tls.c: ... here.
12809 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
12810 allow IDX to be one past the current last slotinfo entry.
12811 (_dl_close): Pass IMAP->l_init_called for that parameter.
12813 2002-10-07 Andreas Schwab <schwab@suse.de>
12815 * aclocal.m4: Fix for autoconf 2.53.
12816 * configure.in: Likewise. Require autoconf 2.53.
12818 2002-10-08 Richard Henderson <rth@redhat.com>
12820 * soft-fp/op-4.h: Handle carry correctly in
12821 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
12822 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
12823 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
12825 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
12827 * configure.in: Compute completely-soft.
12828 * config.make.in: Make completely-soft available to sub-makes.
12829 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
12830 gcc-double-routines. Add sim-full.c. Add fenv_const and
12831 fe_nomask to libm-support.
12832 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
12833 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
12834 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
12835 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
12836 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
12837 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
12838 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
12839 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
12840 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
12841 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
12842 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
12843 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
12844 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
12845 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
12846 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
12847 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
12848 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
12849 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
12850 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
12851 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
12853 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
12854 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
12855 FP_HANDLE_EXCEPTIONS.
12856 Define FP_ROUNDMODE.
12857 Redefine FP_* macros to correspond to the FE_* bit positions.
12858 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
12859 Define externs for __sim_exceptions, __sim_disabled_exceptions,
12860 __sim_round_mode, __simulate_exceptions.
12861 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
12862 * sysdeps/powerpc/bits/fenv.h: ...to here.
12864 2002-10-06 Jakub Jelinek <jakub@redhat.com>
12866 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12867 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
12868 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
12869 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
12872 2002-10-15 Jakub Jelinek <jakub@redhat.com>
12874 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
12875 __libc_res_nsend): New prototypes.
12876 * resolv/res_query.c (QUERYSIZE): Define.
12877 (__libc_res_nquery): Renamed from res_nquery. Added answerp
12878 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
12879 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
12880 res_nsend, pass answerp.
12881 (res_nquery): Changed into wrapper around __libc_res_nquery.
12882 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
12883 argument. Call __libc_res_nquerydomain and __libc_res_nquery
12884 instead of the non-__libc_ variants, pass them answerp.
12885 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
12886 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
12887 Added answerp argument. Call __libc_res_nquery instead of
12888 res_nquery, pass answerp.
12889 (res_nquerydomain): Changed into wrapper around
12890 __libc_res_nquerydomain.
12891 * resolv/res_send.c: Include sys/ioctl.h.
12892 (MAXPACKET): Define.
12893 (send_vc): Change arguments. Reallocate answer buffer if it is
12895 (send_dg): Likewise.
12896 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
12897 Reallocate answer buffer if it is too small and hooks are in use.
12898 Adjust calls to send_vc and send_dg.
12899 (res_nsend): Changed into wrapper around __libc_res_nsend.
12900 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
12901 just 1K answer buffer on the stack, use __libc_res_nsearch instead
12903 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
12904 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
12905 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
12906 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
12907 (gethostbyaddr): Similarly with __libc_res_nquery.
12908 * resolv/Versions (libresolv): Export __libc_res_nquery and
12909 __libc_res_nsearch at GLIBC_PRIVATE.
12911 2002-10-17 Roland McGrath <roland@redhat.com>
12913 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
12914 * configure: Regenerated.
12916 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
12917 before performing the reloc, not after.
12918 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12920 2002-10-17 Ulrich Drepper <drepper@redhat.com>
12922 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
12923 * locale/programs/linereader.c (lr_open): Likewise.
12924 * locale/programs/charmap-dir.c (charmap_open): Likewise.
12925 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12927 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
12929 * posix/bug-regex11.c: Add a test case for the bug reported by
12930 Paolo Bonzini <bonzini@gnu.org>.
12931 * posix/regexec.c (sift_states_bkref): Use correct destination of
12932 the back reference.
12934 2002-10-17 Roland McGrath <roland@redhat.com>
12936 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
12937 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
12938 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
12939 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
12940 Call it after performing TPOFF relocs.
12941 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12942 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12943 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
12945 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
12946 when closing a partially-initialized object.
12948 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
12949 instead of _dl_fatal_printf when we see PT_TLS.
12951 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
12952 instead of $(libof-$<).
12954 2002-10-16 Roland McGrath <roland@redhat.com>
12956 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
12957 instead of += to append, to be sure $(lib) gets expanded at defn time.
12958 (libof-$(cpp-src)): New variable, define this instead.
12959 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
12960 (lib): Don't use override.
12961 (CPPFLAGS-$(lib)): New variable, put -D's here.
12962 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
12963 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
12964 LIB found by $(libof-*) for basename, target, or source.
12965 * Makerules (CPPFLAGS-nonlib): New variable.
12966 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
12967 * locale/Makefile (lib): Likewise.
12968 * sunrpc/Makefile (lib): Likewise.
12970 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
12971 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
12972 * sysdeps/unix/sysv/linux/pathconf.h: New file.
12973 (statfs_link_max): New function, guts from fpathconf.c.
12974 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
12975 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12976 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
12977 to use the linux/pathconf.c code by #include rather than duplication.
12978 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
12980 2002-10-16 Jakub Jelinek <jakub@redhat.com>
12982 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12983 Use __libc_errno only for libc itself.
12985 2002-10-16 Andreas Jaeger <aj@suse.de>
12987 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
12989 2002-10-16 Ulrich Drepper <drepper@redhat.com>
12991 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12992 Use __libc_errno only for libc itself.
12994 2002-10-15 Roland McGrath <roland@redhat.com>
12995 Jakub Jelinek <jakub@redhat.com>
12997 * sysdeps/unix/sysv/linux/Makefile
12998 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
12999 sparc/Makefile to produce a bi-arch file as needed.
13000 That's now parameterized by the variable $(64bit-predefine).
13001 Use LC_ALL=C for `comm' commands in that rule.
13002 No longer conditional on [$(no_syscall_list_h)].
13003 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13004 (64bit-predefine): New variable.
13005 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13006 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13007 * sysdeps/unix/sysv/linux/powerpc/Makefile
13008 (64bit-predefine): New variable.
13010 2002-10-15 Roland McGrath <roland@redhat.com>
13012 * sysdeps/unix/sysv/linux/Makefile
13013 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13015 * login/utmp-private.h: Declare __libc_utmp_lock.
13016 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13017 and call __libc_utmp_jump_table functions directly, instead of using
13020 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13021 * sysdeps/unix/sysv/linux/configure: Regenerated.
13023 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13024 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13025 Use int32_t for ll_time.
13026 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13027 Use int32_t instead of long int for ut_session.
13028 Use an anonymous struct with 32-bit fields for ut_tv.
13029 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13030 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13031 here as in utmp.h for `struct utmp'.
13032 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13033 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13034 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13035 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13036 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13037 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13039 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13040 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13041 All the following files were identical or equivalent to it.
13042 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13043 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13044 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13045 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13046 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13047 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13048 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13049 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13050 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13051 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13053 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13054 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13055 Other than the previously incorrect sign of msg_iovlen, this is a
13056 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13057 match their layouts as well, so the following are now identical to it.
13058 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13059 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13060 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13061 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13062 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13064 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13066 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13067 Define for 2.4+ kernels.
13069 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13070 are known to have the vfork syscall. Don't confuse the CPUs
13071 branch prediction unit by jumping to the return address.
13073 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13074 support for reiserfs and xfs.
13076 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13078 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13080 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13082 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13084 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13085 * include/errno.h (errno): Define to __libc_errno in libc.so.
13086 Add attribute_tls_model_ie.
13087 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13088 Add attribute_tls_model_ie.
13089 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13090 attribute_tls_model_ie.
13091 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13093 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13095 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13096 attribute_tls_model_ie.
13097 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13099 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13100 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13101 __libc_errno in USE___THREAD case.
13102 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13104 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13105 __attribute__((tls_model (""))).
13106 * configure: Rebuilt.
13107 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13109 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13111 * timezone/asia: Update from tzdata2002d.
13112 * timezone/australasia: Likewise.
13113 * timezone/iso3166.tab: Likewise.
13114 * timezone/southamerica: Likewise.
13115 * timezone/zone-tab: Likewise.
13117 2002-10-15 Roland McGrath <roland@redhat.com>
13119 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13120 Adjust TCB pointer before calling free, so we get the whole block.
13122 2002-10-14 Roland McGrath <roland@redhat.com>
13124 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13125 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
13126 extern using attribute_hidden instead of static, avoids warning.
13128 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13130 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
13131 * sysdeps/unix/sysv/linux/configure: Rebuilt.
13133 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13135 * po/sv.po: Update from translation team.
13137 2002-10-12 H.J. Lu <hjl@gnu.org>
13139 * sunrpc/thrsvc.c (PROCQUIT): New.
13140 (struct rpc_arg): New.
13141 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
13142 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
13143 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
13144 (main): Modified for struct rpc_arg *.
13146 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13148 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
13150 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13152 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
13153 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
13154 in ld.so even if __thread is supported.
13156 2002-10-13 Jakub Jelinek <jakub@redhat.com>
13158 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
13159 Add hack to prevent the compiler from clobbering the signal context.
13160 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
13162 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
13165 2002-10-14 Andreas Jaeger <aj@suse.de>
13167 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
13168 Guido Guenther <agx@sigxcpu.org>.
13170 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13172 * po/sk.po: Update from translation team.
13174 2002-09-26 Roland McGrath <roland@redhat.com>
13176 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
13177 dynamic string tag.
13178 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
13179 DL_DST_LIB based on $(slibdir).
13181 2002-10-13 Roland McGrath <roland@frob.com>
13183 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
13185 * sysdeps/mach/hurd/getresuid.c: New file.
13186 * sysdeps/mach/hurd/getresgid.c: New file.
13187 * sysdeps/mach/hurd/setresuid.c: New file.
13188 * sysdeps/mach/hurd/setresgid.c: New file.
13190 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
13191 setresgid): Declare them.
13192 * NEWS: Mention it.
13194 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
13195 add libc_hidden_proto.
13196 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
13197 getresuid, getresgid, setresuid, setresgid here.
13198 * Versions.def (libc): Define GLIBC_2.3.2 set.
13199 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
13200 Add libc_hidden_def.
13201 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
13202 * sysdeps/generic/setresgid.c: New file.
13203 * sysdeps/generic/setresuid.c: New file.
13204 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13205 (sysdep_routines): Don't add getresuid and getresgid here.
13206 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
13207 (sysdep_routines): Don't add setresuid and setresgid here.
13208 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13209 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13210 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13211 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13212 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13213 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13214 * posix/Makefile (routines): Add them all here instead.
13215 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
13216 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
13217 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
13218 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
13219 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
13220 [! __NR_setresuid]: Include generic file.
13221 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
13222 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
13223 [! __NR_setresuid]: Include generic file.
13224 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
13225 Caller is - now, not EXTRA.
13226 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
13227 (setresuid, setresgid, getresuid, getresgid): Likewise.
13228 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
13229 Add these calls here.
13230 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
13231 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
13232 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13233 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13234 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
13237 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
13238 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13240 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13241 (sysdep_routines): Add setfsuid and setfsgid here.
13242 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
13243 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
13244 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13245 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13246 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13247 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13248 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13249 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13251 * hurd/errno.c: Renamed to ...
13252 * hurd/errno-loc.c: ... this.
13253 * hurd/Makefile (routines): errno -> errno-loc
13255 2002-10-13 Ulrich Drepper <drepper@redhat.com>
13257 * po/de.po: Update from translation team.
13259 * MakeTAGS: Add -E flag to xgettext runs.
13261 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13263 * po/fr.po: Update from translation team.
13265 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
13266 Optimize a bit for use in glibc.
13268 2002-10-12 Roland McGrath <roland@redhat.com>
13270 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
13271 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
13273 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13275 * po/sv.po: Update from translation team.
13277 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13279 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
13281 (regfree): Likewise.
13282 (create_initial_state): Likewise.
13283 (analyze): Remove the substitutions which became useless.
13284 (calc_first): Likewise.
13285 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
13286 epsilon destination.
13287 (duplicate_node_closure): New function.
13288 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
13289 (calc_inveclosure): Likewise.
13290 (calc_eclosure): Likewise.
13291 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
13292 direct invocation of duplicate_node.
13293 (parse): Don't use comma operator in the return to avoid compiler
13295 (parse_reg_exp): Likewise.
13296 (parse_branch): Likewise.
13297 (parse_expression): Likewise.
13298 (parse_sub_exp): Likewise.
13299 (parse_dup_op): Likewise.
13300 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
13301 which became useless.
13302 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
13303 (create_cd_newstate): Likewise.
13304 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
13305 (re_token_t): Likewise.
13306 (re_dfa_t): Likewise.
13307 (re_node_set_remove): New macro.
13308 * posix/regexec.c (check_matching): Remove the handling
13310 (check_halt_node_context): Likewise.
13311 (proceed_next_node): Likewise.
13312 (pop_fail_stack): Fix the memory leak.
13313 (set_regs): Likewise.
13314 (free_fail_stack_return): New function.
13315 (sift_states_backward): Fix the memory leak. Remove the handling
13317 (update_cur_sifted_state): Append some if clause to avoid redundant
13319 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
13321 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
13322 (check_subexp_limits): Likewise.
13323 (search_subexp): Likewise.
13324 (sift_states_bkref): Likewise.
13325 (transit_state_mb): Likewise.
13326 (transit_state_bkref_loop): Likewise.
13327 (transit_state_bkref_loop): Likewise.
13328 (group_nodes_into_DFAstates): Likewise.
13329 (check_node_accept): Likewise.
13330 (sift_ctx_init): Add initializing.
13332 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13334 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
13337 2002-10-11 Ulrich Drepper <drepper@redhat.com>
13339 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
13340 duplicated variable c.
13342 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
13345 * sysdeps/unix/sysv/linux/i386/sysdep.h
13346 (INTERNAL_SYSCALL_ERROR_P): New define.
13347 (INTERNAL_SYSCALL_ERRNO): Likewise.
13349 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
13350 Add hack to prevent the compiler from clobbering the signal context.
13352 2002-10-11 Roland McGrath <roland@redhat.com>
13354 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13357 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
13358 * sysdeps/sh/dl-lookupcfg.h: File removed.
13359 * sysdeps/i386/dl-lookupcfg.h: File removed.
13361 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
13362 missing labels and ; from last change.
13364 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
13365 number literals, so they are doubles instead of ints.
13367 2002-10-09 Roland McGrath <roland@redhat.com>
13369 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
13370 changed from [USE_TLS && HAVE___THREAD].
13372 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
13373 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
13374 * sysdeps/x86_64/dl-machine.h
13375 (elf_machine_type_class, elf_machine_rela): Likewise.
13376 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
13379 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
13380 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
13381 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
13383 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
13384 instead of ___tls_get_addr.
13385 (___tls_get_addr_internal): Add attribute_hidden to decl.
13387 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
13388 _dl_error_catch_tsd.
13389 * elf/rtld.c (startup_error_tsd): New function.
13390 (dl_main): Point _dl_error_catch_tsd at that.
13391 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
13392 use new function pointer instead.
13393 * elf/dl-tsd.c: New file.
13394 * elf/Makefile (routines): Add it.
13396 2002-10-07 Roland McGrath <roland@redhat.com>
13398 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
13399 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
13400 take _dl_load_lock around calling __writev.
13402 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
13403 (INLINE_SYSCALL): Use that.
13405 * sysdeps/generic/dl-sysdep.h: New file.
13406 * sysdeps/mach/hurd/dl-sysdep.h: New file.
13407 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
13408 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
13409 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
13410 access it directly.
13411 * elf/dl-minimal.c (__errno_location): Removed.
13412 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
13413 Use GOTOFF access for errno.
13414 * sysdeps/unix/sysv/linux/i386/sysdep.h
13415 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
13417 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
13418 Use PC-relative access for errno.
13419 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13420 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
13422 * include/tls.h: New file.
13423 (USE___THREAD): New macro.
13424 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
13425 libc or libpthread.
13426 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
13427 changed from [USE_TLS && HAVE___THREAD].
13428 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13429 * sysdeps/unix/i386/sysdep.S: Likewise.
13430 * sysdeps/unix/x86_64/sysdep.S: Likewise.
13431 * include/errno.h: Likewise.
13432 * include/netdb.h: Likewise.
13433 * include/resolv.h: Likewise.
13435 * sysdeps/generic/errno.c: New file.
13436 * csu/Makefile (aux): New variable, list errno.
13437 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
13438 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
13439 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
13440 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13441 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13442 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
13443 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
13444 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
13445 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13446 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
13447 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
13448 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
13449 * sysdeps/unix/alpha/sysdep.S: Likewise.
13450 * sysdeps/generic/start.c: Likewise.
13451 * sysdeps/unix/start.c: Likewise.
13452 * sysdeps/unix/arm/start.c: Likewise.
13453 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
13454 * sysdeps/unix/sparc/start.c: Likewise.
13455 * sysdeps/unix/sysv/irix4/start.c: Likewise.
13456 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
13458 * manual/search.texi (Tree Search Function, Hash Search Function):
13459 Mention search.h clearly.
13461 2002-10-05 Roland McGrath <roland@redhat.com>
13463 * elf/dl-fxstat64.c: File removed.
13464 * elf/dl-xstat64.c: File removed.
13465 * elf/Makefile (rtld-routines): Remove them.
13466 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
13467 Instead, use strong_alias instead of versioned_symbol in the
13468 !SHLIB_COMPAT case.
13469 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
13470 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
13472 * include/shlib-compat.h
13473 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
13474 [! NOT_IN_libc] (IS_IN_libc): Define it.
13475 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
13476 * elf/Makefile (CPPFLAGS-.os): Likewise.
13478 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
13479 Return the status instead of calling exit.
13481 * Makeconfig (CFLAGS): Prepend -std=gnu99.
13482 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
13483 Remove superfluous rm command, whose @ plus make bugs hid
13484 all these commands from the make output.
13486 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
13487 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
13488 Use that file's contents instead of literal echo's for the prologue.
13489 * include/features.h: Include <gnu/stubs.h> unconditionally.
13490 * include/gnu/stubs.h: New file.
13492 2002-09-30 Roland McGrath <roland@redhat.com>
13494 * elf/rtld-Rules: New file.
13495 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
13496 $(objpfx)rtld-libc.a): New targets.
13497 (generated): Add them.
13498 (reloc-link): Remove -o $@ from the variable.
13499 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
13500 (distribute): Add rtld-Rules.
13501 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
13502 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
13503 (common-mostlyclean, common-clean): Clean up rtld-* files.
13504 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
13506 2003-05-20 Jakub Jelinek <jakub@redhat.com>
13508 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
13509 If temp != NULL, copy dynamic entries which need relocation to temp
13510 array before relocating.
13511 (DL_RO_DYN_TEMP_CNT): Define.
13512 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
13513 * elf/rtld.c (_dl_start): Likewise.
13514 (dl_main): Likewise. Add dyn_temp static variable.
13516 2002-10-11 Roland McGrath <roland@redhat.com>
13518 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
13519 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
13521 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
13522 proper set of no-op insn prefixes.
13524 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
13526 2002-10-11 Ulrich Drepper <drepper@redhat.com>
13528 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
13529 __pthread_kill_other_threads_np.
13531 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
13533 2002-10-08 Roland McGrath <roland@redhat.com>
13535 * locale/newlocale.c (__newlocale): If setting all categories to "C",
13536 just return &_nl_C_locobj instead of copying it.
13537 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
13538 * locale/duplocale.c (__duplocale): Likewise.
13540 2002-10-07 Roland McGrath <roland@frob.com>
13542 * config.h.in (HAVE_I386_SET_GDT): New #undef.
13543 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
13544 * sysdeps/mach/configure: Regenerated.
13546 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13548 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
13549 Add all necessary register outputs for syscall-clobbered registers.
13551 2002-10-02 David Mosberger <davidm@hpl.hp.com>
13553 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
13554 Itanium 2 (and Itanium).
13555 Fix unwind directives and make it fit in 80 columns.
13556 * sysdeps/ia64/memset.S: Likewise.
13557 * sysdeps/ia64/memcpy.S: Likewise.
13558 Move jump table to .rodata section.
13560 2002-10-03 Roland McGrath <roland@frob.com>
13562 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
13565 2002-10-10 Andreas Jaeger <aj@suse.de>
13567 * sysdeps/x86_64/_mcount.S: Restore correct registers.
13569 2002-10-10 Ulrich Drepper <drepper@redhat.com>
13571 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
13573 2002-10-09 Ulrich Drepper <drepper@redhat.com>
13575 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
13576 _dl_allocate_tls_init. Add rtld_hidden_proto.
13577 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
13579 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
13581 * version.h (VERSION): Bump to 2.3.1.
13583 * Make-dist: Add back one of the tar invocations removed before.
13585 * stdlib/Makefile (distribute): Add allocalim.h.
13587 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
13588 (__libc_tsd_address): Use correct variable name.
13589 Patch by Stefan Jones <stefan.jones@multigig.com>.
13591 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
13592 Reported by edwardsg@sgi.com [PR libc/4678].
13594 * Versions.def (libc): Add GLIBC_2.3.1.
13595 (libpthread): Add GLIBC_2.3.1.
13597 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
13598 and __sigtimedwait.
13599 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
13600 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
13602 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
13603 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
13605 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
13606 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
13607 and make old name an alias.
13608 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
13609 and make old name an alias.
13610 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
13613 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
13614 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
13616 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
13618 * sysdeps/posix/readv.c: Likewise
13619 * sysdeps/unix/sysv/aix/readv.c: Likewise.
13620 * sysdeps/unix/sysv/linux/readv.c: Likewise.
13621 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
13623 * sysdeps/posix/writev.c: Likewise
13624 * sysdeps/unix/sysv/aix/writev.c: Likewise.
13625 * sysdeps/unix/sysv/linux/writev.c: Likewise.
13627 * include/sys/wait.h: Declare __waitid.
13628 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
13629 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
13631 * sysdeps/posix/waitid.c: Likewise.
13632 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
13634 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
13636 2002-10-07 Jakub Jelinek <jakub@redhat.com>
13638 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
13640 (__MAX_ALLOCA_CUTOFF): Define.
13641 Include allocalim.h.
13642 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
13643 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
13644 host_buffer depending on __libc_use_alloca.
13645 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
13646 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
13647 net_buffer depending on __libc_use_alloca.
13648 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
13649 buf depending on __libc_use_alloca.
13650 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
13651 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
13652 instead of hardcoded constants.
13653 Pass proper size argument to alloca and compute end for wide char
13655 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
13656 instead of hardcoded constants.
13657 * string/strcoll.c (strcoll): Likewise.
13658 * string/strxfrm.c (strxfrm): Likewise.
13659 * sysdeps/posix/readv.c (__readv): Likewise.
13660 * sysdeps/posix/writev.c (__writev): Likewise.
13661 * sysdeps/generic/allocalim.h: New file.
13663 2002-10-08 Roland McGrath <roland@redhat.com>
13665 * configure.in (aux_missing warning): Change "too old" to
13666 "incompatible versions", since for autoconf it's "too new" right now.
13667 * configure: Regenerated.
13669 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
13670 one found doesn't work on our configure.in.
13671 * configure: Regenerated.
13672 * config.make.in (AUTOCONF): New substituted variable.
13673 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
13674 (autoconf-it): ... here, use that instead of defining conditionally.
13675 Use $(AUTOCONF) instead of literal autoconf.
13676 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
13677 with this condition.
13678 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
13680 2002-10-08 Ulrich Drepper <drepper@redhat.com>
13682 * Make-dist (dist): Cleanup a bit. We are not interested in the
13683 14 char filename limit anymore. Remove intermediate files and
13686 2002-10-05 Ulrich Drepper <drepper@redhat.com>
13688 * po/sk.po: Update from translation team.
13689 * po/tr.po: Likewise.
13690 * po/gl.po: Likewise.
13692 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
13694 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
13696 2002-10-03 Ulrich Drepper <drepper@redhat.com>
13698 * version.h (RELEASE): Change to stable.
13700 2002-10-03 Jakub Jelinek <jakub@redhat.com>
13702 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
13703 __syscall_exit_group): New prototypes.
13705 2002-10-03 Ulrich Drepper <drepper@redhat.com>
13707 * glibc 2.3 released.
13710 See ChangeLog.13 for earlier changes.