* sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
[glibc.git] / ChangeLog
blob865282a4c2685618beb022fd91325cb489fc1770
1 2003-11-30  Andreas Schwab  <schwab@suse.de>
3         * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
4         (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
6 2003-11-29  Ulrich Drepper  <drepper@redhat.com>
8         * misc/mntent_r.c (decode_name): Be compatible with util-linux and
9         recognize \134 as well.
11 2003-10-09  H.J. Lu  <hongjiu.lu@intel.com>
13         * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
15 2003-10-08  H.J. Lu  <hongjiu.lu@intel.com>
17         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
18         <asm/fpu.h>.
19         (struct ia64_fpreg): New definition.
21         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
22         <asm/elf.h>.
23         (ELF_NGREG): New #define.
24         (ELF_NFPREG): Likewise.
25         (elf_greg_t): New type.
26         (elf_gregset_t): Likewise.
27         (elf_fpreg_t): Likewise.
28         (elf_fpregset_t): Likewise.
30 2003-10-08  H.J. Lu  <hongjiu.lu@intel.com>
32         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
33         <sys/ucontext.h>.
34         (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
35         (pt_all_user_regs): New type.
37 2003-10-10  Simon Josefsson  <jas@extundo.com>
39         * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
40         strchrnul.h, strndup.h (from gnulib).
41         * argp/argp-parse.c: Add alloca.h include snippet verbatim from
42         Autoconf manual.
43         * argp/argp-help.c: Replace alloca.h include snipper with verbatim
44         Autoconf manual version.
45         * argp/argp.h: Map __restrict to restrict or empty string when
46         necessary, copied verbatim from posix/regex.h.
48 2003-10-09  Steven Munroe  <sjmunroe@us.ibm.com>
50         * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
51         addition to c++-types-$(base-machine)-$(config-os).data.
52         * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
53         * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
55 2003-11-28  Ulrich Drepper  <drepper@redhat.com>
57         * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
58         of newline.
59         * manual/sysinfo.texi (mtab): Adjust description accordingly.
60         Reported by Andries.Brouwer@cwi.nl.
62         * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
63         to compensate other setup.
65 2003-11-27  Andreas Jaeger  <aj@suse.de>
67         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
69         * math/libm-test.inc (atan2_test): Add test that run infinitly.
70         Reported by "Willus" <etc231etc231@willus.com>.
72 2003-11-27  Michael Matz  <matz@suse.de>
74         * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
75         with wrong types.
77 2003-11-28  Jakub Jelinek  <jakub@redhat.com>
79         * posix/regexec.c (acquire_init_state_context): Make inline.
80         Add always_inline attribute.
81         (check_matching): Add BE macro.  Move if (cur_state->has_backref)
82         into if (dfa->nbackref).
83         (sift_states_backward): Fix comment.
84         (transit_state): Add BE macro.  Move if (next_state->has_backref)
85         into if (dfa->nbackref && next_state).  Don't check for next_state
86         != NULL twice.
87         * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
88         for ANCHOR.
89         (parse_expression): Only call init_word_char if word context will be
90         needed.
92         * posix/bug-regex11.c (tests): Add new tests.
94         * posix/tst-regex.c: Include getopt.h.
95         (timing): New variable.
96         (main): Set timing to 1 if --timing argument is present.
97         Add 2 new tests.
98         (run_test, run_test_backwards): Handle timing.
100 2003-11-27  Jakub Jelinek  <jakub@redhat.com>
102         * posix/regex_internal.h (re_string_t): Remove mbs_case field.
103         Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
104         offsets_needed fields.  Change icase, is_utf8 and map_notascii
105         type from int bitfield to unsigned char.
106         (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
107         (build_wcs_upper_buffer): Change prototype to return int.
108         (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
109         defines, add prototypes.
110         * posix/regex_internal.c (re_string_allocate): Don't initialize
111         stop here.  Don't initialize mbs_case.  Set valid_raw_len.
112         Use mbs_allocated instead of MBS_* macros.
113         (re_string_construct): Don't initialize stop and valid_len here.
114         Don't initialize mbs_case.  Use mbs_allocated instead of MBS_*
115         macros.  Reallocate buffers if build_wcs_upper_buffer converted
116         too few bytes.  Set valid_len to bufs_len only for single byte
117         no translation and set in that case valid_raw_len as well.
118         (re_string_realloc_buffers): Reallocate offsets if not NULL.
119         Use mbs_allocated instead of MBS_ALLOCATED.  Don't reallocate
120         mbs_case.
121         (re_string_construct_common): Initialize raw_len, mbs_allocated,
122         stop and raw_stop.
123         (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
124         after it.  Set valid_raw_len.  Don't set mbs_case.
125         (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
126         Only use the fast path if !pstr->offsets_needed.  Apply pstr->trans
127         before mbrtowc instead of after it.  If upper case character
128         uses different number of bytes than lower case, goto to the
129         slow path.  Don't call towupper unnecessarily twice.  Set
130         valid_raw_len as well.  Handle in the slow path the case if
131         lower and upper case use different number of characters.
132         Don't set mbs_case.
133         (re_string_skip_chars): Use valid_raw_len instead of valid_len.
134         (build_upper_buffer): Don't set mbs_case.  Add BE macro.  Set
135         valid_raw_len.
136         (re_string_translate_buffer): Set mbs instead of mbs_case.  Set
137         valid_raw_len.
138         (re_string_reconstruct): Use raw_len/raw_stop to initialize
139         len/stop.  Clear valid_raw_len and offsets_needed when clearing
140         valid_len.  Use mbs_allocated instead of MBS_* macros.
141         Check original offset against valid_raw_len instead of valid_len.
142         Remove mbs_case handling.  Adjust valid_raw_len together with
143         valid_len.  If is_utf8 and looking for tip context, apply
144         pstr->trans first.  If buffers start with partial multi-byte
145         character, initialize mbs array as well if mbs_allocated.
146         Check return value of build_wcs_upper_buffer.
147         (re_string_peek_byte_case): New function.
148         (re_string_fetch_byte_case): New function.
149         (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
150         Don't free mbs_case.  Free offsets.
151         * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
152         if mb_cur_max == 6.
153         * posix/regexec.c (re_search_internal): Initialize input.raw_stop
154         as well.  Use valid_raw_len instead of valid_len when looking
155         through fastmap.  Adjust registers through input.offsets.
156         (extend_buffers): Allow build_wcs_upper_buffer to fail.
157         * posix/bug-regex18.c (tests): Enable #ifdefed out tests.  Add new
158         tests.
160 2003-11-26  Jakub Jelinek  <jakub@redhat.com>
162         * posix/regexec.c (check_subexp_limits): Only check close
163         subexpression limitation if one is found.  Formatting.
164         (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
165         Formatting.
166         * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
167         Add new test.
169 2003-11-26  Ulrich Drepper  <drepper@redhat.com>
171         * sysdeps/unix/sysv/linux/kernel-features.h
172         (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
173         * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
174         if __ASSUME_PROT_GROWSUPDOWN is defined.
176 2003-11-26  Andreas Jaeger  <aj@suse.de>
178         * sysdeps/unix/sysv/linux/dl-execstack.c
179         (_dl_make_stack_executable): Set dl_stack_flags always for
180         success.
182 2003-06-22  Petter Reinholdtsen  <pere@hungry.com>
184         * locale/program/ld-monetary.c: Only check the first three
185         characters in int_curr_symbol against ISO-4217, to make the
186         separator character used by a locale independent of the content
187         in iso-4217.def.
188         * locale/iso-4217.def: Remove the space character from all
189         currency values to get the new test code in ld-monetary.c working.
191 2003-11-21  David Mosberger  <davidm@hpl.hp.com>
193         * elf/soinit.c (_fini): Put _fini() in .init_array section if
194         HAVE_INITFINI_ARRAY is defined.
196 2003-11-25  Ulrich Drepper  <drepper@redhat.com>
198         * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
199         Define it appropriately after last change.  Use it where __sqrtl
200         was used.
202 2003-11-25  H.J. Lu  <hongjiu.lu@intel.com>
204         * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
205         sqrt for gcc 3.3 and above.
207 2003-11-25  Ulrich Drepper  <drepper@redhat.com>
209         * posix/runptests.c (main): Make errors fatal.
210         * posix/PTESTS: One test in GA135 and GA136 check functionality
211         which seems not guaranteed.
213 2003-11-25  Jakub Jelinek  <jakub@redhat.com>
215         * posix/regexec.c (re_search_internal): If prune_impossible_nodes
216         returned REG_NOMATCH, set match_last to -1.  Don't initialize
217         pmatch[0] needlessly.  Fix comment.
218         (prune_impossible_nodes): Don't segfault on NULL state_log entry.
219         (set_regs): Fix comment.
220         * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
221         if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
222         (build_charclass_op): Set has_plural_match if adding both
223         SIMPLE_BRACKET and COMPLEX_BRACKET.
224         * posix/bug-regex11.c (tests): Fix register values for one commented
225         out test.  Add new tests.
227         * posix/regex_internal.c (re_string_allocate): Make sure init_len
228         is at least dfa->mb_cur_max.
229         (re_string_reconstruct): If is_utf8, don't fall back into
230         re_string_skip_chars just because idx points into a middle of
231         valid UTF-8 character.  Instead, set the wcs bytes which correspond
232         to the partial character bytes to WEOF.
233         * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
234         instead of dfa->nodes_len + 1 state_log entries initially.
235         * posix/bug-regex20.c (main): Uncomment backwards case insensitive
236         tests.
238 2003-11-24  Jakub Jelinek  <jakub@redhat.com>
240         * posix/regex_internal.h (re_token_t): Add word_char bit.  Add
241         comment.
242         (re_dfa_t): Add sb_char field.
243         (bitset_mask): New function.
244         * posix/regcomp.c (free_dfa_content): Free sb_char.
245         (init_dfa): Don't initialize word_char unnecessarily.
246         Initialize sb_char.
247         (duplicate_node): Don't duplicate !word_char CHARACTERs with
248         NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
249         NEXT_NOTWORD_CONSTRAINT.  Return -1 in *new_idx instead.
250         (duplicate_node_closure): Handle clone_dest == -1 from
251         duplicate_node.
252         (peek_token): Initialize word_char bit.
253         (parse_expression, parse_dup_op): Add comments.
254         (parse_bracket_exp): Don't set bitmask bits for multi-byte char
255         starting bytes here at the beginning.  Mask off the bits right
256         before creating SIMPLE_BRACKET.
257         (build_charclass_op): Likewise.
258         * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
259         set accept bits for single-byte characters.
260         (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
261         being single byte encoded and the rest multi-byte.
262         * posix/bug-regex19.c (tests): Add new tests.
263         (do_mb_tests): Initialize t to *test.
264         (main): Fail even on do_mb_tests errors.
266 2003-11-23  Ulrich Drepper  <drepper@redhat.com>
268         * posix/regexec.c: Correct several memory allocation problems.
269         Add more BE.
270         * posix/regex_internal.c: Likewise.
271         * posix/regcomp.c: Likewise.
273         * posix/regexec.c: Add const in a number of places.
274         * posix/regex_internal.h: Make EPSILON_BIT a macro to help
275         debugging.  Its value isn't important.
277 2003-11-22  Ulrich Drepper  <drepper@redhat.com>
279         * posix/PTESTS: Fix first test of GA143.
281 2003-11-21  Ulrich Drepper  <drepper@redhat.com>
283         * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
284         isn't likely.
286         * locale/programs/charmap.c (charmap_read): If encoding is found
287         not ASCII compatible, set enc_not_ascii_compatible.
288         * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
289         * locale/programs/ld-ctype.c (ctype_startup): If
290         enc_not_ascii_compatible is set, initialize to_nonascii to 1.
292 2003-11-22  Jakub Jelinek  <jakub@redhat.com>
294         * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
295         if !__libc_enable_secure.
297         * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
298         field.
299         * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
300         (dl_main): Set GL(dl_use_load_bias) default.
301         (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
302         Add EXTRA_LD_ENVVARS_13.
303         * elf/dl-support.c (_dl_use_load_bias): New variable.
304         * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
305         with GL(dl_use_load_bias).
306         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
307         LD_USE_LOAD_BIAS.
308         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
309         (EXTRA_LD_ENVVARS_LINUX): Renamed to...
310         (EXTRA_LD_ENVVARS_13): ... this.  Remove case at the beginning.
311         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
312         Don't undefine first.  Remove EXTRA_LD_ENVVARS_LINUX.
314 2003-11-21  Ulrich Drepper  <drepper@redhat.com>
316         * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
318         * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
319         pointer.  Adjust callers.
321         * posix/regcomp.c (fetch_token): Change interface to match
322         peek_token.  This avoid some copying and reduces code size.
324 2003-11-21  Jakub Jelinek  <jakub@redhat.com>
326         * posix/bug-regex19.c (tests): Add more tests.
328         * posix/bug-regex11.c: And one more commented out test.
330         * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
331         tests multiple times unnecessarily.
333         * posix/bug-regex19.c (BRE, ERE): Define.
334         (tests): Add many new tests, remove UTF-8 ones.
335         (do_one_test, do_mb_tests): New functions.
336         (main): Rewritten using do_one_test and do_mb_tests.
338 2003-11-20  Ulrich Drepper  <drepper@redhat.com>
340         * posix/PTESTS: Fix first test in GA143.
342 2003-11-20  Jakub Jelinek  <jakub@redhat.com>
344         * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
345         Add word_trtable.
346         * posix/regex_internal.c (create_newstate_common, free_state):
347         Don't free trtable_search.
348         * posix/regexec.c (check_matching): Remove fl_search argument.
349         (transit_state_sb): Likewise.  #ifdef out as unused.
350         (build_trtable): Remove fl_search argument.  Set state->word_trtable
351         and state->trtable.  Build separate word and non-word tables if
352         multi-byte and they differ for some character.
353         (transit_state): Remove fl_search argument.  Don't update
354         state->trtable here.  Handle state->word_trtable.
355         #ifdef out unused call to transit_state_sb.
356         (re_search_internal): Update check_matching caller.
357         (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
358         bitmask for multi-byte locales.
359         * posix/bug-regex19.c (tests): Enable some commented out tests, add
360         2 new tests.
361         * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
362         multi-byte.  Don't run identical multi-byte tests multiple times
363         unnecessarily.
364         (main): Check setlocale return value.
365         * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
366         (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
367         ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
368         here, without --utf8 argument but with MALLOC_TRACE.
370 2003-11-19  Jakub Jelinek  <jakub@redhat.com>
372         * posix/regexec.c (extend_buffers): Don't allocate
373         twice as big state_log as needed.  Don't modify pstr->valid_len
374         for mb_cur_max == 1 !icase !trans.
376         * posix/regcomp.c (free_bin_tree): Removed.
377         (create_tree): Add dfa argument.  Don't call re_malloc for
378         each tree, instead allocate from str_tree_storage.
379         (re_dfa_add_tree_node): New function.
380         (free_dfa_content): Handle freeing if dfa->nodes == NULL
381         or dfa->state_table == NULL.
382         (re_compile_internal): Call free_dfa_content if init_dfa
383         fails.  Call free_workarea_compile, re_string_destruct
384         and free_dfa_content for most of the other failure paths.
385         (init_dfa): Initialize str_tree_storage_idx.
386         Don't clear any fields on allocation failure.
387         (free_workarea_compile): Free str_tree_storage chunks
388         instead of free_bin_tree (dfa->str_tree).
389         (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
390         followed by create_tree.  Add dfa argument to remaining
391         create_tree calls.  Remove new_idx variable.  Remove calls
392         to free_bin_tree.
393         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
394         parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
395         (duplicate_tree): Remove calls to free_bin_tree, add dfa
396         argument to create_tree.
397         * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
398         (bin_tree_storage_t): New type.
399         (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
400         fields.
401         * posix/Makefile (tests): Add bug-regex21.
402         (generated): Add bug-regex21-mem, bug-regex21.mtrace,
403         tst-rxspencer-mem and tst-rxspencer.mtrace.
404         (tests): Depend on $(objpfx)bug-regex21-mem
405         and $(objpfx)tst-rxspencer-mem.
406         (bug-regex21-ENV, tst-rxspencer-ENV): Set.
407         ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
408         * posix/tst-rxspencer.c (main): Add call to mtrace.
409         Free line at the end.
410         * posix/bug-regex21.c: New test.
412 2003-11-19  Ulrich Drepper  <drepper@redhat.com>
414         * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
416         * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
417         fails, just use the byte, do no fancy conversions.
419         * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
420         not ->len.
421         (re_string_is_single_byte_char): Likewise.
423 2003-11-18  Ulrich Drepper  <drepper@redhat.com>
425         * posix/regexec.c (get_subexp): After calling get_subexp_sub
426         reload buf and bkref_str.  Little optimization by avoiding memcmp.
428 2003-11-14  David Mosberger   <davidm@hpl.hp.com>
430         * sysdeps/unix/sysv/linux/ia64/sysdep.h
431         (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
432         that all existing GAS versions have a problem with .align inside
433         a function.
434         * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
435         * sysdeps/ia64/memcpy.S: Likewise.
436         * sysdeps/ia64/memset.S: Likewise.
437         * sysdeps/ia64/memmove.S: Likewise.  Also move the jump-table to
438         out of .text into .rodata, where it belongs.
440         * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
441         save/restore input-arguments, because they're necessarily
442         preserved by the kernel to support syscall-restart.
444 2003-11-18  Jakub Jelinek  <jakub@redhat.com>
446         * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
447         END_OF_RE_TOKEN_T and SUBEXP.  Reorder values.  Add OP_UTF8_PERIOD
448         and EPSILON_BIT.
449         (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
450         (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
451         * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
452         Handle OP_UTF8_PERIOD.
453         (re_string_reconstruct): Set valid_len for single byte char searching
454         with no translation and case sensitivity.
455         * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
456         OP_UTF8_PERIOD.
457         (re_compile_internal): Don't call optimize_utf8 if preg->translate
458         != NULL.
459         (optimize_utf8): Remove BACK_SLASH case.
460         Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
461         optimized.
462         (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
463         any bits set and COMPLEX_BRACKET is used.
464         * posix/regexec.c (transit_state_mb): Fix comment typo.
465         (group_nodes_into_DFAstates, check_node_accept): Handle
466         OP_UTF8_PERIOD.
467         (check_node_accept_bytes): Likewise.  Reorder slightly so that
468         re_string_char_size_at and re_string_elem_size_at are called
469         only when needed.
470         * posix/bug-regex20.c (BRE, ERE): Define.
471         (tests): Use them to make lines shorter.  Expect . to be
472         optimized.  Add lots of new tests.
473         (main): Run (ATM just case sensitive) test with backwards searching
474         as well.
476 2003-11-18  Jakub Jelinek  <jakub@redhat.com>
478         * io/bug-ftw4.c: Include string.h.
479         * posix/fnmatch.c (mbsinit): Remove define.
481 2003-11-17  Jakub Jelinek  <jakub@redhat.com>
483         * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
484         well.
485         * posix/bug-regex20.c (tests): Add new tests.  Multi-byte char
486         followed by dup operator is expected to be optimized.
488         * posix/regexec.c (check_node_accept_bytes): Move nrules and j
489         variables to the block where they are only used, initialize
490         nrules only immediately before using it.
492 2003-11-15  Andreas Jaeger  <aj@suse.de>
494         * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
495         * sysdeps/x86_64/fpu/s_truncl.S: New file.
496         * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
497         * sysdeps/x86_64/fpu/s_floorl.S: New file.
498         * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
499         * sysdeps/x86_64/fpu/e_remainderl.S: New file.
501         * math/libm-test.inc (floor_test): Test also Â±0.25.
502         (ceil_test): Test -0.25.
504 2003-11-17  Ulrich Drepper  <drepper@redhat.com>
506         * sysdeps/posix/getaddrinfo.c: Add support for destination address
507         selection according to RFC 3484.
509 2003-11-15  Ulrich Drepper  <drepper@redhat.com>
511         * posix/regex_internal.h: Add forward declaration of re_dfa_t.
512         Replace last two parameters of re_string_allocate and
513         re_string_construct with pointer to DFA.
514         (re_dfa_t): Add map_notascii field.
515         * posix/regcomp.c (re_compile_internal): Add call of
516         re_string_construct.
517         (init_dfa): Initialize mpa_notascii.
518         * posix/regex_internal.c: Adjust definitions of re_string_allocate
519         and re_string_construct.
520         Pass DFA to re_string_construct.  Adjust definition.  Initialize
521         map_notascii field.
522         (build_wcs_upper_buffer): If map_notascii is zero use simplfied
523         method to map ASCII values to upper case.
524         * posix/regex.c: Include localeinfo.h.
525         * posix/regexec.c: Adjust call of re_string_allocate.
527         * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
528         * locale/localeinfo.h (LIMAGIC): Change value.
529         * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
530         * locale/C-ctype.h: Likewise.
531         * locale/programs/ld-ctype.c: Compute whether any mapping maps from
532         ASCII to non-ASCII value.  Write out that value.
534         * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
535         * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
537 2003-11-14  Jakub Jelinek  <jakub@redhat.com>
539         * posix/tst-rxspencer.c (check_match): @ without any following
540         characters must match only end of string.
541         (main): Fix filename in error message.
543 2003-11-12  David Mosberger  <davidm@hpl.hp.com>
545         * sysdeps/ia64/dl-machine.h: Force inlining of
546         elf_machine_runtime_setup().
548 2003-11-13  Andreas Jaeger  <aj@suse.de>
550         * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
551         (CFLAGS-test-double.c): Likewise.
552         (CFLAGS-test-ldouble.c): Likewise.
553         (CPPFLAGS-test-ifloat.c): Likewise.
554         (CPPFLAGS-test-idouble.c): Likewise.
555         (CPPFLAGS-test-ildoubl.c): Likewise.
557         * math/libm-test.inc (ceil_test): Test ceil (0.25).
559 2003-11-04  Ulrich Drepper  <drepper@redhat.com>
561         * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
562         sends the netlink data.
563         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
565 2003-11-13  Jakub Jelinek  <jakub@redhat.com>
567         * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
568         with no bits set for >= 0x80 chars is seen.
569         * posix/bug-regex20.c (tests): Add new tests.  Expect [ABC] to be
570         optimized.
571         (main): Run all tests with RE_ICASE as well.
573 2003-11-13  Ulrich Drepper  <drepper@redhat.com>
575         * posix/Makefile: Add rules to build and run tst-rxspencer.
576         (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
577         * posix/tst-rxspencer.c: New file.
578         * posix/rxspencer/tests: New file.
579         * posix/rxspencer/COPYRIGHT: New file.
580         Patch mostly by Jakub Jelinek.
582         * posix/regcomp.c (parse_bracket_exp): Don't check for range if
583         this is no option given the first token.
585         * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
586         hyphen in range expression.  Return EBRACK in this case.
588         * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
589         we expect them or it's the last element in the bracket expression.
590         Indicated by new parameter.  Adjust all callers.
592         * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
593         Prettier error messages.
595         * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
596         number in {,} expression is larger.
598 2003-11-13  Andreas Jaeger  <aj@suse.de>
600         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
601         Define appropriately for x86_64.
602         (__ASSUME_UTIMES): Likewise.
603         (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
605         * sysdeps/x86_64/fpu/s_ceill.S: New file.
607 2003-11-13  Ulrich Drepper  <drepper@redhat.com>
609         * posix/regcomp.c (parse_expression): In BRE consecutive
610         duplications are not allowed.
612 2003-11-12  Ulrich Drepper  <drepper@redhat.com>
614         * posix/regcomp.c (parse_bracket_exp): If end of expression is
615         seen, return EBRACK error, not BADPAT.
617         * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
618         and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
619         * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
620         (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
622         * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
623         return REG_EPAREN.
625         * posix/PTESTS: Cleanup.  Fix typoes.  Correct bugs in 2003.2.
626         * posix/runptests.c (main): Handle comments.
627         * posix/PTESTS2C.sed: Handle comments.
629 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
631         * posix/regcomp.c (optimize_utf8): New function.
632         (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
633         of !icase.
634         (re_compile_internal): Call optimize_utf8 if not case insensitive
635         and in UTF-8 locale.
636         * posix/regex_internal.h: Ifdef out some prototypes if
637         RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
638         * posix/Makefile (tests): Add bug-regex20.
639         (bug-regex20-ENV): Add LOCPATH.
640         * posix/bug-regex20.c: New test.
642 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
644         * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
646 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
648         * posix/tst-regex.c (umemlen): New variable.
649         (test_expr): Add expectedicase argument.  Test case insensitive
650         searches as well as backwards searches (case sensitive and
651         insensitive) too.
652         (run_test): Add icase argument.  Use it to compute regcomp flags.
653         (run_test_backwards): New function.
654         (main): Cast read to size_t to avoid warning.  Set umemlen.
655         Add expectedicase arguments to test_expr.
656         * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
657         find previous character by walking back instead of converting
658         all chars from beginning.
660 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
662         * posix/regex_internal.h (struct re_string_t): Add is_utf8
663         and mb_cur_max fields.
664         (struct re_dfa_t): Likewise.  Reorder fields to make structure
665         smaller on 64-bit arches.
666         (re_string_allocate, re_string_construct): Add mb_cur_max and
667         is_utf8 arguments.
668         (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
669         instead of MB_CUR_MAX.
670         * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
671         instead of MB_CUR_MAX.
672         (re_compile_internal): Pass new arguments to re_string_construct.
673         (init_dfa): Initialize mb_cur_max and is_utf8 fields.
674         (peek_token, peek_token_bracket): Use input->mb_cur_max instead
675         of MB_CUR_MAX.
676         (parse_expression, parse_bracket_exp, parse_charclass_op): Use
677         dfa->mb_cur_max instead of MB_CUR_MAX.
678         * posix/regex_internal.c (re_string_construct_common): Add
679         mb_cur_max and is_utf8 arguments.  Initialize fields with them.
680         (re_string_allocate, re_string_construct): Add mb_cur_max and
681         is_utf8 arguments, pass them to re_string_construct_common.
682         Use mb_cur_max instead of MB_CUR_MAX.
683         (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
684         MB_CUR_MAX.
685         (re_string_reconstruct): Likewise.
686         (re_string_context_at): Use input->mb_cur_max instead of
687         MB_CUR_MAX.
688         (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
689         instead of MB_CUR_MAX.
690         * posix/regexec.c (re_search_internal): Likewise.
691         Pass new arguments to re_string_allocate.
692         (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
693         MB_CUR_MAX.
694         (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
696 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
698         * posix/Makefile (tests): Add bug-regex19.
699         (bug-regex19-ENV): Add LOCPATH.
700         * posix/bug-regex19.c: New test.
702 2003-11-11  Jakub Jelinek  <jakub@redhat.com>
704         * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
705         with MB_CUR_MAX > 1 locales in the fastmap.
707 2003-11-11  Jakub Jelinek  <jakub@redhat.com>
709         * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
710         (build_wcs_upper_buffer): Likewise.  Use towupper for wchar_t instead
711         of toupper.
712         * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
713         (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
714         * posix/bug-regex17.c: New file
715         * posix/bug-regex18.c: New file.
717 2003-10-08  Thorsten Kukuk  <kukuk@suse.de>
719         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
720         Define __NR_pread/__NR_pwrite if not done in kernel headers
722 2003-11-11  Roland McGrath  <roland@redhat.com>
724         * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
726         * manual/Makefile (info): Don't depend on dir-add.info.
727         (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
728         (dir-add.info): Target removed, replaced with ...
729         (dir-add.texi): New target.
730         (distribute): Add it.
731         (install): Remove variant with --section arguments.
732         Let the @dircategory directives do their work.
733         (mostlyclean): Don't remove dir-add.info here.
734         (realclean): Remove dir-add.texi here.
735         * manual/libc.texinfo: @include dir-add.texi
736         * configure.in: Remove check for old Debian install-info.
737         * configure: Regenerated.
738         * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
740 2003-11-08  Andreas Schwab  <schwab@suse.de>
742         * scripts/data/c++-types-ia64-linux-gnu.data: New file.
744 2003-11-10  Carlos O'Donell  <carlos@baldric.uwo.ca>
746         * io/ftwtest-sh: Fix nested sed commands.
748 2003-11-10  Jakub Jelinek  <jakub@redhat.com>
750         * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
751         valid_len wide chars.
753 2003-11-09  Roland McGrath  <roland@redhat.com>
755         * manual/examples/dir2.c (one): Add const to argument type.
756         Reported by J de Haan <j.de.haan@home.nl>.
758 2003-11-07  Ulrich Drepper  <drepper@redhat.com>
760         * po/pl.po: Update from translation team.
762 2003-11-07  Jakub Jelinek  <jakub@redhat.com>
764         * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
765         (ftw_dir, ftw_startup): Add __attribute ((noinline)).
766         (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
767         (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
768         and compat_symbol.
769         * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
770         * io/Versions (libc): Export nftw@@GLIBC_2.3.3
771         and nftw64@@GLIBC_2.3.3.
773         * io/ftw.h (FTW_ACTIONRETVAL): New flag.
774         (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
775         * io/ftw.c (ftw_dir): Add old_dir argument.
776         Clear result if it was FTW_SKIP_SIBLINGS after processing all
777         dir entries.  Change cwd back if old_dir != NULL.
778         (process_entry): Adjust caller.  Don't change cwd back here.
779         Change FTW_SKIP_SUBTREE result to 0.
780         (ftw_startup): Adjust ftw_dir caller.
781         Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
782         * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
783         (options, main): Add --skip-subtree and --skip-siblings options.
784         (cb): Use return FTW_CONTINUE instead of return 0.
785         Handle --skip-subtree and --skip-siblings.
786         * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
787         * manual/filesys.texi: Document FTW_ACTIONRETVAL.
789 2003-11-04  Jakub Jelinek  <jakub@redhat.com>
791         * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
792         non-zero.
793         * io/Makefile (tests): Add bug-ftw4.
794         * io/bug-ftw4.c: New test.
796 2003-10-27  Daniel Jacobowitz  <drow@mvista.com>
798         * libio/libioP.h [_IO_USE_OLD_IO_FILE]
799         (struct _IO_FILE_complete_plus): New type.
800         * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
801         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
802         * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
803         Call _IO_old_init instead of _IO_init.
805 2003-11-03  Ulrich Drepper  <drepper@redhat.com>
807         * intl/locale.alias: nb_NO is now the correct name, not no_NO.
809         * locale/iso-639.def: Add Blin.
810         Patch by Daniel Yacob <locales@geez.org>.
812 2003-10-31  Steven Munroe  <sjmunroe@us.ibm.com>
814         * sysdeps/powerpc/powerpc32/strncmp.S: New File.
815         * sysdeps/powerpc/powerpc64/strncmp.S: New File.
817 2003-11-01  Randolph Chung  <tausq@debian.org>
819         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
820         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
821         Add missing parentheses.
823 2003-11-01  Roland McGrath  <roland@redhat.com>
825         * libio/bug-ftell.c (do_test): Add a cast.
827 2003-09-26  Daniel Jacobowitz  <drow@mvista.com>
829         * Makerules (shlib.lds): Make sure that ld doesn't try to link
830         anything while generating the linker script.
832 2003-10-31  Roland McGrath  <roland@redhat.com>
834         * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
835         special members.
837 2003-10-29  Ulrich Drepper  <drepper@redhat.com>
839         * po/be.po: Update from translation team.
841 2003-10-27  Ulrich Drepper  <drepper@redhat.com>
843         * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
844         _dl_map_object.
846         * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
847         ELF header.
849         * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
850         rest of line.  We use getline which means this cannot happen.
852 2003-10-26  Ulrich Drepper  <drepper@redhat.com>
854         * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
855         Avoid infinite loops in case the mounts file is hosed.
856         * io/Makefile: Add rules to build and run tst-statvfs.
857         * io/tst-statvfs.c: New file.
859         * include/dlfcn.h (__RTLD_OPENEXEC): Define.
860         * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
861         executables unless __RTLD_OPENEXEC flag is present.
862         * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
863         _dl_map_object when loading the executable.
865         * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
866         correctly.
867         * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
869         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
870         reverse lookup format for IPv6 addresses is using bitstring and
871         .ip6.arpa suffix.
872         * resolv/ns_name.c: Implement encoding and decoding bitstring in
873         hex format.
875 2003-10-23  Jakub Jelinek  <jakub@redhat.com>
877         * locale/programs/locale.c (show_info): Fix printing word values on
878         64-bit big-endian architectures.
880 2003-10-19  Bruno Haible  <bruno@clisp.org>
882         * intl/hash-string.c (hash_string): Zero-extend each char from the
883         string; the old code did a sign-extend on some platforms.
885 2003-10-22  Steven Munroe  <sjmunroe@us.ibm.com>
887         * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
888         append options to these.
889         * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
891 2003-10-18  Carlos O'Donell  <carlos@baldric.uwo.ca>
893         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
895 2003-10-15  Roland McGrath  <roland@redhat.com>
897         * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
898         Fake an entry for the main executable and then call __dl_iterate_phdr.
899         * elf/Makefile (routines): Remove dl-iteratephdr-static.
900         (elide-routines.os): Likewise.
901         (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
902         * sysdeps/generic/dl-iteratephdr-static.c: File removed.
903         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
905 2003-10-15  Jakub Jelinek  <jakub@redhat.com>
907         * elf/rtld.c (print_statistics): Print also number of relative
908         relocations.
910 2003-10-12  Carlos O'Donell  <carlos@baldric.uwo.ca>
912         * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
913         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
914         SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
915         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
916         and undef JUMPTARGET before use.
917         [PIC]: Save pic register around syscall.
918         * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
919         Cleanup asm statment.
921 2003-10-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
923         * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
924         after trapa instruction.
926 2003-10-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
928         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
930 2003-10-10  Carlos O'Donell  <carlos@baldric.uwo.ca>
932         * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
934 2003-10-09  Roland McGrath  <roland@redhat.com>
936         * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
937         is no file to name.
939 2003-10-08  Jakub Jelinek  <jakub@redhat.com>
941         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
942         two identical copies of strings.
944 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
946         * posix/bug-regex11.c: Add some more tests which fail so far.
947         Disable them.  Patch by Paolo Bonzini <bonzini@gnu.org>.
949 2003-10-05  Paolo Bonzini  <bonzini@gnu.org>
951         * posix/bug-regex11.c: Add more backreference-related test cases.
952         (main): Show the failing regex in the error messages.
953         * posix/regexec.c (check_dst_limits_calc_pos):
954         Simplify some nested conditionals.  Replace if's with a switch
955         statement.
956         (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
957         FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
958         does not change in the recursive invocation, fixing an infinite loop
959         in the ()\1*\1* regex.
960         (sift_states_backward): Fix function comment.
961         * posix/regcomp.c (calc_epsdest): Add an assertion.
963 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
965         * manual/examples/testopt.c: Fix warnings.  Better error message
966         for missing -c argument.
967         Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
969         * timezone/asia: Update from tzdata2003d.
970         * timezone/australasia: Likewise.
971         * timezone/backward: Likewise.
972         * timezone/europe: Likewise.
973         * timezone/iso3166.tab: Likewise.
974         * timezone/northamerica: Likewise.
975         * timezone/southamerica: Likewise.
976         * timezone/zone.tab: Likewise.
978 2003-10-05  Jakub Jelinek  <jakub@redhat.com>
980         * sysdeps/ia64/backtrace.c: New file.
981         * sysdeps/x86_64/backtrace.c: New file.
982         * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
983         (_Unwind_Backtrace): New prototype.
985 2003-10-03  Ulrich Drepper  <drepper@redhat.com>
987         * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
988         * sysdeps/i386/elf/setjmp.S: Likewise.
990 2003-10-02  Roland McGrath  <roland@redhat.com>
992         * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
993         * argp/argp-namefrob.h
994         [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
995         (__argp_short_program_name): Don't declare fn, define it as a macro.
997 2003-08-22  Simon Josefsson  <jas@extundo.com>
999         * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
1001         * argp/argp-help.c: Don't include malloc.h, some platforms
1002         complain and it doesn't appear to be used.
1003         [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
1004         strerror_r.
1005         [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
1006         strerror.
1007         (hol_entry_long_iterate): Change __attribute to __attribute__.
1008         (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
1009         && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
1010         (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
1011         modified after comments from Ulrich Drepper.
1012         (__argp_short_program_name): Ditto.
1013         (__argp_state_help, __argp_error, __argp_failure): Use it.
1014         (__argp_failure): Use strerror when necessary.
1016         * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
1017         (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
1018         (clearerr_unlocked, feof_unlocked, ferror_unlocked)
1019         (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
1020         (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
1021         (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
1022         non-unlocked functions.
1023         [!_LIBC]: Add prototypes for __argp_basename and
1024         __argp_short_program_name.
1026         * argp/argp-parse.c (argp_default_parser): Only use
1027         program_invocation{_short,}_name if declared.
1028         (parser_init): Use __argp_short_program_name.
1030         * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
1031         '#include features.h'.
1033         * argp/argp.h [!__attribute__]: Define to nothing.
1035 2003-09-26  Paolo Bonzini  <bonzini@gnu.org>
1037         * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
1038         for the first token in a subexpression as well.
1040 2003-10-02  Jakub Jelinek  <jakub@redhat.com>
1042         * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
1043         handling again.
1044         (parse_reg_exp): Likewise.
1045         * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
1047         * posix/bug-regex11.c (tests): Add new tests.
1048         * posix/bug-regex12.c (tests): Add new test.
1050 2003-10-01  Thorsten Kukuk  <kukuk@suse.de>
1052         * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
1053         variables only used if TLS_DTV_AT_TP is defined into the #if branch.
1055 2003-10-02  Jeroen Dekkers  <jeroen@dekkers.cx>
1057         * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
1058         the old thread-m.h header too.
1060 2003-10-02  Ulrich Drepper  <drepper@redhat.com>
1062         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
1063         back to 131027 since this is what the kernel enforces.
1065         * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
1066         define it with libc_freeres_ptr.
1068 2003-10-01  Roland McGrath  <roland@redhat.com>
1070         * elf/rtld.c (dl_main): Add cast in last change.
1072 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
1074         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
1075         "#if 0" surrounding most of contents.
1076         (SYSCALL_ERROR_LABEL): Define.
1077         (__SYSCALL_CLOBBERS): Add $10.
1078         (internal_syscall7): Remove.
1079         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1081 2003-09-30  Ulrich Drepper  <drepper@redhat.com>
1083         * elf/rtld.c (dl_main): Also set l_map_start.
1085 2003-09-30  Daniel Jacobowitz  <drow@mvista.com>
1087         * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
1088         to work around kernel problem.
1090 2003-09-27  Wolfram Gloger  <wg@malloc.de>
1092         * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
1093         "thread-m.h", so that default parameters can be overridden in a
1094         system-specific malloc-machine.h.  Remove extra ; from extern "C"
1095         closing brace.
1096         * sysdeps/generic/malloc-machine.h: New file.
1097         * sysdeps/mach/hurd/malloc-machine.h: New file.
1098         * malloc/thread-m.h: Removed.
1099         * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
1100         is in sysdeps/generic/malloc-machine.h now.
1102 2003-09-29  Ulrich Drepper  <drepper@redhat.com>
1104         * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
1105         variables only used if TLS_TCB_AT_TP is defined into the #if
1106         branch.
1108         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
1109         well to cover using long long in C90.
1111 2003-09-28  Alfred M. Szmidt  <ams@kemisten.nu>
1113         * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
1114         Redefine and use __libc_cleanup_region_end instead.
1116 2003-09-29  Thorsten Kukuk  <kukuk@suse.de>
1118         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
1119         fix prototypes for picky C++ compilers.
1121 2003-09-27  Ulrich Drepper  <drepper@redhat.com>
1123         * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
1124         the device ID is invalid and return -1.
1125         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
1127 2003-09-26  Andreas Schwab  <schwab@suse.de>
1129         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
1130         rt_sigprocmask system call.
1132 2003-09-25  Roland McGrath  <roland@redhat.com>
1134         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
1135         Don't check for zero __libc_stack_end, it should be initialized.
1136         [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
1137         and fall back if it fails with EINVAL.
1138         [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
1140 2003-09-25  Jakub Jelinek  <jakub@redhat.com>
1142         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
1143         sysdeps/i386/dl-procinfo.c instead of
1144         sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
1145         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
1146         #include_next.
1148 2003-09-25  Ulrich Drepper  <drepper@redhat.com>
1150         * posix/regcomp.c (peek_token): Remove recent changes for anchor
1151         handling again.
1152         (parse_reg_exp): Likewise.
1153         * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
1155         * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
1156         banners.
1158         * nis/nis_table.c (nis_list): Always strdup string used with
1159         ibreq->ibr_name.  Add several NULL pointer checks.
1161         * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
1162         of nis_list.
1163         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1164         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1165         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1166         * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
1167         * nis/nss_nisplus/nisplus-network.c: Likewise.
1168         * nis/nss_nisplus/nisplus-proto.c: Likewise.
1169         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1170         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1171         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1172         * nis/nss_nisplus/nisplus-service.c: Likewise.
1173         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1175         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
1176         and PROT_GROWSUP.
1177         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1178         * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
1179         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1180         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1181         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1182         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1183         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1184         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1185         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1186         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1187         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1189 2003-09-25  Jakub Jelinek  <jakub@redhat.com>
1191         * misc/syslog.c: Include locale.h.
1192         (vsyslog): Add date always in C locale %h %e %T format.
1194 2003-09-24  Paul Eggert  <eggert@twinsun.com>
1196         * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
1197         size_t overflow when reallocating storage.
1198         * argp/argp-help.c (make_hol, hol_append): Likewise.
1199         (SIZE_MAX): New macro.
1201 2003-08-07  Alfred M. Szmidt  <ams@kemisten.nu>
1203         * sysdeps/mach/hurd/bits/libc-lock.h
1204         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
1206 2003-08-01  Alfred M. Szmidt  <ams@kemisten.nu>
1208         * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
1209         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
1210         #include_next dl-procinfo.h to get them.
1211         (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
1212         (_DL_PLATFORMS_COUNT): Likewise.
1213         (_DL_FIRST_PLATFORM): Likewise.
1214         (_DL_HWCAP_PLATFORM): Likewise.
1215         (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
1216         HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
1217         HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
1218         HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
1219         HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
1220         HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
1221         HWCAP_IMPORTANT): Likewise.
1222         (_DL_PROCINFO_H_): Likewise.
1223         (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
1224         (_dl_string_platform): Likewise.
1225         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
1226         * sysdeps/i386/dl-procinfo.c: ... here, new file.
1228 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
1230         * sysdeps/unix/sysv/linux/dl-execstack.c
1231         (_dl_make_stack_executable): Remember that we changed the permission.
1233         * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
1234         __libc_stack_end.  Patch by David Mosberger.
1236 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
1238         * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
1239         __libc_stack_end@GLIBC_PRIVATE.
1241         * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
1242         (_dl_sysdep_start): Set __libc_stack_end here.
1243         * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
1244         __libc_stack_end.
1245         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
1246         * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
1247         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
1248         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1249         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
1250         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
1251         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
1252         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
1253         * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
1254         * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
1255         (RTLD_START): Remove setting of __libc_stack_end.
1256         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
1257         (RTLD_START): Remove setting of __libc_stack_end.
1259 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
1261         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
1262         function definitions.  Adjust macro expansions accordingly.
1263         * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
1264         minor, makedev name.
1265         * sysdeps/unix/sysv/linux/makedev.c: Likewise.
1267 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
1269         * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
1270         Add __THROW.
1272 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
1274         * nscd/Makefile (others): Add nscd before including ../Rules.
1276 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
1278         * nscd/Makefile: Add rules to build nscd as a PIE.
1279         * configure.in: Check for -fpie and -pie compiler options.
1280         * config.make.in (have-fpie): Define.
1282 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
1284         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
1285         kernel dev_t size.
1286         * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
1287         * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
1288         * sysdeps/unix/sysv/linux/makedev.c: New file.
1289         * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
1290         * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
1291         (sysdep_routines): Add makedev.
1292         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
1293         major, minor, makedev.
1294         * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
1295         kernel dev_t.
1296         * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
1297         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
1298         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
1299         Code by Alexander Viro <aviro@redhat.com>.
1301 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
1303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
1304         (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
1305         makecontext.
1306         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
1307         for include Altivec support for PPC32.  It was not compatible.
1308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
1309         offsets for ucontext_t change.
1310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
1311         for ucontext_t change.  Add compatibility code.
1312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
1313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1315         Patch by Paul Mackerras <paulus@samba.org>.
1317 2003-02-25  Randolph Chung  <tausq@debian.org>
1319         * sysdeps/hppa/Makefile: Include compat code in build.
1320         * sysdeps/hppa/libgcc-compat.c: New file.
1321         * sysdeps/hppa/Dist: Add libgcc-compat.c.
1322         * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
1324 2003-09-23  Roland McGrath  <roland@redhat.com>
1326         * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
1327         GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
1328         Move GL(dl_make_stack_executable_hook) initialization up.
1329         * elf/tst-execstack-prog.c: New file.
1330         * elf/Makefile (tests-execstack-yes): Add it.
1331         (LDFLAGS-tst-execstack-prog): New variable.
1333 2003-09-23  Jakub Jelinek  <jakub@redhat.com>
1335         * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
1336         before calling _dl_start, using %rip relative access.
1337         Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
1338         and _dl_fini.
1340 2003-09-23  Roland McGrath  <roland@redhat.com>
1342         * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
1343         calling _dl_start, using GOTOFF access.
1345         * configure.in (libc_cv_z_execstack): New check.
1346         * configure: Regenerated.
1347         * config.make.in (have-z-execstack): New variable set by it.
1348         * elf/tst-execstack.c: New file.
1349         * elf/tst-execstack-mod.c: New file.
1350         * elf/tst-execstack-needed.c: New file.
1351         * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
1352         variables.
1353         (tests, modules-names): Conditionally include them.
1354         (distribute): Add tst-execstack-mod.c here.
1355         ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
1356         (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
1357         ($(objpfx)tst-execstack-needed): New target.
1358         (LDFLAGS-tst-execstack-needed): New variable.
1360         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
1361         and _dl_make_stack_executable_hook.  Declare _dl_make_stack_executable.
1362         * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
1363         (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
1364         Initialize _dl_make_stack_executable_hook.
1365         * elf/dl-support.c: Define those new variables.
1366         (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
1367         (_dl_phdr): Fix type.
1368         * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
1369         enable execute permission for the stack if necessary.
1370         * sysdeps/generic/dl-execstack.c: New file.
1371         * elf/Makefile (dl-routines): Add it.
1372         * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
1373         * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
1375 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
1377         * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
1379 2003-09-20  Alfred M. Szmidt  <ams@kemisten.nu>
1381         * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
1382         UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
1383         __fcntl_nocancel.
1385 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
1387         * malloc/malloc.c: Include <stdint.h>.
1389 2003-09-20  Paolo Bonzini  <bonzini@gnu.org>
1391         * posix/regcomp.c (build_word_op): Rename like...
1392         (build_charclass_op): ...this.  Accept two extra parameters,
1393         CLASS_NAME and EXTRA.  Add EXTRA to the result, not only _.
1394         (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
1395         (parse_expression): Replace build_word_op with
1396         build_charclass_op, add new arguments, accept OP_SPACE
1397         and OP_NOTSPACE.
1398         * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
1399         and OP_NOTSPACE.
1401         * posix/regcomp.c (peek_token): Don't look back for ( or |
1402         to check whether to treat a caret as special.  It fails
1403         for the (extended) regex \(^.
1404         (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
1405         * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
1407         * posix/regexec.c: Check out of bounds value before shifting.
1409         * posix/regex_internal.h: Define __attribute for non-gcc.
1411 2003-09-22  Jakub Jelinek  <jakub@redhat.com>
1413         * include/atomic.h (atomic_compare_and_exchange_val_rel,
1414         atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
1415         to avoid confusion.
1417         * sysdeps/unix/opendir.c: Include string.h.
1419 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
1421         * timezone/zdump.c: Update from tzcode2003c.
1422         * timezone/zic.c: Likewise.
1423         * timezone/leapseconds: Update from tzdata2003c.
1425 2003-09-19  Ulrich Drepper  <drepper@redhat.com>
1427         * elf/Makefile ($(objpfx)librtld.os): Create link map also for
1428         final build to ease quality control.
1430         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
1431         ld.so, don't include NULL buffer pointer handling.
1433 2003-09-19  Jakub Jelinek  <jakub@redhat.com>
1435         * dlfcn/dlopen.c (dlopen): Add static_link_warning.
1437 2003-09-18  Jakub Jelinek  <jakub@redhat.com>
1439         * libio/memstream.c (open_memstream): Use _IO_init instead of
1440         _IO_old_init.
1442 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
1444         * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
1445         have to recognize octal and hexadecimal numbers as well.  Simplify
1446         function, signs are handled in strtol.
1447         * posix/wordexp-test.c: Add tests for octal and hexadecimal
1448         numbers in arithmetic expressions.
1450 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1452         * elf/Makefile (distribute): Add tst-alignmod.c.
1453         (tests): Add tst-align.
1454         (modules-names): Add tst-alignmod.
1455         (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
1456         $(stack-align-test-flags).
1457         ($(objpfx)tst-align): Depend on libdl.
1458         ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
1459         * elf/tst-align.c: New file.
1460         * elf/tst-alignmod.c: New file.
1461         * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
1462         * misc/tst-tsearch.c: Include tst-stack-align.h.
1463         (stack_align_check): New array.
1464         (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
1465         (main): Report error if stack was not enough aligned
1466         in cmp_fn or walk_action.
1467         * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
1468         * stdlib/tst-qsort.c: Include tst-stack-align.h.
1469         (align_check): New var.
1470         (compare): Use TEST_STACK_ALIGN () macro.
1471         (main): Report error if stack was not enough aligned in compare.
1472         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
1473         unneeded -mpreferred-stack-boundary=4.
1474         * sysdeps/x86_64/tst-stack-align.h: New file.
1476         * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
1477         (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
1479 2003-09-17  Philip Blundell  <philb@gnu.org>
1481         * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
1482         (BX): Define.
1483         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
1485         * sysdeps/arm/sysdep.h (DO_RET): New.
1487         * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
1488         required but not defined.  Improve test of error code.
1490 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1492         * sysdeps/i386/Makefile (stack-align-test-flags): Add
1493         -malign-double -mpreferred-stack-boundary=4.
1495 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
1497         * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
1498         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
1500 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
1502         * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
1503         subdir, add -mpreferred-stack-boundary=4, with few exceptions.
1505 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1507         * Makeconfig (stack-align-test-flags): Set.
1508         * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
1509         $(stack-align-test-flags).
1510         * stdlib/tst-bsearch.c: Include tst-stack-align.h.
1511         (align_check): New var.
1512         (comp): Use TEST_STACK_ALIGN macro.
1513         (do_test): Fail if align_check != 1.
1514         * sysdeps/generic/tst-stack-align.h: New file.
1515         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
1516         * sysdeps/i386/i686/tst-stack-align.h: New file.
1518 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
1520         * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
1521         stack which is aligned (mod 16).
1523 2003-09-17  Uwe Reimann  <Uwe_Reimann@gmx.net>
1524             Hans-Peter Nilsson  <hp@axis.com>
1526         * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
1527         R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT.  Clarify comment.
1529 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1531         * dirent/scandir.c: Include bits/libc-lock.h.
1532         (struct scandir_cancel_struct): New type.
1533         (cancel_handler): New function.
1534         (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
1535         scandir_cancel_struct.
1537 2003-09-16  Ulrich Drepper  <drepper@redhat.com>
1539         * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
1540         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1541         Add internal_statvfs.
1542         * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
1543         instead of including "internal_statvfs.c".
1544         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1545         * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
1546         Add code to avoid the stat calls on all the reported mount points
1547         when we can determine mismatch in advance.
1548         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
1549         USBDEVFS_SUPER_MAGIC.
1551 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
1553         * posix/Versions (sched_getaffinity, sched_setaffinity): Change
1554         from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
1556 2003-09-16  Bruno Haible  <bruno@clisp.org>
1558         * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
1559         invoking msgfmt, not before.
1561 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
1563         * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
1564         * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
1565         $(uses-callbacks).
1566         * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
1567         * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
1568         CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
1569         * elf/dl-iteratephdr.c (cancel_handler): New function.
1570         (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
1571         * elf/link.h (dl_iterate_phdr): Remove __THROW.
1572         * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
1573         Add $(uses-callbacks).
1574         (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
1575         * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
1576         $(exceptions) to $(uses-callbacks).
1577         * Makeconfig (uses-callbacks): Set to $(exceptions).
1578         * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
1579         $(uses-callbacks).
1580         * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
1581         Likewise.
1583 2003-09-15  Andreas Schwab  <schwab@suse.de>
1585         * sysdeps/m68k/setjmp.c: Add hidden_def.
1587 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
1589         * libio/memstream.c (open_memstream): Don't allow wide char operations.
1591         * dirent/dirent.h: Remove __THROW from scandir.
1593 2003-09-14  Philip Blundell  <philb@gnu.org>
1595         * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
1596         to be available.
1598         * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
1600         * sysdeps/arm/memset.S: Rewrite.
1602 2003-09-12  Jakub Jelinek  <jakub@redhat.com>
1604         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
1605         (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
1606         __SLONGWORD_TYPE otherwise.
1608 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
1610         * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
1611         (CFLAGS-ftw64.c): Likewise.
1613 2003-09-13  Ulrich Drepper  <drepper@redhat.com>
1615         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
1616         (CFLAGS-nscd_getgr_r.c): Likewise.
1617         (CFLAGS-nscd_gethst_r.c): Likewise.
1619 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
1621         * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
1622         interfaces.
1624         * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
1625         CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
1626         CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
1627         * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
1628         CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
1629         * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
1630         Likewise.
1631         * misc/Makefile (CFLAGS-err.c): Likewise.
1632         * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
1633         CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
1634         CFLAGS-glob64.c): Likewise.
1635         * pwd/Makefile (CFLAGS-getpw.c): Likewise.
1636         * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
1637         CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
1638         * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
1639         * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
1641         * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
1643         * libio/stdio.h: Remove __THROW from cuserid prototype.
1645         * locale/loadarchive.c: Use only non-cancelable interfaces.
1646         * resolv/herror.c (herror): Likewise.
1648         * malloc/hooks.c: Before using IO stream mark stream so it uses
1649         only non-cancelable interfaces.
1650         * malloc/malloc.c: Likewise.
1651         * posix/getopt.c: Likewise.
1654 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
1656         * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
1658 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
1660         * stdio-common/stdio_ext.h: Mark most functions with __THROW.
1662         * misc/err.h: Remove __THROW from all prototypes.
1664         * posix/getopt.h (__THROW): Define if not already defined.  Add
1665         __THROW to the getopt functions.
1667 2003-09-11  Ulrich Drepper  <drepper@redhat.com>
1669         * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
1670         (CFLAGS-fts.c): Likewise.
1671         * io/fcntl.h: Remove __THROW from lockf prototypes.
1672         * io/fts.h: Remove most __THROW.
1674 2003-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1676         * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
1677         (TLS_LD): Likewise.
1678         (TLS_GD): Likewise.
1680 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
1682         * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
1683         _IO_free_backup_area call.
1685 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
1687         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
1688         syscall invocation.
1689         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
1690         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
1691         Also, only assert off_t size is 4 for N32 and O32, and clean up
1692         white space.
1693         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
1695 2003-09-10  Roland McGrath  <roland@redhat.com>
1697         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
1698         Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
1699         Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
1700         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1701         Reported by Daniel Jacobowitz  <drow@mvista.com>.
1703 2003-09-10  Jakub Jelinek  <jakub@redhat.com>
1705         * string/Makefile (strop-tests): Add memccpy.
1706         * string/test-memccpy.c: New test.
1708 2003-09-09  Jakub Jelinek  <jakub@redhat.com>
1710         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
1711         siginfo_t * argument before, change into struct ucontext *.
1712         (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
1713         (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
1714         instead of structure.
1715         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
1716         Likewise.
1718 2003-09-09  Ulrich Drepper  <drepper@redhat.com>
1720         * string/stratcliff.c (main): Check memccpy.
1722 2003-04-11  Jes Sorensen  <jes@wildopensource.com>
1724         * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
1725         character is found during recovery, use correct register when
1726         determining the position of the found character.
1728 2003-04-01  Jes Sorensen  <jes@wildopensource.com>
1730         * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
1731         avoid segfaults when reading from unmapped pages. For aligned
1732         reload and continue, for misaligned, roll back and use byte copy.
1733         Save ar.ec on entry and restore on exit.
1735 2003-09-09  Chris Demetriou  <cgd@broadcom.com>
1737         * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
1739 2003-09-08  Chris Demetriou  <cgd@broadcom.com>
1741         * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
1742         the top of the list.
1743         * sysdeps/mips/mips64/n64/Implies: Likewise.
1745 2003-09-08  Roland McGrath  <roland@frob.com>
1747         * sysdeps/unix/sysv/linux/speed.c
1748         (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
1749         (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
1750         * sysdeps/unix/sysv/linux/bits/termios.h
1751         (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
1752         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1753         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1755 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
1757         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
1758         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
1760 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
1762         * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
1763         (__u_quad_t): Make unsigned long int if 64-bit.
1764         (__SQUAD_TYPE): Make long int if 64-bit.
1765         (__UQUAD_TYPE): Make unsigned long int if 64-bit.
1766         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
1768 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
1770         * Makefile (tests): Run check-c++-types.sh if possible.
1771         * scripts/check-c++-types.h: New file.
1772         * scripts/data/c++-types-i386-linux-gnu.data: New file.
1774 2003-09-08  Andreas Jaeger  <aj@suse.de>
1776         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1777         Use struct sigcontext.
1779         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1780         Use struct sigcontext.
1781         (GET_PC): Adopt.
1782         (GET_FRAME): Likewise.
1783         (GET_STACK): Likewise.
1785 2003-09-08  Wolfram Gloger  <wg@malloc.de>
1787         * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
1788         contiguous case.  Bug report from Prem Gopalan <prem@mazunetworks.com>.
1789         (mALLOPt): Avoid requirement of C99.
1791 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
1793         * libio/bug-ftell.c: Include <sys/types.h>.
1794         (main): Mark cp as const.
1796 2003-09-07  Jakub Jelinek  <jakub@redhat.com>
1798         * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
1799         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
1801 2003-09-05  Roland McGrath  <roland@redhat.com>
1803         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
1804         and c_ospeed fields.
1805         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
1806         (cfsetispeed): Set c_ispeed field.
1807         * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
1808         to match corresponding speed.c code.
1810 2003-09-06  Ulrich Drepper  <drepper@redhat.com>
1812         * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
1813         narrow character buffer.
1814         * libio/Makefile: Add rules to build and run bug-ftell.
1815         * libio/bug-ftell.c: New file.
1817         * stdio-common/vfprintf.c: Don't use the first grouping number twice.
1819         * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
1820         matching the decimal point and possibly leading the thousands
1821         separator.  This caused the recognition of thousands separators to
1822         always fail.
1824 2003-09-05  Ulrich Drepper  <drepper@redhat.com>
1826         * libio/fileops.c (_IO_new_file_overflow): Handle switching to
1827         write mode from read in backup buffer.
1828         * libio/Makefile (tests): Add bug-ungetc2.
1829         * libio/bug-ungetc2.c: New file.
1831 2003-09-05  Roland McGrath  <roland@redhat.com>
1833         * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
1835 2003-09-04  Roland McGrath  <roland@frob.com>
1837         * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
1838         EOPNOTSUPP, or ENOSYS, change it to ENODEV.
1840 2003-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1842         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
1843         Fix a typo.
1845 2003-09-05  Andreas Jaeger  <aj@suse.de>
1847         * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
1848         to make it conforming C.
1849         * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
1851         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
1852         prototype to use variable argument lists and get the possible one
1853         argument via va_arg.
1854         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
1855         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
1857 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
1859         * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
1861         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1862         Report correct value for vxfs.
1863         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
1865         * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
1866         data.
1868         * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
1869         over the place.  It would be allowed to have these functions as
1870         cancellation points but the cleanup would be ugly and a lot of
1871         work.
1873         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
1874         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
1876         * include/fcntl.h (__fcntl_nocancel): Declare.
1877         * sysdeps/unix/sysv/linux/fcntl.c: New file.
1878         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
1879         cancellation if absolutely needed.
1880         (__fcntl_nocancel): Define.
1882         * posix/unistd.h (gethostid): Remove __THROW.  Clarify comment.
1883         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
1884         -fexceptions.
1885         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
1886         extend_alloca.
1888         * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
1889         instead of __close.
1891         * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts.  Remove
1892         unnecessary errno handling.
1894         * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
1895         Initialize it in all cases.  Change it to be a bit more like the
1896         code we had before.
1898 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
1900         * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
1901         __builtin_expect.
1902         (_IO_file_open): Likewise.  Use close_not_cancel.
1904 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
1906         * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
1907         * libio/fileops.c [_LIBC]: Remove close macro.
1908         (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
1909         (_IO_new_file_open): Recognize 'c' flag in mode string.
1910         (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
1911         (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
1912         write_not_cancel.
1913         * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
1914         * inet/rcmd.c: Likewise.
1915         * inet/ruserpass.c: Likewise.
1916         * intl/localealias.c: Likewise.
1917         * malloc/mtrace.c: Likewise.
1918         * misc/getpass.c: Likewise.
1919         * misc/getttyent.c: Likewise.
1920         * misc/mntent_r.c: Likewise.
1921         * misc/getusershell.c: Likewise.
1922         * nss/nsswitch.c: Likewise.
1923         * resolv/res_hconf.c: Likewise.
1924         * resolv/res_init.c: Likewise.
1925         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1926         * time/getdate.c: Likewise.
1927         * time/tzfile.c: Likewise.
1928         * misc/fstab.h: Undo last change.
1929         * misc/mntent.h: Likewise.
1930         * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
1931         CFLAGS-fstab.c definition.
1933 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
1935         * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
1937 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
1939         * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
1940         returning ERANGE if this wasn't intended.
1942 2003-09-03  Jakub Jelinek  <jakub@redhat.com>
1944         * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
1945         function-like macros.
1947 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
1949         * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
1950         (CFLAGS-getgrent.c): Likewise.
1951         * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
1952         (CFLAGS-getpwent.c): Likewise.
1953         * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
1954         (CFLAGS-getspent.c): Likewise.
1956         * inet/Makefile: Add -fexceptions to CFLAGS for the various
1957         getXXent and getXXbyYY functions.
1959         * locale/loadlocale.c: Use not-cancelable variants of open, close,
1960         and read.
1962 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
1964         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1965         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
1966         rt_sigpending.
1967         * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
1968         New prototype.
1969         * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
1970         unused __syscall_ stubs.
1971         * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
1972         rt_*.
1973         * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
1974         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
1975         (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
1976         * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
1977         unused __syscall_ stubs.
1978         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
1979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
1980         (__syscall_*): Remove unused __syscall_ stubs.
1981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1982         (__syscall_*): Likewise.
1983         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
1984         rt_*.
1985         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
1986         Remove unused __syscall_ stubs.
1987         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
1988         * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
1989         * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
1990         * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
1991         * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
1992         * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
1993         * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
1994         * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
1995         * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
1996         * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
1997         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
1998         __syscall_* prototypes.
1999         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
2000         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
2001         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
2002         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
2003         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2004         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2005         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
2006         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2007         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2008         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
2009         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
2010         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2011         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
2012         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2013         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2014         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2015         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2016         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2017         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2018         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
2019         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2020         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
2021         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2022         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2023         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2024         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2025         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2026         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2027         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
2028         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2029         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2030         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2031         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2032         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2033         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2034         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2035         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2036         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
2037         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2038         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
2039         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
2040         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2041         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2042         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2043         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2044         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2045         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2046         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2047         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2048         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2049         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
2050         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2051         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2052         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2053         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2054         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
2055         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
2056         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2057         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2058         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
2059         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
2060         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
2061         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
2062         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2063         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2064         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2065         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2066         * sysdeps/unix/sysv/linux/execve.c: Likewise.
2067         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2068         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
2069         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
2070         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
2071         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2072         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2073         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
2074         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
2075         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2076         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2077         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2078         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2079         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
2080         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2081         * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
2082         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
2083         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2084         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2085         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
2086         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2087         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2088         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2089         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2090         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2091         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2092         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2093         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2094         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2095         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2096         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2097         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2098         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2099         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2100         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2102 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
2104         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
2105         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
2106         * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
2108 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
2110         * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
2112         * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
2113         open, close, and read.
2115         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
2116         *_nocancel name.
2118         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
2120         * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
2121         * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
2122         * libio/oldtmpfile.c (__old_tmpfile): Likewise.
2124         * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
2126         * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
2127         (CFLAGS-fstatfs.c): Likewise.
2128         (CFLAGS-statvfs.c): Likewise.
2129         (CFLAGS-fstatvfs.c): Likewise.
2131 2003-09-01  Ulrich Drepper  <drepper@redhat.com>
2133         * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
2134         * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
2135         sysconf.
2136         * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
2137         (CFLAGS-pathconf.c): Likewise.
2138         (CFLAGS-fpathconf.c): Likewise.
2140         * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
2141         * misc/fstab.h: Remove all __THROW.
2142         * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
2143         (CFLAGS-mntent_r.c): Likewise.
2144         * misc/mntent.h: Remove most __THROW.
2146         * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
2147         (CFLAGS-mkstemp64.c): Likewise.
2149         * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
2150         around call to exec_comm.
2151         * posix/wordexp.h: Remove __THROW from wordexp.
2152         * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
2154         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
2155         not-cancelable functions.
2157         * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
2158         (CFLAGS-iofopen.c): Likewise.
2159         (CFLAGS-iofopen64.c): Likewise.
2161         * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
2162         functions.
2163         * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
2164         * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
2166         * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
2167         * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
2169 2003-09-01  Thorsten Kukuk  <kukuk@suse.de>
2171         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
2172         NSS_STATUS_SUCCESS if entry was found.
2173         (getspent_next_file): Store user in blacklist after entry
2174         was found, use innetgr.
2176 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
2178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
2179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
2181         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
2182         computation for TCB_AT_TP.  Support l_firstbyte_offset != 0 for
2183         DTV_AT_TP, optimize.
2185 2003-08-31  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2187         * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
2188         posix_fallocate64 at GLIBC_2.3.3.
2189         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
2190         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
2192 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2194         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
2195         functions.
2197 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
2199         * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
2200         Code by Richard Henderson.
2202 2003-08-31  Philip Blundell  <philb@gnu.org>
2204         * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
2205         posix_fallocate64 at GLIBC_2.3.3.
2207 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
2209         * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
2210         * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
2212 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
2214         * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
2215         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
2216         included multiple times.
2217         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
2218         ptid, tls, ctid arguments to the kernel.
2219         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2220         Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
2221         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2222         (__libc_sigaction): Use INLINE_SYSCALL instead of
2223         __syscall_rt_sigaction.
2224         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
2225         (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
2226         __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
2227         __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
2228         __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
2229         __syscall_rt_sigpending, __syscall_rt_sigprocmask,
2230         __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
2231         __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
2232         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
2233         Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
2234         rt_sigqueueinfo, rt_sigaction and rt_sigpending.
2235         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2236         (__CLONE_SYSCALL_STRING): Define.
2237         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
2238         CFI directives.
2239         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2240         (__CLONE_SYSCALL_STRING): Define.
2241         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
2242         Define.
2243         * sysdeps/unix/sysv/linux/sparc/system.c: New file.
2245 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
2247         * sunrpc/rpc/clnt.h: Remove a few __THROW.
2248         * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
2249         (CFLAGS-key_call.c): Likewise.
2250         (CFLAGS-pmap_rmt.c): Likewise.
2251         (CFLAGS-clnt_perr.c): Likewise.
2252         * sunrpc/rpc/auth.h: Remove serveral __THROW.
2254         * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
2255         (CFLAGS-gethstbynm_r.c): Likewise.
2256         (CFLAGS-gethstbynm2_r.c): Likewise.
2257         (CFLAGS-rcmd.c): Likewise.
2258         * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
2260         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
2261         (CFLAGS-argp-fmtstream.c): Likewise.
2262         * argp/argp.h: Remove a number of __THROW.
2264         * misc/sys/syslog.h (vsyslog): Remove __THROW.
2266         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
2267         * misc/getpass.c (getpass): Add cleanup handler to ensure the
2268         stream is closed even if the thread is canceled.
2269         (call_fclose): New function.
2270         * posix/unistd.h: Remove __THROW from getpass prototype.
2272         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
2274         * signal/signal.h (psignal): Remove __THROW.
2275         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
2277         * misc/Makefile (CFLAGS-error.c): Define.
2278         * misc/error.c (error): Disable cancellation handling around the
2279         actual output.  The message should in any case be printed.
2280         (error_at_line): Likewise.
2282         * misc/error.h: Protect parameter names with leading __.
2284 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
2286         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
2288 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
2290         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
2291         end.
2293 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
2295         * libio/stdio.h: Remove a few more __THROW.
2297 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
2299         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
2300         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
2301         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
2302         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
2303         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
2304         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
2305         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
2306         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
2307         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
2308         putwchar.c and rewind.c with exceptions.
2309         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
2310         _IO_release_lock): Define.
2311         * libio/fileops.c (_IO_new_file_underflow): Use it.
2312         * libio/fputc.c (fputc): Likewise.
2313         * libio/fputwc.c (fputwc): Likewise.
2314         * libio/freopen64.c (freopen64):
2315         * libio/freopen.c (freopen): Likewise.
2316         * libio/fseek.c (fseek): Likewise.
2317         * libio/fseeko64.c (fseeko64): Likewise.
2318         * libio/fseeko.c (fseeko): Likewise.
2319         * libio/ftello64.c (ftello64): Likewise.
2320         * libio/ftello.c (ftello): Likewise.
2321         * libio/fwide.c (fwide): Likewise.
2322         * libio/getc.c (_IO_getc): Likewise.
2323         * libio/getchar.c (getchar): Likewise.
2324         * libio/getwc.c (_IO_getwc): Likewise.
2325         * libio/getwchar.c (getwchar): Likewise.
2326         * libio/iofclose.c (_IO_new_fclose):
2327         * libio/iofflush.c (_IO_fflush): Likewise.
2328         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
2329         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2330         * libio/iofgets.c (_IO_fgets): Likewise.
2331         * libio/iofgetws.c (fgetws): Likewise.
2332         * libio/iofputs.c (_IO_fputs): Likewise.
2333         * libio/iofputws.c (fputws): Likewise.
2334         * libio/iofread.c (_IO_fread): Likewise.
2335         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
2336         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
2337         * libio/ioftell.c (_IO_ftell): Likewise.
2338         * libio/iofwrite.c (_IO_fwrite): Likewise.
2339         * libio/iogetdelim.c (_IO_getdelim): Likewise.
2340         * libio/iogets.c (_IO_gets): Likewise.
2341         * libio/ioputs.c (_IO_puts): Likewise.
2342         * libio/ioseekoff.c (_IO_seekoff): Likewise.
2343         * libio/ioseekpos.c (_IO_seekpos): Likewise.
2344         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
2345         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
2346         * libio/ioungetc.c (_IO_ungetc): Likewise.
2347         * libio/ioungetwc.c (ungetwc): Likewise.
2348         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2349         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
2350         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
2351         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
2352         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
2353         * libio/peekc.c (_IO_peekc_locked): Likewise.
2354         * libio/putc.c (_IO_putc): Likewise.
2355         * libio/putchar.c (putchar): Likewise.
2356         * libio/putwc.c (putwc): Likewise.
2357         * libio/putwchar.c (putwchar): Likewise.
2358         * libio/rewind.c (rewind): Likewise.
2359         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
2361 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
2363         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
2364         available in XPG4.2.
2366 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
2367             Jakub Jelinek  <jakub@redhat.com>
2369         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
2370         big endian arches.  Don't read beyond end of fds_bits array.
2372 2003-04-27  Bruno Haible  <bruno@clisp.org>
2374         * manual/message.texi (Advanced gettext functions): Add information
2375         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
2376         Add section about Lithuanian, reported by Ricardas Cepas
2377         <rch@richard.eu.org>.
2378         Add information about Croatian.
2379         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
2380         Remove remark about continuation lines that is not true for PO files.
2381         Fix formula for Slovenian, reported by Roman Maurer
2382         <roman.maurer@amis.net>.
2384 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
2386         * math/math_private.h: Declare __copysignf.
2387         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
2388         copysignf.
2390         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
2391         __signbit, and __signbitl inline functions.
2393         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
2394         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
2396         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
2397         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
2399 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
2401         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
2403 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
2405         * include/stdio.h: Add declarations for __builtin_fwrite and
2406         __builtin_fwrite_unlocked.
2408 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
2410         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
2411         fits into allocation.  Add padding on 32-bit arches so that
2412         dirp->data is enough aligned for struct dirent64.
2413         Avoid clearing of the buffer, just clear DIR structure.
2415 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
2417         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
2418         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
2420 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
2422         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
2424 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
2426         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
2427         to match format string.
2428         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
2429         __old_buf.
2430         (__new_semctl): Shut up warning.
2431         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
2432         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
2434 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
2436         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
2437         link file use the real file name, not the resolved name we got by
2438         following the symlinks.
2440 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
2442         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
2443         if the object size is large enough.
2445 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
2447         * elf/ldconfig.c (search_dir): Treat symlink as regular file
2448         if it won't point to itself unless it is .so symlink for the linker.
2450 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
2452         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
2453         use _mode if _IO_fwide_maybe_incompatible.
2454         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
2455         the compatibility test.
2457 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
2459         * elf/cache.c (save_cache): Don't write beyond end of file_entries
2460         buffer.
2461         Duplicate last old cache entry if the count would be odd.
2463 2003-08-25  Andreas Jaeger  <aj@suse.de>
2465         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
2466         __LONG_LONG_PAIR to long.
2468 2003-08-25  Philip Blundell  <philb@gnu.org>
2470         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
2471         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
2473 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
2475         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
2476         and use __libc_cleanup_region_end instead.
2478 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
2480         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
2482 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
2484         * io/fcntl.h (posix_fallocate): Change type of third parameter to
2485         off_t.
2486         (posix_fallocate64): Change type of third parameter to off64_t.
2487         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
2488         * sysdeps/posix/posix_fallocate.c: Likewise.
2489         * sysdeps/generic/posix_fallocate64.c: Likewise.
2490         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
2491         code for 32-bit platforms.
2492         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
2493         posix_fallocate64.
2494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
2495         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2496         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2498 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
2500         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
2501         the type, not to name.
2503         * stdio-common/test-vfprintf.c (main): Don't write temporary file
2504         into source directory.
2506         * malloc/malloc.c (_int_free): Add cheap test for some invalid
2507         block sizes.
2509         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
2510         syscall name.
2512 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
2514         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
2515         into EINVAL.
2517 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2519         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
2520         (elf_machine_lazy_rel): Likewise.
2522 2003-08-18  Art Haas  <ahaas@airmail.net>
2524         * malloc/malloc.h: Remove unneeded ';' where closing the C++
2525         extern block.
2527 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
2529         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
2530         loading big binaries where @gprel(sym) cannot be handled in 'add'
2531         but instead has to be used with 'movl'.
2533 2003-08-17  Juergen Kreileder <jk@blackdown.de>
2534             Andreas Jaeger  <aj@suse.de>
2536         * sysdeps/x86_64/bits/byteswap.h: New file.
2538 2003-08-17  Andreas Jaeger  <aj@suse.de>
2540         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
2542 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
2544         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
2545         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2546         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
2547         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2548         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
2549         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2550         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
2551         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2552         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
2553         ret_ERRVAL): Define.
2554         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
2555         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2556         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
2557         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2558         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
2559         Define.
2560         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
2561         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2562         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
2564         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
2565         posix_fadvise64_64): Remove.
2566         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
2567         V flag.
2568         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
2569         Likewise.
2570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
2571         (posix_fadvise64): Likewise.
2572         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
2573         (posix_fadvise64): Likewise.
2574         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2575         (posix_fadvise64): Likewise.
2576         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
2577         Likewise.
2578         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
2579         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
2580         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
2581         (__posix_fadvise64_l32): New function.
2582         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
2583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
2584         posix_fadvise64@@GLIBC_2.3.3.
2585         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2586         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2587         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
2588         error value.
2589         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
2591         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2592         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
2594 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
2596         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
2597         (elf_machine_matches_host): Remove weak extern stuff.
2598         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
2599         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
2600         stuff.  Use GL(dl_hwcap) unconditionally.
2602 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
2604         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
2605         __libc_start_main branch.
2607 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
2608             Andreas Jaeger  <aj@suse.de>
2610         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
2611         instead of setting errno.
2612         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2614 2003-08-16  Andreas Jaeger  <aj@suse.de>
2616         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
2617         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2619 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
2621         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
2622         off_t.
2623         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
2624         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
2625         description indicating the error value is returned, not -1.
2626         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
2627         __ASSUME_FADVISE64_64_SYSCALL.
2628         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
2629         posix_madvise in one file.  Have posix_madvise defined with error
2630         value returned.
2631         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
2632         entry.
2633         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
2634         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
2635         PSEUDO_END_ERRVAL, and ret_ERRVAL.
2636         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2637         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2638         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
2639         posix_fadvise64.
2641         * posix/Makefile (routines): Add posix_madvise.
2642         * sysdeps/generic/madvise.c: Don't define posix_madvise.
2643         * sysdeps/generic/posix_madvise.c: New file.
2644         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
2645         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
2646         Add posix_fadvise64_64.
2648 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
2650         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
2651         3.0, not for !gcc or gcc < 3.0.
2653 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
2655         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
2656         Address passed to test_in_mod1 and test_in_mod2 without casting.
2657         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
2658         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
2659         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
2660         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
2662 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
2664         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
2665         Change quotes before using [].
2667         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
2669         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
2670         Renamed to...
2671         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
2672         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
2673         argument.  Select one of 64 locks from address bits.
2674         (atomic_compare_and_exchange_val_acq,
2675         atomic_compare_and_exchange_bool_acq): Pass memory address to
2676         __sparc32_atomic_do_{,un}lock.
2678 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
2680         * assert/assert.h (assert): Use !! in front of expression to allow
2681         use of pointers.
2683         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
2684         Changed conversion of JIS X 0201 from using a table to calculating.
2685         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
2686         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
2687         EUC-JP-MS.
2688         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
2689         * iconvdata/CP932.irreversible: New file.
2690         * iconvdata/EUC-JP-MS.irreversible: New file.
2691         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
2693 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
2695         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
2697         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
2698         text processing tools.
2700         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
2701         element unless BROKEN_THREAD_SIGNALS is defined.
2702         (struct requestlist): Likewise.
2703         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
2704         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
2705         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
2706         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
2707         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
2708         Pass current PID to __aio_sigqueue.
2709         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
2710         call.  Don't initialize caller_pid field of waitlist element.
2712 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
2714         * libio/libioP.h (_IO_vtable_offset): Define.
2715         * libio/freopen.c (freopen): Use it.
2716         * libio/ioputs.c (_IO_puts): Likewise.
2717         * libio/freopen64.c (freopen64): Likewise.
2718         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
2719         Likewise.
2720         * libio/iofclose.c (_IO_new_fclose): Likewise.
2721         * libio/iofputs.c (_IO_fputs): Likewise.
2722         * libio/ioftell.c (_IO_ftell): Likewise.
2723         * libio/iofwrite.c (_IO_fwrite): Likewise.
2724         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
2725         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
2726         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
2727         * stdio-common/vfscanf.c (ORIENT): Likewise.
2729 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
2731         * assert/assert.h: Use __builtin_expect in assert and
2732         assert_perror definitions if possible.
2734 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
2736         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
2737         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
2738         * elf/rtld.c (rtld_lock_default_lock_recursive,
2739         rtld_lock_default_unlock_recursive): New functions.
2740         (dl_main): Initialize _dl_rtld_lock_recursive and
2741         _dl_rtld_unlock_recursive.
2743 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
2745         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
2746         config_file directories instead of prepending.
2748 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
2750         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2751         __ASSUME_CLONE_STOPPED.
2753 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
2755         * sysdeps/generic/bits/libc-lock.h
2756         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
2758 2003-08-01  Roland McGrath  <roland@frob.com>
2760         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
2762 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
2764         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
2765         instead of __SWORD_TYPE.
2766         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
2767         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
2768         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
2769         Define.
2770         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
2771         Define.
2772         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
2773         Define.
2774         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
2776         * dlfcn/dlerror.c (once): New.
2777         (dlerror): Call __libc_once.
2778         (_dlerror_run): Remove once.
2780         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2781         Sync with 2.5.7 and 2.5.73 kernel changes.
2783         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
2784         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
2785         formats to size_t.
2786         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
2787         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
2788         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
2789         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
2790         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
2791         difference argument.
2792         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
2793         format to wint_t.
2794         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
2795         %d format and cast expected value to int.
2796         * sysdeps/generic/libc-start.c (STATIC): Add
2797         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
2798         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
2799         to ieee_float_shape_type.
2800         (__sqrt): Avoid type punning.
2801         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
2802         to ieee_float_shape_type.
2803         (__sqrtf): Avoid type punning.
2804         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
2805         refsym if in dl-conflict.c.
2806         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2807         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
2808         (__new_semctl): Shut up warning.
2809         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
2810         (__new_semctl): Shut up warning.
2811         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
2812         Change old into union of __old_shmid_ds and __old_shminfo structs.
2813         Adjust all users.
2814         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
2816         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
2817         modtime computation.
2818         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
2819         * sysdeps/posix/utimes.c (__utimes): Likewise.
2821 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
2823         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
2824         call dl_signal_error directly.  If already relocated, call
2825         GL(dl_init_static_tls) directly, otherwise queue it for later.
2826         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
2827         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
2828         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
2829         for all static TLS initializations delayed in _dl_allocate_static_tls.
2830         * elf/dl-support.c (_dl_init_static_tls): New variable.
2831         * include/link.h (struct link_map): Add l_need_tls_init.
2832         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
2833         (_dl_nothread_init_static_tls): New prototype.
2834         (_dl_allocate_static_tls): Adjust prototype.
2836         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
2838 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
2840         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
2841         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
2842         reloc_addr is aligned.
2843         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
2844         elf_machine_rela_relative): Adjust.
2845         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
2846         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
2847         * sysdeps/cris/dl-machine.h (elf_machine_rela,
2848         elf_machine_rela_relative): Adjust.
2849         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
2850         elf_machine_rela_relative): Adjust.
2851         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
2852         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
2853         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
2854         elf_machine_rela_relative): Adjust.
2855         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
2856         elf_machine_rela_relative): Adjust.
2857         * sysdeps/mips/dl-machine.h (elf_machine_rela,
2858         elf_machine_rela_relative): Adjust.
2859         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
2860         elf_machine_rela_relative): Adjust.
2861         * sysdeps/powerpc/powerpc64/dl-machine.h
2862         (elf_machine_rela_relative, elf_machine_rela): Adjust.
2863         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
2864         elf_machine_rela_relative): Adjust.
2865         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
2866         elf_machine_rela_relative): Adjust.
2867         * sysdeps/sh/dl-machine.h (elf_machine_rela,
2868         elf_machine_rela_relative): Adjust.
2869         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
2870         elf_machine_rela_relative): Adjust.
2871         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
2872         elf_machine_rela_relative): Adjust.
2873         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
2874         elf_machine_rela_relative): Adjust.
2876 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
2878         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
2879         alignment of TCB used before the last change so that it matches
2880         ld's output for IE code.
2882 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
2884         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
2885         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
2886         break strict-aliasing rules" warnings.
2888 2003-07-29  Roland McGrath  <roland@redhat.com>
2890         * elf/Makefile: Revert accidental changes in last commit.
2891         * elf/dl-support.c: Likewise.
2893         * rt/tst-timer2.c: New file.
2894         * rt/Makefile (tests): Add it.
2896 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
2898         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
2900 2003-07-29  Roland McGrath  <roland@redhat.com>
2902         * elf/Makefile (tests) [$(build-shared) = yes]:
2903         Depend on $(test-modules).
2904         * dlfcn/Makefile: Likewise.
2906 2003-07-28  Roland McGrath  <roland@redhat.com>
2908         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
2909         Use that instead of `typedef' when using __*_TYPE macros in rhs.
2911         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
2912         * elf/tst-tlsmod14a.c: Likewise.
2914         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
2915         before <linux/sysctl.h>.
2917 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
2919         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
2920         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
2921         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
2922         * sysdeps/unix/syscalls.list: umask syscall never fails.
2924 2003-07-27  Andreas Jaeger  <aj@suse.de>
2926         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
2928 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
2930         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
2931         Include bits/a.out.h.
2932         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2933         bits/a.out.h.
2934         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
2935         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
2936         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
2937         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
2938         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
2939         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
2940         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
2941         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
2943 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
2945         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
2946         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
2947         aiocbp->aio_fildes does not match fildes.
2949 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
2951         * timezone/zic.c (rpytime): Replace cheap overflow check with a
2952         functioning one.
2954         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
2955         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
2956         Fix calculation of offsets to take misalignment of first byte in
2957         file into account.
2958         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
2959         l_tls_firstbyte_offset field.
2960         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
2961         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
2962         Take l_tls_firstbyte_offset information into account.
2963         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
2964         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
2965         * elf/Makefile: Add rules to build and run tst-tls14.
2966         * elf/tst-tls14.c: New file.
2967         * elf/tst-tlsmod14a.c: New file.
2968         * elf/tst-tlsmod14b.c: New file.
2970 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
2972         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
2973         (lio_listio): Use it.
2974         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
2975         after few defines to avoid duplication.
2977 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
2979         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
2980         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
2981         Likewise.
2982         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
2983         Add libc_hidden_def.
2984         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
2985         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2986         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
2987         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
2988         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
2989         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
2990         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
2991         change.
2992         * sysdeps/generic/unwind.inc: Removed.
2994         * include/resolv.h (__resp): Declare.  Define to __libc_resp
2995         if in libc.so.
2996         (_res): If USE___THREAD, define to (*__resp).
2997         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
2998         even if USE___THREAD.
2999         (__resp): New __thread variable.
3000         (__libc_resp): New alias.
3001         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
3002         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
3003         * sysdeps/generic/res-state.c (__res_state): Return __resp
3004         if USE___THREAD.
3006 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
3008         * elf/dl-support.c (_dl_hwcap): New variable.
3009         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
3011         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
3012         and <dl-procinfo.h>.
3013         (__feclearexcept): Clear MXCSR if needed.
3014         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
3016         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
3017         that newer hardware needs more than these macros.
3019         * sysdeps/i386/setfpucw.c: New file.
3021 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
3023         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
3024         * elf/ldconfig.c: Include dl-procinfo.c.
3025         (PROCINFO_CLASS): Define.
3026         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
3027         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
3028         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
3029         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
3030         Define if not yet defined.  Use it instead of EXTERN.  Undefine
3031         at the end of the file.
3032         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
3033         Likewise.
3034         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
3035         (PROCINFO_CLASS): Likewise.
3036         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
3037         (PROCINFO_CLASS): Likewise.
3039 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
3041         * elf/ldconfig.c (main): Issue a fatal error if relative path
3042         is used to build cache.
3044 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
3046         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
3048 2003-07-21  Art Haas  <ahaas@airmail.net>
3050         * manual/charset.texi (Converting a Character): Fix example code so a
3051         valid pointer is returned.
3053 2003-07-22  Andreas Jaeger  <aj@suse.de>
3055         * elf/readlib.c (process_file): Check that file is a shared
3056         object.
3058         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
3059         will not optimize it away.
3060         (__DTOR_END__): Likewise.
3061         (__CTOR_END__): Likewise.
3063         * include/libc-symbols.h (_elf_set_element): Use attribute used so
3064         that gcc will not optimize it away.
3065         (link_warning): Likewise.
3067 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
3069         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
3070         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
3071         * wcsmbs/tst-wcpncpy.c: New file.
3073 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
3075         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
3077         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
3078         stmxcsr and ldmxcsr.
3080         * Makerules (build-module-helper): Add -z defs unless explicitly said
3081         not to do it.
3082         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
3083         which has undefined symbols.
3084         * elf/Makefile: Likewise.
3086         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
3087         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3088         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3089         * sysdeps/i386/fpu/fesetround.c: Likewise.
3090         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
3092 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
3094         * elf/ldconfig.c (search_dir): Treat symlink as regular file
3095         if it won't point to itself.
3097 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
3099         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
3101 2003-07-20  Andreas Jaeger  <aj@suse.de>
3103         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
3104         STANDARD_TO_LOOP_ERR_HANDLER.
3105         * iconvdata/euc-jp-ms.c (BODY): Likewise.
3107 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
3109         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
3111         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
3113 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
3114             Andreas Jaeger  <aj@suse.de>
3116         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
3117         256K, remove unneeded declaration of __getpagesize.
3119 2003-07-16  Andreas Schwab  <schwab@suse.de>
3121         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
3123 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
3125         * io/test-utime.c (main): Make test yet more robust.
3127 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
3129         More cancellation handling fixups.
3130         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
3131         * sysdeps/generic/not-cancel.h: Likewise.
3132         * catgets/open_catalog.c: Use not-cancelable syscalls.
3133         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
3134         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
3135         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
3136         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
3137         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
3138         * libio/fileops.c: Use not-cancelable syscalls for fclose.
3139         * libio/iopopen.c: Use no-cancelable syscalls.
3140         * libio/stdio.h: Mark popen and pclose with __THROW again.
3141         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
3142         * misc/syslog.c: Fix locking and cancellation cleanup handling.
3143         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
3144         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
3145         CFLAGS-tempname.c): Add -fexceptions.
3146         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3147         * string/string.h: Mark strerror and strerror_r with _THROW again.
3148         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
3149         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
3150         #ifs since we now need all the code compiled.
3151         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
3152         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
3153         * sysdeps/unix/opendir.c: Likewise.
3155         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
3156         Add rule for EUC-JP-MS dependency.
3157         * iconvdata/cp932.c: New file.
3158         * iconvdata/eucjp-ms.c: New file.
3159         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
3160         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3162 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
3164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
3165         cfi directives.
3167 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3169         * sysdeps/unix/sysv/linux/kernel-features.h
3170         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
3171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
3173         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
3175 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
3177         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3178         __ASSUME_TGKILL for Alpha appropriately.
3180 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
3182         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
3183         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
3184         Likewise.
3185         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
3186         Likewise.
3188         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3189         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
3191         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
3192         second parameter == NULL.
3193         * sysdeps/unix/sysv/linux/utimes.c: New file.
3195 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
3197         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
3198         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
3199         a typo.
3201 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
3203         * time/sys/time.h: Namespace cleanup.
3204         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3205         __ASSUME_UTIMES for the architectures which always had the syscall.
3206         * sysdeps/unix/sysv/linux/futimes.c: New file.
3208 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3210         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
3211         register across CENABLE and CDISABLE.
3213 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
3215         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
3216         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3217         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3218         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
3219         int before assigning to max to avoid warnings.
3221 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
3223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
3224         cfi directives.
3225         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
3226         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
3228 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
3230         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
3231         .data.rel.ro.local to "aw".
3233 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
3235         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
3236         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
3237         (PIC-ccflag): Define.
3239 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
3241         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
3242         if PIC.
3243         * sysdeps/s390/s390-64/elf/start.S: Likewise.
3245 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
3247         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
3248         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
3250 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
3252         * sysdeps/unix/sysv/linux/kernel-features.h: Version
3253         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
3255         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
3256         compilation with HAVE_AUX_SECURE defined.
3258 2003-07-05  Richard Henderson  <rth@redhat.com>
3260         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
3262 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
3264         * configure.in: Also check for .cfi_rel_offset pseudo-op.
3266 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
3268         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
3269         typo.
3271 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
3273         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
3274         Define.
3275         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
3277 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
3279         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
3280         decl and use with #ifdef NEED_DL_SYSINFO.
3282 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
3284         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
3285         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
3286         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3287         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
3288         vsyscall DSO was added.
3290         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
3291         depending on selected standard.
3292         (NGROUPS_MAX): Define to 8 if not defined.
3294 2003-07-02  Andreas Jaeger  <aj@suse.de>
3296         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
3298 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3300         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
3301         * malloc/thread-m.h: Include <atomic.h>.
3302         (atomic_full_barrier): Provide default.
3303         (atomic_read_barrier): Likewise.
3304         (atomic_write_barrier): Likewise.
3305         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
3307 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
3309         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
3311 2003-06-30  Richard Henderson  <rth@redhat.com>
3313         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
3314         Invert the sense of the return value.
3315         (__arch_exchange_16_int): Fix paste-o.
3316         (__arch_exchange_{32,64}_int): Fix think-o.
3318         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
3320 2003-06-30  Richard Henderson  <rth@redhat.com>
3322         * include/sys/resource.h (__getrusage): Mark hidden.
3323         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
3324         * include/sys/wait.h (__wait4): Likewise.
3326 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
3328         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
3329         case.
3330         (xstat_conv): Rename to __xstat_conv and remove static inline.
3331         (xstat64_conv): Likewise.
3333 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
3335         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
3336         values which cannot be handled in one nanosleep call.
3338 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
3340         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
3341         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
3343         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
3345 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
3347         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
3348         fix typo.
3350 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
3352         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
3353         Conditionalize function definitions that use struct kernel_stat.
3354         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
3355         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
3356         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
3358 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
3360         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
3361         implementation.
3363 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
3365         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
3366         (getgrent_next_file): Don't store group name to early in blacklist.
3368         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
3369         and use memcpy instead of strcpy.
3371 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
3373         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
3374         stream unlocked.
3375         * nis/nss_compat/compat-initgroups.c: Likewise.
3376         * nis/nss_compat/compat-pwd.c: Likewise.
3377         * nis/nss_compat/compat-spwd.c: Likewise.
3379 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
3381         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
3382         functions, dlopen corresponding NSS module instead.
3384 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
3386         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
3387         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3388         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3389         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3391 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
3393         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
3395 2003-06-26  Roland McGrath  <roland@frob.com>
3397         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
3398         * sysdeps/mach/configure: Regenerated.
3399         * sysdeps/mach/hurd/times.c (times_init): Function removed.
3400         (__times): Assume `creation_time' field is available.
3401         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
3402         Don't append set-init.
3403         * sysdeps/mach/hurd/set-init.c: File removed.
3405 2003-06-26  Roland McGrath  <roland@redhat.com>
3407         * elf/elf.h (AT_SECURE): New macro.
3408         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
3409         set __libc_enable_secure.
3410         (_dl_show_auxv): Add AT_SECURE to name table.
3411         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
3412         __libc_enable_secure and __libc_enable_secure_decided.
3413         * sysdeps/unix/sysv/linux/ldsodefs.h
3414         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
3415         * sysdeps/unix/sysv/linux/kernel-features.h
3416         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
3418 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
3420         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
3421         boundary test to take rounding of nanoseconds into account.
3423         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
3424         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3425         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
3426         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3427         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3428         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3429         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3431 2003-06-26  Andreas Schwab  <schwab@suse.de>
3433         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
3434         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
3435         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
3437 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
3439         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
3440         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
3441         dlopen corresponding NSS module instead.
3442         * nis/nss_compat/compat-pwd.c: Likewise.
3443         * nis/nss_compat/compat-spwd.c: Likewise.
3444         * nis/nss_compat/compat-initgroups.c: Disabled for now.
3445         * nss/Versions: Export __nss_lookup_function.
3447 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3449         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
3450         for the SH architecture.
3452 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
3454         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
3456 2003-06-25  Andreas Jaeger  <aj@suse.de>
3458         * stdlib/tst-strtod.c (main): Declare constant long double as
3459         suggested by Jakub Jelinek and Andreas Schwab.
3461         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
3462         declaration.
3464         * stdio-common/tst-fphex.c: Fix format string.
3466         * posix/transbug.c: Include <string.h> for memset and strlen
3467         declarations.
3469         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
3471         * stdlib/tst-strtod.c (main): Pass long double value.
3473         * test-skeleton.c: Include <time.h> for nanosleep declaration.
3475 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
3477         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
3478         defined.
3480 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
3482         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
3483         * elf/dl-libc.c (struct dl_open_hook): New.
3484         (_dl_open_hook): New variable.
3485         (do_dlsym_private): New function.
3486         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
3487         and initialize it if found.
3488         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
3489         call dlopen_mode hook.
3490         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
3491         call dlsym hook.
3492         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
3493         call dlclose hook.
3495 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
3497         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
3498         result to long int so that extensions to long long int work.
3499         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
3501 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
3503         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
3504         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
3505         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
3506         dl-cache.h.
3507         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
3508         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
3509         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
3510         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
3512 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
3514         * test-skeleton.c (timeout_handler): If waitpid returned 0,
3515         retry once after a second.  If killed == 0, assume
3516         WTERMSIG (status) == SIGKILL.
3518 2003-06-18  Roland McGrath  <roland@redhat.com>
3520         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
3521         elements in the table instead of printing an empty name string.
3523 2003-06-05  Roland McGrath  <roland@redhat.com>
3525         * elf/elf.h (PT_GNU_STACK): New macro.
3527 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
3529         * include/time.h: Define CLOCK_IDFIELD_SIZE.
3530         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
3531         * sysdeps/unix/clock_gettime.c: Likewise.
3532         * sysdeps/unix/clock_settime.c: Likewise.
3533         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
3534         clock id for thread CPU clocks.
3536         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
3537         for the fstatfs64 syscall.
3538         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
3539         the statfs64 syscall.
3541         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3542         __ASSUME_STATFS64 appropriately.
3544         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
3545         from statfs structure if it has been filled in.
3547         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
3548         field.
3549         (struct statfs64): Likewise.
3550         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
3551         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
3553 2003-06-24  Richard Henderson  <rth@redhat.com>
3555         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
3556         the 64-bit syscall name.
3558         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
3560         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
3561         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
3563         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
3564         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
3565         libc_hidden_def.
3566         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3567         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
3568         on them.
3570         * sysdeps/alpha/bits/atomic.h: New file.
3572 2003-06-24  Andreas Schwab  <schwab@suse.de>
3574         * sysdeps/m68k/fpu/libm-test-ulps: Update.
3576 2003-06-24  Andreas Jaeger  <aj@suse.de>
3578         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
3579         redeclaration with 32-bit code.
3581 2003-05-19  Ed Connell  <ed.connell@sas.com>
3583         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
3584         floating point mask.
3585         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
3587 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
3589         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
3590         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
3591         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
3593         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
3594         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
3595         instead of __libc_cleanup_region_*.
3597 2003-06-20  Richard Henderson  <rth@redhat.com>
3599         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
3600         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
3602 2003-06-20  Richard Henderson  <rth@redhat.com>
3604         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
3605         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
3606         Unset for alpha.
3607         (__ASSUME_TIMEVAL64): Set for alpha.
3608         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3609         adjtimex, osf_sigprocmask, old_adjtimex.
3610         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
3611         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
3612         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
3613         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
3614         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3615         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3616         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
3617         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
3618         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
3619         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
3620         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
3621         PIC code sequence.
3622         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3623         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
3624         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
3625         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
3626         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3627         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
3628         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
3629         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
3630         defer to __syscall_name; error for rt_sigaction.
3631         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
3633 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
3635         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
3636         hasn't happened yet.
3638         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3639         Fix completely broken implementation.  The second parameter is of
3640         type struct ucontext*.
3642         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
3643         inline.
3645         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
3646         * sysdeps/generic/dl-hash.h: Likewise.
3648         * sysdeps/generic/memcmp.c: Remove inline from
3649         memcmp_common_alignment and memcmp_not_common_alignment definition.
3651         * intl/localealias.c (read_alias_file): Determine whether line is
3652         read incompletely early, before we modify the line.
3654 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
3656         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
3657         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
3659 2003-06-17  Paul Mackerras  <paulus@samba.org>
3661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
3662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
3663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
3664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
3665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
3666         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
3668 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
3670         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
3672 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
3674         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
3675         takes care of enabling cancellation.
3677         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
3678         cancelable.  It's not correct to disable cancellation.  Instead of
3679         a cleanup handler.
3681         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
3682         and part of the incoming set, create a temporary set without this
3683         signal.
3684         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3685         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3687         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
3688         returning because seconds==0.  Add __builtin_expect.
3690 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
3692         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
3694         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
3695         variable.
3697 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
3699         * include/libc-symbols.h: Add static_link_warning macro.
3700         * grp/initgroups.c: Print linker warning if this function
3701         is called in a static linked binary.
3702         * nss/getXXbyYY.c: Likewise.
3703         * nss/getXXbyYY_r.c: Likewise.
3704         * nss/getXXent.c: Likewise.
3705         * nss/getXXent_r.c: Likewise.
3706         * sysdeps/posix/getaddrinfo.c: Likewise.
3708 2003-06-16  Bruno Haible  <bruno@clisp.org>
3710         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
3711         LATIN-9.
3712         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
3713         (IBM1047): Add alias IBM-1047.
3714         (GBK): Add aliases MS936, WINDOWS-936.
3716 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
3718         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
3719         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
3720         (__xstat64_conv): Change xstat_conv to __xstat_conv.
3722 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
3724         * locale/iso-639.def: Update from current official ISO 639.
3726         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
3728 2003-06-15  Andreas Jaeger  <aj@suse.de>
3730         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
3731         of MXCSR.
3732         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3733         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
3734         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
3736         * math/tgmath.h (carg): Handle real arguments.
3737         (conj): Likewise.
3738         (cproj): Likewise.
3739         (cimag): Likewise.
3740         (creal): Likewise.
3742         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
3743         (tests): Add test-tgmath-ret.
3744         * math/test-tgmath-ret.c: New file.
3746         * math/tgmath.h (ilogb): Return always an int.
3748 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
3750         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
3751         computation so that prelinking works.
3753 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
3755         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
3756         linker's map.
3757         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
3758         dynamic linker's map.
3760         Fix cancellation point handling wrt exception based cleanup.
3761         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
3762         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
3763         with exceptions.
3764         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
3765         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
3766         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
3767         exceptions.
3768         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
3769         sigwait.c, and sigwaitinfo.c with exceptions.
3770         * stdlib/Makefile: Compile system.c with exceptions.
3771         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
3772         * termios/Makefile: Compile tcdrain.c with exceptions.
3773         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
3774         situation.
3775         * sysdeps/generic/pselect.c: Likewise.
3776         * sysdeps/posix/sigpause.c: Likewise.
3777         * sysdeps/posix/system.c: Likewise.
3778         * sysdeps/posix/waitid.c: Likewise.
3779         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
3780         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
3781         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
3782         INTERNAL_SYSCALL to not use push inside asm statement so that
3783         unwind info is correct around the syscall.
3784         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
3785         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
3787 2003-06-15  Andreas Jaeger  <aj@suse.de>
3789         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3790         Add CFI directives.
3792 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
3794         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
3795         create $(objpfx).
3797 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
3799         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
3800         not close.
3802         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
3803         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
3804         definition.
3806         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
3807         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
3808         * inet/Makefile (routines): Add inet6_option.
3809         * inet/inet6_option.c: New file.
3810         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
3811         inet6_option_init, inet6_option_append, inet6_option_alloc,
3812         inet6_option_next, and inet6_option_find.
3814 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
3816         * inet/netinet/ip6.h (struct ip6_ext): Define.
3818         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
3820         Fixing gcc 3.3 warnings, part II.
3821         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
3822         * elf/dl-load.c (cache_rpath): Don't inline.
3823         * iconvdata/cns11642l2.h: Always inline all functions.
3824         * iconvdata/iso-ir-165.h: Likewise.
3825         * locale/Makefile (aux): Add coll-lookup.
3826         * locale/coll-lookup.c: New file.
3827         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
3828         (collseq_table_lookup): Likewise.
3829         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
3830         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
3831         change.
3832         * posix/regcomp.c: Likewise.
3833         * posix/regexec.c: Likewise.
3834         * locale/programs/3level.h (*_get): Always inline.
3835         * locale/programs/locfile.h: Move definition of handle_copy to...
3836         * locale/programs/locfile.c: ...here.
3837         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
3838         (obstack_int32_grow_fast): Likewise.
3839         (utf8_encode): Likewise.
3840         (find_element): Avoid aliasing problems.
3841         (insert_value): Likewise.
3842         (collate_read): Likewise.
3843         * nss/getent.c (print_hosts): Don't inline
3844         (print_networks): Likewise.
3845         (print_shadow): Likewise.
3846         (build_doc): Likewise.
3847         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
3848         inline.
3849         * posix/regcomp.c (re_set_fastmap): Always inline.
3850         (seek_collating_symbol_entry): Likewise.
3851         (lookup_collation_sequence_value): Likewise.
3852         (build_range_exp): Likewise.
3853         (build_collating_symbol): Likewise.
3854         * posix/regexec.c (acquire_init_state_context): Don't inline.
3855         (clean_state_log_if_need): Likewise.
3856         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
3857         adjust all callers.
3858         (evConsTime): Likewise.
3859         (evAddTime): Likewise.
3860         (evSubTime): Likewise.
3861         (evNowTime): Likewise.
3862         (evTimeSpec): Removed.
3863         (__libc_res_nsend): Avoid aliasing problem.
3864         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
3865         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
3866         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
3867         Always inline.
3868         (_dl_string_platform): Likewise.
3869         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
3870         (wcwidth_table_lookup): Likewise.
3871         (wctrans_table_lookup): Likewise.
3873         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
3875 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
3877         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
3879 2003-05-29  Jim Meyering  <jim@meyering.net>
3881         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
3882         && HAVE_STRFTIME]: Use underlying_strftime for %r.
3883         Suggested by Daniel Yacob <locales@geez.org>.
3885 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
3887         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
3888         @got notation with @toc.
3889         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
3890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
3892 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
3894         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
3895         if only PF_INET address is needed.
3897         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
3898         case of an error.
3900         * scripts/config.guess: Update from upstream version.
3901         * scripts/config.sub: Likewise.
3903 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
3905         * locale/programs/ld-time.c (time_output): Also copy the era format,
3906         not only the name.
3908 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3910         * posix/transbug.c (run_test): Return 1 for failure.
3911         (do_test): Compare only if run_test is successful.
3913 2003-06-12  Simon Josefsson  <jas@extundo.com>
3915         * argp/argp.h [!__THROW]: Define if undefined.
3917 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
3919         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
3920         more than four parameters.
3921         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
3923 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
3925         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
3926         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
3927         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
3929         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
3931 2003-06-12  Roland McGrath  <roland@redhat.com>
3933         * Makerules ($(objpfx)stubs): Rewrite sed magic.
3935 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
3937         * posix/regcomp.c (parse_expression): Deliver translation to
3938         build_word_op, and build_charclass.
3939         (build_charclass): Apply translation for character classes too.
3940         (build_word_op): Deliver translation to build_charclass.
3941         * posix/transbug.c: New file.
3942         * posix/Makefile (tests): Add transbug.
3944 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
3946         * posix/regexec.c (group_nodes_into_DFAstates): Check for
3947         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
3948         'continue' before the others.
3950 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
3952         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
3953         function [PR libc/5045].
3955         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
3956         also for P4.
3958         * time/tzfile.c: Add a couple of __builtin_expect.
3960         Remove warnings gcc 3.3 shows.
3961         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
3962         * elf/dl-load.c (fillin_rpath): Likewise.
3963         (add_path): Likewise.
3964         * elf/dl-version.c (find_needed): Always inline.
3965         * elf/do-lookup.c (FCT): Don't inline.
3966         * iconv/Makefile: Extend vpath to intl subdir.
3967         (iconvconfig-modules): Add hash-string.
3968         * iconv/gconv_charset.h (strip): Don't inline.
3969         (upstr): Always inline.
3970         Move __gconv_compare_alias prototype to...
3971         * iconv/gconv_int.h: ...here.
3972         * iconv/gconv_db.c: Don't include gconv_charset.h.
3973         * iconv/gconv_conf.c (add_alias): Don't inline.
3974         (insert_module): Likewise.
3975         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
3976         (internal_ucs4_loop_unaligned): Likewise.
3977         (internal_ucs4_loop_single): Likewise.
3978         (ucs4_internal_loop): Likewise.
3979         (ucs4_internal_loop_unaligned): Likewise.
3980         (ucs4_internal_loop_single): Likewise.
3981         (internal_ucs4le_loop): Always inline.
3982         (internal_ucs4le_loop_unaligned): Likewise.
3983         (internal_ucs4le_loop_single): Likewise.
3984         (ucs4le_internal_loop): Likewise.
3985         (ucs4le_internal_loop_unaligned): Likewise.
3986         (ucs4le_internal_loop_single): Likewise.
3987         * iconv/loop.c: Always inline the defined functions.
3988         * iconvdata/cns11642.h: Likewise.
3989         * iconvdata/cns11642l1.h: Likewise.
3990         * iconvdata/euc-kr.c: Likewise.
3991         * iconvdata/gb2312.h: Likewise.
3992         * iconvdata/jis0201.h: Likewise.
3993         * iconvdata/jis0208.h: Likewise.
3994         * iconvdata/jis0212.h: Likewise.
3995         * iconvdata/jisx0213.h: Likewise.
3996         * iconvdata/ksc5601.h: Likewise.
3997         * iconvdata/utf-7.c (base64): Don't inline.
3998         * include/libc-symbols.h (symbol_set_first_element): Add cast
3999         (symbol_set_end_p): Likewise.
4000         * include/set-hooks (RUN_HOOK): Likewise.
4001         * inet/Makefile (aux): Add ifreq.
4002         * intl/Makefile (aux): Add some entries from routines.  Add
4003         hash-string.
4004         * intl/hash-string.c: New file.
4005         * intl/hash-string.h: Remove hash_string definition.  Declare
4006         __hash_string.
4007         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
4008         * iconv/iconvconfig.c (new_name): Likewise.
4009         * intl/dcigettext.c (_nl_find_msg): Likewise.
4010         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4011         * io/ftw.c (open_dir_stream): Always inline.
4012         (process_entry): Don't inline.
4013         * locale/findlocale.c: Include gconv_int.h.
4014         * locale/setlocale.c (new_composite_name): Don't inline.
4015         * locale/weight.h (findidx): Always inline.
4016         * locale/weightwc.h (findidx): Likewise.
4017         * locale/programs/linereader.c (lr_ignore_rest): Define here.
4018         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
4019         just declare it.
4020         (lr_getc): Always inline.
4021         (lr_ungetc): Likewise.
4022         * nss/nss_files/files-parse.c (parse_list): Likewise.
4023         * stdio-common/Makefile (aux): Add printf-parsemb and
4024         printf-parsewc.
4025         * stdio-common/_itoa.h (_itoa_word): Always inline.
4026         (_fitoa_word, _fitoa): Don't define here, only declare.
4027         * stdio-common/_itoa.c (_iftoa_word): Add here.
4028         (_fitoa): Likewise.
4029         * stdio-common/_itowa.h (_itowa_word): Always inline.
4030         * stdio-common/printf-parse.h (read_int): Don't inline.
4031         (find_spec): Don't define.
4032         Declare __find_specmb and __find_specwc.
4033         (parse_one_spec): Don't define.
4034         Declare __parse_one_specmb and __parse_one_specwc.
4035         * stdio-common/printf-parsemb.c: New file.
4036         * stdio-common/printf-parsewc.c: New file.
4037         * stdio-common/vfprintf.c: Update calls to find_spec and
4038         parse_one_spec for new names.
4039         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
4040         * stdlib/Makefile (aux): Add grouping and groupingwc.
4041         * stdlib/grouping.c: New file.
4042         * stdlib/groupingwc.c: New file.
4043         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
4044         Just prototype.
4045         * stdlib/rpmatch.c (try): Don't inline.
4046         * stdlib/strtod.c (round_and_return): Don't line.
4047         (str_to_mpn): Likewise.
4048         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
4049         Adjust for name change of correctly_grouped_prefix.
4050         * sysdeps/generic/strtol.c: Adjust for name change of
4051         correctly_grouped_prefix.
4052         * string/strxfrm.c (utf8_encode): Don't inline.
4053         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
4054         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
4055         * sysdeps/generic/ifreq.c: New file.
4056         * sysdeps/unix/sysv/linux/ifreq.c: New file.
4057         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
4058         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
4059         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
4060         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
4061         (fde_split): Likewise.
4062         (fde_merge): Likewise.
4063         (end_fde_sort): Likewise.
4064         (init_object): Likewise.
4065         (binary_search_unencoded_fdes): Likewise.
4066         (binary_search_single_encoding_fdes): Likewise.
4067         (binary_search_mixed_encoding_fdes): Likewise.
4068         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
4069         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
4070         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
4071         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4072         Add xstatconv.
4073         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
4074         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
4075         Export them.  Prepend __ to name.
4076         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
4077         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
4078         conversion functions.
4079         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4080         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4081         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4082         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4083         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4084         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4085         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4086         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4087         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
4088         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
4089         to name.  Change callers.
4090         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
4091         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
4092         declare.
4093         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
4094         * time/tzfile.c (decode): Always inline.
4095         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
4096         Remove cast in tomb function call.
4097         * wcsmbs/wcsrtombs.c Likewise.
4098         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
4099         tomb function call.
4101 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
4103         * po/zh_CN.po: Update from translation team.
4105 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
4107         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
4108         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
4110 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
4112         * inet/Makefile (aux): Add check_pf.
4113         * include/ifaddrs.h: Add prototype for __check_pf.
4114         * sysdeps/generic/check_pf.c: New file.
4115         * sysdeps/unix/sysv/linux/check_pf.c: New file.
4116         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
4117         from no_netlink_support.  Export.
4118         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
4119         call __check_pf.
4121         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
4123         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
4124         from getifaddr calls.
4126 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
4128         * sysdeps/unix/sysv/linux/kernel-features.h
4129         (__ASSUME_SETRESGID_SYSCALL): Define.
4130         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
4131         instead of __ASSUME_SETRESUID_SYSCALL.
4132         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
4133         defined.
4134         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
4135         inline syscall if __NR_setresuid32 is defined.
4136         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
4137         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
4138         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
4139         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4140         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
4141         code handling non-existant setresgid32 syscall with
4142         #if __ASSUME_SETRESGID_SYSCALL == 0.
4144 2003-06-09  Andreas Schwab  <schwab@suse.de>
4146         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
4147         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
4148         $(objpfx)rpc-proto.d.
4149         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
4150         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
4151         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
4153 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
4155         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
4156         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
4157         defined drop compatibility code.
4158         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
4159         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
4160         defined drop compatibility code.
4161         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
4162         setresuid32 syscall directly if possible.
4163         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
4164         setresgid32 syscall directly if possible.
4165         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
4166         compliant.  Don't change sgid.
4167         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
4168         compliant.  Don't change suid.
4170         * config.h.in: Add have-forced-unwind.
4171         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
4173 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
4175         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
4176         returned status from child matches.
4178         * Makeconfig (gnulib): Add -lgcc_eh once again.
4180 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
4182         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
4184         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
4185         %edx for first parameter.  This means no pushl and therefore the
4186         unwind info isn't screwed up.
4188 2003-06-04  Richard Henderson  <rth@redhat.com>
4190         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
4191         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4192         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
4193         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
4194         entry sequence and explicit relocs.  Add unwind info for sigreturn
4195         and rt_sigreturn.
4196         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
4198         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
4199         Annotate some parameters.
4200         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
4202         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
4204         * include/libc-symbols.h (symbol_set_declare): Use arrays
4205         of unspecified size.
4207 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
4209         * config.make.in (ASFLAGS-config): New.
4210         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
4211         * configure.in (libc_cv_as_noexecstack): New check.
4212         (ASFLAGS_config): Substitute.
4214 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
4216         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
4217         hypot, logb): Protect with #ifdef __FAST_MATH__.
4219 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
4221         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
4222         #ifdef __FAST_MATH__.
4224 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
4226         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
4227         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
4228         * posix/globtest.sh: Adjust for this change.
4230         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
4231         to get the actual PID value used in the records passed up.
4232         (getifaddrs): Don't initialize nh.pid here.
4234 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
4236         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
4237         optimization.
4239         * po/zh_CN.po: Update from translation team.
4241         * posix/getconf.c (main): Also recognize names without the
4242         _POSIX_ prefix.
4244         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
4246 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
4248         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
4249         ldexpf, ldexpl): Only define if __FAST_MATH__.
4251 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
4253         Replace hard-coded offsets into struct sigcontext with generated file.
4254         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
4255         * sysdeps/unix/sysv/linux/ia64/Makefile
4256         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
4257         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
4258         defining SC_* macros here.
4260 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
4262         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
4264 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
4266         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
4268 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
4270         * test-skeleton.c (main): Request getopt to not reorder the
4271         command line.
4273         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
4275         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
4276         stpncpy.
4278 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
4280         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
4282 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
4284         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
4285         New function.
4286         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
4287         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
4288         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
4290 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
4292         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
4293         CFI directives.
4295         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
4297         * libio/fileops.c (_IO_file_open): Don't mark as inline.
4299         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
4300         attribute used.
4302 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
4304         * scripts/config.guess: Update from master copy.
4305         * scripts/config.sub: Likewise.
4307 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
4309         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
4310         SETUP_GP64 and friends.
4311         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
4312         names in internal_syscall{6,7}.
4313         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
4314         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
4315         number of syscall arguments.
4316         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4317         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4318         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4320 2003-05-30  Andreas Jaeger  <aj@suse.de>
4322         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4323         Add CFI directives.
4325         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
4326         directives.
4328         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
4330         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4331         Add CFI directives.
4333 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
4335         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
4336         SHARED.
4338 2003-05-11  Andreas Schwab  <schwab@suse.de>
4340         * Makerules: Always use -MP together with -MD.
4341         (sed-remove-dotot): Substitute $(..) also at start of line.
4342         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
4343         Generated defines with a single compiler call.
4344         Use $(sed-remove-dotdot).
4345         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
4346         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
4347         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
4348         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
4349         * sysdeps/unix/sysv/linux/mips/Makefile
4350         ($(objpfx)syscall-%.h): Likewise.
4352 2003-05-28  Roland McGrath  <roland@redhat.com>
4354         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
4356 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
4358         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
4360 2003-05-28  Roland McGrath  <roland@redhat.com>
4362         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
4363         rt_sigprocmask system call.
4364         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
4365         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
4367 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
4369         * include/libc-symbols.h: Define hidden attribute for real also if
4370         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
4372         * csu/Makefile: Add rules to build Scrt1.o.
4373         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
4374         * sysdeps/x86_64/elf/start.S: Likewise.
4376 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
4378         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
4379         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
4380         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
4381         pa_short_int, pa_u_short_int and pa_float.
4383 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
4385         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
4386         _IO_str_init_static_internal.
4387         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
4388         change size argument to _IO_size_t, don't limit sprintf to 64M.
4389         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
4390         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
4391         _IO_size_t, don't limit swprintf to 256M.
4392         (_IO_wstr_init_readonly): Remove.
4393         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
4394         Adjust prototypes.
4395         (_IO_wstr_init_readonly): Remove prototype.
4396         * libio/iovsprintf.c (_IO_vsprintf): Use
4397         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
4398         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
4399         * libio/memstream.c (open_memstream): Likewise.
4400         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
4401         * libio/vasprintf.c (_IO_vasprintf): Likewise.
4402         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4403         * stdio-common/tst-sprintf.c (main): Add new test.
4405 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
4407         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
4408         other implementation in respect of multiple uses of parameter with
4409         different types.
4411 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
4413         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4414         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
4416 2003-05-22  Andreas Jaeger  <aj@suse.de>
4418         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
4419         directives.
4420         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4421         * sysdeps/x86_64/strtok.S: Likewise.
4423 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
4425         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
4426         to -60 and define SI_TKILL.
4428 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4430         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
4431         (feexcp_mask_test): Likewise.
4433 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
4435         * locale/programs/locale.c (main): Fix typo in last patch.
4437         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
4438         __init_array_start, __init_array_end, __fini_array_start, and
4439         __fini_array_end as hidden.
4441 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
4443         * locale/programs/locale.c (main): Report an error if setlocale()
4444         fails [PR libc/2254].
4446 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
4448         * sysdeps/unix/sysv/linux/s390/system.c: New file.
4450 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
4452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
4453         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
4454         LOADARGS_6): Don't error if syscall argument is a string literal.
4455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
4456         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
4457         LOADARGS_6): Likewise.
4459 2003-05-21  Andreas Jaeger  <aj@suse.de>
4461         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
4462         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
4463         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
4465         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
4466         (ENTRY): Likewise.
4467         (END): Likewise.
4469         * configure.in: Test for asm cfi directives.
4471         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
4473 2003-05-17  Andreas Jaeger  <aj@suse.de>
4475         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
4477         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
4479 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
4481         * rt/Makefile (tests): Add tst-clock_nanosleep.
4482         * rt/tst-clock_nanosleep.c: New file.
4483         * posix/Makefile (tests): Add tst-nanosleep.
4484         * posix/tst-nanosleep.c: New file.
4486         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
4488         * include/features.h (__USE_XOPEN2K): Define also for
4489         _POSIX_C_SOURCE>=200112L.
4491         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
4492         SI_TKILL code into SI_USER.
4493         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
4495         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
4497 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
4499         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
4500         Remove sym argument, always use refsym.
4501         (__process_machine_rela): Adjust callers.
4502         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
4503         Likewise.
4504         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
4505         Adjust prototype.
4506         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4508 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
4510         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
4511         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
4512         print numeric values.
4514 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
4516         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
4518 2003-05-14  Andreas Schwab  <schwab@suse.de>
4520         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
4522 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
4524         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
4525         even if no DT_NEEDED is present.
4527 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
4529         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
4530         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
4531         __sigjmp_save) so we can't keep the saved unat value in a scratch
4532         register (r16).  Use loc2 instead.
4534 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
4536         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
4537         binaries it has to be relocatable.
4539         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
4541 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
4543         * sysdeps/powerpc/bits/atomic.h
4544         (__arch_compare_and_exchange_bool_8_rel): Define.
4545         (__arch_compare_and_exchange_bool_16_rel): Define.
4546         (__ARCH_REL_INSTR): Define if not already defined.
4547         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
4548         (__arch_atomic_decrement_if_positive_32):
4549         Add "memory" to clobber list.
4550         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
4551         (__arch_compare_and_exchange_val_32_rel): Define.
4552         (__arch_atomic_exchange_32): Remove.
4553         (__arch_atomic_exchange_32_acq): Define.
4554         (__arch_atomic_exchange_32_rel): Define.
4555         (atomic_compare_and_exchange_val_rel): Define.
4556         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
4557         (atomic_exchange_rel): Define.
4558         * sysdeps/powerpc/powerpc32/bits/atomic.h
4559         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
4560         (__arch_compare_and_exchange_bool_32_rel): Define.
4561         (__arch_compare_and_exchange_bool_64_rel): Define.
4562         (__arch_compare_and_exchange_val_64_rel): Define.
4563         (__arch_atomic_exchange_64): Remove.
4564         (__arch_atomic_exchange_64_acq): Define.
4565         (__arch_atomic_exchange_64_rel): Define.
4566         * sysdeps/powerpc/powerpc64/bits/atomic.h
4567         (__arch_compare_and_exchange_bool_32_rel): Define.
4568         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
4569         (__arch_compare_and_exchange_bool_64_rel): Define.
4570         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
4571         (__arch_compare_and_exchange_val_64_rel): Define.
4572         (__arch_atomic_exchange_64): Remove.
4573         (__arch_atomic_exchange_64_acq): Define.
4574         (__arch_atomic_exchange_64_rel): Define.
4575         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
4576         (__arch_atomic_decrement_if_positive_64):
4577         Add "memory" to clobber list.
4578         [!UP](__ARCH_REL_INSTR): Define as lwsync.
4580 2003-05-11  Andreas Schwab  <schwab@suse.de>
4582         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
4584 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
4586         * time/tst-strftime.c (do_test): Add tests for - flag.
4588 2003-05-11  Jim Meyering  <jim@meyering.net>
4590         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
4591         the space-padded-by-default conversion specifiers, %e, %k, %l.
4593 2003-05-11  Andreas Schwab  <schwab@suse.de>
4595         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
4597 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
4599         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
4600         already defined and when really needed.
4601         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4603 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
4605         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
4606         headers, add defines from kernel header, move it from here...
4607         * inet/netinet/igmp.h: ... to here.
4608         * inet/Makefile (headers): Add netinet/igmp.h.
4609         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
4610         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
4612 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
4614         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
4615         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
4617 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
4619         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
4620         (remove __THROW from possible cancellation points).
4622 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
4624         * posix/sched.h (CPU_SETSIZE): Define.
4626 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
4628         * Makeconfig (gnulib): Remove -lgcc_eh again.
4630         * posix/sched.h: Change prototypes of sched_getaffinity and
4631         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
4632         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
4633         * sysdeps/generic/sched_setaffinity.c: Likewise.
4634         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
4635         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
4636         __CPU_CLR, and __CPU_ISSET.
4637         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4638         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
4639         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
4641         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
4642         (atomic_exchange_rel): New #define.
4643         * sysdeps/ia64/bits/atomic.h: Likewise.
4644         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
4645         atomic_exchange.
4646         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
4647         * sysdeps/powerpc/bits/atomic.h: Likewise.
4648         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
4649         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
4650         * sysdeps/x86_64/bits/atomic.h: Likewise.
4651         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
4653         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
4655 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
4657         * malloc/thread-m.h: Remove special handling of thread_atfork if
4658         HAVE_register_atfork_malloc is defined.
4660 2003-05-07  Andreas Jaeger  <aj@suse.de>
4662         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
4663         information.
4665 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
4667         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
4668         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
4669         * libio/libioP.h: Declare _IO_old_init.
4670         * libio/genops.c (_IO_no_init): Split in two.  New function
4671         _IO_old_init.
4673 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
4675         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
4676         variable.
4677         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
4678         is nonzero.
4679         * include/unistd.h: Declare __libc_enable_secure_decided.
4680         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
4681         and AT_EGID.  If all found, set __libc_enable_secure and
4682         __libc_enable_secure_decided.
4684         * sysdeps/generic/libc-start.c [!SHARED]: Call
4685         __libc_check_standard_fds after __libc_init_first.
4687 2003-05-05  Roland McGrath  <roland@redhat.com>
4689         * Makerules (common-before-compile): New variable.
4690         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
4691         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
4692         to after all setting of before-compile.
4694 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
4696         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
4697         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
4698         * sysdeps/powerpc/powerpc32/bits/atomic.h
4699         (__arch_compare_and_exchange_val_64_acq): Likewise.
4700         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4701         (__arch_compare_and_exchange_val_8_acq,
4702         __arch_compare_and_exchange_val_16_acq,
4703         __arch_compare_and_exchange_val_64_acq): Likewise.
4704         * sysdeps/sparc/sparc64/bits/atomic.h
4705         (__arch_compare_and_exchange_val_8_acq,
4706         __arch_compare_and_exchange_val_16_acq): Likewise.
4707         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
4708         __arch_compare_and_exchange_val_16_acq,
4709         __arch_compare_and_exchange_val_64_acq): Likewise.
4710         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4711         (__arch_compare_and_exchange_val_64_acq): Likewise.
4712         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
4713         up warning.
4714         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
4716         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4717         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
4718         Return long instead of int.
4719         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
4720         0xfffff001u with -4095UL.
4722 2003-05-05  Andreas Jaeger  <aj@suse.de>
4724         * sysdeps/x86_64/fpu_control.h: New from i386.
4726         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
4727         Define if not defined.
4729         * sunrpc/Makefile (generated-dirs): New variable.
4730         * resolv/Makefile (generated): New variable.
4732 2003-05-04  Roland McGrath  <roland@redhat.com>
4734         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
4735         Depend on $(before-compile).
4737         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
4738         pattern rule.  The implicit rule could be ruled out when $(objpfx)
4739         didn't exist at the time of its consideration (ugh!).
4741         * Makerules (+make-deps): Fix target matching.
4742         Use $(sed-remove-dotdot).
4744 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
4746         * nscd/nscd.c (main): Parse config file right after parsing
4747         parameters.  Then, if get_stats is true, call receive_print_stats.
4748         Drop parameter from nscd_init call.
4749         (get_stats): New variable.
4750         (parse_opt): Set get_stats, don't call receive_print_stats here.
4751         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
4752         prototype.
4753         * nscd/connections.c (stat_user, stat_uid): New variables.
4754         (dbs): Make global.
4755         (nscd_init): Don't read configuration file here.  Drop parameter.
4756         (handle_request): Cleanup handling of non-database lookup requests.
4757         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
4758         Get UID of the specified user.  Use xstrdup instead of strdup.
4759         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
4760         check stat_user.
4761         * nscd/Makefile (nscd-modules): Add xstrdup.
4762         * nscd/nscd.conf: Document stat-user entry.
4764 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
4766         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
4767         if not defined.
4769 2003-04-22  Roland McGrath  <roland@redhat.com>
4771         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
4772         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4773         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
4774         * elf/dl-support.c: Update defn.
4775         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
4776         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
4777         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
4778         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
4779         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
4780         set, set up a link_map for the preloaded, prelinked object.
4782 2003-05-03  Roland McGrath  <roland@redhat.com>
4784         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
4785         * stdio-common/Makefile: ... not here.
4787         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
4788         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
4790 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
4792         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
4794         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
4796         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
4797         comparing ftab elements.
4798         (_dl_unmap): Fix typo in test.
4799         (_dl_make_fptr): Fix typos introduced in last change.
4801         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
4802         original patch.  Use non-exported symbols.  Mark translatable
4803         strings.  Pretty printing.
4805 2003-05-02  Roland McGrath  <roland@redhat.com>
4807         * Makerules (do-stamp): Do $(make-target-directory).
4809 2003-04-07  H.J. Lu  <hjl@gnu.org>
4811         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
4813 2003-04-03  H.J. Lu  <hjl@gnu.org>
4815         * sysdeps/ia64/dl-fptr.c: Moved to ...
4816         * sysdeps/generic/dl-fptr.c: Here.
4818         * sysdeps/generic/dl-fptr.h: New.
4819         * sysdeps/ia64/dl-fptr.h: New.
4821         * sysdeps/ia64/dl-symaddr.c: Moved to ...
4822         * sysdeps/generic/dl-symaddr.c: here.
4824         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
4825         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
4826         (ia64_fdesc): Likewise.
4827         (ia64_fdesc_table): Likewise.
4828         (__ia64_make_fptr): Likewise.
4829         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
4830         with _dl_boot_fptr_table.
4831         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
4832         `struct fdesc'.
4833         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
4835 2003-05-01  Roland McGrath  <roland@redhat.com>
4837         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
4838         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4840         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
4841         Use $(make-target-directory).
4842         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4844         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
4845         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
4846         (compile-command.s, compile-command.c): Likewise.
4847         ($(objpfx)%.d): All such pattern rules removed.
4848         ($(+sysdir_pfx)sysd-rules): Don't generate them.
4849         ($(common-objpfx)dummy.d): Target removed.
4850         (make-dummy-dep): Variable removed.
4851         (generate-md5): Likewise.
4852         (%.d: %.dt): New pattern rule.
4853         (+depfiles): Use $(wildcard) function to get just existing *.d files
4854         and .d files for existing *.dt files.
4855         (common-clean): Remove all *.d and *.dt files.
4856         (before-compile): Add $(objpfx). when it doesn't exist,
4857         regardless of $(no_deps).
4858         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
4859         (rtld-depfiles): Use .os.d instead of .d names.
4860         Include existing *.d files and .d files for existing *.dt files.
4862         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
4863         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
4865         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
4866         Do s-*.d includes only if we have some syscall routines in this subdir.
4868         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
4869         @nobits.  The former is accepted by gas on any ELF platform.
4871 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
4873         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
4875         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
4877 2003-04-29  Andreas Schwab  <schwab@suse.de>
4879         * string/test-strcat.c (do_one_test): Fix attribute name.
4881 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
4883         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
4884         uc_flags long for all ABIs.
4886 2003-04-30  Andreas Jaeger  <aj@suse.de>
4888         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
4889         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
4890         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
4891         Add bi-arch support.
4893 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
4895         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
4896         (__posix_memalign): Use __memalign_internal instead of memalign.
4898 2003-04-29  Roland McGrath  <roland@redhat.com>
4900         * configure.in: Search for AUTOCONF unconditionally.
4901         Just don't complain about missing it under --without-cvs.
4903         * include/libc-symbols.h (__symbol_set_attribute): New macro,
4904         give hidden for [SHARED] and weak for [! SHARED].
4905         (symbol_set_declare): Use that.  Never need weak_extern these days.
4906         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
4907         Depend on $(..)Makerules.
4909 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
4911         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
4912         variants of socket, bind, recvmsg, and sendto.
4914         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
4916         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
4917         * signal/sigaddset.c: Add libc_hidden_def.
4918         * signal/sigdelset.c: Likewise.
4920 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
4922         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
4923         to the end of the file.
4925         * configure.in: Change __oline__ to $LINENO.
4926         (HAVE_BUILTIN_REDIRECTION): New check.
4927         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
4928         * include/libc-symbols.h (libc_hidden_builtin_proto,
4929         libc_hidden_builtin_def, libc_hidden_builtin_weak,
4930         libc_hidden_builtin_ver): Define.
4931         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
4932         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
4933         strspn, strstr): Add libc_hidden_builtin_proto.
4934         * intl/plural.y: Include string.h.
4935         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
4936         libc_hidden_builtin_def.
4937         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
4938         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
4939         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
4940         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
4941         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
4942         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
4943         * sysdeps/alpha/memchr.S (memchr): Likewise.
4944         * sysdeps/alpha/memset.S (memset): Likewise.
4945         * sysdeps/alpha/strcat.S (strcat): Likewise.
4946         * sysdeps/alpha/strchr.S (strchr): Likewise.
4947         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
4948         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
4949         * sysdeps/alpha/strlen.S (strlen): Likewise.
4950         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
4951         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
4952         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
4953         * sysdeps/arm/memset.S (memset): Likewise.
4954         * sysdeps/arm/strlen.S (strlen): Likewise.
4955         * sysdeps/generic/memchr.c (memchr): Likewise.
4956         * sysdeps/generic/memcpy.c (memcpy): Likewise.
4957         * sysdeps/generic/memmove.c (memmove): Likewise.
4958         * sysdeps/generic/memset.c (memset): Likewise.
4959         * sysdeps/generic/strcat.c (strcat): Likewise.
4960         * sysdeps/generic/strchr.c (strchr): Likewise.
4961         * sysdeps/generic/strcmp.c (strcmp): Likewise.
4962         * sysdeps/generic/strcpy.c (strcpy): Likewise.
4963         * sysdeps/generic/strcspn.c (strcspn): Likewise.
4964         * sysdeps/generic/strlen.c (strlen): Likewise.
4965         * sysdeps/generic/strncmp.c (strncmp): Likewise.
4966         * sysdeps/generic/strncpy.c (strncpy): Likewise.
4967         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
4968         * sysdeps/generic/strrchr.c (strrchr): Likewise.
4969         * sysdeps/generic/strspn.c (strspn): Likewise.
4970         * sysdeps/generic/strstr.c (strstr): Likewise.
4971         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
4972         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
4973         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
4974         * sysdeps/i386/i586/memset.S (memset): Likewise.
4975         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
4976         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
4977         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
4978         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
4979         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
4980         * sysdeps/i386/i686/memset.S (memset): Likewise.
4981         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
4982         * sysdeps/i386/memchr.S (memchr): Likewise.
4983         * sysdeps/i386/memset.c (memset): Likewise.
4984         * sysdeps/i386/strchr.S (strchr): Likewise.
4985         * sysdeps/i386/strcspn.S (strcspn): Likewise.
4986         * sysdeps/i386/strlen.c (strlen): Likewise.
4987         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4988         * sysdeps/i386/strrchr.S (strrchr): Likewise.
4989         * sysdeps/i386/strspn.S (strspn): Likewise.
4990         * sysdeps/ia64/memchr.S (memchr): Likewise.
4991         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
4992         * sysdeps/ia64/memmove.S (memmove): Likewise.
4993         * sysdeps/ia64/memset.S (memset): Likewise.
4994         * sysdeps/ia64/strcat.S (strcat): Likewise.
4995         * sysdeps/ia64/strchr.S (strchr): Likewise.
4996         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
4997         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
4998         * sysdeps/ia64/strlen.S (strlen): Likewise.
4999         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
5000         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
5001         * sysdeps/m68k/memchr.S (memchr): Likewise.
5002         * sysdeps/m68k/strchr.S (strchr): Likewise.
5003         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
5004         * sysdeps/mips/mips64/memset.S (memset): Likewise.
5005         * sysdeps/mips/memcpy.S (memcpy): Likewise.
5006         * sysdeps/mips/memset.S (memset): Likewise.
5007         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
5008         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
5009         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
5010         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
5011         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
5012         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
5013         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
5014         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
5015         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
5016         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
5017         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
5018         * sysdeps/powerpc/strcat.c (strcat): Likewise.
5019         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
5020         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
5021         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
5022         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
5023         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
5024         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
5025         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
5026         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
5027         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
5028         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
5029         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
5030         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
5031         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
5032         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
5033         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
5034         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
5035         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
5036         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
5037         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
5038         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
5039         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
5040         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
5041         * sysdeps/sh/memcpy.S (memcpy): Likewise.
5042         * sysdeps/sh/memset.S (memset): Likewise.
5043         * sysdeps/sh/strlen.S (strlen): Likewise.
5044         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
5045         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
5046         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
5047         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
5048         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
5049         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
5050         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
5051         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
5052         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
5053         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
5054         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
5055         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
5056         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
5057         * sysdeps/x86_64/memset.S (memset): Likewise.
5058         * sysdeps/x86_64/strcat.S (strcat): Likewise.
5059         * sysdeps/x86_64/strchr.S (strchr): Likewise.
5060         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
5061         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
5062         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
5063         * sysdeps/x86_64/strlen.S (strlen): Likewise.
5064         * sysdeps/x86_64/strspn.S (strspn): Likewise.
5065         * string/string-inlines.c: Move...
5066         * sysdeps/generic/string-inlines.c: ...here.
5067         (__memcpy_g, __strchr_g): Remove.
5068         (__NO_INLINE__): Define before including <string.h>,
5069         undefine after.  Include bits/string.h and bits/string2.h.
5070         * sysdeps/i386/i486/string-inlines.c: New file.
5071         * sysdeps/i386/string-inlines.c: New file.
5072         * sysdeps/i386/i486/Versions: Remove.
5073         All GLIBC_2.1.1 symbols moved...
5074         * sysdeps/i386/Versions (libc): ...here.
5076 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
5078         * sysdeps/i386/fpu/Makefile: New file.
5079         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
5080         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
5081         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
5082         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
5083         [PR libc/4987].
5085 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
5087         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
5088         * nscd/nscd_getpw_r.c: Likewise.
5089         * nscd/nscd_gethst_r.c: Likewise.
5091 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
5093         * nscd/pwdcache.c: Initialize .version element in result.
5094         * nscd/grpcache.c: Likewise.
5095         * nscd/pwdcache.c: Likewise.
5097 2003-04-27  Andreas Schwab  <schwab@suse.de>
5099         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
5100         subdirectory.
5102 2003-04-27  Andreas Schwab  <schwab@suse.de>
5104         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
5106 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
5108         * nscd/connections.c (client_queued): New variable.
5109         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
5110         threads.  Keep track of the number of delays caused because of busy
5111         worker threads.
5112         * nscd/nscd.h: Declare client_queued.
5113         * nscd/nscd_stat.c: Transmit and print client_queued information.
5115         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
5117         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
5118         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
5120 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
5122         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
5123         tracking of freed memory in static TLS block.
5124         * elf/Makefile: Add rules to build and run tst-tls13.
5125         * elf/tst-tls13.c: New file.
5126         * elf/tst-tlsmod13.c: New file.
5127         * elf/tst-tlsmod13a.c: New file.
5129         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
5131         * elf/dl-reloc.c: Pretty printing.
5133 2003-04-26  Roland McGrath  <roland@redhat.com>
5135         * Makerules ($(common-objpfx)shlib.lds): New target.
5136         (common-generated): Add it.
5137         (build-shlib, build-module): Use that instead of generating every time.
5138         ($(common-objpfx)libc.so): Depend on it.
5139         (lib%.so rule): Likewise.
5140         (build-module-helper-objlist): Remove %.lds.
5141         (LDSEDCMD-c.so): Variable removed.
5142         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
5143         Depend on $(common-objpfx)shlib.lds.
5144         * dlfcn/Makefile ($(test-modules)): Likewise.
5146 2003-04-26  Roland McGrath  <roland@frob.com>
5148         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
5150 2003-04-26  Andreas Schwab  <schwab@suse.de>
5152         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
5154 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
5156         * nscd/cache.c (cache_search): Keep track of how many chain links
5157         we searched and update table statistics.
5158         (cache_add): Keep track of how many values are in the table.
5159         (prune_cache): Likewise.  Keep track of locking success.
5160         Print messages about removed entries in separate pass.
5161         * nscd/connections.c (handle_request): Don't print debug message here.
5162         The caller will do it.  Keep track of locking success.
5163         (nscd_run): Print debug message.  Also print PID of the client process.
5164         * nscd/nscd.c (start_time): New variable.
5165         (main): Remember start time.
5166         * nscd/nscd.h: Declare start_time.
5167         (struct database): Add more members for new statistics.
5168         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
5169         of new statistics.
5171         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
5173 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
5175         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
5176         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
5177         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
5178         NO_TLS_OFFSET.
5179         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
5180         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
5181         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
5182         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
5183         TLS_TCB_SIZE.
5185 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
5187         * nss/getent.c: Implement alternative host database lookup via
5188         getaddrinfo.
5190         * include/ifaddrs.h: New file.
5191         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
5192         AI_ADDRCONFIG...
5193         * resolv/netdb.h: ...here.
5194         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
5195         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5196         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
5197         AI_ADDRCONFIG.
5199 2003-04-24  Roland McGrath  <roland@redhat.com>
5201         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
5203 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
5205         * elf/dl-reloc.c (allocate_static_tls): Rename to...
5206         (_dl_allocate_static_tls): ... this function.  No longer static.
5207         (CHECK_STATIC_TLS): Adjust.
5208         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
5209         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
5210         Add SYM_MAP argument.
5211         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
5212         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
5213         TLS relocs here.  #ifdef out relocs which never appear in
5214         .gnu.conflict section from dl-conflict.c processing.
5215         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5216         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
5218         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
5219         out relocs which never appear in .gnu.conflict section from
5220         dl-conflict.c processing.
5221         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
5222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5223         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
5224         Use r_type in RESOLVE macro.
5226 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
5228         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
5229         NULL.  Remove code made redundant by this assumption.
5230         (__yp_unbind): Add call to free.  Adjust all callers.
5232         * nis/ypclnt.c (yp_all): Free the dom_binding object after
5233         unbinding it.
5235         * grp/initgroups.c (getgrouplist): Don't copy too much into the
5236         user buffer if more groups are found than fit into it.
5238         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
5239         extend_alloca.
5241 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
5243         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
5244         not rc == errno.  Use extend_alloca.
5246         * elf/tst-tls12.c (main): Fix declaration.
5247         * elf/tst-tls10.c (dummy): Make hidden instead of static.
5248         * elf/tst-tlsmod7.c (dummy): Likewise.
5249         * elf/tst-tlsmod8.c (dummy): Likewise.
5250         * elf/tst-tlsmod9.c (dummy): Likewise.
5252 2003-04-22  Roland McGrath  <roland@redhat.com>
5254         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
5255         (open_not_cancel): Make last argument non-optional.
5256         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
5257         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
5258         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5260         * include/tls.h: Protect against multiple inclusion.
5262 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
5264         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
5265         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
5266         open_socket.  Not static anymore.
5267         (nscd_gethst_r): Use __nscd_open_socket.
5268         * nscd/nscd_getgr_r.c (open_socket): Removed.
5269         (nscd_getgr_r): Use __nscd_open_socket.
5270         * nscd/nscd_getpw_r.c (open_socket): Removed.
5271         (nscd_getpw_r): Use __nscd_open_socket.
5273         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
5274         * nscd/connections.c (handle_request): Add cast to avoid warning.
5276 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
5278         * signal/sigfillset.c: Moved to...
5279         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
5280         do not set the corresponding bit.
5282         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
5283         SIGCANCEL.
5284         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
5285         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
5286         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
5287         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
5288         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
5290 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
5292         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
5293         first syscall parameter to const char*.
5295 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
5297         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
5299         * configure.in: Add AC_PROG_CXX.
5300         * config.make.in (CXX): Define.
5302         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
5303         __len to size_t to avoid warnings.
5305 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
5307         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
5308         2.5.67.
5309         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5311 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
5313         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
5314         UNREGISTER_ATFORK if d == NULL.
5316         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
5317         * dirent/dirent.h: Likewise.
5318         * dlfcn/dlfcn.h: Likewise.
5319         * grp/grp.h: Likewise.
5320         * iconv/iconv.h: Likewise.
5321         * io/fcntl.h: Likewise.
5322         * io/ftw.h: Likewise.
5323         * libio/stdio.h: Likewise.
5324         * misc/sys/mman.h: Likewise.
5325         * misc/sys/select.h: Likewise.
5326         * misc/sys/syslog.h: Likewise.
5327         * misc/sys/uio.h: Likewise.
5328         * posix/spawn.h: Likewise.
5329         * posix/unistd.h: Likewise.
5330         * posix/sys/wait.h: Likewise.
5331         * pwd/pwd.h: Likewise.
5332         * resolv/netdb.h: Likewise.
5333         * rt/aio.h: Likewise.
5334         * shadow/shadow.h: Likewise.
5335         * signal/signal.h: Likewise.
5336         * socket/sys/socket.h: Likewise.
5337         * stdlib/stdlib.h: Likewise.
5338         * streams/stropts.h: Likewise.
5339         * string/string.h: Likewise.
5340         * sysdeps/gnu/utmpx.h: Likewise.
5341         * sysvipc/sys/msg.h: Likewise.
5342         * termios/termios.h: Likewise.
5343         * time/time.h: Likewise.
5344         * wcsmbs/wchar.h: Likewise.
5345         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
5346         functions.
5347         * misc/daemon.c: Likewise.
5348         * sysdeps/generic/backtracesymsfd.c: Likewise.
5349         * sysdeps/generic/check_fds.c: Likewise.
5350         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
5351         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
5352         * sysdeps/generic/not-cancel.h: New file.
5353         * csu/Makefile (distribute): Add not-cancel.h.
5354         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
5355         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
5356         for assert.c and assert-perr.c to include <fatal-prepare.h>.
5357         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
5359         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
5360         errno and unlink first.
5362         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
5364 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
5366         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
5367         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
5369 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
5371         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
5373         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
5374         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
5375         replace.
5377         * signal/Makefile (tests): Add tst-sigsimple.
5378         * signal/tst-sigsimple.c: New file.
5380 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
5382         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
5383         tst-tls10.h.
5384         (tests): Add tst-tls1[0-2].
5385         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
5386         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
5387         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
5388         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
5389         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
5390         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
5391         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
5392         * elf/tst-tls10.c: New test.
5393         * elf/tst-tls11.c: New test.
5394         * elf/tst-tls12.c: New test.
5395         * elf/tst-tls10.h: New file.
5396         * elf/tst-tlsmod7.c: New file.
5397         * elf/tst-tlsmod8.c: New file.
5398         * elf/tst-tlsmod9.c: New file.
5399         * elf/tst-tlsmod10.c: New file.
5400         * elf/tst-tlsmod11.c: New file.
5401         * elf/tst-tlsmod12.c: New file.
5403 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
5405         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
5406         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
5407         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
5409 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
5411         * posix/regex.h: Include <sys/types.h>.
5413         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
5414         The signal number must be checked.
5415         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
5416         The signal number must be checked [PR libc/5004].
5418         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
5419         don't do anything fancy.
5421         * sysdeps/generic/bits/libc-lock.h: Define
5422         __rtld_lock_define_initialized_recursive.
5424         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
5425         contacting nscd if NOT_USENSCD_NAME > 0.
5426         * nss/nsswitch.c (__nss_disable_nscd): New function.
5427         * nss/nsswitch.h: Declare it.
5428         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
5429         * nscd/nscd.c (main): Call __nss_disable_nscd.
5431 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
5433         * stdio-common/perror.c (perror): We don't need to set the offset
5434         to _IO_pos_bad, this is how streams are initialized.
5436         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
5437         (time_output): If necessary, allocate new buffer for .name string if
5438         padding is required.
5440         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
5441         before copying.  This might leave holes in the list.  Adjust
5442         pointers if necessary.
5443         (netlink_receive): Allocate only one block.
5444         (free_netlink_handle): Adjust appropriately.
5445         (getifaddrs): Lots of cleanups.
5447         * string/test-strncpy.c (do_one_test): Mark start and stop as
5448         possibly unused.
5449         * string/test-memchr.c: Likewise.
5450         * string/test-memcmp.c: Likewise.
5451         * string/test-memcpy.c: Likewise.
5452         * string/test-memmove.c: Likewise.
5453         * string/test-memset.c: Likewise.
5454         * string/test-strcat.c: Likewise.
5455         * string/test-strchr.c: Likewise.
5456         * string/test-strcmp.c: Likewise.
5457         * string/test-strcpy.c: Likewise.
5458         * string/test-strlen.c: Likewise.
5459         * string/test-strncmp.c: Likewise.
5460         * string/test-strpbrk.c: Likewise.
5461         * string/test-strrchr.c: Likewise.
5462         * string/test-strspn.c: Likewise.
5464 2003-04-15  Roland McGrath  <roland@redhat.com>
5466         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
5468         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
5469         INTUSE(__register_frame_info_bases).
5471 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
5473         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
5474         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
5475         AT_SYSINFO_EH_FRAME.  Adjust string width.
5476         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
5477         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
5478         Add _dl_sysinfo_eh_frame field.
5479         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
5480         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
5481         variable.
5482         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
5483         if _dl_sysinfo_eh_frame is non-NULL.
5485         * Makeconfig (gnulib): Add -lgcc_eh.
5487         * config.h.in: Define HAVE_FORCED_UNWIND.
5489 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
5491         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
5492         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
5494 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
5496         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
5497         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
5498         against local symbol in conflict processing.
5500 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
5502         * sysdeps/powerpc/bits/atomic.h
5503         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
5504         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
5505         as abort stub.
5506         (__arch_compare_and_exchange_val_32_acq): Define.
5507         (atomic_compare_and_exchange_val_acq): Define.
5509 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
5511         * include/atomic.h: Pretty printing.
5513 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
5515         * stdio-common/vfscanf.c: Add casts to avoid warnings.
5517 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
5519         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
5520         * sysdeps/x86_64/bits/atomic.h: Likewise.
5522 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
5524         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
5525         POPARGS_1 to emit labels for the mov instructions.
5527 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
5529         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
5531 2003-04-14  Roland McGrath  <roland@redhat.com>
5533         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
5534         compiler warning.
5536         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
5538 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
5540         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
5541         position.  Reported by jreiser@BitWagon.com.
5543 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
5545         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
5546         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
5547         * sysdeps/generic/unwind-dw2.c: Likewise.
5548         * sysdeps/generic/unwind-pe.h: Likewise.
5550 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
5552         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
5553         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
5554         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
5555         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
5556         (mcontext_t): Make it match the 32-bit mips kernel in o32.
5557         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
5558         the mips and mips64 headers.
5559         (struct user): Port to n32/n64.
5561 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
5563         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
5564         avoid warning.
5566         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
5567         __ASSUME_VSYSCALL is defined don't add restorer.
5568         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5569         __ASSUME_VSYSCALL for 2.5.53.
5571 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
5573         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
5574         Remove HAVE_CANCELBUF code.  Replace with code using the new
5575         initializers for unwind-based cleanup handling.
5576         * sysdeps/generic/unwind.h: Update from latest gcc version.
5577         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
5578         places to allow unwind data generation.
5579         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
5580         * sysdeps/x86_64/bits/setjmp.h: Likewise.
5581         * sysdeps/sh/bits/setjmp.h: Likewise.
5582         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5583         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
5584         * sysdeps/alpha/bits/setjmp.h: Likewise.
5586 2003-04-11  Roland McGrath  <roland@redhat.com>
5588         * csu/tst-empty.c: New file.
5589         * csu/Makefile (tests, tests-static): Add it.
5591 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
5593         * string/test-strcmp.c (do_random_tests): Test whether return value
5594         has been promoted to wordsize if the ABI requires caller to do so.
5595         * string/test-strncmp.c (do_random_tests): Likewise.
5596         * string/test-memcmp.c (do_random_tests): Likewise.
5598         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
5599         before returning.
5601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5602         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
5603         is not defined, but the prctl constants are.
5605         * string/tester.c (test_strcmp): Fix a typo.
5607 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
5609         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
5610         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
5612 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
5614         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
5615         NewABI.
5616         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
5617         NewABI.
5618         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
5619         conventions.
5620         * sysdeps/mips/mips64/memset.S: Likewise.
5621         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
5622         Use t0 instead of t4 as temporary.
5624 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
5626         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
5627         feof_unlocked instead of feof.
5628         (add_dir): Ignore trailing whitespace.
5630 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
5632         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
5633         sum of SIZE1 and SIZE2 arguments.
5635 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
5637         * iconv/iconv_prog.c (process_block): Don't print message about
5638         invalid input if the -c option is used.
5639         (main): Correctly append IGNORE string for -c option.
5641 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5643         * sysdeps/sh/bits/atomic.h: Moved to ...
5644         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
5645         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
5646         arguments.
5647         (atomic_bit_set, atomic_bit_test_set): Likewise.
5648         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
5649         twice.
5650         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
5652 2003-04-06  Roland McGrath  <roland@redhat.com>
5654         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
5655         restoration as done for setcontext yesterday.
5657 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
5659         * elf/rtld.c: Revert 2003-03-14 change.
5660         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
5661         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
5663 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
5665         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
5667         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5668         Always initialize *signgamp before returning an error.
5670 2003-04-05  Roland McGrath  <roland@redhat.com>
5672         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
5673         below the stack pointer even if switching to the same context we are
5674         running right now.
5676 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
5678         * catgets/gencat.c (read_input_file): Make sure that \n is not
5679         alone on the line before testing for continuation.
5681         * math/test-tgmath.c (compile_test): Initialize c.
5683 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
5685         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
5686         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
5687         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
5688         on mips n32.
5689         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
5690         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
5691         structure on n32 as well.
5692         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
5693         data types on n32 and n64.
5695 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
5697         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
5698         after getting them.
5700         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
5701         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
5702         instead of __register_atfork.
5704 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
5706         * stdio-common/reg-printf.c (__register_printf_function): Calloc
5707         instead of malloc __printf_arginfo_table and __printf_function_table.
5708         Reported by John Reiser <jreiser@BitWagon.com>.
5710 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
5712         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
5713         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
5715         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
5716         defining.
5718 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
5720         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
5721         for n64 abi.
5723 2003-04-03  Roland McGrath  <roland@redhat.com>
5725         * configure.in: Fix up use of compilation flags to match the build:
5726         For .s files, $ASFLAGS;
5727         For .S files, $CPPFLAGS $ASFLAGS;
5728         For .c files, $CFLAGS $CPPFLAGS;
5729         when linking, add $LDFLAGS.
5730         * configure: Regenerated.
5732 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
5734         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
5735         for atomic_compare_and_exchange_bool_acq failure.
5737 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
5739         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
5740         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
5741         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
5742         Remove declaration of pthread_atfork.
5744 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
5746         * locale/iso-639.def: Add many more languages from the current ISO 639.
5748         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
5749         * sysdeps/generic/semtimedop.c: New file.
5750         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
5751         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
5752         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5753         * sysvipc/Makefile (routines): Add semtimedop.
5754         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
5755         * sysvipc/sys/sem.h: Declare semtimedop.
5757 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
5759         * configure.in: Check for __register_frame_info in both
5760         -lgcc and -lgcc_eh.
5761         * configure: Regenerated.
5763 2003-04-01  Roland McGrath  <roland@redhat.com>
5765         * scripts/abilist.awk: Allow dots in soname suffix.
5767         * scripts/abilist.awk (emit): Fix bailout condition.
5769 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
5771         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
5772         IA-64 version.
5774         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
5775         register as input to asm.
5777 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
5779         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
5781 2003-04-01  Andreas Jaeger  <aj@suse.de>
5783         * configure.in: Output as/ld as name if version is too old.
5785 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
5787         * configure.in: Don't require an installed C library in the test
5788         for ".set" assembler support.
5790 2003-03-31  Roland McGrath  <roland@redhat.com>
5792         * signal/tst-sigset.c: New file.
5793         * signal/Makefile (tests): Add it.
5795 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
5797         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
5798         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
5799         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
5800         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
5801         (__SIGRTMAX): Adjust accordingly.
5802         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
5803         second compatibility symbol set.
5804         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
5806 2003-03-31  Andreas Schwab  <schwab@suse.de>
5808         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
5809         Define.
5810         (atomic_decrement_and_test): Fix test.
5812 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
5814         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
5815         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
5816         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
5817         * sysdeps/sparc/sparc32/atomicity.h: Removed.
5818         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
5819         * sysdeps/sparc/sparc64/atomicity.h: Removed.
5821 2003-03-30  Roland McGrath  <roland@redhat.com>
5823         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
5825         * intl/po2test.sed: Anchor substitution regexps to fix last change.
5827 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
5829         * intl/po2test.sed: Unify the transformations for msgid and msgstr
5830         and remove a useless s/// command.
5832 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
5834         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
5835         directive into empty .prologue region to ensure that call-chain
5836         is terminated even for the first instruction.
5838         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
5839         to terminate call-chain right from the get-go.
5841         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
5842         stop bit between compare & branch.
5844 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
5846         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
5847         point correctly [PR libc/4993].
5849         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
5850         netlink_open calls if netlink is known to not be available.
5852 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
5854         * configure.in: Add mips64* support.
5855         * sysdeps/mips/bits/endian.h: Make it bi-endian.
5856         * sysdeps/mips/mipsel/bits/endian.h: Removed.
5857         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
5858         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
5859         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
5860         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
5861         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
5862         * sysdeps/mips/Implies: Moved wordsize-32 to...
5863         * sysdeps/mips/mips32/Implies: New file.
5864         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
5865         ret_NOERRNO): New.
5866         (ret, PSEUDO_END): Moved past END.
5867         (PSEUDO): Moved to...
5868         * sysdeps/unix/mips/mips32/sysdep.h: New file.
5869         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
5870         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
5871         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
5872         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
5873         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
5875         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
5876         Re-introduce ENTRY.
5878 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
5880         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
5881         * inet/test-ifaddrs.c: Allow AF_PACKET.
5882         * sysdeps/unix/sysv/linux/kernel-features.h: Add
5883         __ASSUME_NETLINK_SUPPORT.
5885 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
5887         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
5889 2003-03-26  H.J. Lu  <hjl@gnu.org>
5891         * elf/vismod.h (getvarlocal1): Return const char **.
5892         (getvarinmod1): Likewise.
5893         (getvaritcpt1): Likewise.
5894         (getvarlocal2): Likewise.
5895         (getvarinmod2): Likewise.
5896         (getvaritcpt2): Likewise.
5897         (getvaritcpt3): Likewise.
5898         * elf/vismain.c (do_test): Adjusted.
5899         * elf/vismod1.c (getvarlocal1): Return address.
5900         (getvarinmod1): Likewise.
5901         (getvaritcpt1): Likewise.
5902         * elf/vismod2.c (getvarlocal2): Likewise.
5903         (getvarinmod2): Likewise.
5904         (getvaritcpt2): Likewise.
5905         * elf/vismod3.c (getvaritcpt3): Likewise.
5907 2003-03-28  Roland McGrath  <roland@redhat.com>
5909         * elf/vismain.c (do_test): Print both addresses when they don't match.
5911         * scripts/abilist.awk: If given -v filename_regexp and/or -v
5912         libname_regexp when parsing names, then produce output only
5913         for those matching the given regexps.  In combine mode, save all
5914         stanzas for a final sorting by stanza header at the end.
5915         Emit a blank line between stanzas.
5917         * scripts/abilist.awk: When given -v combine=1, do parse_names and
5918         emit a single output stream with lib name in stanza header lines.
5920         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
5922 2003-03-27  Roland McGrath  <roland@redhat.com>
5924         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
5925         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
5927 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5929         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
5930         Return old value. Make asm output reg constraint earlyclobber.
5931         Renamed from...
5932         (__arch_compare_and_exchange_8_acq): ... this.
5933         (__arch_compare_and_exchange_val_16_acq):
5934         Return old value. Make asm output reg constraint earlyclobber.
5935         Renamed from...
5936         (__arch_compare_and_exchange_16_acq): ... this.
5937         (__arch_compare_and_exchange_val_32_acq):
5938         Return old value. Make asm output reg constraint earlyclobber.
5939         Renamed from...
5940         (__arch_compare_and_exchange_32_acq): ... this.
5941         (__arch_compare_and_exchange_val_64_acq):
5942         Renamed from...
5943         (__arch_compare_and_exchange_64_acq): ... this.
5944         (atomic_exchange_and_add): Use local variables and
5945         __arch_compare_and_exchange_val_64_acq.
5946         (atomic_add): Likewise.
5947         (atomic_add_negative, atomic_add_zero): Use local variables.
5949 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
5951         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
5953 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
5955         * Makefile: Remove libmd5crypt goal.
5957 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
5959         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
5960         special handling of relocations against local symbols.
5962 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
5964         * sysdeps/powerpc/bits/atomic.h
5965         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
5966         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
5967         Define PPC64 specific version.
5968         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
5969         Change (mem) constraint to "b".
5970         [__powerpc64__] (__arch_atomic_exchange_and add_64):
5971         Replace addi with add. Change (value) contraint to "r".
5972         Change (mem) constraint to "b".
5973         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
5974         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
5975         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
5976         (__arch_atomic_decrement_if_positive_32): New macro.
5977         (atomic_decrement_if_positive): Use __arch* macros.
5979 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
5981         * sysdeps/ia64/fpu/libm-test-ulps: Update.
5983 2003-03-27  Roland McGrath  <roland@redhat.com>
5985         * scripts/rpm2dynsym.sh: New file.
5986         * Makefile (distribute): Add it.
5988 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
5990         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
5991         ar.unat before returning.  Add missing .mem.offset directives
5992         to ensure file gets assembled without warnings.
5993         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5995 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
5997         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
5998         Return -1 instead of 0 if clock_getres failed.
6000 2003-03-27  Roland McGrath  <roland@redhat.com>
6002         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
6003         header lines and write out foo.symlist files for each foo.so.NN listed.
6005         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
6006         This symbol is exported, and we don't want to hide it.
6007         Add libc_hidden_proto instead.
6008         (_IO_file_jumps): Add libc_hidden_proto.
6009         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
6010         Remove INTVARDEF.
6011         * libio/fileops.c (_IO_file_jumps): Likewise.
6012         * libio/stdfiles.c: Don't use INTUSE on them.
6013         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
6014         * libio/iofopen.c (__fopen_internal): Likewise.
6015         * libio/freopen.c (freopen): Likewise.
6016         * libio/freopen64.c (freopen64): Likewise.
6017         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6019         * Makerules (check-abi) [$(enable-check-abi) = warn]:
6020         Ignore exit status from diff.
6021         * configure.in (enable_check_abi): Document possible value "warn".
6022         Change default to no for now.
6023         * configure: Regenerated.
6025         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
6026         macro calls and a #include <stub-tag.h> at the end.
6027         * Makerules ($(objpfx)stubs): Tweak sed commands.
6029         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
6030         caller column for *xattr syscalls, since they are in sysdeps/generic.
6032         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
6033         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
6035 2003-03-26  Roland McGrath  <roland@redhat.com>
6037         * Makerules (check-abi-config): Use /thread instead of /tls when
6038         use-thread and not just use-tls is set.
6040         * Makerules (update-abi): Put quotes around $(update-abi-config).
6042         * elf/Makefile (check-abi): Depend on check-abi-ld.
6043         (update-abi): Depend on update-abi-ld.
6045 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
6047         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
6048         do not check for errors (unless testing for 32bit variant).
6049         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
6051 2003-03-27  Philip Blundell  <philb@gnu.org>
6053         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
6054         unconditional mov.  Remove nop.
6056         * sysdeps/unix/sysv/linux/kernel-features.h
6057         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
6058         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
6059         when __ASSUME_VFORK_SYSCALL is defined.
6060         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
6061         __ASSUME_MMAP2_SYSCALL.
6062         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
6063         __ASSUME_REALTIME_SIGNALS.
6065 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
6067         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
6068         only if DL_NO_COPY_RELOCS is not defined.
6069         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
6071 2003-03-26  Roland McGrath  <roland@redhat.com>
6073         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
6074         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
6075         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
6076         (sysdep_routines): Add stub-syscalls.
6077         ($(objpfx)stub-syscalls.c): New target.
6078         (generated): Add stub-syscalls.c.
6080         * tls.make.c: Also define use-tls according to USE_TLS macro.
6082 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
6084         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
6085         no-op padding element.
6086         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6087         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6088         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6089         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6091 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
6093         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
6094         condition check for the return value of getgroups32.
6096 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
6098         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
6099         Fix a typo.
6100         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
6101         PSEUDO_END_NOERRNO): Define.
6102         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
6103         Define to PSEUDO_END.
6105 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
6107         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
6109 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
6111         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
6112         * iconvdata/bug-iconv4.c: New file.
6113         * iconvdata/Makefile (tests): Add bug-iconv4.
6115 2003-03-25  H.J. Lu  <hjl@gnu.org>
6117         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
6118         symbols twice.
6119         (_dl_lookup_versioned_symbol): Likewise.
6121 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
6123         * csu/tst-atomic.c (do_test): Add some new
6124         atomic_compare_and_exchange_val_acq, atomic_add_zero,
6125         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
6126         * include/atomic.h (atomic_add_negative, atomic_add_zero):
6127         Prefix local variable so that it doesn't clash with the one
6128         in atomic_exchange_and_add.
6129         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
6130         pointers.
6131         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
6132         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
6133         value into register.
6134         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
6135         Cast newval to long.
6136         * sysdeps/x86_64/bits/atomic.h
6137         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
6138         long.
6139         (atomic_exchange): Cast newvalue to long if sizeof == 8.
6140         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
6141         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6142         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
6144 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
6146         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
6147         bit from backtrace addresses.
6149 2003-03-21  Andreas Schwab  <schwab@suse.de>
6151         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
6152         __chown symbols.
6154 2003-03-25  Roland McGrath  <roland@redhat.com>
6156         * config.make.in (enable-check-abi): New variable from configure.
6157         * configure.in (enable_check_abi): New substituted variable,
6158         controlled by --{enable,disable}-check-abi (default yes).
6159         * configure: Regenerated.
6160         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
6161         on check-abi dependency.
6163 2003-03-26  Andreas Schwab  <schwab@suse.de>
6165         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
6166         * include/atomic.h: Likewise.
6168         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
6170 2003-03-25  Roland McGrath  <roland@redhat.com>
6172         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
6173         (__arch_atomic_exchange_64): New macro.
6174         (atomic_exchange): Use them.
6175         (__arch_atomic_exchange_and_add_32): New macro.
6176         (__arch_atomic_exchange_and_add_64): New macro.
6177         (atomic_exchange_and_add): Use them.
6178         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
6180 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
6182         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
6183         Define.
6184         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
6185         ISA tests.
6186         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
6187         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
6188         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
6189         to decide whether to add padding.
6190         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
6191         to decide whether to add padding.
6192         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
6193         old_kernel_sigaction): Likewise.
6195 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
6197         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
6198         atomic_add_zero were supposed to do.
6199         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
6200         to x86 behavior.
6202         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
6203         This matches the new timer implementation.
6204         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
6205         Likewise.
6206         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
6207         Likewise.
6208         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
6209         timer info for what the kernel provides these days.
6210         (struct sigevent): Add _tid field.
6211         Define SIGEV_THREAD_ID.
6212         Remove struct __pthread_attr_s forward declaration.
6213         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
6214         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6215         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6216         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6218         * Versions.def (librt): Add GLIBC_2.3.3.
6220         * abilist/libpthread.abilist: Update for nptl.
6222 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
6224         * inet/netinet/in.h: Add IPPROTO_SCTP.
6226 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
6228         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
6230 2003-03-24  Philip Blundell  <philb@gnu.org>
6232         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
6233         Remove a1 from clobber list.
6235 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
6237         * timezone/antarctica: Update from tzdata2003a.
6238         * timezone/asia: Likewise.
6239         * timezone/australasia: Likewise.
6240         * timezone/europe: Likewise.
6241         * timezone/iso3166.tab: Likewise.
6242         * timezone/northamerica: Likewise.
6243         * timezone/southamerica: Likewise.
6244         * timezone/zone.tab: Likewise.
6246 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
6248         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
6250 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
6252         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
6253         unwanted expansion by definining to ret.  Patch by Ian Wienand.
6255         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
6256         the parameter description to denote no error checking.  Generate
6257         appropriate pseudo asm code.
6258         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
6259         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
6260         getpgrp, and getppid with 'E'.
6261         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
6262         PSEUDO_END_NOERRNO, and ret_NOERRNO.
6263         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6264         * sysdeps/unix/sysdep.h: Likewise.
6265         * sysdeps/unix/alpha/sysdep.h: Likewise.
6266         * sysdeps/unix/sparc/sysdep.h: Likewise.
6267         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
6268         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
6269         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
6270         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6271         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
6272         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6273         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6274         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6275         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
6276         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6277         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6279 2003-03-23  Roland McGrath  <roland@redhat.com>
6281         * Makeconfig (+includes): Don't use $(last-includes).
6283 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
6285         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
6286         * sysdeps/unix/sysv/linux/configure: Rebuilt.
6288 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
6290         * sysdeps/alpha/fpu/libm-test-ulps: Update.
6291         * sysdeps/arm/libm-test-ulps: Update.
6292         * sysdeps/hppa/fpu/libm-test-ulps: Update.
6293         * sysdeps/ia64/fpu/libm-test-ulps: Update.
6294         * sysdeps/mips/fpu/libm-test-ulps: Update.
6295         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
6296         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6297         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6298         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6299         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
6300         * sysdeps/s390/fpu/libm-test-ulps: Update.
6301         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6303 2003-03-22  Roland McGrath  <roland@redhat.com>
6305         * include/atomic.h: Put parens around all macro arguments.
6306         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
6307         (atomic_compare_and_exchange_val_acq): Use it.
6308         (atomic_compare_and_exchange_bool_acq): Likewise.
6309         (atomic_increment_and_test): Invert sense of test.
6310         (atomic_decrement_and_test): Likewise.
6311         * csu/tst-atomic.c: Update those tests to match.
6313 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
6315         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
6316         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
6317         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
6318         __oldval variable in the macro, since it might be macro argument.
6319         (atomic_decrement_if_positive): Initialize __memp, remove setting
6320         of non-existent variable.
6321         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
6322         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
6323         using atomic_compare_and_exchange_val_acq.
6324         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
6325         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
6326         Renamed from...
6327         (__arch_compare_and_exchange_bool_8_acq): ... this.
6328         (__arch_compare_and_exchange_val_16_acq): Renamed from...
6329         (__arch_compare_and_exchange_bool_16_acq): ... this.
6330         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
6331         from...
6332         (__arch_compare_and_exchange_bool_32_acq): ... this.
6333         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
6334         from...
6335         (__arch_compare_and_exchange_bool_64_acq): ... this.
6336         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
6337         variables types instead of assuming int.
6338         Change prefix of local variables to __arch.
6339         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
6340         Remove.
6341         (atomic_compare_and_exchange_val_acq,
6342         atomic_compare_and_exchange_bool_acq): Define.
6344         * csu/tst-atomic.c: New test.
6345         * csu/tst-atomic-long.c: New test.
6346         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
6348         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
6350         * sysdeps/s390/Versions: Add trailing newline.
6352         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
6353         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
6355 2003-03-22  Andreas Schwab  <schwab@suse.de>
6357         * sysdeps/m68k/fpu/libm-test-ulps: Update.
6359         * sysdeps/m68k/m68020/bits/atomic.h: New file.
6360         * sysdeps/m68k/m68020/atomicity.h: Removed.
6362 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
6364         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
6365         data structures and macros.  Protect from multiple inclusion.
6367         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
6368         typo in #if test.
6370 2003-03-21  Andreas Jaeger  <aj@suse.de>
6372         * sysdeps/i386/fpu/libm-test-ulps: Update.
6374         * math/libm-test.inc (tgamma_test): Recompute some constants with
6375         36 digits precision.
6376         (lgamma_test): Likewise.
6377         (ccos_test): Likewise.
6378         (ccosh_test): Likewise.
6379         (clog10_test): Likewise.
6380         (csin_test): Likewise.
6381         (csinh_test): Likewise.
6382         (ctan_test): Likewise.
6383         (ctanh_test): Likewise.
6385 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
6387         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
6389 2003-03-21  Roland McGrath  <roland@redhat.com>
6391         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
6392         constraint to permit non-constant BIT argument.
6393         (atomic_bit_test_set): Likewise.
6394         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
6395         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
6396         For quadword case, use "i" constraint if __builtin_constant_p and < 32
6397         or "r" constraint otherwise.
6399         * configure.in: Move AC_PROG_CC and other program-finding before all
6400         the version checks.
6401         * configure: Regenerated.
6403 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
6405         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
6406         unaligned copying of 8-15 bytes.  From Chris Demetriou
6407         <cgd@broadcom.com>.  Fix label names.
6408         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
6409         change as to memcpy.S.
6410         * sysdeps/mips/memcpy.S: Formatting changes.
6411         * sysdeps/mips/memset.S: Likewise.
6413 2003-03-21  Roland McGrath  <roland@redhat.com>
6415         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
6417 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
6419         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
6420         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
6422 2003-03-21  Roland McGrath  <roland@redhat.com>
6424         * sysdeps/i386/i486/bits/atomic.h
6425         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
6426         version of the macro to avoid compile-time warnings.
6427         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
6428         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
6429         (atomic_increment, atomic_decrement): Likewise.
6431 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
6433         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
6434         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6436 2003-03-21  Roland McGrath  <roland@redhat.com>
6438         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
6440 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
6442         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
6443         atomic_compare_and_exchange_val_rel,
6444         atomic_compare_and_exchange_bool_acq, and
6445         atomic_compare_and_exchange_bool_rel instead of
6446         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
6447         * sysdeps/i386/i486/bits/atomic.h: Define
6448         __arch_compare_and_exchange_val_*_acq instead of
6449         __arch_compare_and_exchange_*_acq.
6450         * sysdeps/x86_64/bits/atomic.h: Likewise.
6451         * sysdeps/ia64/bits/atomic.h: Define
6452         __arch_compare_and_exchange_bool_*_acq instead of
6453         __arch_compare_and_exchange_*_acq.
6454         * sysdeps/powerpc/bits/atomic.h: Likewise.
6455         * sysdeps/s390/bits/atomic.h: Likewise.
6456         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
6457         * malloc/set-freeres.c: Likewise.
6458         * nscd/cache.c: Likewise.
6459         * stdlib/cxa_finalize.c: Likewise.
6460         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6462 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6464         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
6465         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
6466         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
6468         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
6469         into high and low halves on n64.
6470         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6471         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6472         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6474 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
6476         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
6477         correct atomic_compare_and_exchange_acq semantics.
6479 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6481         * sysdeps/mips/ieee754.h: Remove excess #endif.
6483 2003-03-20  Roland McGrath  <roland@redhat.com>
6485         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
6486         variable.  Remove superfluous memory clobber.
6488         * include/atomic.h: Syntax braino fix.
6490         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
6491         in decimal.  Don't bail if niced at start.  Just check that nice call
6492         bumps the total at all.
6494 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6496         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
6497         including pc, gp, sp and fp, as long long.
6498         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
6499         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
6500         Add gp argument, and set gp in the jmpbuf to it.
6501         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
6503 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
6505         * include/atomic.h: Define atomic_exchange and
6506         atomic_decrement_if_positive if not already defined.  Add some
6507         __builtin_expect.
6508         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
6509         * sysdeps/x86_64/bits/atomic.h: Likewise.
6510         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
6511         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
6512         atomic_exchange, atomic_exchange_and_add, and
6513         atomic_decrement_if_positive
6515 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6517         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
6518         with a single instruction.
6520         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
6521         properly for n64.
6522         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
6523         type.
6524         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
6525         Word before comparing with gotsym.  Take reloc_addr argument as
6526         void*.  Remove the code added for the compiler to drop any
6527         alignment assumptions.
6529 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
6531         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
6532         * include/atomic.h: New file.
6533         * sysdeps/i386/i486/bits/atomic.h: New file.
6534         * sysdeps/x86_64/bits/atomic.h: New file.
6535         * sysdeps/s390/bits/atomic.h: New file.
6536         * sysdeps/sh/bits/atomic.h: New file.
6537         * sysdeps/ia64/bits/atomic.h: New file.
6538         * sysdeps/powerpc/bits/atomic.h: New file.
6539         * sysdeps/generic/bits/atomic.h: New file.
6540         * sysdeps/i386/i486/atomicity.h: Removed.
6541         * sysdeps/x86_64/atomicity.h: Removed.
6542         * sysdeps/s390/s390-32/atomicity.h: Removed.
6543         * sysdeps/s390/s390-64/atomicity.h: Removed.
6544         * sysdeps/ia64/atomicity.h: Removed.
6545         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
6546         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
6547         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
6548         use of macros from atomicity.h to new names and semantics.
6549         * gmon_mcount.c: Likewise.
6550         * malloc/set-freeres.c: Likewise.
6551         * nscd/cache.c: Likewise.
6552         * stdlib/cxa_finalize.c: Likewise.
6553         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6555 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
6557         * sysdeps/mips/ieee754.h: New file, suitable to replace both
6558         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
6559         mips-specific for now.
6561 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
6563         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
6564         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
6565         * stdlib/tst-strtod.c: Add test for the bug.
6567         * posix/tst-nice.c (do_test): Remove invalid of return value.
6568         Don't run test if initial level != 0.
6570 2003-03-19  Amos Waterland  <apw@us.ibm.com>
6572         * posix/tst-nice.c: New file.
6573         * posix/Makefile (tests): Add tst-nice.
6575 2003-03-18  Roland McGrath  <roland@redhat.com>
6577         * abilist: New directory of libfoo.abilist files maintained using
6578         scripts/merge-abilist.awk and "make update-abi" rules.
6579         * Makefile (distribute): Add abilist/*.abilist.
6580         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
6581         Depend on check-abi.
6583         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
6584         * configure: Regenerated.
6586         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
6588 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
6590         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
6591         correctly.
6593 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
6595         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
6597 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
6599         * Versions.def: Add GLIBC_2.3.3 for libpthread.
6601 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
6603         * sysdeps/generic/libc-start.c [!SHARED &&
6604         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
6606 2003-03-17  Roland McGrath  <roland@redhat.com>
6608         * include/ctype.h: Revert last change.
6610 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
6612         * argp/tst-argp1.c: Use test-skeleton.c.
6613         * locale/tst-C-locale.c: Likewise.
6615 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
6617         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
6618         * sysdeps/mips/mips64/n64/Implies: New file.
6619         * sysdeps/mips/mips64/n64/Makefile: New file.
6620         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
6621         * sysdeps/mips/mips64/n32/Implies: New file.
6622         * sysdeps/mips/mips64/n32/Makefile: New file.
6623         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
6624         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
6625         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
6626         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
6627         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
6628         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
6629         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
6630         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
6631         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
6632         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
6633         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
6634         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
6635         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
6636         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
6638         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
6639         lib64 for mips64/n64 and lib32 for mips64/n32.
6640         (ldd_rewrite_script): Needed for all mips64 configurations.
6641         * sysdeps/unix/sysv/linux/configure: Rebuilt.
6642         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
6643         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
6645         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
6646         well.
6648         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
6649         asm/unistd.h into asm-unistd.h.
6650         * sysdeps/unix/sysv/linux/mips/configure: Generated.
6651         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
6652         of syscall list.
6653         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
6654         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
6655         asm/unistd.h.
6657         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
6658         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
6659         long type for registers on n32.
6661         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
6662         3 ABIs.
6663         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
6664         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
6665         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
6666         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
6667         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
6668         * sysdeps/unix/mips/brk.S: Likewise.
6669         * sysdeps/unix/mips/sysdep.S: Likewise.
6670         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
6671         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
6672         * sysdeps/mips/sys/ucontext.h: Likewise.
6673         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
6674         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
6675         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
6676         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6677         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
6678         * sysdeps/mips/mips64/setjmp.S: Likewise.
6679         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
6680         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
6681         64-bit types.
6683 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
6685         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
6686         not at function level.
6687         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
6689 2003-03-15  Roland McGrath  <roland@redhat.com>
6691         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
6692         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
6693         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
6694         * nis/nis_table.c (__create_ib_request): Likewise.
6696         * posix/fnmatch_loop.c: Add casts for signedness.
6697         * nss/nss_files/files-hosts.c: Likewise.
6698         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6699         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
6700         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
6702         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
6703         get errors into the log file.
6704         (libc_cv_broken_visibility_attribute): Likewise.
6705         (libc_cv_broken_alias_attribute): Likewise.
6706         (libc_cv_asm_weak_directive): Likewise.
6707         (libc_cv_need_minus_P): Likewise.
6708         (libc_cv_dot_text): Likewise.
6709         (libc_cv_asm_global_directive): Likewise.
6710         (libc_cv_asm_type_prefix): Likewise.
6711         * configure: Regenerated.
6713         * nscd/cache.c (cache_search): Give first arg type `request_type'.
6714         * nscd/nscd.h: Update decl.
6716         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
6717         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6718         * elf/dl-close.c (_dl_close): Likewise.
6719         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
6720         * io/fts.c (fts_build): Likewise.
6721         * elf/cache.c (add_to_cache): Likewise.
6722         * locale/programs/locarchive.c (show_archive_content): Likewise.
6724         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
6726         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
6727         happy.
6728         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
6730 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
6732         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
6733         code for most parts.
6735 2003-03-15  Roland McGrath  <roland@redhat.com>
6737         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
6738         * sysdeps/unix/sysv/linux/system.c: ... here.
6739         (FORK): Don't #define if already #define'd.
6740         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
6741         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
6742         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
6744         * dlfcn/tst-dlinfo.c: New file.
6745         * dlfcn/Makefile (tests): Add tst-dlinfo.
6746         ($(objpfx)tst-dlinfo): New target.
6748         * dlfcn/dlinfo.c: New file.
6749         * dlfcn/Makefile (libdl-routines): Add it.
6750         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
6751         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
6752         [__USE_GNU] (RTLD_DI_*): New enum constants.
6753         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
6754         * elf/dl-load.c (cache_rpath): New inline function.
6755         (_dl_map_object): Use it.
6756         (_dl_rtld_di_serinfo): New function.
6757         * sysdeps/generic/ldsodefs.h: Declare it.
6758         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6760         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
6761         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
6762         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
6763         (__libc_start_main): Just call the generic one for most of the work.
6765         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
6766         static function by that name instead of BP_SYM (__libc_start_main).
6767         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
6768         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
6769         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
6771         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
6772         Use this macro for extra AT_* cases.
6773         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
6774         New macro, guts from ...
6775         (__aux_init_cache): ... here, function removed.
6776         (DL_PLATFORM_INIT): Don't define this.
6778         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
6779         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
6781         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
6783 2003-03-14  Roland McGrath  <roland@redhat.com>
6785         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
6787 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
6789         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
6791         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
6792         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
6794 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
6796         * sysdeps/mips/fpu/bits/mathdef.h: New.
6797         (__NO_LONG_DOUBLE_MATH): Define for o32.
6799         * sysdeps/mips/sys/asm.h: Formatting changes.
6800         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
6801         (CPADD): Define for all of them.
6802         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
6803         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
6804         NARGSAVE): Define per ABI spec.
6805         (END): Don't redefine.
6806         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
6807         LONG_SRAV): Remove duplicate definitions.
6808         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
6809         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
6810         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
6811         (PTR_LA): Define for all 3 ABIs.
6813         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
6814         (elf_machine_matches_host): Prevent linking of o32 and n32
6815         together.
6816         (elf_machine_dynamic): Document assumption on $gp.
6817         (STRINGXP, STRINGXV, STRINGV_): New macros.
6818         (elf_machine_load_address): Use them to stringize PTR_LA and
6819         PTR_SUBU.
6820         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
6821         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
6822         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
6823         (__dl_runtime_resolve): Cast the symtab initializer to the
6824         right type.
6825         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
6826         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
6827         Handle 64-bit R_MIPS_REL composite relocation and accept
6828         R_MIPS_64 relocations to shift addend size to 64 bits.
6829         Document assumption regarding local GOT entries.  Document
6830         backward-compatibility departing from the ABI behavior in
6831         applying relocations that reference section symbols, no longer
6832         used.  Support relocations to mis-aligned offsets.
6833         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
6835         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
6837         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
6838         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
6839         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
6840         restore_rt functions.  Use them.
6842         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
6843         .set mips2 on new abis.
6845 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
6847         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
6848         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
6849         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
6850         * sysdeps/posix/pathconf.c: Likewise.
6851         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6852         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6853         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
6855         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
6856         words.
6858 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
6860         * include/gmp.h: Include/gmp-mparam.h.
6861         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
6862         gmp-impl.h.
6864         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
6865         ELF_MACHINE_NO_RELA is set.
6866         * elf/rtld.c (dl_main): No prelink support for REL-only.
6868         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
6869         FLAG_MIPS64_LIBN64): Define.
6870         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
6872         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
6873         * sysdeps/mips/memset.S: Likewise.
6874         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
6875         depending on the ABI.
6877         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
6878         Don't .set mips2 on new abi.
6879         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
6881         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
6883 2003-03-13  Roland McGrath  <roland@redhat.com>
6885         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
6886         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
6888 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
6890         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
6891         literals long long.
6892         * stdlib/fpioconst.c: Likewise.
6893         * stdlib/strtod.c: Likewise.
6895         * sysdeps/mips/add_n.S: Use L macro for local labels.
6896         * sysdeps/mips/addmul_1.S: Likewise.
6897         * sysdeps/mips/lshift.S: Likewise.
6898         * sysdeps/mips/memcpy.S: Likewise.
6899         * sysdeps/mips/memset.S: Likewise.
6900         * sysdeps/mips/mul_1.S: Likewise.
6901         * sysdeps/mips/rshift.S: Likewise.
6902         * sysdeps/mips/sub_n.S: Likewise.
6903         * sysdeps/mips/submul_1.S: Likewise.
6904         * sysdeps/mips/mips64/add_n.S: Likewise.
6905         * sysdeps/mips/mips64/addmul_1.S: Likewise.
6906         * sysdeps/mips/mips64/lshift.S: Likewise.
6907         * sysdeps/mips/mips64/mul_1.S: Likewise.
6908         * sysdeps/mips/mips64/rshift.S: Likewise.
6909         * sysdeps/mips/mips64/sub_n.S: Likewise.
6910         * sysdeps/mips/mips64/submul_1.S: Likewise.
6911         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
6912         conventions.  Define END as in sys/asm.h.
6913         * sysdeps/unix/mips/sysdep.S: Likewise.
6914         * sysdeps/unix/mips/wait.S: Likewise.
6915         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
6917         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
6918         Cast shifted values that may be too narrow to mp_limb_t.
6919         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
6920         Likewise.
6921         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
6922         Likewise.
6923         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
6924         (__mpn_extract_long_double): Likewise.
6925         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
6926         (__mpn_construct_long_double): Likewise.
6927         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
6928         (__mpn_extract_long_double): Likewise.
6929         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
6930         (__mpn_construct_long_double): Likewise.
6932 2003-03-13  Roland McGrath  <roland@redhat.com>
6934         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
6935         entries in the map file match too.
6937 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
6939         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
6940         label .Lthread_start since current binutils don't allow branches
6941         to globally visible symbols.
6943 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
6945         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
6946         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
6947         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
6948         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
6949         clobbered by the syscall.
6950         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
6951         ASM_ARGS_6): Change constraints from r to index of corresponding
6952         output register.
6953         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
6954         ptid and ctid to match kernel.
6955         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
6957 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
6959         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
6960         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
6961         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
6963 2003-03-11  Roland McGrath  <roland@redhat.com>
6965         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6966         Check SYM_MAP rather than SYM as definedness check.
6967         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
6968         Don't handle R_PPC64_REL24 reloc.
6969         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
6971         * sysdeps/powerpc/powerpc64/dl-machine.h
6972         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
6973         block, so we cover all the TPREL16* flavors without 6 ||s.
6974         [USE_TLS] (elf_machine_tprel): New function.
6975         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
6976         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
6977         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
6979 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
6981         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
6982         instead of jalr to invoke subroutine so restoring the $gp register
6983         will work properly.
6985 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6987         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
6988         to __NR_pread if not defined.
6989         (__NR_pwrite64): Define to __NR_pwrite if not defined.
6991 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
6993         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
6994         * sysdeps/unix/sysv/linux/kernel-features.h
6995         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
6996         kernel >= 2.5.64.
6998 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
7000         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
7001         allocate space even for the trailing '/'.
7002         Reported by John Reiser <jreiser@BitWagon.com>.
7004         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
7005         ASM_CLOBBERS_6): Define.
7006         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
7007         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
7008         to match IA-32 order.
7009         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
7011 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
7013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
7014         Copy extra params for NPTL to registers used in clone syscall.
7016 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7018         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
7019         call names for pread and pwrite.
7021 2003-03-10  Roland McGrath  <roland@redhat.com>
7023         * dlfcn/Makefile (libdl-routines): Add dladdr1.
7024         * dlfcn/dladdr1.c: New file.
7025         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
7026         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
7027         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
7028         a const ElfNN_Sym ** to fill in.
7029         * include/dlfcn.h: Update decl.  Include <link.h>.
7030         * dlfcn/dladdr.c (dladdr): Update caller.
7031         * malloc/mtrace.c (tr_where): Likewise.
7032         * sysdeps/generic/elf/backtracesyms.c: Likewise.
7033         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7034         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
7035         * Versions.def (libdl): Define GLIBC_2.3.3 set.
7037         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
7038         assembler command.
7039         * sysdeps/unix/Makefile (compile-syscall): New variable.
7040         Pass -g0 to compiler for assembling syscall stubs from stdin.
7042         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
7043         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
7044         Define these to do nothing.
7046         * configure.in: New check for -g on .S files.
7047         * configure: Regenerated.
7048         * config.make.in (have-cpp-asm-debuginfo): New variable.
7049         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
7050         * Makeconfig (ASFLAGS): New variable, if undefined and
7051         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
7052         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
7054 2003-03-09  Roland McGrath  <roland@redhat.com>
7056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
7057         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
7059 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
7061         * po/fi.po: Update from translation team.
7062         * po/ca.po: Likewise.
7063         * po/da.po: Likewise.
7065 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
7067         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
7069 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
7071         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
7073         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
7075 2003-03-07  Roland McGrath  <roland@redhat.com>
7077         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
7078         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
7080 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
7082         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
7083         stubs, we have INLINE_SYSCALL.
7084         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
7085         MAP_NONBLOCK.
7087 2003-03-06  Roland McGrath  <roland@redhat.com>
7089         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
7090         permanent extent and add a comment about testing its implicit teardown.
7092 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7094         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
7096 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
7098         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
7099         reversed __builtin_expect expectation.
7101 2003-03-05  Roland McGrath  <roland@redhat.com>
7103         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
7104         * libio/swscanf.c: Likewise.
7105         * libio/swprintf.c: Likewise.
7107 2003-03-04  Roland McGrath  <roland@redhat.com>
7109         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
7110         (elf_machine_rela): Always use RESOLVE_MAP, needed for
7111         R_PPC64_JMP_SLOT as well as TLS cases.
7112         (BIT_INSERT): Move parenthesis where it ought to have been.
7113         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
7115         * posix/confstr.c (confstr): Correct STRING_LEN values for
7116         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
7117         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
7119 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
7121         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
7123 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
7125         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
7126         clone parameters.
7128         * po/sv.po: Update from translation team.
7130 2003-03-04  Andreas Jaeger  <aj@suse.de>
7131             Ulrich Drepper  <drepper@redhat.com>
7133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
7135 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
7137         * sysdeps/generic/dl-sysdep.h: Add double include protection.
7139         * po/tr.po: Update from translation team.
7141         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
7142         are holes between the segments.  Only call mprotect to set
7143         proection to PROT_NONE if there are some.
7145         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
7146         Update comment.
7148         * include/sched.h (__clone2): Use ... instead of adding all the
7149         new parameters.
7151 2003-03-03  Roland McGrath  <roland@redhat.com>
7153         * elf/dl-load.c (struct filebuf): Fix typo in last change.
7155         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
7156         PI_STATIC_AND_HIDDEN.
7158 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
7160         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
7161         flags.
7162         * include/sched.h: Update clone2 prototype.
7164 2003-03-03  Andreas Jaeger  <aj@suse.de>
7166         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
7167         (llrint): Use it to correct return type.
7168         (lrint): Likewise.
7169         (lround): Likewise.
7170         (llround): Likewise.
7172 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
7174         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
7175         byte filebuf size.
7177         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
7178         if ccs parameter isn't valid.  Reported by Andreas Schwab.
7180 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7182         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
7183         for system call numbers > 255.
7184         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
7185         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
7186         INTERNAL_SYSCALL): Likewise.
7187         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
7188         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
7189         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
7190         INTERNAL_SYSCALL): Likewise.
7192 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7194         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
7195         array if it is the initial dtv.
7197 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
7199         * po/es.po: Update from translation team.
7200         * po/fr.po: Likewise.
7201         * po/gl.po: Likewise.
7202         * po/sk.po: Likewise.
7203         * po/sv.po: Likewise.
7205         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
7206         * misc/sys/mman.h: Add prototype for remap_file_pages.
7207         * sysdeps/generic/remap_file_pages.c: New file.
7208         * misc/Makefile (routines): Add remap_file_pages.
7209         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
7211         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
7212         and MAP_NONBLOCK.
7213         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7214         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
7215         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7216         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7217         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
7218         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
7219         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
7220         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
7222 2003-03-03  Roland McGrath  <roland@redhat.com>
7224         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
7225         * sysdeps/ia64/dl-machine.h: Likewise.
7226         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
7227         argument type.
7228         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
7230         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
7231         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
7232         * locale/Versions (libc: GLIBC_2.3): Move those to ...
7233         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
7234         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
7235         * Versions.def (libc): Add GLIBC_2.3.3 set.
7237         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
7238         * sysdeps/ia64/dl-machine.h: Update decl.
7240 2003-03-03  Andreas Jaeger  <aj@suse.de>
7242         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
7244 2003-03-02  Roland McGrath  <roland@redhat.com>
7246         * scripts/abilist.awk: Reject data items with apparent 0 size.
7248         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
7249         after foo.* as if it were a duplicate.
7251         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
7253 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
7255         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
7257         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
7258         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
7259         if not already defined.  Use SYSDEP_GETRES to allow other files to
7260         provide alternative implementations.
7261         * sysdeps/unix/sysv/linux/clock_getres.c: New file
7262         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
7263         if not already defined.  Use SYSDEP_GETTIME to allow other files to
7264         provide alternative implementations.
7265         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
7266         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
7267         if not already defined.  Use SYSDEP_GETTIME to allow other files to
7268         provide alternative implementations.
7269         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
7270         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
7271         other files to provide alternative implementations.  Rearrange
7272         tests for invalid parameters.
7273         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
7274         * sysdeps/unix/sysv/linux/sysconf.c: New file.
7275         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7276         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
7277         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
7278         _POSIX_MONOTONIC_CLOCK.
7280 2003-03-02  Roland McGrath  <roland@redhat.com>
7282         * scripts/merge-abilist.awk: More checks for bogus input.
7283         Uniquify duplicate config names.
7285         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
7287         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
7288         from dl_reloc_overflow, make global.
7289         (__process_machine_rela): Update callers.
7290         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
7291         Add attribute_hidden to __process_machine_rela decl.
7292         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
7294         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
7295         variable.
7297         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
7298         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
7299         (elf_machine_rela): Clean up.
7301         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
7303         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
7304         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
7305         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
7306         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
7307         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
7308         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
7309         new relocs for TLS.
7311         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
7312         macros out of [SHARED].
7313         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
7315         * elf/elf.h: Define R_PPC_* relocs for TLS support.
7316         Clean up R_PPC64_* macro definition comments.
7318         * configure.in: In "running configure fragment for" message,
7319         omit $srcdir from the name if we prepended it.
7320         * configure: Regenerated.
7322         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
7323         From Jakub Jelinek <jakub@redhat.com>.
7325         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
7326         which duplicated the O_DIRECT defn.
7328 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
7330         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
7331         random functions.
7333 2003-03-01  Andreas Schwab  <schwab@suse.de>
7335         * resolv/Makefile (tests): Don't depend on
7336         $(objpfx)mtrace-tst-leaks when cross compiling.
7338         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
7339         __libc_stack_end through GOT since it is a global symbol.
7341 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
7343         * argp/argp.h: Fix a typo.
7344         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
7346         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
7348 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
7350         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
7351         char *.
7352         (get_subexp): Likewise.
7354 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
7356         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
7358 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
7360         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
7362 2003-02-27  Roland McGrath  <roland@redhat.com>
7364         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
7365         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
7366         repeat it and avoids the test for the common case.
7367         Clean up and fix calculations for TLS relocs.
7369         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
7370         * sysdeps/powerpc/dl-tls.h: ... here.
7371         (TLS_TP_OFFSET): New macro.
7373         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
7375 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
7377         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
7378         code generation changes in recent gcc.
7380 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
7382         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
7383         Rename argument to avoid symbol conflict.
7385         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
7386         [__USE_GNU] (O_DIRECT): New macro.
7388 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
7390         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
7391         unwind info.
7393 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
7395         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
7396         initializer anymore now that res_thread_freeres is more careful.
7398         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
7399         except the PKTINFO.  Reset interface in PKTINFO.
7400         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
7402 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
7404         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
7405         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
7406         Define.
7407         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
7408         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
7409         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
7410         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
7412         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
7413         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
7415 2003-02-25  Andreas Jaeger  <aj@suse.de>
7417         * manual/memory.texi (Malloc Tunable Parameters): Clarify
7418         behaviour of M_MMAP_THRESHOLD.
7420 2003-02-25  Roland McGrath  <roland@redhat.com>
7422         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
7423         zero, inidicating _res was not initialized yet.
7425 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
7427         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
7428         test.
7430 2003-02-24  Roland McGrath  <roland@redhat.com>
7432         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
7434 2003-02-23  Roland McGrath  <roland@redhat.com>
7436         * sysdeps/posix/pause.c: New file.
7437         * sysdeps/unix/common/pause.c: File removed.
7439 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
7441         * sysdeps/generic/bits/confname.h: Remove #ifs.
7443         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
7444         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
7446         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
7447         element to -1.
7449 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
7451         * sysdeps/generic/dl-sysdep.c: Avoid warning.
7453 2003-02-22  Roland McGrath  <roland@redhat.com>
7455         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
7456         * resolv/Makefile (tests): Add tst-leaks.
7457         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
7458         (tst-leaks-ENV): New variable.
7459         ($(objpfx)mtrace-tst-leaks): New target.
7460         (tests): Depend on it.
7462         * include/libc-internal.h: Declare __libc_thread_freeres.
7464         * Makerules: Fix last change to use $($(subdir)-version) when set.
7466         * Makerules (install-lib-nosubdir): Depend on installed
7467         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
7468         regardless of the libfoo.so target's dependencies.
7470         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
7471         Use that in $(MAKE) calls.
7473 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
7475         * catgets/gencat.c (read_input_file): Collision between
7476         auto-assigned numbers and user-defined nubmers is not fatal.
7477         Handle it.
7478         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
7479         * catgets/Makefile: Add rules to run test2.msg test.
7480         * catgets/test2.msg: New file.
7482         * catgets/gencat.c (main): Return 1 if messages have been printed.
7484         * iconv/iconv_prog.c (main): Unify messages.
7486         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
7487         when shifting retval.
7488         * stdlib/tst-strtod.c (main): Add strtold test case.
7489         Reported by Fred J. Tydeman <tydeman@tybor.com>.
7491 2003-02-21  Roland McGrath  <roland@redhat.com>
7493         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
7494         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
7495         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
7497         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
7498         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
7499         (res_thread_freeres): New function, on __libc_thread_subfreeres and
7500         __libc_subfreeres.
7502         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
7503         * malloc/thread-freeres.c: New file.
7504         * malloc/Makefile (aux): Add it.
7505         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
7506         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
7507         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
7509         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
7510         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
7512 2003-02-21  Roland McGrath  <roland@frob.com>
7514         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
7516         * iconvdata/Makefile (tests): Add bug-iconv3 only if
7517         [$(have-thread-library) = yes].
7519 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
7521         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
7523         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
7524         not chechk for errors (unless testing for 32bit variant).
7525         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
7526         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
7527         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
7529 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
7531         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
7532         Check for signed overflow, not unsigned.
7534         * sysdeps/sparc/sparc64/elf/configure.in: New file.
7535         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
7536         Use -fcall-used-g6, not -fcall-used-g7.
7538 2003-02-21  Andreas Jaeger  <aj@suse.de>
7540         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
7541         mode.
7543         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
7544         clear whole mxcsr but only exceptions.
7546 2003-02-21  Roland McGrath  <roland@redhat.com>
7548         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
7549         for libfoo.so that need $(make-link) rules.
7551 2003-02-21  Roland McGrath  <roland@frob.com>
7553         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
7554         to match existing struct stat layout in mig protocols.
7556 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7558         * version.h (VERSION): Bump to 2.3.2.
7560         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
7561         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
7562         and dl-sysdep.h.
7563         * sysdeps/generic/Dist: Add sysdep-cancel.h.
7564         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
7565         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
7566         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
7567         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
7568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
7569         ucontext_i.h.
7570         * Makefile (distribute): Add include/stubs-prologue.h,
7571         include/gnu/stubs.h, scripts/merge-abilist.awk, and
7572         scripts/extract-abilist.awk.
7574 2003-02-20  Roland McGrath  <roland@redhat.com>
7576         * math/Makefile (distribute): Don't add generated files.
7578 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7580         * math/Makefile: Rearrange variable definitions slightly to get
7581         definition in the right order.
7583 2003-02-20  Roland McGrath  <roland@redhat.com>
7585         * Makerules: Clean up conditional around include of tls.make.
7586         * Make-dist: Export generating=t to prevent using that.
7587         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
7589 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7591         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
7592         around in search if port IPPORT_RESERVED/2 has been test.
7594 2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
7596         * posix/regcomp.c: Remove inclusions.
7597         * posix/regexec.c: Likewise.
7598         * posix/regex_internal.c: Likewise.
7599         * posix/regex_internal.h: Add inclusions here.
7600         * posix/regex.c: Only include sys/types.h before regex.h.  Include
7601         regex_internal.h here.  Include regex_internal.c before regcomp.c
7602         and regexec.c (might expose more opportunities to the C compiler).
7604         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
7606         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
7607         [!_LIBC] (__wcrtomb): New definition.
7608         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
7609         HAVE_LOCALE_H as well.
7611 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7613         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
7614         patch to check for system call errors.
7616 2002-07-24  Philip Blundell  <philb@gnu.org>
7618         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
7619         on unknown systems.
7621 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7623         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
7624         * sysdeps/unix/sysv/linux/kernel-features.h
7625         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
7626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
7627         if possible.
7628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
7629         interprocedure branches.
7630         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
7631         * sysdeps/powerpc/nofpu/Dist: ...here.
7632         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
7633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
7634         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
7635         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
7636         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
7638 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
7640         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
7642 2003-02-20  Philip Blundell  <philb@gnu.org>
7644         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
7645         missing arguments to INTERNAL_SYSCALL_ERROR_P and
7646         INTERNAL_SYSCALL_ERRNO.
7648 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7650         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
7651         for __ASSUME_32BITUIDS.
7653 2003-02-20  Andreas Schwab  <schwab@suse.de>
7655         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
7656         POSIX_MADV_* constants.
7658 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7660         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
7661         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
7662         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
7663         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
7665 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
7667         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
7669 2003-02-16  Roland McGrath  <roland@redhat.com>
7671         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
7673 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
7675         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
7676         decimal input digits.
7677         * stdlib/tst-strtod.c (main): Add test for strtof bug.
7679 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
7681         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
7682         invalid file descriptors and missing access permissions.
7684 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
7686         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
7687         been found.
7689         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
7690         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
7691         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
7692         and LOGIN_NAME_MAX.
7694 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
7695             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7697         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
7698         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
7699         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
7700         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
7701         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
7703 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7705         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
7706         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
7707         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
7708         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
7709         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
7710         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
7712         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
7713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
7714         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
7715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
7717         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
7718         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
7719         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
7720         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
7722 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
7724         * nss/getent.c (print_hosts): Print all IP addresses of one host.
7726 2003-02-15  Roland McGrath  <roland@frob.com>
7728         * sysdeps/mach/hurd/tls.h: New file.
7729         * sysdeps/mach/hurd/i386/tls.h: New file.
7731         * mach/errsystems.awk: Include <errno.h> in generated output.
7733         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
7734         use target mach-before-compile instead of generated.
7735         (mach-before-compile): New target.
7736         * Makerules: Disable use of tls.make if $(generating) is set.
7737         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
7738         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
7739         mach-shortcuts.h so mach/ generation happens before hurd/.
7741 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
7743         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
7744         of demorm correctly if low word is zero.
7745         Reported by Fred J. Tydeman <tydeman@tybor.com>.
7746         * math/libm-test.inc (nextafter_test): New test, but disabled due
7747         to gcc bug.
7749         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
7750         counter and only call __exit_thread if this is not the last thread.
7752 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
7754         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
7755         subtracting map->l_tls_offset.
7757 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
7759         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
7760         _CS_GNU_LIBPTHREAD_VERSION.
7761         * posix/conststr.c: Handle these new values.
7762         * posix/getconf.c: Likewise.
7764         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
7765         masking of version index.
7766         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
7768 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
7770         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
7771         correctly.  Reported by Thorsten Kukuk.
7773 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
7775         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
7776         _BSD_SOURCE to compiler.
7777         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
7778         Patches by Alan Modra.
7780 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
7782         * io/ftwtest.c: Get current working directory before and after the
7783         nftw call and make sure they match.
7785 2003-02-08  Jim Meyering  <jim@meyering.net>
7787         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
7788         the current directory, not just when DIR contains a slash.
7789         Reported by Manoj Srivastava.
7791 2003-02-07  Jim Meyering  <jim@meyering.net>
7793         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
7794         Include autoconf-recommended block of dirent/NAMELEN-related
7795         definitions and includes.  Use NAMELEN throughout, rather than
7796         _D_EXACT_NAMLEN.
7797         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
7798         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
7799         (stpcpy): Declare, if necessary.
7800         (mempcpy): Define, if necessary.
7801         [!_LIBC] (__stpcpy, __mempcpy): Define.
7802         [!_LIBC] (LXSTAT, XSTAT): Define.
7803         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
7804         (find_object): Don't use c99-style struct initializer.
7805         Tweak wording in a couple comments.
7807 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7809         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
7810         for SH.
7811         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
7812         after the trapa instruction.
7813         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
7814         parameters.
7815         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
7816         (NEED_SYSCALL_INST_PAD): Define.
7817         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
7818         avoid to use definition for the kernel.
7819         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7820         Save and restore the frame pointer.
7821         (SYSCALL_INST_PAD): Define.
7822         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7823         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
7824         after trapa instruction.
7825         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7826         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7828 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
7830         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
7831         so that it can have aliases.
7832         * inet/herrno.c (h_errno): Put it into .bss not .data section.
7834 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
7836         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
7837         (profile_fixup): Likewise.
7838         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
7840 2002-11-24  Robert Love  <rml@tech9.net>
7842         * posix/sched.h: Second parameter of sched_setaffinity and
7843         sched_getaffinity is `unsigned int', not `unsigned long'.
7844         * sysdeps/generic/sched_setaffinity.c: Likewise.
7845         * sysdeps/generic/sched_getaffinity.c: Likewise.
7847 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
7849         * debug/catchsegv.sh: Fix typo in error messsage.
7850         Reported by John Levon <levon@movementarian.org>.
7852         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
7853         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
7854         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
7855         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7857         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7858         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7860         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
7861         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
7863 2003-02-05  Jim Meyering  <jim@meyering.net>
7865         Fix a heap-corrupting bug.
7866         * io/ftw.c: Include <limits.h>.
7867         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
7868         (process_entry): Allocate enough space to hold the resulting
7869         file name.  Don't presume that 2*dirbufsize is enough.
7870         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
7871         it is guaranteed to be defined.
7873 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
7875         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
7876         * iconvdata/bug-iconv3.c: New file.
7878 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7880         * sysdeps/unix/sysv/linux/s390/system.c: New file.
7882 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
7884         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
7885         check.
7886         * config.h.in (BROKEN_SPARC_WDISP22): Add.
7888 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
7890         * sysdeps/i386/i686/memmove.S: New file.
7892 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
7895         Include kernel-features.h
7896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
7897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
7898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
7899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
7901 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
7903         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
7905 2003-01-25  Jim Meyering  <jim@meyering.net>
7907         * io/ftw.c (object_compare): Compare inode numbers before device
7908         numbers, since the former are much more likely to differ.
7910 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
7912         * time/tzfile.c (__tzfile_compute): Change return value type to
7913         void.  Adjust return statements.
7914         * include/time.h (__tzfile_compute): Adjust prototype.
7916 2003-02-01  Jim Meyering  <jim@meyering.net>
7918         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
7919         always returns 1.
7921 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7924         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
7926 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
7929         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
7930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
7931         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
7932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
7933         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
7934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
7935         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
7937 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7939         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
7940         back to 2.4.19 for powerpc64.
7941         * sysdeps/unix/sysv/linux/kernel-features.h
7942         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
7943         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
7945 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
7947         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
7948         platforms with strange alignment requirements on wchar_t.
7950 2003-01-31  Andreas Schwab  <schwab@suse.de>
7952         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
7953         aliases, already added by make-syscalls.sh.
7954         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7955         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7956         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7957         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7958         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7959         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7960         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7961         * sysdeps/unix/inet/syscalls.list: Likewise.
7962         * sysdeps/unix/syscalls.list: Likewise.
7964 2003-01-31  Andreas Schwab  <schwab@suse.de>
7966         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
7967         any more.
7969 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7971         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
7972         not l to load tls from stack.
7974 2003-01-30  Roland McGrath  <roland@redhat.com>
7976         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
7977         null argument before all else.
7978         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
7980 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7982         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
7983         Move to RESOLVE protected part of the header.
7984         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
7985         Likewise.
7987 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
7989         * stdio-common/Makefile (tests): Add bug15.
7990         (bug15-ENV): Define.
7991         * stdio-common/bug15.c: New file.
7993 2002-10-07  Wolfram Gloger  <wg@malloc.de>
7995         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
7996         to foreign sbrk()'s if arena is contiguous.  Bug report from
7997         Bruno Haible <bruno@clisp.org>.
7999 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
8001         * sysdeps/s390/libc-tls.c: Include stdlib.h.
8003 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
8005         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
8006         ps.__count.
8008 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
8010         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
8011         restoring of %r6.
8012         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
8013         64-bit load.
8014         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
8016 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
8018         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
8019         (allocate_static_tls): ...here.  Add __attribute_noinline__.
8020         Don't return on failure.
8021         (_dl_reloc_bad_type): Add __attribute_noinline__.
8022         * elf/do-rel.h (elf_dynamic_do_rel): Add
8023         __attribute__((always_inline)).
8024         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
8025         elf_machine_rel_relative, elf_machine_rela_relative,
8026         elf_machine_lazy_rel): Add prototypes with
8027         __attribute__((always_inline)).
8029 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
8031         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
8033 2003-01-29  Roland McGrath  <roland@redhat.com>
8035         * configure.in: Barf if configured in $srcdir.
8037 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
8039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8040         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
8042 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8044         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
8045         clone parameters to match the order used on ia32.
8046         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8048 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8050         * elf/elf.h: Add new s390 relocs.
8051         * elf/tls-macros.h: Add s390 versions.
8052         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
8053         * sysdeps/s390/dl-tls.h: New file.
8054         * sysdeps/s390/libc-tls.c: New file.
8055         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
8056         relocs for class PLT.
8057         (elf_machine_rela): Handle TLS relocs.
8058         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8059         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
8060         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8061         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
8062         CLONE_CHILD_*TID flags.
8063         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8064         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
8065         bit offset.
8066         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8067         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8068         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
8069         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
8070         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
8071         Likewise.
8072         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8073         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
8074         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
8075         variants.
8076         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
8077         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
8078         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
8079         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
8080         variants.
8082 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
8084         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
8085         from __libc_pause.  Implement using sigsuspend.
8086         (__libc_pause): Call do_pause to do the real work.
8088         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
8089         sig_or_mask parameter is is_sig != 0.
8091 2003-01-21  Philip Blundell  <philb@gnu.org>
8093         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
8095 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
8097         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
8099 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
8101         * stdio-common/bug14.c: Use official name for the locale.
8103         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
8104         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
8105         instead of __libc_cleanup_region_end.
8107         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
8108         as first parameter to __libc_cleanup_region_start.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8111         (__fe_nomask_env): Use __prctl not prctl.
8112         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
8113         prctl syscall.
8115         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
8117         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
8119         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
8120         wrap-around in test.
8122 2003-01-26  Andreas Schwab  <schwab@suse.de>
8124         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
8125         compatibility symbols.  Remove INTDEF for __divdi3.
8126         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
8127         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
8128         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
8129         define.
8130         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
8132 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
8134         * elf/tls-macros.h: Add SPARC 32-bit definitions.
8135         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
8136         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
8137         for the first half of the header.  Include tls.h.
8138         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
8139         relocs too.
8140         (elf_machine_rela): Handle TLS relocs.
8141         * sysdeps/sparc/dl-tls.h: New file.
8143         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
8144         support.
8146         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
8147         * sysdeps/sparc/sparc32/memchr.S: Likewise.
8148         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8149         * sysdeps/sparc/sparc32/strcat.S: Likewise.
8150         * sysdeps/sparc/sparc32/strchr.S: Likewise.
8151         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
8152         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
8153         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
8154         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8155         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8156         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
8157         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8158         * sysdeps/sparc/sparc64/strcat.S: Likewise.
8159         * sysdeps/sparc/sparc64/strchr.S: Likewise.
8160         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
8161         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
8162         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8163         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8164         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8165         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8167 2003-01-24  Andreas Schwab  <schwab@suse.de>
8169         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
8170         elements, and process them backwards.
8171         * elf/Makefile ($(objpfx)tst-array4): New target.
8172         ($(objpfx)tst-array4.out): Likewise.
8173         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
8174         * elf/tst-array4.c: New file.
8175         * elf/tst-array4.exp: Likewise.
8177 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
8179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
8181 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
8183         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
8184         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
8185         cancellation handling and handle both __NR_pread64 and __NR_pread.
8186         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8187         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
8188         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
8189         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8190         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
8191         case, use register names consistently.
8193 2003-01-27  Wolfram Gloger  <wg@malloc.de>
8195         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
8196         pointer, not of the computed chunk.  Bug report from Carlos
8197         O'Donell <carlos@baldric.uwo.ca>.
8199 2003-01-25  Andreas Schwab  <schwab@suse.de>
8201         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
8202         addressing to save GOT entries.
8204 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
8206         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
8207         inline_syscall1, inline_syscall2, inline_syscall3,
8208         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
8209         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
8210         __attribute__((unused)) to ChEcK.
8212 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8214         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
8215         Fix inline assembler constraints.
8216         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
8217         Likewise.
8219         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
8220         -fPIC.
8222 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
8224         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
8225         compute the cosine, not the sine, even if x > 0.8.
8227 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
8229         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
8230         _nss_nis_setspent.  Work around the different prototypes.
8231         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
8232         internal_nis_endrpcent.
8233         (internal_nis_endrpcent): Change return type to void.  Change callers.
8234         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
8235         _nss_nis_setpwent.  Work around the different prototypes.
8236         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
8237         of the function to...
8238         (internal_nis_endprotoent): ... here.  New function.
8239         (internal_nis_setprotoent): Use internal_nis_endprotoent.
8240         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
8241         _nss_nis_setnetent.  Work around the different prototypes.
8242         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
8243         of the function to...
8244         (internal_nis_endnetgrent): ... here.  New function.
8245         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
8247 2003-01-19  Jim Meyering  <jim@meyering.net>
8249         * time/strftime.c: (widen): Merge nearly-identical definitions.
8250         (nl_get_alt_digit) [! defined my_strftime]: Define.
8251         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
8252         _nl_get_alt_digit and _nl_get_walt_digit.
8254 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
8256         * time/strftime.c (my_strftime): Handle very large width
8257         specifications for numeric values correctly.  Improve checks for
8258         overflow.
8259         * time/Makefile (tests): Add tst-strftime.
8260         * time/tst-strftime.c: New file.
8262 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
8264         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
8265         _nss_nis_sethostent.  Work around the different prototypes.
8266         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
8267         _nss_nis_setgrent.  Work around the different prototypes.
8268         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
8269         function.  Split out from _nss_nis_endetherent.
8270         (internal_nis_setetherent): Use internal_nis_endetherent instead of
8271         duplicating the code.
8272         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
8273         of _nss_nis_setaliasent.
8274         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
8275         internal_nis_endservent code, don't duplicate it.
8277         * inet/rexec.c (rexec_af): Protect socket operations with
8278         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
8279         * inet/rcmd.c (rcmd_af): Likewise.
8281 2003-01-17  Roland McGrath  <roland@redhat.com>
8283         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
8284         Add test of value 0.80190127184058835.
8286         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
8288 2003-01-17  Richard Henderson  <rth@redhat.com>
8290         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
8291         relocs for class PLT.
8292         * sysdeps/alpha/libc-tls.c: New file.
8293         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
8294         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
8296 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
8298         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
8299         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
8300         on _dl_static_lock.
8302 2003-01-17  Andreas Jaeger  <aj@suse.de>
8304         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
8306 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
8308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
8309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
8310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
8311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
8312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
8313         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
8314         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
8315         is 2.4.21.
8317 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
8319         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
8320         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
8321         buffers.
8323         * sysdeps/generic/sysconf.c: Unconditionally implement
8324         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
8325         * sysdeps/posix/sysconf.c: Likewise.
8327 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
8329         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
8330         set *err to the returned error, not to REG_ESPACE unconditionally.
8331         (build_word_op): Likewise.
8332         * posix/Makefile (tests): Add bug-regex16.
8333         * posix/bug-regex16.c: New test.
8335 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
8337         * elf/dl-load.c (_dl_map_object_from_fd): Use
8338         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
8339         been already initialized.
8341 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
8343         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
8345 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
8347         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
8348         allocated too.  Reported by Al Viro <aviro@redhat.com>.
8350 2003-01-16  Roland McGrath  <roland@redhat.com>
8352         Tweak merged .abilist file format to merge duplicate symbols in
8353         different sets into multi-version stanzas with new "| SET regexp..."
8354         header continuation lines.
8355         * scripts/merge-abilist.awk: Rewritten for new format.
8356         * scripts/extract-abilist.awk: Likewise.
8358 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
8360         * nscd/connections.c (nscd_run): Remove bogus return which isn't
8361         necessary with gcc 3.2+.
8362         (nscd_init): Don't use error() to print message, use dbg_log.
8364         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
8365         expected size into state.
8366         (UNPACK_BYTES): Do the reverse.
8367         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
8368         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
8369         Reported by Al Viro <aviro@redhat.com>.
8371         * stdio-common/Makefile (tests): Add bug14.
8372         * stdio-common/bug14.c: New file.
8374         * stdio-common/vfscanf.c: When recognizing multibyte characters in
8375         string reset the byte counter after mbrtowc reported it is not a
8376         partial character.  Reported by Al Viro <aviro@redhat.com>.
8378 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
8380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
8381         sysdep-cancel.h, not sysdep.h.
8383 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
8385         * nscd/connections.c (nscd_run): Protect accept call with
8386         TEMP_FAILURE_RETRY.
8388 2003-01-15  Andreas Schwab  <schwab@suse.de>
8390         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
8391         (common-generated): Add s-proto-bp.d.
8392         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
8393         of bp thunks.
8394         * sysdeps/unix/s-proto-bp.S: New file.
8395         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
8396         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
8397         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
8399 2003-01-15  Roland McGrath  <roland@redhat.com>
8401         * Makerules: Use -include for tls.make, suppresses warning.
8402         Move gen-as-const-headers rules up so before-compile is set in time.
8403         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
8405 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
8407         * nscd/nscd.c (main): Make code to close all file descriptors
8408         faster and more robust.
8410         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
8411         request with one writev call.  Protect all read calls with
8412         TEMP_FAILURE_RETRY.
8413         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8414         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8416         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
8417         Protect writev calls with TEMP_FAILURE_RETRY.
8418         * nscd/grpcache.c: Likewise.
8419         * nscd/pwdcache.c: Likewise.
8421         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
8422         IPv6 address in debug output.
8424 2003-01-14  Roland McGrath  <roland@redhat.com>
8426         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
8427         $(objpfx) directories, and get rid of vpath directives.  The previous
8428         arrangement resulted in files being written to the source directories
8429         when run in a clean build.  Find all .abilist files in $(..)abilist/.
8430         (update-abi-%): Likewise.
8431         (generated): Don't add .symlist files, they'll be intermediates.
8433         * sysdeps/generic/init-first.c: Add a comment.
8435         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
8437         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
8438         #includes and expressions.
8440         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
8441         config list when it already contains cpu-.*-os.* without / part.
8443         * Makerules (sed-remove-dotdot): New variable.
8444         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
8445         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
8446         (check-abi-config): New variable, append /tls or /notls to the tuple.
8447         (check-abi-%): Use that for -v config value.
8448         Find .abilist files in abilist/libfoo.abilist, not in subdir.
8449         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
8451 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
8453         * manual/install.texi: Correct description of header preparation for
8454         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
8456 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
8458         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
8459         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8460         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
8462 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8465         (INTERNAL_SYSCALL): Make use of ERR parameter.
8466         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8467         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8468         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
8471 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
8473         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
8474         == IPPROTO_TCP.
8475         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
8477         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
8478         Fix entry for bit 31.
8480         * iconvdata/Makefile: Add rules to build IBM866NAV.
8481         * iconvdata/ibm866nav.c: New file.
8482         * iconvdata/tst-tables.sh: Add IBM866NAV.
8483         * iconvdata/gconv-modules: Add entries for IBM866NAV.
8485 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
8487         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
8488         to test void* parameters.
8490         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
8491         source pointer before dereferencing.
8492         (__STRING_SMALLL_GET32): Likewise.
8493         (__memset_gc): Add missing parenthesis around macro arguments.
8494         Patch by Denis Zaitsev <zzz@cd-club.ru>.
8496         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
8497         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
8499 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
8501         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
8502         defining.
8504 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8506         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
8507         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
8508         here.
8509         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
8511 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8513         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
8514         from here...
8515         (PSEUDO): ... to here.
8516         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
8517         from here...
8518         (PSEUDO): ... to here.
8520 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
8522         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
8523         dirent64 instead of struct dirent for dirent.  Call readdir64
8524         instead of readdir.
8526         * locale/programs/locfile.c (siblings_uncached): Use struct
8527         dirent64 instead of struct dirent for other_dentry.  Call
8528         readdir64 instead of readdir.
8530         * elf/ldconfig.c (direntry): Change type to struct dirent64.
8531         (search_dir): Use readdir64 instead of readdir.
8532         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
8534 2003-01-12  Roland McGrath  <roland@redhat.com>
8536         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
8537         not strtol.  The former is usable in ld.so, the latter not.
8539         * include/fcntl.h: Declare __libc_creat.
8541         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
8542         libhurduser-link.so-no-z-defs): New variables.
8544         * malloc/malloc.c: Revert last change.
8545         * malloc/malloc.h (_int_*): Move these decls to ...
8546         * include/malloc.h: ... here.  Add attribute_hidden.
8547         (_int_valloc): Declare it too.
8549 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8551         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
8552         search for removed searchlist.  Reported by Roland McGrath.
8554         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
8555         given as start file.
8557         * io/ftw.c (ftw_startup): Use correct name in check for symlink
8558         without existing target.  Patch by Jim Meyering.
8560         * Makerules (build-shlib-helper): Don't use -z defs linker option
8561         if no-z-defs is defined either.
8563 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8565         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
8566         file.
8568 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8570         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
8571         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8573 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8575         * io/ftwtest-sh: Add test case for relative path with /. at the end.
8577 2003-01-12  Jim Meyering  <jim@meyering.net>
8579         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
8580         use the basename if we've already chdir'd into its parent directory.
8582 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8584         * io/ftw.c (process_entry): Use relative path when using chdir()
8585         to change directory after call to ftw_dir.
8586         * io/ftwtest-sh: Add test for relative path argument to nftw()
8587         with FTW_CHDIR option.
8589 2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8591         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8592         Define for powerpc.
8593         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
8594         into account.
8595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8596         (INTERNAL_SYSCALL): Make use of ERR parameter.
8597         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8598         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8599         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
8602 2002-01-09  Richard Henderson  <rth@redhat.com>
8604         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
8605         DTPREL64 and TPREL64 without loadbase applied.
8607 2002-01-09  Richard Henderson  <rth@redhat.com>
8609         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
8610         for NOT_IN_libc.
8612         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
8613         * sysdeps/unix/alpha/sysdep.h: ... here.
8614         (PSEUDO_LOADGP): Remove.
8615         (PSEUDO_PROLOGUE): Load GP in non-pic case.
8616         (SYSCALL_ERROR_LABEL): New.
8617         (PSEUDO): Use it in error branch.
8618         (PSEUDO_END): Add $syscall_error label.
8620 2003-01-12  Andreas Jaeger  <aj@suse.de>
8622         * math/bits/mathcalls.h: Round is a const function.
8624 2003-01-11  Jim Meyering  <jim@meyering.net>
8626         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
8627         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
8628         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
8629         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
8630         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
8631         [!_LIBC] (internal_function, dirent64, MAX): Define.
8632         (__set_errno): Define if not already defined.
8633         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
8634         the basename, not the entire file name.
8635         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
8636         the basename, not the entire file name.
8638 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8640         * string/tester.c (test_strcpy): Disable last added strcpy until
8641         it is fixed.
8643 2003-01-11  Philip Blundell  <philb@gnu.org>
8645         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
8647 2003-01-11  Andreas Schwab  <schwab@suse.de>
8649         * Makerules: Add vpath for %.dynsym and %.so so that the
8650         implicit rule chaining for check-abi works.
8652 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8654         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8655         Add non-PIC case.
8657 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
8659         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
8660         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
8661         gp is used early.
8662         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
8663         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
8664         Ensure libc.so in DT_NEEDED.
8665         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
8666         CHECK_STATIC_TLS before l_tls_offset use.
8667         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8668         Likewise.
8669         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8670         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
8671         Allocate TLS_PRE_TCB_SIZE bytes below result.
8672         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
8673         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
8674         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
8675         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
8676         bytes below result and add tcb_offset to memsz.
8677         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
8678         * sysdeps/ia64/dl-machine.h: Include tls.h.
8679         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
8680         too.
8681         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
8682         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
8683         * sysdeps/ia64/libc-tls.c: New file.
8685 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
8687         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
8688         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
8689         Fix type.  Move definition out of #if.
8690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
8691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
8692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
8693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
8694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
8695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
8696         support.
8697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
8698         ftruncate64, pread64, pwrite64, truncate64 entries.
8699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8700         (INLINE_SYSCALL): New version that supports function call like
8701         syscalls.  Add __builtin_expect.
8702         (LOADARGS_n): Add argument size safety checks.
8703         (INTERNAL_SYSCALL): New Macro.
8704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
8705         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
8706         redefinition of elf_fpreg_t and elf_fpregset_t.
8708 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8710         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
8711         simplify test for unloading.  If loader of a DSO is unloaded do not
8712         use its scope anymore.  Fall back to own scope and adjust opencounts.
8713         Fix several comments.
8714         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
8715         the l_searchlist, not only for l_initfini.
8717         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
8718         dependencies if objects cannot be removed.  Remove object with the
8719         definition as not unloadable if necessary.
8721         * elf/reldep6.c: Create relocation dependency before closing the first
8722         module.
8724 2003-01-10  Guido Günther  <agx@sigxcpu.org>
8726         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
8727         * sysdeps/unix/mips/brk.S: Likewise.
8728         * sysdeps/unix/mips/pipe.S: Likewise.
8730 2003-01-10  Andreas Schwab  <schwab@suse.de>
8732         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
8734         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
8735         are known to have the vfork syscall.
8737         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
8739         * sysdeps/unix/sysv/linux/kernel-features.h
8740         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
8741         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
8742         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
8744 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
8746         * elf/Makefile: Add rules to build and run reldep9 test.
8747         * elf/reldep9.c: New file.
8748         * elf/reldep9mod1.c: New file.
8749         * elf/reldep9mod2.c: New file.
8750         * elf/reldep9mod3.c: New file.
8752 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
8754         * elf/Makefile: Add rules to build and run nodelete2 test.
8755         * elf/nodelete2.c: New file.
8756         * elf/nodel2mod1.c: New file.
8757         * elf/nodel2mod2.c: New file.
8758         * elf/nodel2mod3.c: New file.
8760 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
8762         * posix/test-vfork.c (noop): Add __attribute_noinline__.
8763         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
8764         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
8765         defining it.
8766         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
8767         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
8768         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
8769         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
8770         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
8772 2003-01-09  Andreas Schwab  <schwab@suse.de>
8774         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
8776 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
8778         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
8779         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
8780         argument.
8781         (INTERNAL_SYSCALL_DECL): Define.
8783 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
8785         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
8786         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
8787         argument.
8788         (INTERNAL_SYSCALL_DECL): Define.
8789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
8790         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
8791         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8792         (INLINE_SYSCALL): Adjust.
8793         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8794         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8795         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
8796         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8797         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
8798         add err argument to INTERNAL_SYSCALL* macros.
8799         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
8800         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
8801         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
8802         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
8803         Likewise.
8804         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
8805         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
8806         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
8808 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
8810         Unify symbols in user namespace exported by libc.so and libc.a.
8811         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
8812         argp_fmtstream_free, and argp_fmtstream_printf.
8813         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
8814         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
8815         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
8816         argp_fmtstream_point.
8817         * gmon/gmon.c: Don't define write_profiling.
8818         * libio/genops.c: Don't define _cleanup.
8820         * intl/explodename.c (_nl_find_language.c): Mark as static.
8821         * intl/loadinfo.h: Remove _nl_find_language prototype.
8823         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
8824         * libio/libioP.h: Remove declaration.
8826         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
8827         * libio/libioP.h: Remove declaration.
8829         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
8830         * sysdeps/generic/framestate.c: Define STATIC before including
8831         unwind-dw2.c.
8833         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
8835 2003-01-06  Philip Blundell  <philb@gnu.org>
8837         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
8838         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
8840         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
8841         directive.
8842         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
8843         (SYSCALL_ERROR): New.
8844         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
8845         handling code.
8846         (INTERNAL_SYSCALL): Define.
8847         (INLINE_SYSCALL): Use it.
8848         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8849         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
8850         SYSCALL_ERROR in place of __syscall_error.
8852 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
8854         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
8855         __bswap_32, __bswap_64): Put x into temporary variable
8856         to avoid warnings.
8857         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
8858         (inline) functions.
8859         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
8860         __bswap_32, __bswap_64): Put x into temporary variable
8861         to avoid warnings.
8862         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
8863         (inline) functions.
8864         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
8865         Likewise.
8867 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
8869         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
8870         alias.
8872 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
8874         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
8875         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
8877 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
8879         * math/libm-test.inc (significand_test): New function.
8880         (main): Call it.
8882 2003-01-06  Roland McGrath  <roland@redhat.com>
8884         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
8885         arguments.
8886         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
8887         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
8888         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
8890         * string/tester.c (test_strcpy): Add test with `void *' arguments.
8892 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
8894         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
8895         return significand and not the exponent.
8896         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8898         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
8899         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
8901         * malloc/malloc.c: Mark all _int_* functions as static.
8903 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
8905         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
8906         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
8907         handling.
8908         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
8910 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8912         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
8913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
8914         support.
8915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
8916         ftruncate64, truncate64, pread64 and pwrite64 entries.
8917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8918         (INLINE_SYSCALL): Add __builtin_expect.
8919         (LOADARGS_n): Add argument size safety checks.
8920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
8921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
8922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
8923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
8924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
8925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
8927 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
8929         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
8930         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
8931         (LIBC_CANCEL_HANDLED): Add.
8933         * sysdeps/unix/sysv/linux/alpha/sysdep.h
8934         (inline_syscall_r0_constraint): Rename to...
8935         (inline_syscall_r0_out_constraint): ... this.  Add =.
8936         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
8938 2003-01-06  Andreas Schwab  <schwab@suse.de>
8940         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
8941         sure this is always inlined.
8942         (elf_machine_rela): Likewise.
8944         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
8946 2003-01-04  Roland McGrath  <roland@redhat.com>
8948         * Makeconfig (+mkdep): Add -MP flag.
8949         Suggested by Art Haas <ahaas@airmail.net>.
8951 2003-01-05  Andreas Schwab  <schwab@suse.de>
8953         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
8955 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8957         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
8958         SYSCALL_ERROR_HANDLER.
8959         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
8960         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
8961         Add support for cancellation handling.
8962         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
8963         SYSCALL_ERROR_HANDLER.
8964         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
8965         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
8966         Add support for cancellation handling.
8967         (SYSCALL_ERROR_HANDLER): Define PIC variants.
8969 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
8972         __syscall_pread64 and __syscall_pwrite64 cancelable.
8973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8974         (INTERNAL_SYSCALL): New macro.
8975         (LOADARGS_0, LOADARGS_1): Fix.
8977 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
8979         * Makerules (build-shlip-helper): Unless told otherwise, add
8980         -Wl,-z,defs to linker command line.
8981         * rt/Makefile (librt.so): Link with ld.so.
8982         * dlfcn/Makefile (libdl.so): Likewise.
8984 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
8986         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
8987         cancellation handling.
8988         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8989         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
8991 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
8993         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
8994         order of parameters passed to kill.
8996 2003-01-04  Andreas Schwab  <schwab@suse.de>
8998         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
9000 2002-01-03  Paul Eggert  <eggert@twinsun.com>
9002         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
9003         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
9004         when compiling Bison 1.875's `bitset bset = obstack_alloc
9005         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
9007 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
9009         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
9010         unnecessary code.
9011         Correct reference counter in case SIGQUIT handler installation failed.
9013 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
9015         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
9016         Define using _Pragma(weak ...).
9018 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
9020         * resolv/res_libc.c: Provide declaration for __res_init_weak and
9021         reorder declarations.
9023 2003-01-03  Art Haas  <ahaas@airmail.net>
9025         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
9026         initializer syntax to C99.
9027         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
9028         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
9029         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
9030         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
9031         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
9032         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
9033         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
9034         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
9035         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
9036         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
9037         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
9038         * localedata/tests-mbwc/dat_mblen.c: Likewise.
9039         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
9040         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
9041         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
9042         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
9043         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
9044         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
9045         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
9046         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
9047         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
9048         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
9049         * localedata/tests-mbwc/dat_towlower.c: Likewise.
9050         * localedata/tests-mbwc/dat_towupper.c: Likewise.
9051         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
9052         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
9053         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
9054         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
9055         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
9056         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
9057         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
9058         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
9059         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
9060         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
9061         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
9062         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
9063         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
9064         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
9065         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
9066         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
9067         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
9068         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
9069         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
9070         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
9071         * localedata/tests-mbwc/dat_wctob.c: Likewise.
9072         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
9073         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
9074         * localedata/tests-mbwc/dat_wctype.c: Likewise.
9075         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
9077 2003-01-03  Richard Henderson  <rth@redhat.com>
9079         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
9080         (inline_syscall_r0_constraint): New.
9081         (inline_syscall[0-6]): Use them.
9083 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
9085         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
9086         Add rtld_hidden_proto.
9087         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
9088         (_dl_allocate_tls): Likewise.  Remove INTDEF.
9090 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9092         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
9093         Morita <toshiyasu.morita@hsa.hitachi.com>.
9094         * sysdeps/sh/memcpy.S: Likewise.
9096 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
9098         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
9099         any, but unify the test.
9101 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
9103         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
9104         sigaction): Protect weak_alias and libc_hidden_weak with
9105         #ifndef LIBC_SIGACTION.
9106         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
9107         sigaction): Likewise.
9108         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
9109         sigaction): Likewise.
9110         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
9111         sigaction): Likewise.
9112         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
9113         sigaction): Likewise.
9114         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
9115         sigaction): Likewise.
9116         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
9117         sigaction): Likewise.
9118         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
9119         sigaction): Likewise.  Remove SIGCANCEL handling here.
9120         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
9121         Likewise.
9123 2003-01-02  Art Haas  <ahaas@airmail.net>
9125         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
9127 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
9129         * posix/getconf.c: Update copyright year.
9130         * nss/getent.c: Likewise.
9131         * nscd/nscd_nischeck.c: Likewise.
9132         * iconv/iconvconfig.c: Likewise.
9133         * iconv/iconv_prog.c: Likewise.
9134         * elf/ldconfig.c: Likewise.
9135         * catgets/gencat.c: Likewise.
9136         * csu/version.c: Likewise.
9137         * elf/ldd.bash.in: Likewise.
9138         * elf/sprof.c (print_version): Likewise.
9139         * locale/programs/locale.c: Likewise.
9140         * locale/programs/localedef.c: Likewise.
9141         * nscd/nscd.c (print_version): Likewise.
9142         * debug/xtrace.sh: Likewise.
9143         * malloc/memusage.sh: Likewise.
9144         * malloc/mtrace.pl: Likewise.
9146 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
9148         * io/sys/stat.h: Include time.h with __need_timespec even if
9149         __USE_MISC is defined but __USE_XOPEN is not.
9151 2003-01-01  Andreas Jaeger  <aj@suse.de>
9153         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
9154         type to avoid strict aliasing problem.
9155         (_nss_dns_gethostbyname2_r): Likewise.
9156         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
9157         (_nss_dns_getnetbyname_r): Likewise.
9158         * resolv/gethnamaddr.c (_gethtent): Likewise.
9159         (gethostbyname2): Likewise.
9161 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
9163         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
9164         to avoid using the exported symbols.  Define aliases with the
9165         original names separately.
9167         * include/time.h: Add libc_hidden_proto for __strftime_l.
9168         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
9169         * time/strftime.c: Always use libc_hidden_def if _LIBC.
9171         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
9172         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
9174         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
9175         tr_break.
9177         * csu/Makefile (routines): Add dso_handle.
9178         * csu/dso_handle.c: New file.
9180 2002-12-31  Roland McGrath  <roland@redhat.com>
9182         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
9183         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
9184         (S-CPPFLAGS): Add -DASSEMBLER here instead.
9185         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
9187 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
9189         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
9190         is available.
9192 2002-12-31  Andreas Jaeger  <aj@suse.de>
9194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
9195         with Linux kernel.
9196         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
9197         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
9198         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
9200         * sysdeps/unix/sysv/linux/kernel_stat.h
9201         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
9203         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
9204         __unused[1-3] since they're needed by some platforms.  Handle
9205         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
9207         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
9208         for structs stat and stat64.
9209         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9210         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
9211         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9212         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9214         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
9216         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
9217         nsec resolution changes.
9218         (xstat64_conv): Likewise.
9219         (xstat32_conv): Likewise.
9221         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
9222         struct kernel_stat.
9224         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
9225         structs stat and stat64.
9227         * time/time.h (__timespec_defined): Define for __USE_MISC.
9229 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
9231         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
9232         and __libc_current_sigrtmax.
9234 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
9236         * include/errno.h (__errno_location): Add prototype.
9237         Use libc_hidden_proto unconditionally.
9238         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
9239         unconditionally.
9240         * include/resolv.h (__res_state): Likewise.
9242         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
9243         * include/sys/socket.h (accept): Add libc_hidden_proto.
9244         * include/errno.h (__errno_location): Likewise.
9245         * include/netdb.h (__h_errno_location): Likewise.
9246         * include/resolv.h (__res_state): Likewise.
9247         * include/unistd.h (__lseek): Likewise.
9248         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
9249         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
9250         * sysdeps/generic/res-state.c (__res_state): Likewise.
9251         * sysdeps/generic/accept.c (accept): Likewise.
9252         * sysdeps/generic/lseek.c (__lseek): Likewise.
9253         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
9254         __libc_current_sigrtmax): Likewise.
9255         * sysdeps/mach/hurd/accept.c (accept): Likewise.
9256         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
9257         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
9258         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
9259         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
9260         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
9261         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
9262         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
9263         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
9264         alias to llseek.
9265         (__GI_accept): New alias to accept.
9266         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
9267         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
9268         New alias to llseek.
9269         (__GI_accept): New alias to accept.
9270         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
9271         Likewise.
9272         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
9273         Likewise.
9274         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
9276         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
9277         strong_alias (name, __GI_name).
9278         * sysdeps/arm/bsd-_setjmp.S : Likewise.
9279         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
9280         * sysdeps/i386/bsd-_setjmp.S : Likewise.
9281         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
9282         * sysdeps/mips/bsd-_setjmp.S : Likewise.
9283         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
9284         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
9285         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
9286         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
9287         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
9288         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
9289         * sysdeps/sh/bsd-_setjmp.S : Likewise.
9290         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
9291         * sysdeps/unix/arm/fork.S : Likewise.
9292         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
9293         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
9294         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
9295         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
9296         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
9297         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
9298         * sysdeps/unix/i386/fork.S : Likewise.
9299         * sysdeps/unix/mips/fork.S : Likewise.
9300         * sysdeps/unix/sparc/fork.S : Likewise.
9301         * sysdeps/unix/sparc/vfork.S : Likewise.
9302         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
9303         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
9304         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
9305         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
9306         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
9307         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
9308         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
9309         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
9310         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
9311         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
9312         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
9313         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
9314         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
9315         * sysdeps/unix/fork.S : Likewise.
9316         * sysdeps/vax/bsd-_setjmp.S : Likewise.
9317         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
9319         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
9320         inclusion.
9322 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
9324         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
9325         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
9326         * sysdeps/mach/hurd/fork.c: Likewise.
9327         * sysdeps/unix/sysv/aix/fork.c: Likewise.
9328         * sysdeps/unix/fork.S: Add __GI___fork alias.
9329         * sysdeps/unix/arm/fork.S: Likewise.
9330         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
9331         * sysdeps/unix/i386/fork.S: Likewise.
9332         * sysdeps/unix/mips/fork.S: Likewise.
9333         * sysdeps/unix/sparc/fork.S: Likewise.
9334         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
9335         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
9336         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9337         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
9338         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
9339         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9340         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
9341         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
9342         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
9343         * sysdeps/unix/sparc/vfork.S: Likewise.
9344         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
9345         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
9346         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
9347         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
9348         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
9349         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
9350         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
9351         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
9353         * include/time.h: Add libc_hidden_proto for __nanosleep.
9354         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
9355         * sysdeps/mach/nanosleep.c: Likewise.
9356         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
9357         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
9359         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
9360         _IO_list_unlock, and _IO_list_resetlock.
9361         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
9362         _IO_list_unlock, and _IO_list_resetlock.
9364         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
9365         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
9366         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
9367         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
9369         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
9370         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
9371         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
9372         __GI___longjmp alias.
9374         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
9375         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
9376         * sysdeps/arm/bsd-_setjmp.S: Likewise.
9377         * sysdeps/generic/bsd-_setjmp.c: Likewise.
9378         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
9379         * sysdeps/i386/bsd-_setjmp.S: Likewise.
9380         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9381         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9382         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9383         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
9384         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
9385         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
9386         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
9387         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
9388         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
9389         * sysdeps/sh/bsd-_setjmp.S: Likewise.
9390         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
9391         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
9392         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
9393         * sysdeps/vax/bsd-_setjmp.S: Likewise.
9394         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
9396 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
9398         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
9400 2002-12-30  Roland McGrath  <roland@redhat.com>
9402         * Rules (generated): Target removed.
9403         * mach/Makefile (generated): Define it here instead.
9405         * math/Makefile (generated): Add m_*l and m_*f variants too.
9407 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
9409         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
9410         the to-be-deleted objects right away instead of later separately.
9411         The latter fails because the scope data structures of the DSO
9412         might already be gone.
9414         * elf/Makefile: Add rules to build and run reldep8 test.
9415         * elf/reldep8.c: New file.
9416         * elf/reldep8mod1.c: New file.
9417         * elf/reldep8mod2.c: New file.
9418         * elf/reldep8mod3.c: New file.
9419         Contributed by Jakub Jelinek.
9421 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
9423         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9424         checking of return value ENOSYS from getdents64.
9426 2002-12-28  Andreas Schwab  <schwab@suse.de>
9428         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
9429         ($(common-objpfx)s-%.d): Generalized from
9430         $(common-objpfx)s-proto.d rule.
9431         (common-generated): Add s-proto-cancel.d.
9432         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
9433         cancellable syscalls.
9434         * sysdeps/unix/s-proto-cancel.S: New file.
9436 2002-12-29  Roland McGrath  <roland@redhat.com>
9438         * resolv/res_libc.c: Move _res defn magic after res_init defn
9439         so _res macro is in effect for that code.
9441         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
9442         pattern for prepending $(..) so it doesn't affect $(foo).
9444         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
9446 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
9448         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
9449         in hwcap.
9451 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
9453         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
9455 2002-12-28  Andreas Jaeger  <aj@suse.de>
9457         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
9458         avoid warning.
9459         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
9461 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
9463         * inet/herrno.c (__h_errno_location): Remove.
9464         * inet/Makefile (routines): Add herrno-loc.
9465         * resolv/res_libc.c (__res_state): Remove.
9466         * resolv/Makefile (routines): Add res-state.
9467         * sysdeps/generic/herrno-loc.c: New file.
9468         * sysdeps/generic/res-state.c: New file.
9470 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
9472         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9473         Only define if USE_DL_SYSINFO is defined.
9475 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
9477         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
9478         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
9479         Define. Patch by Richard Henderson and Jes Sorensen.
9480         (PSEUDO): Remove unnecessary ;;.
9481         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
9482         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
9483         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
9484         if not initializing thread pointer.
9485         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
9486         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
9487         make it weak also if NONTLS_INIT_TP.
9488         * sysdeps/unix/common/pause.c: Handle cancellation.
9489         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
9490         (LOADSYSCALL): Remove.
9491         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
9492         (SYSCALL_ERROR_HANDLER): Use it.
9493         (PSEUDO): Don't jump around error handler.
9494         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
9495         jump around error handler.
9496         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
9497         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
9498         to __syscall_error_handler on failure.
9499         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
9500         (LOADSYSCALL): Remove.
9501         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
9502         (SYSCALL_ERROR_HANDLER): Use it.
9503         (PSEUDO): Don't jump around error handler.
9504         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
9505         jump around error handler.
9506         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
9507         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
9508         to __syscall_error_handler on failure.
9510 2002-12-27  Roland McGrath  <roland@redhat.com>
9512         * scripts/gen-as-const.awk: New file.
9513         * Makefile (distribute): Add it.
9514         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
9515         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
9516         to the list.
9517         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
9519 2002-12-27  Andreas Schwab  <schwab@suse.de>
9521         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
9523 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
9525         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
9526         _environ is NULL.
9528 2002-12-27  Andreas Schwab  <schwab@suse.de>
9530         * Makerules ($(common-objpfx)%.make): Filter through
9531         $(sed-remove-objpfx).
9533 2002-12-23  Roland McGrath  <roland@redhat.com>
9535         * scripts/abilist.awk: Produce a more compact format, divided into
9536         stanzas for each version set, the set name listed only once.
9537         * scripts/extract-abilist.awk: New file.
9538         * scripts/merge-abilist.awk: New file.
9539         * Makerules (check-abi-%, update-abi-%): New pattern rules.
9540         (update-abi, check-abi): New targets.
9541         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
9543 2002-12-19  Roland McGrath  <roland@redhat.com>
9545         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
9547         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
9548         INTERNAL_SYSCALL.
9550 2002-12-21  Andreas Schwab  <schwab@suse.de>
9552         * elf/check-textrel.c (handle_file): Swap p_type.
9554 2002-12-21  Andreas Schwab  <schwab@suse.de>
9556         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
9557         (INLINE_SYSCALL): Use it.
9558         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9559         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9561         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
9562         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
9564 2002-12-20  Art Haas  <ahaas@airmail.net>
9566         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
9567         syntax to C99.
9569 2002-12-21  Philip Blundell  <philb@gnu.org>
9571         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
9572         top as seventh arg to __libc_start_main.
9573         Reported by paulnash@wildseed.com.
9575         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
9577         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
9578         compatibility cruft when new enough kernel is assumed.
9580 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
9582         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
9583         instead of INLINE_SYSCALL.
9585 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
9587         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
9588         typo.
9590         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
9591         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
9592         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
9593         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
9594         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
9595         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9596         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9597         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9598         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
9599         Patch by William Lee Irwin <wli@holomorphy.com>.
9601 2002-12-20  Andreas Schwab  <schwab@suse.de>
9603         * locale/programs/ld-measurement.c (measurement_output): Fix
9604         index calculation.
9606 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
9608         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
9609         Redefine _IO_flockifle and _IO_funlockfile as inlines.
9611         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
9612         builds add "tls" in the search path.
9613         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
9614         (path_hwcap): Recognize "tls".
9616 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9618         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
9619         __waitpid instead of waitpid.
9621         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
9622         int $0x80.
9623         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
9624         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
9625         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
9627         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
9628         information for system calls.
9630         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
9631         for ld.so.
9633         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
9635 2002-12-19  Roland McGrath  <roland@redhat.com>
9637         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
9638         * iconvdata/ibm922.h: Likewise.
9639         * iconvdata/ibm930.h: Likewise.
9640         * iconvdata/ibm932.h: Likewise.
9641         * iconvdata/ibm933.h: Likewise.
9642         * iconvdata/ibm935.h: Likewise.
9643         * iconvdata/ibm937.h: Likewise.
9644         * iconvdata/ibm939.h: Likewise.
9645         * iconvdata/ibm943.h: Likewise.
9646         * iconvdata/isiri-3342.h: Likewise.
9648 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9650         * test-skeleton.c (main): Make sure correct value is seen as
9651         argv[0] after adjustment of argv, and argc.
9653         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
9654         RTLD_CORRECT_DYNAMIC_WEAK is defined.
9656 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
9658         * nscd/connections.c (nscd_run): Shut up warning.
9659         * tst-ungetc.c (assert): Undefined before redefining.
9661 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9663         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
9664         is used.
9666 2002-12-17  Art Haas  <ahaas@airmail.net>
9668         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
9669         * iconvdata/cp775.h: Likewise.
9670         * iconvdata/ibm1046.h: Likewise.
9671         * iconvdata/ibm1124.h: Likewise.
9672         * iconvdata/ibm1129.h: Likewise.
9673         * iconvdata/ibm1132.h: Likewise.
9674         * iconvdata/ibm1133.h: Likewise.
9675         * iconvdata/ibm1160.h: Likewise.
9676         * iconvdata/ibm1161.h: Likewise.
9677         * iconvdata/ibm1162.h: Likewise.
9678         * iconvdata/ibm1163.h: Likewise.
9679         * iconvdata/ibm1164.h: Likewise.
9681 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9683         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
9684         __ASSUME_CLONE_THREAD_FLAGS is defined.
9685         * sysdeps/unix/sysv/linux/kernel-features.h
9686         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
9688 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
9690         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
9691         of asm.
9692         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9694         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
9695         _dl_sysinfo.
9696         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
9697         code.
9698         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
9699         _rtld_global.
9700         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
9701         code.
9702         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
9703         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
9704         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
9705         Add _dl_sysinfo.
9707 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
9709         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
9710         __libc_writev to...
9711         [libc: GLIBC_PRIVATE]: ...here.
9712         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
9713         __libc_msgsnd to...
9714         [libc: GLIBC_PRIVATE]: ...here.
9716 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
9718         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
9719         Use it instead of directly int $0x80.
9720         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
9721         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9722         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
9723         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9724         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9725         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
9727 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
9729         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
9731         * elf/elf.h (AT_SYSINFO): New define.
9732         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
9733         AT_SYSINFO.
9735 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
9737         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
9738         Make cancelable.
9739         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
9740         Likewise.
9741         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
9742         Likewise.
9743         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
9744         Likewise.
9745         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
9746         Likewise.
9747         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
9749         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
9750         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
9751         available, otherwise __libc_maybe_call.
9752         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
9753         cancellation handling.
9754         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
9756 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
9758         * posix/regcomp.c (free_workarea_compile): Free the new member
9759         ORG_INDICES.
9760         (analyze): Initialize ORG_INDICES.
9761         (duplicate_node_closure): Search for a existing node, which is
9762         duplicated from the node ORG_DEST and satisfies the constraint
9763         CONSTRAINT.  And use it to avoid inifimite loop.
9764         (search_duplicated_node): New function.
9765         (duplicate_node): Store the index of the original node.
9766         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
9767         if needed.
9768         * posix/regex_internal.h (re_dfa_t): Add new members.
9770 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
9772         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
9774 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9776         * sysdeps/posix/system.c (do_system): Add support for installation
9777         of cancellation handlers.
9778         * sysdeps/unix/sysv/linux/i386/system.c: New file.
9780         * stdlib/Makefile (tests): Add tst-system.
9781         * stdlib/tst-system.c: New file.
9783         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
9784         CENABLE]: Don't lose content of %ebx.
9786 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
9788         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
9789         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
9791 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9793         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
9794         fails to return a function pointer don't use it.
9796 2002-12-16  Art Haas  <ahaas@airmail.net>
9798         * io/ftw.c: Convert GCC extension initializer syntax to C99.
9799         * iconvdata/iso-ir-165.c: Likewise.
9800         * iconvdata/jis0208.c: Likewise.
9801         * iconvdata/jis0212.c: Likewise.
9803 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9805         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
9806         epoll_ctl, and epoll_wait.
9807         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
9808         epoll_create, epoll_ctl, and epoll_wait.
9809         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
9810         Davide Libenzi <davidel@xmailserver.org>.
9811         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
9812         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
9813         Add sys/epoll.h.
9815 2002-12-16  Art Haas  <ahaas@airmail.net>
9817         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
9818         syntax to C99
9819         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
9820         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
9821         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
9823 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9825         * stdio-common/Makefile (routines): Remove lockfile.  Add
9826         flockfile, ftrylockfile, and funlockfile.
9827         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
9828         * sysdeps/generic/flockfile.c: New file.
9829         * sysdeps/generic/ftrylockfile.c: New file.
9830         * sysdeps/generic/funlockfile.c: New file.
9832 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
9834         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
9835         macros instead of doing the calls directly.
9836         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
9837         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
9838         targets.
9840 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
9842         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
9843         * sysdeps/ieee754/bits/nan.h: Likewise.
9845         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
9846         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
9848 2002-12-16  Roland McGrath  <roland@redhat.com>
9850         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
9851         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
9852         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
9854         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
9855         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
9856         s_putpmsg.
9857         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
9858         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
9859         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
9860         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
9861         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
9862         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
9863         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
9864         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
9866 2002-12-13  Paul Eggert  <eggert@twinsun.com>
9868         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
9869         is now u_int, not int.
9870         (struct XDR.x_handy): Now u_int, not int.
9871         * sunrpc/xdr_mem.c: Include <limits.h>.
9872         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
9873         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
9874         x_handy is now unsigned, not signed.
9875         Do not decrement x_handy if no change is made.
9876         (xdrmem_setpos): Check for int overflow.
9877         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
9878         (xdr_sizeof): Remove cast that is now unnecessary, now that
9879         x_handy is unsigned.
9881 2002-12-15  Art Haas  <ahaas@airmail.net>
9883         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
9884         * iconvdata/gap.awk: Likewise.
9885         * iconvdata/gen-8bit-gap-1.sh: Likewise.
9886         * iconvdata/gen-8bit-gap.sh: Likewise.
9887         * locale/C-address.c: Likewise.
9888         * locale/C-collate.c: Likewise.
9889         * locale/C-ctype.c: Likewise.
9890         * locale/C-identification.c: Likewise.
9891         * locale/C-measurement.c: Likewise.
9892         * locale/C-messages.c: Likewise.
9893         * locale/C-monetary.c: Likewise.
9894         * locale/C-name.c: Likewise.
9895         * locale/C-numeric.c: Likewise.
9896         * locale/C-paper.c: Likewise.
9897         * locale/C-telephone.c: Likewise.
9898         * locale/C-time.c: Likewise.
9899         * nscd/connections.c: Likewise.
9900         * nscd/grpcache.c: Likewise.
9901         * nscd/hstcache.c: Likewise.
9902         * nscd/pwdcache.c: Likewise.
9903         * stdio-common/vfprintf.c: Likewise.
9904         * stdlib/random.c: Likewise.
9905         * sysdeps/generic/siglist.c: Likewise.
9906         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9907         * sysdeps/ieee754/bits/nan.h: Likewise.
9908         * sysdeps/posix/sprofil.c: Likewise.
9909         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
9910         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
9911         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
9913 2002-12-15  Roland McGrath  <roland@redhat.com>
9915         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
9917         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
9918         <tls.h> here, no need for it.
9919         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
9921         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
9922         parameter, not varargs parameter.
9924         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
9925         argument so it's not an unused variable.
9927         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
9928         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
9929         for users.
9931         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
9933 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
9935         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
9936         original __libc_fcntl code.  Just renamed.
9938 2002-12-15  Andreas Schwab  <schwab@suse.de>
9940         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
9942 2002-12-14  Olaf Hering  <olh@suse.de>
9944         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
9945         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
9947 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
9949         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
9951         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
9952         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
9954         * sysdeps/unix/sysv/linux/open64.c: New file.
9956         * sysdeps/generic/pselect.c: Add support for cancellation handling.
9957         * sysdeps/posix/open64.c: Likewise.
9958         * sysdeps/posix/sigpause.c: Likewise.
9959         * sysdeps/posix/sigwait.c: Likewise.
9960         * sysdeps/posix/system.c: Likewise.
9961         * sysdeps/posix/waitid.c: Likewise.
9962         * sysdeps/unix/sysv/linux/accept.S: Likewise.
9963         * sysdeps/unix/sysv/linux/connect.S: Likewise.
9964         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
9965         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9966         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
9967         * sysdeps/unix/sysv/linux/poll.c: Likewise.
9968         * sysdeps/unix/sysv/linux/pread.c: Likewise.
9969         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
9970         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
9971         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9972         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9973         * sysdeps/unix/sysv/linux/recv.S: Likewise.
9974         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
9975         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
9976         * sysdeps/unix/sysv/linux/send.S: Likewise.
9977         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
9978         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
9979         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
9980         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
9981         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
9982         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
9983         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
9984         * sysdeps/unix/sysv/linux/wait.c: Likewise.
9985         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
9986         * sysdeps/unix/sysv/linux/writev.c: Likewise.
9987         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
9988         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9990 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
9992         * sysdeps/generic/sysdep-cancel.h: New file.
9993         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
9994         cancelable syscall.
9995         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
9996         recvmsg, send, sendmsg, sendto): Make cancelable.
9997         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
9998         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
9999         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10000         sendto, osf_select): Likewise.
10001         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
10002         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
10003         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
10004         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10005         sendto): Likewise.
10006         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
10007         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
10008         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
10009         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10010         sendto): Likewise.
10011         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
10012         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
10013         sendto, select): Likewise.
10014         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
10015         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
10016         Likewise.
10017         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
10018         select, fcntl): Likewise.
10019         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
10020         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
10021         read, readv, select, sigsuspend, write, writev): Likewise.
10023 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
10025         * dirent/bug-readdir1.c: Include unistd.h.
10027 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
10029         * locale/programs/locale.c: Include locarchive.h.
10030         (ARCHIVE_NAME): Define.
10031         (write_archive_locales): New function.
10032         (write_locales): Use it.  Ensure the same locale is not printed
10033         multiple times in verbose mode.
10034         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
10035         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
10036         functions.
10037         (struct nameent): New type.
10038         (nameentcmp): New function.
10040 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
10042         * posix/regex_internal.c (re_string_context_at): Guard wide char
10043         code with #ifdef RE_ENABLE_I18N.
10045 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
10047         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
10049 2002-12-13  Roland McGrath  <roland@redhat.com>
10051         * posix/bug-regex15.c: New file.
10052         * posix/Makefile (tests): Add it.
10054         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
10055         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
10057 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
10059         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
10061         * misc/syslog.c (log_cleanup): Don't use parameter in
10062         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
10063         pass NULL instead of a pointer to syslog_lock.
10065 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
10067         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
10068         linker map for all iconv modules.
10069         (distribute): Add gconv.map.
10070         * iconvdata/gconv.map: New file.
10072         * elf/Makefile: Also check all iconv modules for text relocations.
10074         * stdlib/Makefile: Remove code to automatically import GMP.
10076         * elf/Makefile (tests): Add rules to build and run check-textrel.
10077         * elf/check-textrel.c: New file.
10079         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
10080         directive.
10082 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
10084         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
10085         not st.st[am]time.
10087 2002-04-30  Bruno Haible  <bruno@clisp.org>
10089         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
10090         the encoding if it already has slashes.
10091         Reported by Perry Rapp <prapp@erols.com>.
10093 2002-12-11  Roland McGrath  <roland@redhat.com>
10095         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
10096         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
10097         Turn off PIC for compiling this file.
10099 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
10101         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
10102         definitions.  Not needed.
10103         [_LIBC]: Use definitions from libc-lock.h instead of referencing
10104         pthread routines directly.
10105         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
10106         mutex_init calls.
10107         (arena_get2): Don't look at return value of mutex_lock.
10109 2002-12-11  Roland McGrath  <roland@redhat.com>
10111         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
10112         elf-init.o instead of compiling a PIC version.
10114 2002-12-11  Bruno Haible  <bruno@clisp.org>
10116         * intl/gettext.h: Renamed to ...
10117         * intl/gmo.h: ... here.
10118         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
10119         * intl/gettextP.h: Update.
10120         * intl/loadmsgcat.c: Update.
10122         * intl/gettextP.h (PARAMS): Make more portable.
10123         (attribute_hidden): Define as empty macro if not already defined.
10124         * intl/hash-string.h (PARAMS): Make more portable.
10125         * intl/loadinfo.h (PARAMS): Likewise.
10126         * intl/plural-exp.h (PARAMS): Likewise.
10127         (attribute_hidden): Move definition near the definition of
10128         internal_function.
10130         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
10131         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
10133 2002-07-13  Bruno Haible  <bruno@clisp.org>
10135         * intl/dcigettext.c (freea): New macro.
10136         (FREE_BLOCKS): Free also the registered blocks.
10137         (DCIGETTEXT): Free the 'search' variable.
10138         Reported by Andreas Fischer <a.fischer@asentics.de>.
10140 2002-04-27  Bruno Haible  <bruno@clisp.org>
10142         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
10143         * intl/dcigettext.c: Likewise.
10144         * intl/dcgettext.c: Likewise.
10145         * intl/dgettext.c: Likewise.
10146         * intl/gettext.c: Likewise.
10147         * intl/dcngettext.c: Likewise.
10148         * intl/dngettext.c: Likewise.
10149         * intl/ngettext.c: Likewise.
10150         * intl/textdomain.c: Likewise.
10151         * intl/bindtextdom.c: Likewise.
10152         * intl/plural-exp.h: Likewise.
10154 2002-01-02  Bruno Haible  <bruno@clisp.org>
10156         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
10158 2001-04-30  Bruno Haible  <bruno@clisp.org>
10160         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
10161         default macro definitions.  Needed for mingw32.
10163 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
10165         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
10166         __builtin_constant_p to macro parameter.
10168         * sysdeps/generic/sigpause.c: Define all functions as weak.
10169         * sysdeps/posix/sigpause.c: Likewise.
10171         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
10172         type size_t.
10174 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
10176         * elf/tst-array1.c (preinit_array, init_array, fini_array):
10177         Explicitly align the array to sizeof (void *).
10178         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
10180         * include/libc-symbols.h: Fix a comment typo.
10182         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
10183         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
10184         Likewise.
10185         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
10186         Likewise.
10187         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
10188         (__libc_sigsuspend): Likewise.
10189         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
10190         (__libc_sigsuspend): Likewise.
10191         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
10192         (creat): New weak alias.
10194 2002-12-10  Roland McGrath  <roland@redhat.com>
10196         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
10197         contributes a manual chapter.
10198         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
10199         around xref to it.
10201         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
10202         and move contents to ...
10203         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
10204         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
10205         it instead of duplicating its contents.
10206         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
10208 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
10210         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
10211         defined.
10212         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
10213         function.
10214         (EXTRA_LD_ENVVARS): Use it.
10215         (DL_OSVERSION_INIT): Define.
10216         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
10217         dl-librecon.h.
10218         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
10220 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
10222         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
10224         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
10225         call.  It is not allowed to destroy pthread mutexes which are
10226         still in use even though it is safe for our implementations.  If
10227         somebody still uses the descriptor it is a bug.
10229 2002-12-09  Richard Henderson  <rth@redhat.com>
10231         * csu/abi-note.S: Use .p2align, not .align.
10233 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
10235         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
10236         __libc_select aliases.
10238         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
10239         alias.
10241         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
10243         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
10245         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
10247         * sysdeps/unix/syscalls.list: Define __libc_select alias.
10249         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
10251         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
10252         __libc___xpg_sigpause aliases.
10254         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
10256         * misc/error.c: Remove use of USE_IN_LIBIO.
10258 2002-12-08  Roland McGrath  <roland@redhat.com>
10260         * elf/Makefile (tests): Uncomment tst-array[123].
10261         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
10262         * csu/elf-init.c: New file.
10263         * csu/Makefile (routines, static-only-routines): Add elf-init.
10264         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
10265         and __libc_csu_fini in place of _fini.
10266         * sysdeps/arm/elf/start.S: Likewise.
10267         * sysdeps/cris/elf/start.S: Likewise.
10268         * sysdeps/hppa/elf/start.S: Likewise.
10269         * sysdeps/i386/elf/start.S: Likewise.
10270         * sysdeps/ia64/elf/start.S: Likewise.
10271         * sysdeps/m68k/elf/start.S: Likewise.
10272         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
10273         * sysdeps/mips/elf/start.S: Likewise.
10274         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
10275         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
10276         * sysdeps/s390/s390-32/elf/start.S: Likewise.
10277         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10278         * sysdeps/sh/elf/start.S: Likewise.
10279         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10280         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10281         * sysdeps/x86_64/elf/start.S: Likewise.
10283         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
10284         struct containing function ptr and value, free it.
10285         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
10286         It's not safe to let the new thread use the SIGEV pointer.
10288 2001-10-20  Paul Eggert  <eggert@twinsun.com>
10290         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
10291         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
10292         Use strerror_r that is only a macro, even if it is not a function.
10293         (strerror): Check for HAVE_DECL_STRERROR before declaring.
10294         (private_strerror): Use prototypes, not old-style function definition.
10295         (print_errno_message): New function.
10296         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
10297         char*-flavored one.
10298         (error_tail, error, error_at_line): Use it.
10300 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
10302         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
10304 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
10306         * scripts/output-format.sed: Fix bug in one of the s expressions
10307         which used / for one too many things.
10309         * include/unistd.h: Declare __libc_close.
10311 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
10313         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
10315 2002-12-07  Roland McGrath  <roland@redhat.com>
10317         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
10318         from 2002-12-06, but remove unnecessary memset call without removing
10319         necessary copy of initialization image.
10321         * Makerules ($(common-objpfx)format.lds): New target.
10322         (common-generated): Add it.
10323         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
10324         * scripts/output-format.sed: New file.
10325         * Makefile (distribute): Add it.
10327 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
10329         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
10330         Reported by Art Haas <ahaas@airmail.net>.
10332 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
10334         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
10336 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
10338         * string/test-strncpy.c (do_random_tests): Improve test coverage.
10340 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
10342         * test-skeleton.c (timeout_handler): Allow expected signal to be
10343         SIGALRM.
10345         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
10347         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
10349 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
10351         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
10352         (SYSCALL_ERROR_HANDLER): Fix a pasto.
10353         Reported by Jeff Bailey <jbailey@nisa.net>.
10355 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
10357         * sysdeps/generic/libc-tls.c: Undo last patch.
10359         * include/wctype.h: Define iswalnum with libc_hidden_proto.
10361         * include/signal.h: Define raise with libc_hidden_proto.
10363         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
10364         __execve instead of snprintf and execve.
10366         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
10367         again a bit.
10369 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
10371         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
10372         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
10374 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
10376         * misc/syslog.c (log_cleanup): New function.
10377         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
10378         (closelog): Likewise.
10380         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
10381         * elf/dl-iteratephdr.c: Likewise.
10382         * elf/dl-lookup.c: Likewise.
10383         * elf/dl-misc.c: Likewise.
10384         * elf/dl-open.c: Likewise.
10385         * elf/dl-support.c: Likewise.
10386         * elf/rtld.c: Likewise.
10387         * sysdeps/generic/ldsodefs.h: Likewise.
10388         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
10389         * sysdeps/mach/bits/libc-lock.h: Likewise.
10390         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
10392 2002-12-06  Roland McGrath  <roland@redhat.com>
10394         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
10396         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
10397         (malloc_starter, memalign_starter, free_starter): Don't define these.
10398         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
10399         Don't declare them either.
10400         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
10401         __pthread_initialize, so no need to set hooks to *_starter.
10402         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
10403         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
10404         (__libc_malloc_pthread_startup): New function.
10405         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
10407         * malloc/hooks.c (memalign_starter): New function.
10408         * malloc/malloc.c: Declare it.
10409         * malloc/arena.c (save_memalign_hook): New variable.
10410         (ptmalloc_init): Set __memalign_hook to memalign_starter.
10412         * elf/dl-minimal.c (free): Clear the memory.
10413         (calloc): Just call malloc, knowing all memory it returns is cleared.
10415         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
10416         malloc and memset; calloc can avoid the zeroing when redundant.
10417         (_dl_tls_setup): Likewise.
10418         * elf/dl-load.c (decompose_rpath): Likewise.
10419         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
10420         call, since memory from sbrk at startup is already zero.
10422         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
10423         error string for failure, null for success.  Update callers.
10424         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
10425         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10427 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
10429         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
10430         args to i:iipi.
10431         (readahead): Change args to i:iii.
10432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
10433         Change args to i:iii.
10434         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
10435         args to i:iiii.
10437 2002-12-05  Roland McGrath  <roland@redhat.com>
10439         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
10440         call all functions rather than none.
10441         Reported by Mark P. Mitchell <mark@codesourcery.com>.
10443 2002-12-04  Roland McGrath  <roland@redhat.com>
10445         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
10446         on _nl_current_LC_* variables.
10448 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
10450         * dirent/bug-readdir1.c (main): Don't call closedir, just close
10451         the file descriptor.  This is testing what the bug report was about.
10453 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
10455         * po/be.po: New file.
10457         * argp/Makefile (tests): Add tst-argp1.
10459         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
10460         Change type of _attribute to void*.
10461         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10462         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
10463         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
10464         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10465         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10467 2002-12-04  Roland McGrath  <roland@redhat.com>
10469         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
10470         members to the end, so a libpthread compiled with !USE_TLS will still
10471         find other members properly.
10473         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
10474         operand for DEST memory.  Fix dummy input operand to use SRC.
10475         Reported by Davin McCall <davmac@ozonline.com.au>.
10477         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
10478         alignment when initializing the DTV entry.
10480         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
10481         when TLS has not been set up, try to set it up if we can.
10482         * elf/tst-tls4.c: Revert last change.
10483         * elf/tst-tls5.c: Likewise.
10484         * elf/tst-tls6.c: Likewise.
10485         * elf/tst-tls7.c: Likewise.
10486         * elf/tst-tls8.c: Likewise.
10487         * elf/tst-tls9.c: Likewise.
10489         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
10490         * sysdeps/generic/ldsodefs.h: Declare it.
10491         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
10492         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
10493         function, broken out of __libc_setup_tls.
10494         (init_static_tls): Likewise.
10495         (__libc_setup_tls): Call them.
10496         (_dl_tls_setup): New function, uses new subroutines.
10498         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
10499         Clear the pointer when returning true.
10500         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
10501         first element of the slotinfo list too.
10503         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
10504         [SHARED].
10506         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
10507         (_dl_determine_tlsoffset): Likewise.
10509         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
10510         startup_error_tsd, made global.
10511         (dl_main): Update initialization.
10512         * elf/dl-tsd.c: Likewise.
10513         * sysdeps/generic/ldsodefs.h: Declare it.
10515 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
10517         * manual/texinfo.tex: Update from latest upstream version.
10519 2002-12-03  Roland McGrath  <roland@redhat.com>
10521         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
10522         area surplus in calculation for sbrk call.
10524         * iconvdata/cp1125.c: New file.
10525         * iconvdata/Makefile (distribute): Add it.
10526         (modules): Add CP1125.
10527         (gen-8bit-gap-modules): Add cp1125.
10528         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
10529         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
10531 2002-12-03  Andreas Jaeger  <aj@suse.de>
10533         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10535 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
10537         * sysdeps/posix/system.c (do_system): Make signal handler
10538         installation thread safe.
10540 2002-12-02  Roland McGrath  <roland@redhat.com>
10542         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
10543         caller from EXTRA to -.
10544         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10545         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10546         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10548 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
10550         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
10551         bits of RM are cleared.
10553 2002-12-02  Roland McGrath  <roland@redhat.com>
10555         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
10556         TLS setup is required.
10557         * elf/tst-tls5.c: Likewise.
10558         * elf/tst-tls6.c: Likewise.
10559         * elf/tst-tls7.c: Likewise.
10560         * elf/tst-tls8.c: Likewise.
10561         * elf/tst-tls9.c: Likewise.
10563         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
10564         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
10565         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
10566         for being null before calling free_slotinfo.
10567         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
10568         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
10570 2002-11-30  Bruno Haible  <bruno@clisp.org>
10572         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
10573         (struct __gconv_step): New field __btowc_fct.
10574         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
10575         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
10576         __BUILTIN_TRANS.
10577         (__gconv_btwoc_ascii): New declaration.
10578         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
10579         (__gconv_btwoc_ascii): New function.
10580         * iconv/gconv_builtin.h: Add BtowcFct argument to all
10581         BUILTIN_TRANSFORMATION invocations.
10582         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
10583         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
10584         * iconv/gconv_builtin.c (map): New field btowc_fct.
10585         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
10586         btowc_fct field.
10587         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
10588         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
10589         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
10590         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
10591         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
10592         (gconv_init): Initialize __btowc_fct field.
10593         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
10594         * iconv/loop.c: Document ONEBYTE_BODY.
10595         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
10596         Undefine ONEBYTE_BODY at the end.
10597         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
10598         * iconvdata/8bit-gap.c (NONNUL): New macro.
10599         (BODY for FROM_LOOP): Use it.
10600         (ONEBYTE_BODY): New macro.
10601         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
10602         (NONNUL): New macro.
10603         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
10604         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
10605         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
10606         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
10607         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
10608         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
10609         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
10610         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
10611         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
10612         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
10613         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
10614         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
10615         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
10616         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
10617         * iconvdata/ibm932.c: Include <stdbool.h>.
10618         (TRUE, FALSE): Remove macros.
10619         (BODY for FROM_LOOP): Remove unused variable rp1.
10620         (ONEBYTE_BODY): New macro.
10621         (BODY for TO_LOOP): Use bool.
10622         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
10623         * iconvdata/ibm943.c: Include <stdbool.h>.
10624         (TRUE, FALSE): Remove macros.
10625         (BODY for FROM_LOOP): Remove unused variable rp1.
10626         (ONEBYTE_BODY): New macro.
10627         (BODY for TO_LOOP): Use bool.
10628         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
10629         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
10630         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
10631         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
10632         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
10633         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
10634         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
10635         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
10636         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
10637         * iconvdata/gbbig5.c: Tweak comment.
10639 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
10641         * po/fi.po: Update from translation team.
10643 2002-12-01  Roland McGrath  <roland@redhat.com>
10645         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10646         testing getdents64 return value.
10648         * scripts/versions.awk: Don't pass -n flag to sort command.
10650         * posix/bug-regex13.c: Include <string.h>.
10652         * sysdeps/generic/libc-start.c (__libc_start_main): Do
10653         DL_SYSDEP_OSCHECK here.
10654         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
10655         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
10657         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
10658         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
10660         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
10661         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
10663         * include/link.h: Comment typo fix.
10665 2002-12-01  Roland McGrath  <roland@frob.com>
10667         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
10668         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
10669         _POSIX_MEMORY_PROTECTION): Likewise.
10670         (_POSIX_POLL, _POSIX_SELECT): Removed.
10672 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
10674         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
10675         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
10677 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
10679         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
10680         USE___THREAD.
10681         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
10682         "=v" constraints.
10684 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
10686         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
10687         branch prediction buffers by using unpaired call/ret.
10689 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
10691         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
10692         first parameters constraint string.
10693         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
10695 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
10697         * posix/regcomp.c (parse_expression): Set the bit since the back
10698         reference is used in the regular expression.
10699         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
10700         of malloc failure.
10701         (re_node_set_init_copy): Likewise.
10702         * posix/regex_internal.h (state_array_t): New structure.
10703         (re_sub_match_last_t): Likewise.
10704         (re_sub_match_top_t): Likewise.
10705         (re_match_context_t): Add new members.
10706         (re_dfa_t): Likewise.
10707         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
10708         to check the matching is really correct, and retry if failed.
10709         Move the routin pruning the impossible nodes from here, ...
10710         (prune_impossible_nodes): To this function.
10711         (check_matching): Invoke check_subexp_matching_top, and replace
10712         redundant checking with transit_state_bkref invocation.
10713         (proceed_next_node): Replace strncmp with memcmp.  Reported by
10714         Paolo Bonzini  <bonzini@gnu.org>.
10715         (update_cur_sifted_state): Remove search_subexp invocation.
10716         (search_subexp): Remove this function.
10717         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
10718         optimization.
10719         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
10720         Remove unused invocation of match_ctx_add_entry.
10721         (transit_state): Invoke check_subexp_matching_top.
10722         (check_subexp_matching_top): New function.
10723         (transit_state_bkref): Remove unused array.
10724         Merge transit_state_bkref_loop.
10725         (transit_state_bkref_loop): Use get_subexp instead of
10726         sift_states_backward.  Use search_cur_bkref_entry for optimization.
10727         Merge this function to transit_state_bkref.
10728         (get_subexp): New function.
10729         (get_subexp_sub): Likewise.
10730         (find_subexp_node): Likewise.
10731         (check_arrival): Likewise.
10732         (check_arrival_expand_ecl): Likewise.
10733         (check_arrival_expand_ecl_sub): Likewise.
10734         (expand_bkref_cache): Likewise.
10735         (match_ctx_init): Initialize new members.
10736         (match_ctx_clean): New function.
10737         (match_ctx_free): Release new members.
10738         (match_ctx_free_subtops): New function.
10739         (match_ctx_add_entry): Fix indent.
10740         (search_cur_bkref_entry): New function.
10741         (match_ctx_add_subtop): Likewise.
10742         (match_ctx_add_sublast): Likewise.
10744 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
10746         * iconv/Makefile (tests): Remove tst-iconv4.c
10747         * iconv/tst-iconv4.c: Moved to...
10748         * iconvdata/tst-iconv4.c: ...here.  New file.
10749         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
10751 2002-11-25  Roland McGrath  <roland@redhat.com>
10753         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
10754         Grok AF_LINK if defined.
10755         From Momchil Velikov <velco@fadata.bg>.
10757         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
10758         brdaddr, or dstaddr, just set those pointers to null and don't fail.
10759         Reported by Momchil Velikov <velco@fadata.bg>.
10761         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
10762         is > sizeof IFR->ifa_addr, advance past the whole longer length.
10763         (__ifreq): Count up NIFS that way too.
10764         Reported by Momchil Velikov <velco@fadata.bg>.
10766         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
10768         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
10769         and <fpu_control.h>.
10771 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
10773         * elf/elf.h (EM_ST19): Fix typo.
10775 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
10777         * include/errno.h (__set_errno): Define as errno = val
10778         unconditionally.
10780 2002-11-24  Roland McGrath  <roland@redhat.com>
10782         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
10783         * sysdeps/posix/writev.c: Likewise.
10784         From Momchil Velikov <velco@fadata.bg>.
10786         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
10787         calling *GL(dl_error_catch_tsd) for a thread-local location.
10788         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
10789         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
10790         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
10792         * libio/iofflush.c: Add libc_hidden_def.
10793         * libio/iofwrite.c: Likewise.
10794         * sysdeps/generic/sigtimedwait.c: Likewise.
10795         * sysdeps/generic/sigwaitinfo.c: Likewise.
10796         * sysdeps/posix/sigwait.c: Likewise.
10797         Reported by Momchil Velikov <velco@fadata.bg>.
10799         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
10800         to match <arpa/inet.h> declaration.
10801         * inet/inet_netof.c (inet_netof): Likewise.
10802         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
10803         Reported by Momchil Velikov <velco@fadata.bg>.
10805         * configure.in: Skip AUTOCONF check under --without-cvs.
10806         * configure: Regenerated.
10808         * posix/Makefile (headers): Add bits/pthreadtypes.h.
10809         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
10810         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
10812 2002-11-24  Andreas Schwab  <schwab@suse.de>
10814         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
10815         with six arguments.
10817 2002-11-19  Jim Meyering  <jim@meyering.net>
10819         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
10820         as `static'.
10821         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
10823 2002-11-23  Roland McGrath  <roland@redhat.com>
10825         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
10826         Just produce hex output for datum sizes.
10828         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
10829         Reported by Luca Barbieri <ldb@ldb.ods.org>.
10831 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
10833         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
10834         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
10835         and __unused3 fields.
10836         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
10837         [__WORDSIZE == 32]: Only PPC32 requires __unused1
10838         and __unused2 fields.
10839         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
10840         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
10841         __unused3, and __unused4 fields.
10843         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
10844         obtain lowest address for profiling in __monstartup call.
10846 2002-11-21  Roland McGrath  <roland@redhat.com>
10848         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
10849         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
10851         * locale/localeinfo.h (struct locale_data): Revert last change.
10853         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
10854         From Ian Wienand <ianw@gelato.unsw.edu.au>.
10856         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
10857         __NR_pread64 if not defined.
10858         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
10859         From Ian Wienand <ianw@gelato.unsw.edu.au>.
10861 2002-11-21  Roland McGrath  <roland@frob.com>
10863         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
10864         __libc_multiple_libcs here.  Call __setfpucw.
10866 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
10868         * elf/Makefile (tests): Don't run test-arrayX tests for now.
10870         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
10871         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
10872         CLONE_CHILD_*TID flags.
10874 2002-11-20  Andreas Jaeger  <aj@suse.de>
10876         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
10877         We pass struct ucontext on x86-64.
10878         (GET_PC): Adjust.
10879         (GET_FRAME): Adjust.
10880         (GET_STACK): Adjust.
10882 2002-11-20  Roland McGrath  <roland@redhat.com>
10884         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
10885         conditionalize [! DO_VERSIONING] #error.
10887         * scripts/abilist.awk: Grok function descriptor symbols.
10889         * intl/tst-gettext.c (main): Check return values from setlocale.
10890         Add necessary unsetenv's to make LANG=existing-locale check work.
10892         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
10893         so aborted prior runs don't confuse things.
10895         * locale/localeinfo.h (struct locale_data: union locale_data_value):
10896         Use uintptr_t instead of unsigned int for `word' member.
10897         (_NL_CURRENT_WORD): Cast to uint32_t.
10899         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
10900         value.
10902 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
10904         * elf/tls-macros.h: Add IA-64 definitions.
10905         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
10907         * iconv/Makefile (tests): Add tst-iconv4.
10908         * iconv/tst-iconv4.c: New file.
10910         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
10911         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
10912         __GCONV_INCOMPLETE_INPUT.
10913         (ucs4le_internal_loop): Likewise.
10914         (ucs4le_internal_loop_unaligned): Likewise.
10915         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
10916         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
10917         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
10919         * iconv/loop.c (LOOPFCT): First test for empty input then for full
10920         output buffer.
10922         * inet/getnameinfo.c: Use extend_alloca where appropriate.
10923         * sysdeps/posix/getaddrinfo.c: Likewise.
10925         * include/alloca.h (extend_alloca): New define.  Based on stack
10926         direction it'll try to append to the previouls allocated buffer.
10928 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
10930         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
10931         use the same service for AF_INET and AF_INET6.
10933 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
10935         * intl/localealias.c (read_alias_file): Use only about 400 bytes
10936         of stack space instead of 16k.
10938 2002-11-18  Wolfram Gloger  <wg@malloc.de>
10940         * malloc/arena.c
10941         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
10942         nothing if not initialized.  Bug report from Marcus Brinkmann
10943         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10945 2002-11-19  Roland McGrath  <roland@redhat.com>
10947         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
10948         sched_setaffinity.
10950         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
10951         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
10952         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
10953         * configure: Regenerated.
10955 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
10957         * include/dlfcn.h: __libc_dlopen is now a macro calling
10958         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
10959         (__libc_dlopen_mode): New prototype.
10960         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
10961         new parameter.  Store new parameter in mode field of structure passed
10962         to do_dlopen.
10963         (struct do_dlopen_args): Add new field mode.
10964         (do_dlopen): Pass mode from parameter structure to _dl_open.
10966 2002-11-11  Randolf Chung  <tausq@debian.org>
10968         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
10969         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
10970         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
10972         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
10974         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
10975         Set -mdisable-fpregs for this file.
10977 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
10979         * sysdeps/unix/sysv/linux/configure.in:
10980         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
10981         from gcc-3.0 era for backwards compatibility.
10982         * sysdeps/unix/sysv/linux/configure: Regenerate.
10984         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
10985         Define mcontext_t as a sigcontext.
10987 2002-11-18  Roland McGrath  <roland@redhat.com>
10989         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
10990         Free memory in `last_result' if it was used.
10992         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
10993         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
10994         Do the parsing inline instead of copying strings and calling
10995         inet_network, and properly skip all alias names not matching the form.
10997         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
10999 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
11001         * manual/pattern.texi (Wordexp Example): Fix sample code.
11003         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
11004         childs stack which will be loaded into the %esi register.
11006 2002-11-14  Paul Eggert  <eggert@twinsun.com>
11008         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
11009         overflow when skipping the question part and when unpacking aliases.
11011 2002-11-15  Roland McGrath  <roland@redhat.com>
11013         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
11014         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
11015         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
11017 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
11019         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
11020         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
11022 2002-11-15  Roland McGrath  <roland@redhat.com>
11024         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
11025         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
11026         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
11027         (+make-include-of-dep): New canned sequence.
11029         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
11030         From Dmitry V. Levin <ldv@altlinux.org>.
11032 2002-11-14  Roland McGrath  <roland@redhat.com>
11034         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
11035         * inet/herrno.c (__libc_h_errno): Likewise.
11036         * resolv/res_libc.c (__libc_res): Likewise.
11037         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
11038         (__res_state) [! USE___THREAD]: Don't define as weak.
11039         * csu/Versions: Revert last change.
11040         * resolv/Versions: Revert last change.
11042         * Makerules ($(common-objpfx)%.make): New pattern rule.
11043         * tls.make.c: New file.
11044         * Makefile (distribute): Add it.
11046         * sysdeps/generic/errno.c [! USE___THREAD]
11047         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
11048         with compat_symbol so they are not link-time visible.
11049         [! USE___THREAD] (__libc_errno): New alias for errno.
11050         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
11051         Add __libc_errno here.
11052         * inet/herrno.c [USE___THREAD]: Use this conditional
11053         in place of [USE_TLS && HAVE___THREAD].
11054         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
11055         (h_errno, _h_errno): Declare these with compat_symbol so they are not
11056         link-time visible.
11057         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
11058         * resolv/res_libc.c [! USE___THREAD]
11059         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
11060         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
11061         (__libc_res): Define as alias for _res.
11062         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
11063         Add __libc_h_errno and __libc_res here.
11065 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
11067         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
11068         * resolv/Versions (h_errno, _res): Likewise.
11070 2002-11-14  Roland McGrath  <roland@redhat.com>
11072         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
11073         (%.symlist): Likewise.
11075 2002-11-13  Roland McGrath  <roland@redhat.com>
11077         * scripts/abilist.awk: New file.
11078         * Makefile (distribute): Add it.
11079         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
11080         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
11081         [$(subdir) = elf] (tests): Depend on libc.symlist.
11082         (generated, common-generated): Add those files.
11084         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
11085         * configure: Regenerated.
11086         * config.make.in (OBJDUMP): New variable, substituted by configure.
11088         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
11089         (mallochook, reallochook): Set them up.
11090         (checkhdr): Check HDR->magic2 value.
11091         (freehook): Reset HDR->magic2.
11092         (memalignhook): New static function.
11093         (old_memalign_hook): New static variable.
11094         (mcheck, reallochook): Set __memalign_hook to memalignhook.
11096         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
11097         for the new TCB.
11099 2002-11-13  Andreas Jaeger  <aj@suse.de>
11101         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
11102         attribute.
11103         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11105 2002-11-11  Paul Eggert  <eggert@twinsun.com>
11107         * manual/crypt.texi (Cryptographic Functions): Mention that
11108         the MD5 one-way algorithm is compatible with BSD's.
11110 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
11112         * posix/regex_internal.c (re_string_skip_chars): Also return the last
11113         wide character.
11114         (re_string_reconstruct): Calculate the context by itself when the
11115         offset points out of the valid range.
11116         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
11117         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
11118         (IS_WIDE_WORD_CHAR): New macro.
11119         (IS_WIDE_NEWLINE): New macro.
11121 2002-11-12  Andreas Jaeger  <aj@suse.de>
11123         * sysdeps/x86_64/strchr.S: Don't use one register for two
11124         purposes, this fixes a bug noticed by test-strchr.c.
11126         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
11127         correctly.
11129 2002-11-12  Roland McGrath  <roland@redhat.com>
11131         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
11132         (_G_IO_NO_BACKWARD_COMPAT): Define it.
11134         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
11135         instead of <pt-machine.h>.
11136         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
11137         testandset.
11138         From Ian Wienand <ianw@gelato.unsw.edu.au>.
11140 2002-11-10  Roland McGrath  <roland@redhat.com>
11142         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
11143         Call fputs instead of fwprintf (simpler to follow in debugger).
11145         * crypt/md5-crypt.c: Doc fix.
11147         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
11148         the beginning of generated target commands.
11150         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
11151         dependencies for these in case implicit rule search skipped the
11152         nonexistent source directory.
11153         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
11154         files with $(object-suffixes) as targets too.
11155         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
11156         and a target for it using $(make-target-directory).
11158         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
11160 2002-11-10  Roland McGrath  <roland@frob.com>
11162         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
11163         * sysdeps/generic/bits/pthreadtypes.h: ... here.
11165         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
11166         l_start == 0 and l_len == 1 as we do l_len == 0.
11168 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
11170         * po/da.po: Update from translation team.
11172 2002-11-10  Roland McGrath  <roland@redhat.com>
11174         * config.make.in (includedir): New variable, substituted by configure.
11175         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
11176         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
11178 2002-11-10  Andreas Jaeger  <aj@suse.de>
11180         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
11181         REG_OLDMASK and REG_CR2 to synch with kernel header.
11182         (NGREG): Increase.
11184         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
11185         aliasing problem.
11186         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
11187         * nss/getnssent_r.c (__nss_getent_r): Likewise.
11188         (__nss_setent): Likewise.
11189         (__nss_getent_r): Likewise.
11190         * inet/getnetgrent_r.c (innetgr): Likewise.
11191         (__internal_setnetgrent_reuse): Likewise.
11192         (internal_getnetgrent_r): Likewise.
11193         * inet/ether_hton.c (ether_hostton): Likewise.
11194         * inet/ether_ntoh.c (ether_ntohost): Likewise.
11195         * sunrpc/netname.c (netname2user): Likewise.
11196         * sunrpc/publickey.c (getpublickey): Likewise.
11197         (getsecretkey): Likewise.
11199 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
11201         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
11202         error in range calculation.
11204 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
11206         * string/test-strspn.c (do_test): Ensure zero termination.
11207         * string/test-strpbrk.c (do_test): Likewise.
11208         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
11209         * string/test-strncpy.c (stupid_strncpy): Likewise.
11210         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
11212 2002-10-08  Roland McGrath  <roland@redhat.com>
11214         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
11215         nonzero characters.
11217 2002-09-22  H.J. Lu  <hjl@gnu.org>
11219         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
11220         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
11221         only if __NR_mmap2 is defined.
11223         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
11224         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
11225         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
11226         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
11228 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
11230         * posix/bug-regex13.c (tests): Add new test.
11232         * string/test-strchr.c (stupid_strchr): New function.
11233         (do_random_tests): Make sure the string is zero terminated.
11234         * string/test-strpbrk.c (stupid_strpbrk): New function.
11235         (do_random_tests): Make sure the string is zero terminated.
11236         * string/test-strcmp.c (stupid_strcmp): New function.
11237         (do_random_tests): Make sure the strings are zero terminated.
11238         * string/test-strspn.c (stupid_strspn): New function.
11239         (simple_strspn): Rename rej argument to acc.
11240         (do_random_tests): Make sure the string is zero terminated.
11241         * string/test-strcspn.c (stupid_strcspn): New function.
11242         * string/test-strncpy.c (stupid_strncpy): New function.
11243         * string/test-stpncpy.c (stupid_stpncpy): New function.
11244         * string/test-strncmp.c (stupid_strncmp): New function.
11245         (do_random_tests): Make sure the strings are zero terminated.
11246         * string/test-string.h (impl_t): Change test into long.
11247         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
11249 2002-11-08  Roland McGrath  <roland@redhat.com>
11251         * sysdeps/ia64/elf/configure.in: Add TLS check.
11252         From Ian Wienand <ianw@cse.unsw.edu.au>.
11253         * sysdeps/ia64/elf/configure: Regenerated.
11255 2002-11-07  Roland McGrath  <roland@redhat.com>
11257         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
11258         place of _IO_new_do_write.
11259         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
11260         #undef before versioned_symbol use.
11262 2002-11-07  Richard Henderson  <rth@redhat.com>
11264         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
11265         * configure: Regenerated.
11266         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
11267         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
11268         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
11269         _dl_fini via gp-relative relocations.
11270         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
11272         * elf/tls-macros.h: Add alpha versions.
11273         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
11274         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
11275         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
11276         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
11277         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
11278         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
11279         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
11280         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
11281         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
11282         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
11283         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
11284         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
11285         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
11286         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
11287         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
11288         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
11289         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
11290         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
11292         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
11293         Kill argument registers across the inline syscall.
11295         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
11297         * linuxthreads/sysdeps/alpha/tls.h: New file.
11298         * sysdeps/alpha/dl-tls.h: New file.
11300 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
11302         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
11303         (gmon_initializer): New function.
11304         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
11305         __gmon_start__ here.  Call it from gmon_initializer() instead.
11307 2002-03-12  H.J. Lu  <hjl@gnu.org>
11309         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
11310         tst-array2, and tst-array3.
11311         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
11312         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
11313         ($(objpfx)tst-array1.out): New target.
11314         ($(objpfx)tst-array2): Likewise.
11315         ($(objpfx)tst-array2.out): Likewise.
11316         ($(objpfx)tst-array3.out): Likewise.
11317         * elf/tst-array1.c: New file.
11318         * elf/tst-array1.exp: Likewise.
11319         * elf/tst-array2.c: Likewise.
11320         * elf/tst-array2dep.c: Likewise.
11321         * elf/tst-array2.exp: Likewise.
11322         * elf/tst-array3.c: Likewise.
11324 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
11326         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
11327         Don't add L->l_addr to array entry values.
11329 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
11331         * string/test-string.h: New file.
11332         * string/test-strlen.c: New file.
11333         * string/test-string.h: New file.
11334         * string/test-strcmp.c: New file.
11335         * string/test-strchr.c: New file.
11336         * string/test-strrchr.c: New file.
11337         * string/test-strcpy.c: New file.
11338         * string/test-stpcpy.c: New file.
11339         * string/test-strncpy.c: New file.
11340         * string/test-stpncpy.c: New file.
11341         * string/test-strpbrk.c: New file.
11342         * string/test-strcspn.c: New file.
11343         * string/test-strspn.c: New file.
11344         * string/test-strcat.c: New file.
11345         * string/test-strncmp.c: New file.
11346         * string/test-memchr.c: New file.
11347         * string/test-memcmp.c: New file.
11348         * string/test-memset.c: New file.
11349         * string/test-memcpy.c: New file.
11350         * string/test-mempcpy.c: New file.
11351         * string/test-memmove.c: New file.
11352         * string/Makefile (strop-tests): New variable.
11353         (tests): Add strop-tests.
11354         (distribute): Add test-string.h.
11356 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
11358         * posix/regcomp.c: Use tabs instead of spaces.
11359         * posix/regexec.c: Likewise.
11360         * posix/regex_internal.h: Likewise.
11362         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
11364 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
11366         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
11367         here.
11368         (regcomp): Don't set can_be_null here.
11369         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
11370         (re_compile_internal): Clear can_be_null, set regs_allocated.
11372         * posix/regcomp.c (re_set_fastmap): New function.
11373         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
11374         COMPLEX_BRACKET check.
11375         * posix/regexec.c (re_search_internal): Optimize searching with
11376         fastmap.  Call re_string_reconstruct even if match_first is
11377         smaller than raw_mbs_idx.
11379 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
11381         * posix/regcomp (free_dfa_content): Use free_state.
11382         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
11383         pointers in case that realloc failed.
11384         (re_node_set_merge): Likewise.
11385         (register_state): Likewise.
11386         (create_newstate_common): Invoke memory release functions in case of
11387         error conditions.
11388         (create_ci_newstate): Likewise.
11389         (create_cd_newstate): Likewise.
11390         (free_state): New function.
11391         * posix/regexec.c (re_search_internal): Invoke memory release
11392         functions in case of error conditions.
11393         (sift_states_backward): Likewise.
11394         (merge_state_array): Likewise.
11395         (add_epsilon_src_nodes): Likewise.
11396         (sub_epsilon_src_nodes): Likewise.
11397         (search_subexp): Likewise.
11398         (sift_states_bkref): Likewise.
11399         (transit_state_sb): Likewise.
11400         (transit_state_mb): Likewise.
11401         (transit_state_bkref_loop): Likewise.
11402         (group_nodes_into_DFAstates): Likewise.
11403         (push_fail_stack): Don't edit pointers in case that realloc failed.
11404         (extend_buffers): Likewise.
11405         (match_ctx_add_entry): Likewise.
11407 2002-11-06  Roland McGrath  <roland@redhat.com>
11409         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
11410         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
11412         * configure.in: Add checks on as and ld for binutils 2.13 or later.
11413         * configure: Regenerated.
11415 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
11417         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
11418         If re_compile_internal failed free fastmap buffer.
11419         (free_dfa_content): Broken out of regfree function.  Frees all dfa
11420         related data.
11421         (regfree): Add free_dfa_content.
11422         (re_compile_internal): If any of the called functions fails free
11423         all dfa related memory.
11425 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11427         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
11428         warnings from the kernel headers.
11430 2002-11-05  Roland McGrath  <roland@redhat.com>
11432         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
11433         From Johannes Stezenbach <js@convergence.de>.
11435         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
11436         #errlist-compat magic comment to give 123 as size.
11437         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
11438         (libc: GLIBC_2.2): ... here.
11439         (libc: GLIBC_2.3): Likewise.
11441 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11443         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
11444         which happens at the beginning so that we can unload modules in
11445         __libc_freeres.
11447 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11449         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
11450         under [__USE_MISC || _ASM].
11452         * elf/elf.h: Remove the obsolete SH TLS relocations.
11454 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11456         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
11458 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
11461         __NR_pread64 and __NR_pwrite64.
11462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11463         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
11464         and __NR_pwrite64.
11465         Revert change to use INLINE_SYSCALL.
11466         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11467         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
11468         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11469         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
11470         INLINE_SYSCALL.
11471         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
11473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11474         Update clobber list and add a comment about the syscall ABI.
11476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
11477         s_pwrite64, s_ftruncate, s_truncate): Re-add.
11479 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
11481         * iconv/gconv_dl.c (free_mem): Clear loaded.
11482         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
11483         cleanup if any.
11485 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11487         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
11489         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
11490         as old code without locking.  _IO_seekoff calls this function after
11491         locking the stream.
11492         * libio/ioseekpos.c: Likewise for _IO_seekpos.
11493         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
11494         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
11495         prototypes.
11496         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
11497         of _IO_seekoff_internal.
11498         (_IO_rewind): Likewise.
11499         * libio/ioftell.c: Likewise.
11500         * libio/ftello.c: Likewise.
11501         * libio/ftello64.c: Likewise.
11502         * libio/iofgetpos.c: Likewise.
11503         * libio/iofgetpos64.c: Likewise.
11504         * libio/oldiofgetpos.c: Likewise.
11505         * libio/oldiofgetpos64.c: Likewise.
11506         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
11507         _IO_seekpos_internal.
11508         * libio/iofsetpos64.c: Likewise.
11509         * libio/oldiofsetpos.c: Likewise.
11510         * libio/oldiofsetpos64.c: Likewise.
11512 2002-11-04  Roland McGrath  <roland@redhat.com>
11514         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
11515         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
11516         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
11517         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
11518         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11519         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
11520         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11521         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
11522         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
11523         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
11524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
11525         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
11526         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
11527         Remove these, no longer used.
11529 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
11532         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
11533         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
11534         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
11535         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
11536         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
11537         syscall stubs.
11539         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
11540         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11541         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
11542         and __NR_pread.
11543         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11544         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
11545         and __NR_pwrite.
11546         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11548 2002-11-03  Roland McGrath  <roland@redhat.com>
11550         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
11551         `_dl_tls_static_used'.
11552         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
11553         (__libc_setup_tls): Initialize it.  Let the initial value of
11554         _dl_tls_static_size indicate some surplus space in the computed value.
11555         * elf/dl-open.c (_dl_tls_static_size): New variable.
11556         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
11557         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
11558         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
11559         (CHECK_STATIC_TLS): Use it.
11560         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
11561         closed objects occupied a trailing contiguous chunk of static TLS area.
11563 2002-10-18  Bruno Haible  <bruno@clisp.org>
11565         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
11567 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
11569         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
11570         _wide_data->_IO_read_end if adjustment can be made in the current
11571         buffer.
11573         * sysdeps/unix/sysv/linux/fexecve.c: New file.
11575         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
11576         wide oriented streams are used.
11578         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
11579         service hasn't been used [PR libc/4744].
11581         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
11582         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
11584         * manual/examples/dir.c: Don't include <stddef.h>.
11585         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
11586         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
11588 2002-11-02  H.J. Lu  <hjl@gnu.org>
11590         * stdio-common/reg-printf.c: Include <stddef.h>.
11592 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
11594         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
11596         * po/ca.po: Update from translation team.
11597         * po/es.po: Likewise.
11599         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
11600         is defined write out memory map.
11601         * sysdeps/unix/sysv/linux/segfault.c: New file.
11603 2002-11-02  Roland McGrath  <roland@redhat.com>
11605         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
11606         pointers that can alias.
11607         Reported by Daniel Jacobowitz <drow@mvista.com>.
11609         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
11611 2002-11-02  Roland McGrath  <roland@redhat.com>
11613         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
11614         description to be clearer and to say that *RESULT is set to ENTRY.
11616 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11618         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
11619         dests_ch arrays together.  Alloca or malloc dest_states,
11620         dest_states_word and dest_states_nl arrays together.  Free memory on
11621         error exit.
11623 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
11625         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
11626         and current_saltbits.
11628 2002-11-02  Roland McGrath  <roland@redhat.com>
11630         * stdio-common/reg-printf.c: Include <stdlib.h>.
11632 2002-11-02  H.J. Lu  <hjl@gnu.org>
11634         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
11635         caller to EXTRA instead of execve.
11637 2002-11-01  Roland McGrath  <roland@redhat.com>
11639         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
11640         in place of [!(USE_TLS && HAVE___THREAD)].
11641         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
11643 2002-10-31  Roger Sayle  <roger@eyesopen.com>
11645         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
11646         New macros.
11647         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11649         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
11650         without defining FP_ROUNDMODE.
11652 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
11654         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
11655         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
11656         declare_symbol.
11657         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
11658         (OLD_SIGLIST_SIZE): Define.
11659         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
11660         (OLD_SIGLIST_SIZE): Define.
11661         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
11663 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
11665         * sysdeps/ia64/strncpy.S: Fix recovery code.
11667 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11669         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
11670         New macros.
11671         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
11672         text_set_element.
11673         * elf/dl-libc.c (free_mem): Likewise.
11674         * iconv/gconv_conf.c (free_mem): Likewise.
11675         * iconv/gconv_db.c (free_mem): Likewise.
11676         * iconv/gconv_dl.c (free_mem): Likewise.
11677         * iconv/gconv_cache.c (free_mem): Likewise.
11678         * intl/finddomain.c (free_mem): Likewise.
11679         * intl/dcigettext.c (free_mem): Likewise.
11680         * locale/setlocale.c (free_mem): Likewise.
11681         * misc/fstab.c (fstab_free): Likewise.
11682         * nss/nsswitch.c (free_mem): Likewise.
11683         * posix/regcomp.c (free_mem): Likewise.
11684         * resolv/gai_misc.c (free_res): Likewise.
11685         * stdlib/fmtmsg.c (free_mem): Likewise.
11686         * sunrpc/clnt_perr.c (free_mem): Likewise.
11687         * sysdeps/generic/setenv.c (free_mem): Likewise.
11688         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
11689         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
11690         * time/tzset.c (free_mem): Likewise.
11691         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
11692         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
11693         * malloc/set-freeres.c (__libc_freeres): Likewise.
11695         * login/getutent.c: Include stdlib.h instead of stddef.h.
11696         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
11697         (__getutent): Allocate buffer the first time it is run.
11698         * login/getutid.c: Include stdlib.h instead of stddef.h.
11699         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
11700         (__getutid): Allocate buffer the first time it is run.
11701         * login/getutline.c: Include stdlib.h instead of stddef.h.
11702         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
11703         (__getutline): Allocate buffer the first time it is run.
11704         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
11705         (mtrace): Allocate malloc_trace_buffer.
11706         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
11707         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
11708         * string/strerror.c: Include libintl.h and errno.h.
11709         (buf): New variable.
11710         (strerror): Only allocate buffer if actually needed (unknown error).
11711         * time/tzfile.c (transitions): Add libc_freeres_ptr.
11712         (freeres): Remove.
11714 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
11716         * include/libc-symbols.h (libc_freeres_ptr): New macro.
11717         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
11718         symbol_set_define.
11719         (__libc_freeres): Free all pointers in that section.
11720         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
11721         commands when creating .lds script.
11722         (LDSEDCMD-c.so): New variable.
11723         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
11724         (rcmd_af): Use strdup to allocate ahostbuf.
11725         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
11726         (rexec_af): Use strdup to allocate ahostbuf.
11727         * stdio-common/reg-printf.c (printf_funcs): Remove.
11728         (__printf_arginfo_table): Change into printf_arginfo_function **.
11729         Add libc_freeres_ptr.
11730         (__register_printf_function): Allocate __printf_arginfo_table
11731         and __printf_function_table the first time it is called.
11732         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
11733         printf_arginfo_function **.
11734         (parse_one_spec): Add __builtin_expect.
11735         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
11736         (free_mem): Remove.
11737         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
11738         (free_mem): Remove.
11739         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
11740         (string_space, map): Add libc_freeres_ptr.
11741         (free_mem): Remove.
11742         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
11743         (free_mem): Remove.
11744         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
11745         (free_mem): Remove.
11746         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
11747         (buffer): Add libc_freeres_ptr.
11748         (free_mem): Remove for _LIBC.
11749         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
11750         (free_mem): Remove.
11751         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
11752         (free_mem): Remove.
11753         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
11754         (free_mem): Remove.
11755         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
11756         (free_mem): Remove.
11757         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
11758         (free_mem): Remove.
11759         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
11760         (free_mem): Remove.
11761         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
11762         libc_freeres_ptr.
11763         (free_mem): Remove.
11764         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
11765         libc_freeres_ptr.
11766         (free_mem): Remove.
11768 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11770         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
11771         instead of duplicating the whole function in libc.
11773 2002-10-31  Roland McGrath  <roland@redhat.com>
11775         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
11776         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
11778 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11780         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
11781         32bit-predefine when creating .new32 list and -U for each
11782         32bit-predefine when creating .new64 list.
11783         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
11785 2002-10-29  Andreas Schwab  <schwab@suse.de>
11787         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
11788         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
11790 2002-10-25  Roland McGrath  <roland@redhat.com>
11792         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
11793         * sysdeps/unix/sysv/linux/configure: Regenerated.
11795         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
11796         _dl_starting_up decl.
11798 2002-10-20  H.J. Lu  <hjl@gnu.org>
11800         * sysdeps/unix/sysv/linux/configure.in: Don't check
11801         /lib/modules/`uname -r`/build/include for kernel headers if
11802         cross compiling.
11803         * sysdeps/unix/sysv/linux/configure: Regenerated.
11805 2002-10-25  Roland McGrath  <roland@redhat.com>
11807         * math/math.h (M_LOG2El): Correct the value.
11808         From Stephen L Moshier <steve@moshier.net>.
11810         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
11811         conditional from __libc_multiple_libcs access.  Remove kludge for weak
11812         symbol access with old compilers we no longer support.
11813         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
11814         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
11816 2002-10-25  Roland McGrath  <roland@redhat.com>
11818         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
11819         implement SV_RESETHAND by translating it to SA_RESETHAND.
11821 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
11823         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
11824         type on ELF64 platforms.
11826 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
11828         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
11830         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
11832 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
11834         * elf/dl-misc.c: Include <sysdep.h>.
11835         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
11837         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
11838         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
11839         (INLINE_SYSCALL): Use that.
11840         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
11841         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
11842         (INLINE_SYSCALL): Use that.
11843         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
11844         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
11845         (INLINE_SYSCALL): Use that.
11846         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
11847         dl-sysdep.h.
11848         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
11849         (__INTERNAL_SYSCALL_STRING): Define.
11850         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11851         dl-sysdep.h.
11852         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
11853         (__INTERNAL_SYSCALL_STRING): Define.
11854         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
11855         __SYSCALL_STRING to inline_syscall*.
11856         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
11857         New macros.
11858         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
11859         inline_syscall4, inline_syscall5, inline_syscall6): Add string
11860         argument.
11862 2002-10-24  Roland McGrath  <roland@redhat.com>
11864         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
11865         * sysdeps/unix/sysv/linux/init-first.c: Not here.
11866         * sysdeps/powerpc/elf/libc-start.c: Or here.
11867         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
11868         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
11869         * sysdeps/unix/sysv/aix/init-first.c: Or here.
11870         * sysdeps/generic/libc-start.c: Or here.
11871         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
11872         access with [! SHARED].
11873         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
11875         * libio/bug-wfflush.c: New file.
11876         * libio/Makefile (tests): Add bug-wfflush.
11878 2002-10-23  Roland McGrath  <roland@redhat.com>
11880         * stdio-common/tst-fphex.c: New file.
11881         * stdio-common/Makefile (tests): Add tst-fphex.
11882         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
11883         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
11884         chars always before the value digits.
11885         Reported by James Antill <james.antill@redhat.com>.
11887 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
11889         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
11890         (free_mem): New function.
11891         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
11892         if not cross compiling.
11893         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
11894         (bug-regex14-ENV): Set.
11895         (bug-regex14-mem): New target.
11896         * posix/bug-regex14.c: New file.
11898 2002-10-23  Roland McGrath  <roland@redhat.com>
11900         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
11901         target, so we don't touch it when the link fails.
11903         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
11904         Check for the result overflowing off_t and fail with EOVERFLOW.
11905         * libio/ioftell.c (_IO_ftell): Likewise.
11906         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
11908         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
11909         use a temporary timeval on the stack for gettimeofday and copy it.
11910         * login/logout.c (logout): Likewise.
11911         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
11913         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
11914         Use __SWORD_TYPE instead of int for member types.
11915         (struct statfs64): Likewise.
11916         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
11917         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
11918         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
11919         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
11920         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
11922         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
11923         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
11924         (ST_NODIRATIME): Restore fixed value of 2048.
11925         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
11926         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
11928         Rearranged <bits/types.h> definitions to reduce duplication.
11929         * sysdeps/generic/bits/types.h: Rewritten, using macros from
11930         <bits/wordsize.h> and new header <bits/typesizes.h>.
11931         * posix/Makefile (headers): Add bits/typesizes.h here.
11932         * sysdeps/generic/bits/typesizes.h: New file.
11933         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
11934         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
11935         * sysdeps/mach/hurd/bits/typesizes.h: New file.
11936         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
11937         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
11938         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
11939         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
11940         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
11941         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
11942         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
11943         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
11944         <bits/pthreadtypes.h> here, not in <bits/types.h>.
11945         * signal/signal.h: Likewise.
11947         * streams/stropts.h: Include <bits/xtitypes.h>.
11948         * streams/Makefile (headers): Add bits/xtitypes.h here.
11949         * sysdeps/generic/bits/xtitypes.h: New file.
11950         * sysdeps/s390/bits/xtitypes.h: New file.
11951         * sysdeps/ia64/bits/xtitypes.h: New file.
11952         * sysdeps/x86_64/bits/xtitypes.h: New file.
11954         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
11955         * sysdeps/generic/bits/ipctypes.h: New file.
11956         * sysdeps/mips/bits/ipctypes.h: New file.
11957         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
11958         * sysdeps/gnu/bits/msq.h: Likewise.
11959         * sysvipc/sys/ipc.h: Likewise.
11961 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
11963         * elf/dl-load.c (struct filebuf): For buf element to have the
11964         alignment of ElfXX_Ehdr since this is what will be stored in it.
11966 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
11968         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
11969         into pointer to locrec_offset.
11970         (add_locale_to_archive): Adjust callers.  Free normalized_name right
11971         before returning, not immediately after add_locale, pass it to
11972         add_alias if not NULL instead of name.  Rename second normalized_name
11973         occurence to nnormalized_codeset_name.
11975         * locale/programs/locarchive.c (enlarge_archive): Make sure
11976         string_size is always a multiple of 4.
11977         Reported by Andreas Schwab <schwab@suse.de>.
11979 2002-10-21  Andreas Schwab  <schwab@suse.de>
11981         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
11982         caller to EXTRA instead of execve, since the latter has a
11983         higher-priority implementation in linuxthreads.
11985 2002-10-21  Roland McGrath  <roland@redhat.com>
11987         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
11988         slotinfo list's len member to the proper size, not just 1.
11989         Initialize static_map.l_tls_initimage.
11991         * elf/dl-open.c (dl_open_worker): Fix loop searching for
11992         dtv_slotinfo_list element containing new modules' l_tls_modid.
11994         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
11995         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
11996         * elf/Makefile (tests): Add tst-tls9.
11997         (tests-static): Add tst-tls9-static.
11998         (tst-tls9-static-ENV): New variable.
11999         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
12001         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
12002         modids used by partially loaded modules being closed can't be known.
12004 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
12006         * posix/Makefile: Add a test case for the bug reported by Aharon
12007         Robbins <arnold@skeeve.com>.
12008         * posix/bug-regex13.c: New file.
12009         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
12011 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
12013         * csu/gmon-start.c: Pretty printing.
12015 2002-10-19  Art Haas  <ahaas@neosoft.com>
12017         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
12018         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
12019         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
12020         * configure: Regenerated.
12022 2002-10-19  Roland McGrath  <roland@redhat.com>
12024         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
12025         and then set $subdirs directly, because the new Autoconf breaks
12026         compatibility in every way imaginable and insists on whining
12027         about usage that worked since the dawn of time.
12028         * configure: Regenerated.
12030         * configure: Regenerated (using Autoconf 2.54).
12031         * sysdeps/alpha/elf/configure: Likewise.
12032         * sysdeps/generic/configure: Likewise.
12033         * sysdeps/i386/elf/configure: Likewise.
12034         * sysdeps/ia64/elf/configure: Likewise.
12035         * sysdeps/mach/hurd/configure: Likewise.
12036         * sysdeps/mach/configure: Likewise.
12037         * sysdeps/unix/configure: Likewise.
12038         * sysdeps/unix/common/configure: Likewise.
12039         * sysdeps/unix/sysv/aix/configure: Likewise.
12040         * sysdeps/unix/sysv/linux/configure: Likewise.
12041         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12042         * sysdeps/x86_64/elf/configure: Likewise.
12044         * config.make.in: Nix completely-soft nonsense.
12045         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
12046         of machine directories instead of fpu subdirectory.
12047         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
12048         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
12049         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
12050         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
12051         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
12052         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
12053         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
12054         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
12055         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
12056         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
12057         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
12058         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
12059         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
12060         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
12061         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
12062         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
12063         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
12064         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
12065         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
12066         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
12067         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
12068         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
12069         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
12070         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
12071         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
12072         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
12073         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
12074         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
12075         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
12076         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
12077         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
12078         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
12079         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
12080         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
12081         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
12082         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
12083         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
12084         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
12085         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
12086         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
12088 2002-10-19  Bruno Haible  <bruno@clisp.org>
12090         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
12092 2002-10-18  Roland McGrath  <roland@redhat.com>
12094         * io/Makefile (routines): Add lchmod.
12095         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
12096         * sysdeps/generic/lchmod.c: New file.
12097         * sysdeps/mach/hurd/lchmod.c: New file.
12098         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
12100 2002-10-18  Art Haas  <ahaas@neosoft.com>
12102         * configure.in: Remove remaining AC_FD_CC macros, and replace
12103         AC_FD_MSG with AS_MESSAGE_FD.
12105 2002-10-18  Roland McGrath  <roland@redhat.com>
12107         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
12108         typos: VALUE -> FINALADDR.
12110         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
12111         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
12112         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
12113         (inline_syscall6): Move these macros ...
12114         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
12116         * configure.in (libc_link_dests, libc_link_sources): Remove these
12117         variables and the AC_LINK_FILES call.
12119         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
12120         change to put new symbols here instead of in GLIBC_2.2.
12121         * sysdeps/powerpc/Subdirs: Move this file ...
12122         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
12124 2002-10-07  Roland McGrath  <roland@redhat.com>
12126         * sysdeps/generic/bits/time.h: Replaced with contents of the
12127         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
12128         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
12129         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
12130         macros is ok even for architectures that don't now implement them.
12131         * sysdeps/mach/hurd/bits/time.h: File removed.
12132         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
12133         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
12134         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
12135         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
12136         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
12138 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
12140         * configure.in: Replace obsolete AC_OUTPUT syntax with
12141         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
12143         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
12144         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
12146         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
12147         * sysdeps/alpha/elf/configure.in: Likewise.
12148         * sysdeps/i386/elf/configure.in: Likewise.
12149         * sysdeps/mach/hurd/configure.in: Likewise.
12150         * sysdeps/x86_64/elf/configure.in: Likewise.
12152         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
12154         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
12155         * sysdeps/generic/configure.in: Likewise.
12156         * sysdeps/i386/elf/configure.in: Likewise.
12157         * sysdeps/ia64/elf/configure.in: Likewise.
12158         * sysdeps/mach/configure.in: Likewise.
12159         * sysdeps/mach/hurd/configure.in: Likewise.
12160         * sysdeps/unix/configure.in: Likewise.
12161         * sysdeps/unix/common/configure.in: Likewise.
12162         * sysdeps/unix/sysv/aix/configure.in: Likewise.
12163         * sysdeps/unix/sysv/linux/configure.in: Likewise.
12164         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
12165         * sysdeps/x86_64/elf/configure.in: Likewise.
12167         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
12168         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
12169         that it's obvious when extra autoconf machinery is being dragged in.
12171 2002-10-18  Roland McGrath  <roland@redhat.com>
12173         * configure.in: Remove bogus echo included in
12174         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
12175         * configure: Regenerated.
12177 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
12179         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
12180         (statfs_filesize_max): New function.
12181         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
12182         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
12183         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
12184         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
12185         statfs_filesize_max.
12186         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12187         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
12188         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
12190 2002-10-17  Roland McGrath  <roland@redhat.com>
12192         * configure.in (MIG): Just AC_SUBST it here.
12193         * configure: Regenerated.
12194         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
12195         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
12196         * sysdeps/mach/configure: Regenerated.
12198         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
12199         and AC_PROVIDE([_AS_CR_PREPARE]).
12201         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
12202         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
12204         * elf/dl-support.c: Move _dl_tls_* variables to ...
12205         * sysdeps/generic/libc-tls.c: ... here.
12207         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
12208         allow IDX to be one past the current last slotinfo entry.
12209         (_dl_close): Pass IMAP->l_init_called for that parameter.
12211 2002-10-07  Andreas Schwab  <schwab@suse.de>
12213         * aclocal.m4: Fix for autoconf 2.53.
12214         * configure.in: Likewise.  Require autoconf 2.53.
12216 2002-10-08  Richard Henderson  <rth@redhat.com>
12218         * soft-fp/op-4.h: Handle carry correctly in
12219         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
12220         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
12221         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
12223 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
12225         * configure.in: Compute completely-soft.
12226         * config.make.in: Make completely-soft available to sub-makes.
12227         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
12228         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
12229         fe_nomask to libm-support.
12230         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
12231         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
12232         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
12233         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
12234         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
12235         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
12236         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
12237         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
12238         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
12239         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
12240         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
12241         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
12242         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
12243         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
12244         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
12245         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
12246         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
12247         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
12248         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
12249         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
12250         __sim_round_mode.
12251         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
12252         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
12253         FP_HANDLE_EXCEPTIONS.
12254         Define FP_ROUNDMODE.
12255         Redefine FP_* macros to correspond to the FE_* bit positions.
12256         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
12257         Define externs for __sim_exceptions, __sim_disabled_exceptions,
12258         __sim_round_mode, __simulate_exceptions.
12259         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
12260         * sysdeps/powerpc/bits/fenv.h: ...to here.
12262 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
12264         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12265         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
12266         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
12267         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
12268         __builtin_expect.
12270 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
12272         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
12273         __libc_res_nsend): New prototypes.
12274         * resolv/res_query.c (QUERYSIZE): Define.
12275         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
12276         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
12277         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
12278         res_nsend, pass answerp.
12279         (res_nquery): Changed into wrapper around __libc_res_nquery.
12280         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
12281         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
12282         instead of the non-__libc_ variants, pass them answerp.
12283         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
12284         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
12285         Added answerp argument.  Call __libc_res_nquery instead of
12286         res_nquery, pass answerp.
12287         (res_nquerydomain): Changed into wrapper around
12288         __libc_res_nquerydomain.
12289         * resolv/res_send.c: Include sys/ioctl.h.
12290         (MAXPACKET): Define.
12291         (send_vc): Change arguments.  Reallocate answer buffer if it is
12292         too small.
12293         (send_dg): Likewise.
12294         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
12295         Reallocate answer buffer if it is too small and hooks are in use.
12296         Adjust calls to send_vc and send_dg.
12297         (res_nsend): Changed into wrapper around __libc_res_nsend.
12298         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
12299         just 1K answer buffer on the stack, use __libc_res_nsearch instead
12300         of res_nsearch.
12301         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
12302         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
12303         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
12304         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
12305         (gethostbyaddr): Similarly with __libc_res_nquery.
12306         * resolv/Versions (libresolv): Export __libc_res_nquery and
12307         __libc_res_nsearch at GLIBC_PRIVATE.
12309 2002-10-17  Roland McGrath  <roland@redhat.com>
12311         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
12312         * configure: Regenerated.
12314         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
12315         before performing the reloc, not after.
12316         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12318 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
12320         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
12321         * locale/programs/linereader.c (lr_open): Likewise.
12322         * locale/programs/charmap-dir.c (charmap_open): Likewise.
12323         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12325 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
12327         * posix/bug-regex11.c: Add a test case for the bug reported by
12328         Paolo Bonzini <bonzini@gnu.org>.
12329         * posix/regexec.c (sift_states_bkref): Use correct destination of
12330         the back reference.
12332 2002-10-17  Roland McGrath  <roland@redhat.com>
12334         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
12335         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
12336         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
12337         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
12338         Call it after performing TPOFF relocs.
12339         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12340         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12341         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
12343         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
12344         when closing a partially-initialized object.
12346         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
12347         instead of _dl_fatal_printf when we see PT_TLS.
12349         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
12350         instead of $(libof-$<).
12352 2002-10-16  Roland McGrath  <roland@redhat.com>
12354         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
12355         instead of += to append, to be sure $(lib) gets expanded at defn time.
12356         (libof-$(cpp-src)): New variable, define this instead.
12357         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
12358         (lib): Don't use override.
12359         (CPPFLAGS-$(lib)): New variable, put -D's here.
12360         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
12361         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
12362         LIB found by $(libof-*) for basename, target, or source.
12363         * Makerules (CPPFLAGS-nonlib): New variable.
12364         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
12365         * locale/Makefile (lib): Likewise.
12366         * sunrpc/Makefile (lib): Likewise.
12368         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
12369         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
12370         * sysdeps/unix/sysv/linux/pathconf.h: New file.
12371         (statfs_link_max): New function, guts from fpathconf.c.
12372         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
12373         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12374         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
12375         to use the linux/pathconf.c code by #include rather than duplication.
12376         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
12378 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
12380         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12381         Use __libc_errno only for libc itself.
12383 2002-10-16  Andreas Jaeger  <aj@suse.de>
12385         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
12387 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
12389         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12390         Use __libc_errno only for libc itself.
12392 2002-10-15  Roland McGrath  <roland@redhat.com>
12393             Jakub Jelinek  <jakub@redhat.com>
12395         * sysdeps/unix/sysv/linux/Makefile
12396         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
12397         sparc/Makefile to produce a bi-arch file as needed.
12398         That's now parameterized by the variable $(64bit-predefine).
12399         Use LC_ALL=C for `comm' commands in that rule.
12400         No longer conditional on [$(no_syscall_list_h)].
12401         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
12402         (64bit-predefine): New variable.
12403         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
12404         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
12405         * sysdeps/unix/sysv/linux/powerpc/Makefile
12406         (64bit-predefine): New variable.
12408 2002-10-15  Roland McGrath  <roland@redhat.com>
12410         * sysdeps/unix/sysv/linux/Makefile
12411         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
12413         * login/utmp-private.h: Declare __libc_utmp_lock.
12414         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
12415         and call __libc_utmp_jump_table functions directly, instead of using
12416         __setutent et al.
12418         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
12419         * sysdeps/unix/sysv/linux/configure: Regenerated.
12421         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
12422         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
12423         Use int32_t for ll_time.
12424         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
12425         Use int32_t instead of long int for ut_session.
12426         Use an anonymous struct with 32-bit fields for ut_tv.
12427         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
12428         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
12429         here as in utmp.h for `struct utmp'.
12430         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
12431         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
12432         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
12433         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
12434         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
12435         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
12437         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
12438         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
12439         All the following files were identical or equivalent to it.
12440         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
12441         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
12442         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
12443         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
12444         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
12445         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
12446         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
12447         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
12448         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
12449         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
12451         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
12452         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
12453         Other than the previously incorrect sign of msg_iovlen, this is a
12454         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
12455         match their layouts as well, so the following are now identical to it.
12456         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
12457         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
12458         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
12459         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
12460         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
12462 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
12464         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
12465         Define for 2.4+ kernels.
12467         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
12468         are known to have the vfork syscall.  Don't confuse the CPUs
12469         branch prediction unit by jumping to the return address.
12471         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
12472         support for reiserfs and xfs.
12474         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
12475         XFS link count.
12476         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
12477         and XFS_LINK_MAX.
12478         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
12480 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
12482         * include/libc-symbols.h (attribute_tls_model_ie): Define.
12483         * include/errno.h (errno): Define to __libc_errno in libc.so.
12484         Add attribute_tls_model_ie.
12485         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
12486         Add attribute_tls_model_ie.
12487         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
12488         attribute_tls_model_ie.
12489         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
12490         (h_errno): Define.
12491         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
12492         (_res): Define.
12493         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
12494         attribute_tls_model_ie.
12495         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
12496         __thread.
12497         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
12498         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
12499         __libc_errno in USE___THREAD case.
12500         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12501         Likewise.
12502         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
12503         __attribute__((tls_model (""))).
12504         * configure: Rebuilt.
12505         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
12507 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
12509         * timezone/asia: Update from tzdata2002d.
12510         * timezone/australasia: Likewise.
12511         * timezone/iso3166.tab: Likewise.
12512         * timezone/southamerica: Likewise.
12513         * timezone/zone-tab: Likewise.
12515 2002-10-15  Roland McGrath  <roland@redhat.com>
12517         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
12518         Adjust TCB pointer before calling free, so we get the whole block.
12520 2002-10-14  Roland McGrath  <roland@redhat.com>
12522         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
12523         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
12524         extern using attribute_hidden instead of static, avoids warning.
12526 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
12528         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
12529         * sysdeps/unix/sysv/linux/configure: Rebuilt.
12531 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
12533         * po/sv.po: Update from translation team.
12535 2002-10-12  H.J. Lu  <hjl@gnu.org>
12537         * sunrpc/thrsvc.c (PROCQUIT): New.
12538         (struct rpc_arg): New.
12539         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
12540         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
12541         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
12542         (main): Modified for struct rpc_arg *.
12544 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
12546         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
12548 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
12550         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
12551         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
12552         in ld.so even if __thread is supported.
12554 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
12556         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
12557         Add hack to prevent the compiler from clobbering the signal context.
12558         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
12559         Likewise.
12560         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
12561         Likewise.
12563 2002-10-14  Andreas Jaeger  <aj@suse.de>
12565         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
12566         Guido Guenther <agx@sigxcpu.org>.
12568 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
12570         * po/sk.po: Update from translation team.
12572 2002-09-26  Roland McGrath  <roland@redhat.com>
12574         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
12575         dynamic string tag.
12576         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
12577         DL_DST_LIB based on $(slibdir).
12579 2002-10-13  Roland McGrath  <roland@frob.com>
12581         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
12583         * sysdeps/mach/hurd/getresuid.c: New file.
12584         * sysdeps/mach/hurd/getresgid.c: New file.
12585         * sysdeps/mach/hurd/setresuid.c: New file.
12586         * sysdeps/mach/hurd/setresgid.c: New file.
12588         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
12589         setresgid): Declare them.
12590         * NEWS: Mention it.
12591         * include/unistd.h
12592         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
12593         add libc_hidden_proto.
12594         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
12595         getresuid, getresgid, setresuid, setresgid here.
12596         * Versions.def (libc): Define GLIBC_2.3.2 set.
12597         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
12598         Add libc_hidden_def.
12599         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
12600         * sysdeps/generic/setresgid.c: New file.
12601         * sysdeps/generic/setresuid.c: New file.
12602         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12603         (sysdep_routines): Don't add getresuid and getresgid here.
12604         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
12605         (sysdep_routines): Don't add setresuid and setresgid here.
12606         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
12607         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
12608         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
12609         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
12610         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
12611         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
12612         * posix/Makefile (routines): Add them all here instead.
12613         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
12614         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
12615         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
12616         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
12617         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
12618         [! __NR_setresuid]: Include generic file.
12619         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
12620         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
12621         [! __NR_setresuid]: Include generic file.
12622         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
12623         Caller is - now, not EXTRA.
12624         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
12625         (setresuid, setresgid, getresuid, getresgid): Likewise.
12626         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
12627         Add these calls here.
12628         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
12629         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
12630         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
12631         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12632         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
12635         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
12636         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
12638         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12639         (sysdep_routines): Add setfsuid and setfsgid here.
12640         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
12641         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
12642         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
12643         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
12644         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
12645         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
12646         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
12647         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
12649         * hurd/errno.c: Renamed to ...
12650         * hurd/errno-loc.c: ... this.
12651         * hurd/Makefile (routines): errno -> errno-loc
12653 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
12655         * po/de.po: Update from translation team.
12657         * MakeTAGS: Add -E flag to xgettext runs.
12659 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
12661         * po/fr.po: Update from translation team.
12663         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
12664         Optimize a bit for use in glibc.
12666 2002-10-12  Roland McGrath  <roland@redhat.com>
12668         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
12669         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
12671 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
12673         * po/sv.po: Update from translation team.
12675 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
12677         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
12678         OP_CONTEXT_NODE.
12679         (regfree): Likewise.
12680         (create_initial_state): Likewise.
12681         (analyze): Remove the substitutions which became useless.
12682         (calc_first): Likewise.
12683         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
12684         epsilon destination.
12685         (duplicate_node_closure): New function.
12686         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
12687         (calc_inveclosure): Likewise.
12688         (calc_eclosure): Likewise.
12689         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
12690         direct invocation of duplicate_node.
12691         (parse): Don't use comma operator in the return to avoid compiler
12692         warning.
12693         (parse_reg_exp): Likewise.
12694         (parse_branch): Likewise.
12695         (parse_expression): Likewise.
12696         (parse_sub_exp): Likewise.
12697         (parse_dup_op): Likewise.
12698         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
12699         which became useless.
12700         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
12701         (create_cd_newstate): Likewise.
12702         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
12703         (re_token_t): Likewise.
12704         (re_dfa_t): Likewise.
12705         (re_node_set_remove): New macro.
12706         * posix/regexec.c (check_matching): Remove the handling
12707         OP_CONTEXT_NODE.
12708         (check_halt_node_context): Likewise.
12709         (proceed_next_node): Likewise.
12710         (pop_fail_stack): Fix the memory leak.
12711         (set_regs): Likewise.
12712         (free_fail_stack_return): New function.
12713         (sift_states_backward): Fix the memory leak.  Remove the handling
12714         OP_CONTEXT_NODE.
12715         (update_cur_sifted_state): Append some if clause to avoid redundant
12716         call.
12717         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
12718         back reference.
12719         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
12720         (check_subexp_limits): Likewise.
12721         (search_subexp): Likewise.
12722         (sift_states_bkref): Likewise.
12723         (transit_state_mb): Likewise.
12724         (transit_state_bkref_loop): Likewise.
12725         (transit_state_bkref_loop): Likewise.
12726         (group_nodes_into_DFAstates): Likewise.
12727         (check_node_accept): Likewise.
12728         (sift_ctx_init): Add initializing.
12730 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
12732         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
12733         __builtin_expect.
12735 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
12737         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
12738         duplicated variable c.
12740         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
12741         if possible.
12743         * sysdeps/unix/sysv/linux/i386/sysdep.h
12744         (INTERNAL_SYSCALL_ERROR_P): New define.
12745         (INTERNAL_SYSCALL_ERRNO): Likewise.
12747         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
12748         Add hack to prevent the compiler from clobbering the signal context.
12750 2002-10-11  Roland McGrath  <roland@redhat.com>
12752         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12753         Fix typos.
12755         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
12756         * sysdeps/sh/dl-lookupcfg.h: File removed.
12757         * sysdeps/i386/dl-lookupcfg.h: File removed.
12759         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
12760         missing labels and ; from last change.
12762         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
12763         number literals, so they are doubles instead of ints.
12765 2002-10-09  Roland McGrath  <roland@redhat.com>
12767         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
12768         changed from [USE_TLS && HAVE___THREAD].
12770         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
12771         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
12772         * sysdeps/x86_64/dl-machine.h
12773         (elf_machine_type_class, elf_machine_rela): Likewise.
12774         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
12775         Likewise.
12777         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
12778         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
12779         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
12781         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
12782         instead of ___tls_get_addr.
12783         (___tls_get_addr_internal): Add attribute_hidden to decl.
12785         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
12786         _dl_error_catch_tsd.
12787         * elf/rtld.c (startup_error_tsd): New function.
12788         (dl_main): Point _dl_error_catch_tsd at that.
12789         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
12790         use new function pointer instead.
12791         * elf/dl-tsd.c: New file.
12792         * elf/Makefile (routines): Add it.
12794 2002-10-07  Roland McGrath  <roland@redhat.com>
12796         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
12797         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
12798         take _dl_load_lock around calling __writev.
12800         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
12801         (INLINE_SYSCALL): Use that.
12803         * sysdeps/generic/dl-sysdep.h: New file.
12804         * sysdeps/mach/hurd/dl-sysdep.h: New file.
12805         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
12806         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
12807         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
12808         access it directly.
12809         * elf/dl-minimal.c (__errno_location): Removed.
12810         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
12811         Use GOTOFF access for errno.
12812         * sysdeps/unix/sysv/linux/i386/sysdep.h
12813         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
12815         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
12816         Use PC-relative access for errno.
12817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12818         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
12820         * include/tls.h: New file.
12821         (USE___THREAD): New macro.
12822         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
12823         libc or libpthread.
12824         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
12825         changed from [USE_TLS && HAVE___THREAD].
12826         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12827         * sysdeps/unix/i386/sysdep.S: Likewise.
12828         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12829         * include/errno.h: Likewise.
12830         * include/netdb.h: Likewise.
12831         * include/resolv.h: Likewise.
12833         * sysdeps/generic/errno.c: New file.
12834         * csu/Makefile (aux): New variable, list errno.
12835         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
12836         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
12837         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
12838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12839         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12840         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
12841         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
12842         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
12843         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12844         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
12845         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
12846         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
12847         * sysdeps/unix/alpha/sysdep.S: Likewise.
12848         * sysdeps/generic/start.c: Likewise.
12849         * sysdeps/unix/start.c: Likewise.
12850         * sysdeps/unix/arm/start.c: Likewise.
12851         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
12852         * sysdeps/unix/sparc/start.c: Likewise.
12853         * sysdeps/unix/sysv/irix4/start.c: Likewise.
12854         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
12856         * manual/search.texi (Tree Search Function, Hash Search Function):
12857         Mention search.h clearly.
12859 2002-10-05  Roland McGrath  <roland@redhat.com>
12861         * elf/dl-fxstat64.c: File removed.
12862         * elf/dl-xstat64.c: File removed.
12863         * elf/Makefile (rtld-routines): Remove them.
12864         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
12865         Instead, use strong_alias instead of versioned_symbol in the
12866         !SHLIB_COMPAT case.
12867         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
12868         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
12870         * include/shlib-compat.h
12871         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
12872         [! NOT_IN_libc] (IS_IN_libc): Define it.
12873         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
12874         * elf/Makefile (CPPFLAGS-.os): Likewise.
12876         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
12877         Return the status instead of calling exit.
12879         * Makeconfig (CFLAGS): Prepend -std=gnu99.
12880         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
12881         Remove superfluous rm command, whose @ plus make bugs hid
12882         all these commands from the make output.
12884         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
12885         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
12886         Use that file's contents instead of literal echo's for the prologue.
12887         * include/features.h: Include <gnu/stubs.h> unconditionally.
12888         * include/gnu/stubs.h: New file.
12890 2002-09-30  Roland McGrath  <roland@redhat.com>
12892         * elf/rtld-Rules: New file.
12893         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
12894         $(objpfx)rtld-libc.a): New targets.
12895         (generated): Add them.
12896         (reloc-link): Remove -o $@ from the variable.
12897         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
12898         (distribute): Add rtld-Rules.
12899         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
12900         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
12901         (common-mostlyclean, common-clean): Clean up rtld-* files.
12902         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
12904 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
12906         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
12907         If temp != NULL, copy dynamic entries which need relocation to temp
12908         array before relocating.
12909         (DL_RO_DYN_TEMP_CNT): Define.
12910         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
12911         * elf/rtld.c (_dl_start): Likewise.
12912         (dl_main): Likewise.  Add dyn_temp static variable.
12914 2002-10-11  Roland McGrath  <roland@redhat.com>
12916         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
12917         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
12919         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
12920         proper set of no-op insn prefixes.
12922         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
12924 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
12926         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
12927         __pthread_kill_other_threads_np.
12929         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
12931 2002-10-08  Roland McGrath  <roland@redhat.com>
12933         * locale/newlocale.c (__newlocale): If setting all categories to "C",
12934         just return &_nl_C_locobj instead of copying it.
12935         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
12936         * locale/duplocale.c (__duplocale): Likewise.
12938 2002-10-07  Roland McGrath  <roland@frob.com>
12940         * config.h.in (HAVE_I386_SET_GDT): New #undef.
12941         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
12942         * sysdeps/mach/configure: Regenerated.
12944 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12947         Add all necessary register outputs for syscall-clobbered registers.
12949 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
12951         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
12952         Itanium 2 (and Itanium).
12953         Fix unwind directives and make it fit in 80 columns.
12954         * sysdeps/ia64/memset.S: Likewise.
12955         * sysdeps/ia64/memcpy.S: Likewise.
12956         Move jump table to .rodata section.
12958 2002-10-03  Roland McGrath  <roland@frob.com>
12960         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
12961         clobbers to asm.
12963 2002-10-10  Andreas Jaeger  <aj@suse.de>
12965         * sysdeps/x86_64/_mcount.S: Restore correct registers.
12967 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
12969         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
12971 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
12973         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
12974         _dl_allocate_tls_init.  Add rtld_hidden_proto.
12975         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
12976         rtld_hidden_def.
12977         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
12979         * version.h (VERSION): Bump to 2.3.1.
12981         * Make-dist: Add back one of the tar invocations removed before.
12983         * stdlib/Makefile (distribute): Add allocalim.h.
12985         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
12986         (__libc_tsd_address): Use correct variable name.
12987         Patch by Stefan Jones <stefan.jones@multigig.com>.
12989         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
12990         Reported by edwardsg@sgi.com [PR libc/4678].
12992         * Versions.def (libc): Add GLIBC_2.3.1.
12993         (libpthread): Add GLIBC_2.3.1.
12995         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
12996         and __sigtimedwait.
12997         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
12998         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
12999         libc_hidden_def.
13000         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
13001         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
13003         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
13004         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
13005         and make old name an alias.
13006         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
13007         and make old name an alias.
13008         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
13009         __libc_msgsnd.
13011         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
13012         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
13013         __libc_writev.
13014         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
13015         old name an alias.
13016         * sysdeps/posix/readv.c: Likewise
13017         * sysdeps/unix/sysv/aix/readv.c: Likewise.
13018         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13019         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
13020         old name an alias.
13021         * sysdeps/posix/writev.c: Likewise
13022         * sysdeps/unix/sysv/aix/writev.c: Likewise.
13023         * sysdeps/unix/sysv/linux/writev.c: Likewise.
13025         * include/sys/wait.h: Declare __waitid.
13026         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
13027         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
13028         name an alias.
13029         * sysdeps/posix/waitid.c: Likewise.
13030         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
13032         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
13034 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
13036         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
13037         prototypes.
13038         (__MAX_ALLOCA_CUTOFF): Define.
13039         Include allocalim.h.
13040         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
13041         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
13042         host_buffer depending on __libc_use_alloca.
13043         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
13044         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
13045         net_buffer depending on __libc_use_alloca.
13046         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
13047         buf depending on __libc_use_alloca.
13048         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
13049         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
13050         instead of hardcoded constants.
13051         Pass proper size argument to alloca and compute end for wide char
13052         version.
13053         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
13054         instead of hardcoded constants.
13055         * string/strcoll.c (strcoll): Likewise.
13056         * string/strxfrm.c (strxfrm): Likewise.
13057         * sysdeps/posix/readv.c (__readv): Likewise.
13058         * sysdeps/posix/writev.c (__writev): Likewise.
13059         * sysdeps/generic/allocalim.h: New file.
13061 2002-10-08  Roland McGrath  <roland@redhat.com>
13063         * configure.in (aux_missing warning): Change "too old" to
13064         "incompatible versions", since for autoconf it's "too new" right now.
13065         * configure: Regenerated.
13067         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
13068         one found doesn't work on our configure.in.
13069         * configure: Regenerated.
13070         * config.make.in (AUTOCONF): New substituted variable.
13071         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
13072         (autoconf-it): ... here, use that instead of defining conditionally.
13073         Use $(AUTOCONF) instead of literal autoconf.
13074         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
13075         with this condition.
13076         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
13078 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
13080         * Make-dist (dist): Cleanup a bit.  We are not interested in the
13081         14 char filename limit anymore.  Remove intermediate files and
13082         symlinks.
13084 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
13086         * po/sk.po: Update from translation team.
13087         * po/tr.po: Likewise.
13088         * po/gl.po: Likewise.
13090 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13092         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
13094 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
13096         * version.h (RELEASE): Change to stable.
13098 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
13100         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
13101         __syscall_exit_group): New prototypes.
13103 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
13105         * glibc 2.3 released.
13108 See ChangeLog.13 for earlier changes.