1 2003-12-20 Ulrich Drepper <drepper@redhat.com>
3 * elf/rtld.c (dl_main): Optimize order or subexpressions in if().
5 2003-12-18 Ulrich Drepper <drepper@redhat.com>
7 * stdio-common/printf_fp.c: Add support to use alternative decimal
9 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
10 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
12 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
14 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
15 reload PIC if we need to call __syscall_error, cleanup asm.
17 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
19 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
20 FE_ALL_EXCEPT before complimenting.
21 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
22 and gcc '+r' constraint.
23 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
24 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
26 exception bits, OR with envp, pass to fesetenv.
27 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
28 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
29 triggered by M_PI/69.69 converted to single precision.
30 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
31 bits not raised exception bits.
33 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
34 correct build strings.
35 * sysdeps/hppa/dl-fptr.h: New file.
36 * sysdeps/hppa/dl-fptr.c: Removed.
37 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
38 remove const qualifier for map.
39 (_dl_function_address): Removed.
40 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
41 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
42 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
43 DL_DT_FINI_ADDRESS use the previous two macros.
45 2003-12-17 Jakub Jelinek <jakub@redhat.com>
47 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
48 (tr_memalignhook): New function.
49 (mtrace): Register tr_memalignhook.
50 (muntrace): Deregister tr_memalignhook.
51 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
52 call it directly instead of memalign_internal.
54 2003-12-17 Ulrich Drepper <drepper@redhat.com>
56 * misc/mntent_r.c: Change encoding to match recently changed decoder.
57 Patch by Alexander Achenbach <xela@slit.de>.
59 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
61 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
64 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
66 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extent
67 conditional to include typedef elf_vrreg_t.
69 2002-12-17 Paolo Bonzini <bonzini@gnu.org>
71 * posix/regexec.c (re_search_internal): Limit search to the
72 beginning of the buffer if the initial states are empty for
73 contexts that do not include CONTEXT_BEGBUF or, if
74 !preg->newline_anchor, that do not include any one of
75 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
77 2003-12-17 Andreas Jaeger <aj@suse.de>
79 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
80 Kevin Pedretti <pedretti@ieee.org>.
82 2003-12-17 Ulrich Drepper <drepper@redhat.com>
84 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
85 removes the visibility attributes which might be defined earlier
86 for some gcc versions. Instead spell out what strong_alias does
89 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
91 * posix/regex_internal.h: Make sure the regex code compile
92 with non-GCC compilers by hiding attributes.
94 2002-12-16 Jakub Jelinek <jakub@redhat.com>
95 Paolo Bonzini <bonzini@gnu.org>
97 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
98 dests_ch items that are empty.
100 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
102 * posix/regexec.c (check_arrival): Remove duplicate test.
104 2003-12-15 Ulrich Drepper <drepper@redhat.com>
106 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
107 * posix/regex_internal.c: Likewise.
108 * posix/regexec.c: Likewise.
109 Patch by Paolo Bonzini.
111 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
113 * posix/regex_internal.c (re_acquire_state_context):
114 Compare the node sets after all the other comparisons.
116 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
118 * posix/regexec.c (find_subexp_node, check_arrival,
119 check_arrival_add_next_nodes, check_arrival_expand_ecl,
120 check_arrival_expand_ecl_sub, expand_bkref_cache):
121 Rename the FL_OPEN parameter to TYPE, which is either
122 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
124 2003-12-12 Andreas Jaeger <aj@suse.de>
126 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
129 2003-12-11 Ulrich Drepper <drepper@redhat.com>
131 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
132 There might always be processes which have no vDSO.
133 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
134 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
136 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
138 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
141 2003-12-01 Jes Sorensen <jes@wildopensource.com>
143 * rt/tst-clock.c (do_test): Print message when skipping
144 CLOCK_PROCESS_CPUTIME_ID test.
146 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
147 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
149 2003-12-02 David Mosberger <davidm@hpl.hp.com>
151 * sysdeps/ia64/elf/initfini.c: Add unwind info.
153 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
155 (elf_machine_dynamic): Mark with attributes "unused" and "const".
156 (elf_machine_runtime_setup): Likewise.
158 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
159 attribute "always_inline".
160 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
163 * configure.in: Check whether compiler has libunwind support.
164 * config.make.in (have-cc-with-libunwind): New variable.
165 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
166 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
169 2003-11-12 David Mosberger <davidm@hpl.hp.com>
171 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
172 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
173 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
176 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
177 instead of DO_CALL().
179 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
182 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
183 to take advantage of DO_CALL() macro.
184 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
185 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
187 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
188 program header. On ia64, the check failed previously because
189 there are two program headers.
191 2003-12-10 Andreas Jaeger <aj@suse.de>
192 Ruediger Oertel <ro@suse.de>
194 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
196 2003-12-07 Ulrich Drepper <drepper@redhat.com>
198 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
199 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
200 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
201 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
202 * sysdeps/generic/s_nexttowardf.c: Likewise.
203 * math/Makefile (tests): Add bug-nexttoward.
204 * math/bug-nexttoward.c: New file.
206 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
207 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
208 * math/bug-nextafter.c (main): Add tests for overflow and negative
211 2003-12-06 Ulrich Drepper <drepper@redhat.com>
213 * math/Makefile (tests): Add bug-nextafter.
214 * math/bug-nextafter.c: New file.
215 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
216 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
217 * math/libm-test.inc (nextafter_test): Add test for overflow after
220 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
222 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
224 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
226 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
228 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
230 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
231 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
232 (END): Add cfi_endproc directive.
233 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
234 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
235 cfi_startproc and cfi_endproc directive.
236 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
237 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
238 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
239 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
240 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
242 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
244 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
245 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
246 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
247 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
248 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
249 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
250 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
251 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
252 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
254 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
256 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
257 directives. Move thread_start out of ENTRY/PSEUDO_END block to
258 make backchain terminate.
259 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
261 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
262 (unwind_backtrace, unwind_getip): New variables.
263 (init, __backchain_backtrace, backtrace_helper): New functions.
264 (__backtrace): Use unwind info for backtrace instead of backchain
265 walking if the unwind functions can be found.
266 * sysdeps/s390/s390-64/backtrace.c: Likewise.
268 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
270 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
271 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
272 (elf_prstatus32, elf_prpsinfo32): New structures.
273 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
275 * scripts/data/c++-types-s390-linux-gnu.data: New file.
276 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
278 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
280 * stdlib/strfmon.c: Correct formatting of international currency
281 values. The international currency formatting should prefer the
282 int_* values if they are set for a locale, and use the domestic
283 values if the int_* values are unset.
285 2003-12-03 Jakub Jelinek <jakub@redhat.com>
287 * posix/Makefile (distribute): Add BOOST.tests.
288 (tests): Add tst-boost, depend on tst-boost-mem.
289 (generated): Add tst-boost-mem and tst-boost.mtrace.
290 (tst-boost-ARGS, tst-boost-ENV): Set.
291 ($(objpfx)tst-boost-mem): New.
292 * posix/tst-boost.c: New test.
293 * posix/BOOST.tests: New file.
295 * posix/Makefile (distribute): Add PCRE.tests.
296 (tests): Add tst-pcre, depend on tst-pcre-mem.
297 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
298 (tst-pcre-ARGS, tst-pcre-ENV): Set.
299 ($(objpfx)tst-pcre-mem): New.
300 * posix/tst-pcre.c: New test.
301 * posix/PCRE.tests: New file.
303 2003-12-02 Jakub Jelinek <jakub@redhat.com>
305 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
307 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
308 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
310 2003-12-03 Ulrich Drepper <drepper@redhat.com>
312 * locale/programs/locarchive.c (enlarge_archive): Print size info
313 only in verbose mode.
315 * locale/iso-3166.def: Three letter code of Romania changed.
317 2003-12-02 Roland McGrath <roland@redhat.com>
319 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
320 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
322 2003-11-30 Andreas Jaeger <aj@suse.de>
324 * config.make.in (fno-unit-at-a-time): Define.
326 * configure.in: Add test for -fno-unit-at-a-time.
329 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
330 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
334 * version.h (VERSION): Bump to 2.3.3.
336 2003-11-30 Andreas Jaeger <aj@suse.de>
338 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
339 decrease stack usage.
341 2003-11-30 Andreas Schwab <schwab@suse.de>
343 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
344 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
346 2003-11-29 Ulrich Drepper <drepper@redhat.com>
348 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
349 recognize \134 as well.
351 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
353 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
355 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
357 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
359 (struct ia64_fpreg): New definition.
361 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
363 (ELF_NGREG): New #define.
364 (ELF_NFPREG): Likewise.
365 (elf_greg_t): New type.
366 (elf_gregset_t): Likewise.
367 (elf_fpreg_t): Likewise.
368 (elf_fpregset_t): Likewise.
370 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
372 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
374 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
375 (pt_all_user_regs): New type.
377 2003-10-10 Simon Josefsson <jas@extundo.com>
379 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
380 strchrnul.h, strndup.h (from gnulib).
381 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
383 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
384 Autoconf manual version.
385 * argp/argp.h: Map __restrict to restrict or empty string when
386 necessary, copied verbatim from posix/regex.h.
388 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
390 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
391 addition to c++-types-$(base-machine)-$(config-os).data.
392 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
393 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
395 2003-11-28 Ulrich Drepper <drepper@redhat.com>
397 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
399 * manual/sysinfo.texi (mtab): Adjust description accordingly.
400 Reported by Andries.Brouwer@cwi.nl.
402 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
403 to compensate other setup.
405 2003-11-27 Andreas Jaeger <aj@suse.de>
407 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
409 * math/libm-test.inc (atan2_test): Add test that run infinitly.
410 Reported by "Willus" <etc231etc231@willus.com>.
412 2003-11-27 Michael Matz <matz@suse.de>
414 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
417 2003-11-28 Jakub Jelinek <jakub@redhat.com>
419 * posix/regexec.c (acquire_init_state_context): Make inline.
420 Add always_inline attribute.
421 (check_matching): Add BE macro. Move if (cur_state->has_backref)
422 into if (dfa->nbackref).
423 (sift_states_backward): Fix comment.
424 (transit_state): Add BE macro. Move if (next_state->has_backref)
425 into if (dfa->nbackref && next_state). Don't check for next_state
427 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
429 (parse_expression): Only call init_word_char if word context will be
432 * posix/bug-regex11.c (tests): Add new tests.
434 * posix/tst-regex.c: Include getopt.h.
435 (timing): New variable.
436 (main): Set timing to 1 if --timing argument is present.
438 (run_test, run_test_backwards): Handle timing.
440 2003-11-27 Jakub Jelinek <jakub@redhat.com>
442 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
443 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
444 offsets_needed fields. Change icase, is_utf8 and map_notascii
445 type from int bitfield to unsigned char.
446 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
447 (build_wcs_upper_buffer): Change prototype to return int.
448 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
449 defines, add prototypes.
450 * posix/regex_internal.c (re_string_allocate): Don't initialize
451 stop here. Don't initialize mbs_case. Set valid_raw_len.
452 Use mbs_allocated instead of MBS_* macros.
453 (re_string_construct): Don't initialize stop and valid_len here.
454 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
455 macros. Reallocate buffers if build_wcs_upper_buffer converted
456 too few bytes. Set valid_len to bufs_len only for single byte
457 no translation and set in that case valid_raw_len as well.
458 (re_string_realloc_buffers): Reallocate offsets if not NULL.
459 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
461 (re_string_construct_common): Initialize raw_len, mbs_allocated,
463 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
464 after it. Set valid_raw_len. Don't set mbs_case.
465 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
466 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
467 before mbrtowc instead of after it. If upper case character
468 uses different number of bytes than lower case, goto to the
469 slow path. Don't call towupper unnecessarily twice. Set
470 valid_raw_len as well. Handle in the slow path the case if
471 lower and upper case use different number of characters.
473 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
474 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
476 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
478 (re_string_reconstruct): Use raw_len/raw_stop to initialize
479 len/stop. Clear valid_raw_len and offsets_needed when clearing
480 valid_len. Use mbs_allocated instead of MBS_* macros.
481 Check original offset against valid_raw_len instead of valid_len.
482 Remove mbs_case handling. Adjust valid_raw_len together with
483 valid_len. If is_utf8 and looking for tip context, apply
484 pstr->trans first. If buffers start with partial multi-byte
485 character, initialize mbs array as well if mbs_allocated.
486 Check return value of build_wcs_upper_buffer.
487 (re_string_peek_byte_case): New function.
488 (re_string_fetch_byte_case): New function.
489 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
490 Don't free mbs_case. Free offsets.
491 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
493 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
494 as well. Use valid_raw_len instead of valid_len when looking
495 through fastmap. Adjust registers through input.offsets.
496 (extend_buffers): Allow build_wcs_upper_buffer to fail.
497 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
500 2003-11-26 Jakub Jelinek <jakub@redhat.com>
502 * posix/regexec.c (check_subexp_limits): Only check close
503 subexpression limitation if one is found. Formatting.
504 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
506 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
509 2003-11-26 Ulrich Drepper <drepper@redhat.com>
511 * sysdeps/unix/sysv/linux/kernel-features.h
512 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
513 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
514 if __ASSUME_PROT_GROWSUPDOWN is defined.
516 2003-11-26 Andreas Jaeger <aj@suse.de>
518 * sysdeps/unix/sysv/linux/dl-execstack.c
519 (_dl_make_stack_executable): Set dl_stack_flags always for
522 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
524 * locale/program/ld-monetary.c: Only check the first three
525 characters in int_curr_symbol against ISO-4217, to make the
526 separator character used by a locale independent of the content
528 * locale/iso-4217.def: Remove the space character from all
529 currency values to get the new test code in ld-monetary.c working.
531 2003-11-21 David Mosberger <davidm@hpl.hp.com>
533 * elf/soinit.c (_fini): Put _fini() in .init_array section if
534 HAVE_INITFINI_ARRAY is defined.
536 2003-11-25 Ulrich Drepper <drepper@redhat.com>
538 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
539 Define it appropriately after last change. Use it where __sqrtl
542 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
544 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
545 sqrt for gcc 3.3 and above.
547 2003-11-25 Ulrich Drepper <drepper@redhat.com>
549 * posix/runptests.c (main): Make errors fatal.
550 * posix/PTESTS: One test in GA135 and GA136 check functionality
551 which seems not guaranteed.
553 2003-11-25 Jakub Jelinek <jakub@redhat.com>
555 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
556 returned REG_NOMATCH, set match_last to -1. Don't initialize
557 pmatch[0] needlessly. Fix comment.
558 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
559 (set_regs): Fix comment.
560 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
561 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
562 (build_charclass_op): Set has_plural_match if adding both
563 SIMPLE_BRACKET and COMPLEX_BRACKET.
564 * posix/bug-regex11.c (tests): Fix register values for one commented
565 out test. Add new tests.
567 * posix/regex_internal.c (re_string_allocate): Make sure init_len
568 is at least dfa->mb_cur_max.
569 (re_string_reconstruct): If is_utf8, don't fall back into
570 re_string_skip_chars just because idx points into a middle of
571 valid UTF-8 character. Instead, set the wcs bytes which correspond
572 to the partial character bytes to WEOF.
573 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
574 instead of dfa->nodes_len + 1 state_log entries initially.
575 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
578 2003-11-24 Jakub Jelinek <jakub@redhat.com>
580 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
582 (re_dfa_t): Add sb_char field.
583 (bitset_mask): New function.
584 * posix/regcomp.c (free_dfa_content): Free sb_char.
585 (init_dfa): Don't initialize word_char unnecessarily.
587 (duplicate_node): Don't duplicate !word_char CHARACTERs with
588 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
589 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
590 (duplicate_node_closure): Handle clone_dest == -1 from
592 (peek_token): Initialize word_char bit.
593 (parse_expression, parse_dup_op): Add comments.
594 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
595 starting bytes here at the beginning. Mask off the bits right
596 before creating SIMPLE_BRACKET.
597 (build_charclass_op): Likewise.
598 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
599 set accept bits for single-byte characters.
600 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
601 being single byte encoded and the rest multi-byte.
602 * posix/bug-regex19.c (tests): Add new tests.
603 (do_mb_tests): Initialize t to *test.
604 (main): Fail even on do_mb_tests errors.
606 2003-11-23 Ulrich Drepper <drepper@redhat.com>
608 * posix/regexec.c: Correct several memory allocation problems.
610 * posix/regex_internal.c: Likewise.
611 * posix/regcomp.c: Likewise.
613 * posix/regexec.c: Add const in a number of places.
614 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
615 debugging. Its value isn't important.
617 2003-11-22 Ulrich Drepper <drepper@redhat.com>
619 * posix/PTESTS: Fix first test of GA143.
621 2003-11-21 Ulrich Drepper <drepper@redhat.com>
623 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
626 * locale/programs/charmap.c (charmap_read): If encoding is found
627 not ASCII compatible, set enc_not_ascii_compatible.
628 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
629 * locale/programs/ld-ctype.c (ctype_startup): If
630 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
632 2003-11-22 Jakub Jelinek <jakub@redhat.com>
634 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
635 if !__libc_enable_secure.
637 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
639 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
640 (dl_main): Set GL(dl_use_load_bias) default.
641 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
642 Add EXTRA_LD_ENVVARS_13.
643 * elf/dl-support.c (_dl_use_load_bias): New variable.
644 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
645 with GL(dl_use_load_bias).
646 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
648 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
649 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
650 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
651 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
652 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
654 2003-11-21 Ulrich Drepper <drepper@redhat.com>
656 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
658 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
659 pointer. Adjust callers.
661 * posix/regcomp.c (fetch_token): Change interface to match
662 peek_token. This avoids some copying and reduces code size.
664 2003-11-21 Jakub Jelinek <jakub@redhat.com>
666 * posix/bug-regex19.c (tests): Add more tests.
668 * posix/bug-regex11.c: And one more commented out test.
670 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
671 tests multiple times unnecessarily.
673 * posix/bug-regex19.c (BRE, ERE): Define.
674 (tests): Add many new tests, remove UTF-8 ones.
675 (do_one_test, do_mb_tests): New functions.
676 (main): Rewritten using do_one_test and do_mb_tests.
678 2003-11-20 Ulrich Drepper <drepper@redhat.com>
680 * posix/PTESTS: Fix first test in GA143.
682 2003-11-20 Jakub Jelinek <jakub@redhat.com>
684 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
686 * posix/regex_internal.c (create_newstate_common, free_state):
687 Don't free trtable_search.
688 * posix/regexec.c (check_matching): Remove fl_search argument.
689 (transit_state_sb): Likewise. #ifdef out as unused.
690 (build_trtable): Remove fl_search argument. Set state->word_trtable
691 and state->trtable. Build separate word and non-word tables if
692 multi-byte and they differ for some character.
693 (transit_state): Remove fl_search argument. Don't update
694 state->trtable here. Handle state->word_trtable.
695 #ifdef out unused call to transit_state_sb.
696 (re_search_internal): Update check_matching caller.
697 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
698 bitmask for multi-byte locales.
699 * posix/bug-regex19.c (tests): Enable some commented out tests, add
701 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
702 multi-byte. Don't run identical multi-byte tests multiple times
704 (main): Check setlocale return value.
705 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
706 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
707 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
708 here, without --utf8 argument but with MALLOC_TRACE.
710 2003-11-19 Jakub Jelinek <jakub@redhat.com>
712 * posix/regexec.c (extend_buffers): Don't allocate
713 twice as big state_log as needed. Don't modify pstr->valid_len
714 for mb_cur_max == 1 !icase !trans.
716 * posix/regcomp.c (free_bin_tree): Removed.
717 (create_tree): Add dfa argument. Don't call re_malloc for
718 each tree, instead allocate from str_tree_storage.
719 (re_dfa_add_tree_node): New function.
720 (free_dfa_content): Handle freeing if dfa->nodes == NULL
721 or dfa->state_table == NULL.
722 (re_compile_internal): Call free_dfa_content if init_dfa
723 fails. Call free_workarea_compile, re_string_destruct
724 and free_dfa_content for most of the other failure paths.
725 (init_dfa): Initialize str_tree_storage_idx.
726 Don't clear any fields on allocation failure.
727 (free_workarea_compile): Free str_tree_storage chunks
728 instead of free_bin_tree (dfa->str_tree).
729 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
730 followed by create_tree. Add dfa argument to remaining
731 create_tree calls. Remove new_idx variable. Remove calls
733 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
734 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
735 (duplicate_tree): Remove calls to free_bin_tree, add dfa
736 argument to create_tree.
737 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
738 (bin_tree_storage_t): New type.
739 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
741 * posix/Makefile (tests): Add bug-regex21.
742 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
743 tst-rxspencer-mem and tst-rxspencer.mtrace.
744 (tests): Depend on $(objpfx)bug-regex21-mem
745 and $(objpfx)tst-rxspencer-mem.
746 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
747 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
748 * posix/tst-rxspencer.c (main): Add call to mtrace.
749 Free line at the end.
750 * posix/bug-regex21.c: New test.
752 2003-11-19 Ulrich Drepper <drepper@redhat.com>
754 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
756 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
757 fails, just use the byte, do no fancy conversions.
759 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
761 (re_string_is_single_byte_char): Likewise.
763 2003-11-18 Ulrich Drepper <drepper@redhat.com>
765 * posix/regexec.c (get_subexp): After calling get_subexp_sub
766 reload buf and bkref_str. Little optimization by avoiding memcmp.
768 2003-11-14 David Mosberger <davidm@hpl.hp.com>
770 * sysdeps/unix/sysv/linux/ia64/sysdep.h
771 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
772 that all existing GAS versions have a problem with .align inside
774 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
775 * sysdeps/ia64/memcpy.S: Likewise.
776 * sysdeps/ia64/memset.S: Likewise.
777 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
778 out of .text into .rodata, where it belongs.
780 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
781 save/restore input-arguments, because they're necessarily
782 preserved by the kernel to support syscall-restart.
784 2003-11-18 Jakub Jelinek <jakub@redhat.com>
786 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
787 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
789 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
790 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
791 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
792 Handle OP_UTF8_PERIOD.
793 (re_string_reconstruct): Set valid_len for single byte char searching
794 with no translation and case sensitivity.
795 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
797 (re_compile_internal): Don't call optimize_utf8 if preg->translate
799 (optimize_utf8): Remove BACK_SLASH case.
800 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
802 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
803 any bits set and COMPLEX_BRACKET is used.
804 * posix/regexec.c (transit_state_mb): Fix comment typo.
805 (group_nodes_into_DFAstates, check_node_accept): Handle
807 (check_node_accept_bytes): Likewise. Reorder slightly so that
808 re_string_char_size_at and re_string_elem_size_at are called
810 * posix/bug-regex20.c (BRE, ERE): Define.
811 (tests): Use them to make lines shorter. Expect . to be
812 optimized. Add lots of new tests.
813 (main): Run (ATM just case sensitive) test with backwards searching
816 2003-11-18 Jakub Jelinek <jakub@redhat.com>
818 * io/bug-ftw4.c: Include string.h.
819 * posix/fnmatch.c (mbsinit): Remove define.
821 2003-11-17 Jakub Jelinek <jakub@redhat.com>
823 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
825 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
826 followed by dup operator is expected to be optimized.
828 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
829 variables to the block where they are only used, initialize
830 nrules only immediately before using it.
832 2003-11-15 Andreas Jaeger <aj@suse.de>
834 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
835 * sysdeps/x86_64/fpu/s_truncl.S: New file.
836 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
837 * sysdeps/x86_64/fpu/s_floorl.S: New file.
838 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
839 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
841 * math/libm-test.inc (floor_test): Test also ±0.25.
842 (ceil_test): Test -0.25.
844 2003-11-17 Ulrich Drepper <drepper@redhat.com>
846 * sysdeps/posix/getaddrinfo.c: Add support for destination address
847 selection according to RFC 3484.
849 2003-11-15 Ulrich Drepper <drepper@redhat.com>
851 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
852 Replace last two parameters of re_string_allocate and
853 re_string_construct with pointer to DFA.
854 (re_dfa_t): Add map_notascii field.
855 * posix/regcomp.c (re_compile_internal): Add call of
857 (init_dfa): Initialize map_notascii.
858 * posix/regex_internal.c: Adjust definitions of re_string_allocate
859 and re_string_construct.
860 Pass DFA to re_string_construct. Adjust definition. Initialize
862 (build_wcs_upper_buffer): If map_notascii is zero use simplified
863 method to map ASCII values to upper case.
864 * posix/regex.c: Include localeinfo.h.
865 * posix/regexec.c: Adjust call of re_string_allocate.
867 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
868 * locale/localeinfo.h (LIMAGIC): Change value.
869 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
870 * locale/C-ctype.h: Likewise.
871 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
872 ASCII to non-ASCII value. Write out that value.
874 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
875 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
877 2003-11-14 Jakub Jelinek <jakub@redhat.com>
879 * posix/tst-rxspencer.c (check_match): @ without any following
880 characters must match only end of string.
881 (main): Fix filename in error message.
883 2003-11-12 David Mosberger <davidm@hpl.hp.com>
885 * sysdeps/ia64/dl-machine.h: Force inlining of
886 elf_machine_runtime_setup().
888 2003-11-13 Andreas Jaeger <aj@suse.de>
890 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
891 (CFLAGS-test-double.c): Likewise.
892 (CFLAGS-test-ldouble.c): Likewise.
893 (CPPFLAGS-test-ifloat.c): Likewise.
894 (CPPFLAGS-test-idouble.c): Likewise.
895 (CPPFLAGS-test-ildoubl.c): Likewise.
897 * math/libm-test.inc (ceil_test): Test ceil (0.25).
899 2003-11-04 Ulrich Drepper <drepper@redhat.com>
901 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
902 sends the netlink data.
903 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
905 2003-11-13 Jakub Jelinek <jakub@redhat.com>
907 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
908 with no bits set for >= 0x80 chars is seen.
909 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
911 (main): Run all tests with RE_ICASE as well.
913 2003-11-13 Ulrich Drepper <drepper@redhat.com>
915 * posix/Makefile: Add rules to build and run tst-rxspencer.
916 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
917 * posix/tst-rxspencer.c: New file.
918 * posix/rxspencer/tests: New file.
919 * posix/rxspencer/COPYRIGHT: New file.
920 Patch mostly by Jakub Jelinek.
922 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
923 this is no option given the first token.
925 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
926 hyphen in range expression. Return EBRACK in this case.
928 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
929 we expect them or it's the last element in the bracket expression.
930 Indicated by new parameter. Adjust all callers.
932 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
933 Prettier error messages.
935 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
936 number in {,} expression is larger.
938 2003-11-13 Andreas Jaeger <aj@suse.de>
940 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
941 Define appropriately for x86_64.
942 (__ASSUME_UTIMES): Likewise.
943 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
945 * sysdeps/x86_64/fpu/s_ceill.S: New file.
947 2003-11-13 Ulrich Drepper <drepper@redhat.com>
949 * posix/regcomp.c (parse_expression): In BRE consecutive
950 duplications are not allowed.
952 2003-11-12 Ulrich Drepper <drepper@redhat.com>
954 * posix/regcomp.c (parse_bracket_exp): If end of expression is
955 seen, return EBRACK error, not BADPAT.
957 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
958 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
959 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
960 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
962 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
965 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
966 * posix/runptests.c (main): Handle comments.
967 * posix/PTESTS2C.sed: Handle comments.
969 2003-11-12 Jakub Jelinek <jakub@redhat.com>
971 * posix/regcomp.c (optimize_utf8): New function.
972 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
974 (re_compile_internal): Call optimize_utf8 if not case insensitive
976 * posix/regex_internal.h: Ifdef out some prototypes if
977 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
978 * posix/Makefile (tests): Add bug-regex20.
979 (bug-regex20-ENV): Add LOCPATH.
980 * posix/bug-regex20.c: New test.
982 2003-11-12 Jakub Jelinek <jakub@redhat.com>
984 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
986 2003-11-12 Jakub Jelinek <jakub@redhat.com>
988 * posix/tst-regex.c (umemlen): New variable.
989 (test_expr): Add expectedicase argument. Test case insensitive
990 searches as well as backwards searches (case sensitive and
992 (run_test): Add icase argument. Use it to compute regcomp flags.
993 (run_test_backwards): New function.
994 (main): Cast read to size_t to avoid warning. Set umemlen.
995 Add expectedicase arguments to test_expr.
996 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
997 find previous character by walking back instead of converting
998 all chars from beginning.
1000 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1002 * posix/regex_internal.h (struct re_string_t): Add is_utf8
1003 and mb_cur_max fields.
1004 (struct re_dfa_t): Likewise. Reorder fields to make structure
1005 smaller on 64-bit arches.
1006 (re_string_allocate, re_string_construct): Add mb_cur_max and
1008 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
1009 instead of MB_CUR_MAX.
1010 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
1011 instead of MB_CUR_MAX.
1012 (re_compile_internal): Pass new arguments to re_string_construct.
1013 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
1014 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
1016 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
1017 dfa->mb_cur_max instead of MB_CUR_MAX.
1018 * posix/regex_internal.c (re_string_construct_common): Add
1019 mb_cur_max and is_utf8 arguments. Initialize fields with them.
1020 (re_string_allocate, re_string_construct): Add mb_cur_max and
1021 is_utf8 arguments, pass them to re_string_construct_common.
1022 Use mb_cur_max instead of MB_CUR_MAX.
1023 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
1025 (re_string_reconstruct): Likewise.
1026 (re_string_context_at): Use input->mb_cur_max instead of
1028 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
1029 instead of MB_CUR_MAX.
1030 * posix/regexec.c (re_search_internal): Likewise.
1031 Pass new arguments to re_string_allocate.
1032 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
1034 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
1036 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1038 * posix/Makefile (tests): Add bug-regex19.
1039 (bug-regex19-ENV): Add LOCPATH.
1040 * posix/bug-regex19.c: New test.
1042 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1044 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
1045 with MB_CUR_MAX > 1 locales in the fastmap.
1047 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1049 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
1050 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
1052 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
1053 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
1054 * posix/bug-regex17.c: New file
1055 * posix/bug-regex18.c: New file.
1057 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
1059 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
1060 Define __NR_pread/__NR_pwrite if not done in kernel headers
1062 2003-11-11 Roland McGrath <roland@redhat.com>
1064 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
1066 * manual/Makefile (info): Don't depend on dir-add.info.
1067 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
1068 (dir-add.info): Target removed, replaced with ...
1069 (dir-add.texi): New target.
1070 (distribute): Add it.
1071 (install): Remove variant with --section arguments.
1072 Let the @dircategory directives do their work.
1073 (mostlyclean): Don't remove dir-add.info here.
1074 (realclean): Remove dir-add.texi here.
1075 * manual/libc.texinfo: @include dir-add.texi
1076 * configure.in: Remove check for old Debian install-info.
1077 * configure: Regenerated.
1078 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
1080 2003-11-08 Andreas Schwab <schwab@suse.de>
1082 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
1084 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
1086 * io/ftwtest-sh: Fix nested sed commands.
1088 2003-11-10 Jakub Jelinek <jakub@redhat.com>
1090 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
1091 valid_len wide chars.
1093 2003-11-09 Roland McGrath <roland@redhat.com>
1095 * manual/examples/dir2.c (one): Add const to argument type.
1096 Reported by J de Haan <j.de.haan@home.nl>.
1098 2003-11-07 Ulrich Drepper <drepper@redhat.com>
1100 * po/pl.po: Update from translation team.
1102 2003-11-07 Jakub Jelinek <jakub@redhat.com>
1104 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1105 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
1106 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
1107 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
1109 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1110 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
1111 and nftw64@@GLIBC_2.3.3.
1113 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
1114 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
1115 * io/ftw.c (ftw_dir): Add old_dir argument.
1116 Clear result if it was FTW_SKIP_SIBLINGS after processing all
1117 dir entries. Change cwd back if old_dir != NULL.
1118 (process_entry): Adjust caller. Don't change cwd back here.
1119 Change FTW_SKIP_SUBTREE result to 0.
1120 (ftw_startup): Adjust ftw_dir caller.
1121 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
1122 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
1123 (options, main): Add --skip-subtree and --skip-siblings options.
1124 (cb): Use return FTW_CONTINUE instead of return 0.
1125 Handle --skip-subtree and --skip-siblings.
1126 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
1127 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
1129 2003-11-04 Jakub Jelinek <jakub@redhat.com>
1131 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
1133 * io/Makefile (tests): Add bug-ftw4.
1134 * io/bug-ftw4.c: New test.
1136 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
1138 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
1139 (struct _IO_FILE_complete_plus): New type.
1140 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
1141 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
1142 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
1143 Call _IO_old_init instead of _IO_init.
1145 2003-11-03 Ulrich Drepper <drepper@redhat.com>
1147 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
1149 * locale/iso-639.def: Add Blin.
1150 Patch by Daniel Yacob <locales@geez.org>.
1152 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
1154 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
1155 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
1157 2003-11-01 Randolph Chung <tausq@debian.org>
1159 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
1160 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
1161 Add missing parentheses.
1163 2003-11-01 Roland McGrath <roland@redhat.com>
1165 * libio/bug-ftell.c (do_test): Add a cast.
1167 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
1169 * Makerules (shlib.lds): Make sure that ld doesn't try to link
1170 anything while generating the linker script.
1172 2003-10-31 Roland McGrath <roland@redhat.com>
1174 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
1177 2003-10-29 Ulrich Drepper <drepper@redhat.com>
1179 * po/be.po: Update from translation team.
1181 2003-10-27 Ulrich Drepper <drepper@redhat.com>
1183 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
1186 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
1189 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
1190 rest of line. We use getline which means this cannot happen.
1192 2003-10-26 Ulrich Drepper <drepper@redhat.com>
1194 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
1195 Avoid infinite loops in case the mounts file is hosed.
1196 * io/Makefile: Add rules to build and run tst-statvfs.
1197 * io/tst-statvfs.c: New file.
1199 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
1200 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
1201 executables unless __RTLD_OPENEXEC flag is present.
1202 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
1203 _dl_map_object when loading the executable.
1205 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
1207 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
1209 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
1210 reverse lookup format for IPv6 addresses is using bitstring and
1212 * resolv/ns_name.c: Implement encoding and decoding bitstring in
1215 2003-10-23 Jakub Jelinek <jakub@redhat.com>
1217 * locale/programs/locale.c (show_info): Fix printing word values on
1218 64-bit big-endian architectures.
1220 2003-10-19 Bruno Haible <bruno@clisp.org>
1222 * intl/hash-string.c (hash_string): Zero-extend each char from the
1223 string; the old code did a sign-extend on some platforms.
1225 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
1227 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
1228 append options to these.
1229 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
1231 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1233 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
1235 2003-10-15 Roland McGrath <roland@redhat.com>
1237 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
1238 Fake an entry for the main executable and then call __dl_iterate_phdr.
1239 * elf/Makefile (routines): Remove dl-iteratephdr-static.
1240 (elide-routines.os): Likewise.
1241 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
1242 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
1243 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
1245 2003-10-15 Jakub Jelinek <jakub@redhat.com>
1247 * elf/rtld.c (print_statistics): Print also number of relative
1250 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
1252 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
1253 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
1254 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
1255 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
1256 and undef JUMPTARGET before use.
1257 [PIC]: Save pic register around syscall.
1258 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
1259 Cleanup asm statment.
1261 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1263 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
1264 after trapa instruction.
1266 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1268 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
1270 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
1272 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
1274 2003-10-09 Roland McGrath <roland@redhat.com>
1276 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
1279 2003-10-08 Jakub Jelinek <jakub@redhat.com>
1281 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
1282 two identical copies of strings.
1284 2003-10-06 Ulrich Drepper <drepper@redhat.com>
1286 * posix/bug-regex11.c: Add some more tests which fail so far.
1287 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
1289 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
1291 * posix/bug-regex11.c: Add more backreference-related test cases.
1292 (main): Show the failing regex in the error messages.
1293 * posix/regexec.c (check_dst_limits_calc_pos):
1294 Simplify some nested conditionals. Replace if's with a switch
1296 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
1297 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
1298 does not change in the recursive invocation, fixing an infinite loop
1299 in the ()\1*\1* regex.
1300 (sift_states_backward): Fix function comment.
1301 * posix/regcomp.c (calc_epsdest): Add an assertion.
1303 2003-10-06 Ulrich Drepper <drepper@redhat.com>
1305 * manual/examples/testopt.c: Fix warnings. Better error message
1306 for missing -c argument.
1307 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
1309 * timezone/asia: Update from tzdata2003d.
1310 * timezone/australasia: Likewise.
1311 * timezone/backward: Likewise.
1312 * timezone/europe: Likewise.
1313 * timezone/iso3166.tab: Likewise.
1314 * timezone/northamerica: Likewise.
1315 * timezone/southamerica: Likewise.
1316 * timezone/zone.tab: Likewise.
1318 2003-10-05 Jakub Jelinek <jakub@redhat.com>
1320 * sysdeps/ia64/backtrace.c: New file.
1321 * sysdeps/x86_64/backtrace.c: New file.
1322 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
1323 (_Unwind_Backtrace): New prototype.
1325 2003-10-03 Ulrich Drepper <drepper@redhat.com>
1327 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
1328 * sysdeps/i386/elf/setjmp.S: Likewise.
1330 2003-10-02 Roland McGrath <roland@redhat.com>
1332 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
1333 * argp/argp-namefrob.h
1334 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
1335 (__argp_short_program_name): Don't declare fn, define it as a macro.
1337 2003-08-22 Simon Josefsson <jas@extundo.com>
1339 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
1341 * argp/argp-help.c: Don't include malloc.h, some platforms
1342 complain and it doesn't appear to be used.
1343 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
1345 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
1347 (hol_entry_long_iterate): Change __attribute to __attribute__.
1348 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
1349 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
1350 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
1351 modified after comments from Ulrich Drepper.
1352 (__argp_short_program_name): Ditto.
1353 (__argp_state_help, __argp_error, __argp_failure): Use it.
1354 (__argp_failure): Use strerror when necessary.
1356 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
1357 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
1358 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
1359 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
1360 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
1361 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
1362 non-unlocked functions.
1363 [!_LIBC]: Add prototypes for __argp_basename and
1364 __argp_short_program_name.
1366 * argp/argp-parse.c (argp_default_parser): Only use
1367 program_invocation{_short,}_name if declared.
1368 (parser_init): Use __argp_short_program_name.
1370 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
1371 '#include features.h'.
1373 * argp/argp.h [!__attribute__]: Define to nothing.
1375 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
1377 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
1378 for the first token in a subexpression as well.
1380 2003-10-02 Jakub Jelinek <jakub@redhat.com>
1382 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
1384 (parse_reg_exp): Likewise.
1385 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
1387 * posix/bug-regex11.c (tests): Add new tests.
1388 * posix/bug-regex12.c (tests): Add new test.
1390 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
1392 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
1393 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
1395 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
1397 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
1398 the old thread-m.h header too.
1400 2003-10-02 Ulrich Drepper <drepper@redhat.com>
1402 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
1403 back to 131027 since this is what the kernel enforces.
1405 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
1406 define it with libc_freeres_ptr.
1408 2003-10-01 Roland McGrath <roland@redhat.com>
1410 * elf/rtld.c (dl_main): Add cast in last change.
1412 2003-09-10 Chris Demetriou <cgd@broadcom.com>
1414 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
1415 "#if 0" surrounding most of contents.
1416 (SYSCALL_ERROR_LABEL): Define.
1417 (__SYSCALL_CLOBBERS): Add $10.
1418 (internal_syscall7): Remove.
1419 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1421 2003-09-30 Ulrich Drepper <drepper@redhat.com>
1423 * elf/rtld.c (dl_main): Also set l_map_start.
1425 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
1427 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
1428 to work around kernel problem.
1430 2003-09-27 Wolfram Gloger <wg@malloc.de>
1432 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
1433 "thread-m.h", so that default parameters can be overridden in a
1434 system-specific malloc-machine.h. Remove extra ; from extern "C"
1436 * sysdeps/generic/malloc-machine.h: New file.
1437 * sysdeps/mach/hurd/malloc-machine.h: New file.
1438 * malloc/thread-m.h: Removed.
1439 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
1440 is in sysdeps/generic/malloc-machine.h now.
1442 2003-09-29 Ulrich Drepper <drepper@redhat.com>
1444 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
1445 variables only used if TLS_TCB_AT_TP is defined into the #if
1448 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
1449 well to cover using long long in C90.
1451 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
1453 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
1454 Redefine and use __libc_cleanup_region_end instead.
1456 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
1458 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
1459 fix prototypes for picky C++ compilers.
1461 2003-09-27 Ulrich Drepper <drepper@redhat.com>
1463 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
1464 the device ID is invalid and return -1.
1465 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
1467 2003-09-26 Andreas Schwab <schwab@suse.de>
1469 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
1470 rt_sigprocmask system call.
1472 2003-09-25 Roland McGrath <roland@redhat.com>
1474 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
1475 Don't check for zero __libc_stack_end, it should be initialized.
1476 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
1477 and fall back if it fails with EINVAL.
1478 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
1480 2003-09-25 Jakub Jelinek <jakub@redhat.com>
1482 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
1483 sysdeps/i386/dl-procinfo.c instead of
1484 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
1485 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
1488 2003-09-25 Ulrich Drepper <drepper@redhat.com>
1490 * posix/regcomp.c (peek_token): Remove recent changes for anchor
1492 (parse_reg_exp): Likewise.
1493 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
1495 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
1498 * nis/nis_table.c (nis_list): Always strdup string used with
1499 ibreq->ibr_name. Add several NULL pointer checks.
1501 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
1503 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1504 * nis/nss_nisplus/nisplus-grp.c: Likewise.
1505 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1506 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
1507 * nis/nss_nisplus/nisplus-network.c: Likewise.
1508 * nis/nss_nisplus/nisplus-proto.c: Likewise.
1509 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1510 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1511 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1512 * nis/nss_nisplus/nisplus-service.c: Likewise.
1513 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1515 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
1517 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1518 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
1519 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1520 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1521 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1522 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1523 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1524 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1525 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1526 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1527 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1529 2003-09-25 Jakub Jelinek <jakub@redhat.com>
1531 * misc/syslog.c: Include locale.h.
1532 (vsyslog): Add date always in C locale %h %e %T format.
1534 2003-09-24 Paul Eggert <eggert@twinsun.com>
1536 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
1537 size_t overflow when reallocating storage.
1538 * argp/argp-help.c (make_hol, hol_append): Likewise.
1539 (SIZE_MAX): New macro.
1541 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
1543 * sysdeps/mach/hurd/bits/libc-lock.h
1544 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
1546 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
1548 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
1549 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
1550 #include_next dl-procinfo.h to get them.
1551 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
1552 (_DL_PLATFORMS_COUNT): Likewise.
1553 (_DL_FIRST_PLATFORM): Likewise.
1554 (_DL_HWCAP_PLATFORM): Likewise.
1555 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
1556 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
1557 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
1558 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
1559 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
1560 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
1561 HWCAP_IMPORTANT): Likewise.
1562 (_DL_PROCINFO_H_): Likewise.
1563 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
1564 (_dl_string_platform): Likewise.
1565 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
1566 * sysdeps/i386/dl-procinfo.c: ... here, new file.
1568 2003-09-24 Ulrich Drepper <drepper@redhat.com>
1570 * sysdeps/unix/sysv/linux/dl-execstack.c
1571 (_dl_make_stack_executable): Remember that we changed the permission.
1573 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
1574 __libc_stack_end. Patch by David Mosberger.
1576 2003-09-24 Jakub Jelinek <jakub@redhat.com>
1578 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
1579 __libc_stack_end@GLIBC_PRIVATE.
1581 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
1582 (_dl_sysdep_start): Set __libc_stack_end here.
1583 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
1585 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
1586 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
1587 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
1588 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1589 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
1590 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
1591 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
1592 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
1593 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
1594 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
1595 (RTLD_START): Remove setting of __libc_stack_end.
1596 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
1597 (RTLD_START): Remove setting of __libc_stack_end.
1599 2003-09-24 Ulrich Drepper <drepper@redhat.com>
1601 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
1602 function definitions. Adjust macro expansions accordingly.
1603 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
1604 minor, makedev name.
1605 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
1607 2003-09-24 Jakub Jelinek <jakub@redhat.com>
1609 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
1612 2003-09-24 Jakub Jelinek <jakub@redhat.com>
1614 * nscd/Makefile (others): Add nscd before including ../Rules.
1616 2003-09-24 Ulrich Drepper <drepper@redhat.com>
1618 * nscd/Makefile: Add rules to build nscd as a PIE.
1619 * configure.in: Check for -fpie and -pie compiler options.
1620 * config.make.in (have-fpie): Define.
1622 2003-09-23 Ulrich Drepper <drepper@redhat.com>
1624 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
1626 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
1627 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
1628 * sysdeps/unix/sysv/linux/makedev.c: New file.
1629 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
1630 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
1631 (sysdep_routines): Add makedev.
1632 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
1633 major, minor, makedev.
1634 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
1636 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
1637 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
1638 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
1639 Code by Alexander Viro <aviro@redhat.com>.
1641 2003-09-23 Ulrich Drepper <drepper@redhat.com>
1643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
1644 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
1646 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
1647 for include Altivec support for PPC32. It was not compatible.
1648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
1649 offsets for ucontext_t change.
1650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
1651 for ucontext_t change. Add compatibility code.
1652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
1653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1655 Patch by Paul Mackerras <paulus@samba.org>.
1657 2003-02-25 Randolph Chung <tausq@debian.org>
1659 * sysdeps/hppa/Makefile: Include compat code in build.
1660 * sysdeps/hppa/libgcc-compat.c: New file.
1661 * sysdeps/hppa/Dist: Add libgcc-compat.c.
1662 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
1664 2003-09-23 Roland McGrath <roland@redhat.com>
1666 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
1667 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
1668 Move GL(dl_make_stack_executable_hook) initialization up.
1669 * elf/tst-execstack-prog.c: New file.
1670 * elf/Makefile (tests-execstack-yes): Add it.
1671 (LDFLAGS-tst-execstack-prog): New variable.
1673 2003-09-23 Jakub Jelinek <jakub@redhat.com>
1675 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
1676 before calling _dl_start, using %rip relative access.
1677 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
1680 2003-09-23 Roland McGrath <roland@redhat.com>
1682 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
1683 calling _dl_start, using GOTOFF access.
1685 * configure.in (libc_cv_z_execstack): New check.
1686 * configure: Regenerated.
1687 * config.make.in (have-z-execstack): New variable set by it.
1688 * elf/tst-execstack.c: New file.
1689 * elf/tst-execstack-mod.c: New file.
1690 * elf/tst-execstack-needed.c: New file.
1691 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
1693 (tests, modules-names): Conditionally include them.
1694 (distribute): Add tst-execstack-mod.c here.
1695 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
1696 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
1697 ($(objpfx)tst-execstack-needed): New target.
1698 (LDFLAGS-tst-execstack-needed): New variable.
1700 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
1701 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
1702 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
1703 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
1704 Initialize _dl_make_stack_executable_hook.
1705 * elf/dl-support.c: Define those new variables.
1706 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
1707 (_dl_phdr): Fix type.
1708 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
1709 enable execute permission for the stack if necessary.
1710 * sysdeps/generic/dl-execstack.c: New file.
1711 * elf/Makefile (dl-routines): Add it.
1712 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
1713 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
1715 2003-09-23 Ulrich Drepper <drepper@redhat.com>
1717 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
1719 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
1721 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
1722 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
1725 2003-09-22 Ulrich Drepper <drepper@redhat.com>
1727 * malloc/malloc.c: Include <stdint.h>.
1729 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
1731 * posix/regcomp.c (build_word_op): Rename like...
1732 (build_charclass_op): ...this. Accept two extra parameters,
1733 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
1734 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
1735 (parse_expression): Replace build_word_op with
1736 build_charclass_op, add new arguments, accept OP_SPACE
1738 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
1741 * posix/regcomp.c (peek_token): Don't look back for ( or |
1742 to check whether to treat a caret as special. It fails
1743 for the (extended) regex \(^.
1744 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
1745 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
1747 * posix/regexec.c: Check out of bounds value before shifting.
1749 * posix/regex_internal.h: Define __attribute for non-gcc.
1751 2003-09-22 Jakub Jelinek <jakub@redhat.com>
1753 * include/atomic.h (atomic_compare_and_exchange_val_rel,
1754 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
1757 * sysdeps/unix/opendir.c: Include string.h.
1759 2003-09-22 Ulrich Drepper <drepper@redhat.com>
1761 * timezone/zdump.c: Update from tzcode2003c.
1762 * timezone/zic.c: Likewise.
1763 * timezone/leapseconds: Update from tzdata2003c.
1765 2003-09-19 Ulrich Drepper <drepper@redhat.com>
1767 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
1768 final build to ease quality control.
1770 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
1771 ld.so, don't include NULL buffer pointer handling.
1773 2003-09-19 Jakub Jelinek <jakub@redhat.com>
1775 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
1777 2003-09-18 Jakub Jelinek <jakub@redhat.com>
1779 * libio/memstream.c (open_memstream): Use _IO_init instead of
1782 2003-09-17 Ulrich Drepper <drepper@redhat.com>
1784 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
1785 have to recognize octal and hexadecimal numbers as well. Simplify
1786 function, signs are handled in strtol.
1787 * posix/wordexp-test.c: Add tests for octal and hexadecimal
1788 numbers in arithmetic expressions.
1790 2003-09-17 Jakub Jelinek <jakub@redhat.com>
1792 * elf/Makefile (distribute): Add tst-alignmod.c.
1793 (tests): Add tst-align.
1794 (modules-names): Add tst-alignmod.
1795 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
1796 $(stack-align-test-flags).
1797 ($(objpfx)tst-align): Depend on libdl.
1798 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
1799 * elf/tst-align.c: New file.
1800 * elf/tst-alignmod.c: New file.
1801 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
1802 * misc/tst-tsearch.c: Include tst-stack-align.h.
1803 (stack_align_check): New array.
1804 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
1805 (main): Report error if stack was not enough aligned
1806 in cmp_fn or walk_action.
1807 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
1808 * stdlib/tst-qsort.c: Include tst-stack-align.h.
1809 (align_check): New var.
1810 (compare): Use TEST_STACK_ALIGN () macro.
1811 (main): Report error if stack was not enough aligned in compare.
1812 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
1813 unneeded -mpreferred-stack-boundary=4.
1814 * sysdeps/x86_64/tst-stack-align.h: New file.
1816 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
1817 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
1819 2003-09-17 Philip Blundell <philb@gnu.org>
1821 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
1823 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
1825 * sysdeps/arm/sysdep.h (DO_RET): New.
1827 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
1828 required but not defined. Improve test of error code.
1830 2003-09-17 Jakub Jelinek <jakub@redhat.com>
1832 * sysdeps/i386/Makefile (stack-align-test-flags): Add
1833 -malign-double -mpreferred-stack-boundary=4.
1835 2003-09-17 Ulrich Drepper <drepper@redhat.com>
1837 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
1838 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
1840 2003-09-15 Jakub Jelinek <jakub@redhat.com>
1842 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
1843 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
1845 2003-09-17 Jakub Jelinek <jakub@redhat.com>
1847 * Makeconfig (stack-align-test-flags): Set.
1848 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
1849 $(stack-align-test-flags).
1850 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
1851 (align_check): New var.
1852 (comp): Use TEST_STACK_ALIGN macro.
1853 (do_test): Fail if align_check != 1.
1854 * sysdeps/generic/tst-stack-align.h: New file.
1855 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
1856 * sysdeps/i386/i686/tst-stack-align.h: New file.
1858 2003-09-17 Ulrich Drepper <drepper@redhat.com>
1860 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
1861 stack which is aligned (mod 16).
1863 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
1864 Hans-Peter Nilsson <hp@axis.com>
1866 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
1867 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
1869 2003-09-17 Jakub Jelinek <jakub@redhat.com>
1871 * dirent/scandir.c: Include bits/libc-lock.h.
1872 (struct scandir_cancel_struct): New type.
1873 (cancel_handler): New function.
1874 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
1875 scandir_cancel_struct.
1877 2003-09-16 Ulrich Drepper <drepper@redhat.com>
1879 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
1880 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1881 Add internal_statvfs.
1882 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
1883 instead of including "internal_statvfs.c".
1884 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1885 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
1886 Add code to avoid the stat calls on all the reported mount points
1887 when we can determine mismatch in advance.
1888 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
1889 USBDEVFS_SUPER_MAGIC.
1891 2003-09-16 Jakub Jelinek <jakub@redhat.com>
1893 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
1894 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
1896 2003-09-16 Bruno Haible <bruno@clisp.org>
1898 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
1899 invoking msgfmt, not before.
1901 2003-09-15 Jakub Jelinek <jakub@redhat.com>
1903 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
1904 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
1906 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
1907 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
1908 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
1909 * elf/dl-iteratephdr.c (cancel_handler): New function.
1910 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
1911 * elf/link.h (dl_iterate_phdr): Remove __THROW.
1912 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
1913 Add $(uses-callbacks).
1914 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
1915 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
1916 $(exceptions) to $(uses-callbacks).
1917 * Makeconfig (uses-callbacks): Set to $(exceptions).
1918 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
1920 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
1923 2003-09-15 Andreas Schwab <schwab@suse.de>
1925 * sysdeps/m68k/setjmp.c: Add hidden_def.
1927 2003-09-14 Ulrich Drepper <drepper@redhat.com>
1929 * libio/memstream.c (open_memstream): Don't allow wide char operations.
1931 * dirent/dirent.h: Remove __THROW from scandir.
1933 2003-09-14 Philip Blundell <philb@gnu.org>
1935 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
1938 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
1940 * sysdeps/arm/memset.S: Rewrite.
1942 2003-09-12 Jakub Jelinek <jakub@redhat.com>
1944 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
1945 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
1946 __SLONGWORD_TYPE otherwise.
1948 2003-09-14 Ulrich Drepper <drepper@redhat.com>
1950 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
1951 (CFLAGS-ftw64.c): Likewise.
1953 2003-09-13 Ulrich Drepper <drepper@redhat.com>
1955 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
1956 (CFLAGS-nscd_getgr_r.c): Likewise.
1957 (CFLAGS-nscd_gethst_r.c): Likewise.
1959 2003-09-12 Ulrich Drepper <drepper@redhat.com>
1961 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
1964 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
1965 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
1966 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
1967 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
1968 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
1969 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
1971 * misc/Makefile (CFLAGS-err.c): Likewise.
1972 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
1973 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
1974 CFLAGS-glob64.c): Likewise.
1975 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
1976 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
1977 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
1978 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
1979 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
1981 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
1983 * libio/stdio.h: Remove __THROW from cuserid prototype.
1985 * locale/loadarchive.c: Use only non-cancelable interfaces.
1986 * resolv/herror.c (herror): Likewise.
1988 * malloc/hooks.c: Before using IO stream mark stream so it uses
1989 only non-cancelable interfaces.
1990 * malloc/malloc.c: Likewise.
1991 * posix/getopt.c: Likewise.
1994 2003-09-11 Jakub Jelinek <jakub@redhat.com>
1996 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
1998 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2000 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
2002 * misc/err.h: Remove __THROW from all prototypes.
2004 * posix/getopt.h (__THROW): Define if not already defined. Add
2005 __THROW to the getopt functions.
2007 2003-09-11 Ulrich Drepper <drepper@redhat.com>
2009 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
2010 (CFLAGS-fts.c): Likewise.
2011 * io/fcntl.h: Remove __THROW from lockf prototypes.
2012 * io/fts.h: Remove most __THROW.
2014 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
2016 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
2020 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2022 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
2023 _IO_free_backup_area call.
2025 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2027 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
2029 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
2030 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
2031 Also, only assert off_t size is 4 for N32 and O32, and clean up
2033 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
2035 2003-09-10 Roland McGrath <roland@redhat.com>
2037 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
2038 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
2039 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
2040 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2041 Reported by Daniel Jacobowitz <drow@mvista.com>.
2043 2003-09-10 Jakub Jelinek <jakub@redhat.com>
2045 * string/Makefile (strop-tests): Add memccpy.
2046 * string/test-memccpy.c: New test.
2048 2003-09-09 Jakub Jelinek <jakub@redhat.com>
2050 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
2051 siginfo_t * argument before, change into struct ucontext *.
2052 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
2053 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
2054 instead of structure.
2055 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
2058 2003-09-09 Ulrich Drepper <drepper@redhat.com>
2060 * string/stratcliff.c (main): Check memccpy.
2062 2003-04-11 Jes Sorensen <jes@wildopensource.com>
2064 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
2065 character is found during recovery, use correct register when
2066 determining the position of the found character.
2068 2003-04-01 Jes Sorensen <jes@wildopensource.com>
2070 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
2071 avoid segfaults when reading from unmapped pages. For aligned
2072 reload and continue, for misaligned, roll back and use byte copy.
2073 Save ar.ec on entry and restore on exit.
2075 2003-09-09 Chris Demetriou <cgd@broadcom.com>
2077 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
2079 2003-09-08 Chris Demetriou <cgd@broadcom.com>
2081 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
2082 the top of the list.
2083 * sysdeps/mips/mips64/n64/Implies: Likewise.
2085 2003-09-08 Roland McGrath <roland@frob.com>
2087 * sysdeps/unix/sysv/linux/speed.c
2088 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
2089 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
2090 * sysdeps/unix/sysv/linux/bits/termios.h
2091 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
2092 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2093 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2095 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2097 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
2098 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
2100 2003-09-08 Jakub Jelinek <jakub@redhat.com>
2102 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
2103 (__u_quad_t): Make unsigned long int if 64-bit.
2104 (__SQUAD_TYPE): Make long int if 64-bit.
2105 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
2106 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
2108 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2110 * Makefile (tests): Run check-c++-types.sh if possible.
2111 * scripts/check-c++-types.h: New file.
2112 * scripts/data/c++-types-i386-linux-gnu.data: New file.
2114 2003-09-08 Andreas Jaeger <aj@suse.de>
2116 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2117 Use struct sigcontext.
2119 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
2120 Use struct sigcontext.
2122 (GET_FRAME): Likewise.
2123 (GET_STACK): Likewise.
2125 2003-09-08 Wolfram Gloger <wg@malloc.de>
2127 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
2128 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
2129 (mALLOPt): Avoid requirement of C99.
2131 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2133 * libio/bug-ftell.c: Include <sys/types.h>.
2134 (main): Mark cp as const.
2136 2003-09-07 Jakub Jelinek <jakub@redhat.com>
2138 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
2139 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
2141 2003-09-05 Roland McGrath <roland@redhat.com>
2143 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
2144 and c_ospeed fields.
2145 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
2146 (cfsetispeed): Set c_ispeed field.
2147 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
2148 to match corresponding speed.c code.
2150 2003-09-06 Ulrich Drepper <drepper@redhat.com>
2152 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
2153 narrow character buffer.
2154 * libio/Makefile: Add rules to build and run bug-ftell.
2155 * libio/bug-ftell.c: New file.
2157 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
2159 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
2160 matching the decimal point and possibly leading the thousands
2161 separator. This caused the recognition of thousands separators to
2164 2003-09-05 Ulrich Drepper <drepper@redhat.com>
2166 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
2167 write mode from read in backup buffer.
2168 * libio/Makefile (tests): Add bug-ungetc2.
2169 * libio/bug-ungetc2.c: New file.
2171 2003-09-05 Roland McGrath <roland@redhat.com>
2173 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
2175 2003-09-04 Roland McGrath <roland@frob.com>
2177 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
2178 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
2180 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
2182 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
2185 2003-09-05 Andreas Jaeger <aj@suse.de>
2187 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
2188 to make it conforming C.
2189 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
2191 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
2192 prototype to use variable argument lists and get the possible one
2193 argument via va_arg.
2194 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
2195 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
2197 2003-09-04 Ulrich Drepper <drepper@redhat.com>
2199 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
2201 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2202 Report correct value for vxfs.
2203 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
2205 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
2208 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
2209 over the place. It would be allowed to have these functions as
2210 cancellation points but the cleanup would be ugly and a lot of
2213 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
2214 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
2216 * include/fcntl.h (__fcntl_nocancel): Declare.
2217 * sysdeps/unix/sysv/linux/fcntl.c: New file.
2218 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
2219 cancellation if absolutely needed.
2220 (__fcntl_nocancel): Define.
2222 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
2223 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
2225 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
2228 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
2231 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
2232 unnecessary errno handling.
2234 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
2235 Initialize it in all cases. Change it to be a bit more like the
2238 2003-09-04 Jakub Jelinek <jakub@redhat.com>
2240 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
2242 (_IO_file_open): Likewise. Use close_not_cancel.
2244 2003-09-04 Ulrich Drepper <drepper@redhat.com>
2246 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
2247 * libio/fileops.c [_LIBC]: Remove close macro.
2248 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
2249 (_IO_new_file_open): Recognize 'c' flag in mode string.
2250 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
2251 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
2253 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
2254 * inet/rcmd.c: Likewise.
2255 * inet/ruserpass.c: Likewise.
2256 * intl/localealias.c: Likewise.
2257 * malloc/mtrace.c: Likewise.
2258 * misc/getpass.c: Likewise.
2259 * misc/getttyent.c: Likewise.
2260 * misc/mntent_r.c: Likewise.
2261 * misc/getusershell.c: Likewise.
2262 * nss/nsswitch.c: Likewise.
2263 * resolv/res_hconf.c: Likewise.
2264 * resolv/res_init.c: Likewise.
2265 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2266 * time/getdate.c: Likewise.
2267 * time/tzfile.c: Likewise.
2268 * misc/fstab.h: Undo last change.
2269 * misc/mntent.h: Likewise.
2270 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
2271 CFLAGS-fstab.c definition.
2273 2003-09-04 Jakub Jelinek <jakub@redhat.com>
2275 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
2277 2003-09-03 Ulrich Drepper <drepper@redhat.com>
2279 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
2280 returning ERANGE if this wasn't intended.
2282 2003-09-03 Jakub Jelinek <jakub@redhat.com>
2284 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
2285 function-like macros.
2287 2003-09-03 Ulrich Drepper <drepper@redhat.com>
2289 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
2290 (CFLAGS-getgrent.c): Likewise.
2291 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
2292 (CFLAGS-getpwent.c): Likewise.
2293 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
2294 (CFLAGS-getspent.c): Likewise.
2296 * inet/Makefile: Add -fexceptions to CFLAGS for the various
2297 getXXent and getXXbyYY functions.
2299 * locale/loadlocale.c: Use not-cancelable variants of open, close,
2302 2003-09-02 Jakub Jelinek <jakub@redhat.com>
2304 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2305 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
2307 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
2309 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
2310 unused __syscall_ stubs.
2311 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
2313 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
2314 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
2315 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
2316 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
2317 unused __syscall_ stubs.
2318 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
2319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
2320 (__syscall_*): Remove unused __syscall_ stubs.
2321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
2322 (__syscall_*): Likewise.
2323 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
2325 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
2326 Remove unused __syscall_ stubs.
2327 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
2328 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
2329 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
2330 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
2331 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
2332 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
2333 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
2334 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
2335 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
2336 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
2337 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
2338 __syscall_* prototypes.
2339 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
2340 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
2341 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
2342 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
2343 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2344 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2345 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
2346 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2347 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2348 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
2349 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
2350 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2351 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
2352 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2353 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2354 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2355 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2356 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2357 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2358 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
2359 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2360 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
2361 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2362 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2363 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2364 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2365 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2366 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2367 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
2368 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2369 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2370 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2371 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2372 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2373 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2374 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2375 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2376 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
2377 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2378 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
2379 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
2380 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2381 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2382 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2383 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2384 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2385 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2386 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2387 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2388 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2389 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
2390 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2391 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2392 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2393 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2394 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
2395 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
2396 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2397 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2398 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
2399 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
2400 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
2401 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
2402 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2403 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2404 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2405 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2406 * sysdeps/unix/sysv/linux/execve.c: Likewise.
2407 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2408 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
2409 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
2410 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
2411 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2412 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2413 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
2414 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
2415 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2416 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2417 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2418 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2419 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
2420 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2421 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
2422 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
2423 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2424 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2425 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
2426 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2427 * sysdeps/unix/sysv/linux/poll.c: Likewise.
2428 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2429 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2430 * sysdeps/unix/sysv/linux/pread.c: Likewise.
2431 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2432 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2433 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2434 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2435 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2436 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2437 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2438 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2439 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2440 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2442 2003-09-02 Jakub Jelinek <jakub@redhat.com>
2444 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
2445 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
2446 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
2448 2003-09-02 Ulrich Drepper <drepper@redhat.com>
2450 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
2452 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
2453 open, close, and read.
2455 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
2458 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
2460 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
2461 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
2462 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
2464 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
2466 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
2467 (CFLAGS-fstatfs.c): Likewise.
2468 (CFLAGS-statvfs.c): Likewise.
2469 (CFLAGS-fstatvfs.c): Likewise.
2471 2003-09-01 Ulrich Drepper <drepper@redhat.com>
2473 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
2474 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
2476 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
2477 (CFLAGS-pathconf.c): Likewise.
2478 (CFLAGS-fpathconf.c): Likewise.
2480 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
2481 * misc/fstab.h: Remove all __THROW.
2482 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
2483 (CFLAGS-mntent_r.c): Likewise.
2484 * misc/mntent.h: Remove most __THROW.
2486 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
2487 (CFLAGS-mkstemp64.c): Likewise.
2489 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
2490 around call to exec_comm.
2491 * posix/wordexp.h: Remove __THROW from wordexp.
2492 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
2494 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
2495 not-cancelable functions.
2497 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
2498 (CFLAGS-iofopen.c): Likewise.
2499 (CFLAGS-iofopen64.c): Likewise.
2501 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
2503 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
2504 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
2506 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
2507 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
2509 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
2511 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
2512 NSS_STATUS_SUCCESS if entry was found.
2513 (getspent_next_file): Store user in blacklist after entry
2514 was found, use innetgr.
2516 2003-09-01 Jakub Jelinek <jakub@redhat.com>
2518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
2519 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
2521 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
2522 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
2523 DTV_AT_TP, optimize.
2525 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2527 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
2528 posix_fallocate64 at GLIBC_2.3.3.
2529 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
2530 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
2532 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2534 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
2537 2003-08-31 Ulrich Drepper <drepper@redhat.com>
2539 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
2540 Code by Richard Henderson.
2542 2003-08-31 Philip Blundell <philb@gnu.org>
2544 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
2545 posix_fallocate64 at GLIBC_2.3.3.
2547 2003-08-31 Ulrich Drepper <drepper@redhat.com>
2549 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
2550 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
2552 2003-08-30 Jakub Jelinek <jakub@redhat.com>
2554 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
2555 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
2556 included multiple times.
2557 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
2558 ptid, tls, ctid arguments to the kernel.
2559 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2560 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
2561 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2562 (__libc_sigaction): Use INLINE_SYSCALL instead of
2563 __syscall_rt_sigaction.
2564 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
2565 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
2566 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
2567 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
2568 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
2569 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
2570 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
2571 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
2572 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
2573 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
2574 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
2575 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2576 (__CLONE_SYSCALL_STRING): Define.
2577 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
2579 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2580 (__CLONE_SYSCALL_STRING): Define.
2581 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
2583 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
2585 2003-08-30 Ulrich Drepper <drepper@redhat.com>
2587 * sunrpc/rpc/clnt.h: Remove a few __THROW.
2588 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
2589 (CFLAGS-key_call.c): Likewise.
2590 (CFLAGS-pmap_rmt.c): Likewise.
2591 (CFLAGS-clnt_perr.c): Likewise.
2592 * sunrpc/rpc/auth.h: Remove serveral __THROW.
2594 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
2595 (CFLAGS-gethstbynm_r.c): Likewise.
2596 (CFLAGS-gethstbynm2_r.c): Likewise.
2597 (CFLAGS-rcmd.c): Likewise.
2598 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
2600 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
2601 (CFLAGS-argp-fmtstream.c): Likewise.
2602 * argp/argp.h: Remove a number of __THROW.
2604 * misc/sys/syslog.h (vsyslog): Remove __THROW.
2606 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
2607 * misc/getpass.c (getpass): Add cleanup handler to ensure the
2608 stream is closed even if the thread is canceled.
2609 (call_fclose): New function.
2610 * posix/unistd.h: Remove __THROW from getpass prototype.
2612 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
2614 * signal/signal.h (psignal): Remove __THROW.
2615 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
2617 * misc/Makefile (CFLAGS-error.c): Define.
2618 * misc/error.c (error): Disable cancellation handling around the
2619 actual output. The message should in any case be printed.
2620 (error_at_line): Likewise.
2622 * misc/error.h: Protect parameter names with leading __.
2624 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
2626 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
2628 2003-08-29 Jakub Jelinek <jakub@redhat.com>
2630 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
2633 2003-08-29 Ulrich Drepper <drepper@redhat.com>
2635 * libio/stdio.h: Remove a few more __THROW.
2637 2003-08-29 Jakub Jelinek <jakub@redhat.com>
2639 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
2640 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
2641 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
2642 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
2643 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
2644 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
2645 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
2646 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
2647 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
2648 putwchar.c and rewind.c with exceptions.
2649 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
2650 _IO_release_lock): Define.
2651 * libio/fileops.c (_IO_new_file_underflow): Use it.
2652 * libio/fputc.c (fputc): Likewise.
2653 * libio/fputwc.c (fputwc): Likewise.
2654 * libio/freopen64.c (freopen64):
2655 * libio/freopen.c (freopen): Likewise.
2656 * libio/fseek.c (fseek): Likewise.
2657 * libio/fseeko64.c (fseeko64): Likewise.
2658 * libio/fseeko.c (fseeko): Likewise.
2659 * libio/ftello64.c (ftello64): Likewise.
2660 * libio/ftello.c (ftello): Likewise.
2661 * libio/fwide.c (fwide): Likewise.
2662 * libio/getc.c (_IO_getc): Likewise.
2663 * libio/getchar.c (getchar): Likewise.
2664 * libio/getwc.c (_IO_getwc): Likewise.
2665 * libio/getwchar.c (getwchar): Likewise.
2666 * libio/iofclose.c (_IO_new_fclose):
2667 * libio/iofflush.c (_IO_fflush): Likewise.
2668 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
2669 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2670 * libio/iofgets.c (_IO_fgets): Likewise.
2671 * libio/iofgetws.c (fgetws): Likewise.
2672 * libio/iofputs.c (_IO_fputs): Likewise.
2673 * libio/iofputws.c (fputws): Likewise.
2674 * libio/iofread.c (_IO_fread): Likewise.
2675 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
2676 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
2677 * libio/ioftell.c (_IO_ftell): Likewise.
2678 * libio/iofwrite.c (_IO_fwrite): Likewise.
2679 * libio/iogetdelim.c (_IO_getdelim): Likewise.
2680 * libio/iogets.c (_IO_gets): Likewise.
2681 * libio/ioputs.c (_IO_puts): Likewise.
2682 * libio/ioseekoff.c (_IO_seekoff): Likewise.
2683 * libio/ioseekpos.c (_IO_seekpos): Likewise.
2684 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
2685 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
2686 * libio/ioungetc.c (_IO_ungetc): Likewise.
2687 * libio/ioungetwc.c (ungetwc): Likewise.
2688 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2689 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
2690 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
2691 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
2692 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
2693 * libio/peekc.c (_IO_peekc_locked): Likewise.
2694 * libio/putc.c (_IO_putc): Likewise.
2695 * libio/putchar.c (putchar): Likewise.
2696 * libio/putwc.c (putwc): Likewise.
2697 * libio/putwchar.c (putwchar): Likewise.
2698 * libio/rewind.c (rewind): Likewise.
2699 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
2701 2003-08-29 Ulrich Drepper <drepper@redhat.com>
2703 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
2704 available in XPG4.2.
2706 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
2707 Jakub Jelinek <jakub@redhat.com>
2709 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
2710 big endian arches. Don't read beyond end of fds_bits array.
2712 2003-04-27 Bruno Haible <bruno@clisp.org>
2714 * manual/message.texi (Advanced gettext functions): Add information
2715 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
2716 Add section about Lithuanian, reported by Ricardas Cepas
2717 <rch@richard.eu.org>.
2718 Add information about Croatian.
2719 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
2720 Remove remark about continuation lines that is not true for PO files.
2721 Fix formula for Slovenian, reported by Roman Maurer
2722 <roman.maurer@amis.net>.
2724 2003-08-27 Ulrich Drepper <drepper@redhat.com>
2726 * math/math_private.h: Declare __copysignf.
2727 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
2730 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
2731 __signbit, and __signbitl inline functions.
2733 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
2734 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
2736 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
2737 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
2739 2003-08-27 Jakub Jelinek <jakub@redhat.com>
2741 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
2743 2003-08-27 Ulrich Drepper <drepper@redhat.com>
2745 * include/stdio.h: Add declarations for __builtin_fwrite and
2746 __builtin_fwrite_unlocked.
2748 2003-08-27 Jakub Jelinek <jakub@redhat.com>
2750 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
2751 fits into allocation. Add padding on 32-bit arches so that
2752 dirp->data is enough aligned for struct dirent64.
2753 Avoid clearing of the buffer, just clear DIR structure.
2755 2003-08-26 Ulrich Drepper <drepper@redhat.com>
2757 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
2758 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
2760 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
2762 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
2764 2003-08-26 Jakub Jelinek <jakub@redhat.com>
2766 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
2767 to match format string.
2768 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
2770 (__new_semctl): Shut up warning.
2771 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
2772 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
2774 2003-08-26 Jakub Jelinek <jakub@redhat.com>
2776 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
2777 link file use the real file name, not the resolved name we got by
2778 following the symlinks.
2780 2003-08-25 Ulrich Drepper <drepper@redhat.com>
2782 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
2783 if the object size is large enough.
2785 2003-08-25 Jakub Jelinek <jakub@redhat.com>
2787 * elf/ldconfig.c (search_dir): Treat symlink as regular file
2788 if it won't point to itself unless it is .so symlink for the linker.
2790 2003-08-25 Ulrich Drepper <drepper@redhat.com>
2792 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
2793 use _mode if _IO_fwide_maybe_incompatible.
2794 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
2795 the compatibility test.
2797 2003-08-25 Jakub Jelinek <jakub@redhat.com>
2799 * elf/cache.c (save_cache): Don't write beyond end of file_entries
2801 Duplicate last old cache entry if the count would be odd.
2803 2003-08-25 Andreas Jaeger <aj@suse.de>
2805 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
2806 __LONG_LONG_PAIR to long.
2808 2003-08-25 Philip Blundell <philb@gnu.org>
2810 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
2811 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
2813 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
2815 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
2816 and use __libc_cleanup_region_end instead.
2818 2003-08-25 Ulrich Drepper <drepper@redhat.com>
2820 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
2822 2003-08-22 Ulrich Drepper <drepper@redhat.com>
2824 * io/fcntl.h (posix_fallocate): Change type of third parameter to
2826 (posix_fallocate64): Change type of third parameter to off64_t.
2827 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
2828 * sysdeps/posix/posix_fallocate.c: Likewise.
2829 * sysdeps/generic/posix_fallocate64.c: Likewise.
2830 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
2831 code for 32-bit platforms.
2832 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
2834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
2835 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2836 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2838 2003-08-19 Ulrich Drepper <drepper@redhat.com>
2840 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
2841 the type, not to name.
2843 * stdio-common/test-vfprintf.c (main): Don't write temporary file
2844 into source directory.
2846 * malloc/malloc.c (_int_free): Add cheap test for some invalid
2849 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
2852 2003-08-18 Ulrich Drepper <drepper@redhat.com>
2854 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
2857 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
2859 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
2860 (elf_machine_lazy_rel): Likewise.
2862 2003-08-18 Art Haas <ahaas@airmail.net>
2864 * malloc/malloc.h: Remove unneeded ';' where closing the C++
2867 2003-08-18 Ulrich Drepper <drepper@redhat.com>
2869 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
2870 loading big binaries where @gprel(sym) cannot be handled in 'add'
2871 but instead has to be used with 'movl'.
2873 2003-08-17 Juergen Kreileder <jk@blackdown.de>
2874 Andreas Jaeger <aj@suse.de>
2876 * sysdeps/x86_64/bits/byteswap.h: New file.
2878 2003-08-17 Andreas Jaeger <aj@suse.de>
2880 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
2882 2003-08-16 Jakub Jelinek <jakub@redhat.com>
2884 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
2885 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2886 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
2887 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2888 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
2889 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2890 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
2891 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2892 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
2893 ret_ERRVAL): Define.
2894 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
2895 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2896 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
2897 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2898 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
2900 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
2901 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2902 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
2904 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
2905 posix_fadvise64_64): Remove.
2906 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
2908 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
2910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
2911 (posix_fadvise64): Likewise.
2912 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
2913 (posix_fadvise64): Likewise.
2914 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2915 (posix_fadvise64): Likewise.
2916 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
2918 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
2919 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
2920 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
2921 (__posix_fadvise64_l32): New function.
2922 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
2923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
2924 posix_fadvise64@@GLIBC_2.3.3.
2925 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2926 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2927 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
2929 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
2931 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2932 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
2934 2003-08-15 Jakub Jelinek <jakub@redhat.com>
2936 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
2937 (elf_machine_matches_host): Remove weak extern stuff.
2938 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
2939 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
2940 stuff. Use GL(dl_hwcap) unconditionally.
2942 2003-08-16 Alan Modra <amodra@bigpond.net.au>
2944 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
2945 __libc_start_main branch.
2947 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
2948 Andreas Jaeger <aj@suse.de>
2950 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
2951 instead of setting errno.
2952 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2954 2003-08-16 Andreas Jaeger <aj@suse.de>
2956 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
2957 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2959 2003-08-15 Ulrich Drepper <drepper@redhat.com>
2961 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
2963 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
2964 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
2965 description indicating the error value is returned, not -1.
2966 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
2967 __ASSUME_FADVISE64_64_SYSCALL.
2968 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
2969 posix_madvise in one file. Have posix_madvise defined with error
2971 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
2973 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
2974 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
2975 PSEUDO_END_ERRVAL, and ret_ERRVAL.
2976 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2977 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2978 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
2981 * posix/Makefile (routines): Add posix_madvise.
2982 * sysdeps/generic/madvise.c: Don't define posix_madvise.
2983 * sysdeps/generic/posix_madvise.c: New file.
2984 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
2985 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
2986 Add posix_fadvise64_64.
2988 2003-08-15 Jakub Jelinek <jakub@redhat.com>
2990 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
2991 3.0, not for !gcc or gcc < 3.0.
2993 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
2995 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
2996 Address passed to test_in_mod1 and test_in_mod2 without casting.
2997 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
2998 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
2999 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
3000 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
3002 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3004 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
3005 Change quotes before using [].
3007 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
3009 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
3011 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
3012 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
3013 argument. Select one of 64 locks from address bits.
3014 (atomic_compare_and_exchange_val_acq,
3015 atomic_compare_and_exchange_bool_acq): Pass memory address to
3016 __sparc32_atomic_do_{,un}lock.
3018 2003-08-14 Ulrich Drepper <drepper@redhat.com>
3020 * assert/assert.h (assert): Use !! in front of expression to allow
3023 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
3024 Changed conversion of JIS X 0201 from using a table to calculating.
3025 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
3026 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
3028 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
3029 * iconvdata/CP932.irreversible: New file.
3030 * iconvdata/EUC-JP-MS.irreversible: New file.
3031 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3033 2003-08-13 Ulrich Drepper <drepper@redhat.com>
3035 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
3037 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
3038 text processing tools.
3040 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
3041 element unless BROKEN_THREAD_SIGNALS is defined.
3042 (struct requestlist): Likewise.
3043 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
3044 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
3045 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3046 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
3047 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
3048 Pass current PID to __aio_sigqueue.
3049 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
3050 call. Don't initialize caller_pid field of waitlist element.
3052 2003-08-12 Jakub Jelinek <jakub@redhat.com>
3054 * libio/libioP.h (_IO_vtable_offset): Define.
3055 * libio/freopen.c (freopen): Use it.
3056 * libio/ioputs.c (_IO_puts): Likewise.
3057 * libio/freopen64.c (freopen64): Likewise.
3058 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
3060 * libio/iofclose.c (_IO_new_fclose): Likewise.
3061 * libio/iofputs.c (_IO_fputs): Likewise.
3062 * libio/ioftell.c (_IO_ftell): Likewise.
3063 * libio/iofwrite.c (_IO_fwrite): Likewise.
3064 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
3065 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3066 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
3067 * stdio-common/vfscanf.c (ORIENT): Likewise.
3069 2003-08-11 Ulrich Drepper <drepper@redhat.com>
3071 * assert/assert.h: Use __builtin_expect in assert and
3072 assert_perror definitions if possible.
3074 2003-08-07 Jakub Jelinek <jakub@redhat.com>
3076 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
3077 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
3078 * elf/rtld.c (rtld_lock_default_lock_recursive,
3079 rtld_lock_default_unlock_recursive): New functions.
3080 (dl_main): Initialize _dl_rtld_lock_recursive and
3081 _dl_rtld_unlock_recursive.
3083 2003-08-05 Jakub Jelinek <jakub@redhat.com>
3085 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
3086 config_file directories instead of prepending.
3088 2003-08-02 Ulrich Drepper <drepper@redhat.com>
3090 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3091 __ASSUME_CLONE_STOPPED.
3093 2003-08-01 Ulrich Drepper <drepper@redhat.com>
3095 * sysdeps/generic/bits/libc-lock.h
3096 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
3098 2003-08-01 Roland McGrath <roland@frob.com>
3100 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
3102 2003-07-31 Jakub Jelinek <jakub@redhat.com>
3104 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
3105 instead of __SWORD_TYPE.
3106 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3107 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3108 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
3110 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
3112 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
3114 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
3116 * dlfcn/dlerror.c (once): New.
3117 (dlerror): Call __libc_once.
3118 (_dlerror_run): Remove once.
3120 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
3121 Sync with 2.5.7 and 2.5.73 kernel changes.
3123 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
3124 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
3126 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
3127 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
3128 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
3129 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
3130 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
3131 difference argument.
3132 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
3134 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
3135 %d format and cast expected value to int.
3136 * sysdeps/generic/libc-start.c (STATIC): Add
3137 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
3138 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
3139 to ieee_float_shape_type.
3140 (__sqrt): Avoid type punning.
3141 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
3142 to ieee_float_shape_type.
3143 (__sqrtf): Avoid type punning.
3144 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
3145 refsym if in dl-conflict.c.
3146 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3147 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
3148 (__new_semctl): Shut up warning.
3149 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
3150 (__new_semctl): Shut up warning.
3151 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
3152 Change old into union of __old_shmid_ds and __old_shminfo structs.
3154 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
3156 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
3157 modtime computation.
3158 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
3159 * sysdeps/posix/utimes.c (__utimes): Likewise.
3161 2003-07-30 Jakub Jelinek <jakub@redhat.com>
3163 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
3164 call dl_signal_error directly. If already relocated, call
3165 GL(dl_init_static_tls) directly, otherwise queue it for later.
3166 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
3167 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
3168 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
3169 for all static TLS initializations delayed in _dl_allocate_static_tls.
3170 * elf/dl-support.c (_dl_init_static_tls): New variable.
3171 * include/link.h (struct link_map): Add l_need_tls_init.
3172 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
3173 (_dl_nothread_init_static_tls): New prototype.
3174 (_dl_allocate_static_tls): Adjust prototype.
3176 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
3178 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
3180 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
3181 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
3182 reloc_addr is aligned.
3183 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
3184 elf_machine_rela_relative): Adjust.
3185 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
3186 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
3187 * sysdeps/cris/dl-machine.h (elf_machine_rela,
3188 elf_machine_rela_relative): Adjust.
3189 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
3190 elf_machine_rela_relative): Adjust.
3191 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
3192 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
3193 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
3194 elf_machine_rela_relative): Adjust.
3195 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
3196 elf_machine_rela_relative): Adjust.
3197 * sysdeps/mips/dl-machine.h (elf_machine_rela,
3198 elf_machine_rela_relative): Adjust.
3199 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
3200 elf_machine_rela_relative): Adjust.
3201 * sysdeps/powerpc/powerpc64/dl-machine.h
3202 (elf_machine_rela_relative, elf_machine_rela): Adjust.
3203 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
3204 elf_machine_rela_relative): Adjust.
3205 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
3206 elf_machine_rela_relative): Adjust.
3207 * sysdeps/sh/dl-machine.h (elf_machine_rela,
3208 elf_machine_rela_relative): Adjust.
3209 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3210 elf_machine_rela_relative): Adjust.
3211 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3212 elf_machine_rela_relative): Adjust.
3213 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
3214 elf_machine_rela_relative): Adjust.
3216 2003-07-29 Ulrich Drepper <drepper@redhat.com>
3218 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
3219 alignment of TCB used before the last change so that it matches
3220 ld's output for IE code.
3222 2003-07-29 Jakub Jelinek <jakub@redhat.com>
3224 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
3225 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
3226 break strict-aliasing rules" warnings.
3228 2003-07-29 Roland McGrath <roland@redhat.com>
3230 * elf/Makefile: Revert accidental changes in last commit.
3231 * elf/dl-support.c: Likewise.
3233 * rt/tst-timer2.c: New file.
3234 * rt/Makefile (tests): Add it.
3236 2003-07-25 Jakub Jelinek <jakub@redhat.com>
3238 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
3240 2003-07-29 Roland McGrath <roland@redhat.com>
3242 * elf/Makefile (tests) [$(build-shared) = yes]:
3243 Depend on $(test-modules).
3244 * dlfcn/Makefile: Likewise.
3246 2003-07-28 Roland McGrath <roland@redhat.com>
3248 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
3249 Use that instead of `typedef' when using __*_TYPE macros in rhs.
3251 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
3252 * elf/tst-tlsmod14a.c: Likewise.
3254 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
3255 before <linux/sysctl.h>.
3257 2003-07-27 Ulrich Drepper <drepper@redhat.com>
3259 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
3260 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
3261 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
3262 * sysdeps/unix/syscalls.list: umask syscall never fails.
3264 2003-07-27 Andreas Jaeger <aj@suse.de>
3266 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
3268 2003-07-25 Jakub Jelinek <jakub@redhat.com>
3270 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
3271 Include bits/a.out.h.
3272 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3274 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
3275 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
3276 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
3277 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
3278 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
3279 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
3280 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
3281 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
3283 2003-07-24 Jakub Jelinek <jakub@redhat.com>
3285 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
3286 if aiocbp != NULL and has already completed. Return -1/EINVAL if
3287 aiocbp->aio_fildes does not match fildes.
3289 2003-07-24 Ulrich Drepper <drepper@redhat.com>
3291 * timezone/zic.c (rpytime): Replace cheap overflow check with a
3294 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
3295 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
3296 Fix calculation of offsets to take misalignment of first byte in
3298 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
3299 l_tls_firstbyte_offset field.
3300 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
3301 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
3302 Take l_tls_firstbyte_offset information into account.
3303 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
3304 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
3305 * elf/Makefile: Add rules to build and run tst-tls14.
3306 * elf/tst-tls14.c: New file.
3307 * elf/tst-tlsmod14a.c: New file.
3308 * elf/tst-tlsmod14b.c: New file.
3310 2003-07-23 Jakub Jelinek <jakub@redhat.com>
3312 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
3313 (lio_listio): Use it.
3314 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
3315 after few defines to avoid duplication.
3317 2003-07-22 Jakub Jelinek <jakub@redhat.com>
3319 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
3320 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
3322 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
3323 Add libc_hidden_def.
3324 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
3325 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3326 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
3327 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
3328 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
3329 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
3330 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
3332 * sysdeps/generic/unwind.inc: Removed.
3334 * include/resolv.h (__resp): Declare. Define to __libc_resp
3336 (_res): If USE___THREAD, define to (*__resp).
3337 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
3338 even if USE___THREAD.
3339 (__resp): New __thread variable.
3340 (__libc_resp): New alias.
3341 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
3342 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
3343 * sysdeps/generic/res-state.c (__res_state): Return __resp
3346 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
3348 * elf/dl-support.c (_dl_hwcap): New variable.
3349 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
3351 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
3352 and <dl-procinfo.h>.
3353 (__feclearexcept): Clear MXCSR if needed.
3354 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
3356 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
3357 that newer hardware needs more than these macros.
3359 * sysdeps/i386/setfpucw.c: New file.
3361 2003-07-22 Jakub Jelinek <jakub@redhat.com>
3363 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
3364 * elf/ldconfig.c: Include dl-procinfo.c.
3365 (PROCINFO_CLASS): Define.
3366 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
3367 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
3368 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
3369 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
3370 Define if not yet defined. Use it instead of EXTERN. Undefine
3371 at the end of the file.
3372 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
3374 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
3375 (PROCINFO_CLASS): Likewise.
3376 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
3377 (PROCINFO_CLASS): Likewise.
3379 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
3381 * elf/ldconfig.c (main): Issue a fatal error if relative path
3382 is used to build cache.
3384 2003-07-22 Ulrich Drepper <drepper@redhat.com>
3386 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
3388 2003-07-21 Art Haas <ahaas@airmail.net>
3390 * manual/charset.texi (Converting a Character): Fix example code so a
3391 valid pointer is returned.
3393 2003-07-22 Andreas Jaeger <aj@suse.de>
3395 * elf/readlib.c (process_file): Check that file is a shared
3398 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
3399 will not optimize it away.
3400 (__DTOR_END__): Likewise.
3401 (__CTOR_END__): Likewise.
3403 * include/libc-symbols.h (_elf_set_element): Use attribute used so
3404 that gcc will not optimize it away.
3405 (link_warning): Likewise.
3407 2003-07-22 Ulrich Drepper <drepper@redhat.com>
3409 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
3410 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
3411 * wcsmbs/tst-wcpncpy.c: New file.
3413 2003-07-21 Ulrich Drepper <drepper@redhat.com>
3415 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
3417 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
3418 stmxcsr and ldmxcsr.
3420 * Makerules (build-module-helper): Add -z defs unless explicitly said
3422 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
3423 which has undefined symbols.
3424 * elf/Makefile: Likewise.
3426 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
3427 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3428 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3429 * sysdeps/i386/fpu/fesetround.c: Likewise.
3430 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
3432 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
3434 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3435 if it won't point to itself.
3437 2003-07-20 Ulrich Drepper <drepper@redhat.com>
3439 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
3441 2003-07-20 Andreas Jaeger <aj@suse.de>
3443 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
3444 STANDARD_TO_LOOP_ERR_HANDLER.
3445 * iconvdata/euc-jp-ms.c (BODY): Likewise.
3447 2003-07-19 Ulrich Drepper <drepper@redhat.com>
3449 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
3451 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
3453 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
3454 Andreas Jaeger <aj@suse.de>
3456 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
3457 256K, remove unneeded declaration of __getpagesize.
3459 2003-07-16 Andreas Schwab <schwab@suse.de>
3461 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
3463 2003-07-15 Ulrich Drepper <drepper@redhat.com>
3465 * io/test-utime.c (main): Make test yet more robust.
3467 2003-07-14 Ulrich Drepper <drepper@redhat.com>
3469 More cancellation handling fixups.
3470 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
3471 * sysdeps/generic/not-cancel.h: Likewise.
3472 * catgets/open_catalog.c: Use not-cancelable syscalls.
3473 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
3474 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
3475 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
3476 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
3477 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
3478 * libio/fileops.c: Use not-cancelable syscalls for fclose.
3479 * libio/iopopen.c: Use no-cancelable syscalls.
3480 * libio/stdio.h: Mark popen and pclose with __THROW again.
3481 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
3482 * misc/syslog.c: Fix locking and cancellation cleanup handling.
3483 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
3484 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
3485 CFLAGS-tempname.c): Add -fexceptions.
3486 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3487 * string/string.h: Mark strerror and strerror_r with _THROW again.
3488 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
3489 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
3490 #ifs since we now need all the code compiled.
3491 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
3492 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
3493 * sysdeps/unix/opendir.c: Likewise.
3495 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
3496 Add rule for EUC-JP-MS dependency.
3497 * iconvdata/cp932.c: New file.
3498 * iconvdata/eucjp-ms.c: New file.
3499 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
3500 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3502 2003-07-15 Jakub Jelinek <jakub@redhat.com>
3504 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
3507 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3509 * sysdeps/unix/sysv/linux/kernel-features.h
3510 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
3511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
3513 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
3515 2003-07-14 Ulrich Drepper <drepper@redhat.com>
3517 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3518 __ASSUME_TGKILL for Alpha appropriately.
3520 2003-07-12 Ulrich Drepper <drepper@redhat.com>
3522 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
3523 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
3525 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
3528 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3529 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
3531 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
3532 second parameter == NULL.
3533 * sysdeps/unix/sysv/linux/utimes.c: New file.
3535 2003-07-12 Jakub Jelinek <jakub@redhat.com>
3537 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
3538 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
3541 2003-07-12 Ulrich Drepper <drepper@redhat.com>
3543 * time/sys/time.h: Namespace cleanup.
3544 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3545 __ASSUME_UTIMES for the architectures which always had the syscall.
3546 * sysdeps/unix/sysv/linux/futimes.c: New file.
3548 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3550 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
3551 register across CENABLE and CDISABLE.
3553 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3555 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
3556 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3557 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3558 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
3559 int before assigning to max to avoid warnings.
3561 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
3565 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
3566 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
3568 2003-07-10 Jakub Jelinek <jakub@redhat.com>
3570 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
3571 .data.rel.ro.local to "aw".
3573 2003-07-10 Ulrich Drepper <drepper@redhat.com>
3575 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
3576 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
3577 (PIC-ccflag): Define.
3579 2003-07-04 Jakub Jelinek <jakub@redhat.com>
3581 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
3583 * sysdeps/s390/s390-64/elf/start.S: Likewise.
3585 2003-07-07 Jakub Jelinek <jakub@redhat.com>
3587 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
3588 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
3590 2003-07-07 Ulrich Drepper <drepper@redhat.com>
3592 * sysdeps/unix/sysv/linux/kernel-features.h: Version
3593 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
3595 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
3596 compilation with HAVE_AUX_SECURE defined.
3598 2003-07-05 Richard Henderson <rth@redhat.com>
3600 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
3602 2003-07-03 Ulrich Drepper <drepper@redhat.com>
3604 * configure.in: Also check for .cfi_rel_offset pseudo-op.
3606 2003-07-03 Jakub Jelinek <jakub@redhat.com>
3608 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
3611 2003-07-03 Ulrich Drepper <drepper@redhat.com>
3613 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
3615 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
3617 2003-07-02 Jakub Jelinek <jakub@redhat.com>
3619 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
3620 decl and use with #ifdef NEED_DL_SYSINFO.
3622 2003-07-02 Ulrich Drepper <drepper@redhat.com>
3624 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
3625 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
3626 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3627 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
3628 vsyscall DSO was added.
3630 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
3631 depending on selected standard.
3632 (NGROUPS_MAX): Define to 8 if not defined.
3634 2003-07-02 Andreas Jaeger <aj@suse.de>
3636 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
3638 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
3640 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
3641 * malloc/thread-m.h: Include <atomic.h>.
3642 (atomic_full_barrier): Provide default.
3643 (atomic_read_barrier): Likewise.
3644 (atomic_write_barrier): Likewise.
3645 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
3647 2003-06-30 Ulrich Drepper <drepper@redhat.com>
3649 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
3651 2003-06-30 Richard Henderson <rth@redhat.com>
3653 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
3654 Invert the sense of the return value.
3655 (__arch_exchange_16_int): Fix paste-o.
3656 (__arch_exchange_{32,64}_int): Fix think-o.
3658 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
3660 2003-06-30 Richard Henderson <rth@redhat.com>
3662 * include/sys/resource.h (__getrusage): Mark hidden.
3663 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
3664 * include/sys/wait.h (__wait4): Likewise.
3666 2003-06-17 Guido Guenther <agx@sigxcpu.org>
3668 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
3670 (xstat_conv): Rename to __xstat_conv and remove static inline.
3671 (xstat64_conv): Likewise.
3673 2003-06-29 Ulrich Drepper <drepper@redhat.com>
3675 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
3676 values which cannot be handled in one nanosleep call.
3678 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
3680 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
3681 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
3683 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
3685 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
3687 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
3690 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
3692 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
3693 Conditionalize function definitions that use struct kernel_stat.
3694 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
3695 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
3696 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
3698 2003-06-28 Ulrich Drepper <drepper@redhat.com>
3700 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
3703 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
3705 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
3706 (getgrent_next_file): Don't store group name to early in blacklist.
3708 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
3709 and use memcpy instead of strcpy.
3711 2003-06-28 Ulrich Drepper <drepper@redhat.com>
3713 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
3715 * nis/nss_compat/compat-initgroups.c: Likewise.
3716 * nis/nss_compat/compat-pwd.c: Likewise.
3717 * nis/nss_compat/compat-spwd.c: Likewise.
3719 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
3721 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
3722 functions, dlopen corresponding NSS module instead.
3724 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
3726 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
3727 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3728 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3729 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3731 2003-06-27 Ulrich Drepper <drepper@redhat.com>
3733 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
3735 2003-06-26 Roland McGrath <roland@frob.com>
3737 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
3738 * sysdeps/mach/configure: Regenerated.
3739 * sysdeps/mach/hurd/times.c (times_init): Function removed.
3740 (__times): Assume `creation_time' field is available.
3741 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
3742 Don't append set-init.
3743 * sysdeps/mach/hurd/set-init.c: File removed.
3745 2003-06-26 Roland McGrath <roland@redhat.com>
3747 * elf/elf.h (AT_SECURE): New macro.
3748 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
3749 set __libc_enable_secure.
3750 (_dl_show_auxv): Add AT_SECURE to name table.
3751 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
3752 __libc_enable_secure and __libc_enable_secure_decided.
3753 * sysdeps/unix/sysv/linux/ldsodefs.h
3754 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
3755 * sysdeps/unix/sysv/linux/kernel-features.h
3756 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
3758 2003-06-26 Ulrich Drepper <drepper@redhat.com>
3760 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
3761 boundary test to take rounding of nanoseconds into account.
3763 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
3764 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3765 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
3766 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3767 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3768 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3769 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3771 2003-06-26 Andreas Schwab <schwab@suse.de>
3773 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
3774 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
3775 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
3777 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
3779 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
3780 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
3781 dlopen corresponding NSS module instead.
3782 * nis/nss_compat/compat-pwd.c: Likewise.
3783 * nis/nss_compat/compat-spwd.c: Likewise.
3784 * nis/nss_compat/compat-initgroups.c: Disabled for now.
3785 * nss/Versions: Export __nss_lookup_function.
3787 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3789 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
3790 for the SH architecture.
3792 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
3794 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
3796 2003-06-25 Andreas Jaeger <aj@suse.de>
3798 * stdlib/tst-strtod.c (main): Declare constant long double as
3799 suggested by Jakub Jelinek and Andreas Schwab.
3801 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
3804 * stdio-common/tst-fphex.c: Fix format string.
3806 * posix/transbug.c: Include <string.h> for memset and strlen
3809 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
3811 * stdlib/tst-strtod.c (main): Pass long double value.
3813 * test-skeleton.c: Include <time.h> for nanosleep declaration.
3815 2003-06-25 Ulrich Drepper <drepper@redhat.com>
3817 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
3820 2003-06-11 Jakub Jelinek <jakub@redhat.com>
3822 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
3823 * elf/dl-libc.c (struct dl_open_hook): New.
3824 (_dl_open_hook): New variable.
3825 (do_dlsym_private): New function.
3826 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
3827 and initialize it if found.
3828 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
3829 call dlopen_mode hook.
3830 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
3832 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
3835 2003-06-25 Ulrich Drepper <drepper@redhat.com>
3837 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
3838 result to long int so that extensions to long long int work.
3839 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
3841 2003-06-19 Jakub Jelinek <jakub@redhat.com>
3843 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
3844 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
3845 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
3847 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
3848 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
3849 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
3850 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
3852 2003-06-19 Jakub Jelinek <jakub@redhat.com>
3854 * test-skeleton.c (timeout_handler): If waitpid returned 0,
3855 retry once after a second. If killed == 0, assume
3856 WTERMSIG (status) == SIGKILL.
3858 2003-06-18 Roland McGrath <roland@redhat.com>
3860 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
3861 elements in the table instead of printing an empty name string.
3863 2003-06-05 Roland McGrath <roland@redhat.com>
3865 * elf/elf.h (PT_GNU_STACK): New macro.
3867 2003-06-24 Ulrich Drepper <drepper@redhat.com>
3869 * include/time.h: Define CLOCK_IDFIELD_SIZE.
3870 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
3871 * sysdeps/unix/clock_gettime.c: Likewise.
3872 * sysdeps/unix/clock_settime.c: Likewise.
3873 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
3874 clock id for thread CPU clocks.
3876 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
3877 for the fstatfs64 syscall.
3878 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
3879 the statfs64 syscall.
3881 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3882 __ASSUME_STATFS64 appropriately.
3884 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
3885 from statfs structure if it has been filled in.
3887 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
3889 (struct statfs64): Likewise.
3890 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
3891 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
3893 2003-06-24 Richard Henderson <rth@redhat.com>
3895 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
3896 the 64-bit syscall name.
3898 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
3900 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
3901 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
3903 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
3904 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
3906 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3907 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
3910 * sysdeps/alpha/bits/atomic.h: New file.
3912 2003-06-24 Andreas Schwab <schwab@suse.de>
3914 * sysdeps/m68k/fpu/libm-test-ulps: Update.
3916 2003-06-24 Andreas Jaeger <aj@suse.de>
3918 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
3919 redeclaration with 32-bit code.
3921 2003-05-19 Ed Connell <ed.connell@sas.com>
3923 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
3924 floating point mask.
3925 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
3927 2003-06-23 Ulrich Drepper <drepper@redhat.com>
3929 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
3930 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
3931 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
3933 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
3934 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
3935 instead of __libc_cleanup_region_*.
3937 2003-06-20 Richard Henderson <rth@redhat.com>
3939 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
3940 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
3942 2003-06-20 Richard Henderson <rth@redhat.com>
3944 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
3945 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
3947 (__ASSUME_TIMEVAL64): Set for alpha.
3948 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3949 adjtimex, osf_sigprocmask, old_adjtimex.
3950 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
3951 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
3952 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
3953 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
3954 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3955 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3956 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
3957 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
3958 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
3959 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
3960 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
3962 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3963 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
3964 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
3965 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
3966 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3967 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
3968 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
3969 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
3970 defer to __syscall_name; error for rt_sigaction.
3971 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
3973 2003-06-18 Ulrich Drepper <drepper@redhat.com>
3975 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
3976 hasn't happened yet.
3978 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3979 Fix completely broken implementation. The second parameter is of
3980 type struct ucontext*.
3982 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
3985 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
3986 * sysdeps/generic/dl-hash.h: Likewise.
3988 * sysdeps/generic/memcmp.c: Remove inline from
3989 memcmp_common_alignment and memcmp_not_common_alignment definition.
3991 * intl/localealias.c (read_alias_file): Determine whether line is
3992 read incompletely early, before we modify the line.
3994 2003-06-17 Jakub Jelinek <jakub@redhat.com>
3996 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
3997 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
3999 2003-06-17 Paul Mackerras <paulus@samba.org>
4001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
4002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
4003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
4004 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
4005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
4006 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
4008 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4010 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
4012 2003-06-17 Ulrich Drepper <drepper@redhat.com>
4014 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4015 takes care of enabling cancellation.
4017 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
4018 cancelable. It's not correct to disable cancellation. Instead of
4021 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
4022 and part of the incoming set, create a temporary set without this
4024 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4025 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4027 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
4028 returning because seconds==0. Add __builtin_expect.
4030 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4032 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
4034 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
4037 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
4039 * include/libc-symbols.h: Add static_link_warning macro.
4040 * grp/initgroups.c: Print linker warning if this function
4041 is called in a static linked binary.
4042 * nss/getXXbyYY.c: Likewise.
4043 * nss/getXXbyYY_r.c: Likewise.
4044 * nss/getXXent.c: Likewise.
4045 * nss/getXXent_r.c: Likewise.
4046 * sysdeps/posix/getaddrinfo.c: Likewise.
4048 2003-06-16 Bruno Haible <bruno@clisp.org>
4050 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
4052 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
4053 (IBM1047): Add alias IBM-1047.
4054 (GBK): Add aliases MS936, WINDOWS-936.
4056 2003-06-16 Jakub Jelinek <jakub@redhat.com>
4058 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
4059 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
4060 (__xstat64_conv): Change xstat_conv to __xstat_conv.
4062 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4064 * locale/iso-639.def: Update from current official ISO 639.
4066 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
4068 2003-06-15 Andreas Jaeger <aj@suse.de>
4070 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
4072 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4073 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
4074 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
4076 * math/tgmath.h (carg): Handle real arguments.
4082 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
4083 (tests): Add test-tgmath-ret.
4084 * math/test-tgmath-ret.c: New file.
4086 * math/tgmath.h (ilogb): Return always an int.
4088 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4090 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
4091 computation so that prelinking works.
4093 2003-06-15 Ulrich Drepper <drepper@redhat.com>
4095 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
4097 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
4098 dynamic linker's map.
4100 Fix cancellation point handling wrt exception based cleanup.
4101 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
4102 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
4104 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
4105 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
4106 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
4108 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
4109 sigwait.c, and sigwaitinfo.c with exceptions.
4110 * stdlib/Makefile: Compile system.c with exceptions.
4111 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
4112 * termios/Makefile: Compile tcdrain.c with exceptions.
4113 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
4115 * sysdeps/generic/pselect.c: Likewise.
4116 * sysdeps/posix/sigpause.c: Likewise.
4117 * sysdeps/posix/system.c: Likewise.
4118 * sysdeps/posix/waitid.c: Likewise.
4119 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
4120 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
4121 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
4122 INTERNAL_SYSCALL to not use push inside asm statement so that
4123 unwind info is correct around the syscall.
4124 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
4125 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
4127 2003-06-15 Andreas Jaeger <aj@suse.de>
4129 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4132 2003-06-15 Guido Guenther <agx@sigxcpu.org>
4134 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
4137 2003-06-14 Ulrich Drepper <drepper@redhat.com>
4139 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
4142 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
4143 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
4146 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
4147 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
4148 * inet/Makefile (routines): Add inet6_option.
4149 * inet/inet6_option.c: New file.
4150 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
4151 inet6_option_init, inet6_option_append, inet6_option_alloc,
4152 inet6_option_next, and inet6_option_find.
4154 2003-06-13 Ulrich Drepper <drepper@redhat.com>
4156 * inet/netinet/ip6.h (struct ip6_ext): Define.
4158 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
4160 Fixing gcc 3.3 warnings, part II.
4161 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
4162 * elf/dl-load.c (cache_rpath): Don't inline.
4163 * iconvdata/cns11642l2.h: Always inline all functions.
4164 * iconvdata/iso-ir-165.h: Likewise.
4165 * locale/Makefile (aux): Add coll-lookup.
4166 * locale/coll-lookup.c: New file.
4167 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
4168 (collseq_table_lookup): Likewise.
4169 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
4170 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
4172 * posix/regcomp.c: Likewise.
4173 * posix/regexec.c: Likewise.
4174 * locale/programs/3level.h (*_get): Always inline.
4175 * locale/programs/locfile.h: Move definition of handle_copy to...
4176 * locale/programs/locfile.c: ...here.
4177 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
4178 (obstack_int32_grow_fast): Likewise.
4179 (utf8_encode): Likewise.
4180 (find_element): Avoid aliasing problems.
4181 (insert_value): Likewise.
4182 (collate_read): Likewise.
4183 * nss/getent.c (print_hosts): Don't inline
4184 (print_networks): Likewise.
4185 (print_shadow): Likewise.
4186 (build_doc): Likewise.
4187 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
4189 * posix/regcomp.c (re_set_fastmap): Always inline.
4190 (seek_collating_symbol_entry): Likewise.
4191 (lookup_collation_sequence_value): Likewise.
4192 (build_range_exp): Likewise.
4193 (build_collating_symbol): Likewise.
4194 * posix/regexec.c (acquire_init_state_context): Don't inline.
4195 (clean_state_log_if_need): Likewise.
4196 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
4198 (evConsTime): Likewise.
4199 (evAddTime): Likewise.
4200 (evSubTime): Likewise.
4201 (evNowTime): Likewise.
4202 (evTimeSpec): Removed.
4203 (__libc_res_nsend): Avoid aliasing problem.
4204 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
4205 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
4206 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
4208 (_dl_string_platform): Likewise.
4209 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
4210 (wcwidth_table_lookup): Likewise.
4211 (wctrans_table_lookup): Likewise.
4213 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
4215 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4217 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
4219 2003-05-29 Jim Meyering <jim@meyering.net>
4221 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
4222 && HAVE_STRFTIME]: Use underlying_strftime for %r.
4223 Suggested by Daniel Yacob <locales@geez.org>.
4225 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
4227 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
4228 @got notation with @toc.
4229 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
4230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
4232 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4234 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
4235 if only PF_INET address is needed.
4237 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
4240 * scripts/config.guess: Update from upstream version.
4241 * scripts/config.sub: Likewise.
4243 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4245 * locale/programs/ld-time.c (time_output): Also copy the era format,
4248 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
4250 * posix/transbug.c (run_test): Return 1 for failure.
4251 (do_test): Compare only if run_test is successful.
4253 2003-06-12 Simon Josefsson <jas@extundo.com>
4255 * argp/argp.h [!__THROW]: Define if undefined.
4257 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4259 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
4260 more than four parameters.
4261 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4263 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4265 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
4266 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
4267 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
4269 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
4271 2003-06-12 Roland McGrath <roland@redhat.com>
4273 * Makerules ($(objpfx)stubs): Rewrite sed magic.
4275 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
4277 * posix/regcomp.c (parse_expression): Deliver translation to
4278 build_word_op, and build_charclass.
4279 (build_charclass): Apply translation for character classes too.
4280 (build_word_op): Deliver translation to build_charclass.
4281 * posix/transbug.c: New file.
4282 * posix/Makefile (tests): Add transbug.
4284 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
4286 * posix/regexec.c (group_nodes_into_DFAstates): Check for
4287 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
4288 'continue' before the others.
4290 2003-06-11 Ulrich Drepper <drepper@redhat.com>
4292 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
4293 function [PR libc/5045].
4295 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
4298 * time/tzfile.c: Add a couple of __builtin_expect.
4300 Remove warnings gcc 3.3 shows.
4301 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
4302 * elf/dl-load.c (fillin_rpath): Likewise.
4303 (add_path): Likewise.
4304 * elf/dl-version.c (find_needed): Always inline.
4305 * elf/do-lookup.c (FCT): Don't inline.
4306 * iconv/Makefile: Extend vpath to intl subdir.
4307 (iconvconfig-modules): Add hash-string.
4308 * iconv/gconv_charset.h (strip): Don't inline.
4309 (upstr): Always inline.
4310 Move __gconv_compare_alias prototype to...
4311 * iconv/gconv_int.h: ...here.
4312 * iconv/gconv_db.c: Don't include gconv_charset.h.
4313 * iconv/gconv_conf.c (add_alias): Don't inline.
4314 (insert_module): Likewise.
4315 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
4316 (internal_ucs4_loop_unaligned): Likewise.
4317 (internal_ucs4_loop_single): Likewise.
4318 (ucs4_internal_loop): Likewise.
4319 (ucs4_internal_loop_unaligned): Likewise.
4320 (ucs4_internal_loop_single): Likewise.
4321 (internal_ucs4le_loop): Always inline.
4322 (internal_ucs4le_loop_unaligned): Likewise.
4323 (internal_ucs4le_loop_single): Likewise.
4324 (ucs4le_internal_loop): Likewise.
4325 (ucs4le_internal_loop_unaligned): Likewise.
4326 (ucs4le_internal_loop_single): Likewise.
4327 * iconv/loop.c: Always inline the defined functions.
4328 * iconvdata/cns11642.h: Likewise.
4329 * iconvdata/cns11642l1.h: Likewise.
4330 * iconvdata/euc-kr.c: Likewise.
4331 * iconvdata/gb2312.h: Likewise.
4332 * iconvdata/jis0201.h: Likewise.
4333 * iconvdata/jis0208.h: Likewise.
4334 * iconvdata/jis0212.h: Likewise.
4335 * iconvdata/jisx0213.h: Likewise.
4336 * iconvdata/ksc5601.h: Likewise.
4337 * iconvdata/utf-7.c (base64): Don't inline.
4338 * include/libc-symbols.h (symbol_set_first_element): Add cast
4339 (symbol_set_end_p): Likewise.
4340 * include/set-hooks (RUN_HOOK): Likewise.
4341 * inet/Makefile (aux): Add ifreq.
4342 * intl/Makefile (aux): Add some entries from routines. Add
4344 * intl/hash-string.c: New file.
4345 * intl/hash-string.h: Remove hash_string definition. Declare
4347 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
4348 * iconv/iconvconfig.c (new_name): Likewise.
4349 * intl/dcigettext.c (_nl_find_msg): Likewise.
4350 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4351 * io/ftw.c (open_dir_stream): Always inline.
4352 (process_entry): Don't inline.
4353 * locale/findlocale.c: Include gconv_int.h.
4354 * locale/setlocale.c (new_composite_name): Don't inline.
4355 * locale/weight.h (findidx): Always inline.
4356 * locale/weightwc.h (findidx): Likewise.
4357 * locale/programs/linereader.c (lr_ignore_rest): Define here.
4358 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
4360 (lr_getc): Always inline.
4361 (lr_ungetc): Likewise.
4362 * nss/nss_files/files-parse.c (parse_list): Likewise.
4363 * stdio-common/Makefile (aux): Add printf-parsemb and
4365 * stdio-common/_itoa.h (_itoa_word): Always inline.
4366 (_fitoa_word, _fitoa): Don't define here, only declare.
4367 * stdio-common/_itoa.c (_iftoa_word): Add here.
4369 * stdio-common/_itowa.h (_itowa_word): Always inline.
4370 * stdio-common/printf-parse.h (read_int): Don't inline.
4371 (find_spec): Don't define.
4372 Declare __find_specmb and __find_specwc.
4373 (parse_one_spec): Don't define.
4374 Declare __parse_one_specmb and __parse_one_specwc.
4375 * stdio-common/printf-parsemb.c: New file.
4376 * stdio-common/printf-parsewc.c: New file.
4377 * stdio-common/vfprintf.c: Update calls to find_spec and
4378 parse_one_spec for new names.
4379 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
4380 * stdlib/Makefile (aux): Add grouping and groupingwc.
4381 * stdlib/grouping.c: New file.
4382 * stdlib/groupingwc.c: New file.
4383 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
4385 * stdlib/rpmatch.c (try): Don't inline.
4386 * stdlib/strtod.c (round_and_return): Don't line.
4387 (str_to_mpn): Likewise.
4388 (__mpn_lshift_1): Always inline. Optimize only for constant count.
4389 Adjust for name change of correctly_grouped_prefix.
4390 * sysdeps/generic/strtol.c: Adjust for name change of
4391 correctly_grouped_prefix.
4392 * string/strxfrm.c (utf8_encode): Don't inline.
4393 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
4394 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
4395 * sysdeps/generic/ifreq.c: New file.
4396 * sysdeps/unix/sysv/linux/ifreq.c: New file.
4397 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
4398 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
4399 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
4400 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
4401 (fde_split): Likewise.
4402 (fde_merge): Likewise.
4403 (end_fde_sort): Likewise.
4404 (init_object): Likewise.
4405 (binary_search_unencoded_fdes): Likewise.
4406 (binary_search_single_encoding_fdes): Likewise.
4407 (binary_search_mixed_encoding_fdes): Likewise.
4408 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
4409 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
4410 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
4411 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4413 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
4414 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
4415 Export them. Prepend __ to name.
4416 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
4417 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
4418 conversion functions.
4419 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4420 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4421 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4422 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4423 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4424 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4425 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4426 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4427 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
4428 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
4429 to name. Change callers.
4430 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
4431 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
4433 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
4434 * time/tzfile.c (decode): Always inline.
4435 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
4436 Remove cast in tomb function call.
4437 * wcsmbs/wcsrtombs.c Likewise.
4438 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
4441 2003-06-10 Ulrich Drepper <drepper@redhat.com>
4443 * po/zh_CN.po: Update from translation team.
4445 2003-06-10 Jakub Jelinek <jakub@redhat.com>
4447 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
4448 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
4450 2003-06-10 Ulrich Drepper <drepper@redhat.com>
4452 * inet/Makefile (aux): Add check_pf.
4453 * include/ifaddrs.h: Add prototype for __check_pf.
4454 * sysdeps/generic/check_pf.c: New file.
4455 * sysdeps/unix/sysv/linux/check_pf.c: New file.
4456 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
4457 from no_netlink_support. Export.
4458 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
4461 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
4463 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
4464 from getifaddr calls.
4466 2003-06-09 Jakub Jelinek <jakub@redhat.com>
4468 * sysdeps/unix/sysv/linux/kernel-features.h
4469 (__ASSUME_SETRESGID_SYSCALL): Define.
4470 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
4471 instead of __ASSUME_SETRESUID_SYSCALL.
4472 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
4474 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
4475 inline syscall if __NR_setresuid32 is defined.
4476 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
4477 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
4478 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
4479 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4480 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
4481 code handling non-existant setresgid32 syscall with
4482 #if __ASSUME_SETRESGID_SYSCALL == 0.
4484 2003-06-09 Andreas Schwab <schwab@suse.de>
4486 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
4487 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
4488 $(objpfx)rpc-proto.d.
4489 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
4490 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
4491 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
4493 2003-06-08 Ulrich Drepper <drepper@redhat.com>
4495 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
4496 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
4497 defined drop compatibility code.
4498 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
4499 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
4500 defined drop compatibility code.
4501 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
4502 setresuid32 syscall directly if possible.
4503 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
4504 setresgid32 syscall directly if possible.
4505 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
4506 compliant. Don't change sgid.
4507 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
4508 compliant. Don't change suid.
4510 * config.h.in: Add have-forced-unwind.
4511 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
4513 2003-06-07 Ulrich Drepper <drepper@redhat.com>
4515 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
4516 returned status from child matches.
4518 * Makeconfig (gnulib): Add -lgcc_eh once again.
4520 2003-06-06 Ulrich Drepper <drepper@redhat.com>
4522 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
4524 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
4525 %edx for first parameter. This means no pushl and therefore the
4526 unwind info isn't screwed up.
4528 2003-06-04 Richard Henderson <rth@redhat.com>
4530 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
4531 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4532 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
4533 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
4534 entry sequence and explicit relocs. Add unwind info for sigreturn
4536 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
4538 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
4539 Annotate some parameters.
4540 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
4542 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
4544 * include/libc-symbols.h (symbol_set_declare): Use arrays
4545 of unspecified size.
4547 2003-06-04 Jakub Jelinek <jakub@redhat.com>
4549 * config.make.in (ASFLAGS-config): New.
4550 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
4551 * configure.in (libc_cv_as_noexecstack): New check.
4552 (ASFLAGS_config): Substitute.
4554 2003-06-04 Jakub Jelinek <jakub@redhat.com>
4556 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
4557 hypot, logb): Protect with #ifdef __FAST_MATH__.
4559 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4561 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
4562 #ifdef __FAST_MATH__.
4564 2003-06-03 Ulrich Drepper <drepper@redhat.com>
4566 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
4567 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
4568 * posix/globtest.sh: Adjust for this change.
4570 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
4571 to get the actual PID value used in the records passed up.
4572 (getifaddrs): Don't initialize nh.pid here.
4574 2003-06-02 Ulrich Drepper <drepper@redhat.com>
4576 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
4579 * po/zh_CN.po: Update from translation team.
4581 * posix/getconf.c (main): Also recognize names without the
4584 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
4586 2003-06-02 Bernd Schmidt <bernds@redhat.com>
4588 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
4589 ldexpf, ldexpl): Only define if __FAST_MATH__.
4591 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
4593 Replace hard-coded offsets into struct sigcontext with generated file.
4594 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
4595 * sysdeps/unix/sysv/linux/ia64/Makefile
4596 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
4597 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
4598 defining SC_* macros here.
4600 2003-06-02 Jakub Jelinek <jakub@redhat.com>
4602 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
4604 2003-06-01 Jakub Jelinek <jakub@redhat.com>
4606 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
4608 2003-06-01 Ulrich Drepper <drepper@redhat.com>
4610 * test-skeleton.c (main): Request getopt to not reorder the
4613 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
4615 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
4618 2003-05-31 Ulrich Drepper <drepper@redhat.com>
4620 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
4622 2003-05-31 Jakub Jelinek <jakub@redhat.com>
4624 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
4626 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
4627 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
4628 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
4630 2003-05-31 Ulrich Drepper <drepper@redhat.com>
4632 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
4635 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
4637 * libio/fileops.c (_IO_file_open): Don't mark as inline.
4639 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
4642 2003-05-30 Ulrich Drepper <drepper@redhat.com>
4644 * scripts/config.guess: Update from master copy.
4645 * scripts/config.sub: Likewise.
4647 2003-05-30 Guido Guenther <agx@sigxcpu.org>
4649 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
4650 SETUP_GP64 and friends.
4651 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
4652 names in internal_syscall{6,7}.
4653 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
4654 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
4655 number of syscall arguments.
4656 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4657 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4658 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4660 2003-05-30 Andreas Jaeger <aj@suse.de>
4662 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4665 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
4668 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
4670 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4673 2003-05-30 Jakub Jelinek <jakub@redhat.com>
4675 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
4678 2003-05-11 Andreas Schwab <schwab@suse.de>
4680 * Makerules: Always use -MP together with -MD.
4681 (sed-remove-dotot): Substitute $(..) also at start of line.
4682 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
4683 Generated defines with a single compiler call.
4684 Use $(sed-remove-dotdot).
4685 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
4686 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
4687 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
4688 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
4689 * sysdeps/unix/sysv/linux/mips/Makefile
4690 ($(objpfx)syscall-%.h): Likewise.
4692 2003-05-28 Roland McGrath <roland@redhat.com>
4694 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
4696 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
4698 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
4700 2003-05-28 Roland McGrath <roland@redhat.com>
4702 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
4703 rt_sigprocmask system call.
4704 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
4705 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
4707 2003-05-28 Ulrich Drepper <drepper@redhat.com>
4709 * include/libc-symbols.h: Define hidden attribute for real also if
4710 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
4712 * csu/Makefile: Add rules to build Scrt1.o.
4713 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
4714 * sysdeps/x86_64/elf/start.S: Likewise.
4716 2003-05-27 Jakub Jelinek <jakub@redhat.com>
4718 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
4719 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
4720 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
4721 pa_short_int, pa_u_short_int and pa_float.
4723 2003-05-26 Jakub Jelinek <jakub@redhat.com>
4725 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
4726 _IO_str_init_static_internal.
4727 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
4728 change size argument to _IO_size_t, don't limit sprintf to 64M.
4729 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
4730 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
4731 _IO_size_t, don't limit swprintf to 256M.
4732 (_IO_wstr_init_readonly): Remove.
4733 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
4735 (_IO_wstr_init_readonly): Remove prototype.
4736 * libio/iovsprintf.c (_IO_vsprintf): Use
4737 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
4738 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
4739 * libio/memstream.c (open_memstream): Likewise.
4740 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
4741 * libio/vasprintf.c (_IO_vasprintf): Likewise.
4742 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4743 * stdio-common/tst-sprintf.c (main): Add new test.
4745 2003-05-26 Ulrich Drepper <drepper@redhat.com>
4747 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
4748 other implementation in respect of multiple uses of parameter with
4751 2003-05-25 Ulrich Drepper <drepper@redhat.com>
4753 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4754 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
4756 2003-05-22 Andreas Jaeger <aj@suse.de>
4758 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
4760 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4761 * sysdeps/x86_64/strtok.S: Likewise.
4763 2003-05-20 Guido Guenther <agx@sigxcpu.org>
4765 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
4766 to -60 and define SI_TKILL.
4768 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
4770 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
4771 (feexcp_mask_test): Likewise.
4773 2003-05-21 Ulrich Drepper <drepper@redhat.com>
4775 * locale/programs/locale.c (main): Fix typo in last patch.
4777 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
4778 __init_array_start, __init_array_end, __fini_array_start, and
4779 __fini_array_end as hidden.
4781 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
4783 * locale/programs/locale.c (main): Report an error if setlocale()
4784 fails [PR libc/2254].
4786 2003-05-21 Jakub Jelinek <jakub@redhat.com>
4788 * sysdeps/unix/sysv/linux/s390/system.c: New file.
4790 2003-05-21 Jakub Jelinek <jakub@redhat.com>
4792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
4793 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
4794 LOADARGS_6): Don't error if syscall argument is a string literal.
4795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
4796 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
4797 LOADARGS_6): Likewise.
4799 2003-05-21 Andreas Jaeger <aj@suse.de>
4801 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
4802 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
4803 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
4805 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
4809 * configure.in: Test for asm cfi directives.
4811 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
4813 2003-05-17 Andreas Jaeger <aj@suse.de>
4815 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
4817 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
4819 2003-05-16 Ulrich Drepper <drepper@redhat.com>
4821 * rt/Makefile (tests): Add tst-clock_nanosleep.
4822 * rt/tst-clock_nanosleep.c: New file.
4823 * posix/Makefile (tests): Add tst-nanosleep.
4824 * posix/tst-nanosleep.c: New file.
4826 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
4828 * include/features.h (__USE_XOPEN2K): Define also for
4829 _POSIX_C_SOURCE>=200112L.
4831 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
4832 SI_TKILL code into SI_USER.
4833 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
4835 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
4837 2003-05-15 Jakub Jelinek <jakub@redhat.com>
4839 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
4840 Remove sym argument, always use refsym.
4841 (__process_machine_rela): Adjust callers.
4842 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
4844 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
4846 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4848 2003-05-15 Ulrich Drepper <drepper@redhat.com>
4850 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
4851 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
4852 print numeric values.
4854 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
4856 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
4858 2003-05-14 Andreas Schwab <schwab@suse.de>
4860 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
4862 2003-05-14 Jakub Jelinek <jakub@redhat.com>
4864 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
4865 even if no DT_NEEDED is present.
4867 2003-05-13 David Mosberger <davidm@hpl.hp.com>
4869 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
4870 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
4871 __sigjmp_save) so we can't keep the saved unat value in a scratch
4872 register (r16). Use loc2 instead.
4874 2003-05-13 Ulrich Drepper <drepper@redhat.com>
4876 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
4877 binaries it has to be relocatable.
4879 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
4881 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
4883 * sysdeps/powerpc/bits/atomic.h
4884 (__arch_compare_and_exchange_bool_8_rel): Define.
4885 (__arch_compare_and_exchange_bool_16_rel): Define.
4886 (__ARCH_REL_INSTR): Define if not already defined.
4887 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
4888 (__arch_atomic_decrement_if_positive_32):
4889 Add "memory" to clobber list.
4890 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
4891 (__arch_compare_and_exchange_val_32_rel): Define.
4892 (__arch_atomic_exchange_32): Remove.
4893 (__arch_atomic_exchange_32_acq): Define.
4894 (__arch_atomic_exchange_32_rel): Define.
4895 (atomic_compare_and_exchange_val_rel): Define.
4896 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
4897 (atomic_exchange_rel): Define.
4898 * sysdeps/powerpc/powerpc32/bits/atomic.h
4899 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
4900 (__arch_compare_and_exchange_bool_32_rel): Define.
4901 (__arch_compare_and_exchange_bool_64_rel): Define.
4902 (__arch_compare_and_exchange_val_64_rel): Define.
4903 (__arch_atomic_exchange_64): Remove.
4904 (__arch_atomic_exchange_64_acq): Define.
4905 (__arch_atomic_exchange_64_rel): Define.
4906 * sysdeps/powerpc/powerpc64/bits/atomic.h
4907 (__arch_compare_and_exchange_bool_32_rel): Define.
4908 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
4909 (__arch_compare_and_exchange_bool_64_rel): Define.
4910 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
4911 (__arch_compare_and_exchange_val_64_rel): Define.
4912 (__arch_atomic_exchange_64): Remove.
4913 (__arch_atomic_exchange_64_acq): Define.
4914 (__arch_atomic_exchange_64_rel): Define.
4915 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
4916 (__arch_atomic_decrement_if_positive_64):
4917 Add "memory" to clobber list.
4918 [!UP](__ARCH_REL_INSTR): Define as lwsync.
4920 2003-05-11 Andreas Schwab <schwab@suse.de>
4922 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
4924 2003-05-11 Ulrich Drepper <drepper@redhat.com>
4926 * time/tst-strftime.c (do_test): Add tests for - flag.
4928 2003-05-11 Jim Meyering <jim@meyering.net>
4930 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
4931 the space-padded-by-default conversion specifiers, %e, %k, %l.
4933 2003-05-11 Andreas Schwab <schwab@suse.de>
4935 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
4937 2003-05-10 Ulrich Drepper <drepper@redhat.com>
4939 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
4940 already defined and when really needed.
4941 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4943 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
4945 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
4946 headers, add defines from kernel header, move it from here...
4947 * inet/netinet/igmp.h: ... to here.
4948 * inet/Makefile (headers): Add netinet/igmp.h.
4949 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
4950 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
4952 2003-05-10 Ulrich Drepper <drepper@redhat.com>
4954 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
4955 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
4957 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
4959 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
4960 (remove __THROW from possible cancellation points).
4962 2003-05-10 Ulrich Drepper <drepper@redhat.com>
4964 * posix/sched.h (CPU_SETSIZE): Define.
4966 2003-05-09 Ulrich Drepper <drepper@redhat.com>
4968 * Makeconfig (gnulib): Remove -lgcc_eh again.
4970 * posix/sched.h: Change prototypes of sched_getaffinity and
4971 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
4972 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
4973 * sysdeps/generic/sched_setaffinity.c: Likewise.
4974 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
4975 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
4976 __CPU_CLR, and __CPU_ISSET.
4977 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4978 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
4979 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
4981 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
4982 (atomic_exchange_rel): New #define.
4983 * sysdeps/ia64/bits/atomic.h: Likewise.
4984 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
4986 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
4987 * sysdeps/powerpc/bits/atomic.h: Likewise.
4988 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
4989 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
4990 * sysdeps/x86_64/bits/atomic.h: Likewise.
4991 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
4993 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
4995 2003-05-08 Ulrich Drepper <drepper@redhat.com>
4997 * malloc/thread-m.h: Remove special handling of thread_atfork if
4998 HAVE_register_atfork_malloc is defined.
5000 2003-05-07 Andreas Jaeger <aj@suse.de>
5002 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
5005 2003-05-06 Ulrich Drepper <drepper@redhat.com>
5007 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
5008 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5009 * libio/libioP.h: Declare _IO_old_init.
5010 * libio/genops.c (_IO_no_init): Split in two. New function
5013 2003-05-05 Ulrich Drepper <drepper@redhat.com>
5015 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
5017 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
5019 * include/unistd.h: Declare __libc_enable_secure_decided.
5020 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
5021 and AT_EGID. If all found, set __libc_enable_secure and
5022 __libc_enable_secure_decided.
5024 * sysdeps/generic/libc-start.c [!SHARED]: Call
5025 __libc_check_standard_fds after __libc_init_first.
5027 2003-05-05 Roland McGrath <roland@redhat.com>
5029 * Makerules (common-before-compile): New variable.
5030 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
5031 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
5032 to after all setting of before-compile.
5034 2003-05-05 Jakub Jelinek <jakub@redhat.com>
5036 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5037 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
5038 * sysdeps/powerpc/powerpc32/bits/atomic.h
5039 (__arch_compare_and_exchange_val_64_acq): Likewise.
5040 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5041 (__arch_compare_and_exchange_val_8_acq,
5042 __arch_compare_and_exchange_val_16_acq,
5043 __arch_compare_and_exchange_val_64_acq): Likewise.
5044 * sysdeps/sparc/sparc64/bits/atomic.h
5045 (__arch_compare_and_exchange_val_8_acq,
5046 __arch_compare_and_exchange_val_16_acq): Likewise.
5047 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5048 __arch_compare_and_exchange_val_16_acq,
5049 __arch_compare_and_exchange_val_64_acq): Likewise.
5050 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5051 (__arch_compare_and_exchange_val_64_acq): Likewise.
5052 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
5054 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
5056 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5057 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
5058 Return long instead of int.
5059 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
5060 0xfffff001u with -4095UL.
5062 2003-05-05 Andreas Jaeger <aj@suse.de>
5064 * sysdeps/x86_64/fpu_control.h: New from i386.
5066 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
5067 Define if not defined.
5069 * sunrpc/Makefile (generated-dirs): New variable.
5070 * resolv/Makefile (generated): New variable.
5072 2003-05-04 Roland McGrath <roland@redhat.com>
5074 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
5075 Depend on $(before-compile).
5077 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
5078 pattern rule. The implicit rule could be ruled out when $(objpfx)
5079 didn't exist at the time of its consideration (ugh!).
5081 * Makerules (+make-deps): Fix target matching.
5082 Use $(sed-remove-dotdot).
5084 2003-05-03 Ulrich Drepper <drepper@redhat.com>
5086 * nscd/nscd.c (main): Parse config file right after parsing
5087 parameters. Then, if get_stats is true, call receive_print_stats.
5088 Drop parameter from nscd_init call.
5089 (get_stats): New variable.
5090 (parse_opt): Set get_stats, don't call receive_print_stats here.
5091 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
5093 * nscd/connections.c (stat_user, stat_uid): New variables.
5095 (nscd_init): Don't read configuration file here. Drop parameter.
5096 (handle_request): Cleanup handling of non-database lookup requests.
5097 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
5098 Get UID of the specified user. Use xstrdup instead of strdup.
5099 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
5101 * nscd/Makefile (nscd-modules): Add xstrdup.
5102 * nscd/nscd.conf: Document stat-user entry.
5104 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
5106 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
5109 2003-04-22 Roland McGrath <roland@redhat.com>
5111 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
5112 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5113 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
5114 * elf/dl-support.c: Update defn.
5115 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
5116 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5117 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
5118 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
5119 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
5120 set, set up a link_map for the preloaded, prelinked object.
5122 2003-05-03 Roland McGrath <roland@redhat.com>
5124 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
5125 * stdio-common/Makefile: ... not here.
5127 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
5128 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
5130 2003-05-02 Ulrich Drepper <drepper@redhat.com>
5132 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
5134 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
5136 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
5137 comparing ftab elements.
5138 (_dl_unmap): Fix typo in test.
5139 (_dl_make_fptr): Fix typos introduced in last change.
5141 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
5142 original patch. Use non-exported symbols. Mark translatable
5143 strings. Pretty printing.
5145 2003-05-02 Roland McGrath <roland@redhat.com>
5147 * Makerules (do-stamp): Do $(make-target-directory).
5149 2003-04-07 H.J. Lu <hjl@gnu.org>
5151 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
5153 2003-04-03 H.J. Lu <hjl@gnu.org>
5155 * sysdeps/ia64/dl-fptr.c: Moved to ...
5156 * sysdeps/generic/dl-fptr.c: Here.
5158 * sysdeps/generic/dl-fptr.h: New.
5159 * sysdeps/ia64/dl-fptr.h: New.
5161 * sysdeps/ia64/dl-symaddr.c: Moved to ...
5162 * sysdeps/generic/dl-symaddr.c: here.
5164 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
5165 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
5166 (ia64_fdesc): Likewise.
5167 (ia64_fdesc_table): Likewise.
5168 (__ia64_make_fptr): Likewise.
5169 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
5170 with _dl_boot_fptr_table.
5171 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
5173 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
5175 2003-05-01 Roland McGrath <roland@redhat.com>
5177 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
5178 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5180 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5181 Use $(make-target-directory).
5182 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
5184 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
5185 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
5186 (compile-command.s, compile-command.c): Likewise.
5187 ($(objpfx)%.d): All such pattern rules removed.
5188 ($(+sysdir_pfx)sysd-rules): Don't generate them.
5189 ($(common-objpfx)dummy.d): Target removed.
5190 (make-dummy-dep): Variable removed.
5191 (generate-md5): Likewise.
5192 (%.d: %.dt): New pattern rule.
5193 (+depfiles): Use $(wildcard) function to get just existing *.d files
5194 and .d files for existing *.dt files.
5195 (common-clean): Remove all *.d and *.dt files.
5196 (before-compile): Add $(objpfx). when it doesn't exist,
5197 regardless of $(no_deps).
5198 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
5199 (rtld-depfiles): Use .os.d instead of .d names.
5200 Include existing *.d files and .d files for existing *.dt files.
5202 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
5203 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
5205 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
5206 Do s-*.d includes only if we have some syscall routines in this subdir.
5208 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
5209 @nobits. The former is accepted by gas on any ELF platform.
5211 2003-05-01 Ulrich Drepper <drepper@redhat.com>
5213 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
5215 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
5217 2003-04-29 Andreas Schwab <schwab@suse.de>
5219 * string/test-strcat.c (do_one_test): Fix attribute name.
5221 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
5223 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
5224 uc_flags long for all ABIs.
5226 2003-04-30 Andreas Jaeger <aj@suse.de>
5228 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
5229 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
5230 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
5231 Add bi-arch support.
5233 2003-04-30 Ulrich Drepper <drepper@redhat.com>
5235 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
5236 (__posix_memalign): Use __memalign_internal instead of memalign.
5238 2003-04-29 Roland McGrath <roland@redhat.com>
5240 * configure.in: Search for AUTOCONF unconditionally.
5241 Just don't complain about missing it under --without-cvs.
5243 * include/libc-symbols.h (__symbol_set_attribute): New macro,
5244 give hidden for [SHARED] and weak for [! SHARED].
5245 (symbol_set_declare): Use that. Never need weak_extern these days.
5246 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
5247 Depend on $(..)Makerules.
5249 2003-04-29 Ulrich Drepper <drepper@redhat.com>
5251 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
5252 variants of socket, bind, recvmsg, and sendto.
5254 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
5256 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
5257 * signal/sigaddset.c: Add libc_hidden_def.
5258 * signal/sigdelset.c: Likewise.
5260 2003-04-29 Jakub Jelinek <jakub@redhat.com>
5262 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
5263 to the end of the file.
5265 * configure.in: Change __oline__ to $LINENO.
5266 (HAVE_BUILTIN_REDIRECTION): New check.
5267 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
5268 * include/libc-symbols.h (libc_hidden_builtin_proto,
5269 libc_hidden_builtin_def, libc_hidden_builtin_weak,
5270 libc_hidden_builtin_ver): Define.
5271 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
5272 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
5273 strspn, strstr): Add libc_hidden_builtin_proto.
5274 * intl/plural.y: Include string.h.
5275 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
5276 libc_hidden_builtin_def.
5277 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
5278 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
5279 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
5280 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
5281 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
5282 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
5283 * sysdeps/alpha/memchr.S (memchr): Likewise.
5284 * sysdeps/alpha/memset.S (memset): Likewise.
5285 * sysdeps/alpha/strcat.S (strcat): Likewise.
5286 * sysdeps/alpha/strchr.S (strchr): Likewise.
5287 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
5288 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
5289 * sysdeps/alpha/strlen.S (strlen): Likewise.
5290 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
5291 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
5292 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
5293 * sysdeps/arm/memset.S (memset): Likewise.
5294 * sysdeps/arm/strlen.S (strlen): Likewise.
5295 * sysdeps/generic/memchr.c (memchr): Likewise.
5296 * sysdeps/generic/memcpy.c (memcpy): Likewise.
5297 * sysdeps/generic/memmove.c (memmove): Likewise.
5298 * sysdeps/generic/memset.c (memset): Likewise.
5299 * sysdeps/generic/strcat.c (strcat): Likewise.
5300 * sysdeps/generic/strchr.c (strchr): Likewise.
5301 * sysdeps/generic/strcmp.c (strcmp): Likewise.
5302 * sysdeps/generic/strcpy.c (strcpy): Likewise.
5303 * sysdeps/generic/strcspn.c (strcspn): Likewise.
5304 * sysdeps/generic/strlen.c (strlen): Likewise.
5305 * sysdeps/generic/strncmp.c (strncmp): Likewise.
5306 * sysdeps/generic/strncpy.c (strncpy): Likewise.
5307 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
5308 * sysdeps/generic/strrchr.c (strrchr): Likewise.
5309 * sysdeps/generic/strspn.c (strspn): Likewise.
5310 * sysdeps/generic/strstr.c (strstr): Likewise.
5311 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
5312 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
5313 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
5314 * sysdeps/i386/i586/memset.S (memset): Likewise.
5315 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
5316 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
5317 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
5318 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
5319 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
5320 * sysdeps/i386/i686/memset.S (memset): Likewise.
5321 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
5322 * sysdeps/i386/memchr.S (memchr): Likewise.
5323 * sysdeps/i386/memset.c (memset): Likewise.
5324 * sysdeps/i386/strchr.S (strchr): Likewise.
5325 * sysdeps/i386/strcspn.S (strcspn): Likewise.
5326 * sysdeps/i386/strlen.c (strlen): Likewise.
5327 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
5328 * sysdeps/i386/strrchr.S (strrchr): Likewise.
5329 * sysdeps/i386/strspn.S (strspn): Likewise.
5330 * sysdeps/ia64/memchr.S (memchr): Likewise.
5331 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
5332 * sysdeps/ia64/memmove.S (memmove): Likewise.
5333 * sysdeps/ia64/memset.S (memset): Likewise.
5334 * sysdeps/ia64/strcat.S (strcat): Likewise.
5335 * sysdeps/ia64/strchr.S (strchr): Likewise.
5336 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
5337 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
5338 * sysdeps/ia64/strlen.S (strlen): Likewise.
5339 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
5340 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
5341 * sysdeps/m68k/memchr.S (memchr): Likewise.
5342 * sysdeps/m68k/strchr.S (strchr): Likewise.
5343 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
5344 * sysdeps/mips/mips64/memset.S (memset): Likewise.
5345 * sysdeps/mips/memcpy.S (memcpy): Likewise.
5346 * sysdeps/mips/memset.S (memset): Likewise.
5347 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
5348 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
5349 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
5350 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
5351 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
5352 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
5353 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
5354 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
5355 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
5356 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
5357 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
5358 * sysdeps/powerpc/strcat.c (strcat): Likewise.
5359 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
5360 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
5361 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
5362 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
5363 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
5364 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
5365 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
5366 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
5367 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
5368 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
5369 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
5370 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
5371 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
5372 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
5373 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
5374 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
5375 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
5376 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
5377 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
5378 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
5379 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
5380 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
5381 * sysdeps/sh/memcpy.S (memcpy): Likewise.
5382 * sysdeps/sh/memset.S (memset): Likewise.
5383 * sysdeps/sh/strlen.S (strlen): Likewise.
5384 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
5385 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
5386 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
5387 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
5388 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
5389 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
5390 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
5391 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
5392 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
5393 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
5394 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
5395 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
5396 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
5397 * sysdeps/x86_64/memset.S (memset): Likewise.
5398 * sysdeps/x86_64/strcat.S (strcat): Likewise.
5399 * sysdeps/x86_64/strchr.S (strchr): Likewise.
5400 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
5401 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
5402 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
5403 * sysdeps/x86_64/strlen.S (strlen): Likewise.
5404 * sysdeps/x86_64/strspn.S (strspn): Likewise.
5405 * string/string-inlines.c: Move...
5406 * sysdeps/generic/string-inlines.c: ...here.
5407 (__memcpy_g, __strchr_g): Remove.
5408 (__NO_INLINE__): Define before including <string.h>,
5409 undefine after. Include bits/string.h and bits/string2.h.
5410 * sysdeps/i386/i486/string-inlines.c: New file.
5411 * sysdeps/i386/string-inlines.c: New file.
5412 * sysdeps/i386/i486/Versions: Remove.
5413 All GLIBC_2.1.1 symbols moved...
5414 * sysdeps/i386/Versions (libc): ...here.
5416 2003-04-29 Ulrich Drepper <drepper@redhat.com>
5418 * sysdeps/i386/fpu/Makefile: New file.
5419 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
5420 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
5421 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
5422 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
5425 2003-04-28 Ulrich Drepper <drepper@redhat.com>
5427 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
5428 * nscd/nscd_getpw_r.c: Likewise.
5429 * nscd/nscd_gethst_r.c: Likewise.
5431 2003-04-27 Ulrich Drepper <drepper@redhat.com>
5433 * nscd/pwdcache.c: Initialize .version element in result.
5434 * nscd/grpcache.c: Likewise.
5435 * nscd/pwdcache.c: Likewise.
5437 2003-04-27 Andreas Schwab <schwab@suse.de>
5439 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
5442 2003-04-27 Andreas Schwab <schwab@suse.de>
5444 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
5446 2003-04-27 Ulrich Drepper <drepper@redhat.com>
5448 * nscd/connections.c (client_queued): New variable.
5449 (nscd_run): Revamp the loop. Don't call poll except for cleanup
5450 threads. Keep track of the number of delays caused because of busy
5452 * nscd/nscd.h: Declare client_queued.
5453 * nscd/nscd_stat.c: Transmit and print client_queued information.
5455 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
5457 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
5458 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
5460 2003-04-26 Ulrich Drepper <drepper@redhat.com>
5462 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
5463 tracking of freed memory in static TLS block.
5464 * elf/Makefile: Add rules to build and run tst-tls13.
5465 * elf/tst-tls13.c: New file.
5466 * elf/tst-tlsmod13.c: New file.
5467 * elf/tst-tlsmod13a.c: New file.
5469 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
5471 * elf/dl-reloc.c: Pretty printing.
5473 2003-04-26 Roland McGrath <roland@redhat.com>
5475 * Makerules ($(common-objpfx)shlib.lds): New target.
5476 (common-generated): Add it.
5477 (build-shlib, build-module): Use that instead of generating every time.
5478 ($(common-objpfx)libc.so): Depend on it.
5479 (lib%.so rule): Likewise.
5480 (build-module-helper-objlist): Remove %.lds.
5481 (LDSEDCMD-c.so): Variable removed.
5482 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
5483 Depend on $(common-objpfx)shlib.lds.
5484 * dlfcn/Makefile ($(test-modules)): Likewise.
5486 2003-04-26 Roland McGrath <roland@frob.com>
5488 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
5490 2003-04-26 Andreas Schwab <schwab@suse.de>
5492 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
5494 2003-04-25 Ulrich Drepper <drepper@redhat.com>
5496 * nscd/cache.c (cache_search): Keep track of how many chain links
5497 we searched and update table statistics.
5498 (cache_add): Keep track of how many values are in the table.
5499 (prune_cache): Likewise. Keep track of locking success.
5500 Print messages about removed entries in separate pass.
5501 * nscd/connections.c (handle_request): Don't print debug message here.
5502 The caller will do it. Keep track of locking success.
5503 (nscd_run): Print debug message. Also print PID of the client process.
5504 * nscd/nscd.c (start_time): New variable.
5505 (main): Remember start time.
5506 * nscd/nscd.h: Declare start_time.
5507 (struct database): Add more members for new statistics.
5508 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
5511 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
5513 2003-04-22 Jakub Jelinek <jakub@redhat.com>
5515 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
5516 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
5517 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
5519 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
5520 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
5521 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
5522 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
5525 2003-04-24 Ulrich Drepper <drepper@redhat.com>
5527 * nss/getent.c: Implement alternative host database lookup via
5530 * include/ifaddrs.h: New file.
5531 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
5533 * resolv/netdb.h: ...here.
5534 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
5535 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5536 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
5539 2003-04-24 Roland McGrath <roland@redhat.com>
5541 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
5543 2003-04-24 Jakub Jelinek <jakub@redhat.com>
5545 * elf/dl-reloc.c (allocate_static_tls): Rename to...
5546 (_dl_allocate_static_tls): ... this function. No longer static.
5547 (CHECK_STATIC_TLS): Adjust.
5548 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
5549 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
5550 Add SYM_MAP argument.
5551 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
5552 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
5553 TLS relocs here. #ifdef out relocs which never appear in
5554 .gnu.conflict section from dl-conflict.c processing.
5555 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5556 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
5558 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
5559 out relocs which never appear in .gnu.conflict section from
5560 dl-conflict.c processing.
5561 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
5562 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5563 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
5564 Use r_type in RESOLVE macro.
5566 2003-04-23 Ulrich Drepper <drepper@redhat.com>
5568 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
5569 NULL. Remove code made redundant by this assumption.
5570 (__yp_unbind): Add call to free. Adjust all callers.
5572 * nis/ypclnt.c (yp_all): Free the dom_binding object after
5575 * grp/initgroups.c (getgrouplist): Don't copy too much into the
5576 user buffer if more groups are found than fit into it.
5578 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
5581 2003-04-23 Jakub Jelinek <jakub@redhat.com>
5583 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
5584 not rc == errno. Use extend_alloca.
5586 * elf/tst-tls12.c (main): Fix declaration.
5587 * elf/tst-tls10.c (dummy): Make hidden instead of static.
5588 * elf/tst-tlsmod7.c (dummy): Likewise.
5589 * elf/tst-tlsmod8.c (dummy): Likewise.
5590 * elf/tst-tlsmod9.c (dummy): Likewise.
5592 2003-04-22 Roland McGrath <roland@redhat.com>
5594 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
5595 (open_not_cancel): Make last argument non-optional.
5596 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
5597 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
5598 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5600 * include/tls.h: Protect against multiple inclusion.
5602 2003-04-22 Ulrich Drepper <drepper@redhat.com>
5604 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
5605 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
5606 open_socket. Not static anymore.
5607 (nscd_gethst_r): Use __nscd_open_socket.
5608 * nscd/nscd_getgr_r.c (open_socket): Removed.
5609 (nscd_getgr_r): Use __nscd_open_socket.
5610 * nscd/nscd_getpw_r.c (open_socket): Removed.
5611 (nscd_getpw_r): Use __nscd_open_socket.
5613 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
5614 * nscd/connections.c (handle_request): Add cast to avoid warning.
5616 2003-04-21 Ulrich Drepper <drepper@redhat.com>
5618 * signal/sigfillset.c: Moved to...
5619 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
5620 do not set the corresponding bit.
5622 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
5624 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
5625 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
5626 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
5627 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
5628 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
5630 2003-04-20 Ulrich Drepper <drepper@redhat.com>
5632 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
5633 first syscall parameter to const char*.
5635 2003-04-19 Ulrich Drepper <drepper@redhat.com>
5637 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
5639 * configure.in: Add AC_PROG_CXX.
5640 * config.make.in (CXX): Define.
5642 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
5643 __len to size_t to avoid warnings.
5645 2003-04-18 Jes Sorensen <jes@wildopensource.com>
5647 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
5649 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5651 2003-04-19 Ulrich Drepper <drepper@redhat.com>
5653 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
5654 UNREGISTER_ATFORK if d == NULL.
5656 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
5657 * dirent/dirent.h: Likewise.
5658 * dlfcn/dlfcn.h: Likewise.
5659 * grp/grp.h: Likewise.
5660 * iconv/iconv.h: Likewise.
5661 * io/fcntl.h: Likewise.
5662 * io/ftw.h: Likewise.
5663 * libio/stdio.h: Likewise.
5664 * misc/sys/mman.h: Likewise.
5665 * misc/sys/select.h: Likewise.
5666 * misc/sys/syslog.h: Likewise.
5667 * misc/sys/uio.h: Likewise.
5668 * posix/spawn.h: Likewise.
5669 * posix/unistd.h: Likewise.
5670 * posix/sys/wait.h: Likewise.
5671 * pwd/pwd.h: Likewise.
5672 * resolv/netdb.h: Likewise.
5673 * rt/aio.h: Likewise.
5674 * shadow/shadow.h: Likewise.
5675 * signal/signal.h: Likewise.
5676 * socket/sys/socket.h: Likewise.
5677 * stdlib/stdlib.h: Likewise.
5678 * streams/stropts.h: Likewise.
5679 * string/string.h: Likewise.
5680 * sysdeps/gnu/utmpx.h: Likewise.
5681 * sysvipc/sys/msg.h: Likewise.
5682 * termios/termios.h: Likewise.
5683 * time/time.h: Likewise.
5684 * wcsmbs/wchar.h: Likewise.
5685 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
5687 * misc/daemon.c: Likewise.
5688 * sysdeps/generic/backtracesymsfd.c: Likewise.
5689 * sysdeps/generic/check_fds.c: Likewise.
5690 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
5691 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
5692 * sysdeps/generic/not-cancel.h: New file.
5693 * csu/Makefile (distribute): Add not-cancel.h.
5694 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
5695 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
5696 for assert.c and assert-perr.c to include <fatal-prepare.h>.
5697 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
5699 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
5700 errno and unlink first.
5702 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
5704 2003-04-18 Ulrich Drepper <drepper@redhat.com>
5706 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
5707 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
5709 2003-04-17 Ulrich Drepper <drepper@redhat.com>
5711 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
5713 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
5714 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
5717 * signal/Makefile (tests): Add tst-sigsimple.
5718 * signal/tst-sigsimple.c: New file.
5720 2003-04-16 Jakub Jelinek <jakub@redhat.com>
5722 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
5724 (tests): Add tst-tls1[0-2].
5725 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
5726 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
5727 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
5728 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
5729 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
5730 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
5731 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
5732 * elf/tst-tls10.c: New test.
5733 * elf/tst-tls11.c: New test.
5734 * elf/tst-tls12.c: New test.
5735 * elf/tst-tls10.h: New file.
5736 * elf/tst-tlsmod7.c: New file.
5737 * elf/tst-tlsmod8.c: New file.
5738 * elf/tst-tlsmod9.c: New file.
5739 * elf/tst-tlsmod10.c: New file.
5740 * elf/tst-tlsmod11.c: New file.
5741 * elf/tst-tlsmod12.c: New file.
5743 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
5745 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
5746 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
5747 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
5749 2003-04-17 Ulrich Drepper <drepper@redhat.com>
5751 * posix/regex.h: Include <sys/types.h>.
5753 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
5754 The signal number must be checked.
5755 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
5756 The signal number must be checked [PR libc/5004].
5758 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
5759 don't do anything fancy.
5761 * sysdeps/generic/bits/libc-lock.h: Define
5762 __rtld_lock_define_initialized_recursive.
5764 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
5765 contacting nscd if NOT_USENSCD_NAME > 0.
5766 * nss/nsswitch.c (__nss_disable_nscd): New function.
5767 * nss/nsswitch.h: Declare it.
5768 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
5769 * nscd/nscd.c (main): Call __nss_disable_nscd.
5771 2003-04-16 Ulrich Drepper <drepper@redhat.com>
5773 * stdio-common/perror.c (perror): We don't need to set the offset
5774 to _IO_pos_bad, this is how streams are initialized.
5776 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
5777 (time_output): If necessary, allocate new buffer for .name string if
5778 padding is required.
5780 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
5781 before copying. This might leave holes in the list. Adjust
5782 pointers if necessary.
5783 (netlink_receive): Allocate only one block.
5784 (free_netlink_handle): Adjust appropriately.
5785 (getifaddrs): Lots of cleanups.
5787 * string/test-strncpy.c (do_one_test): Mark start and stop as
5789 * string/test-memchr.c: Likewise.
5790 * string/test-memcmp.c: Likewise.
5791 * string/test-memcpy.c: Likewise.
5792 * string/test-memmove.c: Likewise.
5793 * string/test-memset.c: Likewise.
5794 * string/test-strcat.c: Likewise.
5795 * string/test-strchr.c: Likewise.
5796 * string/test-strcmp.c: Likewise.
5797 * string/test-strcpy.c: Likewise.
5798 * string/test-strlen.c: Likewise.
5799 * string/test-strncmp.c: Likewise.
5800 * string/test-strpbrk.c: Likewise.
5801 * string/test-strrchr.c: Likewise.
5802 * string/test-strspn.c: Likewise.
5804 2003-04-15 Roland McGrath <roland@redhat.com>
5806 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
5808 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
5809 INTUSE(__register_frame_info_bases).
5811 2003-04-15 Ulrich Drepper <drepper@redhat.com>
5813 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
5814 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
5815 AT_SYSINFO_EH_FRAME. Adjust string width.
5816 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
5817 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
5818 Add _dl_sysinfo_eh_frame field.
5819 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
5820 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
5822 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
5823 if _dl_sysinfo_eh_frame is non-NULL.
5825 * Makeconfig (gnulib): Add -lgcc_eh.
5827 * config.h.in: Define HAVE_FORCED_UNWIND.
5829 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
5831 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
5832 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
5834 2003-04-15 Jakub Jelinek <jakub@redhat.com>
5836 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
5837 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
5838 against local symbol in conflict processing.
5840 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
5842 * sysdeps/powerpc/bits/atomic.h
5843 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
5844 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
5846 (__arch_compare_and_exchange_val_32_acq): Define.
5847 (atomic_compare_and_exchange_val_acq): Define.
5849 2003-04-15 Ulrich Drepper <drepper@redhat.com>
5851 * include/atomic.h: Pretty printing.
5853 2003-04-14 Ulrich Drepper <drepper@redhat.com>
5855 * stdio-common/vfscanf.c: Add casts to avoid warnings.
5857 2003-04-14 Jakub Jelinek <jakub@redhat.com>
5859 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
5860 * sysdeps/x86_64/bits/atomic.h: Likewise.
5862 2003-04-14 Ulrich Drepper <drepper@redhat.com>
5864 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
5865 POPARGS_1 to emit labels for the mov instructions.
5867 2003-04-14 Jakub Jelinek <jakub@redhat.com>
5869 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
5871 2003-04-14 Roland McGrath <roland@redhat.com>
5873 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
5876 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
5878 2003-04-14 Ulrich Drepper <drepper@redhat.com>
5880 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
5881 position. Reported by jreiser@BitWagon.com.
5883 2003-04-13 Ulrich Drepper <drepper@redhat.com>
5885 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
5886 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
5887 * sysdeps/generic/unwind-dw2.c: Likewise.
5888 * sysdeps/generic/unwind-pe.h: Likewise.
5890 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
5892 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
5893 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
5894 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
5895 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
5896 (mcontext_t): Make it match the 32-bit mips kernel in o32.
5897 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
5898 the mips and mips64 headers.
5899 (struct user): Port to n32/n64.
5901 2003-04-12 Ulrich Drepper <drepper@redhat.com>
5903 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
5906 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
5907 __ASSUME_VSYSCALL is defined don't add restorer.
5908 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5909 __ASSUME_VSYSCALL for 2.5.53.
5911 2003-04-11 Ulrich Drepper <drepper@redhat.com>
5913 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
5914 Remove HAVE_CANCELBUF code. Replace with code using the new
5915 initializers for unwind-based cleanup handling.
5916 * sysdeps/generic/unwind.h: Update from latest gcc version.
5917 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
5918 places to allow unwind data generation.
5919 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
5920 * sysdeps/x86_64/bits/setjmp.h: Likewise.
5921 * sysdeps/sh/bits/setjmp.h: Likewise.
5922 * sysdeps/powerpc/bits/setjmp.h: Likewise.
5923 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
5924 * sysdeps/alpha/bits/setjmp.h: Likewise.
5926 2003-04-11 Roland McGrath <roland@redhat.com>
5928 * csu/tst-empty.c: New file.
5929 * csu/Makefile (tests, tests-static): Add it.
5931 2003-04-11 Jakub Jelinek <jakub@redhat.com>
5933 * string/test-strcmp.c (do_random_tests): Test whether return value
5934 has been promoted to wordsize if the ABI requires caller to do so.
5935 * string/test-strncmp.c (do_random_tests): Likewise.
5936 * string/test-memcmp.c (do_random_tests): Likewise.
5938 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
5941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5942 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
5943 is not defined, but the prctl constants are.
5945 * string/tester.c (test_strcmp): Fix a typo.
5947 2003-04-09 Ulrich Drepper <drepper@redhat.com>
5949 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
5950 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
5952 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
5954 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
5956 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
5958 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
5960 * sysdeps/mips/mips64/memset.S: Likewise.
5961 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
5962 Use t0 instead of t4 as temporary.
5964 2003-04-07 Ulrich Drepper <drepper@redhat.com>
5966 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
5967 feof_unlocked instead of feof.
5968 (add_dir): Ignore trailing whitespace.
5970 2003-04-07 Jakub Jelinek <jakub@redhat.com>
5972 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
5973 sum of SIZE1 and SIZE2 arguments.
5975 2003-04-06 Ulrich Drepper <drepper@redhat.com>
5977 * iconv/iconv_prog.c (process_block): Don't print message about
5978 invalid input if the -c option is used.
5979 (main): Correctly append IGNORE string for -c option.
5981 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5983 * sysdeps/sh/bits/atomic.h: Moved to ...
5984 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
5985 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
5987 (atomic_bit_set, atomic_bit_test_set): Likewise.
5988 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
5990 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
5992 2003-04-06 Roland McGrath <roland@redhat.com>
5994 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
5995 restoration as done for setcontext yesterday.
5997 2003-04-06 Jakub Jelinek <jakub@redhat.com>
5999 * elf/rtld.c: Revert 2003-03-14 change.
6000 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
6001 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
6003 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6005 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
6007 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6008 Always initialize *signgamp before returning an error.
6010 2003-04-05 Roland McGrath <roland@redhat.com>
6012 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
6013 below the stack pointer even if switching to the same context we are
6016 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6018 * catgets/gencat.c (read_input_file): Make sure that \n is not
6019 alone on the line before testing for continuation.
6021 * math/test-tgmath.c (compile_test): Initialize c.
6023 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
6025 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
6026 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
6027 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
6029 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
6030 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
6031 structure on n32 as well.
6032 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
6033 data types on n32 and n64.
6035 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6037 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
6040 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
6041 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
6042 instead of __register_atfork.
6044 2003-04-05 Jakub Jelinek <jakub@redhat.com>
6046 * stdio-common/reg-printf.c (__register_printf_function): Calloc
6047 instead of malloc __printf_arginfo_table and __printf_function_table.
6048 Reported by John Reiser <jreiser@BitWagon.com>.
6050 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
6052 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
6053 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
6055 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
6058 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
6060 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
6063 2003-04-03 Roland McGrath <roland@redhat.com>
6065 * configure.in: Fix up use of compilation flags to match the build:
6066 For .s files, $ASFLAGS;
6067 For .S files, $CPPFLAGS $ASFLAGS;
6068 For .c files, $CFLAGS $CPPFLAGS;
6069 when linking, add $LDFLAGS.
6070 * configure: Regenerated.
6072 2003-04-03 Jakub Jelinek <jakub@redhat.com>
6074 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
6075 for atomic_compare_and_exchange_bool_acq failure.
6077 2003-04-03 Ulrich Drepper <drepper@redhat.com>
6079 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
6080 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
6081 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
6082 Remove declaration of pthread_atfork.
6084 2003-04-02 Ulrich Drepper <drepper@redhat.com>
6086 * locale/iso-639.def: Add many more languages from the current ISO 639.
6088 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
6089 * sysdeps/generic/semtimedop.c: New file.
6090 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
6091 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
6092 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6093 * sysvipc/Makefile (routines): Add semtimedop.
6094 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
6095 * sysvipc/sys/sem.h: Declare semtimedop.
6097 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
6099 * configure.in: Check for __register_frame_info in both
6101 * configure: Regenerated.
6103 2003-04-01 Roland McGrath <roland@redhat.com>
6105 * scripts/abilist.awk: Allow dots in soname suffix.
6107 * scripts/abilist.awk (emit): Fix bailout condition.
6109 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6111 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
6114 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
6115 register as input to asm.
6117 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6119 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
6121 2003-04-01 Andreas Jaeger <aj@suse.de>
6123 * configure.in: Output as/ld as name if version is too old.
6125 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
6127 * configure.in: Don't require an installed C library in the test
6128 for ".set" assembler support.
6130 2003-03-31 Roland McGrath <roland@redhat.com>
6132 * signal/tst-sigset.c: New file.
6133 * signal/Makefile (tests): Add it.
6135 2003-03-31 Ulrich Drepper <drepper@redhat.com>
6137 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
6138 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
6139 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
6140 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
6141 (__SIGRTMAX): Adjust accordingly.
6142 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
6143 second compatibility symbol set.
6144 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
6146 2003-03-31 Andreas Schwab <schwab@suse.de>
6148 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
6150 (atomic_decrement_and_test): Fix test.
6152 2003-03-31 Jakub Jelinek <jakub@redhat.com>
6154 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
6155 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
6156 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
6157 * sysdeps/sparc/sparc32/atomicity.h: Removed.
6158 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
6159 * sysdeps/sparc/sparc64/atomicity.h: Removed.
6161 2003-03-30 Roland McGrath <roland@redhat.com>
6163 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
6165 * intl/po2test.sed: Anchor substitution regexps to fix last change.
6167 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
6169 * intl/po2test.sed: Unify the transformations for msgid and msgstr
6170 and remove a useless s/// command.
6172 2003-03-27 David Mosberger <davidm@hpl.hp.com>
6174 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
6175 directive into empty .prologue region to ensure that call-chain
6176 is terminated even for the first instruction.
6178 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
6179 to terminate call-chain right from the get-go.
6181 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
6182 stop bit between compare & branch.
6184 2003-03-29 Ulrich Drepper <drepper@redhat.com>
6186 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
6187 point correctly [PR libc/4993].
6189 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
6190 netlink_open calls if netlink is known to not be available.
6192 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
6194 * configure.in: Add mips64* support.
6195 * sysdeps/mips/bits/endian.h: Make it bi-endian.
6196 * sysdeps/mips/mipsel/bits/endian.h: Removed.
6197 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
6198 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
6199 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
6200 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
6201 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
6202 * sysdeps/mips/Implies: Moved wordsize-32 to...
6203 * sysdeps/mips/mips32/Implies: New file.
6204 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
6206 (ret, PSEUDO_END): Moved past END.
6207 (PSEUDO): Moved to...
6208 * sysdeps/unix/mips/mips32/sysdep.h: New file.
6209 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
6210 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
6211 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
6212 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
6213 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
6215 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
6218 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
6220 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
6221 * inet/test-ifaddrs.c: Allow AF_PACKET.
6222 * sysdeps/unix/sysv/linux/kernel-features.h: Add
6223 __ASSUME_NETLINK_SUPPORT.
6225 2003-03-28 Ulrich Drepper <drepper@redhat.com>
6227 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
6229 2003-03-26 H.J. Lu <hjl@gnu.org>
6231 * elf/vismod.h (getvarlocal1): Return const char **.
6232 (getvarinmod1): Likewise.
6233 (getvaritcpt1): Likewise.
6234 (getvarlocal2): Likewise.
6235 (getvarinmod2): Likewise.
6236 (getvaritcpt2): Likewise.
6237 (getvaritcpt3): Likewise.
6238 * elf/vismain.c (do_test): Adjusted.
6239 * elf/vismod1.c (getvarlocal1): Return address.
6240 (getvarinmod1): Likewise.
6241 (getvaritcpt1): Likewise.
6242 * elf/vismod2.c (getvarlocal2): Likewise.
6243 (getvarinmod2): Likewise.
6244 (getvaritcpt2): Likewise.
6245 * elf/vismod3.c (getvaritcpt3): Likewise.
6247 2003-03-28 Roland McGrath <roland@redhat.com>
6249 * elf/vismain.c (do_test): Print both addresses when they don't match.
6251 * scripts/abilist.awk: If given -v filename_regexp and/or -v
6252 libname_regexp when parsing names, then produce output only
6253 for those matching the given regexps. In combine mode, save all
6254 stanzas for a final sorting by stanza header at the end.
6255 Emit a blank line between stanzas.
6257 * scripts/abilist.awk: When given -v combine=1, do parse_names and
6258 emit a single output stream with lib name in stanza header lines.
6260 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
6262 2003-03-27 Roland McGrath <roland@redhat.com>
6264 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
6265 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
6267 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6269 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
6270 Return old value. Make asm output reg constraint earlyclobber.
6272 (__arch_compare_and_exchange_8_acq): ... this.
6273 (__arch_compare_and_exchange_val_16_acq):
6274 Return old value. Make asm output reg constraint earlyclobber.
6276 (__arch_compare_and_exchange_16_acq): ... this.
6277 (__arch_compare_and_exchange_val_32_acq):
6278 Return old value. Make asm output reg constraint earlyclobber.
6280 (__arch_compare_and_exchange_32_acq): ... this.
6281 (__arch_compare_and_exchange_val_64_acq):
6283 (__arch_compare_and_exchange_64_acq): ... this.
6284 (atomic_exchange_and_add): Use local variables and
6285 __arch_compare_and_exchange_val_64_acq.
6286 (atomic_add): Likewise.
6287 (atomic_add_negative, atomic_add_zero): Use local variables.
6289 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
6291 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
6293 2003-03-27 Ulrich Drepper <drepper@redhat.com>
6295 * Makefile: Remove libmd5crypt goal.
6297 2003-03-25 Jakub Jelinek <jakub@redhat.com>
6299 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
6300 special handling of relocations against local symbols.
6302 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
6304 * sysdeps/powerpc/bits/atomic.h
6305 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
6306 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
6307 Define PPC64 specific version.
6308 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
6309 Change (mem) constraint to "b".
6310 [__powerpc64__] (__arch_atomic_exchange_and add_64):
6311 Replace addi with add. Change (value) contraint to "r".
6312 Change (mem) constraint to "b".
6313 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
6314 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
6315 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
6316 (__arch_atomic_decrement_if_positive_32): New macro.
6317 (atomic_decrement_if_positive): Use __arch* macros.
6319 2003-03-27 Jakub Jelinek <jakub@redhat.com>
6321 * sysdeps/ia64/fpu/libm-test-ulps: Update.
6323 2003-03-27 Roland McGrath <roland@redhat.com>
6325 * scripts/rpm2dynsym.sh: New file.
6326 * Makefile (distribute): Add it.
6328 2003-03-27 David Mosberger <davidm@hpl.hp.com>
6330 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
6331 ar.unat before returning. Add missing .mem.offset directives
6332 to ensure file gets assembled without warnings.
6333 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6335 2003-03-27 Jakub Jelinek <jakub@redhat.com>
6337 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
6338 Return -1 instead of 0 if clock_getres failed.
6340 2003-03-27 Roland McGrath <roland@redhat.com>
6342 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
6343 header lines and write out foo.symlist files for each foo.so.NN listed.
6345 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
6346 This symbol is exported, and we don't want to hide it.
6347 Add libc_hidden_proto instead.
6348 (_IO_file_jumps): Add libc_hidden_proto.
6349 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
6351 * libio/fileops.c (_IO_file_jumps): Likewise.
6352 * libio/stdfiles.c: Don't use INTUSE on them.
6353 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
6354 * libio/iofopen.c (__fopen_internal): Likewise.
6355 * libio/freopen.c (freopen): Likewise.
6356 * libio/freopen64.c (freopen64): Likewise.
6357 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6359 * Makerules (check-abi) [$(enable-check-abi) = warn]:
6360 Ignore exit status from diff.
6361 * configure.in (enable_check_abi): Document possible value "warn".
6362 Change default to no for now.
6363 * configure: Regenerated.
6365 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
6366 macro calls and a #include <stub-tag.h> at the end.
6367 * Makerules ($(objpfx)stubs): Tweak sed commands.
6369 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
6370 caller column for *xattr syscalls, since they are in sysdeps/generic.
6372 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
6373 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
6375 2003-03-26 Roland McGrath <roland@redhat.com>
6377 * Makerules (check-abi-config): Use /thread instead of /tls when
6378 use-thread and not just use-tls is set.
6380 * Makerules (update-abi): Put quotes around $(update-abi-config).
6382 * elf/Makefile (check-abi): Depend on check-abi-ld.
6383 (update-abi): Depend on update-abi-ld.
6385 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
6387 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
6388 do not check for errors (unless testing for 32bit variant).
6389 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
6391 2003-03-27 Philip Blundell <philb@gnu.org>
6393 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
6394 unconditional mov. Remove nop.
6396 * sysdeps/unix/sysv/linux/kernel-features.h
6397 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
6398 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
6399 when __ASSUME_VFORK_SYSCALL is defined.
6400 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
6401 __ASSUME_MMAP2_SYSCALL.
6402 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
6403 __ASSUME_REALTIME_SIGNALS.
6405 2003-03-26 Ulrich Drepper <drepper@redhat.com>
6407 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
6408 only if DL_NO_COPY_RELOCS is not defined.
6409 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
6411 2003-03-26 Roland McGrath <roland@redhat.com>
6413 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
6414 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
6415 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
6416 (sysdep_routines): Add stub-syscalls.
6417 ($(objpfx)stub-syscalls.c): New target.
6418 (generated): Add stub-syscalls.c.
6420 * tls.make.c: Also define use-tls according to USE_TLS macro.
6422 2003-03-26 Ulrich Drepper <drepper@redhat.com>
6424 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
6425 no-op padding element.
6426 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6427 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6428 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6429 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6431 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
6433 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
6434 condition check for the return value of getgroups32.
6436 2003-03-26 Jakub Jelinek <jakub@redhat.com>
6438 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
6440 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
6441 PSEUDO_END_NOERRNO): Define.
6442 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
6443 Define to PSEUDO_END.
6445 2003-03-26 Ulrich Drepper <drepper@redhat.com>
6447 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
6449 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
6451 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
6452 * iconvdata/bug-iconv4.c: New file.
6453 * iconvdata/Makefile (tests): Add bug-iconv4.
6455 2003-03-25 H.J. Lu <hjl@gnu.org>
6457 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
6459 (_dl_lookup_versioned_symbol): Likewise.
6461 2003-03-26 Jakub Jelinek <jakub@redhat.com>
6463 * csu/tst-atomic.c (do_test): Add some new
6464 atomic_compare_and_exchange_val_acq, atomic_add_zero,
6465 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
6466 * include/atomic.h (atomic_add_negative, atomic_add_zero):
6467 Prefix local variable so that it doesn't clash with the one
6468 in atomic_exchange_and_add.
6469 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
6471 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
6472 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
6473 value into register.
6474 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
6475 Cast newval to long.
6476 * sysdeps/x86_64/bits/atomic.h
6477 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
6479 (atomic_exchange): Cast newvalue to long if sizeof == 8.
6480 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
6481 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6482 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
6484 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
6486 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
6487 bit from backtrace addresses.
6489 2003-03-21 Andreas Schwab <schwab@suse.de>
6491 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
6494 2003-03-25 Roland McGrath <roland@redhat.com>
6496 * config.make.in (enable-check-abi): New variable from configure.
6497 * configure.in (enable_check_abi): New substituted variable,
6498 controlled by --{enable,disable}-check-abi (default yes).
6499 * configure: Regenerated.
6500 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
6501 on check-abi dependency.
6503 2003-03-26 Andreas Schwab <schwab@suse.de>
6505 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
6506 * include/atomic.h: Likewise.
6508 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
6510 2003-03-25 Roland McGrath <roland@redhat.com>
6512 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
6513 (__arch_atomic_exchange_64): New macro.
6514 (atomic_exchange): Use them.
6515 (__arch_atomic_exchange_and_add_32): New macro.
6516 (__arch_atomic_exchange_and_add_64): New macro.
6517 (atomic_exchange_and_add): Use them.
6518 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
6520 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
6522 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
6524 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
6526 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
6527 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
6528 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
6529 to decide whether to add padding.
6530 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
6531 to decide whether to add padding.
6532 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
6533 old_kernel_sigaction): Likewise.
6535 2003-03-25 Ulrich Drepper <drepper@redhat.com>
6537 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
6538 atomic_add_zero were supposed to do.
6539 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
6542 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
6543 This matches the new timer implementation.
6544 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
6546 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
6548 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
6549 timer info for what the kernel provides these days.
6550 (struct sigevent): Add _tid field.
6551 Define SIGEV_THREAD_ID.
6552 Remove struct __pthread_attr_s forward declaration.
6553 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
6554 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6555 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6556 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6558 * Versions.def (librt): Add GLIBC_2.3.3.
6560 * abilist/libpthread.abilist: Update for nptl.
6562 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
6564 * inet/netinet/in.h: Add IPPROTO_SCTP.
6566 2003-03-24 Ulrich Drepper <drepper@redhat.com>
6568 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
6570 2003-03-24 Philip Blundell <philb@gnu.org>
6572 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
6573 Remove a1 from clobber list.
6575 2003-03-24 Ulrich Drepper <drepper@redhat.com>
6577 * timezone/antarctica: Update from tzdata2003a.
6578 * timezone/asia: Likewise.
6579 * timezone/australasia: Likewise.
6580 * timezone/europe: Likewise.
6581 * timezone/iso3166.tab: Likewise.
6582 * timezone/northamerica: Likewise.
6583 * timezone/southamerica: Likewise.
6584 * timezone/zone.tab: Likewise.
6586 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
6588 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
6590 2003-03-23 Ulrich Drepper <drepper@redhat.com>
6592 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
6593 unwanted expansion by definining to ret. Patch by Ian Wienand.
6595 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
6596 the parameter description to denote no error checking. Generate
6597 appropriate pseudo asm code.
6598 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
6599 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
6600 getpgrp, and getppid with 'E'.
6601 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
6602 PSEUDO_END_NOERRNO, and ret_NOERRNO.
6603 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6604 * sysdeps/unix/sysdep.h: Likewise.
6605 * sysdeps/unix/alpha/sysdep.h: Likewise.
6606 * sysdeps/unix/sparc/sysdep.h: Likewise.
6607 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
6608 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
6609 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
6610 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6611 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
6612 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6613 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6614 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6615 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
6616 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6617 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6619 2003-03-23 Roland McGrath <roland@redhat.com>
6621 * Makeconfig (+includes): Don't use $(last-includes).
6623 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
6625 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
6626 * sysdeps/unix/sysv/linux/configure: Rebuilt.
6628 2003-03-23 Jakub Jelinek <jakub@redhat.com>
6630 * sysdeps/alpha/fpu/libm-test-ulps: Update.
6631 * sysdeps/arm/libm-test-ulps: Update.
6632 * sysdeps/hppa/fpu/libm-test-ulps: Update.
6633 * sysdeps/ia64/fpu/libm-test-ulps: Update.
6634 * sysdeps/mips/fpu/libm-test-ulps: Update.
6635 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
6636 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6637 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6638 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6639 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
6640 * sysdeps/s390/fpu/libm-test-ulps: Update.
6641 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6643 2003-03-22 Roland McGrath <roland@redhat.com>
6645 * include/atomic.h: Put parens around all macro arguments.
6646 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
6647 (atomic_compare_and_exchange_val_acq): Use it.
6648 (atomic_compare_and_exchange_bool_acq): Likewise.
6649 (atomic_increment_and_test): Invert sense of test.
6650 (atomic_decrement_and_test): Likewise.
6651 * csu/tst-atomic.c: Update those tests to match.
6653 2003-03-22 Jakub Jelinek <jakub@redhat.com>
6655 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
6656 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
6657 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
6658 __oldval variable in the macro, since it might be macro argument.
6659 (atomic_decrement_if_positive): Initialize __memp, remove setting
6660 of non-existent variable.
6661 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
6662 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
6663 using atomic_compare_and_exchange_val_acq.
6664 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
6665 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
6667 (__arch_compare_and_exchange_bool_8_acq): ... this.
6668 (__arch_compare_and_exchange_val_16_acq): Renamed from...
6669 (__arch_compare_and_exchange_bool_16_acq): ... this.
6670 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
6672 (__arch_compare_and_exchange_bool_32_acq): ... this.
6673 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
6675 (__arch_compare_and_exchange_bool_64_acq): ... this.
6676 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
6677 variables types instead of assuming int.
6678 Change prefix of local variables to __arch.
6679 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
6681 (atomic_compare_and_exchange_val_acq,
6682 atomic_compare_and_exchange_bool_acq): Define.
6684 * csu/tst-atomic.c: New test.
6685 * csu/tst-atomic-long.c: New test.
6686 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
6688 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
6690 * sysdeps/s390/Versions: Add trailing newline.
6692 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
6693 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
6695 2003-03-22 Andreas Schwab <schwab@suse.de>
6697 * sysdeps/m68k/fpu/libm-test-ulps: Update.
6699 * sysdeps/m68k/m68020/bits/atomic.h: New file.
6700 * sysdeps/m68k/m68020/atomicity.h: Removed.
6702 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
6704 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
6705 data structures and macros. Protect from multiple inclusion.
6707 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
6710 2003-03-21 Andreas Jaeger <aj@suse.de>
6712 * sysdeps/i386/fpu/libm-test-ulps: Update.
6714 * math/libm-test.inc (tgamma_test): Recompute some constants with
6715 36 digits precision.
6716 (lgamma_test): Likewise.
6717 (ccos_test): Likewise.
6718 (ccosh_test): Likewise.
6719 (clog10_test): Likewise.
6720 (csin_test): Likewise.
6721 (csinh_test): Likewise.
6722 (ctan_test): Likewise.
6723 (ctanh_test): Likewise.
6725 2003-03-19 Jakub Jelinek <jakub@redhat.com>
6727 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
6729 2003-03-21 Roland McGrath <roland@redhat.com>
6731 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
6732 constraint to permit non-constant BIT argument.
6733 (atomic_bit_test_set): Likewise.
6734 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
6735 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
6736 For quadword case, use "i" constraint if __builtin_constant_p and < 32
6737 or "r" constraint otherwise.
6739 * configure.in: Move AC_PROG_CC and other program-finding before all
6741 * configure: Regenerated.
6743 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
6745 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
6746 unaligned copying of 8-15 bytes. From Chris Demetriou
6747 <cgd@broadcom.com>. Fix label names.
6748 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
6749 change as to memcpy.S.
6750 * sysdeps/mips/memcpy.S: Formatting changes.
6751 * sysdeps/mips/memset.S: Likewise.
6753 2003-03-21 Roland McGrath <roland@redhat.com>
6755 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
6757 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
6759 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
6760 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
6762 2003-03-21 Roland McGrath <roland@redhat.com>
6764 * sysdeps/i386/i486/bits/atomic.h
6765 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
6766 version of the macro to avoid compile-time warnings.
6767 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
6768 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
6769 (atomic_increment, atomic_decrement): Likewise.
6771 2003-03-21 Ulrich Drepper <drepper@redhat.com>
6773 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
6774 * sysdeps/i386/i486/bits/atomic.h: Likewise.
6776 2003-03-21 Roland McGrath <roland@redhat.com>
6778 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
6780 2003-03-20 Ulrich Drepper <drepper@redhat.com>
6782 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
6783 atomic_compare_and_exchange_val_rel,
6784 atomic_compare_and_exchange_bool_acq, and
6785 atomic_compare_and_exchange_bool_rel instead of
6786 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
6787 * sysdeps/i386/i486/bits/atomic.h: Define
6788 __arch_compare_and_exchange_val_*_acq instead of
6789 __arch_compare_and_exchange_*_acq.
6790 * sysdeps/x86_64/bits/atomic.h: Likewise.
6791 * sysdeps/ia64/bits/atomic.h: Define
6792 __arch_compare_and_exchange_bool_*_acq instead of
6793 __arch_compare_and_exchange_*_acq.
6794 * sysdeps/powerpc/bits/atomic.h: Likewise.
6795 * sysdeps/s390/bits/atomic.h: Likewise.
6796 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
6797 * malloc/set-freeres.c: Likewise.
6798 * nscd/cache.c: Likewise.
6799 * stdlib/cxa_finalize.c: Likewise.
6800 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6802 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
6804 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
6805 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
6806 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
6808 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
6809 into high and low halves on n64.
6810 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6811 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6812 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6814 2003-03-20 Ulrich Drepper <drepper@redhat.com>
6816 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
6817 correct atomic_compare_and_exchange_acq semantics.
6819 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
6821 * sysdeps/mips/ieee754.h: Remove excess #endif.
6823 2003-03-20 Roland McGrath <roland@redhat.com>
6825 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
6826 variable. Remove superfluous memory clobber.
6828 * include/atomic.h: Syntax braino fix.
6830 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
6831 in decimal. Don't bail if niced at start. Just check that nice call
6832 bumps the total at all.
6834 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
6836 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
6837 including pc, gp, sp and fp, as long long.
6838 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
6839 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
6840 Add gp argument, and set gp in the jmpbuf to it.
6841 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
6843 2003-03-20 Ulrich Drepper <drepper@redhat.com>
6845 * include/atomic.h: Define atomic_exchange and
6846 atomic_decrement_if_positive if not already defined. Add some
6848 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
6849 * sysdeps/x86_64/bits/atomic.h: Likewise.
6850 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
6851 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
6852 atomic_exchange, atomic_exchange_and_add, and
6853 atomic_decrement_if_positive
6855 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
6857 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
6858 with a single instruction.
6860 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
6862 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
6864 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
6865 Word before comparing with gotsym. Take reloc_addr argument as
6866 void*. Remove the code added for the compiler to drop any
6867 alignment assumptions.
6869 2003-03-19 Ulrich Drepper <drepper@redhat.com>
6871 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
6872 * include/atomic.h: New file.
6873 * sysdeps/i386/i486/bits/atomic.h: New file.
6874 * sysdeps/x86_64/bits/atomic.h: New file.
6875 * sysdeps/s390/bits/atomic.h: New file.
6876 * sysdeps/sh/bits/atomic.h: New file.
6877 * sysdeps/ia64/bits/atomic.h: New file.
6878 * sysdeps/powerpc/bits/atomic.h: New file.
6879 * sysdeps/generic/bits/atomic.h: New file.
6880 * sysdeps/i386/i486/atomicity.h: Removed.
6881 * sysdeps/x86_64/atomicity.h: Removed.
6882 * sysdeps/s390/s390-32/atomicity.h: Removed.
6883 * sysdeps/s390/s390-64/atomicity.h: Removed.
6884 * sysdeps/ia64/atomicity.h: Removed.
6885 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
6886 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
6887 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
6888 use of macros from atomicity.h to new names and semantics.
6889 * gmon_mcount.c: Likewise.
6890 * malloc/set-freeres.c: Likewise.
6891 * nscd/cache.c: Likewise.
6892 * stdlib/cxa_finalize.c: Likewise.
6893 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6895 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
6897 * sysdeps/mips/ieee754.h: New file, suitable to replace both
6898 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
6899 mips-specific for now.
6901 2003-03-19 Ulrich Drepper <drepper@redhat.com>
6903 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
6904 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
6905 * stdlib/tst-strtod.c: Add test for the bug.
6907 * posix/tst-nice.c (do_test): Remove invalid of return value.
6908 Don't run test if initial level != 0.
6910 2003-03-19 Amos Waterland <apw@us.ibm.com>
6912 * posix/tst-nice.c: New file.
6913 * posix/Makefile (tests): Add tst-nice.
6915 2003-03-18 Roland McGrath <roland@redhat.com>
6917 * abilist: New directory of libfoo.abilist files maintained using
6918 scripts/merge-abilist.awk and "make update-abi" rules.
6919 * Makefile (distribute): Add abilist/*.abilist.
6920 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
6921 Depend on check-abi.
6923 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
6924 * configure: Regenerated.
6926 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
6928 2003-03-18 Ulrich Drepper <drepper@redhat.com>
6930 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
6933 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
6935 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
6937 2003-03-18 Ulrich Drepper <drepper@redhat.com>
6939 * Versions.def: Add GLIBC_2.3.3 for libpthread.
6941 2003-03-17 Ulrich Drepper <drepper@redhat.com>
6943 * sysdeps/generic/libc-start.c [!SHARED &&
6944 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
6946 2003-03-17 Roland McGrath <roland@redhat.com>
6948 * include/ctype.h: Revert last change.
6950 2003-03-17 Ulrich Drepper <drepper@redhat.com>
6952 * argp/tst-argp1.c: Use test-skeleton.c.
6953 * locale/tst-C-locale.c: Likewise.
6955 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
6957 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
6958 * sysdeps/mips/mips64/n64/Implies: New file.
6959 * sysdeps/mips/mips64/n64/Makefile: New file.
6960 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
6961 * sysdeps/mips/mips64/n32/Implies: New file.
6962 * sysdeps/mips/mips64/n32/Makefile: New file.
6963 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
6964 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
6965 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
6966 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
6967 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
6968 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
6969 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
6970 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
6971 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
6972 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
6973 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
6974 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
6975 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
6976 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
6978 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
6979 lib64 for mips64/n64 and lib32 for mips64/n32.
6980 (ldd_rewrite_script): Needed for all mips64 configurations.
6981 * sysdeps/unix/sysv/linux/configure: Rebuilt.
6982 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
6983 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
6985 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
6988 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
6989 asm/unistd.h into asm-unistd.h.
6990 * sysdeps/unix/sysv/linux/mips/configure: Generated.
6991 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
6993 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
6994 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
6997 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
6998 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
6999 long type for registers on n32.
7001 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
7003 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
7004 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
7005 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
7006 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
7007 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
7008 * sysdeps/unix/mips/brk.S: Likewise.
7009 * sysdeps/unix/mips/sysdep.S: Likewise.
7010 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7011 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
7012 * sysdeps/mips/sys/ucontext.h: Likewise.
7013 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
7014 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
7015 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
7016 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7017 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
7018 * sysdeps/mips/mips64/setjmp.S: Likewise.
7019 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
7020 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
7023 2003-03-16 Ulrich Drepper <drepper@redhat.com>
7025 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
7026 not at function level.
7027 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
7029 2003-03-15 Roland McGrath <roland@redhat.com>
7031 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
7032 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
7033 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
7034 * nis/nis_table.c (__create_ib_request): Likewise.
7036 * posix/fnmatch_loop.c: Add casts for signedness.
7037 * nss/nss_files/files-hosts.c: Likewise.
7038 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7039 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
7040 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
7042 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
7043 get errors into the log file.
7044 (libc_cv_broken_visibility_attribute): Likewise.
7045 (libc_cv_broken_alias_attribute): Likewise.
7046 (libc_cv_asm_weak_directive): Likewise.
7047 (libc_cv_need_minus_P): Likewise.
7048 (libc_cv_dot_text): Likewise.
7049 (libc_cv_asm_global_directive): Likewise.
7050 (libc_cv_asm_type_prefix): Likewise.
7051 * configure: Regenerated.
7053 * nscd/cache.c (cache_search): Give first arg type `request_type'.
7054 * nscd/nscd.h: Update decl.
7056 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
7057 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7058 * elf/dl-close.c (_dl_close): Likewise.
7059 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
7060 * io/fts.c (fts_build): Likewise.
7061 * elf/cache.c (add_to_cache): Likewise.
7062 * locale/programs/locarchive.c (show_archive_content): Likewise.
7064 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
7066 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
7068 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
7070 2003-03-15 Ulrich Drepper <drepper@redhat.com>
7072 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
7073 code for most parts.
7075 2003-03-15 Roland McGrath <roland@redhat.com>
7077 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
7078 * sysdeps/unix/sysv/linux/system.c: ... here.
7079 (FORK): Don't #define if already #define'd.
7080 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
7081 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
7082 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
7084 * dlfcn/tst-dlinfo.c: New file.
7085 * dlfcn/Makefile (tests): Add tst-dlinfo.
7086 ($(objpfx)tst-dlinfo): New target.
7088 * dlfcn/dlinfo.c: New file.
7089 * dlfcn/Makefile (libdl-routines): Add it.
7090 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
7091 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
7092 [__USE_GNU] (RTLD_DI_*): New enum constants.
7093 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
7094 * elf/dl-load.c (cache_rpath): New inline function.
7095 (_dl_map_object): Use it.
7096 (_dl_rtld_di_serinfo): New function.
7097 * sysdeps/generic/ldsodefs.h: Declare it.
7098 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
7100 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
7101 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
7102 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
7103 (__libc_start_main): Just call the generic one for most of the work.
7105 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
7106 static function by that name instead of BP_SYM (__libc_start_main).
7107 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
7108 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
7109 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
7111 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
7112 Use this macro for extra AT_* cases.
7113 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
7114 New macro, guts from ...
7115 (__aux_init_cache): ... here, function removed.
7116 (DL_PLATFORM_INIT): Don't define this.
7118 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
7119 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
7121 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
7123 2003-03-14 Roland McGrath <roland@redhat.com>
7125 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
7127 2003-03-14 Jakub Jelinek <jakub@redhat.com>
7129 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
7131 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
7132 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
7134 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7136 * sysdeps/mips/fpu/bits/mathdef.h: New.
7137 (__NO_LONG_DOUBLE_MATH): Define for o32.
7139 * sysdeps/mips/sys/asm.h: Formatting changes.
7140 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
7141 (CPADD): Define for all of them.
7142 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
7143 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
7144 NARGSAVE): Define per ABI spec.
7145 (END): Don't redefine.
7146 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
7147 LONG_SRAV): Remove duplicate definitions.
7148 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
7149 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
7150 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
7151 (PTR_LA): Define for all 3 ABIs.
7153 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
7154 (elf_machine_matches_host): Prevent linking of o32 and n32
7156 (elf_machine_dynamic): Document assumption on $gp.
7157 (STRINGXP, STRINGXV, STRINGV_): New macros.
7158 (elf_machine_load_address): Use them to stringize PTR_LA and
7160 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
7161 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
7162 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
7163 (__dl_runtime_resolve): Cast the symtab initializer to the
7165 (RTLD_START): Use it. Adjust it for all 3 ABIs.
7166 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
7167 Handle 64-bit R_MIPS_REL composite relocation and accept
7168 R_MIPS_64 relocations to shift addend size to 64 bits.
7169 Document assumption regarding local GOT entries. Document
7170 backward-compatibility departing from the ABI behavior in
7171 applying relocations that reference section symbols, no longer
7172 used. Support relocations to mis-aligned offsets.
7173 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
7175 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
7177 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
7178 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
7179 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
7180 restore_rt functions. Use them.
7182 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
7183 .set mips2 on new abis.
7185 2003-03-13 Ulrich Drepper <drepper@redhat.com>
7187 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
7188 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
7189 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
7190 * sysdeps/posix/pathconf.c: Likewise.
7191 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7192 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7193 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
7195 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
7198 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7200 * include/gmp.h: Include/gmp-mparam.h.
7201 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
7204 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
7205 ELF_MACHINE_NO_RELA is set.
7206 * elf/rtld.c (dl_main): No prelink support for REL-only.
7208 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
7209 FLAG_MIPS64_LIBN64): Define.
7210 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
7212 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
7213 * sysdeps/mips/memset.S: Likewise.
7214 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
7215 depending on the ABI.
7217 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
7218 Don't .set mips2 on new abi.
7219 (compare_and_swap): Likewise. Support 64-bit longs on n64.
7221 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
7223 2003-03-13 Roland McGrath <roland@redhat.com>
7225 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
7226 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
7228 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
7230 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
7232 * stdlib/fpioconst.c: Likewise.
7233 * stdlib/strtod.c: Likewise.
7235 * sysdeps/mips/add_n.S: Use L macro for local labels.
7236 * sysdeps/mips/addmul_1.S: Likewise.
7237 * sysdeps/mips/lshift.S: Likewise.
7238 * sysdeps/mips/memcpy.S: Likewise.
7239 * sysdeps/mips/memset.S: Likewise.
7240 * sysdeps/mips/mul_1.S: Likewise.
7241 * sysdeps/mips/rshift.S: Likewise.
7242 * sysdeps/mips/sub_n.S: Likewise.
7243 * sysdeps/mips/submul_1.S: Likewise.
7244 * sysdeps/mips/mips64/add_n.S: Likewise.
7245 * sysdeps/mips/mips64/addmul_1.S: Likewise.
7246 * sysdeps/mips/mips64/lshift.S: Likewise.
7247 * sysdeps/mips/mips64/mul_1.S: Likewise.
7248 * sysdeps/mips/mips64/rshift.S: Likewise.
7249 * sysdeps/mips/mips64/sub_n.S: Likewise.
7250 * sysdeps/mips/mips64/submul_1.S: Likewise.
7251 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
7252 conventions. Define END as in sys/asm.h.
7253 * sysdeps/unix/mips/sysdep.S: Likewise.
7254 * sysdeps/unix/mips/wait.S: Likewise.
7255 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7257 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
7258 Cast shifted values that may be too narrow to mp_limb_t.
7259 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
7261 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
7263 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
7264 (__mpn_extract_long_double): Likewise.
7265 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
7266 (__mpn_construct_long_double): Likewise.
7267 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
7268 (__mpn_extract_long_double): Likewise.
7269 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
7270 (__mpn_construct_long_double): Likewise.
7272 2003-03-13 Roland McGrath <roland@redhat.com>
7274 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
7275 entries in the map file match too.
7277 2003-03-13 Guido Guenther <agx@sigxcpu.org>
7279 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
7280 label .Lthread_start since current binutils don't allow branches
7281 to globally visible symbols.
7283 2003-03-13 Jakub Jelinek <jakub@redhat.com>
7285 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
7286 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
7287 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
7288 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
7289 clobbered by the syscall.
7290 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
7291 ASM_ARGS_6): Change constraints from r to index of corresponding
7293 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
7294 ptid and ctid to match kernel.
7295 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
7297 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
7299 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
7300 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
7301 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
7303 2003-03-11 Roland McGrath <roland@redhat.com>
7305 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7306 Check SYM_MAP rather than SYM as definedness check.
7307 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
7308 Don't handle R_PPC64_REL24 reloc.
7309 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
7311 * sysdeps/powerpc/powerpc64/dl-machine.h
7312 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
7313 block, so we cover all the TPREL16* flavors without 6 ||s.
7314 [USE_TLS] (elf_machine_tprel): New function.
7315 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
7316 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
7317 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
7319 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
7321 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
7322 instead of jalr to invoke subroutine so restoring the $gp register
7325 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
7327 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
7328 to __NR_pread if not defined.
7329 (__NR_pwrite64): Define to __NR_pwrite if not defined.
7331 2003-03-11 Jakub Jelinek <jakub@redhat.com>
7333 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
7334 * sysdeps/unix/sysv/linux/kernel-features.h
7335 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
7338 2003-03-11 Jakub Jelinek <jakub@redhat.com>
7340 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
7341 allocate space even for the trailing '/'.
7342 Reported by John Reiser <jreiser@BitWagon.com>.
7344 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
7345 ASM_CLOBBERS_6): Define.
7346 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
7347 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
7348 to match IA-32 order.
7349 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
7351 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
7353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
7354 Copy extra params for NPTL to registers used in clone syscall.
7356 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7358 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
7359 call names for pread and pwrite.
7361 2003-03-10 Roland McGrath <roland@redhat.com>
7363 * dlfcn/Makefile (libdl-routines): Add dladdr1.
7364 * dlfcn/dladdr1.c: New file.
7365 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
7366 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
7367 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
7368 a const ElfNN_Sym ** to fill in.
7369 * include/dlfcn.h: Update decl. Include <link.h>.
7370 * dlfcn/dladdr.c (dladdr): Update caller.
7371 * malloc/mtrace.c (tr_where): Likewise.
7372 * sysdeps/generic/elf/backtracesyms.c: Likewise.
7373 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7374 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
7375 * Versions.def (libdl): Define GLIBC_2.3.3 set.
7377 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
7379 * sysdeps/unix/Makefile (compile-syscall): New variable.
7380 Pass -g0 to compiler for assembling syscall stubs from stdin.
7382 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
7383 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
7384 Define these to do nothing.
7386 * configure.in: New check for -g on .S files.
7387 * configure: Regenerated.
7388 * config.make.in (have-cpp-asm-debuginfo): New variable.
7389 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
7390 * Makeconfig (ASFLAGS): New variable, if undefined and
7391 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
7392 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
7394 2003-03-09 Roland McGrath <roland@redhat.com>
7396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
7397 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
7399 2003-03-09 Ulrich Drepper <drepper@redhat.com>
7401 * po/fi.po: Update from translation team.
7402 * po/ca.po: Likewise.
7403 * po/da.po: Likewise.
7405 2003-03-08 Ulrich Drepper <drepper@redhat.com>
7407 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
7409 2003-03-07 Ulrich Drepper <drepper@redhat.com>
7411 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
7413 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
7415 2003-03-07 Roland McGrath <roland@redhat.com>
7417 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
7418 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
7420 2003-03-04 Guido Guenther <agx@sigxcpu.org>
7422 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
7423 stubs, we have INLINE_SYSCALL.
7424 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
7427 2003-03-06 Roland McGrath <roland@redhat.com>
7429 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
7430 permanent extent and add a comment about testing its implicit teardown.
7432 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
7434 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
7436 2003-03-05 Ulrich Drepper <drepper@redhat.com>
7438 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
7439 reversed __builtin_expect expectation.
7441 2003-03-05 Roland McGrath <roland@redhat.com>
7443 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
7444 * libio/swscanf.c: Likewise.
7445 * libio/swprintf.c: Likewise.
7447 2003-03-04 Roland McGrath <roland@redhat.com>
7449 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
7450 (elf_machine_rela): Always use RESOLVE_MAP, needed for
7451 R_PPC64_JMP_SLOT as well as TLS cases.
7452 (BIT_INSERT): Move parenthesis where it ought to have been.
7453 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
7455 * posix/confstr.c (confstr): Correct STRING_LEN values for
7456 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
7457 break. Reported by Alexandre Julliard <julliard@winehq.com>.
7459 2003-03-04 Jakub Jelinek <jakub@redhat.com>
7461 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
7463 2003-03-04 Ulrich Drepper <drepper@redhat.com>
7465 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
7468 * po/sv.po: Update from translation team.
7470 2003-03-04 Andreas Jaeger <aj@suse.de>
7471 Ulrich Drepper <drepper@redhat.com>
7473 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
7475 2003-03-03 Ulrich Drepper <drepper@redhat.com>
7477 * sysdeps/generic/dl-sysdep.h: Add double include protection.
7479 * po/tr.po: Update from translation team.
7481 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
7482 are holes between the segments. Only call mprotect to set
7483 proection to PROT_NONE if there are some.
7485 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
7488 * include/sched.h (__clone2): Use ... instead of adding all the
7491 2003-03-03 Roland McGrath <roland@redhat.com>
7493 * elf/dl-load.c (struct filebuf): Fix typo in last change.
7495 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
7496 PI_STATIC_AND_HIDDEN.
7498 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
7500 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
7502 * include/sched.h: Update clone2 prototype.
7504 2003-03-03 Andreas Jaeger <aj@suse.de>
7506 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
7507 (llrint): Use it to correct return type.
7510 (llround): Likewise.
7512 2003-03-03 Ulrich Drepper <drepper@redhat.com>
7514 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
7517 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
7518 if ccs parameter isn't valid. Reported by Andreas Schwab.
7520 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
7522 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
7523 for system call numbers > 255.
7524 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
7525 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
7526 INTERNAL_SYSCALL): Likewise.
7527 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
7528 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
7529 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
7530 INTERNAL_SYSCALL): Likewise.
7532 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
7534 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
7535 array if it is the initial dtv.
7537 2003-03-03 Ulrich Drepper <drepper@redhat.com>
7539 * po/es.po: Update from translation team.
7540 * po/fr.po: Likewise.
7541 * po/gl.po: Likewise.
7542 * po/sk.po: Likewise.
7543 * po/sv.po: Likewise.
7545 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
7546 * misc/sys/mman.h: Add prototype for remap_file_pages.
7547 * sysdeps/generic/remap_file_pages.c: New file.
7548 * misc/Makefile (routines): Add remap_file_pages.
7549 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
7551 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
7553 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7554 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
7555 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7556 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7557 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
7558 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
7559 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
7560 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
7562 2003-03-03 Roland McGrath <roland@redhat.com>
7564 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
7565 * sysdeps/ia64/dl-machine.h: Likewise.
7566 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
7568 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
7570 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
7571 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
7572 * locale/Versions (libc: GLIBC_2.3): Move those to ...
7573 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
7574 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
7575 * Versions.def (libc): Add GLIBC_2.3.3 set.
7577 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
7578 * sysdeps/ia64/dl-machine.h: Update decl.
7580 2003-03-03 Andreas Jaeger <aj@suse.de>
7582 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
7584 2003-03-02 Roland McGrath <roland@redhat.com>
7586 * scripts/abilist.awk: Reject data items with apparent 0 size.
7588 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
7589 after foo.* as if it were a duplicate.
7591 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
7593 2003-03-02 Ulrich Drepper <drepper@redhat.com>
7595 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
7597 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
7598 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
7599 if not already defined. Use SYSDEP_GETRES to allow other files to
7600 provide alternative implementations.
7601 * sysdeps/unix/sysv/linux/clock_getres.c: New file
7602 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
7603 if not already defined. Use SYSDEP_GETTIME to allow other files to
7604 provide alternative implementations.
7605 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
7606 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
7607 if not already defined. Use SYSDEP_GETTIME to allow other files to
7608 provide alternative implementations.
7609 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
7610 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
7611 other files to provide alternative implementations. Rearrange
7612 tests for invalid parameters.
7613 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
7614 * sysdeps/unix/sysv/linux/sysconf.c: New file.
7615 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7616 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
7617 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
7618 _POSIX_MONOTONIC_CLOCK.
7620 2003-03-02 Roland McGrath <roland@redhat.com>
7622 * scripts/merge-abilist.awk: More checks for bogus input.
7623 Uniquify duplicate config names.
7625 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
7627 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
7628 from dl_reloc_overflow, make global.
7629 (__process_machine_rela): Update callers.
7630 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
7631 Add attribute_hidden to __process_machine_rela decl.
7632 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
7634 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
7637 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
7638 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
7639 (elf_machine_rela): Clean up.
7641 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
7643 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
7644 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
7645 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
7646 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
7647 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
7648 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
7651 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
7652 macros out of [SHARED].
7653 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
7655 * elf/elf.h: Define R_PPC_* relocs for TLS support.
7656 Clean up R_PPC64_* macro definition comments.
7658 * configure.in: In "running configure fragment for" message,
7659 omit $srcdir from the name if we prepended it.
7660 * configure: Regenerated.
7662 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
7663 From Jakub Jelinek <jakub@redhat.com>.
7665 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
7666 which duplicated the O_DIRECT defn.
7668 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
7670 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
7673 2003-03-01 Andreas Schwab <schwab@suse.de>
7675 * resolv/Makefile (tests): Don't depend on
7676 $(objpfx)mtrace-tst-leaks when cross compiling.
7678 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
7679 __libc_stack_end through GOT since it is a global symbol.
7681 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
7683 * argp/argp.h: Fix a typo.
7684 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
7686 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
7688 2003-02-27 Pat Rankin <rankin@pactechdata.com>
7690 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
7692 (get_subexp): Likewise.
7694 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
7696 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
7698 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
7700 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
7702 2003-02-27 Roland McGrath <roland@redhat.com>
7704 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
7705 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
7706 repeat it and avoids the test for the common case.
7707 Clean up and fix calculations for TLS relocs.
7709 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
7710 * sysdeps/powerpc/dl-tls.h: ... here.
7711 (TLS_TP_OFFSET): New macro.
7713 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
7715 2003-02-27 Ulrich Drepper <drepper@redhat.com>
7717 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
7718 code generation changes in recent gcc.
7720 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
7722 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
7723 Rename argument to avoid symbol conflict.
7725 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
7726 [__USE_GNU] (O_DIRECT): New macro.
7728 2003-02-24 David Mosberger <davidm@hpl.hp.com>
7730 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
7733 2003-02-27 Ulrich Drepper <drepper@redhat.com>
7735 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
7736 initializer anymore now that res_thread_freeres is more careful.
7738 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
7739 except the PKTINFO. Reset interface in PKTINFO.
7740 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
7742 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
7744 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
7745 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
7747 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
7748 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
7749 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
7750 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
7752 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
7753 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
7755 2003-02-25 Andreas Jaeger <aj@suse.de>
7757 * manual/memory.texi (Malloc Tunable Parameters): Clarify
7758 behaviour of M_MMAP_THRESHOLD.
7760 2003-02-25 Roland McGrath <roland@redhat.com>
7762 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
7763 zero, inidicating _res was not initialized yet.
7765 2003-02-24 Ulrich Drepper <drepper@redhat.com>
7767 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
7770 2003-02-24 Roland McGrath <roland@redhat.com>
7772 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
7774 2003-02-23 Roland McGrath <roland@redhat.com>
7776 * sysdeps/posix/pause.c: New file.
7777 * sysdeps/unix/common/pause.c: File removed.
7779 2003-02-23 Ulrich Drepper <drepper@redhat.com>
7781 * sysdeps/generic/bits/confname.h: Remove #ifs.
7783 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
7784 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
7786 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
7789 2003-02-22 Ulrich Drepper <drepper@redhat.com>
7791 * sysdeps/generic/dl-sysdep.c: Avoid warning.
7793 2003-02-22 Roland McGrath <roland@redhat.com>
7795 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
7796 * resolv/Makefile (tests): Add tst-leaks.
7797 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
7798 (tst-leaks-ENV): New variable.
7799 ($(objpfx)mtrace-tst-leaks): New target.
7800 (tests): Depend on it.
7802 * include/libc-internal.h: Declare __libc_thread_freeres.
7804 * Makerules: Fix last change to use $($(subdir)-version) when set.
7806 * Makerules (install-lib-nosubdir): Depend on installed
7807 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
7808 regardless of the libfoo.so target's dependencies.
7810 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
7811 Use that in $(MAKE) calls.
7813 2003-02-22 Ulrich Drepper <drepper@redhat.com>
7815 * catgets/gencat.c (read_input_file): Collision between
7816 auto-assigned numbers and user-defined nubmers is not fatal.
7818 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
7819 * catgets/Makefile: Add rules to run test2.msg test.
7820 * catgets/test2.msg: New file.
7822 * catgets/gencat.c (main): Return 1 if messages have been printed.
7824 * iconv/iconv_prog.c (main): Unify messages.
7826 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
7827 when shifting retval.
7828 * stdlib/tst-strtod.c (main): Add strtold test case.
7829 Reported by Fred J. Tydeman <tydeman@tybor.com>.
7831 2003-02-21 Roland McGrath <roland@redhat.com>
7833 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
7834 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
7835 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
7837 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
7838 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
7839 (res_thread_freeres): New function, on __libc_thread_subfreeres and
7842 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
7843 * malloc/thread-freeres.c: New file.
7844 * malloc/Makefile (aux): Add it.
7845 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
7846 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
7847 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
7849 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
7850 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
7852 2003-02-21 Roland McGrath <roland@frob.com>
7854 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
7856 * iconvdata/Makefile (tests): Add bug-iconv3 only if
7857 [$(have-thread-library) = yes].
7859 2003-02-21 Ulrich Drepper <drepper@redhat.com>
7861 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
7863 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
7864 not chechk for errors (unless testing for 32bit variant).
7865 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
7866 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
7867 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
7869 2003-02-21 Jakub Jelinek <jakub@redhat.com>
7871 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
7872 Check for signed overflow, not unsigned.
7874 * sysdeps/sparc/sparc64/elf/configure.in: New file.
7875 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
7876 Use -fcall-used-g6, not -fcall-used-g7.
7878 2003-02-21 Andreas Jaeger <aj@suse.de>
7880 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
7883 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
7884 clear whole mxcsr but only exceptions.
7886 2003-02-21 Roland McGrath <roland@redhat.com>
7888 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
7889 for libfoo.so that need $(make-link) rules.
7891 2003-02-21 Roland McGrath <roland@frob.com>
7893 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
7894 to match existing struct stat layout in mig protocols.
7896 2003-02-20 Ulrich Drepper <drepper@redhat.com>
7898 * version.h (VERSION): Bump to 2.3.2.
7900 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
7901 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
7903 * sysdeps/generic/Dist: Add sysdep-cancel.h.
7904 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
7905 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
7906 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
7907 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
7908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
7910 * Makefile (distribute): Add include/stubs-prologue.h,
7911 include/gnu/stubs.h, scripts/merge-abilist.awk, and
7912 scripts/extract-abilist.awk.
7914 2003-02-20 Roland McGrath <roland@redhat.com>
7916 * math/Makefile (distribute): Don't add generated files.
7918 2003-02-20 Ulrich Drepper <drepper@redhat.com>
7920 * math/Makefile: Rearrange variable definitions slightly to get
7921 definition in the right order.
7923 2003-02-20 Roland McGrath <roland@redhat.com>
7925 * Makerules: Clean up conditional around include of tls.make.
7926 * Make-dist: Export generating=t to prevent using that.
7927 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
7929 2003-02-20 Ulrich Drepper <drepper@redhat.com>
7931 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
7932 around in search if port IPPORT_RESERVED/2 has been test.
7934 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
7936 * posix/regcomp.c: Remove inclusions.
7937 * posix/regexec.c: Likewise.
7938 * posix/regex_internal.c: Likewise.
7939 * posix/regex_internal.h: Add inclusions here.
7940 * posix/regex.c: Only include sys/types.h before regex.h. Include
7941 regex_internal.h here. Include regex_internal.c before regcomp.c
7942 and regexec.c (might expose more opportunities to the C compiler).
7944 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
7946 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
7947 [!_LIBC] (__wcrtomb): New definition.
7948 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
7949 HAVE_LOCALE_H as well.
7951 2003-02-20 Ulrich Drepper <drepper@redhat.com>
7953 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
7954 patch to check for system call errors.
7956 2002-07-24 Philip Blundell <philb@gnu.org>
7958 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
7961 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7963 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
7964 * sysdeps/unix/sysv/linux/kernel-features.h
7965 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
7966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
7968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
7969 interprocedure branches.
7970 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
7971 * sysdeps/powerpc/nofpu/Dist: ...here.
7972 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
7973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
7974 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
7975 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
7976 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
7978 2003-02-18 Alan Modra <amodra@bigpond.net.au>
7980 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
7982 2003-02-20 Philip Blundell <philb@gnu.org>
7984 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
7985 missing arguments to INTERNAL_SYSCALL_ERROR_P and
7986 INTERNAL_SYSCALL_ERRNO.
7988 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7990 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
7991 for __ASSUME_32BITUIDS.
7993 2003-02-20 Andreas Schwab <schwab@suse.de>
7995 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
7996 POSIX_MADV_* constants.
7998 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8000 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
8001 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
8002 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
8003 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
8005 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
8007 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
8009 2003-02-16 Roland McGrath <roland@redhat.com>
8011 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
8013 2003-02-19 Ulrich Drepper <drepper@redhat.com>
8015 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
8016 decimal input digits.
8017 * stdlib/tst-strtod.c (main): Add test for strtof bug.
8019 2003-02-18 Ulrich Drepper <drepper@redhat.com>
8021 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
8022 invalid file descriptors and missing access permissions.
8024 2003-02-17 Ulrich Drepper <drepper@redhat.com>
8026 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
8029 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
8030 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
8031 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
8034 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
8035 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8037 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
8038 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
8039 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
8040 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8041 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
8043 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8045 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
8046 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
8047 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
8048 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
8049 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
8050 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
8052 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
8053 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
8054 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
8055 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
8057 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
8058 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
8059 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
8060 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
8062 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
8064 * nss/getent.c (print_hosts): Print all IP addresses of one host.
8066 2003-02-15 Roland McGrath <roland@frob.com>
8068 * sysdeps/mach/hurd/tls.h: New file.
8069 * sysdeps/mach/hurd/i386/tls.h: New file.
8071 * mach/errsystems.awk: Include <errno.h> in generated output.
8073 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
8074 use target mach-before-compile instead of generated.
8075 (mach-before-compile): New target.
8076 * Makerules: Disable use of tls.make if $(generating) is set.
8077 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
8078 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
8079 mach-shortcuts.h so mach/ generation happens before hurd/.
8081 2003-02-14 Ulrich Drepper <drepper@redhat.com>
8083 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
8084 of demorm correctly if low word is zero.
8085 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8086 * math/libm-test.inc (nextafter_test): New test, but disabled due
8089 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
8090 counter and only call __exit_thread if this is not the last thread.
8092 2003-02-13 Jakub Jelinek <jakub@redhat.com>
8094 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
8095 subtracting map->l_tls_offset.
8097 2003-02-12 Ulrich Drepper <drepper@redhat.com>
8099 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
8100 _CS_GNU_LIBPTHREAD_VERSION.
8101 * posix/conststr.c: Handle these new values.
8102 * posix/getconf.c: Likewise.
8104 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
8105 masking of version index.
8106 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8108 2003-02-11 Ulrich Drepper <drepper@redhat.com>
8110 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
8111 correctly. Reported by Thorsten Kukuk.
8113 2003-02-10 Ulrich Drepper <drepper@redhat.com>
8115 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
8116 _BSD_SOURCE to compiler.
8117 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
8118 Patches by Alan Modra.
8120 2003-02-08 Ulrich Drepper <drepper@redhat.com>
8122 * io/ftwtest.c: Get current working directory before and after the
8123 nftw call and make sure they match.
8125 2003-02-08 Jim Meyering <jim@meyering.net>
8127 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
8128 the current directory, not just when DIR contains a slash.
8129 Reported by Manoj Srivastava.
8131 2003-02-07 Jim Meyering <jim@meyering.net>
8133 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
8134 Include autoconf-recommended block of dirent/NAMELEN-related
8135 definitions and includes. Use NAMELEN throughout, rather than
8137 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
8138 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
8139 (stpcpy): Declare, if necessary.
8140 (mempcpy): Define, if necessary.
8141 [!_LIBC] (__stpcpy, __mempcpy): Define.
8142 [!_LIBC] (LXSTAT, XSTAT): Define.
8143 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
8144 (find_object): Don't use c99-style struct initializer.
8145 Tweak wording in a couple comments.
8147 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8149 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
8151 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
8152 after the trapa instruction.
8153 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
8155 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
8156 (NEED_SYSCALL_INST_PAD): Define.
8157 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
8158 avoid to use definition for the kernel.
8159 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8160 Save and restore the frame pointer.
8161 (SYSCALL_INST_PAD): Define.
8162 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8163 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
8164 after trapa instruction.
8165 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8166 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8168 2003-02-07 Jakub Jelinek <jakub@redhat.com>
8170 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
8171 so that it can have aliases.
8172 * inet/herrno.c (h_errno): Put it into .bss not .data section.
8174 2003-02-07 Ulrich Drepper <drepper@redhat.com>
8176 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
8177 (profile_fixup): Likewise.
8178 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8180 2002-11-24 Robert Love <rml@tech9.net>
8182 * posix/sched.h: Second parameter of sched_setaffinity and
8183 sched_getaffinity is `unsigned int', not `unsigned long'.
8184 * sysdeps/generic/sched_setaffinity.c: Likewise.
8185 * sysdeps/generic/sched_getaffinity.c: Likewise.
8187 2003-02-05 Ulrich Drepper <drepper@redhat.com>
8189 * debug/catchsegv.sh: Fix typo in error messsage.
8190 Reported by John Levon <levon@movementarian.org>.
8192 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
8193 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
8194 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
8195 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8197 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8198 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8200 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
8201 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
8203 2003-02-05 Jim Meyering <jim@meyering.net>
8205 Fix a heap-corrupting bug.
8206 * io/ftw.c: Include <limits.h>.
8207 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
8208 (process_entry): Allocate enough space to hold the resulting
8209 file name. Don't presume that 2*dirbufsize is enough.
8210 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
8211 it is guaranteed to be defined.
8213 2003-02-04 Ulrich Drepper <drepper@redhat.com>
8215 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
8216 * iconvdata/bug-iconv3.c: New file.
8218 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
8220 * sysdeps/unix/sysv/linux/s390/system.c: New file.
8222 2003-02-03 Jakub Jelinek <jakub@redhat.com>
8224 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
8226 * config.h.in (BROKEN_SPARC_WDISP22): Add.
8228 2003-02-03 Ulrich Drepper <drepper@redhat.com>
8230 * sysdeps/i386/i686/memmove.S: New file.
8232 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
8235 Include kernel-features.h
8236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
8237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
8238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
8239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
8241 2003-02-02 Jakub Jelinek <jakub@redhat.com>
8243 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
8245 2003-01-25 Jim Meyering <jim@meyering.net>
8247 * io/ftw.c (object_compare): Compare inode numbers before device
8248 numbers, since the former are much more likely to differ.
8250 2003-02-01 Ulrich Drepper <drepper@redhat.com>
8252 * time/tzfile.c (__tzfile_compute): Change return value type to
8253 void. Adjust return statements.
8254 * include/time.h (__tzfile_compute): Adjust prototype.
8256 2003-02-01 Jim Meyering <jim@meyering.net>
8258 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
8261 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8264 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
8266 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
8269 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
8270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8271 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
8272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8273 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
8274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8275 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
8277 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
8279 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
8280 back to 2.4.19 for powerpc64.
8281 * sysdeps/unix/sysv/linux/kernel-features.h
8282 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
8283 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
8285 2003-02-01 Ulrich Drepper <drepper@redhat.com>
8287 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
8288 platforms with strange alignment requirements on wchar_t.
8290 2003-01-31 Andreas Schwab <schwab@suse.de>
8292 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
8293 aliases, already added by make-syscalls.sh.
8294 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8295 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8296 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8297 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8298 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8299 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8300 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8301 * sysdeps/unix/inet/syscalls.list: Likewise.
8302 * sysdeps/unix/syscalls.list: Likewise.
8304 2003-01-31 Andreas Schwab <schwab@suse.de>
8306 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
8309 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8311 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
8312 not l to load tls from stack.
8314 2003-01-30 Roland McGrath <roland@redhat.com>
8316 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
8317 null argument before all else.
8318 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
8320 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8322 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
8323 Move to RESOLVE protected part of the header.
8324 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
8327 2003-01-30 Ulrich Drepper <drepper@redhat.com>
8329 * stdio-common/Makefile (tests): Add bug15.
8330 (bug15-ENV): Define.
8331 * stdio-common/bug15.c: New file.
8333 2002-10-07 Wolfram Gloger <wg@malloc.de>
8335 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
8336 to foreign sbrk()'s if arena is contiguous. Bug report from
8337 Bruno Haible <bruno@clisp.org>.
8339 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8341 * sysdeps/s390/libc-tls.c: Include stdlib.h.
8343 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8345 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
8348 2003-01-30 Ulrich Drepper <drepper@redhat.com>
8350 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
8352 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
8354 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
8356 2003-01-30 Jakub Jelinek <jakub@redhat.com>
8358 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
8359 (allocate_static_tls): ...here. Add __attribute_noinline__.
8360 Don't return on failure.
8361 (_dl_reloc_bad_type): Add __attribute_noinline__.
8362 * elf/do-rel.h (elf_dynamic_do_rel): Add
8363 __attribute__((always_inline)).
8364 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
8365 elf_machine_rel_relative, elf_machine_rela_relative,
8366 elf_machine_lazy_rel): Add prototypes with
8367 __attribute__((always_inline)).
8369 2003-01-29 David Mosberger <davidm@hpl.hp.com>
8371 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
8373 2003-01-29 Roland McGrath <roland@redhat.com>
8375 * configure.in: Barf if configured in $srcdir.
8377 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
8379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8380 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
8382 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
8384 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
8385 clone parameters to match the order used on ia32.
8386 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8388 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
8390 * elf/elf.h: Add new s390 relocs.
8391 * elf/tls-macros.h: Add s390 versions.
8392 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
8393 * sysdeps/s390/dl-tls.h: New file.
8394 * sysdeps/s390/libc-tls.c: New file.
8395 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
8396 relocs for class PLT.
8397 (elf_machine_rela): Handle TLS relocs.
8398 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8399 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
8400 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8401 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
8402 CLONE_CHILD_*TID flags.
8403 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8404 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
8406 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8407 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8408 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
8409 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
8410 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
8412 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8413 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
8414 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
8416 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
8417 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
8418 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
8419 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
8422 2003-01-28 Ulrich Drepper <drepper@redhat.com>
8424 * sysdeps/unix/common/pause.c (do_pause): New function. Split
8425 from __libc_pause. Implement using sigsuspend.
8426 (__libc_pause): Call do_pause to do the real work.
8428 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
8429 sig_or_mask parameter is is_sig != 0.
8431 2003-01-21 Philip Blundell <philb@gnu.org>
8433 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
8435 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
8437 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
8439 2003-01-27 Ulrich Drepper <drepper@redhat.com>
8441 * stdio-common/bug14.c: Use official name for the locale.
8443 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
8444 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
8445 instead of __libc_cleanup_region_end.
8447 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
8448 as first parameter to __libc_cleanup_region_start.
8450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8451 (__fe_nomask_env): Use __prctl not prctl.
8452 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
8455 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
8457 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
8459 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
8460 wrap-around in test.
8462 2003-01-26 Andreas Schwab <schwab@suse.de>
8464 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
8465 compatibility symbols. Remove INTDEF for __divdi3.
8466 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
8467 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
8468 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
8470 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
8472 2003-01-24 Jakub Jelinek <jakub@redhat.com>
8474 * elf/tls-macros.h: Add SPARC 32-bit definitions.
8475 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
8476 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
8477 for the first half of the header. Include tls.h.
8478 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
8480 (elf_machine_rela): Handle TLS relocs.
8481 * sysdeps/sparc/dl-tls.h: New file.
8483 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
8486 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
8487 * sysdeps/sparc/sparc32/memchr.S: Likewise.
8488 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8489 * sysdeps/sparc/sparc32/strcat.S: Likewise.
8490 * sysdeps/sparc/sparc32/strchr.S: Likewise.
8491 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
8492 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
8493 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
8494 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8495 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8496 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
8497 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8498 * sysdeps/sparc/sparc64/strcat.S: Likewise.
8499 * sysdeps/sparc/sparc64/strchr.S: Likewise.
8500 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
8501 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
8502 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8503 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8504 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8505 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8507 2003-01-24 Andreas Schwab <schwab@suse.de>
8509 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
8510 elements, and process them backwards.
8511 * elf/Makefile ($(objpfx)tst-array4): New target.
8512 ($(objpfx)tst-array4.out): Likewise.
8513 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
8514 * elf/tst-array4.c: New file.
8515 * elf/tst-array4.exp: Likewise.
8517 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
8519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
8521 2003-01-27 Guido Guenther <agx@sigxcpu.org>
8523 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
8524 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
8525 cancellation handling and handle both __NR_pread64 and __NR_pread.
8526 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8527 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
8528 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
8529 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8530 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
8531 case, use register names consistently.
8533 2003-01-27 Wolfram Gloger <wg@malloc.de>
8535 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
8536 pointer, not of the computed chunk. Bug report from Carlos
8537 O'Donell <carlos@baldric.uwo.ca>.
8539 2003-01-25 Andreas Schwab <schwab@suse.de>
8541 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
8542 addressing to save GOT entries.
8544 2003-01-21 Jakub Jelinek <jakub@redhat.com>
8546 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
8547 inline_syscall1, inline_syscall2, inline_syscall3,
8548 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
8549 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
8550 __attribute__((unused)) to ChEcK.
8552 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8554 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
8555 Fix inline assembler constraints.
8556 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
8559 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
8562 2003-01-20 Segher Boessenkool <segher@koffie.nl>
8564 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
8565 compute the cosine, not the sine, even if x > 0.8.
8567 2003-01-19 Ulrich Drepper <drepper@redhat.com>
8569 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
8570 _nss_nis_setspent. Work around the different prototypes.
8571 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
8572 internal_nis_endrpcent.
8573 (internal_nis_endrpcent): Change return type to void. Change callers.
8574 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
8575 _nss_nis_setpwent. Work around the different prototypes.
8576 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
8577 of the function to...
8578 (internal_nis_endprotoent): ... here. New function.
8579 (internal_nis_setprotoent): Use internal_nis_endprotoent.
8580 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
8581 _nss_nis_setnetent. Work around the different prototypes.
8582 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
8583 of the function to...
8584 (internal_nis_endnetgrent): ... here. New function.
8585 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
8587 2003-01-19 Jim Meyering <jim@meyering.net>
8589 * time/strftime.c: (widen): Merge nearly-identical definitions.
8590 (nl_get_alt_digit) [! defined my_strftime]: Define.
8591 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
8592 _nl_get_alt_digit and _nl_get_walt_digit.
8594 2003-01-19 Ulrich Drepper <drepper@redhat.com>
8596 * time/strftime.c (my_strftime): Handle very large width
8597 specifications for numeric values correctly. Improve checks for
8599 * time/Makefile (tests): Add tst-strftime.
8600 * time/tst-strftime.c: New file.
8602 2003-01-18 Ulrich Drepper <drepper@redhat.com>
8604 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
8605 _nss_nis_sethostent. Work around the different prototypes.
8606 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
8607 _nss_nis_setgrent. Work around the different prototypes.
8608 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
8609 function. Split out from _nss_nis_endetherent.
8610 (internal_nis_setetherent): Use internal_nis_endetherent instead of
8611 duplicating the code.
8612 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
8613 of _nss_nis_setaliasent.
8614 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
8615 internal_nis_endservent code, don't duplicate it.
8617 * inet/rexec.c (rexec_af): Protect socket operations with
8618 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
8619 * inet/rcmd.c (rcmd_af): Likewise.
8621 2003-01-17 Roland McGrath <roland@redhat.com>
8623 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
8624 Add test of value 0.80190127184058835.
8626 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
8628 2003-01-17 Richard Henderson <rth@redhat.com>
8630 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
8631 relocs for class PLT.
8632 * sysdeps/alpha/libc-tls.c: New file.
8633 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
8634 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
8636 2003-01-17 Jakub Jelinek <jakub@redhat.com>
8638 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
8639 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
8642 2003-01-17 Andreas Jaeger <aj@suse.de>
8644 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
8646 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
8648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
8649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
8650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
8651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
8652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
8653 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
8654 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
8657 2003-01-16 Ulrich Drepper <drepper@redhat.com>
8659 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
8660 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
8663 * sysdeps/generic/sysconf.c: Unconditionally implement
8664 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
8665 * sysdeps/posix/sysconf.c: Likewise.
8667 2003-01-16 Jakub Jelinek <jakub@redhat.com>
8669 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
8670 set *err to the returned error, not to REG_ESPACE unconditionally.
8671 (build_word_op): Likewise.
8672 * posix/Makefile (tests): Add bug-regex16.
8673 * posix/bug-regex16.c: New test.
8675 2003-01-16 Jakub Jelinek <jakub@redhat.com>
8677 * elf/dl-load.c (_dl_map_object_from_fd): Use
8678 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
8679 been already initialized.
8681 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
8683 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
8685 2003-01-16 Jakub Jelinek <jakub@redhat.com>
8687 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
8688 allocated too. Reported by Al Viro <aviro@redhat.com>.
8690 2003-01-16 Roland McGrath <roland@redhat.com>
8692 Tweak merged .abilist file format to merge duplicate symbols in
8693 different sets into multi-version stanzas with new "| SET regexp..."
8694 header continuation lines.
8695 * scripts/merge-abilist.awk: Rewritten for new format.
8696 * scripts/extract-abilist.awk: Likewise.
8698 2003-01-15 Ulrich Drepper <drepper@redhat.com>
8700 * nscd/connections.c (nscd_run): Remove bogus return which isn't
8701 necessary with gcc 3.2+.
8702 (nscd_init): Don't use error() to print message, use dbg_log.
8704 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
8705 expected size into state.
8706 (UNPACK_BYTES): Do the reverse.
8707 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
8708 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
8709 Reported by Al Viro <aviro@redhat.com>.
8711 * stdio-common/Makefile (tests): Add bug14.
8712 * stdio-common/bug14.c: New file.
8714 * stdio-common/vfscanf.c: When recognizing multibyte characters in
8715 string reset the byte counter after mbrtowc reported it is not a
8716 partial character. Reported by Al Viro <aviro@redhat.com>.
8718 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
8720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
8721 sysdep-cancel.h, not sysdep.h.
8723 2003-01-15 Ulrich Drepper <drepper@redhat.com>
8725 * nscd/connections.c (nscd_run): Protect accept call with
8728 2003-01-15 Andreas Schwab <schwab@suse.de>
8730 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
8731 (common-generated): Add s-proto-bp.d.
8732 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
8734 * sysdeps/unix/s-proto-bp.S: New file.
8735 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
8736 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
8737 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
8739 2003-01-15 Roland McGrath <roland@redhat.com>
8741 * Makerules: Use -include for tls.make, suppresses warning.
8742 Move gen-as-const-headers rules up so before-compile is set in time.
8743 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
8745 2003-01-15 Ulrich Drepper <drepper@redhat.com>
8747 * nscd/nscd.c (main): Make code to close all file descriptors
8748 faster and more robust.
8750 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
8751 request with one writev call. Protect all read calls with
8753 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8754 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8756 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
8757 Protect writev calls with TEMP_FAILURE_RETRY.
8758 * nscd/grpcache.c: Likewise.
8759 * nscd/pwdcache.c: Likewise.
8761 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
8762 IPv6 address in debug output.
8764 2003-01-14 Roland McGrath <roland@redhat.com>
8766 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
8767 $(objpfx) directories, and get rid of vpath directives. The previous
8768 arrangement resulted in files being written to the source directories
8769 when run in a clean build. Find all .abilist files in $(..)abilist/.
8770 (update-abi-%): Likewise.
8771 (generated): Don't add .symlist files, they'll be intermediates.
8773 * sysdeps/generic/init-first.c: Add a comment.
8775 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
8777 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
8778 #includes and expressions.
8780 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
8781 config list when it already contains cpu-.*-os.* without / part.
8783 * Makerules (sed-remove-dotdot): New variable.
8784 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
8785 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
8786 (check-abi-config): New variable, append /tls or /notls to the tuple.
8787 (check-abi-%): Use that for -v config value.
8788 Find .abilist files in abilist/libfoo.abilist, not in subdir.
8789 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
8791 2003-01-14 Ulrich Drepper <drepper@redhat.com>
8793 * manual/install.texi: Correct description of header preparation for
8794 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
8796 2003-01-14 Guido Guenther <agx@sigxcpu.org>
8798 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
8799 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8800 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
8802 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8805 (INTERNAL_SYSCALL): Make use of ERR parameter.
8806 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8807 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8808 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
8811 2003-01-14 Ulrich Drepper <drepper@redhat.com>
8813 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
8815 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
8817 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
8818 Fix entry for bit 31.
8820 * iconvdata/Makefile: Add rules to build IBM866NAV.
8821 * iconvdata/ibm866nav.c: New file.
8822 * iconvdata/tst-tables.sh: Add IBM866NAV.
8823 * iconvdata/gconv-modules: Add entries for IBM866NAV.
8825 2003-01-13 Ulrich Drepper <drepper@redhat.com>
8827 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
8828 to test void* parameters.
8830 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
8831 source pointer before dereferencing.
8832 (__STRING_SMALLL_GET32): Likewise.
8833 (__memset_gc): Add missing parenthesis around macro arguments.
8834 Patch by Denis Zaitsev <zzz@cd-club.ru>.
8836 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
8837 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
8839 2003-01-14 Jakub Jelinek <jakub@redhat.com>
8841 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
8844 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
8846 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
8847 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
8849 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
8851 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
8853 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
8855 (PSEUDO): ... to here.
8856 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
8858 (PSEUDO): ... to here.
8860 2003-01-13 Ulrich Drepper <drepper@redhat.com>
8862 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
8863 dirent64 instead of struct dirent for dirent. Call readdir64
8866 * locale/programs/locfile.c (siblings_uncached): Use struct
8867 dirent64 instead of struct dirent for other_dentry. Call
8868 readdir64 instead of readdir.
8870 * elf/ldconfig.c (direntry): Change type to struct dirent64.
8871 (search_dir): Use readdir64 instead of readdir.
8872 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
8874 2003-01-12 Roland McGrath <roland@redhat.com>
8876 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
8877 not strtol. The former is usable in ld.so, the latter not.
8879 * include/fcntl.h: Declare __libc_creat.
8881 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
8882 libhurduser-link.so-no-z-defs): New variables.
8884 * malloc/malloc.c: Revert last change.
8885 * malloc/malloc.h (_int_*): Move these decls to ...
8886 * include/malloc.h: ... here. Add attribute_hidden.
8887 (_int_valloc): Declare it too.
8889 2003-01-12 Ulrich Drepper <drepper@redhat.com>
8891 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
8892 search for removed searchlist. Reported by Roland McGrath.
8894 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
8895 given as start file.
8897 * io/ftw.c (ftw_startup): Use correct name in check for symlink
8898 without existing target. Patch by Jim Meyering.
8900 * Makerules (build-shlib-helper): Don't use -z defs linker option
8901 if no-z-defs is defined either.
8903 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8905 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
8908 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8910 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
8911 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8913 2003-01-12 Ulrich Drepper <drepper@redhat.com>
8915 * io/ftwtest-sh: Add test case for relative path with /. at the end.
8917 2003-01-12 Jim Meyering <jim@meyering.net>
8919 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
8920 use the basename if we've already chdir'd into its parent directory.
8922 2003-01-12 Ulrich Drepper <drepper@redhat.com>
8924 * io/ftw.c (process_entry): Use relative path when using chdir()
8925 to change directory after call to ftw_dir.
8926 * io/ftwtest-sh: Add test for relative path argument to nftw()
8927 with FTW_CHDIR option.
8929 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8931 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8933 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
8935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8936 (INTERNAL_SYSCALL): Make use of ERR parameter.
8937 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8938 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8939 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
8942 2002-01-09 Richard Henderson <rth@redhat.com>
8944 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
8945 DTPREL64 and TPREL64 without loadbase applied.
8947 2002-01-09 Richard Henderson <rth@redhat.com>
8949 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
8952 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
8953 * sysdeps/unix/alpha/sysdep.h: ... here.
8954 (PSEUDO_LOADGP): Remove.
8955 (PSEUDO_PROLOGUE): Load GP in non-pic case.
8956 (SYSCALL_ERROR_LABEL): New.
8957 (PSEUDO): Use it in error branch.
8958 (PSEUDO_END): Add $syscall_error label.
8960 2003-01-12 Andreas Jaeger <aj@suse.de>
8962 * math/bits/mathcalls.h: Round is a const function.
8964 2003-01-11 Jim Meyering <jim@meyering.net>
8966 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
8967 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
8968 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
8969 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
8970 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
8971 [!_LIBC] (internal_function, dirent64, MAX): Define.
8972 (__set_errno): Define if not already defined.
8973 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
8974 the basename, not the entire file name.
8975 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
8976 the basename, not the entire file name.
8978 2003-01-12 Ulrich Drepper <drepper@redhat.com>
8980 * string/tester.c (test_strcpy): Disable last added strcpy until
8983 2003-01-11 Philip Blundell <philb@gnu.org>
8985 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
8987 2003-01-11 Andreas Schwab <schwab@suse.de>
8989 * Makerules: Add vpath for %.dynsym and %.so so that the
8990 implicit rule chaining for check-abi works.
8992 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8994 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8997 2003-01-11 Jakub Jelinek <jakub@redhat.com>
8999 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
9000 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
9002 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
9003 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
9004 Ensure libc.so in DT_NEEDED.
9005 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
9006 CHECK_STATIC_TLS before l_tls_offset use.
9007 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9009 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9010 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
9011 Allocate TLS_PRE_TCB_SIZE bytes below result.
9012 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
9013 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
9014 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
9015 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
9016 bytes below result and add tcb_offset to memsz.
9017 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
9018 * sysdeps/ia64/dl-machine.h: Include tls.h.
9019 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
9021 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
9022 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
9023 * sysdeps/ia64/libc-tls.c: New file.
9025 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
9027 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
9028 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
9029 Fix type. Move definition out of #if.
9030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
9031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
9032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
9033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
9034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
9035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
9037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
9038 ftruncate64, pread64, pwrite64, truncate64 entries.
9039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9040 (INLINE_SYSCALL): New version that supports function call like
9041 syscalls. Add __builtin_expect.
9042 (LOADARGS_n): Add argument size safety checks.
9043 (INTERNAL_SYSCALL): New Macro.
9044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
9045 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
9046 redefinition of elf_fpreg_t and elf_fpregset_t.
9048 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9050 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
9051 simplify test for unloading. If loader of a DSO is unloaded do not
9052 use its scope anymore. Fall back to own scope and adjust opencounts.
9053 Fix several comments.
9054 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
9055 the l_searchlist, not only for l_initfini.
9057 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
9058 dependencies if objects cannot be removed. Remove object with the
9059 definition as not unloadable if necessary.
9061 * elf/reldep6.c: Create relocation dependency before closing the first
9064 2003-01-10 Guido Günther <agx@sigxcpu.org>
9066 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
9067 * sysdeps/unix/mips/brk.S: Likewise.
9068 * sysdeps/unix/mips/pipe.S: Likewise.
9070 2003-01-10 Andreas Schwab <schwab@suse.de>
9072 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
9074 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
9075 are known to have the vfork syscall.
9077 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
9079 * sysdeps/unix/sysv/linux/kernel-features.h
9080 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
9081 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
9082 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
9084 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9086 * elf/Makefile: Add rules to build and run reldep9 test.
9087 * elf/reldep9.c: New file.
9088 * elf/reldep9mod1.c: New file.
9089 * elf/reldep9mod2.c: New file.
9090 * elf/reldep9mod3.c: New file.
9092 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9094 * elf/Makefile: Add rules to build and run nodelete2 test.
9095 * elf/nodelete2.c: New file.
9096 * elf/nodel2mod1.c: New file.
9097 * elf/nodel2mod2.c: New file.
9098 * elf/nodel2mod3.c: New file.
9100 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9102 * posix/test-vfork.c (noop): Add __attribute_noinline__.
9103 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
9104 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
9106 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
9107 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
9108 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
9109 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
9110 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
9112 2003-01-09 Andreas Schwab <schwab@suse.de>
9114 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
9116 2003-01-08 Ulrich Drepper <drepper@redhat.com>
9118 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
9119 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9121 (INTERNAL_SYSCALL_DECL): Define.
9123 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9125 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
9126 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9128 (INTERNAL_SYSCALL_DECL): Define.
9129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9130 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9131 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9132 (INLINE_SYSCALL): Adjust.
9133 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9134 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9135 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9136 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9137 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
9138 add err argument to INTERNAL_SYSCALL* macros.
9139 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9140 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
9141 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
9142 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
9144 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
9145 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
9146 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
9148 2003-01-07 Ulrich Drepper <drepper@redhat.com>
9150 Unify symbols in user namespace exported by libc.so and libc.a.
9151 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
9152 argp_fmtstream_free, and argp_fmtstream_printf.
9153 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
9154 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
9155 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
9156 argp_fmtstream_point.
9157 * gmon/gmon.c: Don't define write_profiling.
9158 * libio/genops.c: Don't define _cleanup.
9160 * intl/explodename.c (_nl_find_language.c): Mark as static.
9161 * intl/loadinfo.h: Remove _nl_find_language prototype.
9163 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
9164 * libio/libioP.h: Remove declaration.
9166 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
9167 * libio/libioP.h: Remove declaration.
9169 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
9170 * sysdeps/generic/framestate.c: Define STATIC before including
9173 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
9175 2003-01-06 Philip Blundell <philb@gnu.org>
9177 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
9178 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
9180 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
9182 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
9183 (SYSCALL_ERROR): New.
9184 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
9186 (INTERNAL_SYSCALL): Define.
9187 (INLINE_SYSCALL): Use it.
9188 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9189 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
9190 SYSCALL_ERROR in place of __syscall_error.
9192 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9194 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
9195 __bswap_32, __bswap_64): Put x into temporary variable
9197 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
9199 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
9200 __bswap_32, __bswap_64): Put x into temporary variable
9202 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
9204 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
9207 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9209 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
9212 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9214 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
9215 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
9217 2003-01-07 Ulrich Drepper <drepper@redhat.com>
9219 * math/libm-test.inc (significand_test): New function.
9222 2003-01-06 Roland McGrath <roland@redhat.com>
9224 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
9226 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
9227 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
9228 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
9230 * string/tester.c (test_strcpy): Add test with `void *' arguments.
9232 2003-01-06 Ulrich Drepper <drepper@redhat.com>
9234 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
9235 return significand and not the exponent.
9236 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9238 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
9239 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
9241 * malloc/malloc.c: Mark all _int_* functions as static.
9243 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9245 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
9246 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
9248 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9250 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9252 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
9253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
9255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
9256 ftruncate64, truncate64, pread64 and pwrite64 entries.
9257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9258 (INLINE_SYSCALL): Add __builtin_expect.
9259 (LOADARGS_n): Add argument size safety checks.
9260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
9261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
9262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
9263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
9264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
9265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
9267 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9269 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
9270 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
9271 (LIBC_CANCEL_HANDLED): Add.
9273 * sysdeps/unix/sysv/linux/alpha/sysdep.h
9274 (inline_syscall_r0_constraint): Rename to...
9275 (inline_syscall_r0_out_constraint): ... this. Add =.
9276 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
9278 2003-01-06 Andreas Schwab <schwab@suse.de>
9280 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
9281 sure this is always inlined.
9282 (elf_machine_rela): Likewise.
9284 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
9286 2003-01-04 Roland McGrath <roland@redhat.com>
9288 * Makeconfig (+mkdep): Add -MP flag.
9289 Suggested by Art Haas <ahaas@airmail.net>.
9291 2003-01-05 Andreas Schwab <schwab@suse.de>
9293 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
9295 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9297 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
9298 SYSCALL_ERROR_HANDLER.
9299 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
9300 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
9301 Add support for cancellation handling.
9302 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
9303 SYSCALL_ERROR_HANDLER.
9304 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
9305 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
9306 Add support for cancellation handling.
9307 (SYSCALL_ERROR_HANDLER): Define PIC variants.
9309 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
9312 __syscall_pread64 and __syscall_pwrite64 cancelable.
9313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9314 (INTERNAL_SYSCALL): New macro.
9315 (LOADARGS_0, LOADARGS_1): Fix.
9317 2003-01-05 Ulrich Drepper <drepper@redhat.com>
9319 * Makerules (build-shlip-helper): Unless told otherwise, add
9320 -Wl,-z,defs to linker command line.
9321 * rt/Makefile (librt.so): Link with ld.so.
9322 * dlfcn/Makefile (libdl.so): Likewise.
9324 2003-01-05 Jakub Jelinek <jakub@redhat.com>
9326 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
9327 cancellation handling.
9328 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9329 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
9331 2003-01-04 Ulrich Drepper <drepper@redhat.com>
9333 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
9334 order of parameters passed to kill.
9336 2003-01-04 Andreas Schwab <schwab@suse.de>
9338 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
9340 2002-01-03 Paul Eggert <eggert@twinsun.com>
9342 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
9343 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
9344 when compiling Bison 1.875's `bitset bset = obstack_alloc
9345 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
9347 2003-01-04 Ulrich Drepper <drepper@redhat.com>
9349 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
9351 Correct reference counter in case SIGQUIT handler installation failed.
9353 2003-01-03 Ulrich Drepper <drepper@redhat.com>
9355 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
9356 Define using _Pragma(weak ...).
9358 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
9360 * resolv/res_libc.c: Provide declaration for __res_init_weak and
9361 reorder declarations.
9363 2003-01-03 Art Haas <ahaas@airmail.net>
9365 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
9366 initializer syntax to C99.
9367 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
9368 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
9369 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
9370 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
9371 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
9372 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
9373 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
9374 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
9375 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
9376 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
9377 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
9378 * localedata/tests-mbwc/dat_mblen.c: Likewise.
9379 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
9380 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
9381 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
9382 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
9383 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
9384 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
9385 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
9386 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
9387 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
9388 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
9389 * localedata/tests-mbwc/dat_towlower.c: Likewise.
9390 * localedata/tests-mbwc/dat_towupper.c: Likewise.
9391 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
9392 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
9393 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
9394 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
9395 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
9396 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
9397 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
9398 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
9399 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
9400 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
9401 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
9402 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
9403 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
9404 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
9405 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
9406 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
9407 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
9408 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
9409 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
9410 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
9411 * localedata/tests-mbwc/dat_wctob.c: Likewise.
9412 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
9413 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
9414 * localedata/tests-mbwc/dat_wctype.c: Likewise.
9415 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
9417 2003-01-03 Richard Henderson <rth@redhat.com>
9419 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
9420 (inline_syscall_r0_constraint): New.
9421 (inline_syscall[0-6]): Use them.
9423 2003-01-03 Jakub Jelinek <jakub@redhat.com>
9425 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
9426 Add rtld_hidden_proto.
9427 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
9428 (_dl_allocate_tls): Likewise. Remove INTDEF.
9430 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9432 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
9433 Morita <toshiyasu.morita@hsa.hitachi.com>.
9434 * sysdeps/sh/memcpy.S: Likewise.
9436 2003-01-02 Ulrich Drepper <drepper@redhat.com>
9438 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
9439 any, but unify the test.
9441 2003-01-02 Jakub Jelinek <jakub@redhat.com>
9443 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
9444 sigaction): Protect weak_alias and libc_hidden_weak with
9445 #ifndef LIBC_SIGACTION.
9446 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
9447 sigaction): Likewise.
9448 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
9449 sigaction): Likewise.
9450 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
9451 sigaction): Likewise.
9452 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
9453 sigaction): Likewise.
9454 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
9455 sigaction): Likewise.
9456 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
9457 sigaction): Likewise.
9458 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
9459 sigaction): Likewise. Remove SIGCANCEL handling here.
9460 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
9463 2003-01-02 Art Haas <ahaas@airmail.net>
9465 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
9467 2003-01-02 Ulrich Drepper <drepper@redhat.com>
9469 * posix/getconf.c: Update copyright year.
9470 * nss/getent.c: Likewise.
9471 * nscd/nscd_nischeck.c: Likewise.
9472 * iconv/iconvconfig.c: Likewise.
9473 * iconv/iconv_prog.c: Likewise.
9474 * elf/ldconfig.c: Likewise.
9475 * catgets/gencat.c: Likewise.
9476 * csu/version.c: Likewise.
9477 * elf/ldd.bash.in: Likewise.
9478 * elf/sprof.c (print_version): Likewise.
9479 * locale/programs/locale.c: Likewise.
9480 * locale/programs/localedef.c: Likewise.
9481 * nscd/nscd.c (print_version): Likewise.
9482 * debug/xtrace.sh: Likewise.
9483 * malloc/memusage.sh: Likewise.
9484 * malloc/mtrace.pl: Likewise.
9486 2003-01-01 Jakub Jelinek <jakub@redhat.com>
9488 * io/sys/stat.h: Include time.h with __need_timespec even if
9489 __USE_MISC is defined but __USE_XOPEN is not.
9491 2003-01-01 Andreas Jaeger <aj@suse.de>
9493 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
9494 type to avoid strict aliasing problem.
9495 (_nss_dns_gethostbyname2_r): Likewise.
9496 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
9497 (_nss_dns_getnetbyname_r): Likewise.
9498 * resolv/gethnamaddr.c (_gethtent): Likewise.
9499 (gethostbyname2): Likewise.
9501 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9503 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
9504 to avoid using the exported symbols. Define aliases with the
9505 original names separately.
9507 * include/time.h: Add libc_hidden_proto for __strftime_l.
9508 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
9509 * time/strftime.c: Always use libc_hidden_def if _LIBC.
9511 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
9512 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
9514 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
9517 * csu/Makefile (routines): Add dso_handle.
9518 * csu/dso_handle.c: New file.
9520 2002-12-31 Roland McGrath <roland@redhat.com>
9522 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
9523 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
9524 (S-CPPFLAGS): Add -DASSEMBLER here instead.
9525 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
9527 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9529 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
9532 2002-12-31 Andreas Jaeger <aj@suse.de>
9534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
9536 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
9537 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
9538 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
9540 * sysdeps/unix/sysv/linux/kernel_stat.h
9541 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
9543 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
9544 __unused[1-3] since they're needed by some platforms. Handle
9545 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
9547 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
9548 for structs stat and stat64.
9549 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9550 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
9551 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9552 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9554 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
9556 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
9557 nsec resolution changes.
9558 (xstat64_conv): Likewise.
9559 (xstat32_conv): Likewise.
9561 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
9564 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
9565 structs stat and stat64.
9567 * time/time.h (__timespec_defined): Define for __USE_MISC.
9569 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9571 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
9572 and __libc_current_sigrtmax.
9574 2002-12-31 Jakub Jelinek <jakub@redhat.com>
9576 * include/errno.h (__errno_location): Add prototype.
9577 Use libc_hidden_proto unconditionally.
9578 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
9580 * include/resolv.h (__res_state): Likewise.
9582 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
9583 * include/sys/socket.h (accept): Add libc_hidden_proto.
9584 * include/errno.h (__errno_location): Likewise.
9585 * include/netdb.h (__h_errno_location): Likewise.
9586 * include/resolv.h (__res_state): Likewise.
9587 * include/unistd.h (__lseek): Likewise.
9588 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
9589 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
9590 * sysdeps/generic/res-state.c (__res_state): Likewise.
9591 * sysdeps/generic/accept.c (accept): Likewise.
9592 * sysdeps/generic/lseek.c (__lseek): Likewise.
9593 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
9594 __libc_current_sigrtmax): Likewise.
9595 * sysdeps/mach/hurd/accept.c (accept): Likewise.
9596 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
9597 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
9598 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
9599 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
9600 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
9601 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
9602 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
9603 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
9605 (__GI_accept): New alias to accept.
9606 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
9607 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
9608 New alias to llseek.
9609 (__GI_accept): New alias to accept.
9610 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
9612 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
9614 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
9616 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
9617 strong_alias (name, __GI_name).
9618 * sysdeps/arm/bsd-_setjmp.S : Likewise.
9619 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
9620 * sysdeps/i386/bsd-_setjmp.S : Likewise.
9621 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
9622 * sysdeps/mips/bsd-_setjmp.S : Likewise.
9623 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
9624 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
9625 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
9626 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
9627 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
9628 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
9629 * sysdeps/sh/bsd-_setjmp.S : Likewise.
9630 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
9631 * sysdeps/unix/arm/fork.S : Likewise.
9632 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
9633 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
9634 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
9635 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
9636 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
9637 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
9638 * sysdeps/unix/i386/fork.S : Likewise.
9639 * sysdeps/unix/mips/fork.S : Likewise.
9640 * sysdeps/unix/sparc/fork.S : Likewise.
9641 * sysdeps/unix/sparc/vfork.S : Likewise.
9642 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
9643 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
9644 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
9645 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
9646 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
9647 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
9648 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
9649 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
9650 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
9651 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
9652 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
9653 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
9654 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
9655 * sysdeps/unix/fork.S : Likewise.
9656 * sysdeps/vax/bsd-_setjmp.S : Likewise.
9657 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
9659 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
9662 2002-12-31 Ulrich Drepper <drepper@redhat.com>
9664 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
9665 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
9666 * sysdeps/mach/hurd/fork.c: Likewise.
9667 * sysdeps/unix/sysv/aix/fork.c: Likewise.
9668 * sysdeps/unix/fork.S: Add __GI___fork alias.
9669 * sysdeps/unix/arm/fork.S: Likewise.
9670 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
9671 * sysdeps/unix/i386/fork.S: Likewise.
9672 * sysdeps/unix/mips/fork.S: Likewise.
9673 * sysdeps/unix/sparc/fork.S: Likewise.
9674 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
9675 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
9676 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9677 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
9678 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
9679 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9680 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
9681 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
9682 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
9683 * sysdeps/unix/sparc/vfork.S: Likewise.
9684 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
9685 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
9686 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
9687 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
9688 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
9689 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
9690 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
9691 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
9693 * include/time.h: Add libc_hidden_proto for __nanosleep.
9694 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
9695 * sysdeps/mach/nanosleep.c: Likewise.
9696 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
9697 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
9699 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
9700 _IO_list_unlock, and _IO_list_resetlock.
9701 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
9702 _IO_list_unlock, and _IO_list_resetlock.
9704 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
9705 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
9706 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
9707 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
9709 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
9710 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
9711 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
9712 __GI___longjmp alias.
9714 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
9715 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
9716 * sysdeps/arm/bsd-_setjmp.S: Likewise.
9717 * sysdeps/generic/bsd-_setjmp.c: Likewise.
9718 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
9719 * sysdeps/i386/bsd-_setjmp.S: Likewise.
9720 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9721 * sysdeps/mips/bsd-_setjmp.S: Likewise.
9722 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9723 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
9724 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
9725 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
9726 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
9727 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
9728 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
9729 * sysdeps/sh/bsd-_setjmp.S: Likewise.
9730 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
9731 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
9732 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
9733 * sysdeps/vax/bsd-_setjmp.S: Likewise.
9734 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
9736 2002-12-30 Ulrich Drepper <drepper@redhat.com>
9738 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
9740 2002-12-30 Roland McGrath <roland@redhat.com>
9742 * Rules (generated): Target removed.
9743 * mach/Makefile (generated): Define it here instead.
9745 * math/Makefile (generated): Add m_*l and m_*f variants too.
9747 2002-12-30 Ulrich Drepper <drepper@redhat.com>
9749 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
9750 the to-be-deleted objects right away instead of later separately.
9751 The latter fails because the scope data structures of the DSO
9752 might already be gone.
9754 * elf/Makefile: Add rules to build and run reldep8 test.
9755 * elf/reldep8.c: New file.
9756 * elf/reldep8mod1.c: New file.
9757 * elf/reldep8mod2.c: New file.
9758 * elf/reldep8mod3.c: New file.
9759 Contributed by Jakub Jelinek.
9761 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
9763 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9764 checking of return value ENOSYS from getdents64.
9766 2002-12-28 Andreas Schwab <schwab@suse.de>
9768 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
9769 ($(common-objpfx)s-%.d): Generalized from
9770 $(common-objpfx)s-proto.d rule.
9771 (common-generated): Add s-proto-cancel.d.
9772 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
9773 cancellable syscalls.
9774 * sysdeps/unix/s-proto-cancel.S: New file.
9776 2002-12-29 Roland McGrath <roland@redhat.com>
9778 * resolv/res_libc.c: Move _res defn magic after res_init defn
9779 so _res macro is in effect for that code.
9781 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
9782 pattern for prepending $(..) so it doesn't affect $(foo).
9784 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
9786 2002-12-29 Jakub Jelinek <jakub@redhat.com>
9788 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
9791 2002-12-28 Ulrich Drepper <drepper@redhat.com>
9793 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
9795 2002-12-28 Andreas Jaeger <aj@suse.de>
9797 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
9799 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
9801 2002-12-27 Jakub Jelinek <jakub@redhat.com>
9803 * inet/herrno.c (__h_errno_location): Remove.
9804 * inet/Makefile (routines): Add herrno-loc.
9805 * resolv/res_libc.c (__res_state): Remove.
9806 * resolv/Makefile (routines): Add res-state.
9807 * sysdeps/generic/herrno-loc.c: New file.
9808 * sysdeps/generic/res-state.c: New file.
9810 2002-12-27 Jakub Jelinek <jakub@redhat.com>
9812 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9813 Only define if USE_DL_SYSINFO is defined.
9815 2002-12-22 Jakub Jelinek <jakub@redhat.com>
9817 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
9818 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
9819 Define. Patch by Richard Henderson and Jes Sorensen.
9820 (PSEUDO): Remove unnecessary ;;.
9821 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
9822 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
9823 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
9824 if not initializing thread pointer.
9825 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
9826 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
9827 make it weak also if NONTLS_INIT_TP.
9828 * sysdeps/unix/common/pause.c: Handle cancellation.
9829 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
9830 (LOADSYSCALL): Remove.
9831 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
9832 (SYSCALL_ERROR_HANDLER): Use it.
9833 (PSEUDO): Don't jump around error handler.
9834 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
9835 jump around error handler.
9836 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
9837 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
9838 to __syscall_error_handler on failure.
9839 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
9840 (LOADSYSCALL): Remove.
9841 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
9842 (SYSCALL_ERROR_HANDLER): Use it.
9843 (PSEUDO): Don't jump around error handler.
9844 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
9845 jump around error handler.
9846 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
9847 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
9848 to __syscall_error_handler on failure.
9850 2002-12-27 Roland McGrath <roland@redhat.com>
9852 * scripts/gen-as-const.awk: New file.
9853 * Makefile (distribute): Add it.
9854 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
9855 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
9857 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
9859 2002-12-27 Andreas Schwab <schwab@suse.de>
9861 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
9863 2002-12-27 Jakub Jelinek <jakub@redhat.com>
9865 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
9868 2002-12-27 Andreas Schwab <schwab@suse.de>
9870 * Makerules ($(common-objpfx)%.make): Filter through
9871 $(sed-remove-objpfx).
9873 2002-12-23 Roland McGrath <roland@redhat.com>
9875 * scripts/abilist.awk: Produce a more compact format, divided into
9876 stanzas for each version set, the set name listed only once.
9877 * scripts/extract-abilist.awk: New file.
9878 * scripts/merge-abilist.awk: New file.
9879 * Makerules (check-abi-%, update-abi-%): New pattern rules.
9880 (update-abi, check-abi): New targets.
9881 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
9883 2002-12-19 Roland McGrath <roland@redhat.com>
9885 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
9887 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
9890 2002-12-21 Andreas Schwab <schwab@suse.de>
9892 * elf/check-textrel.c (handle_file): Swap p_type.
9894 2002-12-21 Andreas Schwab <schwab@suse.de>
9896 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
9897 (INLINE_SYSCALL): Use it.
9898 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9899 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9901 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
9902 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
9904 2002-12-20 Art Haas <ahaas@airmail.net>
9906 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
9909 2002-12-21 Philip Blundell <philb@gnu.org>
9911 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
9912 top as seventh arg to __libc_start_main.
9913 Reported by paulnash@wildseed.com.
9915 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
9917 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
9918 compatibility cruft when new enough kernel is assumed.
9920 2002-12-20 Jakub Jelinek <jakub@redhat.com>
9922 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
9923 instead of INLINE_SYSCALL.
9925 2002-12-20 Ulrich Drepper <drepper@redhat.com>
9927 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
9930 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
9931 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
9932 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
9933 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
9934 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
9935 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9936 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9937 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9938 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
9939 Patch by William Lee Irwin <wli@holomorphy.com>.
9941 2002-12-20 Andreas Schwab <schwab@suse.de>
9943 * locale/programs/ld-measurement.c (measurement_output): Fix
9946 2002-12-20 Ulrich Drepper <drepper@redhat.com>
9948 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
9949 Redefine _IO_flockifle and _IO_funlockfile as inlines.
9951 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
9952 builds add "tls" in the search path.
9953 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
9954 (path_hwcap): Recognize "tls".
9956 2002-12-19 Ulrich Drepper <drepper@redhat.com>
9958 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
9959 __waitpid instead of waitpid.
9961 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
9963 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
9964 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
9965 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
9967 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
9968 information for system calls.
9970 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
9973 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
9975 2002-12-19 Roland McGrath <roland@redhat.com>
9977 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
9978 * iconvdata/ibm922.h: Likewise.
9979 * iconvdata/ibm930.h: Likewise.
9980 * iconvdata/ibm932.h: Likewise.
9981 * iconvdata/ibm933.h: Likewise.
9982 * iconvdata/ibm935.h: Likewise.
9983 * iconvdata/ibm937.h: Likewise.
9984 * iconvdata/ibm939.h: Likewise.
9985 * iconvdata/ibm943.h: Likewise.
9986 * iconvdata/isiri-3342.h: Likewise.
9988 2002-12-19 Ulrich Drepper <drepper@redhat.com>
9990 * test-skeleton.c (main): Make sure correct value is seen as
9991 argv[0] after adjustment of argv, and argc.
9993 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
9994 RTLD_CORRECT_DYNAMIC_WEAK is defined.
9996 2002-12-19 Jakub Jelinek <jakub@redhat.com>
9998 * nscd/connections.c (nscd_run): Shut up warning.
9999 * tst-ungetc.c (assert): Undefined before redefining.
10001 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10003 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
10006 2002-12-17 Art Haas <ahaas@airmail.net>
10008 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
10009 * iconvdata/cp775.h: Likewise.
10010 * iconvdata/ibm1046.h: Likewise.
10011 * iconvdata/ibm1124.h: Likewise.
10012 * iconvdata/ibm1129.h: Likewise.
10013 * iconvdata/ibm1132.h: Likewise.
10014 * iconvdata/ibm1133.h: Likewise.
10015 * iconvdata/ibm1160.h: Likewise.
10016 * iconvdata/ibm1161.h: Likewise.
10017 * iconvdata/ibm1162.h: Likewise.
10018 * iconvdata/ibm1163.h: Likewise.
10019 * iconvdata/ibm1164.h: Likewise.
10021 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10023 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
10024 __ASSUME_CLONE_THREAD_FLAGS is defined.
10025 * sysdeps/unix/sysv/linux/kernel-features.h
10026 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
10028 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10030 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
10032 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10034 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
10036 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10038 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
10040 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10042 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10043 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
10044 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
10047 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10049 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
10050 __libc_writev to...
10051 [libc: GLIBC_PRIVATE]: ...here.
10052 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
10053 __libc_msgsnd to...
10054 [libc: GLIBC_PRIVATE]: ...here.
10056 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10058 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
10059 Use it instead of directly int $0x80.
10060 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
10061 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10062 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10063 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10064 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10065 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10067 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10069 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
10071 * elf/elf.h (AT_SYSINFO): New define.
10072 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
10075 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10077 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
10079 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
10081 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
10083 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
10085 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
10087 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
10089 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
10090 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
10091 available, otherwise __libc_maybe_call.
10092 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
10093 cancellation handling.
10094 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
10096 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10098 * posix/regcomp.c (free_workarea_compile): Free the new member
10100 (analyze): Initialize ORG_INDICES.
10101 (duplicate_node_closure): Search for a existing node, which is
10102 duplicated from the node ORG_DEST and satisfies the constraint
10103 CONSTRAINT. And use it to avoid inifimite loop.
10104 (search_duplicated_node): New function.
10105 (duplicate_node): Store the index of the original node.
10106 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
10108 * posix/regex_internal.h (re_dfa_t): Add new members.
10110 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10112 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
10114 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10116 * sysdeps/posix/system.c (do_system): Add support for installation
10117 of cancellation handlers.
10118 * sysdeps/unix/sysv/linux/i386/system.c: New file.
10120 * stdlib/Makefile (tests): Add tst-system.
10121 * stdlib/tst-system.c: New file.
10123 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
10124 CENABLE]: Don't lose content of %ebx.
10126 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10128 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
10129 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
10131 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10133 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
10134 fails to return a function pointer don't use it.
10136 2002-12-16 Art Haas <ahaas@airmail.net>
10138 * io/ftw.c: Convert GCC extension initializer syntax to C99.
10139 * iconvdata/iso-ir-165.c: Likewise.
10140 * iconvdata/jis0208.c: Likewise.
10141 * iconvdata/jis0212.c: Likewise.
10143 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10145 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
10146 epoll_ctl, and epoll_wait.
10147 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
10148 epoll_create, epoll_ctl, and epoll_wait.
10149 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
10150 Davide Libenzi <davidel@xmailserver.org>.
10151 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
10152 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
10155 2002-12-16 Art Haas <ahaas@airmail.net>
10157 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
10159 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
10160 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
10161 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
10163 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10165 * stdio-common/Makefile (routines): Remove lockfile. Add
10166 flockfile, ftrylockfile, and funlockfile.
10167 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
10168 * sysdeps/generic/flockfile.c: New file.
10169 * sysdeps/generic/ftrylockfile.c: New file.
10170 * sysdeps/generic/funlockfile.c: New file.
10172 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10174 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
10175 macros instead of doing the calls directly.
10176 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
10177 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
10180 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10182 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
10183 * sysdeps/ieee754/bits/nan.h: Likewise.
10185 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
10186 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
10188 2002-12-16 Roland McGrath <roland@redhat.com>
10190 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
10191 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
10192 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
10194 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
10195 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
10197 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
10198 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
10199 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
10200 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
10201 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
10202 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
10203 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
10204 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
10206 2002-12-13 Paul Eggert <eggert@twinsun.com>
10208 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
10209 is now u_int, not int.
10210 (struct XDR.x_handy): Now u_int, not int.
10211 * sunrpc/xdr_mem.c: Include <limits.h>.
10212 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
10213 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
10214 x_handy is now unsigned, not signed.
10215 Do not decrement x_handy if no change is made.
10216 (xdrmem_setpos): Check for int overflow.
10217 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
10218 (xdr_sizeof): Remove cast that is now unnecessary, now that
10219 x_handy is unsigned.
10221 2002-12-15 Art Haas <ahaas@airmail.net>
10223 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
10224 * iconvdata/gap.awk: Likewise.
10225 * iconvdata/gen-8bit-gap-1.sh: Likewise.
10226 * iconvdata/gen-8bit-gap.sh: Likewise.
10227 * locale/C-address.c: Likewise.
10228 * locale/C-collate.c: Likewise.
10229 * locale/C-ctype.c: Likewise.
10230 * locale/C-identification.c: Likewise.
10231 * locale/C-measurement.c: Likewise.
10232 * locale/C-messages.c: Likewise.
10233 * locale/C-monetary.c: Likewise.
10234 * locale/C-name.c: Likewise.
10235 * locale/C-numeric.c: Likewise.
10236 * locale/C-paper.c: Likewise.
10237 * locale/C-telephone.c: Likewise.
10238 * locale/C-time.c: Likewise.
10239 * nscd/connections.c: Likewise.
10240 * nscd/grpcache.c: Likewise.
10241 * nscd/hstcache.c: Likewise.
10242 * nscd/pwdcache.c: Likewise.
10243 * stdio-common/vfprintf.c: Likewise.
10244 * stdlib/random.c: Likewise.
10245 * sysdeps/generic/siglist.c: Likewise.
10246 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10247 * sysdeps/ieee754/bits/nan.h: Likewise.
10248 * sysdeps/posix/sprofil.c: Likewise.
10249 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
10250 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
10251 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
10253 2002-12-15 Roland McGrath <roland@redhat.com>
10255 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
10257 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
10258 <tls.h> here, no need for it.
10259 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
10261 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
10262 parameter, not varargs parameter.
10264 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
10265 argument so it's not an unused variable.
10267 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
10268 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
10271 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
10273 2002-12-15 Ulrich Drepper <drepper@redhat.com>
10275 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
10276 original __libc_fcntl code. Just renamed.
10278 2002-12-15 Andreas Schwab <schwab@suse.de>
10280 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
10282 2002-12-14 Olaf Hering <olh@suse.de>
10284 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
10285 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
10287 2002-12-15 Ulrich Drepper <drepper@redhat.com>
10289 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
10291 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
10292 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
10294 * sysdeps/unix/sysv/linux/open64.c: New file.
10296 * sysdeps/generic/pselect.c: Add support for cancellation handling.
10297 * sysdeps/posix/open64.c: Likewise.
10298 * sysdeps/posix/sigpause.c: Likewise.
10299 * sysdeps/posix/sigwait.c: Likewise.
10300 * sysdeps/posix/system.c: Likewise.
10301 * sysdeps/posix/waitid.c: Likewise.
10302 * sysdeps/unix/sysv/linux/accept.S: Likewise.
10303 * sysdeps/unix/sysv/linux/connect.S: Likewise.
10304 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
10305 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10306 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
10307 * sysdeps/unix/sysv/linux/poll.c: Likewise.
10308 * sysdeps/unix/sysv/linux/pread.c: Likewise.
10309 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10310 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
10311 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10312 * sysdeps/unix/sysv/linux/readv.c: Likewise.
10313 * sysdeps/unix/sysv/linux/recv.S: Likewise.
10314 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
10315 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
10316 * sysdeps/unix/sysv/linux/send.S: Likewise.
10317 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
10318 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
10319 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
10320 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
10321 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
10322 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
10323 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
10324 * sysdeps/unix/sysv/linux/wait.c: Likewise.
10325 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
10326 * sysdeps/unix/sysv/linux/writev.c: Likewise.
10327 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
10328 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10330 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10332 * sysdeps/generic/sysdep-cancel.h: New file.
10333 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
10334 cancelable syscall.
10335 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
10336 recvmsg, send, sendmsg, sendto): Make cancelable.
10337 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
10338 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
10339 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10340 sendto, osf_select): Likewise.
10341 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
10342 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
10343 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
10344 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10346 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
10347 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
10348 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
10349 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10351 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
10352 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10353 sendto, select): Likewise.
10354 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
10355 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
10357 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
10358 select, fcntl): Likewise.
10359 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
10360 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
10361 read, readv, select, sigsuspend, write, writev): Likewise.
10363 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10365 * dirent/bug-readdir1.c: Include unistd.h.
10367 2002-12-13 Jakub Jelinek <jakub@redhat.com>
10369 * locale/programs/locale.c: Include locarchive.h.
10370 (ARCHIVE_NAME): Define.
10371 (write_archive_locales): New function.
10372 (write_locales): Use it. Ensure the same locale is not printed
10373 multiple times in verbose mode.
10374 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
10375 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
10377 (struct nameent): New type.
10378 (nameentcmp): New function.
10380 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10382 * posix/regex_internal.c (re_string_context_at): Guard wide char
10383 code with #ifdef RE_ENABLE_I18N.
10385 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
10387 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
10389 2002-12-13 Roland McGrath <roland@redhat.com>
10391 * posix/bug-regex15.c: New file.
10392 * posix/Makefile (tests): Add it.
10394 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
10395 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
10397 2002-12-13 Ulrich Drepper <drepper@redhat.com>
10399 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
10401 * misc/syslog.c (log_cleanup): Don't use parameter in
10402 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
10403 pass NULL instead of a pointer to syslog_lock.
10405 2002-12-12 Ulrich Drepper <drepper@redhat.com>
10407 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
10408 linker map for all iconv modules.
10409 (distribute): Add gconv.map.
10410 * iconvdata/gconv.map: New file.
10412 * elf/Makefile: Also check all iconv modules for text relocations.
10414 * stdlib/Makefile: Remove code to automatically import GMP.
10416 * elf/Makefile (tests): Add rules to build and run check-textrel.
10417 * elf/check-textrel.c: New file.
10419 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
10422 2002-12-11 Jakub Jelinek <jakub@redhat.com>
10424 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
10427 2002-04-30 Bruno Haible <bruno@clisp.org>
10429 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
10430 the encoding if it already has slashes.
10431 Reported by Perry Rapp <prapp@erols.com>.
10433 2002-12-11 Roland McGrath <roland@redhat.com>
10435 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
10436 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
10437 Turn off PIC for compiling this file.
10439 2002-12-11 Ulrich Drepper <drepper@redhat.com>
10441 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
10442 definitions. Not needed.
10443 [_LIBC]: Use definitions from libc-lock.h instead of referencing
10444 pthread routines directly.
10445 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
10447 (arena_get2): Don't look at return value of mutex_lock.
10449 2002-12-11 Roland McGrath <roland@redhat.com>
10451 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
10452 elf-init.o instead of compiling a PIC version.
10454 2002-12-11 Bruno Haible <bruno@clisp.org>
10456 * intl/gettext.h: Renamed to ...
10457 * intl/gmo.h: ... here.
10458 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
10459 * intl/gettextP.h: Update.
10460 * intl/loadmsgcat.c: Update.
10462 * intl/gettextP.h (PARAMS): Make more portable.
10463 (attribute_hidden): Define as empty macro if not already defined.
10464 * intl/hash-string.h (PARAMS): Make more portable.
10465 * intl/loadinfo.h (PARAMS): Likewise.
10466 * intl/plural-exp.h (PARAMS): Likewise.
10467 (attribute_hidden): Move definition near the definition of
10470 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
10471 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
10473 2002-07-13 Bruno Haible <bruno@clisp.org>
10475 * intl/dcigettext.c (freea): New macro.
10476 (FREE_BLOCKS): Free also the registered blocks.
10477 (DCIGETTEXT): Free the 'search' variable.
10478 Reported by Andreas Fischer <a.fischer@asentics.de>.
10480 2002-04-27 Bruno Haible <bruno@clisp.org>
10482 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
10483 * intl/dcigettext.c: Likewise.
10484 * intl/dcgettext.c: Likewise.
10485 * intl/dgettext.c: Likewise.
10486 * intl/gettext.c: Likewise.
10487 * intl/dcngettext.c: Likewise.
10488 * intl/dngettext.c: Likewise.
10489 * intl/ngettext.c: Likewise.
10490 * intl/textdomain.c: Likewise.
10491 * intl/bindtextdom.c: Likewise.
10492 * intl/plural-exp.h: Likewise.
10494 2002-01-02 Bruno Haible <bruno@clisp.org>
10496 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
10498 2001-04-30 Bruno Haible <bruno@clisp.org>
10500 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
10501 default macro definitions. Needed for mingw32.
10503 2002-12-10 Ulrich Drepper <drepper@redhat.com>
10505 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
10506 __builtin_constant_p to macro parameter.
10508 * sysdeps/generic/sigpause.c: Define all functions as weak.
10509 * sysdeps/posix/sigpause.c: Likewise.
10511 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
10514 2002-12-10 Jakub Jelinek <jakub@redhat.com>
10516 * elf/tst-array1.c (preinit_array, init_array, fini_array):
10517 Explicitly align the array to sizeof (void *).
10518 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
10520 * include/libc-symbols.h: Fix a comment typo.
10522 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
10523 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
10525 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
10527 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
10528 (__libc_sigsuspend): Likewise.
10529 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
10530 (__libc_sigsuspend): Likewise.
10531 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
10532 (creat): New weak alias.
10534 2002-12-10 Roland McGrath <roland@redhat.com>
10536 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
10537 contributes a manual chapter.
10538 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
10541 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
10542 and move contents to ...
10543 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
10544 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
10545 it instead of duplicating its contents.
10546 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
10548 2002-12-09 Jakub Jelinek <jakub@redhat.com>
10550 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
10552 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
10554 (EXTRA_LD_ENVVARS): Use it.
10555 (DL_OSVERSION_INIT): Define.
10556 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
10558 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
10560 2002-12-10 Ulrich Drepper <drepper@redhat.com>
10562 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
10564 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
10565 call. It is not allowed to destroy pthread mutexes which are
10566 still in use even though it is safe for our implementations. If
10567 somebody still uses the descriptor it is a bug.
10569 2002-12-09 Richard Henderson <rth@redhat.com>
10571 * csu/abi-note.S: Use .p2align, not .align.
10573 2002-12-09 Ulrich Drepper <drepper@redhat.com>
10575 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
10576 __libc_select aliases.
10578 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
10581 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
10583 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
10585 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
10587 * sysdeps/unix/syscalls.list: Define __libc_select alias.
10589 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
10591 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
10592 __libc___xpg_sigpause aliases.
10594 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
10596 * misc/error.c: Remove use of USE_IN_LIBIO.
10598 2002-12-08 Roland McGrath <roland@redhat.com>
10600 * elf/Makefile (tests): Uncomment tst-array[123].
10601 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
10602 * csu/elf-init.c: New file.
10603 * csu/Makefile (routines, static-only-routines): Add elf-init.
10604 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
10605 and __libc_csu_fini in place of _fini.
10606 * sysdeps/arm/elf/start.S: Likewise.
10607 * sysdeps/cris/elf/start.S: Likewise.
10608 * sysdeps/hppa/elf/start.S: Likewise.
10609 * sysdeps/i386/elf/start.S: Likewise.
10610 * sysdeps/ia64/elf/start.S: Likewise.
10611 * sysdeps/m68k/elf/start.S: Likewise.
10612 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
10613 * sysdeps/mips/elf/start.S: Likewise.
10614 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
10615 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
10616 * sysdeps/s390/s390-32/elf/start.S: Likewise.
10617 * sysdeps/s390/s390-64/elf/start.S: Likewise.
10618 * sysdeps/sh/elf/start.S: Likewise.
10619 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10620 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10621 * sysdeps/x86_64/elf/start.S: Likewise.
10623 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
10624 struct containing function ptr and value, free it.
10625 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
10626 It's not safe to let the new thread use the SIGEV pointer.
10628 2001-10-20 Paul Eggert <eggert@twinsun.com>
10630 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
10631 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
10632 Use strerror_r that is only a macro, even if it is not a function.
10633 (strerror): Check for HAVE_DECL_STRERROR before declaring.
10634 (private_strerror): Use prototypes, not old-style function definition.
10635 (print_errno_message): New function.
10636 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
10637 char*-flavored one.
10638 (error_tail, error, error_at_line): Use it.
10640 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
10642 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
10644 2002-12-08 Ulrich Drepper <drepper@redhat.com>
10646 * scripts/output-format.sed: Fix bug in one of the s expressions
10647 which used / for one too many things.
10649 * include/unistd.h: Declare __libc_close.
10651 2002-12-07 Ulrich Drepper <drepper@redhat.com>
10653 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
10655 2002-12-07 Roland McGrath <roland@redhat.com>
10657 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
10658 from 2002-12-06, but remove unnecessary memset call without removing
10659 necessary copy of initialization image.
10661 * Makerules ($(common-objpfx)format.lds): New target.
10662 (common-generated): Add it.
10663 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
10664 * scripts/output-format.sed: New file.
10665 * Makefile (distribute): Add it.
10667 2002-12-07 Ulrich Drepper <drepper@redhat.com>
10669 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
10670 Reported by Art Haas <ahaas@airmail.net>.
10672 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
10674 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
10676 2002-12-07 Jakub Jelinek <jakub@redhat.com>
10678 * string/test-strncpy.c (do_random_tests): Improve test coverage.
10680 2002-12-06 Ulrich Drepper <drepper@redhat.com>
10682 * test-skeleton.c (timeout_handler): Allow expected signal to be
10685 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
10687 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
10689 2002-12-07 Jakub Jelinek <jakub@redhat.com>
10691 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
10692 (SYSCALL_ERROR_HANDLER): Fix a pasto.
10693 Reported by Jeff Bailey <jbailey@nisa.net>.
10695 2002-12-06 Ulrich Drepper <drepper@redhat.com>
10697 * sysdeps/generic/libc-tls.c: Undo last patch.
10699 * include/wctype.h: Define iswalnum with libc_hidden_proto.
10701 * include/signal.h: Define raise with libc_hidden_proto.
10703 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
10704 __execve instead of snprintf and execve.
10706 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
10709 2002-12-06 Jakub Jelinek <jakub@redhat.com>
10711 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
10712 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
10714 2002-12-06 Ulrich Drepper <drepper@redhat.com>
10716 * misc/syslog.c (log_cleanup): New function.
10717 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
10718 (closelog): Likewise.
10720 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
10721 * elf/dl-iteratephdr.c: Likewise.
10722 * elf/dl-lookup.c: Likewise.
10723 * elf/dl-misc.c: Likewise.
10724 * elf/dl-open.c: Likewise.
10725 * elf/dl-support.c: Likewise.
10726 * elf/rtld.c: Likewise.
10727 * sysdeps/generic/ldsodefs.h: Likewise.
10728 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
10729 * sysdeps/mach/bits/libc-lock.h: Likewise.
10730 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
10732 2002-12-06 Roland McGrath <roland@redhat.com>
10734 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
10736 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
10737 (malloc_starter, memalign_starter, free_starter): Don't define these.
10738 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
10739 Don't declare them either.
10740 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
10741 __pthread_initialize, so no need to set hooks to *_starter.
10742 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
10743 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
10744 (__libc_malloc_pthread_startup): New function.
10745 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
10747 * malloc/hooks.c (memalign_starter): New function.
10748 * malloc/malloc.c: Declare it.
10749 * malloc/arena.c (save_memalign_hook): New variable.
10750 (ptmalloc_init): Set __memalign_hook to memalign_starter.
10752 * elf/dl-minimal.c (free): Clear the memory.
10753 (calloc): Just call malloc, knowing all memory it returns is cleared.
10755 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
10756 malloc and memset; calloc can avoid the zeroing when redundant.
10757 (_dl_tls_setup): Likewise.
10758 * elf/dl-load.c (decompose_rpath): Likewise.
10759 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
10760 call, since memory from sbrk at startup is already zero.
10762 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
10763 error string for failure, null for success. Update callers.
10764 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
10765 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10767 2002-12-05 Jakub Jelinek <jakub@redhat.com>
10769 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
10771 (readahead): Change args to i:iii.
10772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
10773 Change args to i:iii.
10774 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
10777 2002-12-05 Roland McGrath <roland@redhat.com>
10779 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
10780 call all functions rather than none.
10781 Reported by Mark P. Mitchell <mark@codesourcery.com>.
10783 2002-12-04 Roland McGrath <roland@redhat.com>
10785 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
10786 on _nl_current_LC_* variables.
10788 2002-12-05 Ulrich Drepper <drepper@redhat.com>
10790 * dirent/bug-readdir1.c (main): Don't call closedir, just close
10791 the file descriptor. This is testing what the bug report was about.
10793 2002-12-04 Ulrich Drepper <drepper@redhat.com>
10795 * po/be.po: New file.
10797 * argp/Makefile (tests): Add tst-argp1.
10799 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
10800 Change type of _attribute to void*.
10801 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10802 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
10803 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
10804 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10805 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10807 2002-12-04 Roland McGrath <roland@redhat.com>
10809 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
10810 members to the end, so a libpthread compiled with !USE_TLS will still
10811 find other members properly.
10813 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
10814 operand for DEST memory. Fix dummy input operand to use SRC.
10815 Reported by Davin McCall <davmac@ozonline.com.au>.
10817 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
10818 alignment when initializing the DTV entry.
10820 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
10821 when TLS has not been set up, try to set it up if we can.
10822 * elf/tst-tls4.c: Revert last change.
10823 * elf/tst-tls5.c: Likewise.
10824 * elf/tst-tls6.c: Likewise.
10825 * elf/tst-tls7.c: Likewise.
10826 * elf/tst-tls8.c: Likewise.
10827 * elf/tst-tls9.c: Likewise.
10829 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
10830 * sysdeps/generic/ldsodefs.h: Declare it.
10831 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
10832 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
10833 function, broken out of __libc_setup_tls.
10834 (init_static_tls): Likewise.
10835 (__libc_setup_tls): Call them.
10836 (_dl_tls_setup): New function, uses new subroutines.
10838 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
10839 Clear the pointer when returning true.
10840 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
10841 first element of the slotinfo list too.
10843 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
10846 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
10847 (_dl_determine_tlsoffset): Likewise.
10849 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
10850 startup_error_tsd, made global.
10851 (dl_main): Update initialization.
10852 * elf/dl-tsd.c: Likewise.
10853 * sysdeps/generic/ldsodefs.h: Declare it.
10855 2002-12-03 Ulrich Drepper <drepper@redhat.com>
10857 * manual/texinfo.tex: Update from latest upstream version.
10859 2002-12-03 Roland McGrath <roland@redhat.com>
10861 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
10862 area surplus in calculation for sbrk call.
10864 * iconvdata/cp1125.c: New file.
10865 * iconvdata/Makefile (distribute): Add it.
10866 (modules): Add CP1125.
10867 (gen-8bit-gap-modules): Add cp1125.
10868 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
10869 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
10871 2002-12-03 Andreas Jaeger <aj@suse.de>
10873 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10875 2002-12-03 Ulrich Drepper <drepper@redhat.com>
10877 * sysdeps/posix/system.c (do_system): Make signal handler
10878 installation thread safe.
10880 2002-12-02 Roland McGrath <roland@redhat.com>
10882 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
10883 caller from EXTRA to -.
10884 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10885 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10886 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10888 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
10890 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
10891 bits of RM are cleared.
10893 2002-12-02 Roland McGrath <roland@redhat.com>
10895 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
10896 TLS setup is required.
10897 * elf/tst-tls5.c: Likewise.
10898 * elf/tst-tls6.c: Likewise.
10899 * elf/tst-tls7.c: Likewise.
10900 * elf/tst-tls8.c: Likewise.
10901 * elf/tst-tls9.c: Likewise.
10903 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
10904 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
10905 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
10906 for being null before calling free_slotinfo.
10907 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
10908 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
10910 2002-11-30 Bruno Haible <bruno@clisp.org>
10912 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
10913 (struct __gconv_step): New field __btowc_fct.
10914 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
10915 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
10917 (__gconv_btwoc_ascii): New declaration.
10918 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
10919 (__gconv_btwoc_ascii): New function.
10920 * iconv/gconv_builtin.h: Add BtowcFct argument to all
10921 BUILTIN_TRANSFORMATION invocations.
10922 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
10923 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
10924 * iconv/gconv_builtin.c (map): New field btowc_fct.
10925 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
10927 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
10928 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
10929 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
10930 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
10931 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
10932 (gconv_init): Initialize __btowc_fct field.
10933 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
10934 * iconv/loop.c: Document ONEBYTE_BODY.
10935 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
10936 Undefine ONEBYTE_BODY at the end.
10937 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
10938 * iconvdata/8bit-gap.c (NONNUL): New macro.
10939 (BODY for FROM_LOOP): Use it.
10940 (ONEBYTE_BODY): New macro.
10941 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
10942 (NONNUL): New macro.
10943 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
10944 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
10945 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
10946 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
10947 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
10948 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
10949 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
10950 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
10951 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
10952 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
10953 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
10954 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
10955 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
10956 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
10957 * iconvdata/ibm932.c: Include <stdbool.h>.
10958 (TRUE, FALSE): Remove macros.
10959 (BODY for FROM_LOOP): Remove unused variable rp1.
10960 (ONEBYTE_BODY): New macro.
10961 (BODY for TO_LOOP): Use bool.
10962 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
10963 * iconvdata/ibm943.c: Include <stdbool.h>.
10964 (TRUE, FALSE): Remove macros.
10965 (BODY for FROM_LOOP): Remove unused variable rp1.
10966 (ONEBYTE_BODY): New macro.
10967 (BODY for TO_LOOP): Use bool.
10968 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
10969 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
10970 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
10971 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
10972 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
10973 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
10974 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
10975 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
10976 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
10977 * iconvdata/gbbig5.c: Tweak comment.
10979 2002-12-02 Ulrich Drepper <drepper@redhat.com>
10981 * po/fi.po: Update from translation team.
10983 2002-12-01 Roland McGrath <roland@redhat.com>
10985 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10986 testing getdents64 return value.
10988 * scripts/versions.awk: Don't pass -n flag to sort command.
10990 * posix/bug-regex13.c: Include <string.h>.
10992 * sysdeps/generic/libc-start.c (__libc_start_main): Do
10993 DL_SYSDEP_OSCHECK here.
10994 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
10995 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
10997 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
10998 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
11000 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
11001 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
11003 * include/link.h: Comment typo fix.
11005 2002-12-01 Roland McGrath <roland@frob.com>
11007 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
11008 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
11009 _POSIX_MEMORY_PROTECTION): Likewise.
11010 (_POSIX_POLL, _POSIX_SELECT): Removed.
11012 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11014 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11015 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
11017 2002-11-28 Jakub Jelinek <jakub@redhat.com>
11019 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
11021 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
11024 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11026 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
11027 branch prediction buffers by using unpaired call/ret.
11029 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11031 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
11032 first parameters constraint string.
11033 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
11035 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
11037 * posix/regcomp.c (parse_expression): Set the bit since the back
11038 reference is used in the regular expression.
11039 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
11041 (re_node_set_init_copy): Likewise.
11042 * posix/regex_internal.h (state_array_t): New structure.
11043 (re_sub_match_last_t): Likewise.
11044 (re_sub_match_top_t): Likewise.
11045 (re_match_context_t): Add new members.
11046 (re_dfa_t): Likewise.
11047 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
11048 to check the matching is really correct, and retry if failed.
11049 Move the routin pruning the impossible nodes from here, ...
11050 (prune_impossible_nodes): To this function.
11051 (check_matching): Invoke check_subexp_matching_top, and replace
11052 redundant checking with transit_state_bkref invocation.
11053 (proceed_next_node): Replace strncmp with memcmp. Reported by
11054 Paolo Bonzini <bonzini@gnu.org>.
11055 (update_cur_sifted_state): Remove search_subexp invocation.
11056 (search_subexp): Remove this function.
11057 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
11059 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
11060 Remove unused invocation of match_ctx_add_entry.
11061 (transit_state): Invoke check_subexp_matching_top.
11062 (check_subexp_matching_top): New function.
11063 (transit_state_bkref): Remove unused array.
11064 Merge transit_state_bkref_loop.
11065 (transit_state_bkref_loop): Use get_subexp instead of
11066 sift_states_backward. Use search_cur_bkref_entry for optimization.
11067 Merge this function to transit_state_bkref.
11068 (get_subexp): New function.
11069 (get_subexp_sub): Likewise.
11070 (find_subexp_node): Likewise.
11071 (check_arrival): Likewise.
11072 (check_arrival_expand_ecl): Likewise.
11073 (check_arrival_expand_ecl_sub): Likewise.
11074 (expand_bkref_cache): Likewise.
11075 (match_ctx_init): Initialize new members.
11076 (match_ctx_clean): New function.
11077 (match_ctx_free): Release new members.
11078 (match_ctx_free_subtops): New function.
11079 (match_ctx_add_entry): Fix indent.
11080 (search_cur_bkref_entry): New function.
11081 (match_ctx_add_subtop): Likewise.
11082 (match_ctx_add_sublast): Likewise.
11084 2002-11-25 Ulrich Drepper <drepper@redhat.com>
11086 * iconv/Makefile (tests): Remove tst-iconv4.c
11087 * iconv/tst-iconv4.c: Moved to...
11088 * iconvdata/tst-iconv4.c: ...here. New file.
11089 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
11091 2002-11-25 Roland McGrath <roland@redhat.com>
11093 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
11094 Grok AF_LINK if defined.
11095 From Momchil Velikov <velco@fadata.bg>.
11097 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
11098 brdaddr, or dstaddr, just set those pointers to null and don't fail.
11099 Reported by Momchil Velikov <velco@fadata.bg>.
11101 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
11102 is > sizeof IFR->ifa_addr, advance past the whole longer length.
11103 (__ifreq): Count up NIFS that way too.
11104 Reported by Momchil Velikov <velco@fadata.bg>.
11106 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
11108 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
11109 and <fpu_control.h>.
11111 2002-11-24 Ulrich Drepper <drepper@redhat.com>
11113 * elf/elf.h (EM_ST19): Fix typo.
11115 2002-11-25 Jakub Jelinek <jakub@redhat.com>
11117 * include/errno.h (__set_errno): Define as errno = val
11120 2002-11-24 Roland McGrath <roland@redhat.com>
11122 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
11123 * sysdeps/posix/writev.c: Likewise.
11124 From Momchil Velikov <velco@fadata.bg>.
11126 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
11127 calling *GL(dl_error_catch_tsd) for a thread-local location.
11128 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
11129 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
11130 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
11132 * libio/iofflush.c: Add libc_hidden_def.
11133 * libio/iofwrite.c: Likewise.
11134 * sysdeps/generic/sigtimedwait.c: Likewise.
11135 * sysdeps/generic/sigwaitinfo.c: Likewise.
11136 * sysdeps/posix/sigwait.c: Likewise.
11137 Reported by Momchil Velikov <velco@fadata.bg>.
11139 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
11140 to match <arpa/inet.h> declaration.
11141 * inet/inet_netof.c (inet_netof): Likewise.
11142 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
11143 Reported by Momchil Velikov <velco@fadata.bg>.
11145 * configure.in: Skip AUTOCONF check under --without-cvs.
11146 * configure: Regenerated.
11148 * posix/Makefile (headers): Add bits/pthreadtypes.h.
11149 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
11150 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
11152 2002-11-24 Andreas Schwab <schwab@suse.de>
11154 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
11155 with six arguments.
11157 2002-11-19 Jim Meyering <jim@meyering.net>
11159 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
11161 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
11163 2002-11-23 Roland McGrath <roland@redhat.com>
11165 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
11166 Just produce hex output for datum sizes.
11168 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
11169 Reported by Luca Barbieri <ldb@ldb.ods.org>.
11171 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
11173 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
11174 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
11175 and __unused3 fields.
11176 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
11177 [__WORDSIZE == 32]: Only PPC32 requires __unused1
11178 and __unused2 fields.
11179 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
11180 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
11181 __unused3, and __unused4 fields.
11183 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
11184 obtain lowest address for profiling in __monstartup call.
11186 2002-11-21 Roland McGrath <roland@redhat.com>
11188 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
11189 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
11191 * locale/localeinfo.h (struct locale_data): Revert last change.
11193 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
11194 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11196 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
11197 __NR_pread64 if not defined.
11198 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
11199 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11201 2002-11-21 Roland McGrath <roland@frob.com>
11203 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
11204 __libc_multiple_libcs here. Call __setfpucw.
11206 2002-11-21 Ulrich Drepper <drepper@redhat.com>
11208 * elf/Makefile (tests): Don't run test-arrayX tests for now.
11210 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
11211 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
11212 CLONE_CHILD_*TID flags.
11214 2002-11-20 Andreas Jaeger <aj@suse.de>
11216 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
11217 We pass struct ucontext on x86-64.
11219 (GET_FRAME): Adjust.
11220 (GET_STACK): Adjust.
11222 2002-11-20 Roland McGrath <roland@redhat.com>
11224 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
11225 conditionalize [! DO_VERSIONING] #error.
11227 * scripts/abilist.awk: Grok function descriptor symbols.
11229 * intl/tst-gettext.c (main): Check return values from setlocale.
11230 Add necessary unsetenv's to make LANG=existing-locale check work.
11232 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
11233 so aborted prior runs don't confuse things.
11235 * locale/localeinfo.h (struct locale_data: union locale_data_value):
11236 Use uintptr_t instead of unsigned int for `word' member.
11237 (_NL_CURRENT_WORD): Cast to uint32_t.
11239 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
11242 2002-11-20 Ulrich Drepper <drepper@redhat.com>
11244 * elf/tls-macros.h: Add IA-64 definitions.
11245 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
11247 * iconv/Makefile (tests): Add tst-iconv4.
11248 * iconv/tst-iconv4.c: New file.
11250 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
11251 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
11252 __GCONV_INCOMPLETE_INPUT.
11253 (ucs4le_internal_loop): Likewise.
11254 (ucs4le_internal_loop_unaligned): Likewise.
11255 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
11256 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
11257 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
11259 * iconv/loop.c (LOOPFCT): First test for empty input then for full
11262 * inet/getnameinfo.c: Use extend_alloca where appropriate.
11263 * sysdeps/posix/getaddrinfo.c: Likewise.
11265 * include/alloca.h (extend_alloca): New define. Based on stack
11266 direction it'll try to append to the previouls allocated buffer.
11268 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
11270 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
11271 use the same service for AF_INET and AF_INET6.
11273 2002-11-19 Ulrich Drepper <drepper@redhat.com>
11275 * intl/localealias.c (read_alias_file): Use only about 400 bytes
11276 of stack space instead of 16k.
11278 2002-11-18 Wolfram Gloger <wg@malloc.de>
11281 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
11282 nothing if not initialized. Bug report from Marcus Brinkmann
11283 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11285 2002-11-19 Roland McGrath <roland@redhat.com>
11287 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
11290 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
11291 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
11292 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
11293 * configure: Regenerated.
11295 2002-11-19 Ulrich Drepper <drepper@redhat.com>
11297 * include/dlfcn.h: __libc_dlopen is now a macro calling
11298 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
11299 (__libc_dlopen_mode): New prototype.
11300 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
11301 new parameter. Store new parameter in mode field of structure passed
11303 (struct do_dlopen_args): Add new field mode.
11304 (do_dlopen): Pass mode from parameter structure to _dl_open.
11306 2002-11-11 Randolf Chung <tausq@debian.org>
11308 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
11309 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
11310 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
11312 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
11314 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
11315 Set -mdisable-fpregs for this file.
11317 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
11319 * sysdeps/unix/sysv/linux/configure.in:
11320 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
11321 from gcc-3.0 era for backwards compatibility.
11322 * sysdeps/unix/sysv/linux/configure: Regenerate.
11324 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
11325 Define mcontext_t as a sigcontext.
11327 2002-11-18 Roland McGrath <roland@redhat.com>
11329 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
11330 Free memory in `last_result' if it was used.
11332 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
11333 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
11334 Do the parsing inline instead of copying strings and calling
11335 inet_network, and properly skip all alias names not matching the form.
11337 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
11339 2002-11-17 Ulrich Drepper <drepper@redhat.com>
11341 * manual/pattern.texi (Wordexp Example): Fix sample code.
11343 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
11344 childs stack which will be loaded into the %esi register.
11346 2002-11-14 Paul Eggert <eggert@twinsun.com>
11348 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
11349 overflow when skipping the question part and when unpacking aliases.
11351 2002-11-15 Roland McGrath <roland@redhat.com>
11353 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
11354 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
11355 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
11357 2002-11-15 Jakub Jelinek <jakub@redhat.com>
11359 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
11360 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
11362 2002-11-15 Roland McGrath <roland@redhat.com>
11364 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
11365 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
11366 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
11367 (+make-include-of-dep): New canned sequence.
11369 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
11370 From Dmitry V. Levin <ldv@altlinux.org>.
11372 2002-11-14 Roland McGrath <roland@redhat.com>
11374 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
11375 * inet/herrno.c (__libc_h_errno): Likewise.
11376 * resolv/res_libc.c (__libc_res): Likewise.
11377 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
11378 (__res_state) [! USE___THREAD]: Don't define as weak.
11379 * csu/Versions: Revert last change.
11380 * resolv/Versions: Revert last change.
11382 * Makerules ($(common-objpfx)%.make): New pattern rule.
11383 * tls.make.c: New file.
11384 * Makefile (distribute): Add it.
11386 * sysdeps/generic/errno.c [! USE___THREAD]
11387 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
11388 with compat_symbol so they are not link-time visible.
11389 [! USE___THREAD] (__libc_errno): New alias for errno.
11390 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
11391 Add __libc_errno here.
11392 * inet/herrno.c [USE___THREAD]: Use this conditional
11393 in place of [USE_TLS && HAVE___THREAD].
11394 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
11395 (h_errno, _h_errno): Declare these with compat_symbol so they are not
11397 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
11398 * resolv/res_libc.c [! USE___THREAD]
11399 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
11400 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
11401 (__libc_res): Define as alias for _res.
11402 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
11403 Add __libc_h_errno and __libc_res here.
11405 2002-11-14 Jakub Jelinek <jakub@redhat.com>
11407 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
11408 * resolv/Versions (h_errno, _res): Likewise.
11410 2002-11-14 Roland McGrath <roland@redhat.com>
11412 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
11413 (%.symlist): Likewise.
11415 2002-11-13 Roland McGrath <roland@redhat.com>
11417 * scripts/abilist.awk: New file.
11418 * Makefile (distribute): Add it.
11419 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
11420 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
11421 [$(subdir) = elf] (tests): Depend on libc.symlist.
11422 (generated, common-generated): Add those files.
11424 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
11425 * configure: Regenerated.
11426 * config.make.in (OBJDUMP): New variable, substituted by configure.
11428 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
11429 (mallochook, reallochook): Set them up.
11430 (checkhdr): Check HDR->magic2 value.
11431 (freehook): Reset HDR->magic2.
11432 (memalignhook): New static function.
11433 (old_memalign_hook): New static variable.
11434 (mcheck, reallochook): Set __memalign_hook to memalignhook.
11436 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
11439 2002-11-13 Andreas Jaeger <aj@suse.de>
11441 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
11443 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11445 2002-11-11 Paul Eggert <eggert@twinsun.com>
11447 * manual/crypt.texi (Cryptographic Functions): Mention that
11448 the MD5 one-way algorithm is compatible with BSD's.
11450 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11452 * posix/regex_internal.c (re_string_skip_chars): Also return the last
11454 (re_string_reconstruct): Calculate the context by itself when the
11455 offset points out of the valid range.
11456 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
11457 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
11458 (IS_WIDE_WORD_CHAR): New macro.
11459 (IS_WIDE_NEWLINE): New macro.
11461 2002-11-12 Andreas Jaeger <aj@suse.de>
11463 * sysdeps/x86_64/strchr.S: Don't use one register for two
11464 purposes, this fixes a bug noticed by test-strchr.c.
11466 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
11469 2002-11-12 Roland McGrath <roland@redhat.com>
11471 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
11472 (_G_IO_NO_BACKWARD_COMPAT): Define it.
11474 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
11475 instead of <pt-machine.h>.
11476 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
11478 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11480 2002-11-10 Roland McGrath <roland@redhat.com>
11482 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
11483 Call fputs instead of fwprintf (simpler to follow in debugger).
11485 * crypt/md5-crypt.c: Doc fix.
11487 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
11488 the beginning of generated target commands.
11490 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
11491 dependencies for these in case implicit rule search skipped the
11492 nonexistent source directory.
11493 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
11494 files with $(object-suffixes) as targets too.
11495 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
11496 and a target for it using $(make-target-directory).
11498 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
11500 2002-11-10 Roland McGrath <roland@frob.com>
11502 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
11503 * sysdeps/generic/bits/pthreadtypes.h: ... here.
11505 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
11506 l_start == 0 and l_len == 1 as we do l_len == 0.
11508 2002-11-10 Ulrich Drepper <drepper@redhat.com>
11510 * po/da.po: Update from translation team.
11512 2002-11-10 Roland McGrath <roland@redhat.com>
11514 * config.make.in (includedir): New variable, substituted by configure.
11515 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
11516 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
11518 2002-11-10 Andreas Jaeger <aj@suse.de>
11520 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
11521 REG_OLDMASK and REG_CR2 to synch with kernel header.
11524 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
11526 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
11527 * nss/getnssent_r.c (__nss_getent_r): Likewise.
11528 (__nss_setent): Likewise.
11529 (__nss_getent_r): Likewise.
11530 * inet/getnetgrent_r.c (innetgr): Likewise.
11531 (__internal_setnetgrent_reuse): Likewise.
11532 (internal_getnetgrent_r): Likewise.
11533 * inet/ether_hton.c (ether_hostton): Likewise.
11534 * inet/ether_ntoh.c (ether_ntohost): Likewise.
11535 * sunrpc/netname.c (netname2user): Likewise.
11536 * sunrpc/publickey.c (getpublickey): Likewise.
11537 (getsecretkey): Likewise.
11539 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
11541 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
11542 error in range calculation.
11544 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11546 * string/test-strspn.c (do_test): Ensure zero termination.
11547 * string/test-strpbrk.c (do_test): Likewise.
11548 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
11549 * string/test-strncpy.c (stupid_strncpy): Likewise.
11550 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
11552 2002-10-08 Roland McGrath <roland@redhat.com>
11554 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
11555 nonzero characters.
11557 2002-09-22 H.J. Lu <hjl@gnu.org>
11559 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
11560 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
11561 only if __NR_mmap2 is defined.
11563 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
11564 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
11565 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
11566 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
11568 2002-11-08 Jakub Jelinek <jakub@redhat.com>
11570 * posix/bug-regex13.c (tests): Add new test.
11572 * string/test-strchr.c (stupid_strchr): New function.
11573 (do_random_tests): Make sure the string is zero terminated.
11574 * string/test-strpbrk.c (stupid_strpbrk): New function.
11575 (do_random_tests): Make sure the string is zero terminated.
11576 * string/test-strcmp.c (stupid_strcmp): New function.
11577 (do_random_tests): Make sure the strings are zero terminated.
11578 * string/test-strspn.c (stupid_strspn): New function.
11579 (simple_strspn): Rename rej argument to acc.
11580 (do_random_tests): Make sure the string is zero terminated.
11581 * string/test-strcspn.c (stupid_strcspn): New function.
11582 * string/test-strncpy.c (stupid_strncpy): New function.
11583 * string/test-stpncpy.c (stupid_stpncpy): New function.
11584 * string/test-strncmp.c (stupid_strncmp): New function.
11585 (do_random_tests): Make sure the strings are zero terminated.
11586 * string/test-string.h (impl_t): Change test into long.
11587 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
11589 2002-11-08 Roland McGrath <roland@redhat.com>
11591 * sysdeps/ia64/elf/configure.in: Add TLS check.
11592 From Ian Wienand <ianw@cse.unsw.edu.au>.
11593 * sysdeps/ia64/elf/configure: Regenerated.
11595 2002-11-07 Roland McGrath <roland@redhat.com>
11597 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
11598 place of _IO_new_do_write.
11599 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
11600 #undef before versioned_symbol use.
11602 2002-11-07 Richard Henderson <rth@redhat.com>
11604 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
11605 * configure: Regenerated.
11606 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
11607 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
11608 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
11609 _dl_fini via gp-relative relocations.
11610 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
11612 * elf/tls-macros.h: Add alpha versions.
11613 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
11614 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
11615 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
11616 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
11617 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
11618 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
11619 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
11620 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
11621 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
11622 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
11623 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
11624 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
11625 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
11626 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
11627 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
11628 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
11629 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
11630 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
11632 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
11633 Kill argument registers across the inline syscall.
11635 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
11637 * linuxthreads/sysdeps/alpha/tls.h: New file.
11638 * sysdeps/alpha/dl-tls.h: New file.
11640 2002-10-29 David Mosberger <davidm@hpl.hp.com>
11642 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
11643 (gmon_initializer): New function.
11644 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
11645 __gmon_start__ here. Call it from gmon_initializer() instead.
11647 2002-03-12 H.J. Lu <hjl@gnu.org>
11649 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
11650 tst-array2, and tst-array3.
11651 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
11652 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
11653 ($(objpfx)tst-array1.out): New target.
11654 ($(objpfx)tst-array2): Likewise.
11655 ($(objpfx)tst-array2.out): Likewise.
11656 ($(objpfx)tst-array3.out): Likewise.
11657 * elf/tst-array1.c: New file.
11658 * elf/tst-array1.exp: Likewise.
11659 * elf/tst-array2.c: Likewise.
11660 * elf/tst-array2dep.c: Likewise.
11661 * elf/tst-array2.exp: Likewise.
11662 * elf/tst-array3.c: Likewise.
11664 2002-10-28 David Mosberger <davidm@hpl.hp.com>
11666 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
11667 Don't add L->l_addr to array entry values.
11669 2002-11-07 Jakub Jelinek <jakub@redhat.com>
11671 * string/test-string.h: New file.
11672 * string/test-strlen.c: New file.
11673 * string/test-string.h: New file.
11674 * string/test-strcmp.c: New file.
11675 * string/test-strchr.c: New file.
11676 * string/test-strrchr.c: New file.
11677 * string/test-strcpy.c: New file.
11678 * string/test-stpcpy.c: New file.
11679 * string/test-strncpy.c: New file.
11680 * string/test-stpncpy.c: New file.
11681 * string/test-strpbrk.c: New file.
11682 * string/test-strcspn.c: New file.
11683 * string/test-strspn.c: New file.
11684 * string/test-strcat.c: New file.
11685 * string/test-strncmp.c: New file.
11686 * string/test-memchr.c: New file.
11687 * string/test-memcmp.c: New file.
11688 * string/test-memset.c: New file.
11689 * string/test-memcpy.c: New file.
11690 * string/test-mempcpy.c: New file.
11691 * string/test-memmove.c: New file.
11692 * string/Makefile (strop-tests): New variable.
11693 (tests): Add strop-tests.
11694 (distribute): Add test-string.h.
11696 2002-11-06 Ulrich Drepper <drepper@redhat.com>
11698 * posix/regcomp.c: Use tabs instead of spaces.
11699 * posix/regexec.c: Likewise.
11700 * posix/regex_internal.h: Likewise.
11702 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
11704 2002-11-06 Jakub Jelinek <jakub@redhat.com>
11706 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
11708 (regcomp): Don't set can_be_null here.
11709 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
11710 (re_compile_internal): Clear can_be_null, set regs_allocated.
11712 * posix/regcomp.c (re_set_fastmap): New function.
11713 (re_compile_fastmap_iter): Use it. Remove redundant type ==
11714 COMPLEX_BRACKET check.
11715 * posix/regexec.c (re_search_internal): Optimize searching with
11716 fastmap. Call re_string_reconstruct even if match_first is
11717 smaller than raw_mbs_idx.
11719 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
11721 * posix/regcomp (free_dfa_content): Use free_state.
11722 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
11723 pointers in case that realloc failed.
11724 (re_node_set_merge): Likewise.
11725 (register_state): Likewise.
11726 (create_newstate_common): Invoke memory release functions in case of
11728 (create_ci_newstate): Likewise.
11729 (create_cd_newstate): Likewise.
11730 (free_state): New function.
11731 * posix/regexec.c (re_search_internal): Invoke memory release
11732 functions in case of error conditions.
11733 (sift_states_backward): Likewise.
11734 (merge_state_array): Likewise.
11735 (add_epsilon_src_nodes): Likewise.
11736 (sub_epsilon_src_nodes): Likewise.
11737 (search_subexp): Likewise.
11738 (sift_states_bkref): Likewise.
11739 (transit_state_sb): Likewise.
11740 (transit_state_mb): Likewise.
11741 (transit_state_bkref_loop): Likewise.
11742 (group_nodes_into_DFAstates): Likewise.
11743 (push_fail_stack): Don't edit pointers in case that realloc failed.
11744 (extend_buffers): Likewise.
11745 (match_ctx_add_entry): Likewise.
11747 2002-11-06 Roland McGrath <roland@redhat.com>
11749 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
11750 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
11752 * configure.in: Add checks on as and ld for binutils 2.13 or later.
11753 * configure: Regenerated.
11755 2002-11-06 Ulrich Drepper <drepper@redhat.com>
11757 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
11758 If re_compile_internal failed free fastmap buffer.
11759 (free_dfa_content): Broken out of regfree function. Frees all dfa
11761 (regfree): Add free_dfa_content.
11762 (re_compile_internal): If any of the called functions fails free
11763 all dfa related memory.
11765 2002-11-05 Ulrich Drepper <drepper@redhat.com>
11767 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
11768 warnings from the kernel headers.
11770 2002-11-05 Roland McGrath <roland@redhat.com>
11772 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
11773 From Johannes Stezenbach <js@convergence.de>.
11775 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
11776 #errlist-compat magic comment to give 123 as size.
11777 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
11778 (libc: GLIBC_2.2): ... here.
11779 (libc: GLIBC_2.3): Likewise.
11781 2002-11-05 Ulrich Drepper <drepper@redhat.com>
11783 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
11784 which happens at the beginning so that we can unload modules in
11787 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11789 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
11790 under [__USE_MISC || _ASM].
11792 * elf/elf.h: Remove the obsolete SH TLS relocations.
11794 2002-11-05 Ulrich Drepper <drepper@redhat.com>
11796 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
11798 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
11801 __NR_pread64 and __NR_pwrite64.
11802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11803 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
11805 Revert change to use INLINE_SYSCALL.
11806 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11807 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
11808 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11809 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
11811 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
11813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11814 Update clobber list and add a comment about the syscall ABI.
11816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
11817 s_pwrite64, s_ftruncate, s_truncate): Re-add.
11819 2002-11-05 Jakub Jelinek <jakub@redhat.com>
11821 * iconv/gconv_dl.c (free_mem): Clear loaded.
11822 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
11825 2002-11-05 Ulrich Drepper <drepper@redhat.com>
11827 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
11829 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
11830 as old code without locking. _IO_seekoff calls this function after
11831 locking the stream.
11832 * libio/ioseekpos.c: Likewise for _IO_seekpos.
11833 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
11834 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
11836 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
11837 of _IO_seekoff_internal.
11838 (_IO_rewind): Likewise.
11839 * libio/ioftell.c: Likewise.
11840 * libio/ftello.c: Likewise.
11841 * libio/ftello64.c: Likewise.
11842 * libio/iofgetpos.c: Likewise.
11843 * libio/iofgetpos64.c: Likewise.
11844 * libio/oldiofgetpos.c: Likewise.
11845 * libio/oldiofgetpos64.c: Likewise.
11846 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
11847 _IO_seekpos_internal.
11848 * libio/iofsetpos64.c: Likewise.
11849 * libio/oldiofsetpos.c: Likewise.
11850 * libio/oldiofsetpos64.c: Likewise.
11852 2002-11-04 Roland McGrath <roland@redhat.com>
11854 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
11855 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
11856 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
11857 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
11858 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
11860 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
11862 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
11864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
11865 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
11866 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
11867 Remove these, no longer used.
11869 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
11872 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
11873 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
11874 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
11875 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
11876 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
11879 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
11880 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11881 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
11883 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11884 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
11886 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11888 2002-11-03 Roland McGrath <roland@redhat.com>
11890 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
11891 `_dl_tls_static_used'.
11892 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
11893 (__libc_setup_tls): Initialize it. Let the initial value of
11894 _dl_tls_static_size indicate some surplus space in the computed value.
11895 * elf/dl-open.c (_dl_tls_static_size): New variable.
11896 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
11897 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
11898 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
11899 (CHECK_STATIC_TLS): Use it.
11900 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
11901 closed objects occupied a trailing contiguous chunk of static TLS area.
11903 2002-10-18 Bruno Haible <bruno@clisp.org>
11905 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
11907 2002-11-04 Ulrich Drepper <drepper@redhat.com>
11909 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
11910 _wide_data->_IO_read_end if adjustment can be made in the current
11913 * sysdeps/unix/sysv/linux/fexecve.c: New file.
11915 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
11916 wide oriented streams are used.
11918 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
11919 service hasn't been used [PR libc/4744].
11921 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
11922 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
11924 * manual/examples/dir.c: Don't include <stddef.h>.
11925 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
11926 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
11928 2002-11-02 H.J. Lu <hjl@gnu.org>
11930 * stdio-common/reg-printf.c: Include <stddef.h>.
11932 2002-11-03 Ulrich Drepper <drepper@redhat.com>
11934 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
11936 * po/ca.po: Update from translation team.
11937 * po/es.po: Likewise.
11939 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
11940 is defined write out memory map.
11941 * sysdeps/unix/sysv/linux/segfault.c: New file.
11943 2002-11-02 Roland McGrath <roland@redhat.com>
11945 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
11946 pointers that can alias.
11947 Reported by Daniel Jacobowitz <drow@mvista.com>.
11949 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
11951 2002-11-02 Roland McGrath <roland@redhat.com>
11953 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
11954 description to be clearer and to say that *RESULT is set to ENTRY.
11956 2002-10-30 Jakub Jelinek <jakub@redhat.com>
11958 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
11959 dests_ch arrays together. Alloca or malloc dest_states,
11960 dest_states_word and dest_states_nl arrays together. Free memory on
11963 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
11965 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
11966 and current_saltbits.
11968 2002-11-02 Roland McGrath <roland@redhat.com>
11970 * stdio-common/reg-printf.c: Include <stdlib.h>.
11972 2002-11-02 H.J. Lu <hjl@gnu.org>
11974 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
11975 caller to EXTRA instead of execve.
11977 2002-11-01 Roland McGrath <roland@redhat.com>
11979 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
11980 in place of [!(USE_TLS && HAVE___THREAD)].
11981 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
11983 2002-10-31 Roger Sayle <roger@eyesopen.com>
11985 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
11987 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11989 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
11990 without defining FP_ROUNDMODE.
11992 2002-10-29 Jakub Jelinek <jakub@redhat.com>
11994 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
11995 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
11997 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
11998 (OLD_SIGLIST_SIZE): Define.
11999 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12000 (OLD_SIGLIST_SIZE): Define.
12001 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
12003 2002-11-01 Jakub Jelinek <jakub@redhat.com>
12005 * sysdeps/ia64/strncpy.S: Fix recovery code.
12007 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12009 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
12011 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
12013 * elf/dl-libc.c (free_mem): Likewise.
12014 * iconv/gconv_conf.c (free_mem): Likewise.
12015 * iconv/gconv_db.c (free_mem): Likewise.
12016 * iconv/gconv_dl.c (free_mem): Likewise.
12017 * iconv/gconv_cache.c (free_mem): Likewise.
12018 * intl/finddomain.c (free_mem): Likewise.
12019 * intl/dcigettext.c (free_mem): Likewise.
12020 * locale/setlocale.c (free_mem): Likewise.
12021 * misc/fstab.c (fstab_free): Likewise.
12022 * nss/nsswitch.c (free_mem): Likewise.
12023 * posix/regcomp.c (free_mem): Likewise.
12024 * resolv/gai_misc.c (free_res): Likewise.
12025 * stdlib/fmtmsg.c (free_mem): Likewise.
12026 * sunrpc/clnt_perr.c (free_mem): Likewise.
12027 * sysdeps/generic/setenv.c (free_mem): Likewise.
12028 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
12029 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
12030 * time/tzset.c (free_mem): Likewise.
12031 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
12032 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
12033 * malloc/set-freeres.c (__libc_freeres): Likewise.
12035 * login/getutent.c: Include stdlib.h instead of stddef.h.
12036 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12037 (__getutent): Allocate buffer the first time it is run.
12038 * login/getutid.c: Include stdlib.h instead of stddef.h.
12039 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12040 (__getutid): Allocate buffer the first time it is run.
12041 * login/getutline.c: Include stdlib.h instead of stddef.h.
12042 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12043 (__getutline): Allocate buffer the first time it is run.
12044 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
12045 (mtrace): Allocate malloc_trace_buffer.
12046 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
12047 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
12048 * string/strerror.c: Include libintl.h and errno.h.
12049 (buf): New variable.
12050 (strerror): Only allocate buffer if actually needed (unknown error).
12051 * time/tzfile.c (transitions): Add libc_freeres_ptr.
12054 2002-10-25 Jakub Jelinek <jakub@redhat.com>
12056 * include/libc-symbols.h (libc_freeres_ptr): New macro.
12057 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
12059 (__libc_freeres): Free all pointers in that section.
12060 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
12061 commands when creating .lds script.
12062 (LDSEDCMD-c.so): New variable.
12063 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12064 (rcmd_af): Use strdup to allocate ahostbuf.
12065 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12066 (rexec_af): Use strdup to allocate ahostbuf.
12067 * stdio-common/reg-printf.c (printf_funcs): Remove.
12068 (__printf_arginfo_table): Change into printf_arginfo_function **.
12069 Add libc_freeres_ptr.
12070 (__register_printf_function): Allocate __printf_arginfo_table
12071 and __printf_function_table the first time it is called.
12072 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
12073 printf_arginfo_function **.
12074 (parse_one_spec): Add __builtin_expect.
12075 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
12076 (free_mem): Remove.
12077 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
12078 (free_mem): Remove.
12079 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
12080 (string_space, map): Add libc_freeres_ptr.
12081 (free_mem): Remove.
12082 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
12083 (free_mem): Remove.
12084 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
12085 (free_mem): Remove.
12086 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
12087 (buffer): Add libc_freeres_ptr.
12088 (free_mem): Remove for _LIBC.
12089 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
12090 (free_mem): Remove.
12091 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
12092 (free_mem): Remove.
12093 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
12094 (free_mem): Remove.
12095 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
12096 (free_mem): Remove.
12097 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
12098 (free_mem): Remove.
12099 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
12100 (free_mem): Remove.
12101 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
12103 (free_mem): Remove.
12104 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
12106 (free_mem): Remove.
12108 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12110 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
12111 instead of duplicating the whole function in libc.
12113 2002-10-31 Roland McGrath <roland@redhat.com>
12115 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
12116 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
12118 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12120 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
12121 32bit-predefine when creating .new32 list and -U for each
12122 32bit-predefine when creating .new64 list.
12123 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
12125 2002-10-29 Andreas Schwab <schwab@suse.de>
12127 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
12128 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
12130 2002-10-25 Roland McGrath <roland@redhat.com>
12132 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
12133 * sysdeps/unix/sysv/linux/configure: Regenerated.
12135 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
12136 _dl_starting_up decl.
12138 2002-10-20 H.J. Lu <hjl@gnu.org>
12140 * sysdeps/unix/sysv/linux/configure.in: Don't check
12141 /lib/modules/`uname -r`/build/include for kernel headers if
12143 * sysdeps/unix/sysv/linux/configure: Regenerated.
12145 2002-10-25 Roland McGrath <roland@redhat.com>
12147 * math/math.h (M_LOG2El): Correct the value.
12148 From Stephen L Moshier <steve@moshier.net>.
12150 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
12151 conditional from __libc_multiple_libcs access. Remove kludge for weak
12152 symbol access with old compilers we no longer support.
12153 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
12154 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
12156 2002-10-25 Roland McGrath <roland@redhat.com>
12158 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
12159 implement SV_RESETHAND by translating it to SA_RESETHAND.
12161 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
12163 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
12164 type on ELF64 platforms.
12166 2002-10-24 Ulrich Drepper <drepper@redhat.com>
12168 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
12170 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
12172 2002-10-24 Jakub Jelinek <jakub@redhat.com>
12174 * elf/dl-misc.c: Include <sysdep.h>.
12175 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
12177 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
12178 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12179 (INLINE_SYSCALL): Use that.
12180 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
12181 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12182 (INLINE_SYSCALL): Use that.
12183 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
12184 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12185 (INLINE_SYSCALL): Use that.
12186 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
12188 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12189 (__INTERNAL_SYSCALL_STRING): Define.
12190 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12192 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12193 (__INTERNAL_SYSCALL_STRING): Define.
12194 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
12195 __SYSCALL_STRING to inline_syscall*.
12196 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
12198 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
12199 inline_syscall4, inline_syscall5, inline_syscall6): Add string
12202 2002-10-24 Roland McGrath <roland@redhat.com>
12204 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
12205 * sysdeps/unix/sysv/linux/init-first.c: Not here.
12206 * sysdeps/powerpc/elf/libc-start.c: Or here.
12207 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
12208 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
12209 * sysdeps/unix/sysv/aix/init-first.c: Or here.
12210 * sysdeps/generic/libc-start.c: Or here.
12211 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
12212 access with [! SHARED].
12213 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
12215 * libio/bug-wfflush.c: New file.
12216 * libio/Makefile (tests): Add bug-wfflush.
12218 2002-10-23 Roland McGrath <roland@redhat.com>
12220 * stdio-common/tst-fphex.c: New file.
12221 * stdio-common/Makefile (tests): Add tst-fphex.
12222 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
12223 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
12224 chars always before the value digits.
12225 Reported by James Antill <james.antill@redhat.com>.
12227 2002-10-24 Jakub Jelinek <jakub@redhat.com>
12229 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
12230 (free_mem): New function.
12231 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
12232 if not cross compiling.
12233 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
12234 (bug-regex14-ENV): Set.
12235 (bug-regex14-mem): New target.
12236 * posix/bug-regex14.c: New file.
12238 2002-10-23 Roland McGrath <roland@redhat.com>
12240 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
12241 target, so we don't touch it when the link fails.
12243 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
12244 Check for the result overflowing off_t and fail with EOVERFLOW.
12245 * libio/ioftell.c (_IO_ftell): Likewise.
12246 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
12248 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
12249 use a temporary timeval on the stack for gettimeofday and copy it.
12250 * login/logout.c (logout): Likewise.
12251 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
12253 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
12254 Use __SWORD_TYPE instead of int for member types.
12255 (struct statfs64): Likewise.
12256 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
12257 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
12258 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
12259 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
12260 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
12262 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
12263 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
12264 (ST_NODIRATIME): Restore fixed value of 2048.
12265 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
12266 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
12268 Rearranged <bits/types.h> definitions to reduce duplication.
12269 * sysdeps/generic/bits/types.h: Rewritten, using macros from
12270 <bits/wordsize.h> and new header <bits/typesizes.h>.
12271 * posix/Makefile (headers): Add bits/typesizes.h here.
12272 * sysdeps/generic/bits/typesizes.h: New file.
12273 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
12274 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
12275 * sysdeps/mach/hurd/bits/typesizes.h: New file.
12276 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
12277 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
12278 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
12279 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
12280 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
12281 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
12282 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
12283 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
12284 <bits/pthreadtypes.h> here, not in <bits/types.h>.
12285 * signal/signal.h: Likewise.
12287 * streams/stropts.h: Include <bits/xtitypes.h>.
12288 * streams/Makefile (headers): Add bits/xtitypes.h here.
12289 * sysdeps/generic/bits/xtitypes.h: New file.
12290 * sysdeps/s390/bits/xtitypes.h: New file.
12291 * sysdeps/ia64/bits/xtitypes.h: New file.
12292 * sysdeps/x86_64/bits/xtitypes.h: New file.
12294 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
12295 * sysdeps/generic/bits/ipctypes.h: New file.
12296 * sysdeps/mips/bits/ipctypes.h: New file.
12297 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
12298 * sysdeps/gnu/bits/msq.h: Likewise.
12299 * sysvipc/sys/ipc.h: Likewise.
12301 2002-10-22 Ulrich Drepper <drepper@redhat.com>
12303 * elf/dl-load.c (struct filebuf): For buf element to have the
12304 alignment of ElfXX_Ehdr since this is what will be stored in it.
12306 2002-10-22 Jakub Jelinek <jakub@redhat.com>
12308 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
12309 into pointer to locrec_offset.
12310 (add_locale_to_archive): Adjust callers. Free normalized_name right
12311 before returning, not immediately after add_locale, pass it to
12312 add_alias if not NULL instead of name. Rename second normalized_name
12313 occurence to nnormalized_codeset_name.
12315 * locale/programs/locarchive.c (enlarge_archive): Make sure
12316 string_size is always a multiple of 4.
12317 Reported by Andreas Schwab <schwab@suse.de>.
12319 2002-10-21 Andreas Schwab <schwab@suse.de>
12321 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
12322 caller to EXTRA instead of execve, since the latter has a
12323 higher-priority implementation in linuxthreads.
12325 2002-10-21 Roland McGrath <roland@redhat.com>
12327 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
12328 slotinfo list's len member to the proper size, not just 1.
12329 Initialize static_map.l_tls_initimage.
12331 * elf/dl-open.c (dl_open_worker): Fix loop searching for
12332 dtv_slotinfo_list element containing new modules' l_tls_modid.
12334 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
12335 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
12336 * elf/Makefile (tests): Add tst-tls9.
12337 (tests-static): Add tst-tls9-static.
12338 (tst-tls9-static-ENV): New variable.
12339 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
12341 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
12342 modids used by partially loaded modules being closed can't be known.
12344 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
12346 * posix/Makefile: Add a test case for the bug reported by Aharon
12347 Robbins <arnold@skeeve.com>.
12348 * posix/bug-regex13.c: New file.
12349 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
12351 2002-10-21 Ulrich Drepper <drepper@redhat.com>
12353 * csu/gmon-start.c: Pretty printing.
12355 2002-10-19 Art Haas <ahaas@neosoft.com>
12357 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
12358 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
12359 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
12360 * configure: Regenerated.
12362 2002-10-19 Roland McGrath <roland@redhat.com>
12364 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
12365 and then set $subdirs directly, because the new Autoconf breaks
12366 compatibility in every way imaginable and insists on whining
12367 about usage that worked since the dawn of time.
12368 * configure: Regenerated.
12370 * configure: Regenerated (using Autoconf 2.54).
12371 * sysdeps/alpha/elf/configure: Likewise.
12372 * sysdeps/generic/configure: Likewise.
12373 * sysdeps/i386/elf/configure: Likewise.
12374 * sysdeps/ia64/elf/configure: Likewise.
12375 * sysdeps/mach/hurd/configure: Likewise.
12376 * sysdeps/mach/configure: Likewise.
12377 * sysdeps/unix/configure: Likewise.
12378 * sysdeps/unix/common/configure: Likewise.
12379 * sysdeps/unix/sysv/aix/configure: Likewise.
12380 * sysdeps/unix/sysv/linux/configure: Likewise.
12381 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12382 * sysdeps/x86_64/elf/configure: Likewise.
12384 * config.make.in: Nix completely-soft nonsense.
12385 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
12386 of machine directories instead of fpu subdirectory.
12387 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
12388 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
12389 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
12390 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
12391 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
12392 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
12393 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
12394 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
12395 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
12396 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
12397 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
12398 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
12399 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
12400 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
12401 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
12402 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
12403 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
12404 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
12405 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
12406 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
12407 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
12408 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
12409 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
12410 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
12411 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
12412 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
12413 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
12414 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
12415 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
12416 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
12417 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
12418 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
12419 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
12420 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
12421 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
12422 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
12423 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
12424 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
12425 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
12426 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
12428 2002-10-19 Bruno Haible <bruno@clisp.org>
12430 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
12432 2002-10-18 Roland McGrath <roland@redhat.com>
12434 * io/Makefile (routines): Add lchmod.
12435 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
12436 * sysdeps/generic/lchmod.c: New file.
12437 * sysdeps/mach/hurd/lchmod.c: New file.
12438 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
12440 2002-10-18 Art Haas <ahaas@neosoft.com>
12442 * configure.in: Remove remaining AC_FD_CC macros, and replace
12443 AC_FD_MSG with AS_MESSAGE_FD.
12445 2002-10-18 Roland McGrath <roland@redhat.com>
12447 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
12448 typos: VALUE -> FINALADDR.
12450 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
12451 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
12452 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
12453 (inline_syscall6): Move these macros ...
12454 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
12456 * configure.in (libc_link_dests, libc_link_sources): Remove these
12457 variables and the AC_LINK_FILES call.
12459 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
12460 change to put new symbols here instead of in GLIBC_2.2.
12461 * sysdeps/powerpc/Subdirs: Move this file ...
12462 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
12464 2002-10-07 Roland McGrath <roland@redhat.com>
12466 * sysdeps/generic/bits/time.h: Replaced with contents of the
12467 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
12468 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
12469 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
12470 macros is ok even for architectures that don't now implement them.
12471 * sysdeps/mach/hurd/bits/time.h: File removed.
12472 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
12473 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
12474 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
12475 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
12476 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
12478 2002-10-18 Jeff Bailey <jbailey@gnu.org>
12480 * configure.in: Replace obsolete AC_OUTPUT syntax with
12481 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
12483 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
12484 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
12486 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
12487 * sysdeps/alpha/elf/configure.in: Likewise.
12488 * sysdeps/i386/elf/configure.in: Likewise.
12489 * sysdeps/mach/hurd/configure.in: Likewise.
12490 * sysdeps/x86_64/elf/configure.in: Likewise.
12492 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
12494 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
12495 * sysdeps/generic/configure.in: Likewise.
12496 * sysdeps/i386/elf/configure.in: Likewise.
12497 * sysdeps/ia64/elf/configure.in: Likewise.
12498 * sysdeps/mach/configure.in: Likewise.
12499 * sysdeps/mach/hurd/configure.in: Likewise.
12500 * sysdeps/unix/configure.in: Likewise.
12501 * sysdeps/unix/common/configure.in: Likewise.
12502 * sysdeps/unix/sysv/aix/configure.in: Likewise.
12503 * sysdeps/unix/sysv/linux/configure.in: Likewise.
12504 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
12505 * sysdeps/x86_64/elf/configure.in: Likewise.
12507 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
12508 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
12509 that it's obvious when extra autoconf machinery is being dragged in.
12511 2002-10-18 Roland McGrath <roland@redhat.com>
12513 * configure.in: Remove bogus echo included in
12514 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
12515 * configure: Regenerated.
12517 2002-10-18 Jakub Jelinek <jakub@redhat.com>
12519 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
12520 (statfs_filesize_max): New function.
12521 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
12522 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
12523 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
12524 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
12525 statfs_filesize_max.
12526 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12527 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
12528 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
12530 2002-10-17 Roland McGrath <roland@redhat.com>
12532 * configure.in (MIG): Just AC_SUBST it here.
12533 * configure: Regenerated.
12534 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
12535 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
12536 * sysdeps/mach/configure: Regenerated.
12538 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
12539 and AC_PROVIDE([_AS_CR_PREPARE]).
12541 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
12542 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
12544 * elf/dl-support.c: Move _dl_tls_* variables to ...
12545 * sysdeps/generic/libc-tls.c: ... here.
12547 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
12548 allow IDX to be one past the current last slotinfo entry.
12549 (_dl_close): Pass IMAP->l_init_called for that parameter.
12551 2002-10-07 Andreas Schwab <schwab@suse.de>
12553 * aclocal.m4: Fix for autoconf 2.53.
12554 * configure.in: Likewise. Require autoconf 2.53.
12556 2002-10-08 Richard Henderson <rth@redhat.com>
12558 * soft-fp/op-4.h: Handle carry correctly in
12559 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
12560 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
12561 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
12563 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
12565 * configure.in: Compute completely-soft.
12566 * config.make.in: Make completely-soft available to sub-makes.
12567 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
12568 gcc-double-routines. Add sim-full.c. Add fenv_const and
12569 fe_nomask to libm-support.
12570 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
12571 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
12572 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
12573 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
12574 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
12575 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
12576 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
12577 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
12578 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
12579 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
12580 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
12581 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
12582 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
12583 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
12584 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
12585 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
12586 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
12587 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
12588 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
12589 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
12591 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
12592 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
12593 FP_HANDLE_EXCEPTIONS.
12594 Define FP_ROUNDMODE.
12595 Redefine FP_* macros to correspond to the FE_* bit positions.
12596 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
12597 Define externs for __sim_exceptions, __sim_disabled_exceptions,
12598 __sim_round_mode, __simulate_exceptions.
12599 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
12600 * sysdeps/powerpc/bits/fenv.h: ...to here.
12602 2002-10-06 Jakub Jelinek <jakub@redhat.com>
12604 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12605 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
12606 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
12607 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
12610 2002-10-15 Jakub Jelinek <jakub@redhat.com>
12612 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
12613 __libc_res_nsend): New prototypes.
12614 * resolv/res_query.c (QUERYSIZE): Define.
12615 (__libc_res_nquery): Renamed from res_nquery. Added answerp
12616 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
12617 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
12618 res_nsend, pass answerp.
12619 (res_nquery): Changed into wrapper around __libc_res_nquery.
12620 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
12621 argument. Call __libc_res_nquerydomain and __libc_res_nquery
12622 instead of the non-__libc_ variants, pass them answerp.
12623 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
12624 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
12625 Added answerp argument. Call __libc_res_nquery instead of
12626 res_nquery, pass answerp.
12627 (res_nquerydomain): Changed into wrapper around
12628 __libc_res_nquerydomain.
12629 * resolv/res_send.c: Include sys/ioctl.h.
12630 (MAXPACKET): Define.
12631 (send_vc): Change arguments. Reallocate answer buffer if it is
12633 (send_dg): Likewise.
12634 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
12635 Reallocate answer buffer if it is too small and hooks are in use.
12636 Adjust calls to send_vc and send_dg.
12637 (res_nsend): Changed into wrapper around __libc_res_nsend.
12638 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
12639 just 1K answer buffer on the stack, use __libc_res_nsearch instead
12641 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
12642 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
12643 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
12644 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
12645 (gethostbyaddr): Similarly with __libc_res_nquery.
12646 * resolv/Versions (libresolv): Export __libc_res_nquery and
12647 __libc_res_nsearch at GLIBC_PRIVATE.
12649 2002-10-17 Roland McGrath <roland@redhat.com>
12651 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
12652 * configure: Regenerated.
12654 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
12655 before performing the reloc, not after.
12656 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12658 2002-10-17 Ulrich Drepper <drepper@redhat.com>
12660 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
12661 * locale/programs/linereader.c (lr_open): Likewise.
12662 * locale/programs/charmap-dir.c (charmap_open): Likewise.
12663 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12665 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
12667 * posix/bug-regex11.c: Add a test case for the bug reported by
12668 Paolo Bonzini <bonzini@gnu.org>.
12669 * posix/regexec.c (sift_states_bkref): Use correct destination of
12670 the back reference.
12672 2002-10-17 Roland McGrath <roland@redhat.com>
12674 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
12675 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
12676 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
12677 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
12678 Call it after performing TPOFF relocs.
12679 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12680 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12681 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
12683 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
12684 when closing a partially-initialized object.
12686 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
12687 instead of _dl_fatal_printf when we see PT_TLS.
12689 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
12690 instead of $(libof-$<).
12692 2002-10-16 Roland McGrath <roland@redhat.com>
12694 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
12695 instead of += to append, to be sure $(lib) gets expanded at defn time.
12696 (libof-$(cpp-src)): New variable, define this instead.
12697 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
12698 (lib): Don't use override.
12699 (CPPFLAGS-$(lib)): New variable, put -D's here.
12700 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
12701 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
12702 LIB found by $(libof-*) for basename, target, or source.
12703 * Makerules (CPPFLAGS-nonlib): New variable.
12704 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
12705 * locale/Makefile (lib): Likewise.
12706 * sunrpc/Makefile (lib): Likewise.
12708 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
12709 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
12710 * sysdeps/unix/sysv/linux/pathconf.h: New file.
12711 (statfs_link_max): New function, guts from fpathconf.c.
12712 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
12713 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12714 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
12715 to use the linux/pathconf.c code by #include rather than duplication.
12716 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
12718 2002-10-16 Jakub Jelinek <jakub@redhat.com>
12720 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12721 Use __libc_errno only for libc itself.
12723 2002-10-16 Andreas Jaeger <aj@suse.de>
12725 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
12727 2002-10-16 Ulrich Drepper <drepper@redhat.com>
12729 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12730 Use __libc_errno only for libc itself.
12732 2002-10-15 Roland McGrath <roland@redhat.com>
12733 Jakub Jelinek <jakub@redhat.com>
12735 * sysdeps/unix/sysv/linux/Makefile
12736 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
12737 sparc/Makefile to produce a bi-arch file as needed.
12738 That's now parameterized by the variable $(64bit-predefine).
12739 Use LC_ALL=C for `comm' commands in that rule.
12740 No longer conditional on [$(no_syscall_list_h)].
12741 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
12742 (64bit-predefine): New variable.
12743 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
12744 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
12745 * sysdeps/unix/sysv/linux/powerpc/Makefile
12746 (64bit-predefine): New variable.
12748 2002-10-15 Roland McGrath <roland@redhat.com>
12750 * sysdeps/unix/sysv/linux/Makefile
12751 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
12753 * login/utmp-private.h: Declare __libc_utmp_lock.
12754 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
12755 and call __libc_utmp_jump_table functions directly, instead of using
12758 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
12759 * sysdeps/unix/sysv/linux/configure: Regenerated.
12761 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
12762 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
12763 Use int32_t for ll_time.
12764 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
12765 Use int32_t instead of long int for ut_session.
12766 Use an anonymous struct with 32-bit fields for ut_tv.
12767 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
12768 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
12769 here as in utmp.h for `struct utmp'.
12770 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
12771 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
12772 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
12773 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
12774 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
12775 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
12777 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
12778 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
12779 All the following files were identical or equivalent to it.
12780 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
12781 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
12782 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
12783 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
12784 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
12785 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
12786 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
12787 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
12788 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
12789 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
12791 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
12792 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
12793 Other than the previously incorrect sign of msg_iovlen, this is a
12794 no-op on 32-bit platforms. On 64-bit platforms it makes this header
12795 match their layouts as well, so the following are now identical to it.
12796 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
12797 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
12798 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
12799 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
12800 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
12802 2002-10-15 Ulrich Drepper <drepper@redhat.com>
12804 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
12805 Define for 2.4+ kernels.
12807 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
12808 are known to have the vfork syscall. Don't confuse the CPUs
12809 branch prediction unit by jumping to the return address.
12811 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
12812 support for reiserfs and xfs.
12814 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
12816 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
12818 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
12820 2002-10-16 Jakub Jelinek <jakub@redhat.com>
12822 * include/libc-symbols.h (attribute_tls_model_ie): Define.
12823 * include/errno.h (errno): Define to __libc_errno in libc.so.
12824 Add attribute_tls_model_ie.
12825 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
12826 Add attribute_tls_model_ie.
12827 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
12828 attribute_tls_model_ie.
12829 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
12831 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
12833 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
12834 attribute_tls_model_ie.
12835 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
12837 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
12838 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
12839 __libc_errno in USE___THREAD case.
12840 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12842 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
12843 __attribute__((tls_model (""))).
12844 * configure: Rebuilt.
12845 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
12847 2002-10-15 Ulrich Drepper <drepper@redhat.com>
12849 * timezone/asia: Update from tzdata2002d.
12850 * timezone/australasia: Likewise.
12851 * timezone/iso3166.tab: Likewise.
12852 * timezone/southamerica: Likewise.
12853 * timezone/zone-tab: Likewise.
12855 2002-10-15 Roland McGrath <roland@redhat.com>
12857 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
12858 Adjust TCB pointer before calling free, so we get the whole block.
12860 2002-10-14 Roland McGrath <roland@redhat.com>
12862 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
12863 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
12864 extern using attribute_hidden instead of static, avoids warning.
12866 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12868 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
12869 * sysdeps/unix/sysv/linux/configure: Rebuilt.
12871 2002-10-14 Ulrich Drepper <drepper@redhat.com>
12873 * po/sv.po: Update from translation team.
12875 2002-10-12 H.J. Lu <hjl@gnu.org>
12877 * sunrpc/thrsvc.c (PROCQUIT): New.
12878 (struct rpc_arg): New.
12879 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
12880 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
12881 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
12882 (main): Modified for struct rpc_arg *.
12884 2002-10-14 Ulrich Drepper <drepper@redhat.com>
12886 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
12888 2002-10-14 Jakub Jelinek <jakub@redhat.com>
12890 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
12891 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
12892 in ld.so even if __thread is supported.
12894 2002-10-13 Jakub Jelinek <jakub@redhat.com>
12896 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
12897 Add hack to prevent the compiler from clobbering the signal context.
12898 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
12900 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
12903 2002-10-14 Andreas Jaeger <aj@suse.de>
12905 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
12906 Guido Guenther <agx@sigxcpu.org>.
12908 2002-10-14 Ulrich Drepper <drepper@redhat.com>
12910 * po/sk.po: Update from translation team.
12912 2002-09-26 Roland McGrath <roland@redhat.com>
12914 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
12915 dynamic string tag.
12916 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
12917 DL_DST_LIB based on $(slibdir).
12919 2002-10-13 Roland McGrath <roland@frob.com>
12921 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
12923 * sysdeps/mach/hurd/getresuid.c: New file.
12924 * sysdeps/mach/hurd/getresgid.c: New file.
12925 * sysdeps/mach/hurd/setresuid.c: New file.
12926 * sysdeps/mach/hurd/setresgid.c: New file.
12928 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
12929 setresgid): Declare them.
12930 * NEWS: Mention it.
12932 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
12933 add libc_hidden_proto.
12934 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
12935 getresuid, getresgid, setresuid, setresgid here.
12936 * Versions.def (libc): Define GLIBC_2.3.2 set.
12937 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
12938 Add libc_hidden_def.
12939 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
12940 * sysdeps/generic/setresgid.c: New file.
12941 * sysdeps/generic/setresuid.c: New file.
12942 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12943 (sysdep_routines): Don't add getresuid and getresgid here.
12944 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
12945 (sysdep_routines): Don't add setresuid and setresgid here.
12946 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
12947 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
12948 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
12949 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
12950 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
12951 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
12952 * posix/Makefile (routines): Add them all here instead.
12953 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
12954 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
12955 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
12956 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
12957 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
12958 [! __NR_setresuid]: Include generic file.
12959 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
12960 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
12961 [! __NR_setresuid]: Include generic file.
12962 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
12963 Caller is - now, not EXTRA.
12964 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
12965 (setresuid, setresgid, getresuid, getresgid): Likewise.
12966 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
12967 Add these calls here.
12968 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
12969 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
12970 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
12971 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12972 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
12975 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
12976 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
12978 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12979 (sysdep_routines): Add setfsuid and setfsgid here.
12980 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
12981 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
12982 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
12983 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
12984 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
12985 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
12986 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
12987 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
12989 * hurd/errno.c: Renamed to ...
12990 * hurd/errno-loc.c: ... this.
12991 * hurd/Makefile (routines): errno -> errno-loc
12993 2002-10-13 Ulrich Drepper <drepper@redhat.com>
12995 * po/de.po: Update from translation team.
12997 * MakeTAGS: Add -E flag to xgettext runs.
12999 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13001 * po/fr.po: Update from translation team.
13003 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
13004 Optimize a bit for use in glibc.
13006 2002-10-12 Roland McGrath <roland@redhat.com>
13008 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
13009 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
13011 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13013 * po/sv.po: Update from translation team.
13015 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13017 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
13019 (regfree): Likewise.
13020 (create_initial_state): Likewise.
13021 (analyze): Remove the substitutions which became useless.
13022 (calc_first): Likewise.
13023 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
13024 epsilon destination.
13025 (duplicate_node_closure): New function.
13026 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
13027 (calc_inveclosure): Likewise.
13028 (calc_eclosure): Likewise.
13029 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
13030 direct invocation of duplicate_node.
13031 (parse): Don't use comma operator in the return to avoid compiler
13033 (parse_reg_exp): Likewise.
13034 (parse_branch): Likewise.
13035 (parse_expression): Likewise.
13036 (parse_sub_exp): Likewise.
13037 (parse_dup_op): Likewise.
13038 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
13039 which became useless.
13040 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
13041 (create_cd_newstate): Likewise.
13042 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
13043 (re_token_t): Likewise.
13044 (re_dfa_t): Likewise.
13045 (re_node_set_remove): New macro.
13046 * posix/regexec.c (check_matching): Remove the handling
13048 (check_halt_node_context): Likewise.
13049 (proceed_next_node): Likewise.
13050 (pop_fail_stack): Fix the memory leak.
13051 (set_regs): Likewise.
13052 (free_fail_stack_return): New function.
13053 (sift_states_backward): Fix the memory leak. Remove the handling
13055 (update_cur_sifted_state): Append some if clause to avoid redundant
13057 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
13059 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
13060 (check_subexp_limits): Likewise.
13061 (search_subexp): Likewise.
13062 (sift_states_bkref): Likewise.
13063 (transit_state_mb): Likewise.
13064 (transit_state_bkref_loop): Likewise.
13065 (transit_state_bkref_loop): Likewise.
13066 (group_nodes_into_DFAstates): Likewise.
13067 (check_node_accept): Likewise.
13068 (sift_ctx_init): Add initializing.
13070 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13072 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
13075 2002-10-11 Ulrich Drepper <drepper@redhat.com>
13077 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
13078 duplicated variable c.
13080 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
13083 * sysdeps/unix/sysv/linux/i386/sysdep.h
13084 (INTERNAL_SYSCALL_ERROR_P): New define.
13085 (INTERNAL_SYSCALL_ERRNO): Likewise.
13087 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
13088 Add hack to prevent the compiler from clobbering the signal context.
13090 2002-10-11 Roland McGrath <roland@redhat.com>
13092 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13095 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
13096 * sysdeps/sh/dl-lookupcfg.h: File removed.
13097 * sysdeps/i386/dl-lookupcfg.h: File removed.
13099 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
13100 missing labels and ; from last change.
13102 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
13103 number literals, so they are doubles instead of ints.
13105 2002-10-09 Roland McGrath <roland@redhat.com>
13107 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
13108 changed from [USE_TLS && HAVE___THREAD].
13110 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
13111 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
13112 * sysdeps/x86_64/dl-machine.h
13113 (elf_machine_type_class, elf_machine_rela): Likewise.
13114 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
13117 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
13118 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
13119 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
13121 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
13122 instead of ___tls_get_addr.
13123 (___tls_get_addr_internal): Add attribute_hidden to decl.
13125 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
13126 _dl_error_catch_tsd.
13127 * elf/rtld.c (startup_error_tsd): New function.
13128 (dl_main): Point _dl_error_catch_tsd at that.
13129 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
13130 use new function pointer instead.
13131 * elf/dl-tsd.c: New file.
13132 * elf/Makefile (routines): Add it.
13134 2002-10-07 Roland McGrath <roland@redhat.com>
13136 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
13137 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
13138 take _dl_load_lock around calling __writev.
13140 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
13141 (INLINE_SYSCALL): Use that.
13143 * sysdeps/generic/dl-sysdep.h: New file.
13144 * sysdeps/mach/hurd/dl-sysdep.h: New file.
13145 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
13146 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
13147 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
13148 access it directly.
13149 * elf/dl-minimal.c (__errno_location): Removed.
13150 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
13151 Use GOTOFF access for errno.
13152 * sysdeps/unix/sysv/linux/i386/sysdep.h
13153 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
13155 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
13156 Use PC-relative access for errno.
13157 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13158 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
13160 * include/tls.h: New file.
13161 (USE___THREAD): New macro.
13162 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
13163 libc or libpthread.
13164 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
13165 changed from [USE_TLS && HAVE___THREAD].
13166 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13167 * sysdeps/unix/i386/sysdep.S: Likewise.
13168 * sysdeps/unix/x86_64/sysdep.S: Likewise.
13169 * include/errno.h: Likewise.
13170 * include/netdb.h: Likewise.
13171 * include/resolv.h: Likewise.
13173 * sysdeps/generic/errno.c: New file.
13174 * csu/Makefile (aux): New variable, list errno.
13175 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
13176 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
13177 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
13178 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13179 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13180 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
13181 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
13182 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
13183 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13184 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
13185 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
13186 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
13187 * sysdeps/unix/alpha/sysdep.S: Likewise.
13188 * sysdeps/generic/start.c: Likewise.
13189 * sysdeps/unix/start.c: Likewise.
13190 * sysdeps/unix/arm/start.c: Likewise.
13191 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
13192 * sysdeps/unix/sparc/start.c: Likewise.
13193 * sysdeps/unix/sysv/irix4/start.c: Likewise.
13194 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
13196 * manual/search.texi (Tree Search Function, Hash Search Function):
13197 Mention search.h clearly.
13199 2002-10-05 Roland McGrath <roland@redhat.com>
13201 * elf/dl-fxstat64.c: File removed.
13202 * elf/dl-xstat64.c: File removed.
13203 * elf/Makefile (rtld-routines): Remove them.
13204 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
13205 Instead, use strong_alias instead of versioned_symbol in the
13206 !SHLIB_COMPAT case.
13207 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
13208 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
13210 * include/shlib-compat.h
13211 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
13212 [! NOT_IN_libc] (IS_IN_libc): Define it.
13213 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
13214 * elf/Makefile (CPPFLAGS-.os): Likewise.
13216 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
13217 Return the status instead of calling exit.
13219 * Makeconfig (CFLAGS): Prepend -std=gnu99.
13220 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
13221 Remove superfluous rm command, whose @ plus make bugs hid
13222 all these commands from the make output.
13224 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
13225 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
13226 Use that file's contents instead of literal echo's for the prologue.
13227 * include/features.h: Include <gnu/stubs.h> unconditionally.
13228 * include/gnu/stubs.h: New file.
13230 2002-09-30 Roland McGrath <roland@redhat.com>
13232 * elf/rtld-Rules: New file.
13233 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
13234 $(objpfx)rtld-libc.a): New targets.
13235 (generated): Add them.
13236 (reloc-link): Remove -o $@ from the variable.
13237 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
13238 (distribute): Add rtld-Rules.
13239 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
13240 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
13241 (common-mostlyclean, common-clean): Clean up rtld-* files.
13242 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
13244 2003-05-20 Jakub Jelinek <jakub@redhat.com>
13246 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
13247 If temp != NULL, copy dynamic entries which need relocation to temp
13248 array before relocating.
13249 (DL_RO_DYN_TEMP_CNT): Define.
13250 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
13251 * elf/rtld.c (_dl_start): Likewise.
13252 (dl_main): Likewise. Add dyn_temp static variable.
13254 2002-10-11 Roland McGrath <roland@redhat.com>
13256 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
13257 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
13259 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
13260 proper set of no-op insn prefixes.
13262 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
13264 2002-10-11 Ulrich Drepper <drepper@redhat.com>
13266 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
13267 __pthread_kill_other_threads_np.
13269 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
13271 2002-10-08 Roland McGrath <roland@redhat.com>
13273 * locale/newlocale.c (__newlocale): If setting all categories to "C",
13274 just return &_nl_C_locobj instead of copying it.
13275 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
13276 * locale/duplocale.c (__duplocale): Likewise.
13278 2002-10-07 Roland McGrath <roland@frob.com>
13280 * config.h.in (HAVE_I386_SET_GDT): New #undef.
13281 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
13282 * sysdeps/mach/configure: Regenerated.
13284 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
13287 Add all necessary register outputs for syscall-clobbered registers.
13289 2002-10-02 David Mosberger <davidm@hpl.hp.com>
13291 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
13292 Itanium 2 (and Itanium).
13293 Fix unwind directives and make it fit in 80 columns.
13294 * sysdeps/ia64/memset.S: Likewise.
13295 * sysdeps/ia64/memcpy.S: Likewise.
13296 Move jump table to .rodata section.
13298 2002-10-03 Roland McGrath <roland@frob.com>
13300 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
13303 2002-10-10 Andreas Jaeger <aj@suse.de>
13305 * sysdeps/x86_64/_mcount.S: Restore correct registers.
13307 2002-10-10 Ulrich Drepper <drepper@redhat.com>
13309 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
13311 2002-10-09 Ulrich Drepper <drepper@redhat.com>
13313 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
13314 _dl_allocate_tls_init. Add rtld_hidden_proto.
13315 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
13317 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
13319 * version.h (VERSION): Bump to 2.3.1.
13321 * Make-dist: Add back one of the tar invocations removed before.
13323 * stdlib/Makefile (distribute): Add allocalim.h.
13325 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
13326 (__libc_tsd_address): Use correct variable name.
13327 Patch by Stefan Jones <stefan.jones@multigig.com>.
13329 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
13330 Reported by edwardsg@sgi.com [PR libc/4678].
13332 * Versions.def (libc): Add GLIBC_2.3.1.
13333 (libpthread): Add GLIBC_2.3.1.
13335 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
13336 and __sigtimedwait.
13337 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
13338 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
13340 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
13341 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
13343 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
13344 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
13345 and make old name an alias.
13346 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
13347 and make old name an alias.
13348 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
13351 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
13352 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
13354 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
13356 * sysdeps/posix/readv.c: Likewise
13357 * sysdeps/unix/sysv/aix/readv.c: Likewise.
13358 * sysdeps/unix/sysv/linux/readv.c: Likewise.
13359 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
13361 * sysdeps/posix/writev.c: Likewise
13362 * sysdeps/unix/sysv/aix/writev.c: Likewise.
13363 * sysdeps/unix/sysv/linux/writev.c: Likewise.
13365 * include/sys/wait.h: Declare __waitid.
13366 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
13367 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
13369 * sysdeps/posix/waitid.c: Likewise.
13370 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
13372 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
13374 2002-10-07 Jakub Jelinek <jakub@redhat.com>
13376 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
13378 (__MAX_ALLOCA_CUTOFF): Define.
13379 Include allocalim.h.
13380 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
13381 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
13382 host_buffer depending on __libc_use_alloca.
13383 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
13384 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
13385 net_buffer depending on __libc_use_alloca.
13386 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
13387 buf depending on __libc_use_alloca.
13388 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
13389 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
13390 instead of hardcoded constants.
13391 Pass proper size argument to alloca and compute end for wide char
13393 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
13394 instead of hardcoded constants.
13395 * string/strcoll.c (strcoll): Likewise.
13396 * string/strxfrm.c (strxfrm): Likewise.
13397 * sysdeps/posix/readv.c (__readv): Likewise.
13398 * sysdeps/posix/writev.c (__writev): Likewise.
13399 * sysdeps/generic/allocalim.h: New file.
13401 2002-10-08 Roland McGrath <roland@redhat.com>
13403 * configure.in (aux_missing warning): Change "too old" to
13404 "incompatible versions", since for autoconf it's "too new" right now.
13405 * configure: Regenerated.
13407 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
13408 one found doesn't work on our configure.in.
13409 * configure: Regenerated.
13410 * config.make.in (AUTOCONF): New substituted variable.
13411 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
13412 (autoconf-it): ... here, use that instead of defining conditionally.
13413 Use $(AUTOCONF) instead of literal autoconf.
13414 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
13415 with this condition.
13416 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
13418 2002-10-08 Ulrich Drepper <drepper@redhat.com>
13420 * Make-dist (dist): Cleanup a bit. We are not interested in the
13421 14 char filename limit anymore. Remove intermediate files and
13424 2002-10-05 Ulrich Drepper <drepper@redhat.com>
13426 * po/sk.po: Update from translation team.
13427 * po/tr.po: Likewise.
13428 * po/gl.po: Likewise.
13430 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
13432 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
13434 2002-10-03 Ulrich Drepper <drepper@redhat.com>
13436 * version.h (RELEASE): Change to stable.
13438 2002-10-03 Jakub Jelinek <jakub@redhat.com>
13440 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
13441 __syscall_exit_group): New prototypes.
13443 2002-10-03 Ulrich Drepper <drepper@redhat.com>
13445 * glibc 2.3 released.
13448 See ChangeLog.13 for earlier changes.