50f86c0b9c3ac55ae7d5c6a0d88482875446a98a
[platform/upstream/glibc.git] / ChangeLog
1 2003-11-19  Ulrich Drepper  <drepper@redhat.com>
2
3         * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
4         fails, just use the byte, do no fancy conversions.
5
6         * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
7         not ->len.
8         (re_string_is_single_byte_char): Likewise.
9
10 2003-11-18  Ulrich Drepper  <drepper@redhat.com>
11
12         * posix/regexec.c (get_subexp): After calling get_subexp_seb
13         reload buf and bkref_str.  Little optimization by avoiding memcmp.
14
15 2003-11-14  David Mosberger   <davidm@hpl.hp.com>
16
17         * sysdeps/unix/sysv/linux/ia64/sysdep.h
18         (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
19         that all existing GAS versions have a problem with .align inside
20         a function.
21         * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
22         * sysdeps/ia64/memcpy.S: Likewise.
23         * sysdeps/ia64/memset.S: Likewise.
24         * sysdeps/ia64/memmove.S: Likewise.  Also move the jump-table to
25         out of .text into .rodata, where it belongs.
26
27         * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
28         save/restore input-arguments, because they're necessarily
29         preserved by the kernel to support syscall-restart.
30
31 2003-11-18  Jakub Jelinek  <jakub@redhat.com>
32
33         * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
34         END_OF_RE_TOKEN_T and SUBEXP.  Reorder values.  Add OP_UTF8_PERIOD
35         and EPSILON_BIT.
36         (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
37         (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
38         * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
39         Handle OP_UTF8_PERIOD.
40         (re_string_reconstruct): Set valid_len for single byte char searching
41         with no translation and case sensitivity.
42         * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
43         OP_UTF8_PERIOD.
44         (re_compile_internal): Don't call optimize_utf8 if preg->translate
45         != NULL.
46         (optimize_utf8): Remove BACK_SLASH case.
47         Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
48         optimized.
49         (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
50         any bits set and COMPLEX_BRACKET is used.
51         * posix/regexec.c (transit_state_mb): Fix comment typo.
52         (group_nodes_into_DFAstates, check_node_accept): Handle
53         OP_UTF8_PERIOD.
54         (check_node_accept_bytes): Likewise.  Reorder slightly so that
55         re_string_char_size_at and re_string_elem_size_at are called
56         only when needed.
57         * posix/bug-regex20.c (BRE, ERE): Define.
58         (tests): Use them to make lines shorter.  Expect . to be
59         optimized.  Add lots of new tests.
60         (main): Run (ATM just case sensitive) test with backwards searching
61         as well.
62
63 2003-11-18  Jakub Jelinek  <jakub@redhat.com>
64
65         * io/bug-ftw4.c: Include string.h.
66         * posix/fnmatch.c (mbsinit): Remove define.
67
68 2003-11-17  Jakub Jelinek  <jakub@redhat.com>
69
70         * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
71         well.
72         * posix/bug-regex20.c (tests): Add new tests.  Multi-byte char
73         followed by dup operator is expected to be optimized.
74
75         * posix/regexec.c (check_node_accept_bytes): Move nrules and j
76         variables to the block where they are only used, initialize
77         nrules only immediately before using it.
78
79 2003-11-15  Andreas Jaeger  <aj@suse.de>
80
81         * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
82         * sysdeps/x86_64/fpu/s_truncl.S: New file.
83         * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
84         * sysdeps/x86_64/fpu/s_floorl.S: New file.
85         * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
86         * sysdeps/x86_64/fpu/e_remainderl.S: New file.
87
88         * math/libm-test.inc (floor_test): Test also ±0.25.
89         (ceil_test): Test -0.25.
90
91 2003-11-17  Ulrich Drepper  <drepper@redhat.com>
92
93         * sysdeps/posix/getaddrinfo.c: Add support for destination address
94         selection according to RFC 3484.
95
96 2003-11-15  Ulrich Drepper  <drepper@redhat.com>
97
98         * posix/regex_internal.h: Add forward declaration of re_dfa_t.
99         Replace last two parameters of re_string_allocate and
100         re_string_construct with pointer to DFA.
101         (re_dfa_t): Add map_notascii field.
102         * posix/regcomp.c (re_compile_internal): Add call of
103         re_string_construct.
104         (init_dfa): Initialize mpa_notascii.
105         * posix/regex_internal.c: Adjust definitions of re_string_allocate
106         and re_string_construct.
107         Pass DFA to re_string_construct.  Adjust definition.  Initialize
108         map_notascii field.
109         (build_wcs_upper_buffer): If map_notascii is zero use simplfied
110         method to map ASCII values to upper case.
111         * posix/regex.c: Include localeinfo.h.
112         * posix/regexec.c: Adjust call of re_string_allocate.
113
114         * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
115         * locale/localeinfo.h (LIMAGIC): Change value.
116         * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
117         * locale/C-ctype.h: Likewise.
118         * locale/programs/ld-ctype.c: Compute whether any mapping maps from
119         ASCII to non-ASCII value.  Write out that value.
120
121         * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
122         * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
123
124 2003-11-14  Jakub Jelinek  <jakub@redhat.com>
125
126         * posix/tst-rxspencer.c (check_match): @ without any following
127         characters must match only end of string.
128         (main): Fix filename in error message.
129
130 2003-11-12  David Mosberger  <davidm@hpl.hp.com>
131
132         * sysdeps/ia64/dl-machine.h: Force inlining of
133         elf_machine_runtime_setup().
134
135 2003-11-13  Andreas Jaeger  <aj@suse.de>
136
137         * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
138         (CFLAGS-test-double.c): Likewise.
139         (CFLAGS-test-ldouble.c): Likewise.
140         (CPPFLAGS-test-ifloat.c): Likewise.
141         (CPPFLAGS-test-idouble.c): Likewise.
142         (CPPFLAGS-test-ildoubl.c): Likewise.
143
144         * math/libm-test.inc (ceil_test): Test ceil (0.25).
145
146 2003-11-04  Ulrich Drepper  <drepper@redhat.com>
147
148         * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
149         sends the netlink data.
150         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
151
152 2003-11-13  Jakub Jelinek  <jakub@redhat.com>
153
154         * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
155         with no bits set for >= 0x80 chars is seen.
156         * posix/bug-regex20.c (tests): Add new tests.  Expect [ABC] to be
157         optimized.
158         (main): Run all tests with RE_ICASE as well.
159
160 2003-11-13  Ulrich Drepper  <drepper@redhat.com>
161
162         * posix/Makefile: Add rules to build and run tst-rxspencer.
163         (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
164         * posix/tst-rxspencer.c: New file.
165         * posix/rxspencer/tests: New file.
166         * posix/rxspencer/COPYRIGHT: New file.
167         Patch mostly by Jakub Jelinek.
168
169         * posix/regcomp.c (parse_bracket_exp): Don't check for range if
170         this is no option given the first token.
171
172         * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
173         hyphen in range expression.  Return EBRACK in this case.
174
175         * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
176         we expect them or it's the last element in the bracket expression.
177         Indicated by new parameter.  Adjust all callers.
178
179         * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
180         Prettier error messages.
181
182         * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
183         number in {,} expression is larger.
184
185 2003-11-13  Andreas Jaeger  <aj@suse.de>
186
187         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
188         Define appropriately for x86_64.
189         (__ASSUME_UTIMES): Likewise.
190         (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
191
192         * sysdeps/x86_64/fpu/s_ceill.S: New file.
193
194 2003-11-13  Ulrich Drepper  <drepper@redhat.com>
195
196         * posix/regcomp.c (parse_expression): In BRE consecutive
197         duplications are not allowed.
198
199 2003-11-12  Ulrich Drepper  <drepper@redhat.com>
200
201         * posix/regcomp.c (parse_bracket_exp): If end of expression is
202         seen, return EBRACK error, not BADPAT.
203
204         * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
205         and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
206         * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
207         (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
208
209         * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
210         return REG_EPAREN.
211
212         * posix/PTESTS: Cleanup.  Fix typoes.  Correct bugs in 2003.2.
213         * posix/runptests.c (main): Handle comments.
214         * posix/PTESTS2C.sed: Handle comments.
215
216 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
217
218         * posix/regcomp.c (optimize_utf8): New function.
219         (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
220         of !icase.
221         (re_compile_internal): Call optimize_utf8 if not case insensitive
222         and in UTF-8 locale.
223         * posix/regex_internal.h: Ifdef out some prototypes if
224         RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
225         * posix/Makefile (tests): Add bug-regex20.
226         (bug-regex20-ENV): Add LOCPATH.
227         * posix/bug-regex20.c: New test.
228
229 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
230
231         * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
232
233 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
234
235         * posix/tst-regex.c (umemlen): New variable.
236         (test_expr): Add expectedicase argument.  Test case insensitive
237         searches as well as backwards searches (case sensitive and
238         insensitive) too.
239         (run_test): Add icase argument.  Use it to compute regcomp flags.
240         (run_test_backwards): New function.
241         (main): Cast read to size_t to avoid warning.  Set umemlen.
242         Add expectedicase arguments to test_expr.
243         * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
244         find previous character by walking back instead of converting
245         all chars from beginning.
246
247 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
248
249         * posix/regex_internal.h (struct re_string_t): Add is_utf8
250         and mb_cur_max fields.
251         (struct re_dfa_t): Likewise.  Reorder fields to make structure
252         smaller on 64-bit arches.
253         (re_string_allocate, re_string_construct): Add mb_cur_max and
254         is_utf8 arguments.
255         (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
256         instead of MB_CUR_MAX.
257         * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
258         instead of MB_CUR_MAX.
259         (re_compile_internal): Pass new arguments to re_string_construct.
260         (init_dfa): Initialize mb_cur_max and is_utf8 fields.
261         (peek_token, peek_token_bracket): Use input->mb_cur_max instead
262         of MB_CUR_MAX.
263         (parse_expression, parse_bracket_exp, parse_charclass_op): Use
264         dfa->mb_cur_max instead of MB_CUR_MAX.
265         * posix/regex_internal.c (re_string_construct_common): Add
266         mb_cur_max and is_utf8 arguments.  Initialize fields with them.
267         (re_string_allocate, re_string_construct): Add mb_cur_max and
268         is_utf8 arguments, pass them to re_string_construct_common.
269         Use mb_cur_max instead of MB_CUR_MAX.
270         (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
271         MB_CUR_MAX.
272         (re_string_reconstruct): Likewise.
273         (re_string_context_at): Use input->mb_cur_max instead of
274         MB_CUR_MAX.
275         (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
276         instead of MB_CUR_MAX.
277         * posix/regexec.c (re_search_internal): Likewise.
278         Pass new arguments to re_string_allocate.
279         (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
280         MB_CUR_MAX.
281         (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
282
283 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
284
285         * posix/Makefile (tests): Add bug-regex19.
286         (bug-regex19-ENV): Add LOCPATH.
287         * posix/bug-regex19.c: New test.
288
289 2003-11-11  Jakub Jelinek  <jakub@redhat.com>
290
291         * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
292         with MB_CUR_MAX > 1 locales in the fastmap.
293
294 2003-11-11  Jakub Jelinek  <jakub@redhat.com>
295
296         * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
297         (build_wcs_upper_buffer): Likewise.  Use towupper for wchar_t instead
298         of toupper.
299         * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
300         (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
301         * posix/bug-regex17.c: New file
302         * posix/bug-regex18.c: New file.
303
304 2003-10-08  Thorsten Kukuk  <kukuk@suse.de>
305
306         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
307         Define __NR_pread/__NR_pwrite if not done in kernel headers
308
309 2003-11-11  Roland McGrath  <roland@redhat.com>
310
311         * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
312
313         * manual/Makefile (info): Don't depend on dir-add.info.
314         (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
315         (dir-add.info): Target removed, replaced with ...
316         (dir-add.texi): New target.
317         (distribute): Add it.
318         (install): Remove variant with --section arguments.
319         Let the @dircategory directives do their work.
320         (mostlyclean): Don't remove dir-add.info here.
321         (realclean): Remove dir-add.texi here.
322         * manual/libc.texinfo: @include dir-add.texi
323         * configure.in: Remove check for old Debian install-info.
324         * configure: Regenerated.
325         * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
326
327 2003-11-08  Andreas Schwab  <schwab@suse.de>
328
329         * scripts/data/c++-types-ia64-linux-gnu.data: New file.
330
331 2003-11-10  Carlos O'Donell  <carlos@baldric.uwo.ca>
332
333         * io/ftwtest-sh: Fix nested sed commands.
334
335 2003-11-10  Jakub Jelinek  <jakub@redhat.com>
336
337         * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
338         valid_len wide chars.
339
340 2003-11-09  Roland McGrath  <roland@redhat.com>
341
342         * manual/examples/dir2.c (one): Add const to argument type.
343         Reported by J de Haan <j.de.haan@home.nl>.
344
345 2003-11-07  Ulrich Drepper  <drepper@redhat.com>
346
347         * po/pl.po: Update from translation team.
348
349 2003-11-07  Jakub Jelinek  <jakub@redhat.com>
350
351         * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
352         (ftw_dir, ftw_startup): Add __attribute ((noinline)).
353         (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
354         (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
355         and compat_symbol.
356         * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
357         * io/Versions (libc): Export nftw@@GLIBC_2.3.3
358         and nftw64@@GLIBC_2.3.3.
359
360         * io/ftw.h (FTW_ACTIONRETVAL): New flag.
361         (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
362         * io/ftw.c (ftw_dir): Add old_dir argument.
363         Clear result if it was FTW_SKIP_SIBLINGS after processing all
364         dir entries.  Change cwd back if old_dir != NULL.
365         (process_entry): Adjust caller.  Don't change cwd back here.
366         Change FTW_SKIP_SUBTREE result to 0.
367         (ftw_startup): Adjust ftw_dir caller.
368         Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
369         * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
370         (options, main): Add --skip-subtree and --skip-siblings options.
371         (cb): Use return FTW_CONTINUE instead of return 0.
372         Handle --skip-subtree and --skip-siblings.
373         * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
374         * manual/filesys.texi: Document FTW_ACTIONRETVAL.
375
376 2003-11-04  Jakub Jelinek  <jakub@redhat.com>
377
378         * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
379         non-zero.
380         * io/Makefile (tests): Add bug-ftw4.
381         * io/bug-ftw4.c: New test.
382
383 2003-10-27  Daniel Jacobowitz  <drow@mvista.com>
384
385         * libio/libioP.h [_IO_USE_OLD_IO_FILE]
386         (struct _IO_FILE_complete_plus): New type.
387         * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
388         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
389         * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
390         Call _IO_old_init instead of _IO_init.
391
392 2003-11-03  Ulrich Drepper  <drepper@redhat.com>
393
394         * intl/locale.alias: nb_NO is now the correct name, not no_NO.
395
396         * locale/iso-639.def: Add Blin.
397         Patch by Daniel Yacob <locales@geez.org>.
398
399 2003-10-31  Steven Munroe  <sjmunroe@us.ibm.com>
400
401         * sysdeps/powerpc/powerpc32/strncmp.S: New File.
402         * sysdeps/powerpc/powerpc64/strncmp.S: New File.
403
404 2003-11-01  Randolph Chung  <tausq@debian.org>
405
406         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
407         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
408         Add missing parentheses.
409
410 2003-11-01  Roland McGrath  <roland@redhat.com>
411
412         * libio/bug-ftell.c (do_test): Add a cast.
413
414 2003-09-26  Daniel Jacobowitz  <drow@mvista.com>
415
416         * Makerules (shlib.lds): Make sure that ld doesn't try to link
417         anything while generating the linker script.
418
419 2003-10-31  Roland McGrath  <roland@redhat.com>
420
421         * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
422         special members.
423
424 2003-10-29  Ulrich Drepper  <drepper@redhat.com>
425
426         * po/be.po: Update from translation team.
427
428 2003-10-27  Ulrich Drepper  <drepper@redhat.com>
429
430         * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
431         _dl_map_object.
432
433         * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
434         ELF header.
435
436         * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
437         rest of line.  We use getline which means this cannot happen.
438
439 2003-10-26  Ulrich Drepper  <drepper@redhat.com>
440
441         * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
442         Avoid infinite loops in case the mounts file is hosed.
443         * io/Makefile: Add rules to build and run tst-statvfs.
444         * io/tst-statvfs.c: New file.
445
446         * include/dlfcn.h (__RTLD_OPENEXEC): Define.
447         * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
448         executables unless __RTLD_OPENEXEC flag is present.
449         * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
450         _dl_map_object when loading the executable.
451
452         * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
453         correctly.
454         * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
455
456         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
457         reverse lookup format for IPv6 addresses is using bitstring and
458         .ip6.arpa suffix.
459         * resolv/ns_name.c: Implement encoding and decoding bitstring in
460         hex format.
461
462 2003-10-23  Jakub Jelinek  <jakub@redhat.com>
463
464         * locale/programs/locale.c (show_info): Fix printing word values on
465         64-bit big-endian architectures.
466
467 2003-10-19  Bruno Haible  <bruno@clisp.org>
468
469         * intl/hash-string.c (hash_string): Zero-extend each char from the
470         string; the old code did a sign-extend on some platforms.
471
472 2003-10-22  Steven Munroe  <sjmunroe@us.ibm.com>
473
474         * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
475         append options to these.
476         * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
477
478 2003-10-18  Carlos O'Donell  <carlos@baldric.uwo.ca>
479
480         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
481
482 2003-10-15  Roland McGrath  <roland@redhat.com>
483
484         * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
485         Fake an entry for the main executable and then call __dl_iterate_phdr.
486         * elf/Makefile (routines): Remove dl-iteratephdr-static.
487         (elide-routines.os): Likewise.
488         (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
489         * sysdeps/generic/dl-iteratephdr-static.c: File removed.
490         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
491
492 2003-10-15  Jakub Jelinek  <jakub@redhat.com>
493
494         * elf/rtld.c (print_statistics): Print also number of relative
495         relocations.
496
497 2003-10-12  Carlos O'Donell  <carlos@baldric.uwo.ca>
498
499         * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
500         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
501         SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
502         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
503         and undef JUMPTARGET before use.
504         [PIC]: Save pic register around syscall.
505         * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
506         Cleanup asm statment.
507
508 2003-10-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
509
510         * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
511         after trapa instruction.
512
513 2003-10-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
514
515         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
516
517 2003-10-10  Carlos O'Donell  <carlos@baldric.uwo.ca>
518
519         * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
520
521 2003-10-09  Roland McGrath  <roland@redhat.com>
522
523         * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
524         is no file to name.
525
526 2003-10-08  Jakub Jelinek  <jakub@redhat.com>
527
528         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
529         two identical copies of strings.
530
531 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
532
533         * posix/bug-regex11.c: Add some more tests which fail so far.
534         Disable them.  Patch by Paolo Bonzini <bonzini@gnu.org>.
535
536 2003-10-05  Paolo Bonzini  <bonzini@gnu.org>
537
538         * posix/bug-regex11.c: Add more backreference-related test cases.
539         (main): Show the failing regex in the error messages.
540         * posix/regexec.c (check_dst_limits_calc_pos):
541         Simplify some nested conditionals.  Replace if's with a switch
542         statement.
543         (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
544         FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
545         does not change in the recursive invocation, fixing an infinite loop
546         in the ()\1*\1* regex.
547         (sift_states_backward): Fix function comment.
548         * posix/regcomp.c (calc_epsdest): Add an assertion.
549
550 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
551
552         * manual/examples/testopt.c: Fix warnings.  Better error message
553         for missing -c argument.
554         Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
555
556         * timezone/asia: Update from tzdata2003d.
557         * timezone/australasia: Likewise.
558         * timezone/backward: Likewise.
559         * timezone/europe: Likewise.
560         * timezone/iso3166.tab: Likewise.
561         * timezone/northamerica: Likewise.
562         * timezone/southamerica: Likewise.
563         * timezone/zone.tab: Likewise.
564
565 2003-10-05  Jakub Jelinek  <jakub@redhat.com>
566
567         * sysdeps/ia64/backtrace.c: New file.
568         * sysdeps/x86_64/backtrace.c: New file.
569         * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
570         (_Unwind_Backtrace): New prototype.
571
572 2003-10-03  Ulrich Drepper  <drepper@redhat.com>
573
574         * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
575         * sysdeps/i386/elf/setjmp.S: Likewise.
576
577 2003-10-02  Roland McGrath  <roland@redhat.com>
578
579         * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
580         * argp/argp-namefrob.h
581         [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
582         (__argp_short_program_name): Don't declare fn, define it as a macro.
583
584 2003-08-22  Simon Josefsson  <jas@extundo.com>
585
586         * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
587
588         * argp/argp-help.c: Don't include malloc.h, some platforms
589         complain and it doesn't appear to be used.
590         [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
591         strerror_r.
592         [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
593         strerror.
594         (hol_entry_long_iterate): Change __attribute to __attribute__.
595         (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
596         && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
597         (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
598         modified after comments from Ulrich Drepper.
599         (__argp_short_program_name): Ditto.
600         (__argp_state_help, __argp_error, __argp_failure): Use it.
601         (__argp_failure): Use strerror when necessary.
602
603         * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
604         (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
605         (clearerr_unlocked, feof_unlocked, ferror_unlocked)
606         (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
607         (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
608         (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
609         non-unlocked functions.
610         [!_LIBC]: Add prototypes for __argp_basename and
611         __argp_short_program_name.
612
613         * argp/argp-parse.c (argp_default_parser): Only use
614         program_invocation{_short,}_name if declared.
615         (parser_init): Use __argp_short_program_name.
616
617         * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
618         '#include features.h'.
619
620         * argp/argp.h [!__attribute__]: Define to nothing.
621
622 2003-09-26  Paolo Bonzini  <bonzini@gnu.org>
623
624         * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
625         for the first token in a subexpression as well.
626
627 2003-10-02  Jakub Jelinek  <jakub@redhat.com>
628
629         * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
630         handling again.
631         (parse_reg_exp): Likewise.
632         * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
633
634         * posix/bug-regex11.c (tests): Add new tests.
635         * posix/bug-regex12.c (tests): Add new test.
636
637 2003-10-01  Thorsten Kukuk  <kukuk@suse.de>
638
639         * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
640         variables only used if TLS_DTV_AT_TP is defined into the #if branch.
641
642 2003-10-02  Jeroen Dekkers  <jeroen@dekkers.cx>
643
644         * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
645         the old thread-m.h header too.
646
647 2003-10-02  Ulrich Drepper  <drepper@redhat.com>
648
649         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
650         back to 131027 since this is what the kernel enforces.
651
652         * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
653         define it with libc_freeres_ptr.
654
655 2003-10-01  Roland McGrath  <roland@redhat.com>
656
657         * elf/rtld.c (dl_main): Add cast in last change.
658
659 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
660
661         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
662         "#if 0" surrounding most of contents.
663         (SYSCALL_ERROR_LABEL): Define.
664         (__SYSCALL_CLOBBERS): Add $10.
665         (internal_syscall7): Remove.
666         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
667
668 2003-09-30  Ulrich Drepper  <drepper@redhat.com>
669
670         * elf/rtld.c (dl_main): Also set l_map_start.
671
672 2003-09-30  Daniel Jacobowitz  <drow@mvista.com>
673
674         * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
675         to work around kernel problem.
676
677 2003-09-27  Wolfram Gloger  <wg@malloc.de>
678
679         * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
680         "thread-m.h", so that default parameters can be overridden in a
681         system-specific malloc-machine.h.  Remove extra ; from extern "C"
682         closing brace.
683         * sysdeps/generic/malloc-machine.h: New file.
684         * sysdeps/mach/hurd/malloc-machine.h: New file.
685         * malloc/thread-m.h: Removed.
686         * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
687         is in sysdeps/generic/malloc-machine.h now.
688
689 2003-09-29  Ulrich Drepper  <drepper@redhat.com>
690
691         * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
692         variables only used if TLS_TCB_AT_TP is defined into the #if
693         branch.
694
695         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
696         well to cover using long long in C90.
697
698 2003-09-28  Alfred M. Szmidt  <ams@kemisten.nu>
699
700         * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
701         Redefine and use __libc_cleanup_region_end instead.
702
703 2003-09-29  Thorsten Kukuk  <kukuk@suse.de>
704
705         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
706         fix prototypes for picky C++ compilers.
707
708 2003-09-27  Ulrich Drepper  <drepper@redhat.com>
709
710         * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
711         the device ID is invalid and return -1.
712         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
713
714 2003-09-26  Andreas Schwab  <schwab@suse.de>
715
716         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
717         rt_sigprocmask system call.
718
719 2003-09-25  Roland McGrath  <roland@redhat.com>
720
721         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
722         Don't check for zero __libc_stack_end, it should be initialized.
723         [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
724         and fall back if it fails with EINVAL.
725         [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
726
727 2003-09-25  Jakub Jelinek  <jakub@redhat.com>
728
729         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
730         sysdeps/i386/dl-procinfo.c instead of
731         sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
732         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
733         #include_next.
734
735 2003-09-25  Ulrich Drepper  <drepper@redhat.com>
736
737         * posix/regcomp.c (peek_token): Remove recent changes for anchor
738         handling again.
739         (parse_reg_exp): Likewise.
740         * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
741
742         * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
743         banners.
744
745         * nis/nis_table.c (nis_list): Always strdup string used with
746         ibreq->ibr_name.  Add several NULL pointer checks.
747
748         * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
749         of nis_list.
750         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
751         * nis/nss_nisplus/nisplus-grp.c: Likewise.
752         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
753         * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
754         * nis/nss_nisplus/nisplus-network.c: Likewise.
755         * nis/nss_nisplus/nisplus-proto.c: Likewise.
756         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
757         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
758         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
759         * nis/nss_nisplus/nisplus-service.c: Likewise.
760         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
761
762         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
763         and PROT_GROWSUP.
764         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
765         * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
766         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
767         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
768         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
769         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
770         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
771         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
772         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
773         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
774         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
775
776 2003-09-25  Jakub Jelinek  <jakub@redhat.com>
777
778         * misc/syslog.c: Include locale.h.
779         (vsyslog): Add date always in C locale %h %e %T format.
780
781 2003-09-24  Paul Eggert  <eggert@twinsun.com>
782
783         * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
784         size_t overflow when reallocating storage.
785         * argp/argp-help.c (make_hol, hol_append): Likewise.
786         (SIZE_MAX): New macro.
787
788 2003-08-07  Alfred M. Szmidt  <ams@kemisten.nu>
789
790         * sysdeps/mach/hurd/bits/libc-lock.h
791         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
792
793 2003-08-01  Alfred M. Szmidt  <ams@kemisten.nu>
794
795         * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
796         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
797         #include_next dl-procinfo.h to get them.
798         (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
799         (_DL_PLATFORMS_COUNT): Likewise.
800         (_DL_FIRST_PLATFORM): Likewise.
801         (_DL_HWCAP_PLATFORM): Likewise.
802         (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
803         HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
804         HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
805         HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
806         HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
807         HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
808         HWCAP_IMPORTANT): Likewise.
809         (_DL_PROCINFO_H_): Likewise.
810         (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
811         (_dl_string_platform): Likewise.
812         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
813         * sysdeps/i386/dl-procinfo.c: ... here, new file.
814
815 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
816
817         * sysdeps/unix/sysv/linux/dl-execstack.c
818         (_dl_make_stack_executable): Remember that we changed the permission.
819
820         * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
821         __libc_stack_end.  Patch by David Mosberger.
822
823 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
824
825         * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
826         __libc_stack_end@GLIBC_PRIVATE.
827
828         * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
829         (_dl_sysdep_start): Set __libc_stack_end here.
830         * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
831         __libc_stack_end.
832         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
833         * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
834         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
835         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
836         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
837         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
838         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
839         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
840         * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
841         * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
842         (RTLD_START): Remove setting of __libc_stack_end.
843         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
844         (RTLD_START): Remove setting of __libc_stack_end.
845
846 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
847
848         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
849         function definitions.  Adjust macro expansions accordingly.
850         * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
851         minor, makedev name.
852         * sysdeps/unix/sysv/linux/makedev.c: Likewise.
853
854 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
855
856         * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
857         Add __THROW.
858
859 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
860
861         * nscd/Makefile (others): Add nscd before including ../Rules.
862
863 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
864
865         * nscd/Makefile: Add rules to build nscd as a PIE.
866         * configure.in: Check for -fpie and -pie compiler options.
867         * config.make.in (have-fpie): Define.
868
869 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
870
871         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
872         kernel dev_t size.
873         * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
874         * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
875         * sysdeps/unix/sysv/linux/makedev.c: New file.
876         * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
877         * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
878         (sysdep_routines): Add makedev.
879         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
880         major, minor, makedev.
881         * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
882         kernel dev_t.
883         * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
884         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
885         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
886         Code by Alexander Viro <aviro@redhat.com>.
887
888 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
889
890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
891         (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
892         makecontext.
893         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
894         for include Altivec support for PPC32.  It was not compatible.
895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
896         offsets for ucontext_t change.
897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
898         for ucontext_t change.  Add compatibility code.
899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
902         Patch by Paul Mackerras <paulus@samba.org>.
903
904 2003-02-25  Randolph Chung  <tausq@debian.org>
905
906         * sysdeps/hppa/Makefile: Include compat code in build.
907         * sysdeps/hppa/libgcc-compat.c: New file.
908         * sysdeps/hppa/Dist: Add libgcc-compat.c.
909         * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
910
911 2003-09-23  Roland McGrath  <roland@redhat.com>
912
913         * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
914         GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
915         Move GL(dl_make_stack_executable_hook) initialization up.
916         * elf/tst-execstack-prog.c: New file.
917         * elf/Makefile (tests-execstack-yes): Add it.
918         (LDFLAGS-tst-execstack-prog): New variable.
919
920 2003-09-23  Jakub Jelinek  <jakub@redhat.com>
921
922         * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
923         before calling _dl_start, using %rip relative access.
924         Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
925         and _dl_fini.
926
927 2003-09-23  Roland McGrath  <roland@redhat.com>
928
929         * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
930         calling _dl_start, using GOTOFF access.
931
932         * configure.in (libc_cv_z_execstack): New check.
933         * configure: Regenerated.
934         * config.make.in (have-z-execstack): New variable set by it.
935         * elf/tst-execstack.c: New file.
936         * elf/tst-execstack-mod.c: New file.
937         * elf/tst-execstack-needed.c: New file.
938         * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
939         variables.
940         (tests, modules-names): Conditionally include them.
941         (distribute): Add tst-execstack-mod.c here.
942         ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
943         (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
944         ($(objpfx)tst-execstack-needed): New target.
945         (LDFLAGS-tst-execstack-needed): New variable.
946
947         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
948         and _dl_make_stack_executable_hook.  Declare _dl_make_stack_executable.
949         * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
950         (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
951         Initialize _dl_make_stack_executable_hook.
952         * elf/dl-support.c: Define those new variables.
953         (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
954         (_dl_phdr): Fix type.
955         * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
956         enable execute permission for the stack if necessary.
957         * sysdeps/generic/dl-execstack.c: New file.
958         * elf/Makefile (dl-routines): Add it.
959         * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
960         * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
961
962 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
963
964         * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
965
966 2003-09-20  Alfred M. Szmidt  <ams@kemisten.nu>
967
968         * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
969         UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
970         __fcntl_nocancel.
971
972 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
973
974         * malloc/malloc.c: Include <stdint.h>.
975
976 2003-09-20  Paolo Bonzini  <bonzini@gnu.org>
977
978         * posix/regcomp.c (build_word_op): Rename like...
979         (build_charclass_op): ...this.  Accept two extra parameters,
980         CLASS_NAME and EXTRA.  Add EXTRA to the result, not only _.
981         (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
982         (parse_expression): Replace build_word_op with
983         build_charclass_op, add new arguments, accept OP_SPACE
984         and OP_NOTSPACE.
985         * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
986         and OP_NOTSPACE.
987
988         * posix/regcomp.c (peek_token): Don't look back for ( or |
989         to check whether to treat a caret as special.  It fails
990         for the (extended) regex \(^.
991         (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
992         * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
993
994         * posix/regexec.c: Check out of bounds value before shifting.
995
996         * posix/regex_internal.h: Define __attribute for non-gcc.
997
998 2003-09-22  Jakub Jelinek  <jakub@redhat.com>
999
1000         * include/atomic.h (atomic_compare_and_exchange_val_rel,
1001         atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
1002         to avoid confusion.
1003
1004         * sysdeps/unix/opendir.c: Include string.h.
1005
1006 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
1007
1008         * timezone/zdump.c: Update from tzcode2003c.
1009         * timezone/zic.c: Likewise.
1010         * timezone/leapseconds: Update from tzdata2003c.
1011
1012 2003-09-19  Ulrich Drepper  <drepper@redhat.com>
1013
1014         * elf/Makefile ($(objpfx)librtld.os): Create link map also for
1015         final build to ease quality control.
1016
1017         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
1018         ld.so, don't include NULL buffer pointer handling.
1019
1020 2003-09-19  Jakub Jelinek  <jakub@redhat.com>
1021
1022         * dlfcn/dlopen.c (dlopen): Add static_link_warning.
1023
1024 2003-09-18  Jakub Jelinek  <jakub@redhat.com>
1025
1026         * libio/memstream.c (open_memstream): Use _IO_init instead of
1027         _IO_old_init.
1028
1029 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
1030
1031         * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
1032         have to recognize octal and hexadecimal numbers as well.  Simplify
1033         function, signs are handled in strtol.
1034         * posix/wordexp-test.c: Add tests for octal and hexadecimal
1035         numbers in arithmetic expressions.
1036
1037 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1038
1039         * elf/Makefile (distribute): Add tst-alignmod.c.
1040         (tests): Add tst-align.
1041         (modules-names): Add tst-alignmod.
1042         (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
1043         $(stack-align-test-flags).
1044         ($(objpfx)tst-align): Depend on libdl.
1045         ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
1046         * elf/tst-align.c: New file.
1047         * elf/tst-alignmod.c: New file.
1048         * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
1049         * misc/tst-tsearch.c: Include tst-stack-align.h.
1050         (stack_align_check): New array.
1051         (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
1052         (main): Report error if stack was not enough aligned
1053         in cmp_fn or walk_action.
1054         * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
1055         * stdlib/tst-qsort.c: Include tst-stack-align.h.
1056         (align_check): New var.
1057         (compare): Use TEST_STACK_ALIGN () macro.
1058         (main): Report error if stack was not enough aligned in compare.
1059         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
1060         unneeded -mpreferred-stack-boundary=4.
1061         * sysdeps/x86_64/tst-stack-align.h: New file.
1062
1063         * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
1064         (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
1065
1066 2003-09-17  Philip Blundell  <philb@gnu.org>
1067
1068         * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
1069         (BX): Define.
1070         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
1071
1072         * sysdeps/arm/sysdep.h (DO_RET): New.
1073
1074         * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
1075         required but not defined.  Improve test of error code.
1076
1077 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1078
1079         * sysdeps/i386/Makefile (stack-align-test-flags): Add
1080         -malign-double -mpreferred-stack-boundary=4.
1081
1082 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
1083
1084         * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
1085         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
1086
1087 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
1088
1089         * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
1090         subdir, add -mpreferred-stack-boundary=4, with few exceptions.
1091
1092 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1093
1094         * Makeconfig (stack-align-test-flags): Set.
1095         * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
1096         $(stack-align-test-flags).
1097         * stdlib/tst-bsearch.c: Include tst-stack-align.h.
1098         (align_check): New var.
1099         (comp): Use TEST_STACK_ALIGN macro.
1100         (do_test): Fail if align_check != 1.
1101         * sysdeps/generic/tst-stack-align.h: New file.
1102         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
1103         * sysdeps/i386/i686/tst-stack-align.h: New file.
1104
1105 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
1108         stack which is aligned (mod 16).
1109
1110 2003-09-17  Uwe Reimann  <Uwe_Reimann@gmx.net>
1111             Hans-Peter Nilsson  <hp@axis.com>
1112
1113         * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
1114         R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT.  Clarify comment.
1115
1116 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
1117
1118         * dirent/scandir.c: Include bits/libc-lock.h.
1119         (struct scandir_cancel_struct): New type.
1120         (cancel_handler): New function.
1121         (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
1122         scandir_cancel_struct.
1123
1124 2003-09-16  Ulrich Drepper  <drepper@redhat.com>
1125
1126         * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
1127         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1128         Add internal_statvfs.
1129         * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
1130         instead of including "internal_statvfs.c".
1131         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1132         * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
1133         Add code to avoid the stat calls on all the reported mount points
1134         when we can determine mismatch in advance.
1135         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
1136         USBDEVFS_SUPER_MAGIC.
1137
1138 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
1139
1140         * posix/Versions (sched_getaffinity, sched_setaffinity): Change
1141         from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
1142
1143 2003-09-16  Bruno Haible  <bruno@clisp.org>
1144
1145         * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
1146         invoking msgfmt, not before.
1147
1148 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
1149
1150         * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
1151         * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
1152         $(uses-callbacks).
1153         * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
1154         * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
1155         CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
1156         * elf/dl-iteratephdr.c (cancel_handler): New function.
1157         (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
1158         * elf/link.h (dl_iterate_phdr): Remove __THROW.
1159         * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
1160         Add $(uses-callbacks).
1161         (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
1162         * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
1163         $(exceptions) to $(uses-callbacks).
1164         * Makeconfig (uses-callbacks): Set to $(exceptions).
1165         * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
1166         $(uses-callbacks).
1167         * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
1168         Likewise.
1169
1170 2003-09-15  Andreas Schwab  <schwab@suse.de>
1171
1172         * sysdeps/m68k/setjmp.c: Add hidden_def.
1173
1174 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
1175
1176         * libio/memstream.c (open_memstream): Don't allow wide char operations.
1177
1178         * dirent/dirent.h: Remove __THROW from scandir.
1179
1180 2003-09-14  Philip Blundell  <philb@gnu.org>
1181
1182         * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
1183         to be available.
1184
1185         * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
1186
1187         * sysdeps/arm/memset.S: Rewrite.
1188
1189 2003-09-12  Jakub Jelinek  <jakub@redhat.com>
1190
1191         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
1192         (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
1193         __SLONGWORD_TYPE otherwise.
1194
1195 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
1196
1197         * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
1198         (CFLAGS-ftw64.c): Likewise.
1199
1200 2003-09-13  Ulrich Drepper  <drepper@redhat.com>
1201
1202         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
1203         (CFLAGS-nscd_getgr_r.c): Likewise.
1204         (CFLAGS-nscd_gethst_r.c): Likewise.
1205
1206 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
1207
1208         * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
1209         interfaces.
1210
1211         * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
1212         CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
1213         CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
1214         * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
1215         CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
1216         * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
1217         Likewise.
1218         * misc/Makefile (CFLAGS-err.c): Likewise.
1219         * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
1220         CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
1221         CFLAGS-glob64.c): Likewise.
1222         * pwd/Makefile (CFLAGS-getpw.c): Likewise.
1223         * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
1224         CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
1225         * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
1226         * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
1227
1228         * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
1229
1230         * libio/stdio.h: Remove __THROW from cuserid prototype.
1231
1232         * locale/loadarchive.c: Use only non-cancelable interfaces.
1233         * resolv/herror.c (herror): Likewise.
1234
1235         * malloc/hooks.c: Before using IO stream mark stream so it uses
1236         only non-cancelable interfaces.
1237         * malloc/malloc.c: Likewise.
1238         * posix/getopt.c: Likewise.
1239
1240
1241 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
1242
1243         * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
1244
1245 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
1246
1247         * stdio-common/stdio_ext.h: Mark most functions with __THROW.
1248
1249         * misc/err.h: Remove __THROW from all prototypes.
1250
1251         * posix/getopt.h (__THROW): Define if not already defined.  Add
1252         __THROW to the getopt functions.
1253
1254 2003-09-11  Ulrich Drepper  <drepper@redhat.com>
1255
1256         * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
1257         (CFLAGS-fts.c): Likewise.
1258         * io/fcntl.h: Remove __THROW from lockf prototypes.
1259         * io/fts.h: Remove most __THROW.
1260
1261 2003-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1262
1263         * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
1264         (TLS_LD): Likewise.
1265         (TLS_GD): Likewise.
1266
1267 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
1268
1269         * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
1270         _IO_free_backup_area call.
1271
1272 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
1273
1274         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
1275         syscall invocation.
1276         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
1277         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
1278         Also, only assert off_t size is 4 for N32 and O32, and clean up
1279         white space.
1280         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
1281
1282 2003-09-10  Roland McGrath  <roland@redhat.com>
1283
1284         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
1285         Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
1286         Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
1287         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1288         Reported by Daniel Jacobowitz  <drow@mvista.com>.
1289
1290 2003-09-10  Jakub Jelinek  <jakub@redhat.com>
1291
1292         * string/Makefile (strop-tests): Add memccpy.
1293         * string/test-memccpy.c: New test.
1294
1295 2003-09-09  Jakub Jelinek  <jakub@redhat.com>
1296
1297         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
1298         siginfo_t * argument before, change into struct ucontext *.
1299         (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
1300         (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
1301         instead of structure.
1302         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
1303         Likewise.
1304
1305 2003-09-09  Ulrich Drepper  <drepper@redhat.com>
1306
1307         * string/stratcliff.c (main): Check memccpy.
1308
1309 2003-04-11  Jes Sorensen  <jes@wildopensource.com>
1310
1311         * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
1312         character is found during recovery, use correct register when
1313         determining the position of the found character.
1314
1315 2003-04-01  Jes Sorensen  <jes@wildopensource.com>
1316
1317         * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
1318         avoid segfaults when reading from unmapped pages. For aligned
1319         reload and continue, for misaligned, roll back and use byte copy.
1320         Save ar.ec on entry and restore on exit.
1321
1322 2003-09-09  Chris Demetriou  <cgd@broadcom.com>
1323
1324         * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
1325
1326 2003-09-08  Chris Demetriou  <cgd@broadcom.com>
1327
1328         * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
1329         the top of the list.
1330         * sysdeps/mips/mips64/n64/Implies: Likewise.
1331
1332 2003-09-08  Roland McGrath  <roland@frob.com>
1333
1334         * sysdeps/unix/sysv/linux/speed.c
1335         (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
1336         (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
1337         * sysdeps/unix/sysv/linux/bits/termios.h
1338         (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
1339         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1340         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1341
1342 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
1343
1344         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
1345         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
1346
1347 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
1348
1349         * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
1350         (__u_quad_t): Make unsigned long int if 64-bit.
1351         (__SQUAD_TYPE): Make long int if 64-bit.
1352         (__UQUAD_TYPE): Make unsigned long int if 64-bit.
1353         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
1354
1355 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
1356
1357         * Makefile (tests): Run check-c++-types.sh if possible.
1358         * scripts/check-c++-types.h: New file.
1359         * scripts/data/c++-types-i386-linux-gnu.data: New file.
1360
1361 2003-09-08  Andreas Jaeger  <aj@suse.de>
1362
1363         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1364         Use struct sigcontext.
1365
1366         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1367         Use struct sigcontext.
1368         (GET_PC): Adopt.
1369         (GET_FRAME): Likewise.
1370         (GET_STACK): Likewise.
1371
1372 2003-09-08  Wolfram Gloger  <wg@malloc.de>
1373
1374         * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
1375         contiguous case.  Bug report from Prem Gopalan <prem@mazunetworks.com>.
1376         (mALLOPt): Avoid requirement of C99.
1377
1378 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
1379
1380         * libio/bug-ftell.c: Include <sys/types.h>.
1381         (main): Mark cp as const.
1382
1383 2003-09-07  Jakub Jelinek  <jakub@redhat.com>
1384
1385         * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
1386         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
1387
1388 2003-09-05  Roland McGrath  <roland@redhat.com>
1389
1390         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
1391         and c_ospeed fields.
1392         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
1393         (cfsetispeed): Set c_ispeed field.
1394         * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
1395         to match corresponding speed.c code.
1396
1397 2003-09-06  Ulrich Drepper  <drepper@redhat.com>
1398
1399         * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
1400         narrow character buffer.
1401         * libio/Makefile: Add rules to build and run bug-ftell.
1402         * libio/bug-ftell.c: New file.
1403
1404         * stdio-common/vfprintf.c: Don't use the first grouping number twice.
1405
1406         * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
1407         matching the decimal point and possibly leading the thousands
1408         separator.  This caused the recognition of thousands separators to
1409         always fail.
1410
1411 2003-09-05  Ulrich Drepper  <drepper@redhat.com>
1412
1413         * libio/fileops.c (_IO_new_file_overflow): Handle switching to
1414         write mode from read in backup buffer.
1415         * libio/Makefile (tests): Add bug-ungetc2.
1416         * libio/bug-ungetc2.c: New file.
1417
1418 2003-09-05  Roland McGrath  <roland@redhat.com>
1419
1420         * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
1421
1422 2003-09-04  Roland McGrath  <roland@frob.com>
1423
1424         * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
1425         EOPNOTSUPP, or ENOSYS, change it to ENODEV.
1426
1427 2003-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1428
1429         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
1430         Fix a typo.
1431
1432 2003-09-05  Andreas Jaeger  <aj@suse.de>
1433
1434         * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
1435         to make it conforming C.
1436         * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
1437
1438         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
1439         prototype to use variable argument lists and get the possible one
1440         argument via va_arg.
1441         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
1442         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
1443
1444 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
1447
1448         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1449         Report correct value for vxfs.
1450         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
1451
1452         * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
1453         data.
1454
1455         * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
1456         over the place.  It would be allowed to have these functions as
1457         cancellation points but the cleanup would be ugly and a lot of
1458         work.
1459
1460         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
1461         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
1462
1463         * include/fcntl.h (__fcntl_nocancel): Declare.
1464         * sysdeps/unix/sysv/linux/fcntl.c: New file.
1465         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
1466         cancellation if absolutely needed.
1467         (__fcntl_nocancel): Define.
1468
1469         * posix/unistd.h (gethostid): Remove __THROW.  Clarify comment.
1470         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
1471         -fexceptions.
1472         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
1473         extend_alloca.
1474
1475         * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
1476         instead of __close.
1477
1478         * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts.  Remove
1479         unnecessary errno handling.
1480
1481         * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
1482         Initialize it in all cases.  Change it to be a bit more like the
1483         code we had before.
1484
1485 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
1486
1487         * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
1488         __builtin_expect.
1489         (_IO_file_open): Likewise.  Use close_not_cancel.
1490
1491 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
1492
1493         * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
1494         * libio/fileops.c [_LIBC]: Remove close macro.
1495         (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
1496         (_IO_new_file_open): Recognize 'c' flag in mode string.
1497         (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
1498         (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
1499         write_not_cancel.
1500         * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
1501         * inet/rcmd.c: Likewise.
1502         * inet/ruserpass.c: Likewise.
1503         * intl/localealias.c: Likewise.
1504         * malloc/mtrace.c: Likewise.
1505         * misc/getpass.c: Likewise.
1506         * misc/getttyent.c: Likewise.
1507         * misc/mntent_r.c: Likewise.
1508         * misc/getusershell.c: Likewise.
1509         * nss/nsswitch.c: Likewise.
1510         * resolv/res_hconf.c: Likewise.
1511         * resolv/res_init.c: Likewise.
1512         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1513         * time/getdate.c: Likewise.
1514         * time/tzfile.c: Likewise.
1515         * misc/fstab.h: Undo last change.
1516         * misc/mntent.h: Likewise.
1517         * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
1518         CFLAGS-fstab.c definition.
1519
1520 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
1521
1522         * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
1523
1524 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
1525
1526         * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
1527         returning ERANGE if this wasn't intended.
1528
1529 2003-09-03  Jakub Jelinek  <jakub@redhat.com>
1530
1531         * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
1532         function-like macros.
1533
1534 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
1535
1536         * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
1537         (CFLAGS-getgrent.c): Likewise.
1538         * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
1539         (CFLAGS-getpwent.c): Likewise.
1540         * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
1541         (CFLAGS-getspent.c): Likewise.
1542
1543         * inet/Makefile: Add -fexceptions to CFLAGS for the various
1544         getXXent and getXXbyYY functions.
1545
1546         * locale/loadlocale.c: Use not-cancelable variants of open, close,
1547         and read.
1548
1549 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
1550
1551         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1552         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
1553         rt_sigpending.
1554         * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
1555         New prototype.
1556         * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
1557         unused __syscall_ stubs.
1558         * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
1559         rt_*.
1560         * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
1561         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
1562         (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
1563         * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
1564         unused __syscall_ stubs.
1565         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
1566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
1567         (__syscall_*): Remove unused __syscall_ stubs.
1568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1569         (__syscall_*): Likewise.
1570         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
1571         rt_*.
1572         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
1573         Remove unused __syscall_ stubs.
1574         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
1575         * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
1576         * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
1577         * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
1578         * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
1579         * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
1580         * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
1581         * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
1582         * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
1583         * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
1584         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
1585         __syscall_* prototypes.
1586         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
1587         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
1588         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
1589         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
1590         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1591         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1592         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
1593         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1594         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1595         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
1596         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
1597         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1598         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
1599         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1600         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1601         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1602         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
1603         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
1604         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
1605         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
1606         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
1607         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
1608         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1609         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1610         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
1611         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
1612         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1613         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1614         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1615         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1616         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1617         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1618         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
1619         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1620         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1621         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1622         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1623         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
1624         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1625         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
1626         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
1627         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1628         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
1629         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1630         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1631         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1632         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1633         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1634         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1635         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1636         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
1637         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1638         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1639         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
1640         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1641         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
1642         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
1643         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1644         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1645         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
1646         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1647         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
1648         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
1649         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1650         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1651         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1652         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1653         * sysdeps/unix/sysv/linux/execve.c: Likewise.
1654         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1655         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
1656         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
1657         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
1658         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1659         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1660         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
1661         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1662         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1663         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1664         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1665         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1666         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
1667         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1668         * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
1669         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1670         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1671         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1672         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
1673         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
1674         * sysdeps/unix/sysv/linux/poll.c: Likewise.
1675         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1676         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1677         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1678         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
1679         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1680         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1681         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1682         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1683         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1684         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1685         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1686         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1687         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1688
1689 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
1690
1691         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
1692         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
1693         * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
1694
1695 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
1696
1697         * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
1698
1699         * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
1700         open, close, and read.
1701
1702         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
1703         *_nocancel name.
1704
1705         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
1706
1707         * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
1708         * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
1709         * libio/oldtmpfile.c (__old_tmpfile): Likewise.
1710
1711         * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
1712
1713         * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
1714         (CFLAGS-fstatfs.c): Likewise.
1715         (CFLAGS-statvfs.c): Likewise.
1716         (CFLAGS-fstatvfs.c): Likewise.
1717
1718 2003-09-01  Ulrich Drepper  <drepper@redhat.com>
1719
1720         * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
1721         * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
1722         sysconf.
1723         * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
1724         (CFLAGS-pathconf.c): Likewise.
1725         (CFLAGS-fpathconf.c): Likewise.
1726
1727         * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
1728         * misc/fstab.h: Remove all __THROW.
1729         * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
1730         (CFLAGS-mntent_r.c): Likewise.
1731         * misc/mntent.h: Remove most __THROW.
1732
1733         * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1734         (CFLAGS-mkstemp64.c): Likewise.
1735
1736         * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
1737         around call to exec_comm.
1738         * posix/wordexp.h: Remove __THROW from wordexp.
1739         * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
1740
1741         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
1742         not-cancelable functions.
1743
1744         * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
1745         (CFLAGS-iofopen.c): Likewise.
1746         (CFLAGS-iofopen64.c): Likewise.
1747
1748         * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
1749         functions.
1750         * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
1751         * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
1752
1753         * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
1754         * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
1755
1756 2003-09-01  Thorsten Kukuk  <kukuk@suse.de>
1757
1758         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
1759         NSS_STATUS_SUCCESS if entry was found.
1760         (getspent_next_file): Store user in blacklist after entry
1761         was found, use innetgr.
1762
1763 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
1764
1765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
1766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
1767
1768         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
1769         computation for TCB_AT_TP.  Support l_firstbyte_offset != 0 for
1770         DTV_AT_TP, optimize.
1771
1772 2003-08-31  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1773
1774         * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
1775         posix_fallocate64 at GLIBC_2.3.3.
1776         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
1777         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1778
1779 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
1780
1781         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
1782         functions.
1783
1784 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
1785
1786         * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
1787         Code by Richard Henderson.
1788
1789 2003-08-31  Philip Blundell  <philb@gnu.org>
1790
1791         * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
1792         posix_fallocate64 at GLIBC_2.3.3.
1793
1794 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
1795
1796         * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
1797         * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
1798
1799 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
1800
1801         * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
1802         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
1803         included multiple times.
1804         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
1805         ptid, tls, ctid arguments to the kernel.
1806         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1807         Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
1808         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1809         (__libc_sigaction): Use INLINE_SYSCALL instead of
1810         __syscall_rt_sigaction.
1811         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
1812         (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
1813         __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
1814         __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
1815         __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
1816         __syscall_rt_sigpending, __syscall_rt_sigprocmask,
1817         __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
1818         __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
1819         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
1820         Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
1821         rt_sigqueueinfo, rt_sigaction and rt_sigpending.
1822         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1823         (__CLONE_SYSCALL_STRING): Define.
1824         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
1825         CFI directives.
1826         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1827         (__CLONE_SYSCALL_STRING): Define.
1828         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
1829         Define.
1830         * sysdeps/unix/sysv/linux/sparc/system.c: New file.
1831
1832 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
1833
1834         * sunrpc/rpc/clnt.h: Remove a few __THROW.
1835         * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
1836         (CFLAGS-key_call.c): Likewise.
1837         (CFLAGS-pmap_rmt.c): Likewise.
1838         (CFLAGS-clnt_perr.c): Likewise.
1839         * sunrpc/rpc/auth.h: Remove serveral __THROW.
1840
1841         * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
1842         (CFLAGS-gethstbynm_r.c): Likewise.
1843         (CFLAGS-gethstbynm2_r.c): Likewise.
1844         (CFLAGS-rcmd.c): Likewise.
1845         * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
1846
1847         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
1848         (CFLAGS-argp-fmtstream.c): Likewise.
1849         * argp/argp.h: Remove a number of __THROW.
1850
1851         * misc/sys/syslog.h (vsyslog): Remove __THROW.
1852
1853         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
1854         * misc/getpass.c (getpass): Add cleanup handler to ensure the
1855         stream is closed even if the thread is canceled.
1856         (call_fclose): New function.
1857         * posix/unistd.h: Remove __THROW from getpass prototype.
1858
1859         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
1860
1861         * signal/signal.h (psignal): Remove __THROW.
1862         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
1863
1864         * misc/Makefile (CFLAGS-error.c): Define.
1865         * misc/error.c (error): Disable cancellation handling around the
1866         actual output.  The message should in any case be printed.
1867         (error_at_line): Likewise.
1868
1869         * misc/error.h: Protect parameter names with leading __.
1870
1871 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
1872
1873         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
1874
1875 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
1876
1877         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
1878         end.
1879
1880 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
1881
1882         * libio/stdio.h: Remove a few more __THROW.
1883
1884 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
1885
1886         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
1887         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
1888         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
1889         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
1890         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
1891         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
1892         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
1893         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
1894         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
1895         putwchar.c and rewind.c with exceptions.
1896         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
1897         _IO_release_lock): Define.
1898         * libio/fileops.c (_IO_new_file_underflow): Use it.
1899         * libio/fputc.c (fputc): Likewise.
1900         * libio/fputwc.c (fputwc): Likewise.
1901         * libio/freopen64.c (freopen64):
1902         * libio/freopen.c (freopen): Likewise.
1903         * libio/fseek.c (fseek): Likewise.
1904         * libio/fseeko64.c (fseeko64): Likewise.
1905         * libio/fseeko.c (fseeko): Likewise.
1906         * libio/ftello64.c (ftello64): Likewise.
1907         * libio/ftello.c (ftello): Likewise.
1908         * libio/fwide.c (fwide): Likewise.
1909         * libio/getc.c (_IO_getc): Likewise.
1910         * libio/getchar.c (getchar): Likewise.
1911         * libio/getwc.c (_IO_getwc): Likewise.
1912         * libio/getwchar.c (getwchar): Likewise.
1913         * libio/iofclose.c (_IO_new_fclose):
1914         * libio/iofflush.c (_IO_fflush): Likewise.
1915         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
1916         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1917         * libio/iofgets.c (_IO_fgets): Likewise.
1918         * libio/iofgetws.c (fgetws): Likewise.
1919         * libio/iofputs.c (_IO_fputs): Likewise.
1920         * libio/iofputws.c (fputws): Likewise.
1921         * libio/iofread.c (_IO_fread): Likewise.
1922         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
1923         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1924         * libio/ioftell.c (_IO_ftell): Likewise.
1925         * libio/iofwrite.c (_IO_fwrite): Likewise.
1926         * libio/iogetdelim.c (_IO_getdelim): Likewise.
1927         * libio/iogets.c (_IO_gets): Likewise.
1928         * libio/ioputs.c (_IO_puts): Likewise.
1929         * libio/ioseekoff.c (_IO_seekoff): Likewise.
1930         * libio/ioseekpos.c (_IO_seekpos): Likewise.
1931         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1932         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
1933         * libio/ioungetc.c (_IO_ungetc): Likewise.
1934         * libio/ioungetwc.c (ungetwc): Likewise.
1935         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1936         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
1937         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
1938         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
1939         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
1940         * libio/peekc.c (_IO_peekc_locked): Likewise.
1941         * libio/putc.c (_IO_putc): Likewise.
1942         * libio/putchar.c (putchar): Likewise.
1943         * libio/putwc.c (putwc): Likewise.
1944         * libio/putwchar.c (putwchar): Likewise.
1945         * libio/rewind.c (rewind): Likewise.
1946         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
1947
1948 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
1951         available in XPG4.2.
1952
1953 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
1954             Jakub Jelinek  <jakub@redhat.com>
1955
1956         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
1957         big endian arches.  Don't read beyond end of fds_bits array.
1958
1959 2003-04-27  Bruno Haible  <bruno@clisp.org>
1960
1961         * manual/message.texi (Advanced gettext functions): Add information
1962         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
1963         Add section about Lithuanian, reported by Ricardas Cepas
1964         <rch@richard.eu.org>.
1965         Add information about Croatian.
1966         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
1967         Remove remark about continuation lines that is not true for PO files.
1968         Fix formula for Slovenian, reported by Roman Maurer
1969         <roman.maurer@amis.net>.
1970
1971 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
1972
1973         * math/math_private.h: Declare __copysignf.
1974         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
1975         copysignf.
1976
1977         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
1978         __signbit, and __signbitl inline functions.
1979
1980         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
1981         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
1982
1983         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
1984         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
1985
1986 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
1987
1988         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
1989
1990 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
1991
1992         * include/stdio.h: Add declarations for __builtin_fwrite and
1993         __builtin_fwrite_unlocked.
1994
1995 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
1996
1997         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
1998         fits into allocation.  Add padding on 32-bit arches so that
1999         dirp->data is enough aligned for struct dirent64.
2000         Avoid clearing of the buffer, just clear DIR structure.
2001
2002 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
2003
2004         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
2005         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
2006
2007 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
2008
2009         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
2010
2011 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
2012
2013         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
2014         to match format string.
2015         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
2016         __old_buf.
2017         (__new_semctl): Shut up warning.
2018         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
2019         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
2020
2021 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
2022
2023         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
2024         link file use the real file name, not the resolved name we got by
2025         following the symlinks.
2026
2027 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
2028
2029         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
2030         if the object size is large enough.
2031
2032 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
2033
2034         * elf/ldconfig.c (search_dir): Treat symlink as regular file
2035         if it won't point to itself unless it is .so symlink for the linker.
2036
2037 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
2038
2039         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
2040         use _mode if _IO_fwide_maybe_incompatible.
2041         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
2042         the compatibility test.
2043
2044 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
2045
2046         * elf/cache.c (save_cache): Don't write beyond end of file_entries
2047         buffer.
2048         Duplicate last old cache entry if the count would be odd.
2049
2050 2003-08-25  Andreas Jaeger  <aj@suse.de>
2051
2052         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
2053         __LONG_LONG_PAIR to long.
2054
2055 2003-08-25  Philip Blundell  <philb@gnu.org>
2056
2057         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
2058         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
2059
2060 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
2061
2062         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
2063         and use __libc_cleanup_region_end instead.
2064
2065 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
2066
2067         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
2068
2069 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
2070
2071         * io/fcntl.h (posix_fallocate): Change type of third parameter to
2072         off_t.
2073         (posix_fallocate64): Change type of third parameter to off64_t.
2074         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
2075         * sysdeps/posix/posix_fallocate.c: Likewise.
2076         * sysdeps/generic/posix_fallocate64.c: Likewise.
2077         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
2078         code for 32-bit platforms.
2079         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
2080         posix_fallocate64.
2081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
2082         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2083         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2084
2085 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
2086
2087         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
2088         the type, not to name.
2089
2090         * stdio-common/test-vfprintf.c (main): Don't write temporary file
2091         into source directory.
2092
2093         * malloc/malloc.c (_int_free): Add cheap test for some invalid
2094         block sizes.
2095
2096         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
2097         syscall name.
2098
2099 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
2100
2101         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
2102         into EINVAL.
2103
2104 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2105
2106         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
2107         (elf_machine_lazy_rel): Likewise.
2108
2109 2003-08-18  Art Haas  <ahaas@airmail.net>
2110
2111         * malloc/malloc.h: Remove unneeded ';' where closing the C++
2112         extern block.
2113
2114 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
2115
2116         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
2117         loading big binaries where @gprel(sym) cannot be handled in 'add'
2118         but instead has to be used with 'movl'.
2119
2120 2003-08-17  Juergen Kreileder <jk@blackdown.de>
2121             Andreas Jaeger  <aj@suse.de>
2122
2123         * sysdeps/x86_64/bits/byteswap.h: New file.
2124
2125 2003-08-17  Andreas Jaeger  <aj@suse.de>
2126
2127         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
2128
2129 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
2130
2131         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
2132         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2133         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
2134         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2135         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
2136         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2137         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
2138         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
2139         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
2140         ret_ERRVAL): Define.
2141         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
2142         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2143         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
2144         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2145         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
2146         Define.
2147         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
2148         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2149         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
2150
2151         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
2152         posix_fadvise64_64): Remove.
2153         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
2154         V flag.
2155         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
2156         Likewise.
2157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
2158         (posix_fadvise64): Likewise.
2159         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
2160         (posix_fadvise64): Likewise.
2161         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2162         (posix_fadvise64): Likewise.
2163         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
2164         Likewise.
2165         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
2166         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
2167         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
2168         (__posix_fadvise64_l32): New function.
2169         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
2170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
2171         posix_fadvise64@@GLIBC_2.3.3.
2172         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2173         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2174         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
2175         error value.
2176         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
2177
2178         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2179         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
2180
2181 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
2182
2183         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
2184         (elf_machine_matches_host): Remove weak extern stuff.
2185         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
2186         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
2187         stuff.  Use GL(dl_hwcap) unconditionally.
2188
2189 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
2190
2191         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
2192         __libc_start_main branch.
2193
2194 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
2195             Andreas Jaeger  <aj@suse.de>
2196
2197         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
2198         instead of setting errno.
2199         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2200
2201 2003-08-16  Andreas Jaeger  <aj@suse.de>
2202
2203         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
2204         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2205
2206 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
2207
2208         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
2209         off_t.
2210         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
2211         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
2212         description indicating the error value is returned, not -1.
2213         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
2214         __ASSUME_FADVISE64_64_SYSCALL.
2215         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
2216         posix_madvise in one file.  Have posix_madvise defined with error
2217         value returned.
2218         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
2219         entry.
2220         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
2221         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
2222         PSEUDO_END_ERRVAL, and ret_ERRVAL.
2223         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2224         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2225         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
2226         posix_fadvise64.
2227
2228         * posix/Makefile (routines): Add posix_madvise.
2229         * sysdeps/generic/madvise.c: Don't define posix_madvise.
2230         * sysdeps/generic/posix_madvise.c: New file.
2231         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
2232         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
2233         Add posix_fadvise64_64.
2234
2235 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
2236
2237         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
2238         3.0, not for !gcc or gcc < 3.0.
2239
2240 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
2241
2242         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
2243         Address passed to test_in_mod1 and test_in_mod2 without casting.
2244         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
2245         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
2246         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
2247         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
2248
2249 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
2250
2251         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
2252         Change quotes before using [].
2253
2254         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
2255
2256         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
2257         Renamed to...
2258         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
2259         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
2260         argument.  Select one of 64 locks from address bits.
2261         (atomic_compare_and_exchange_val_acq,
2262         atomic_compare_and_exchange_bool_acq): Pass memory address to
2263         __sparc32_atomic_do_{,un}lock.
2264
2265 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
2266
2267         * assert/assert.h (assert): Use !! in front of expression to allow
2268         use of pointers.
2269
2270         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
2271         Changed conversion of JIS X 0201 from using a table to calculating.
2272         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
2273         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
2274         EUC-JP-MS.
2275         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
2276         * iconvdata/CP932.irreversible: New file.
2277         * iconvdata/EUC-JP-MS.irreversible: New file.
2278         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
2279
2280 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
2281
2282         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
2283
2284         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
2285         text processing tools.
2286
2287         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
2288         element unless BROKEN_THREAD_SIGNALS is defined.
2289         (struct requestlist): Likewise.
2290         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
2291         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
2292         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
2293         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
2294         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
2295         Pass current PID to __aio_sigqueue.
2296         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
2297         call.  Don't initialize caller_pid field of waitlist element.
2298
2299 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
2300
2301         * libio/libioP.h (_IO_vtable_offset): Define.
2302         * libio/freopen.c (freopen): Use it.
2303         * libio/ioputs.c (_IO_puts): Likewise.
2304         * libio/freopen64.c (freopen64): Likewise.
2305         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
2306         Likewise.
2307         * libio/iofclose.c (_IO_new_fclose): Likewise.
2308         * libio/iofputs.c (_IO_fputs): Likewise.
2309         * libio/ioftell.c (_IO_ftell): Likewise.
2310         * libio/iofwrite.c (_IO_fwrite): Likewise.
2311         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
2312         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
2313         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
2314         * stdio-common/vfscanf.c (ORIENT): Likewise.
2315
2316 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
2317
2318         * assert/assert.h: Use __builtin_expect in assert and
2319         assert_perror definitions if possible.
2320
2321 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
2322
2323         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
2324         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
2325         * elf/rtld.c (rtld_lock_default_lock_recursive,
2326         rtld_lock_default_unlock_recursive): New functions.
2327         (dl_main): Initialize _dl_rtld_lock_recursive and
2328         _dl_rtld_unlock_recursive.
2329
2330 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
2331
2332         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
2333         config_file directories instead of prepending.
2334
2335 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
2336
2337         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2338         __ASSUME_CLONE_STOPPED.
2339
2340 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
2341
2342         * sysdeps/generic/bits/libc-lock.h
2343         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
2344
2345 2003-08-01  Roland McGrath  <roland@frob.com>
2346
2347         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
2348
2349 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
2350
2351         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
2352         instead of __SWORD_TYPE.
2353         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
2354         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
2355         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
2356         Define.
2357         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
2358         Define.
2359         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
2360         Define.
2361         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
2362
2363         * dlfcn/dlerror.c (once): New.
2364         (dlerror): Call __libc_once.
2365         (_dlerror_run): Remove once.
2366
2367         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2368         Sync with 2.5.7 and 2.5.73 kernel changes.
2369
2370         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
2371         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
2372         formats to size_t.
2373         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
2374         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
2375         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
2376         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
2377         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
2378         difference argument.
2379         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
2380         format to wint_t.
2381         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
2382         %d format and cast expected value to int.
2383         * sysdeps/generic/libc-start.c (STATIC): Add
2384         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
2385         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
2386         to ieee_float_shape_type.
2387         (__sqrt): Avoid type punning.
2388         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
2389         to ieee_float_shape_type.
2390         (__sqrtf): Avoid type punning.
2391         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
2392         refsym if in dl-conflict.c.
2393         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2394         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
2395         (__new_semctl): Shut up warning.
2396         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
2397         (__new_semctl): Shut up warning.
2398         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
2399         Change old into union of __old_shmid_ds and __old_shminfo structs.
2400         Adjust all users.
2401         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
2402
2403         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
2404         modtime computation.
2405         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
2406         * sysdeps/posix/utimes.c (__utimes): Likewise.
2407
2408 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
2409
2410         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
2411         call dl_signal_error directly.  If already relocated, call
2412         GL(dl_init_static_tls) directly, otherwise queue it for later.
2413         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
2414         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
2415         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
2416         for all static TLS initializations delayed in _dl_allocate_static_tls.
2417         * elf/dl-support.c (_dl_init_static_tls): New variable.
2418         * include/link.h (struct link_map): Add l_need_tls_init.
2419         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
2420         (_dl_nothread_init_static_tls): New prototype.
2421         (_dl_allocate_static_tls): Adjust prototype.
2422
2423         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
2424
2425 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
2426
2427         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
2428         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
2429         reloc_addr is aligned.
2430         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
2431         elf_machine_rela_relative): Adjust.
2432         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
2433         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
2434         * sysdeps/cris/dl-machine.h (elf_machine_rela,
2435         elf_machine_rela_relative): Adjust.
2436         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
2437         elf_machine_rela_relative): Adjust.
2438         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
2439         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
2440         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
2441         elf_machine_rela_relative): Adjust.
2442         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
2443         elf_machine_rela_relative): Adjust.
2444         * sysdeps/mips/dl-machine.h (elf_machine_rela,
2445         elf_machine_rela_relative): Adjust.
2446         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
2447         elf_machine_rela_relative): Adjust.
2448         * sysdeps/powerpc/powerpc64/dl-machine.h
2449         (elf_machine_rela_relative, elf_machine_rela): Adjust.
2450         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
2451         elf_machine_rela_relative): Adjust.
2452         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
2453         elf_machine_rela_relative): Adjust.
2454         * sysdeps/sh/dl-machine.h (elf_machine_rela,
2455         elf_machine_rela_relative): Adjust.
2456         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
2457         elf_machine_rela_relative): Adjust.
2458         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
2459         elf_machine_rela_relative): Adjust.
2460         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
2461         elf_machine_rela_relative): Adjust.
2462
2463 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
2464
2465         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
2466         alignment of TCB used before the last change so that it matches
2467         ld's output for IE code.
2468
2469 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
2470
2471         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
2472         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
2473         break strict-aliasing rules" warnings.
2474
2475 2003-07-29  Roland McGrath  <roland@redhat.com>
2476
2477         * elf/Makefile: Revert accidental changes in last commit.
2478         * elf/dl-support.c: Likewise.
2479
2480         * rt/tst-timer2.c: New file.
2481         * rt/Makefile (tests): Add it.
2482
2483 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
2484
2485         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
2486
2487 2003-07-29  Roland McGrath  <roland@redhat.com>
2488
2489         * elf/Makefile (tests) [$(build-shared) = yes]:
2490         Depend on $(test-modules).
2491         * dlfcn/Makefile: Likewise.
2492
2493 2003-07-28  Roland McGrath  <roland@redhat.com>
2494
2495         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
2496         Use that instead of `typedef' when using __*_TYPE macros in rhs.
2497
2498         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
2499         * elf/tst-tlsmod14a.c: Likewise.
2500
2501         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
2502         before <linux/sysctl.h>.
2503
2504 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
2505
2506         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
2507         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
2508         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
2509         * sysdeps/unix/syscalls.list: umask syscall never fails.
2510
2511 2003-07-27  Andreas Jaeger  <aj@suse.de>
2512
2513         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
2514
2515 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
2516
2517         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
2518         Include bits/a.out.h.
2519         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2520         bits/a.out.h.
2521         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
2522         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
2523         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
2524         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
2525         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
2526         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
2527         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
2528         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
2529
2530 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
2531
2532         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
2533         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
2534         aiocbp->aio_fildes does not match fildes.
2535
2536 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
2537
2538         * timezone/zic.c (rpytime): Replace cheap overflow check with a
2539         functioning one.
2540
2541         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
2542         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
2543         Fix calculation of offsets to take misalignment of first byte in
2544         file into account.
2545         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
2546         l_tls_firstbyte_offset field.
2547         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
2548         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
2549         Take l_tls_firstbyte_offset information into account.
2550         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
2551         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
2552         * elf/Makefile: Add rules to build and run tst-tls14.
2553         * elf/tst-tls14.c: New file.
2554         * elf/tst-tlsmod14a.c: New file.
2555         * elf/tst-tlsmod14b.c: New file.
2556
2557 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
2558
2559         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
2560         (lio_listio): Use it.
2561         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
2562         after few defines to avoid duplication.
2563
2564 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
2565
2566         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
2567         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
2568         Likewise.
2569         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
2570         Add libc_hidden_def.
2571         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
2572         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2573         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
2574         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
2575         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
2576         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
2577         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
2578         change.
2579         * sysdeps/generic/unwind.inc: Removed.
2580
2581         * include/resolv.h (__resp): Declare.  Define to __libc_resp
2582         if in libc.so.
2583         (_res): If USE___THREAD, define to (*__resp).
2584         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
2585         even if USE___THREAD.
2586         (__resp): New __thread variable.
2587         (__libc_resp): New alias.
2588         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
2589         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
2590         * sysdeps/generic/res-state.c (__res_state): Return __resp
2591         if USE___THREAD.
2592
2593 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
2594
2595         * elf/dl-support.c (_dl_hwcap): New variable.
2596         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
2597
2598         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
2599         and <dl-procinfo.h>.
2600         (__feclearexcept): Clear MXCSR if needed.
2601         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
2602
2603         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
2604         that newer hardware needs more than these macros.
2605
2606         * sysdeps/i386/setfpucw.c: New file.
2607
2608 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
2609
2610         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
2611         * elf/ldconfig.c: Include dl-procinfo.c.
2612         (PROCINFO_CLASS): Define.
2613         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
2614         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
2615         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
2616         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
2617         Define if not yet defined.  Use it instead of EXTERN.  Undefine
2618         at the end of the file.
2619         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
2620         Likewise.
2621         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
2622         (PROCINFO_CLASS): Likewise.
2623         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
2624         (PROCINFO_CLASS): Likewise.
2625
2626 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
2627
2628         * elf/ldconfig.c (main): Issue a fatal error if relative path
2629         is used to build cache.
2630
2631 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
2632
2633         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
2634
2635 2003-07-21  Art Haas  <ahaas@airmail.net>
2636
2637         * manual/charset.texi (Converting a Character): Fix example code so a
2638         valid pointer is returned.
2639
2640 2003-07-22  Andreas Jaeger  <aj@suse.de>
2641
2642         * elf/readlib.c (process_file): Check that file is a shared
2643         object.
2644
2645         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
2646         will not optimize it away.
2647         (__DTOR_END__): Likewise.
2648         (__CTOR_END__): Likewise.
2649
2650         * include/libc-symbols.h (_elf_set_element): Use attribute used so
2651         that gcc will not optimize it away.
2652         (link_warning): Likewise.
2653
2654 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
2655
2656         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
2657         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
2658         * wcsmbs/tst-wcpncpy.c: New file.
2659
2660 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
2661
2662         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
2663
2664         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
2665         stmxcsr and ldmxcsr.
2666
2667         * Makerules (build-module-helper): Add -z defs unless explicitly said
2668         not to do it.
2669         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
2670         which has undefined symbols.
2671         * elf/Makefile: Likewise.
2672
2673         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
2674         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2675         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2676         * sysdeps/i386/fpu/fesetround.c: Likewise.
2677         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
2678
2679 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
2680
2681         * elf/ldconfig.c (search_dir): Treat symlink as regular file
2682         if it won't point to itself.
2683
2684 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
2685
2686         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
2687
2688 2003-07-20  Andreas Jaeger  <aj@suse.de>
2689
2690         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
2691         STANDARD_TO_LOOP_ERR_HANDLER.
2692         * iconvdata/euc-jp-ms.c (BODY): Likewise.
2693
2694 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
2695
2696         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
2697
2698         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
2699
2700 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
2701             Andreas Jaeger  <aj@suse.de>
2702
2703         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
2704         256K, remove unneeded declaration of __getpagesize.
2705
2706 2003-07-16  Andreas Schwab  <schwab@suse.de>
2707
2708         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
2709
2710 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
2711
2712         * io/test-utime.c (main): Make test yet more robust.
2713
2714 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
2715
2716         More cancellation handling fixups.
2717         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
2718         * sysdeps/generic/not-cancel.h: Likewise.
2719         * catgets/open_catalog.c: Use not-cancelable syscalls.
2720         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
2721         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
2722         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
2723         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
2724         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
2725         * libio/fileops.c: Use not-cancelable syscalls for fclose.
2726         * libio/iopopen.c: Use no-cancelable syscalls.
2727         * libio/stdio.h: Mark popen and pclose with __THROW again.
2728         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
2729         * misc/syslog.c: Fix locking and cancellation cleanup handling.
2730         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
2731         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
2732         CFLAGS-tempname.c): Add -fexceptions.
2733         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
2734         * string/string.h: Mark strerror and strerror_r with _THROW again.
2735         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
2736         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
2737         #ifs since we now need all the code compiled.
2738         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
2739         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
2740         * sysdeps/unix/opendir.c: Likewise.
2741
2742         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
2743         Add rule for EUC-JP-MS dependency.
2744         * iconvdata/cp932.c: New file.
2745         * iconvdata/eucjp-ms.c: New file.
2746         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
2747         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
2748
2749 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
2750
2751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
2752         cfi directives.
2753
2754 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2755
2756         * sysdeps/unix/sysv/linux/kernel-features.h
2757         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
2758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
2759
2760         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
2761
2762 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
2763
2764         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2765         __ASSUME_TGKILL for Alpha appropriately.
2766
2767 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
2768
2769         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
2770         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
2771         Likewise.
2772         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
2773         Likewise.
2774
2775         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2776         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
2777
2778         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
2779         second parameter == NULL.
2780         * sysdeps/unix/sysv/linux/utimes.c: New file.
2781
2782 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
2783
2784         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
2785         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
2786         a typo.
2787
2788 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
2789
2790         * time/sys/time.h: Namespace cleanup.
2791         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2792         __ASSUME_UTIMES for the architectures which always had the syscall.
2793         * sysdeps/unix/sysv/linux/futimes.c: New file.
2794
2795 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2796
2797         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
2798         register across CENABLE and CDISABLE.
2799
2800 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
2801
2802         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
2803         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2804         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2805         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
2806         int before assigning to max to avoid warnings.
2807
2808 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
2809
2810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
2811         cfi directives.
2812         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
2813         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
2814
2815 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
2816
2817         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
2818         .data.rel.ro.local to "aw".
2819
2820 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
2821
2822         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
2823         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
2824         (PIC-ccflag): Define.
2825
2826 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
2827
2828         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
2829         if PIC.
2830         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2831
2832 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
2833
2834         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
2835         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
2836
2837 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
2838
2839         * sysdeps/unix/sysv/linux/kernel-features.h: Version
2840         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
2841
2842         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
2843         compilation with HAVE_AUX_SECURE defined.
2844
2845 2003-07-05  Richard Henderson  <rth@redhat.com>
2846
2847         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
2848
2849 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
2850
2851         * configure.in: Also check for .cfi_rel_offset pseudo-op.
2852
2853 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
2854
2855         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
2856         typo.
2857
2858 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
2859
2860         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
2861         Define.
2862         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
2863
2864 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
2865
2866         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
2867         decl and use with #ifdef NEED_DL_SYSINFO.
2868
2869 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
2870
2871         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
2872         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
2873         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2874         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
2875         vsyscall DSO was added.
2876
2877         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
2878         depending on selected standard.
2879         (NGROUPS_MAX): Define to 8 if not defined.
2880
2881 2003-07-02  Andreas Jaeger  <aj@suse.de>
2882
2883         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
2884
2885 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2886
2887         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
2888         * malloc/thread-m.h: Include <atomic.h>.
2889         (atomic_full_barrier): Provide default.
2890         (atomic_read_barrier): Likewise.
2891         (atomic_write_barrier): Likewise.
2892         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
2893
2894 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
2895
2896         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
2897
2898 2003-06-30  Richard Henderson  <rth@redhat.com>
2899
2900         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
2901         Invert the sense of the return value.
2902         (__arch_exchange_16_int): Fix paste-o.
2903         (__arch_exchange_{32,64}_int): Fix think-o.
2904
2905         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
2906
2907 2003-06-30  Richard Henderson  <rth@redhat.com>
2908
2909         * include/sys/resource.h (__getrusage): Mark hidden.
2910         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
2911         * include/sys/wait.h (__wait4): Likewise.
2912
2913 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
2914
2915         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
2916         case.
2917         (xstat_conv): Rename to __xstat_conv and remove static inline.
2918         (xstat64_conv): Likewise.
2919
2920 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
2921
2922         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
2923         values which cannot be handled in one nanosleep call.
2924
2925 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
2926
2927         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
2928         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
2929
2930         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
2931
2932 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
2933
2934         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
2935         fix typo.
2936
2937 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
2938
2939         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
2940         Conditionalize function definitions that use struct kernel_stat.
2941         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
2942         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
2943         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
2944
2945 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
2946
2947         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
2948         implementation.
2949
2950 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
2951
2952         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
2953         (getgrent_next_file): Don't store group name to early in blacklist.
2954
2955         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
2956         and use memcpy instead of strcpy.
2957
2958 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
2959
2960         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
2961         stream unlocked.
2962         * nis/nss_compat/compat-initgroups.c: Likewise.
2963         * nis/nss_compat/compat-pwd.c: Likewise.
2964         * nis/nss_compat/compat-spwd.c: Likewise.
2965
2966 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
2967
2968         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
2969         functions, dlopen corresponding NSS module instead.
2970
2971 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
2972
2973         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
2974         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2975         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2976         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2977
2978 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
2979
2980         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
2981
2982 2003-06-26  Roland McGrath  <roland@frob.com>
2983
2984         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
2985         * sysdeps/mach/configure: Regenerated.
2986         * sysdeps/mach/hurd/times.c (times_init): Function removed.
2987         (__times): Assume `creation_time' field is available.
2988         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
2989         Don't append set-init.
2990         * sysdeps/mach/hurd/set-init.c: File removed.
2991
2992 2003-06-26  Roland McGrath  <roland@redhat.com>
2993
2994         * elf/elf.h (AT_SECURE): New macro.
2995         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
2996         set __libc_enable_secure.
2997         (_dl_show_auxv): Add AT_SECURE to name table.
2998         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
2999         __libc_enable_secure and __libc_enable_secure_decided.
3000         * sysdeps/unix/sysv/linux/ldsodefs.h
3001         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
3002         * sysdeps/unix/sysv/linux/kernel-features.h
3003         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
3004
3005 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
3006
3007         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
3008         boundary test to take rounding of nanoseconds into account.
3009
3010         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
3011         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3012         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
3013         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3014         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3015         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3016         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3017
3018 2003-06-26  Andreas Schwab  <schwab@suse.de>
3019
3020         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
3021         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
3022         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
3023
3024 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
3025
3026         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
3027         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
3028         dlopen corresponding NSS module instead.
3029         * nis/nss_compat/compat-pwd.c: Likewise.
3030         * nis/nss_compat/compat-spwd.c: Likewise.
3031         * nis/nss_compat/compat-initgroups.c: Disabled for now.
3032         * nss/Versions: Export __nss_lookup_function.
3033
3034 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3035
3036         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
3037         for the SH architecture.
3038
3039 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
3040
3041         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
3042
3043 2003-06-25  Andreas Jaeger  <aj@suse.de>
3044
3045         * stdlib/tst-strtod.c (main): Declare constant long double as
3046         suggested by Jakub Jelinek and Andreas Schwab.
3047
3048         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
3049         declaration.
3050
3051         * stdio-common/tst-fphex.c: Fix format string.
3052
3053         * posix/transbug.c: Include <string.h> for memset and strlen
3054         declarations.
3055
3056         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
3057
3058         * stdlib/tst-strtod.c (main): Pass long double value.
3059
3060         * test-skeleton.c: Include <time.h> for nanosleep declaration.
3061
3062 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
3063
3064         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
3065         defined.
3066
3067 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
3068
3069         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
3070         * elf/dl-libc.c (struct dl_open_hook): New.
3071         (_dl_open_hook): New variable.
3072         (do_dlsym_private): New function.
3073         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
3074         and initialize it if found.
3075         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
3076         call dlopen_mode hook.
3077         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
3078         call dlsym hook.
3079         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
3080         call dlclose hook.
3081
3082 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
3083
3084         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
3085         result to long int so that extensions to long long int work.
3086         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
3087
3088 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
3089
3090         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
3091         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
3092         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
3093         dl-cache.h.
3094         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
3095         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
3096         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
3097         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
3098
3099 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
3100
3101         * test-skeleton.c (timeout_handler): If waitpid returned 0,
3102         retry once after a second.  If killed == 0, assume
3103         WTERMSIG (status) == SIGKILL.
3104
3105 2003-06-18  Roland McGrath  <roland@redhat.com>
3106
3107         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
3108         elements in the table instead of printing an empty name string.
3109
3110 2003-06-05  Roland McGrath  <roland@redhat.com>
3111
3112         * elf/elf.h (PT_GNU_STACK): New macro.
3113
3114 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
3115
3116         * include/time.h: Define CLOCK_IDFIELD_SIZE.
3117         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
3118         * sysdeps/unix/clock_gettime.c: Likewise.
3119         * sysdeps/unix/clock_settime.c: Likewise.
3120         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
3121         clock id for thread CPU clocks.
3122
3123         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
3124         for the fstatfs64 syscall.
3125         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
3126         the statfs64 syscall.
3127
3128         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3129         __ASSUME_STATFS64 appropriately.
3130
3131         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
3132         from statfs structure if it has been filled in.
3133
3134         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
3135         field.
3136         (struct statfs64): Likewise.
3137         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
3138         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
3139
3140 2003-06-24  Richard Henderson  <rth@redhat.com>
3141
3142         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
3143         the 64-bit syscall name.
3144
3145         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
3146
3147         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
3148         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
3149
3150         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
3151         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
3152         libc_hidden_def.
3153         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3154         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
3155         on them.
3156
3157         * sysdeps/alpha/bits/atomic.h: New file.
3158
3159 2003-06-24  Andreas Schwab  <schwab@suse.de>
3160
3161         * sysdeps/m68k/fpu/libm-test-ulps: Update.
3162
3163 2003-06-24  Andreas Jaeger  <aj@suse.de>
3164
3165         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
3166         redeclaration with 32-bit code.
3167
3168 2003-05-19  Ed Connell  <ed.connell@sas.com>
3169
3170         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
3171         floating point mask.
3172         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
3173
3174 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
3175
3176         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
3177         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
3178         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
3179
3180         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
3181         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
3182         instead of __libc_cleanup_region_*.
3183
3184 2003-06-20  Richard Henderson  <rth@redhat.com>
3185
3186         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
3187         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
3188
3189 2003-06-20  Richard Henderson  <rth@redhat.com>
3190
3191         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
3192         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
3193         Unset for alpha.
3194         (__ASSUME_TIMEVAL64): Set for alpha.
3195         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3196         adjtimex, osf_sigprocmask, old_adjtimex.
3197         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
3198         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
3199         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
3200         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
3201         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3202         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3203         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
3204         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
3205         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
3206         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
3207         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
3208         PIC code sequence.
3209         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3210         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
3211         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
3212         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
3213         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3214         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
3215         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
3216         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
3217         defer to __syscall_name; error for rt_sigaction.
3218         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
3219
3220 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
3221
3222         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
3223         hasn't happened yet.
3224
3225         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3226         Fix completely broken implementation.  The second parameter is of
3227         type struct ucontext*.
3228
3229         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
3230         inline.
3231
3232         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
3233         * sysdeps/generic/dl-hash.h: Likewise.
3234
3235         * sysdeps/generic/memcmp.c: Remove inline from
3236         memcmp_common_alignment and memcmp_not_common_alignment definition.
3237
3238         * intl/localealias.c (read_alias_file): Determine whether line is
3239         read incompletely early, before we modify the line.
3240
3241 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
3242
3243         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
3244         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
3245
3246 2003-06-17  Paul Mackerras  <paulus@samba.org>
3247
3248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
3249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
3250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
3251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
3252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
3253         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
3254
3255 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
3256
3257         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
3258
3259 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
3260
3261         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
3262         takes care of enabling cancellation.
3263
3264         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
3265         cancelable.  It's not correct to disable cancellation.  Instead of
3266         a cleanup handler.
3267
3268         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
3269         and part of the incoming set, create a temporary set without this
3270         signal.
3271         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3272         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3273
3274         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
3275         returning because seconds==0.  Add __builtin_expect.
3276
3277 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
3280
3281         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
3282         variable.
3283
3284 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
3285
3286         * include/libc-symbols.h: Add static_link_warning macro.
3287         * grp/initgroups.c: Print linker warning if this function
3288         is called in a static linked binary.
3289         * nss/getXXbyYY.c: Likewise.
3290         * nss/getXXbyYY_r.c: Likewise.
3291         * nss/getXXent.c: Likewise.
3292         * nss/getXXent_r.c: Likewise.
3293         * sysdeps/posix/getaddrinfo.c: Likewise.
3294
3295 2003-06-16  Bruno Haible  <bruno@clisp.org>
3296
3297         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
3298         LATIN-9.
3299         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
3300         (IBM1047): Add alias IBM-1047.
3301         (GBK): Add aliases MS936, WINDOWS-936.
3302
3303 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
3304
3305         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
3306         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
3307         (__xstat64_conv): Change xstat_conv to __xstat_conv.
3308
3309 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
3310
3311         * locale/iso-639.def: Update from current official ISO 639.
3312
3313         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
3314
3315 2003-06-15  Andreas Jaeger  <aj@suse.de>
3316
3317         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
3318         of MXCSR.
3319         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3320         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
3321         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
3322
3323         * math/tgmath.h (carg): Handle real arguments.
3324         (conj): Likewise.
3325         (cproj): Likewise.
3326         (cimag): Likewise.
3327         (creal): Likewise.
3328
3329         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
3330         (tests): Add test-tgmath-ret.
3331         * math/test-tgmath-ret.c: New file.
3332
3333         * math/tgmath.h (ilogb): Return always an int.
3334
3335 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
3336
3337         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
3338         computation so that prelinking works.
3339
3340 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
3341
3342         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
3343         linker's map.
3344         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
3345         dynamic linker's map.
3346
3347         Fix cancellation point handling wrt exception based cleanup.
3348         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
3349         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
3350         with exceptions.
3351         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
3352         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
3353         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
3354         exceptions.
3355         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
3356         sigwait.c, and sigwaitinfo.c with exceptions.
3357         * stdlib/Makefile: Compile system.c with exceptions.
3358         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
3359         * termios/Makefile: Compile tcdrain.c with exceptions.
3360         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
3361         situation.
3362         * sysdeps/generic/pselect.c: Likewise.
3363         * sysdeps/posix/sigpause.c: Likewise.
3364         * sysdeps/posix/system.c: Likewise.
3365         * sysdeps/posix/waitid.c: Likewise.
3366         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
3367         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
3368         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
3369         INTERNAL_SYSCALL to not use push inside asm statement so that
3370         unwind info is correct around the syscall.
3371         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
3372         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
3373
3374 2003-06-15  Andreas Jaeger  <aj@suse.de>
3375
3376         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3377         Add CFI directives.
3378
3379 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
3380
3381         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
3382         create $(objpfx).
3383
3384 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
3385
3386         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
3387         not close.
3388
3389         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
3390         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
3391         definition.
3392
3393         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
3394         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
3395         * inet/Makefile (routines): Add inet6_option.
3396         * inet/inet6_option.c: New file.
3397         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
3398         inet6_option_init, inet6_option_append, inet6_option_alloc,
3399         inet6_option_next, and inet6_option_find.
3400
3401 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * inet/netinet/ip6.h (struct ip6_ext): Define.
3404
3405         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
3406
3407         Fixing gcc 3.3 warnings, part II.
3408         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
3409         * elf/dl-load.c (cache_rpath): Don't inline.
3410         * iconvdata/cns11642l2.h: Always inline all functions.
3411         * iconvdata/iso-ir-165.h: Likewise.
3412         * locale/Makefile (aux): Add coll-lookup.
3413         * locale/coll-lookup.c: New file.
3414         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
3415         (collseq_table_lookup): Likewise.
3416         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
3417         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
3418         change.
3419         * posix/regcomp.c: Likewise.
3420         * posix/regexec.c: Likewise.
3421         * locale/programs/3level.h (*_get): Always inline.
3422         * locale/programs/locfile.h: Move definition of handle_copy to...
3423         * locale/programs/locfile.c: ...here.
3424         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
3425         (obstack_int32_grow_fast): Likewise.
3426         (utf8_encode): Likewise.
3427         (find_element): Avoid aliasing problems.
3428         (insert_value): Likewise.
3429         (collate_read): Likewise.
3430         * nss/getent.c (print_hosts): Don't inline
3431         (print_networks): Likewise.
3432         (print_shadow): Likewise.
3433         (build_doc): Likewise.
3434         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
3435         inline.
3436         * posix/regcomp.c (re_set_fastmap): Always inline.
3437         (seek_collating_symbol_entry): Likewise.
3438         (lookup_collation_sequence_value): Likewise.
3439         (build_range_exp): Likewise.
3440         (build_collating_symbol): Likewise.
3441         * posix/regexec.c (acquire_init_state_context): Don't inline.
3442         (clean_state_log_if_need): Likewise.
3443         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
3444         adjust all callers.
3445         (evConsTime): Likewise.
3446         (evAddTime): Likewise.
3447         (evSubTime): Likewise.
3448         (evNowTime): Likewise.
3449         (evTimeSpec): Removed.
3450         (__libc_res_nsend): Avoid aliasing problem.
3451         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
3452         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
3453         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
3454         Always inline.
3455         (_dl_string_platform): Likewise.
3456         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
3457         (wcwidth_table_lookup): Likewise.
3458         (wctrans_table_lookup): Likewise.
3459
3460         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
3461
3462 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
3463
3464         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
3465
3466 2003-05-29  Jim Meyering  <jim@meyering.net>
3467
3468         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
3469         && HAVE_STRFTIME]: Use underlying_strftime for %r.
3470         Suggested by Daniel Yacob <locales@geez.org>.
3471
3472 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
3473
3474         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
3475         @got notation with @toc.
3476         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
3477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
3478
3479 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
3482         if only PF_INET address is needed.
3483
3484         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
3485         case of an error.
3486
3487         * scripts/config.guess: Update from upstream version.
3488         * scripts/config.sub: Likewise.
3489
3490 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
3491
3492         * locale/programs/ld-time.c (time_output): Also copy the era format,
3493         not only the name.
3494
3495 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3496
3497         * posix/transbug.c (run_test): Return 1 for failure.
3498         (do_test): Compare only if run_test is successful.
3499
3500 2003-06-12  Simon Josefsson  <jas@extundo.com>
3501
3502         * argp/argp.h [!__THROW]: Define if undefined.
3503
3504 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
3505
3506         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
3507         more than four parameters.
3508         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
3509
3510 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
3511
3512         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
3513         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
3514         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
3515
3516         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
3517
3518 2003-06-12  Roland McGrath  <roland@redhat.com>
3519
3520         * Makerules ($(objpfx)stubs): Rewrite sed magic.
3521
3522 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
3523
3524         * posix/regcomp.c (parse_expression): Deliver translation to
3525         build_word_op, and build_charclass.
3526         (build_charclass): Apply translation for character classes too.
3527         (build_word_op): Deliver translation to build_charclass.
3528         * posix/transbug.c: New file.
3529         * posix/Makefile (tests): Add transbug.
3530
3531 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
3532
3533         * posix/regexec.c (group_nodes_into_DFAstates): Check for
3534         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
3535         'continue' before the others.
3536
3537 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
3538
3539         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
3540         function [PR libc/5045].
3541
3542         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
3543         also for P4.
3544
3545         * time/tzfile.c: Add a couple of __builtin_expect.
3546
3547         Remove warnings gcc 3.3 shows.
3548         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
3549         * elf/dl-load.c (fillin_rpath): Likewise.
3550         (add_path): Likewise.
3551         * elf/dl-version.c (find_needed): Always inline.
3552         * elf/do-lookup.c (FCT): Don't inline.
3553         * iconv/Makefile: Extend vpath to intl subdir.
3554         (iconvconfig-modules): Add hash-string.
3555         * iconv/gconv_charset.h (strip): Don't inline.
3556         (upstr): Always inline.
3557         Move __gconv_compare_alias prototype to...
3558         * iconv/gconv_int.h: ...here.
3559         * iconv/gconv_db.c: Don't include gconv_charset.h.
3560         * iconv/gconv_conf.c (add_alias): Don't inline.
3561         (insert_module): Likewise.
3562         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
3563         (internal_ucs4_loop_unaligned): Likewise.
3564         (internal_ucs4_loop_single): Likewise.
3565         (ucs4_internal_loop): Likewise.
3566         (ucs4_internal_loop_unaligned): Likewise.
3567         (ucs4_internal_loop_single): Likewise.
3568         (internal_ucs4le_loop): Always inline.
3569         (internal_ucs4le_loop_unaligned): Likewise.
3570         (internal_ucs4le_loop_single): Likewise.
3571         (ucs4le_internal_loop): Likewise.
3572         (ucs4le_internal_loop_unaligned): Likewise.
3573         (ucs4le_internal_loop_single): Likewise.
3574         * iconv/loop.c: Always inline the defined functions.
3575         * iconvdata/cns11642.h: Likewise.
3576         * iconvdata/cns11642l1.h: Likewise.
3577         * iconvdata/euc-kr.c: Likewise.
3578         * iconvdata/gb2312.h: Likewise.
3579         * iconvdata/jis0201.h: Likewise.
3580         * iconvdata/jis0208.h: Likewise.
3581         * iconvdata/jis0212.h: Likewise.
3582         * iconvdata/jisx0213.h: Likewise.
3583         * iconvdata/ksc5601.h: Likewise.
3584         * iconvdata/utf-7.c (base64): Don't inline.
3585         * include/libc-symbols.h (symbol_set_first_element): Add cast
3586         (symbol_set_end_p): Likewise.
3587         * include/set-hooks (RUN_HOOK): Likewise.
3588         * inet/Makefile (aux): Add ifreq.
3589         * intl/Makefile (aux): Add some entries from routines.  Add
3590         hash-string.
3591         * intl/hash-string.c: New file.
3592         * intl/hash-string.h: Remove hash_string definition.  Declare
3593         __hash_string.
3594         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
3595         * iconv/iconvconfig.c (new_name): Likewise.
3596         * intl/dcigettext.c (_nl_find_msg): Likewise.
3597         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
3598         * io/ftw.c (open_dir_stream): Always inline.
3599         (process_entry): Don't inline.
3600         * locale/findlocale.c: Include gconv_int.h.
3601         * locale/setlocale.c (new_composite_name): Don't inline.
3602         * locale/weight.h (findidx): Always inline.
3603         * locale/weightwc.h (findidx): Likewise.
3604         * locale/programs/linereader.c (lr_ignore_rest): Define here.
3605         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
3606         just declare it.
3607         (lr_getc): Always inline.
3608         (lr_ungetc): Likewise.
3609         * nss/nss_files/files-parse.c (parse_list): Likewise.
3610         * stdio-common/Makefile (aux): Add printf-parsemb and
3611         printf-parsewc.
3612         * stdio-common/_itoa.h (_itoa_word): Always inline.
3613         (_fitoa_word, _fitoa): Don't define here, only declare.
3614         * stdio-common/_itoa.c (_iftoa_word): Add here.
3615         (_fitoa): Likewise.
3616         * stdio-common/_itowa.h (_itowa_word): Always inline.
3617         * stdio-common/printf-parse.h (read_int): Don't inline.
3618         (find_spec): Don't define.
3619         Declare __find_specmb and __find_specwc.
3620         (parse_one_spec): Don't define.
3621         Declare __parse_one_specmb and __parse_one_specwc.
3622         * stdio-common/printf-parsemb.c: New file.
3623         * stdio-common/printf-parsewc.c: New file.
3624         * stdio-common/vfprintf.c: Update calls to find_spec and
3625         parse_one_spec for new names.
3626         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
3627         * stdlib/Makefile (aux): Add grouping and groupingwc.
3628         * stdlib/grouping.c: New file.
3629         * stdlib/groupingwc.c: New file.
3630         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
3631         Just prototype.
3632         * stdlib/rpmatch.c (try): Don't inline.
3633         * stdlib/strtod.c (round_and_return): Don't line.
3634         (str_to_mpn): Likewise.
3635         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
3636         Adjust for name change of correctly_grouped_prefix.
3637         * sysdeps/generic/strtol.c: Adjust for name change of
3638         correctly_grouped_prefix.
3639         * string/strxfrm.c (utf8_encode): Don't inline.
3640         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
3641         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
3642         * sysdeps/generic/ifreq.c: New file.
3643         * sysdeps/unix/sysv/linux/ifreq.c: New file.
3644         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
3645         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
3646         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
3647         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
3648         (fde_split): Likewise.
3649         (fde_merge): Likewise.
3650         (end_fde_sort): Likewise.
3651         (init_object): Likewise.
3652         (binary_search_unencoded_fdes): Likewise.
3653         (binary_search_single_encoding_fdes): Likewise.
3654         (binary_search_mixed_encoding_fdes): Likewise.
3655         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
3656         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
3657         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
3658         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3659         Add xstatconv.
3660         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
3661         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
3662         Export them.  Prepend __ to name.
3663         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
3664         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
3665         conversion functions.
3666         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3667         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3668         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3669         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
3670         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3671         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3672         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3673         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3674         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
3675         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
3676         to name.  Change callers.
3677         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
3678         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
3679         declare.
3680         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
3681         * time/tzfile.c (decode): Always inline.
3682         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
3683         Remove cast in tomb function call.
3684         * wcsmbs/wcsrtombs.c Likewise.
3685         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
3686         tomb function call.
3687
3688 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
3689
3690         * po/zh_CN.po: Update from translation team.
3691
3692 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
3693
3694         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
3695         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
3696
3697 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
3698
3699         * inet/Makefile (aux): Add check_pf.
3700         * include/ifaddrs.h: Add prototype for __check_pf.
3701         * sysdeps/generic/check_pf.c: New file.
3702         * sysdeps/unix/sysv/linux/check_pf.c: New file.
3703         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
3704         from no_netlink_support.  Export.
3705         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
3706         call __check_pf.
3707
3708         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
3709
3710         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
3711         from getifaddr calls.
3712
3713 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
3714
3715         * sysdeps/unix/sysv/linux/kernel-features.h
3716         (__ASSUME_SETRESGID_SYSCALL): Define.
3717         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
3718         instead of __ASSUME_SETRESUID_SYSCALL.
3719         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
3720         defined.
3721         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
3722         inline syscall if __NR_setresuid32 is defined.
3723         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
3724         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
3725         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
3726         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3727         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
3728         code handling non-existant setresgid32 syscall with
3729         #if __ASSUME_SETRESGID_SYSCALL == 0.
3730
3731 2003-06-09  Andreas Schwab  <schwab@suse.de>
3732
3733         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
3734         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
3735         $(objpfx)rpc-proto.d.
3736         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
3737         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
3738         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
3739
3740 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
3741
3742         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
3743         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
3744         defined drop compatibility code.
3745         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
3746         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
3747         defined drop compatibility code.
3748         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
3749         setresuid32 syscall directly if possible.
3750         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
3751         setresgid32 syscall directly if possible.
3752         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
3753         compliant.  Don't change sgid.
3754         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
3755         compliant.  Don't change suid.
3756
3757         * config.h.in: Add have-forced-unwind.
3758         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
3759
3760 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
3761
3762         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
3763         returned status from child matches.
3764
3765         * Makeconfig (gnulib): Add -lgcc_eh once again.
3766
3767 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
3768
3769         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
3770
3771         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
3772         %edx for first parameter.  This means no pushl and therefore the
3773         unwind info isn't screwed up.
3774
3775 2003-06-04  Richard Henderson  <rth@redhat.com>
3776
3777         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
3778         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
3779         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
3780         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
3781         entry sequence and explicit relocs.  Add unwind info for sigreturn
3782         and rt_sigreturn.
3783         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
3784
3785         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
3786         Annotate some parameters.
3787         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
3788
3789         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
3790
3791         * include/libc-symbols.h (symbol_set_declare): Use arrays
3792         of unspecified size.
3793
3794 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
3795
3796         * config.make.in (ASFLAGS-config): New.
3797         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
3798         * configure.in (libc_cv_as_noexecstack): New check.
3799         (ASFLAGS_config): Substitute.
3800
3801 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
3802
3803         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
3804         hypot, logb): Protect with #ifdef __FAST_MATH__.
3805
3806 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
3807
3808         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
3809         #ifdef __FAST_MATH__.
3810
3811 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
3812
3813         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
3814         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
3815         * posix/globtest.sh: Adjust for this change.
3816
3817         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
3818         to get the actual PID value used in the records passed up.
3819         (getifaddrs): Don't initialize nh.pid here.
3820
3821 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
3822
3823         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
3824         optimization.
3825
3826         * po/zh_CN.po: Update from translation team.
3827
3828         * posix/getconf.c (main): Also recognize names without the
3829         _POSIX_ prefix.
3830
3831         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
3832
3833 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
3834
3835         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
3836         ldexpf, ldexpl): Only define if __FAST_MATH__.
3837
3838 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
3839
3840         Replace hard-coded offsets into struct sigcontext with generated file.
3841         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
3842         * sysdeps/unix/sysv/linux/ia64/Makefile
3843         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
3844         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
3845         defining SC_* macros here.
3846
3847 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
3848
3849         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
3850
3851 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
3852
3853         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
3854
3855 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
3856
3857         * test-skeleton.c (main): Request getopt to not reorder the
3858         command line.
3859
3860         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
3861
3862         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
3863         stpncpy.
3864
3865 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
3866
3867         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
3868
3869 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
3870
3871         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
3872         New function.
3873         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
3874         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
3875         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
3876
3877 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
3878
3879         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
3880         CFI directives.
3881
3882         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
3883
3884         * libio/fileops.c (_IO_file_open): Don't mark as inline.
3885
3886         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
3887         attribute used.
3888
3889 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
3890
3891         * scripts/config.guess: Update from master copy.
3892         * scripts/config.sub: Likewise.
3893
3894 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
3895
3896         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
3897         SETUP_GP64 and friends.
3898         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
3899         names in internal_syscall{6,7}.
3900         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3901         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
3902         number of syscall arguments.
3903         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3904         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3905         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3906
3907 2003-05-30  Andreas Jaeger  <aj@suse.de>
3908
3909         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3910         Add CFI directives.
3911
3912         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
3913         directives.
3914
3915         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
3916
3917         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3918         Add CFI directives.
3919
3920 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
3921
3922         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
3923         SHARED.
3924
3925 2003-05-11  Andreas Schwab  <schwab@suse.de>
3926
3927         * Makerules: Always use -MP together with -MD.
3928         (sed-remove-dotot): Substitute $(..) also at start of line.
3929         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
3930         Generated defines with a single compiler call.
3931         Use $(sed-remove-dotdot).
3932         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
3933         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
3934         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3935         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
3936         * sysdeps/unix/sysv/linux/mips/Makefile
3937         ($(objpfx)syscall-%.h): Likewise.
3938
3939 2003-05-28  Roland McGrath  <roland@redhat.com>
3940
3941         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
3942
3943 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
3944
3945         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
3946
3947 2003-05-28  Roland McGrath  <roland@redhat.com>
3948
3949         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
3950         rt_sigprocmask system call.
3951         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
3952         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
3953
3954 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
3955
3956         * include/libc-symbols.h: Define hidden attribute for real also if
3957         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
3958
3959         * csu/Makefile: Add rules to build Scrt1.o.
3960         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
3961         * sysdeps/x86_64/elf/start.S: Likewise.
3962
3963 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
3964
3965         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
3966         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
3967         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
3968         pa_short_int, pa_u_short_int and pa_float.
3969
3970 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
3971
3972         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
3973         _IO_str_init_static_internal.
3974         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
3975         change size argument to _IO_size_t, don't limit sprintf to 64M.
3976         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
3977         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
3978         _IO_size_t, don't limit swprintf to 256M.
3979         (_IO_wstr_init_readonly): Remove.
3980         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
3981         Adjust prototypes.
3982         (_IO_wstr_init_readonly): Remove prototype.
3983         * libio/iovsprintf.c (_IO_vsprintf): Use
3984         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
3985         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
3986         * libio/memstream.c (open_memstream): Likewise.
3987         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
3988         * libio/vasprintf.c (_IO_vasprintf): Likewise.
3989         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3990         * stdio-common/tst-sprintf.c (main): Add new test.
3991
3992 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
3993
3994         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
3995         other implementation in respect of multiple uses of parameter with
3996         different types.
3997
3998 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
3999
4000         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4001         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
4002
4003 2003-05-22  Andreas Jaeger  <aj@suse.de>
4004
4005         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
4006         directives.
4007         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4008         * sysdeps/x86_64/strtok.S: Likewise.
4009
4010 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
4011
4012         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
4013         to -60 and define SI_TKILL.
4014
4015 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4016
4017         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
4018         (feexcp_mask_test): Likewise.
4019
4020 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
4021
4022         * locale/programs/locale.c (main): Fix typo in last patch.
4023
4024         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
4025         __init_array_start, __init_array_end, __fini_array_start, and
4026         __fini_array_end as hidden.
4027
4028 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
4029
4030         * locale/programs/locale.c (main): Report an error if setlocale()
4031         fails [PR libc/2254].
4032
4033 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
4034
4035         * sysdeps/unix/sysv/linux/s390/system.c: New file.
4036
4037 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
4038
4039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
4040         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
4041         LOADARGS_6): Don't error if syscall argument is a string literal.
4042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
4043         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
4044         LOADARGS_6): Likewise.
4045
4046 2003-05-21  Andreas Jaeger  <aj@suse.de>
4047
4048         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
4049         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
4050         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
4051
4052         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
4053         (ENTRY): Likewise.
4054         (END): Likewise.
4055
4056         * configure.in: Test for asm cfi directives.
4057
4058         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
4059
4060 2003-05-17  Andreas Jaeger  <aj@suse.de>
4061
4062         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
4063
4064         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
4065
4066 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
4067
4068         * rt/Makefile (tests): Add tst-clock_nanosleep.
4069         * rt/tst-clock_nanosleep.c: New file.
4070         * posix/Makefile (tests): Add tst-nanosleep.
4071         * posix/tst-nanosleep.c: New file.
4072
4073         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
4074
4075         * include/features.h (__USE_XOPEN2K): Define also for
4076         _POSIX_C_SOURCE>=200112L.
4077
4078         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
4079         SI_TKILL code into SI_USER.
4080         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
4081
4082         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
4083
4084 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
4085
4086         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
4087         Remove sym argument, always use refsym.
4088         (__process_machine_rela): Adjust callers.
4089         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
4090         Likewise.
4091         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
4092         Adjust prototype.
4093         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4094
4095 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
4096
4097         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
4098         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
4099         print numeric values.
4100
4101 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
4102
4103         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
4104
4105 2003-05-14  Andreas Schwab  <schwab@suse.de>
4106
4107         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
4108
4109 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
4110
4111         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
4112         even if no DT_NEEDED is present.
4113
4114 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
4115
4116         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
4117         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
4118         __sigjmp_save) so we can't keep the saved unat value in a scratch
4119         register (r16).  Use loc2 instead.
4120
4121 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
4122
4123         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
4124         binaries it has to be relocatable.
4125
4126         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
4127
4128 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
4129
4130         * sysdeps/powerpc/bits/atomic.h
4131         (__arch_compare_and_exchange_bool_8_rel): Define.
4132         (__arch_compare_and_exchange_bool_16_rel): Define.
4133         (__ARCH_REL_INSTR): Define if not already defined.
4134         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
4135         (__arch_atomic_decrement_if_positive_32):
4136         Add "memory" to clobber list.
4137         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
4138         (__arch_compare_and_exchange_val_32_rel): Define.
4139         (__arch_atomic_exchange_32): Remove.
4140         (__arch_atomic_exchange_32_acq): Define.
4141         (__arch_atomic_exchange_32_rel): Define.
4142         (atomic_compare_and_exchange_val_rel): Define.
4143         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
4144         (atomic_exchange_rel): Define.
4145         * sysdeps/powerpc/powerpc32/bits/atomic.h
4146         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
4147         (__arch_compare_and_exchange_bool_32_rel): Define.
4148         (__arch_compare_and_exchange_bool_64_rel): Define.
4149         (__arch_compare_and_exchange_val_64_rel): Define.
4150         (__arch_atomic_exchange_64): Remove.
4151         (__arch_atomic_exchange_64_acq): Define.
4152         (__arch_atomic_exchange_64_rel): Define.
4153         * sysdeps/powerpc/powerpc64/bits/atomic.h
4154         (__arch_compare_and_exchange_bool_32_rel): Define.
4155         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
4156         (__arch_compare_and_exchange_bool_64_rel): Define.
4157         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
4158         (__arch_compare_and_exchange_val_64_rel): Define.
4159         (__arch_atomic_exchange_64): Remove.
4160         (__arch_atomic_exchange_64_acq): Define.
4161         (__arch_atomic_exchange_64_rel): Define.
4162         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
4163         (__arch_atomic_decrement_if_positive_64):
4164         Add "memory" to clobber list.
4165         [!UP](__ARCH_REL_INSTR): Define as lwsync.
4166
4167 2003-05-11  Andreas Schwab  <schwab@suse.de>
4168
4169         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
4170
4171 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
4172
4173         * time/tst-strftime.c (do_test): Add tests for - flag.
4174
4175 2003-05-11  Jim Meyering  <jim@meyering.net>
4176
4177         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
4178         the space-padded-by-default conversion specifiers, %e, %k, %l.
4179
4180 2003-05-11  Andreas Schwab  <schwab@suse.de>
4181
4182         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
4183
4184 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
4185
4186         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
4187         already defined and when really needed.
4188         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4189
4190 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
4191
4192         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
4193         headers, add defines from kernel header, move it from here...
4194         * inet/netinet/igmp.h: ... to here.
4195         * inet/Makefile (headers): Add netinet/igmp.h.
4196         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
4197         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
4198
4199 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
4200
4201         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
4202         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
4203
4204 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
4205
4206         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
4207         (remove __THROW from possible cancellation points).
4208
4209 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
4210
4211         * posix/sched.h (CPU_SETSIZE): Define.
4212
4213 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
4214
4215         * Makeconfig (gnulib): Remove -lgcc_eh again.
4216
4217         * posix/sched.h: Change prototypes of sched_getaffinity and
4218         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
4219         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
4220         * sysdeps/generic/sched_setaffinity.c: Likewise.
4221         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
4222         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
4223         __CPU_CLR, and __CPU_ISSET.
4224         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4225         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
4226         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
4227
4228         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
4229         (atomic_exchange_rel): New #define.
4230         * sysdeps/ia64/bits/atomic.h: Likewise.
4231         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
4232         atomic_exchange.
4233         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
4234         * sysdeps/powerpc/bits/atomic.h: Likewise.
4235         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
4236         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
4237         * sysdeps/x86_64/bits/atomic.h: Likewise.
4238         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
4239
4240         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
4241
4242 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
4243
4244         * malloc/thread-m.h: Remove special handling of thread_atfork if
4245         HAVE_register_atfork_malloc is defined.
4246
4247 2003-05-07  Andreas Jaeger  <aj@suse.de>
4248
4249         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
4250         information.
4251
4252 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
4253
4254         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
4255         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
4256         * libio/libioP.h: Declare _IO_old_init.
4257         * libio/genops.c (_IO_no_init): Split in two.  New function
4258         _IO_old_init.
4259
4260 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
4261
4262         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
4263         variable.
4264         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
4265         is nonzero.
4266         * include/unistd.h: Declare __libc_enable_secure_decided.
4267         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
4268         and AT_EGID.  If all found, set __libc_enable_secure and
4269         __libc_enable_secure_decided.
4270
4271         * sysdeps/generic/libc-start.c [!SHARED]: Call
4272         __libc_check_standard_fds after __libc_init_first.
4273
4274 2003-05-05  Roland McGrath  <roland@redhat.com>
4275
4276         * Makerules (common-before-compile): New variable.
4277         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
4278         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
4279         to after all setting of before-compile.
4280
4281 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
4282
4283         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
4284         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
4285         * sysdeps/powerpc/powerpc32/bits/atomic.h
4286         (__arch_compare_and_exchange_val_64_acq): Likewise.
4287         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4288         (__arch_compare_and_exchange_val_8_acq,
4289         __arch_compare_and_exchange_val_16_acq,
4290         __arch_compare_and_exchange_val_64_acq): Likewise.
4291         * sysdeps/sparc/sparc64/bits/atomic.h
4292         (__arch_compare_and_exchange_val_8_acq,
4293         __arch_compare_and_exchange_val_16_acq): Likewise.
4294         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
4295         __arch_compare_and_exchange_val_16_acq,
4296         __arch_compare_and_exchange_val_64_acq): Likewise.
4297         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4298         (__arch_compare_and_exchange_val_64_acq): Likewise.
4299         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
4300         up warning.
4301         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
4302
4303         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4304         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
4305         Return long instead of int.
4306         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
4307         0xfffff001u with -4095UL.
4308
4309 2003-05-05  Andreas Jaeger  <aj@suse.de>
4310
4311         * sysdeps/x86_64/fpu_control.h: New from i386.
4312
4313         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
4314         Define if not defined.
4315
4316         * sunrpc/Makefile (generated-dirs): New variable.
4317         * resolv/Makefile (generated): New variable.
4318
4319 2003-05-04  Roland McGrath  <roland@redhat.com>
4320
4321         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
4322         Depend on $(before-compile).
4323
4324         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
4325         pattern rule.  The implicit rule could be ruled out when $(objpfx)
4326         didn't exist at the time of its consideration (ugh!).
4327
4328         * Makerules (+make-deps): Fix target matching.
4329         Use $(sed-remove-dotdot).
4330
4331 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
4332
4333         * nscd/nscd.c (main): Parse config file right after parsing
4334         parameters.  Then, if get_stats is true, call receive_print_stats.
4335         Drop parameter from nscd_init call.
4336         (get_stats): New variable.
4337         (parse_opt): Set get_stats, don't call receive_print_stats here.
4338         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
4339         prototype.
4340         * nscd/connections.c (stat_user, stat_uid): New variables.
4341         (dbs): Make global.
4342         (nscd_init): Don't read configuration file here.  Drop parameter.
4343         (handle_request): Cleanup handling of non-database lookup requests.
4344         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
4345         Get UID of the specified user.  Use xstrdup instead of strdup.
4346         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
4347         check stat_user.
4348         * nscd/Makefile (nscd-modules): Add xstrdup.
4349         * nscd/nscd.conf: Document stat-user entry.
4350
4351 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
4352
4353         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
4354         if not defined.
4355
4356 2003-04-22  Roland McGrath  <roland@redhat.com>
4357
4358         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
4359         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4360         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
4361         * elf/dl-support.c: Update defn.
4362         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
4363         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
4364         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
4365         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
4366         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
4367         set, set up a link_map for the preloaded, prelinked object.
4368
4369 2003-05-03  Roland McGrath  <roland@redhat.com>
4370
4371         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
4372         * stdio-common/Makefile: ... not here.
4373
4374         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
4375         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
4376
4377 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
4378
4379         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
4380
4381         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
4382
4383         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
4384         comparing ftab elements.
4385         (_dl_unmap): Fix typo in test.
4386         (_dl_make_fptr): Fix typos introduced in last change.
4387
4388         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
4389         original patch.  Use non-exported symbols.  Mark translatable
4390         strings.  Pretty printing.
4391
4392 2003-05-02  Roland McGrath  <roland@redhat.com>
4393
4394         * Makerules (do-stamp): Do $(make-target-directory).
4395
4396 2003-04-07  H.J. Lu  <hjl@gnu.org>
4397
4398         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
4399
4400 2003-04-03  H.J. Lu  <hjl@gnu.org>
4401
4402         * sysdeps/ia64/dl-fptr.c: Moved to ...
4403         * sysdeps/generic/dl-fptr.c: Here.
4404
4405         * sysdeps/generic/dl-fptr.h: New.
4406         * sysdeps/ia64/dl-fptr.h: New.
4407
4408         * sysdeps/ia64/dl-symaddr.c: Moved to ...
4409         * sysdeps/generic/dl-symaddr.c: here.
4410
4411         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
4412         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
4413         (ia64_fdesc): Likewise.
4414         (ia64_fdesc_table): Likewise.
4415         (__ia64_make_fptr): Likewise.
4416         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
4417         with _dl_boot_fptr_table.
4418         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
4419         `struct fdesc'.
4420         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
4421
4422 2003-05-01  Roland McGrath  <roland@redhat.com>
4423
4424         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
4425         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4426
4427         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
4428         Use $(make-target-directory).
4429         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4430
4431         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
4432         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
4433         (compile-command.s, compile-command.c): Likewise.
4434         ($(objpfx)%.d): All such pattern rules removed.
4435         ($(+sysdir_pfx)sysd-rules): Don't generate them.
4436         ($(common-objpfx)dummy.d): Target removed.
4437         (make-dummy-dep): Variable removed.
4438         (generate-md5): Likewise.
4439         (%.d: %.dt): New pattern rule.
4440         (+depfiles): Use $(wildcard) function to get just existing *.d files
4441         and .d files for existing *.dt files.
4442         (common-clean): Remove all *.d and *.dt files.
4443         (before-compile): Add $(objpfx). when it doesn't exist,
4444         regardless of $(no_deps).
4445         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
4446         (rtld-depfiles): Use .os.d instead of .d names.
4447         Include existing *.d files and .d files for existing *.dt files.
4448
4449         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
4450         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
4451
4452         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
4453         Do s-*.d includes only if we have some syscall routines in this subdir.
4454
4455         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
4456         @nobits.  The former is accepted by gas on any ELF platform.
4457
4458 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
4459
4460         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
4461
4462         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
4463
4464 2003-04-29  Andreas Schwab  <schwab@suse.de>
4465
4466         * string/test-strcat.c (do_one_test): Fix attribute name.
4467
4468 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
4469
4470         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
4471         uc_flags long for all ABIs.
4472
4473 2003-04-30  Andreas Jaeger  <aj@suse.de>
4474
4475         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
4476         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
4477         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
4478         Add bi-arch support.
4479
4480 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
4481
4482         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
4483         (__posix_memalign): Use __memalign_internal instead of memalign.
4484
4485 2003-04-29  Roland McGrath  <roland@redhat.com>
4486
4487         * configure.in: Search for AUTOCONF unconditionally.
4488         Just don't complain about missing it under --without-cvs.
4489
4490         * include/libc-symbols.h (__symbol_set_attribute): New macro,
4491         give hidden for [SHARED] and weak for [! SHARED].
4492         (symbol_set_declare): Use that.  Never need weak_extern these days.
4493         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
4494         Depend on $(..)Makerules.
4495
4496 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
4497
4498         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
4499         variants of socket, bind, recvmsg, and sendto.
4500
4501         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
4502
4503         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
4504         * signal/sigaddset.c: Add libc_hidden_def.
4505         * signal/sigdelset.c: Likewise.
4506
4507 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
4508
4509         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
4510         to the end of the file.
4511
4512         * configure.in: Change __oline__ to $LINENO.
4513         (HAVE_BUILTIN_REDIRECTION): New check.
4514         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
4515         * include/libc-symbols.h (libc_hidden_builtin_proto,
4516         libc_hidden_builtin_def, libc_hidden_builtin_weak,
4517         libc_hidden_builtin_ver): Define.
4518         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
4519         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
4520         strspn, strstr): Add libc_hidden_builtin_proto.
4521         * intl/plural.y: Include string.h.
4522         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
4523         libc_hidden_builtin_def.
4524         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
4525         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
4526         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
4527         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
4528         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
4529         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
4530         * sysdeps/alpha/memchr.S (memchr): Likewise.
4531         * sysdeps/alpha/memset.S (memset): Likewise.
4532         * sysdeps/alpha/strcat.S (strcat): Likewise.
4533         * sysdeps/alpha/strchr.S (strchr): Likewise.
4534         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
4535         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
4536         * sysdeps/alpha/strlen.S (strlen): Likewise.
4537         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
4538         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
4539         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
4540         * sysdeps/arm/memset.S (memset): Likewise.
4541         * sysdeps/arm/strlen.S (strlen): Likewise.
4542         * sysdeps/generic/memchr.c (memchr): Likewise.
4543         * sysdeps/generic/memcpy.c (memcpy): Likewise.
4544         * sysdeps/generic/memmove.c (memmove): Likewise.
4545         * sysdeps/generic/memset.c (memset): Likewise.
4546         * sysdeps/generic/strcat.c (strcat): Likewise.
4547         * sysdeps/generic/strchr.c (strchr): Likewise.
4548         * sysdeps/generic/strcmp.c (strcmp): Likewise.
4549         * sysdeps/generic/strcpy.c (strcpy): Likewise.
4550         * sysdeps/generic/strcspn.c (strcspn): Likewise.
4551         * sysdeps/generic/strlen.c (strlen): Likewise.
4552         * sysdeps/generic/strncmp.c (strncmp): Likewise.
4553         * sysdeps/generic/strncpy.c (strncpy): Likewise.
4554         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
4555         * sysdeps/generic/strrchr.c (strrchr): Likewise.
4556         * sysdeps/generic/strspn.c (strspn): Likewise.
4557         * sysdeps/generic/strstr.c (strstr): Likewise.
4558         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
4559         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
4560         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
4561         * sysdeps/i386/i586/memset.S (memset): Likewise.
4562         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
4563         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
4564         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
4565         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
4566         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
4567         * sysdeps/i386/i686/memset.S (memset): Likewise.
4568         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
4569         * sysdeps/i386/memchr.S (memchr): Likewise.
4570         * sysdeps/i386/memset.c (memset): Likewise.
4571         * sysdeps/i386/strchr.S (strchr): Likewise.
4572         * sysdeps/i386/strcspn.S (strcspn): Likewise.
4573         * sysdeps/i386/strlen.c (strlen): Likewise.
4574         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4575         * sysdeps/i386/strrchr.S (strrchr): Likewise.
4576         * sysdeps/i386/strspn.S (strspn): Likewise.
4577         * sysdeps/ia64/memchr.S (memchr): Likewise.
4578         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
4579         * sysdeps/ia64/memmove.S (memmove): Likewise.
4580         * sysdeps/ia64/memset.S (memset): Likewise.
4581         * sysdeps/ia64/strcat.S (strcat): Likewise.
4582         * sysdeps/ia64/strchr.S (strchr): Likewise.
4583         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
4584         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
4585         * sysdeps/ia64/strlen.S (strlen): Likewise.
4586         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
4587         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
4588         * sysdeps/m68k/memchr.S (memchr): Likewise.
4589         * sysdeps/m68k/strchr.S (strchr): Likewise.
4590         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
4591         * sysdeps/mips/mips64/memset.S (memset): Likewise.
4592         * sysdeps/mips/memcpy.S (memcpy): Likewise.
4593         * sysdeps/mips/memset.S (memset): Likewise.
4594         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
4595         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
4596         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
4597         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
4598         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
4599         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
4600         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
4601         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
4602         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
4603         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
4604         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
4605         * sysdeps/powerpc/strcat.c (strcat): Likewise.
4606         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
4607         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
4608         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
4609         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
4610         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
4611         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
4612         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
4613         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
4614         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
4615         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
4616         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
4617         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
4618         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
4619         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
4620         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
4621         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
4622         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
4623         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
4624         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
4625         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
4626         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
4627         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
4628         * sysdeps/sh/memcpy.S (memcpy): Likewise.
4629         * sysdeps/sh/memset.S (memset): Likewise.
4630         * sysdeps/sh/strlen.S (strlen): Likewise.
4631         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
4632         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
4633         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
4634         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
4635         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
4636         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
4637         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
4638         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
4639         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
4640         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
4641         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
4642         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
4643         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
4644         * sysdeps/x86_64/memset.S (memset): Likewise.
4645         * sysdeps/x86_64/strcat.S (strcat): Likewise.
4646         * sysdeps/x86_64/strchr.S (strchr): Likewise.
4647         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
4648         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
4649         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
4650         * sysdeps/x86_64/strlen.S (strlen): Likewise.
4651         * sysdeps/x86_64/strspn.S (strspn): Likewise.
4652         * string/string-inlines.c: Move...
4653         * sysdeps/generic/string-inlines.c: ...here.
4654         (__memcpy_g, __strchr_g): Remove.
4655         (__NO_INLINE__): Define before including <string.h>,
4656         undefine after.  Include bits/string.h and bits/string2.h.
4657         * sysdeps/i386/i486/string-inlines.c: New file.
4658         * sysdeps/i386/string-inlines.c: New file.
4659         * sysdeps/i386/i486/Versions: Remove.
4660         All GLIBC_2.1.1 symbols moved...
4661         * sysdeps/i386/Versions (libc): ...here.
4662
4663 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
4664
4665         * sysdeps/i386/fpu/Makefile: New file.
4666         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
4667         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4668         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4669         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
4670         [PR libc/4987].
4671
4672 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
4673
4674         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
4675         * nscd/nscd_getpw_r.c: Likewise.
4676         * nscd/nscd_gethst_r.c: Likewise.
4677
4678 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
4679
4680         * nscd/pwdcache.c: Initialize .version element in result.
4681         * nscd/grpcache.c: Likewise.
4682         * nscd/pwdcache.c: Likewise.
4683
4684 2003-04-27  Andreas Schwab  <schwab@suse.de>
4685
4686         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
4687         subdirectory.
4688
4689 2003-04-27  Andreas Schwab  <schwab@suse.de>
4690
4691         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
4692
4693 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
4694
4695         * nscd/connections.c (client_queued): New variable.
4696         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
4697         threads.  Keep track of the number of delays caused because of busy
4698         worker threads.
4699         * nscd/nscd.h: Declare client_queued.
4700         * nscd/nscd_stat.c: Transmit and print client_queued information.
4701
4702         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
4703
4704         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
4705         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
4706
4707 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
4708
4709         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
4710         tracking of freed memory in static TLS block.
4711         * elf/Makefile: Add rules to build and run tst-tls13.
4712         * elf/tst-tls13.c: New file.
4713         * elf/tst-tlsmod13.c: New file.
4714         * elf/tst-tlsmod13a.c: New file.
4715
4716         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
4717
4718         * elf/dl-reloc.c: Pretty printing.
4719
4720 2003-04-26  Roland McGrath  <roland@redhat.com>
4721
4722         * Makerules ($(common-objpfx)shlib.lds): New target.
4723         (common-generated): Add it.
4724         (build-shlib, build-module): Use that instead of generating every time.
4725         ($(common-objpfx)libc.so): Depend on it.
4726         (lib%.so rule): Likewise.
4727         (build-module-helper-objlist): Remove %.lds.
4728         (LDSEDCMD-c.so): Variable removed.
4729         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
4730         Depend on $(common-objpfx)shlib.lds.
4731         * dlfcn/Makefile ($(test-modules)): Likewise.
4732
4733 2003-04-26  Roland McGrath  <roland@frob.com>
4734
4735         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
4736
4737 2003-04-26  Andreas Schwab  <schwab@suse.de>
4738
4739         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
4740
4741 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
4742
4743         * nscd/cache.c (cache_search): Keep track of how many chain links
4744         we searched and update table statistics.
4745         (cache_add): Keep track of how many values are in the table.
4746         (prune_cache): Likewise.  Keep track of locking success.
4747         Print messages about removed entries in separate pass.
4748         * nscd/connections.c (handle_request): Don't print debug message here.
4749         The caller will do it.  Keep track of locking success.
4750         (nscd_run): Print debug message.  Also print PID of the client process.
4751         * nscd/nscd.c (start_time): New variable.
4752         (main): Remember start time.
4753         * nscd/nscd.h: Declare start_time.
4754         (struct database): Add more members for new statistics.
4755         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
4756         of new statistics.
4757
4758         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
4759
4760 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
4761
4762         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
4763         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
4764         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
4765         NO_TLS_OFFSET.
4766         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
4767         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
4768         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
4769         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
4770         TLS_TCB_SIZE.
4771
4772 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
4773
4774         * nss/getent.c: Implement alternative host database lookup via
4775         getaddrinfo.
4776
4777         * include/ifaddrs.h: New file.
4778         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
4779         AI_ADDRCONFIG...
4780         * resolv/netdb.h: ...here.
4781         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
4782         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4783         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
4784         AI_ADDRCONFIG.
4785
4786 2003-04-24  Roland McGrath  <roland@redhat.com>
4787
4788         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
4789
4790 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
4791
4792         * elf/dl-reloc.c (allocate_static_tls): Rename to...
4793         (_dl_allocate_static_tls): ... this function.  No longer static.
4794         (CHECK_STATIC_TLS): Adjust.
4795         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
4796         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
4797         Add SYM_MAP argument.
4798         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
4799         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
4800         TLS relocs here.  #ifdef out relocs which never appear in
4801         .gnu.conflict section from dl-conflict.c processing.
4802         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4803         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
4804
4805         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
4806         out relocs which never appear in .gnu.conflict section from
4807         dl-conflict.c processing.
4808         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4809         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4810         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
4811         Use r_type in RESOLVE macro.
4812
4813 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
4814
4815         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
4816         NULL.  Remove code made redundant by this assumption.
4817         (__yp_unbind): Add call to free.  Adjust all callers.
4818
4819         * nis/ypclnt.c (yp_all): Free the dom_binding object after
4820         unbinding it.
4821
4822         * grp/initgroups.c (getgrouplist): Don't copy too much into the
4823         user buffer if more groups are found than fit into it.
4824
4825         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
4826         extend_alloca.
4827
4828 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
4829
4830         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
4831         not rc == errno.  Use extend_alloca.
4832
4833         * elf/tst-tls12.c (main): Fix declaration.
4834         * elf/tst-tls10.c (dummy): Make hidden instead of static.
4835         * elf/tst-tlsmod7.c (dummy): Likewise.
4836         * elf/tst-tlsmod8.c (dummy): Likewise.
4837         * elf/tst-tlsmod9.c (dummy): Likewise.
4838
4839 2003-04-22  Roland McGrath  <roland@redhat.com>
4840
4841         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
4842         (open_not_cancel): Make last argument non-optional.
4843         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
4844         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
4845         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4846
4847         * include/tls.h: Protect against multiple inclusion.
4848
4849 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
4850
4851         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
4852         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
4853         open_socket.  Not static anymore.
4854         (nscd_gethst_r): Use __nscd_open_socket.
4855         * nscd/nscd_getgr_r.c (open_socket): Removed.
4856         (nscd_getgr_r): Use __nscd_open_socket.
4857         * nscd/nscd_getpw_r.c (open_socket): Removed.
4858         (nscd_getpw_r): Use __nscd_open_socket.
4859
4860         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
4861         * nscd/connections.c (handle_request): Add cast to avoid warning.
4862
4863 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
4864
4865         * signal/sigfillset.c: Moved to...
4866         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
4867         do not set the corresponding bit.
4868
4869         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
4870         SIGCANCEL.
4871         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
4872         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
4873         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
4874         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
4875         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
4876
4877 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
4878
4879         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
4880         first syscall parameter to const char*.
4881
4882 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
4883
4884         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
4885
4886         * configure.in: Add AC_PROG_CXX.
4887         * config.make.in (CXX): Define.
4888
4889         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
4890         __len to size_t to avoid warnings.
4891
4892 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
4893
4894         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
4895         2.5.67.
4896         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4897
4898 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
4899
4900         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
4901         UNREGISTER_ATFORK if d == NULL.
4902
4903         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
4904         * dirent/dirent.h: Likewise.
4905         * dlfcn/dlfcn.h: Likewise.
4906         * grp/grp.h: Likewise.
4907         * iconv/iconv.h: Likewise.
4908         * io/fcntl.h: Likewise.
4909         * io/ftw.h: Likewise.
4910         * libio/stdio.h: Likewise.
4911         * misc/sys/mman.h: Likewise.
4912         * misc/sys/select.h: Likewise.
4913         * misc/sys/syslog.h: Likewise.
4914         * misc/sys/uio.h: Likewise.
4915         * posix/spawn.h: Likewise.
4916         * posix/unistd.h: Likewise.
4917         * posix/sys/wait.h: Likewise.
4918         * pwd/pwd.h: Likewise.
4919         * resolv/netdb.h: Likewise.
4920         * rt/aio.h: Likewise.
4921         * shadow/shadow.h: Likewise.
4922         * signal/signal.h: Likewise.
4923         * socket/sys/socket.h: Likewise.
4924         * stdlib/stdlib.h: Likewise.
4925         * streams/stropts.h: Likewise.
4926         * string/string.h: Likewise.
4927         * sysdeps/gnu/utmpx.h: Likewise.
4928         * sysvipc/sys/msg.h: Likewise.
4929         * termios/termios.h: Likewise.
4930         * time/time.h: Likewise.
4931         * wcsmbs/wchar.h: Likewise.
4932         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
4933         functions.
4934         * misc/daemon.c: Likewise.
4935         * sysdeps/generic/backtracesymsfd.c: Likewise.
4936         * sysdeps/generic/check_fds.c: Likewise.
4937         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
4938         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
4939         * sysdeps/generic/not-cancel.h: New file.
4940         * csu/Makefile (distribute): Add not-cancel.h.
4941         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
4942         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
4943         for assert.c and assert-perr.c to include <fatal-prepare.h>.
4944         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
4945
4946         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
4947         errno and unlink first.
4948
4949         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
4950
4951 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
4952
4953         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
4954         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
4955
4956 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
4957
4958         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
4959
4960         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
4961         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
4962         replace.
4963
4964         * signal/Makefile (tests): Add tst-sigsimple.
4965         * signal/tst-sigsimple.c: New file.
4966
4967 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
4968
4969         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
4970         tst-tls10.h.
4971         (tests): Add tst-tls1[0-2].
4972         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
4973         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
4974         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
4975         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
4976         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
4977         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
4978         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
4979         * elf/tst-tls10.c: New test.
4980         * elf/tst-tls11.c: New test.
4981         * elf/tst-tls12.c: New test.
4982         * elf/tst-tls10.h: New file.
4983         * elf/tst-tlsmod7.c: New file.
4984         * elf/tst-tlsmod8.c: New file.
4985         * elf/tst-tlsmod9.c: New file.
4986         * elf/tst-tlsmod10.c: New file.
4987         * elf/tst-tlsmod11.c: New file.
4988         * elf/tst-tlsmod12.c: New file.
4989
4990 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
4991
4992         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
4993         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
4994         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
4995
4996 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
4997
4998         * posix/regex.h: Include <sys/types.h>.
4999
5000         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
5001         The signal number must be checked.
5002         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
5003         The signal number must be checked [PR libc/5004].
5004
5005         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
5006         don't do anything fancy.
5007
5008         * sysdeps/generic/bits/libc-lock.h: Define
5009         __rtld_lock_define_initialized_recursive.
5010
5011         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
5012         contacting nscd if NOT_USENSCD_NAME > 0.
5013         * nss/nsswitch.c (__nss_disable_nscd): New function.
5014         * nss/nsswitch.h: Declare it.
5015         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
5016         * nscd/nscd.c (main): Call __nss_disable_nscd.
5017
5018 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
5019
5020         * stdio-common/perror.c (perror): We don't need to set the offset
5021         to _IO_pos_bad, this is how streams are initialized.
5022
5023         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
5024         (time_output): If necessary, allocate new buffer for .name string if
5025         padding is required.
5026
5027         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
5028         before copying.  This might leave holes in the list.  Adjust
5029         pointers if necessary.
5030         (netlink_receive): Allocate only one block.
5031         (free_netlink_handle): Adjust appropriately.
5032         (getifaddrs): Lots of cleanups.
5033
5034         * string/test-strncpy.c (do_one_test): Mark start and stop as
5035         possibly unused.
5036         * string/test-memchr.c: Likewise.
5037         * string/test-memcmp.c: Likewise.
5038         * string/test-memcpy.c: Likewise.
5039         * string/test-memmove.c: Likewise.
5040         * string/test-memset.c: Likewise.
5041         * string/test-strcat.c: Likewise.
5042         * string/test-strchr.c: Likewise.
5043         * string/test-strcmp.c: Likewise.
5044         * string/test-strcpy.c: Likewise.
5045         * string/test-strlen.c: Likewise.
5046         * string/test-strncmp.c: Likewise.
5047         * string/test-strpbrk.c: Likewise.
5048         * string/test-strrchr.c: Likewise.
5049         * string/test-strspn.c: Likewise.
5050
5051 2003-04-15  Roland McGrath  <roland@redhat.com>
5052
5053         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
5054
5055         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
5056         INTUSE(__register_frame_info_bases).
5057
5058 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
5059
5060         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
5061         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
5062         AT_SYSINFO_EH_FRAME.  Adjust string width.
5063         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
5064         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
5065         Add _dl_sysinfo_eh_frame field.
5066         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
5067         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
5068         variable.
5069         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
5070         if _dl_sysinfo_eh_frame is non-NULL.
5071
5072         * Makeconfig (gnulib): Add -lgcc_eh.
5073
5074         * config.h.in: Define HAVE_FORCED_UNWIND.
5075
5076 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
5077
5078         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
5079         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
5080
5081 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
5082
5083         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
5084         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
5085         against local symbol in conflict processing.
5086
5087 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
5088
5089         * sysdeps/powerpc/bits/atomic.h
5090         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
5091         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
5092         as abort stub.
5093         (__arch_compare_and_exchange_val_32_acq): Define.
5094         (atomic_compare_and_exchange_val_acq): Define.
5095
5096 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
5097
5098         * include/atomic.h: Pretty printing.
5099
5100 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
5101
5102         * stdio-common/vfscanf.c: Add casts to avoid warnings.
5103
5104 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
5105
5106         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
5107         * sysdeps/x86_64/bits/atomic.h: Likewise.
5108
5109 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
5110
5111         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
5112         POPARGS_1 to emit labels for the mov instructions.
5113
5114 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
5115
5116         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
5117
5118 2003-04-14  Roland McGrath  <roland@redhat.com>
5119
5120         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
5121         compiler warning.
5122
5123         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
5124
5125 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
5126
5127         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
5128         position.  Reported by jreiser@BitWagon.com.
5129
5130 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
5131
5132         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
5133         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
5134         * sysdeps/generic/unwind-dw2.c: Likewise.
5135         * sysdeps/generic/unwind-pe.h: Likewise.
5136
5137 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
5138
5139         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
5140         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
5141         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
5142         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
5143         (mcontext_t): Make it match the 32-bit mips kernel in o32.
5144         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
5145         the mips and mips64 headers.
5146         (struct user): Port to n32/n64.
5147
5148 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
5149
5150         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
5151         avoid warning.
5152
5153         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
5154         __ASSUME_VSYSCALL is defined don't add restorer.
5155         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5156         __ASSUME_VSYSCALL for 2.5.53.
5157
5158 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
5159
5160         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
5161         Remove HAVE_CANCELBUF code.  Replace with code using the new
5162         initializers for unwind-based cleanup handling.
5163         * sysdeps/generic/unwind.h: Update from latest gcc version.
5164         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
5165         places to allow unwind data generation.
5166         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
5167         * sysdeps/x86_64/bits/setjmp.h: Likewise.
5168         * sysdeps/sh/bits/setjmp.h: Likewise.
5169         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5170         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
5171         * sysdeps/alpha/bits/setjmp.h: Likewise.
5172
5173 2003-04-11  Roland McGrath  <roland@redhat.com>
5174
5175         * csu/tst-empty.c: New file.
5176         * csu/Makefile (tests, tests-static): Add it.
5177
5178 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
5179
5180         * string/test-strcmp.c (do_random_tests): Test whether return value
5181         has been promoted to wordsize if the ABI requires caller to do so.
5182         * string/test-strncmp.c (do_random_tests): Likewise.
5183         * string/test-memcmp.c (do_random_tests): Likewise.
5184
5185         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
5186         before returning.
5187
5188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5189         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
5190         is not defined, but the prctl constants are.
5191
5192         * string/tester.c (test_strcmp): Fix a typo.
5193
5194 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
5195
5196         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
5197         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
5198
5199 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
5200
5201         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
5202         NewABI.
5203         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
5204         NewABI.
5205         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
5206         conventions.
5207         * sysdeps/mips/mips64/memset.S: Likewise.
5208         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
5209         Use t0 instead of t4 as temporary.
5210
5211 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
5212
5213         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
5214         feof_unlocked instead of feof.
5215         (add_dir): Ignore trailing whitespace.
5216
5217 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
5218
5219         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
5220         sum of SIZE1 and SIZE2 arguments.
5221
5222 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
5223
5224         * iconv/iconv_prog.c (process_block): Don't print message about
5225         invalid input if the -c option is used.
5226         (main): Correctly append IGNORE string for -c option.
5227
5228 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5229
5230         * sysdeps/sh/bits/atomic.h: Moved to ...
5231         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
5232         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
5233         arguments.
5234         (atomic_bit_set, atomic_bit_test_set): Likewise.
5235         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
5236         twice.
5237         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
5238
5239 2003-04-06  Roland McGrath  <roland@redhat.com>
5240
5241         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
5242         restoration as done for setcontext yesterday.
5243
5244 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
5245
5246         * elf/rtld.c: Revert 2003-03-14 change.
5247         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
5248         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
5249
5250 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
5251
5252         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
5253
5254         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5255         Always initialize *signgamp before returning an error.
5256
5257 2003-04-05  Roland McGrath  <roland@redhat.com>
5258
5259         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
5260         below the stack pointer even if switching to the same context we are
5261         running right now.
5262
5263 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
5264
5265         * catgets/gencat.c (read_input_file): Make sure that \n is not
5266         alone on the line before testing for continuation.
5267
5268         * math/test-tgmath.c (compile_test): Initialize c.
5269
5270 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
5271
5272         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
5273         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
5274         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
5275         on mips n32.
5276         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
5277         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
5278         structure on n32 as well.
5279         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
5280         data types on n32 and n64.
5281
5282 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
5283
5284         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
5285         after getting them.
5286
5287         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
5288         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
5289         instead of __register_atfork.
5290
5291 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
5292
5293         * stdio-common/reg-printf.c (__register_printf_function): Calloc
5294         instead of malloc __printf_arginfo_table and __printf_function_table.
5295         Reported by John Reiser <jreiser@BitWagon.com>.
5296
5297 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
5298
5299         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
5300         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
5301
5302         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
5303         defining.
5304
5305 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
5306
5307         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
5308         for n64 abi.
5309
5310 2003-04-03  Roland McGrath  <roland@redhat.com>
5311
5312         * configure.in: Fix up use of compilation flags to match the build:
5313         For .s files, $ASFLAGS;
5314         For .S files, $CPPFLAGS $ASFLAGS;
5315         For .c files, $CFLAGS $CPPFLAGS;
5316         when linking, add $LDFLAGS.
5317         * configure: Regenerated.
5318
5319 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
5320
5321         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
5322         for atomic_compare_and_exchange_bool_acq failure.
5323
5324 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
5325
5326         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
5327         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
5328         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
5329         Remove declaration of pthread_atfork.
5330
5331 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
5332
5333         * locale/iso-639.def: Add many more languages from the current ISO 639.
5334
5335         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
5336         * sysdeps/generic/semtimedop.c: New file.
5337         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
5338         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
5339         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5340         * sysvipc/Makefile (routines): Add semtimedop.
5341         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
5342         * sysvipc/sys/sem.h: Declare semtimedop.
5343
5344 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
5345
5346         * configure.in: Check for __register_frame_info in both
5347         -lgcc and -lgcc_eh.
5348         * configure: Regenerated.
5349
5350 2003-04-01  Roland McGrath  <roland@redhat.com>
5351
5352         * scripts/abilist.awk: Allow dots in soname suffix.
5353
5354         * scripts/abilist.awk (emit): Fix bailout condition.
5355
5356 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
5357
5358         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
5359         IA-64 version.
5360
5361         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
5362         register as input to asm.
5363
5364 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
5365
5366         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
5367
5368 2003-04-01  Andreas Jaeger  <aj@suse.de>
5369
5370         * configure.in: Output as/ld as name if version is too old.
5371
5372 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
5373
5374         * configure.in: Don't require an installed C library in the test
5375         for ".set" assembler support.
5376
5377 2003-03-31  Roland McGrath  <roland@redhat.com>
5378
5379         * signal/tst-sigset.c: New file.
5380         * signal/Makefile (tests): Add it.
5381
5382 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
5383
5384         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
5385         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
5386         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
5387         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
5388         (__SIGRTMAX): Adjust accordingly.
5389         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
5390         second compatibility symbol set.
5391         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
5392
5393 2003-03-31  Andreas Schwab  <schwab@suse.de>
5394
5395         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
5396         Define.
5397         (atomic_decrement_and_test): Fix test.
5398
5399 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
5400
5401         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
5402         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
5403         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
5404         * sysdeps/sparc/sparc32/atomicity.h: Removed.
5405         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
5406         * sysdeps/sparc/sparc64/atomicity.h: Removed.
5407
5408 2003-03-30  Roland McGrath  <roland@redhat.com>
5409
5410         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
5411
5412         * intl/po2test.sed: Anchor substitution regexps to fix last change.
5413
5414 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
5415
5416         * intl/po2test.sed: Unify the transformations for msgid and msgstr
5417         and remove a useless s/// command.
5418
5419 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
5420
5421         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
5422         directive into empty .prologue region to ensure that call-chain
5423         is terminated even for the first instruction.
5424
5425         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
5426         to terminate call-chain right from the get-go.
5427
5428         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
5429         stop bit between compare & branch.
5430
5431 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
5432
5433         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
5434         point correctly [PR libc/4993].
5435
5436         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
5437         netlink_open calls if netlink is known to not be available.
5438
5439 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
5440
5441         * configure.in: Add mips64* support.
5442         * sysdeps/mips/bits/endian.h: Make it bi-endian.
5443         * sysdeps/mips/mipsel/bits/endian.h: Removed.
5444         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
5445         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
5446         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
5447         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
5448         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
5449         * sysdeps/mips/Implies: Moved wordsize-32 to...
5450         * sysdeps/mips/mips32/Implies: New file.
5451         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
5452         ret_NOERRNO): New.
5453         (ret, PSEUDO_END): Moved past END.
5454         (PSEUDO): Moved to...
5455         * sysdeps/unix/mips/mips32/sysdep.h: New file.
5456         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
5457         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
5458         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
5459         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
5460         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
5461
5462         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
5463         Re-introduce ENTRY.
5464
5465 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
5466
5467         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
5468         * inet/test-ifaddrs.c: Allow AF_PACKET.
5469         * sysdeps/unix/sysv/linux/kernel-features.h: Add
5470         __ASSUME_NETLINK_SUPPORT.
5471
5472 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
5473
5474         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
5475
5476 2003-03-26  H.J. Lu  <hjl@gnu.org>
5477
5478         * elf/vismod.h (getvarlocal1): Return const char **.
5479         (getvarinmod1): Likewise.
5480         (getvaritcpt1): Likewise.
5481         (getvarlocal2): Likewise.
5482         (getvarinmod2): Likewise.
5483         (getvaritcpt2): Likewise.
5484         (getvaritcpt3): Likewise.
5485         * elf/vismain.c (do_test): Adjusted.
5486         * elf/vismod1.c (getvarlocal1): Return address.
5487         (getvarinmod1): Likewise.
5488         (getvaritcpt1): Likewise.
5489         * elf/vismod2.c (getvarlocal2): Likewise.
5490         (getvarinmod2): Likewise.
5491         (getvaritcpt2): Likewise.
5492         * elf/vismod3.c (getvaritcpt3): Likewise.
5493
5494 2003-03-28  Roland McGrath  <roland@redhat.com>
5495
5496         * elf/vismain.c (do_test): Print both addresses when they don't match.
5497
5498         * scripts/abilist.awk: If given -v filename_regexp and/or -v
5499         libname_regexp when parsing names, then produce output only
5500         for those matching the given regexps.  In combine mode, save all
5501         stanzas for a final sorting by stanza header at the end.
5502         Emit a blank line between stanzas.
5503
5504         * scripts/abilist.awk: When given -v combine=1, do parse_names and
5505         emit a single output stream with lib name in stanza header lines.
5506
5507         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
5508
5509 2003-03-27  Roland McGrath  <roland@redhat.com>
5510
5511         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
5512         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
5513
5514 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5515
5516         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
5517         Return old value. Make asm output reg constraint earlyclobber.
5518         Renamed from...
5519         (__arch_compare_and_exchange_8_acq): ... this.
5520         (__arch_compare_and_exchange_val_16_acq):
5521         Return old value. Make asm output reg constraint earlyclobber.
5522         Renamed from...
5523         (__arch_compare_and_exchange_16_acq): ... this.
5524         (__arch_compare_and_exchange_val_32_acq):
5525         Return old value. Make asm output reg constraint earlyclobber.
5526         Renamed from...
5527         (__arch_compare_and_exchange_32_acq): ... this.
5528         (__arch_compare_and_exchange_val_64_acq):
5529         Renamed from...
5530         (__arch_compare_and_exchange_64_acq): ... this.
5531         (atomic_exchange_and_add): Use local variables and
5532         __arch_compare_and_exchange_val_64_acq.
5533         (atomic_add): Likewise.
5534         (atomic_add_negative, atomic_add_zero): Use local variables.
5535
5536 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
5537
5538         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
5539
5540 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
5541
5542         * Makefile: Remove libmd5crypt goal.
5543
5544 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
5545
5546         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
5547         special handling of relocations against local symbols.
5548
5549 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
5550
5551         * sysdeps/powerpc/bits/atomic.h
5552         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
5553         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
5554         Define PPC64 specific version.
5555         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
5556         Change (mem) constraint to "b".
5557         [__powerpc64__] (__arch_atomic_exchange_and add_64):
5558         Replace addi with add. Change (value) contraint to "r".
5559         Change (mem) constraint to "b".
5560         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
5561         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
5562         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
5563         (__arch_atomic_decrement_if_positive_32): New macro.
5564         (atomic_decrement_if_positive): Use __arch* macros.
5565
5566 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
5567
5568         * sysdeps/ia64/fpu/libm-test-ulps: Update.
5569
5570 2003-03-27  Roland McGrath  <roland@redhat.com>
5571
5572         * scripts/rpm2dynsym.sh: New file.
5573         * Makefile (distribute): Add it.
5574
5575 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
5576
5577         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
5578         ar.unat before returning.  Add missing .mem.offset directives
5579         to ensure file gets assembled without warnings.
5580         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5581
5582 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
5583
5584         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
5585         Return -1 instead of 0 if clock_getres failed.
5586
5587 2003-03-27  Roland McGrath  <roland@redhat.com>
5588
5589         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
5590         header lines and write out foo.symlist files for each foo.so.NN listed.
5591
5592         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
5593         This symbol is exported, and we don't want to hide it.
5594         Add libc_hidden_proto instead.
5595         (_IO_file_jumps): Add libc_hidden_proto.
5596         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
5597         Remove INTVARDEF.
5598         * libio/fileops.c (_IO_file_jumps): Likewise.
5599         * libio/stdfiles.c: Don't use INTUSE on them.
5600         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
5601         * libio/iofopen.c (__fopen_internal): Likewise.
5602         * libio/freopen.c (freopen): Likewise.
5603         * libio/freopen64.c (freopen64): Likewise.
5604         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5605
5606         * Makerules (check-abi) [$(enable-check-abi) = warn]:
5607         Ignore exit status from diff.
5608         * configure.in (enable_check_abi): Document possible value "warn".
5609         Change default to no for now.
5610         * configure: Regenerated.
5611
5612         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
5613         macro calls and a #include <stub-tag.h> at the end.
5614         * Makerules ($(objpfx)stubs): Tweak sed commands.
5615
5616         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
5617         caller column for *xattr syscalls, since they are in sysdeps/generic.
5618
5619         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
5620         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
5621
5622 2003-03-26  Roland McGrath  <roland@redhat.com>
5623
5624         * Makerules (check-abi-config): Use /thread instead of /tls when
5625         use-thread and not just use-tls is set.
5626
5627         * Makerules (update-abi): Put quotes around $(update-abi-config).
5628
5629         * elf/Makefile (check-abi): Depend on check-abi-ld.
5630         (update-abi): Depend on update-abi-ld.
5631
5632 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
5633
5634         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
5635         do not check for errors (unless testing for 32bit variant).
5636         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
5637
5638 2003-03-27  Philip Blundell  <philb@gnu.org>
5639
5640         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
5641         unconditional mov.  Remove nop.
5642
5643         * sysdeps/unix/sysv/linux/kernel-features.h
5644         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
5645         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
5646         when __ASSUME_VFORK_SYSCALL is defined.
5647         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
5648         __ASSUME_MMAP2_SYSCALL.
5649         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
5650         __ASSUME_REALTIME_SIGNALS.
5651
5652 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
5653
5654         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
5655         only if DL_NO_COPY_RELOCS is not defined.
5656         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
5657
5658 2003-03-26  Roland McGrath  <roland@redhat.com>
5659
5660         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
5661         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
5662         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
5663         (sysdep_routines): Add stub-syscalls.
5664         ($(objpfx)stub-syscalls.c): New target.
5665         (generated): Add stub-syscalls.c.
5666
5667         * tls.make.c: Also define use-tls according to USE_TLS macro.
5668
5669 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
5670
5671         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
5672         no-op padding element.
5673         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
5674         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
5675         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5676         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5677
5678 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
5679
5680         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
5681         condition check for the return value of getgroups32.
5682
5683 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
5684
5685         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
5686         Fix a typo.
5687         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
5688         PSEUDO_END_NOERRNO): Define.
5689         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
5690         Define to PSEUDO_END.
5691
5692 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
5693
5694         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
5695
5696 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
5697
5698         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
5699         * iconvdata/bug-iconv4.c: New file.
5700         * iconvdata/Makefile (tests): Add bug-iconv4.
5701
5702 2003-03-25  H.J. Lu  <hjl@gnu.org>
5703
5704         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
5705         symbols twice.
5706         (_dl_lookup_versioned_symbol): Likewise.
5707
5708 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
5709
5710         * csu/tst-atomic.c (do_test): Add some new
5711         atomic_compare_and_exchange_val_acq, atomic_add_zero,
5712         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
5713         * include/atomic.h (atomic_add_negative, atomic_add_zero):
5714         Prefix local variable so that it doesn't clash with the one
5715         in atomic_exchange_and_add.
5716         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
5717         pointers.
5718         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
5719         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
5720         value into register.
5721         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
5722         Cast newval to long.
5723         * sysdeps/x86_64/bits/atomic.h
5724         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
5725         long.
5726         (atomic_exchange): Cast newvalue to long if sizeof == 8.
5727         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
5728         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
5729         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
5730
5731 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
5732
5733         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
5734         bit from backtrace addresses.
5735
5736 2003-03-21  Andreas Schwab  <schwab@suse.de>
5737
5738         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
5739         __chown symbols.
5740
5741 2003-03-25  Roland McGrath  <roland@redhat.com>
5742
5743         * config.make.in (enable-check-abi): New variable from configure.
5744         * configure.in (enable_check_abi): New substituted variable,
5745         controlled by --{enable,disable}-check-abi (default yes).
5746         * configure: Regenerated.
5747         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
5748         on check-abi dependency.
5749
5750 2003-03-26  Andreas Schwab  <schwab@suse.de>
5751
5752         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
5753         * include/atomic.h: Likewise.
5754
5755         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
5756
5757 2003-03-25  Roland McGrath  <roland@redhat.com>
5758
5759         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
5760         (__arch_atomic_exchange_64): New macro.
5761         (atomic_exchange): Use them.
5762         (__arch_atomic_exchange_and_add_32): New macro.
5763         (__arch_atomic_exchange_and_add_64): New macro.
5764         (atomic_exchange_and_add): Use them.
5765         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
5766
5767 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
5768
5769         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
5770         Define.
5771         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
5772         ISA tests.
5773         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
5774         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
5775         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
5776         to decide whether to add padding.
5777         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
5778         to decide whether to add padding.
5779         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
5780         old_kernel_sigaction): Likewise.
5781
5782 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
5783
5784         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
5785         atomic_add_zero were supposed to do.
5786         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
5787         to x86 behavior.
5788
5789         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
5790         This matches the new timer implementation.
5791         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
5792         Likewise.
5793         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
5794         Likewise.
5795         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
5796         timer info for what the kernel provides these days.
5797         (struct sigevent): Add _tid field.
5798         Define SIGEV_THREAD_ID.
5799         Remove struct __pthread_attr_s forward declaration.
5800         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
5801         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
5802         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5803         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5804
5805         * Versions.def (librt): Add GLIBC_2.3.3.
5806
5807         * abilist/libpthread.abilist: Update for nptl.
5808
5809 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
5810
5811         * inet/netinet/in.h: Add IPPROTO_SCTP.
5812
5813 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
5814
5815         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
5816
5817 2003-03-24  Philip Blundell  <philb@gnu.org>
5818
5819         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
5820         Remove a1 from clobber list.
5821
5822 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
5823
5824         * timezone/antarctica: Update from tzdata2003a.
5825         * timezone/asia: Likewise.
5826         * timezone/australasia: Likewise.
5827         * timezone/europe: Likewise.
5828         * timezone/iso3166.tab: Likewise.
5829         * timezone/northamerica: Likewise.
5830         * timezone/southamerica: Likewise.
5831         * timezone/zone.tab: Likewise.
5832
5833 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
5834
5835         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
5836
5837 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
5838
5839         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
5840         unwanted expansion by definining to ret.  Patch by Ian Wienand.
5841
5842         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
5843         the parameter description to denote no error checking.  Generate
5844         appropriate pseudo asm code.
5845         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
5846         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
5847         getpgrp, and getppid with 'E'.
5848         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
5849         PSEUDO_END_NOERRNO, and ret_NOERRNO.
5850         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5851         * sysdeps/unix/sysdep.h: Likewise.
5852         * sysdeps/unix/alpha/sysdep.h: Likewise.
5853         * sysdeps/unix/sparc/sysdep.h: Likewise.
5854         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
5855         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
5856         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
5857         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5858         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
5859         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5860         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5861         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5862         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
5863         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5864         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5865
5866 2003-03-23  Roland McGrath  <roland@redhat.com>
5867
5868         * Makeconfig (+includes): Don't use $(last-includes).
5869
5870 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
5871
5872         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
5873         * sysdeps/unix/sysv/linux/configure: Rebuilt.
5874
5875 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
5876
5877         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5878         * sysdeps/arm/libm-test-ulps: Update.
5879         * sysdeps/hppa/fpu/libm-test-ulps: Update.
5880         * sysdeps/ia64/fpu/libm-test-ulps: Update.
5881         * sysdeps/mips/fpu/libm-test-ulps: Update.
5882         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5883         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5884         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
5885         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
5886         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
5887         * sysdeps/s390/fpu/libm-test-ulps: Update.
5888         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5889
5890 2003-03-22  Roland McGrath  <roland@redhat.com>
5891
5892         * include/atomic.h: Put parens around all macro arguments.
5893         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
5894         (atomic_compare_and_exchange_val_acq): Use it.
5895         (atomic_compare_and_exchange_bool_acq): Likewise.
5896         (atomic_increment_and_test): Invert sense of test.
5897         (atomic_decrement_and_test): Likewise.
5898         * csu/tst-atomic.c: Update those tests to match.
5899
5900 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
5901
5902         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
5903         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
5904         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
5905         __oldval variable in the macro, since it might be macro argument.
5906         (atomic_decrement_if_positive): Initialize __memp, remove setting
5907         of non-existent variable.
5908         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
5909         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
5910         using atomic_compare_and_exchange_val_acq.
5911         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
5912         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
5913         Renamed from...
5914         (__arch_compare_and_exchange_bool_8_acq): ... this.
5915         (__arch_compare_and_exchange_val_16_acq): Renamed from...
5916         (__arch_compare_and_exchange_bool_16_acq): ... this.
5917         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
5918         from...
5919         (__arch_compare_and_exchange_bool_32_acq): ... this.
5920         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
5921         from...
5922         (__arch_compare_and_exchange_bool_64_acq): ... this.
5923         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
5924         variables types instead of assuming int.
5925         Change prefix of local variables to __arch.
5926         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
5927         Remove.
5928         (atomic_compare_and_exchange_val_acq,
5929         atomic_compare_and_exchange_bool_acq): Define.
5930
5931         * csu/tst-atomic.c: New test.
5932         * csu/tst-atomic-long.c: New test.
5933         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
5934
5935         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
5936
5937         * sysdeps/s390/Versions: Add trailing newline.
5938
5939         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
5940         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
5941
5942 2003-03-22  Andreas Schwab  <schwab@suse.de>
5943
5944         * sysdeps/m68k/fpu/libm-test-ulps: Update.
5945
5946         * sysdeps/m68k/m68020/bits/atomic.h: New file.
5947         * sysdeps/m68k/m68020/atomicity.h: Removed.
5948
5949 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
5950
5951         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
5952         data structures and macros.  Protect from multiple inclusion.
5953
5954         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
5955         typo in #if test.
5956
5957 2003-03-21  Andreas Jaeger  <aj@suse.de>
5958
5959         * sysdeps/i386/fpu/libm-test-ulps: Update.
5960
5961         * math/libm-test.inc (tgamma_test): Recompute some constants with
5962         36 digits precision.
5963         (lgamma_test): Likewise.
5964         (ccos_test): Likewise.
5965         (ccosh_test): Likewise.
5966         (clog10_test): Likewise.
5967         (csin_test): Likewise.
5968         (csinh_test): Likewise.
5969         (ctan_test): Likewise.
5970         (ctanh_test): Likewise.
5971
5972 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
5973
5974         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
5975
5976 2003-03-21  Roland McGrath  <roland@redhat.com>
5977
5978         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
5979         constraint to permit non-constant BIT argument.
5980         (atomic_bit_test_set): Likewise.
5981         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
5982         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
5983         For quadword case, use "i" constraint if __builtin_constant_p and < 32
5984         or "r" constraint otherwise.
5985
5986         * configure.in: Move AC_PROG_CC and other program-finding before all
5987         the version checks.
5988         * configure: Regenerated.
5989
5990 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
5991
5992         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
5993         unaligned copying of 8-15 bytes.  From Chris Demetriou
5994         <cgd@broadcom.com>.  Fix label names.
5995         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
5996         change as to memcpy.S.
5997         * sysdeps/mips/memcpy.S: Formatting changes.
5998         * sysdeps/mips/memset.S: Likewise.
5999
6000 2003-03-21  Roland McGrath  <roland@redhat.com>
6001
6002         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
6003
6004 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
6005
6006         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
6007         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
6008
6009 2003-03-21  Roland McGrath  <roland@redhat.com>
6010
6011         * sysdeps/i386/i486/bits/atomic.h
6012         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
6013         version of the macro to avoid compile-time warnings.
6014         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
6015         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
6016         (atomic_increment, atomic_decrement): Likewise.
6017
6018 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
6021         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6022
6023 2003-03-21  Roland McGrath  <roland@redhat.com>
6024
6025         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
6026
6027 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
6028
6029         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
6030         atomic_compare_and_exchange_val_rel,
6031         atomic_compare_and_exchange_bool_acq, and
6032         atomic_compare_and_exchange_bool_rel instead of
6033         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
6034         * sysdeps/i386/i486/bits/atomic.h: Define
6035         __arch_compare_and_exchange_val_*_acq instead of
6036         __arch_compare_and_exchange_*_acq.
6037         * sysdeps/x86_64/bits/atomic.h: Likewise.
6038         * sysdeps/ia64/bits/atomic.h: Define
6039         __arch_compare_and_exchange_bool_*_acq instead of
6040         __arch_compare_and_exchange_*_acq.
6041         * sysdeps/powerpc/bits/atomic.h: Likewise.
6042         * sysdeps/s390/bits/atomic.h: Likewise.
6043         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
6044         * malloc/set-freeres.c: Likewise.
6045         * nscd/cache.c: Likewise.
6046         * stdlib/cxa_finalize.c: Likewise.
6047         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6048
6049 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6050
6051         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
6052         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
6053         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
6054
6055         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
6056         into high and low halves on n64.
6057         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6058         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6059         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6060
6061 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
6062
6063         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
6064         correct atomic_compare_and_exchange_acq semantics.
6065
6066 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6067
6068         * sysdeps/mips/ieee754.h: Remove excess #endif.
6069
6070 2003-03-20  Roland McGrath  <roland@redhat.com>
6071
6072         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
6073         variable.  Remove superfluous memory clobber.
6074
6075         * include/atomic.h: Syntax braino fix.
6076
6077         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
6078         in decimal.  Don't bail if niced at start.  Just check that nice call
6079         bumps the total at all.
6080
6081 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6082
6083         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
6084         including pc, gp, sp and fp, as long long.
6085         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
6086         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
6087         Add gp argument, and set gp in the jmpbuf to it.
6088         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
6089
6090 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
6091
6092         * include/atomic.h: Define atomic_exchange and
6093         atomic_decrement_if_positive if not already defined.  Add some
6094         __builtin_expect.
6095         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
6096         * sysdeps/x86_64/bits/atomic.h: Likewise.
6097         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
6098         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
6099         atomic_exchange, atomic_exchange_and_add, and
6100         atomic_decrement_if_positive
6101
6102 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
6103
6104         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
6105         with a single instruction.
6106
6107         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
6108         properly for n64.
6109         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
6110         type.
6111         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
6112         Word before comparing with gotsym.  Take reloc_addr argument as
6113         void*.  Remove the code added for the compiler to drop any
6114         alignment assumptions.
6115
6116 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
6117
6118         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
6119         * include/atomic.h: New file.
6120         * sysdeps/i386/i486/bits/atomic.h: New file.
6121         * sysdeps/x86_64/bits/atomic.h: New file.
6122         * sysdeps/s390/bits/atomic.h: New file.
6123         * sysdeps/sh/bits/atomic.h: New file.
6124         * sysdeps/ia64/bits/atomic.h: New file.
6125         * sysdeps/powerpc/bits/atomic.h: New file.
6126         * sysdeps/generic/bits/atomic.h: New file.
6127         * sysdeps/i386/i486/atomicity.h: Removed.
6128         * sysdeps/x86_64/atomicity.h: Removed.
6129         * sysdeps/s390/s390-32/atomicity.h: Removed.
6130         * sysdeps/s390/s390-64/atomicity.h: Removed.
6131         * sysdeps/ia64/atomicity.h: Removed.
6132         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
6133         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
6134         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
6135         use of macros from atomicity.h to new names and semantics.
6136         * gmon_mcount.c: Likewise.
6137         * malloc/set-freeres.c: Likewise.
6138         * nscd/cache.c: Likewise.
6139         * stdlib/cxa_finalize.c: Likewise.
6140         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6141
6142 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
6143
6144         * sysdeps/mips/ieee754.h: New file, suitable to replace both
6145         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
6146         mips-specific for now.
6147
6148 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
6149
6150         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
6151         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
6152         * stdlib/tst-strtod.c: Add test for the bug.
6153
6154         * posix/tst-nice.c (do_test): Remove invalid of return value.
6155         Don't run test if initial level != 0.
6156
6157 2003-03-19  Amos Waterland  <apw@us.ibm.com>
6158
6159         * posix/tst-nice.c: New file.
6160         * posix/Makefile (tests): Add tst-nice.
6161
6162 2003-03-18  Roland McGrath  <roland@redhat.com>
6163
6164         * abilist: New directory of libfoo.abilist files maintained using
6165         scripts/merge-abilist.awk and "make update-abi" rules.
6166         * Makefile (distribute): Add abilist/*.abilist.
6167         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
6168         Depend on check-abi.
6169
6170         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
6171         * configure: Regenerated.
6172
6173         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
6174
6175 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
6176
6177         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
6178         correctly.
6179
6180 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
6181
6182         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
6183
6184 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
6185
6186         * Versions.def: Add GLIBC_2.3.3 for libpthread.
6187
6188 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
6189
6190         * sysdeps/generic/libc-start.c [!SHARED &&
6191         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
6192
6193 2003-03-17  Roland McGrath  <roland@redhat.com>
6194
6195         * include/ctype.h: Revert last change.
6196
6197 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
6198
6199         * argp/tst-argp1.c: Use test-skeleton.c.
6200         * locale/tst-C-locale.c: Likewise.
6201
6202 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
6203
6204         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
6205         * sysdeps/mips/mips64/n64/Implies: New file.
6206         * sysdeps/mips/mips64/n64/Makefile: New file.
6207         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
6208         * sysdeps/mips/mips64/n32/Implies: New file.
6209         * sysdeps/mips/mips64/n32/Makefile: New file.
6210         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
6211         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
6212         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
6213         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
6214         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
6215         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
6216         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
6217         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
6218         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
6219         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
6220         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
6221         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
6222         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
6223         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
6224
6225         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
6226         lib64 for mips64/n64 and lib32 for mips64/n32.
6227         (ldd_rewrite_script): Needed for all mips64 configurations.
6228         * sysdeps/unix/sysv/linux/configure: Rebuilt.
6229         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
6230         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
6231
6232         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
6233         well.
6234
6235         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
6236         asm/unistd.h into asm-unistd.h.
6237         * sysdeps/unix/sysv/linux/mips/configure: Generated.
6238         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
6239         of syscall list.
6240         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
6241         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
6242         asm/unistd.h.
6243
6244         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
6245         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
6246         long type for registers on n32.
6247
6248         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
6249         3 ABIs.
6250         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
6251         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
6252         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
6253         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
6254         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
6255         * sysdeps/unix/mips/brk.S: Likewise.
6256         * sysdeps/unix/mips/sysdep.S: Likewise.
6257         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
6258         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
6259         * sysdeps/mips/sys/ucontext.h: Likewise.
6260         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
6261         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
6262         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
6263         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6264         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
6265         * sysdeps/mips/mips64/setjmp.S: Likewise.
6266         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
6267         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
6268         64-bit types.
6269
6270 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
6271
6272         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
6273         not at function level.
6274         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
6275
6276 2003-03-15  Roland McGrath  <roland@redhat.com>
6277
6278         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
6279         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
6280         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
6281         * nis/nis_table.c (__create_ib_request): Likewise.
6282
6283         * posix/fnmatch_loop.c: Add casts for signedness.
6284         * nss/nss_files/files-hosts.c: Likewise.
6285         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6286         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
6287         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
6288
6289         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
6290         get errors into the log file.
6291         (libc_cv_broken_visibility_attribute): Likewise.
6292         (libc_cv_broken_alias_attribute): Likewise.
6293         (libc_cv_asm_weak_directive): Likewise.
6294         (libc_cv_need_minus_P): Likewise.
6295         (libc_cv_dot_text): Likewise.
6296         (libc_cv_asm_global_directive): Likewise.
6297         (libc_cv_asm_type_prefix): Likewise.
6298         * configure: Regenerated.
6299
6300         * nscd/cache.c (cache_search): Give first arg type `request_type'.
6301         * nscd/nscd.h: Update decl.
6302
6303         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
6304         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6305         * elf/dl-close.c (_dl_close): Likewise.
6306         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
6307         * io/fts.c (fts_build): Likewise.
6308         * elf/cache.c (add_to_cache): Likewise.
6309         * locale/programs/locarchive.c (show_archive_content): Likewise.
6310
6311         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
6312
6313         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
6314         happy.
6315         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
6316
6317 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
6318
6319         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
6320         code for most parts.
6321
6322 2003-03-15  Roland McGrath  <roland@redhat.com>
6323
6324         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
6325         * sysdeps/unix/sysv/linux/system.c: ... here.
6326         (FORK): Don't #define if already #define'd.
6327         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
6328         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
6329         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
6330
6331         * dlfcn/tst-dlinfo.c: New file.
6332         * dlfcn/Makefile (tests): Add tst-dlinfo.
6333         ($(objpfx)tst-dlinfo): New target.
6334
6335         * dlfcn/dlinfo.c: New file.
6336         * dlfcn/Makefile (libdl-routines): Add it.
6337         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
6338         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
6339         [__USE_GNU] (RTLD_DI_*): New enum constants.
6340         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
6341         * elf/dl-load.c (cache_rpath): New inline function.
6342         (_dl_map_object): Use it.
6343         (_dl_rtld_di_serinfo): New function.
6344         * sysdeps/generic/ldsodefs.h: Declare it.
6345         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6346
6347         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
6348         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
6349         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
6350         (__libc_start_main): Just call the generic one for most of the work.
6351
6352         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
6353         static function by that name instead of BP_SYM (__libc_start_main).
6354         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
6355         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
6356         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
6357
6358         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
6359         Use this macro for extra AT_* cases.
6360         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
6361         New macro, guts from ...
6362         (__aux_init_cache): ... here, function removed.
6363         (DL_PLATFORM_INIT): Don't define this.
6364
6365         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
6366         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
6367
6368         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
6369
6370 2003-03-14  Roland McGrath  <roland@redhat.com>
6371
6372         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
6373
6374 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
6375
6376         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
6377
6378         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
6379         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
6380
6381 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
6382
6383         * sysdeps/mips/fpu/bits/mathdef.h: New.
6384         (__NO_LONG_DOUBLE_MATH): Define for o32.
6385
6386         * sysdeps/mips/sys/asm.h: Formatting changes.
6387         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
6388         (CPADD): Define for all of them.
6389         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
6390         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
6391         NARGSAVE): Define per ABI spec.
6392         (END): Don't redefine.
6393         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
6394         LONG_SRAV): Remove duplicate definitions.
6395         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
6396         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
6397         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
6398         (PTR_LA): Define for all 3 ABIs.
6399
6400         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
6401         (elf_machine_matches_host): Prevent linking of o32 and n32
6402         together.
6403         (elf_machine_dynamic): Document assumption on $gp.
6404         (STRINGXP, STRINGXV, STRINGV_): New macros.
6405         (elf_machine_load_address): Use them to stringize PTR_LA and
6406         PTR_SUBU.
6407         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
6408         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
6409         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
6410         (__dl_runtime_resolve): Cast the symtab initializer to the
6411         right type.
6412         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
6413         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
6414         Handle 64-bit R_MIPS_REL composite relocation and accept
6415         R_MIPS_64 relocations to shift addend size to 64 bits.
6416         Document assumption regarding local GOT entries.  Document
6417         backward-compatibility departing from the ABI behavior in
6418         applying relocations that reference section symbols, no longer
6419         used.  Support relocations to mis-aligned offsets.
6420         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
6421
6422         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
6423
6424         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
6425         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
6426         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
6427         restore_rt functions.  Use them.
6428
6429         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
6430         .set mips2 on new abis.
6431
6432 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
6433
6434         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
6435         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
6436         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
6437         * sysdeps/posix/pathconf.c: Likewise.
6438         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6439         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6440         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
6441
6442         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
6443         words.
6444
6445 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
6446
6447         * include/gmp.h: Include/gmp-mparam.h.
6448         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
6449         gmp-impl.h.
6450
6451         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
6452         ELF_MACHINE_NO_RELA is set.
6453         * elf/rtld.c (dl_main): No prelink support for REL-only.
6454
6455         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
6456         FLAG_MIPS64_LIBN64): Define.
6457         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
6458
6459         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
6460         * sysdeps/mips/memset.S: Likewise.
6461         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
6462         depending on the ABI.
6463
6464         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
6465         Don't .set mips2 on new abi.
6466         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
6467
6468         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
6469
6470 2003-03-13  Roland McGrath  <roland@redhat.com>
6471
6472         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
6473         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
6474
6475 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
6476
6477         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
6478         literals long long.
6479         * stdlib/fpioconst.c: Likewise.
6480         * stdlib/strtod.c: Likewise.
6481
6482         * sysdeps/mips/add_n.S: Use L macro for local labels.
6483         * sysdeps/mips/addmul_1.S: Likewise.
6484         * sysdeps/mips/lshift.S: Likewise.
6485         * sysdeps/mips/memcpy.S: Likewise.
6486         * sysdeps/mips/memset.S: Likewise.
6487         * sysdeps/mips/mul_1.S: Likewise.
6488         * sysdeps/mips/rshift.S: Likewise.
6489         * sysdeps/mips/sub_n.S: Likewise.
6490         * sysdeps/mips/submul_1.S: Likewise.
6491         * sysdeps/mips/mips64/add_n.S: Likewise.
6492         * sysdeps/mips/mips64/addmul_1.S: Likewise.
6493         * sysdeps/mips/mips64/lshift.S: Likewise.
6494         * sysdeps/mips/mips64/mul_1.S: Likewise.
6495         * sysdeps/mips/mips64/rshift.S: Likewise.
6496         * sysdeps/mips/mips64/sub_n.S: Likewise.
6497         * sysdeps/mips/mips64/submul_1.S: Likewise.
6498         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
6499         conventions.  Define END as in sys/asm.h.
6500         * sysdeps/unix/mips/sysdep.S: Likewise.
6501         * sysdeps/unix/mips/wait.S: Likewise.
6502         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
6503
6504         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
6505         Cast shifted values that may be too narrow to mp_limb_t.
6506         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
6507         Likewise.
6508         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
6509         Likewise.
6510         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
6511         (__mpn_extract_long_double): Likewise.
6512         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
6513         (__mpn_construct_long_double): Likewise.
6514         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
6515         (__mpn_extract_long_double): Likewise.
6516         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
6517         (__mpn_construct_long_double): Likewise.
6518
6519 2003-03-13  Roland McGrath  <roland@redhat.com>
6520
6521         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
6522         entries in the map file match too.
6523
6524 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
6525
6526         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
6527         label .Lthread_start since current binutils don't allow branches
6528         to globally visible symbols.
6529
6530 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
6531
6532         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
6533         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
6534         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
6535         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
6536         clobbered by the syscall.
6537         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
6538         ASM_ARGS_6): Change constraints from r to index of corresponding
6539         output register.
6540         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
6541         ptid and ctid to match kernel.
6542         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
6543
6544 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
6545
6546         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
6547         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
6548         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
6549
6550 2003-03-11  Roland McGrath  <roland@redhat.com>
6551
6552         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6553         Check SYM_MAP rather than SYM as definedness check.
6554         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
6555         Don't handle R_PPC64_REL24 reloc.
6556         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
6557
6558         * sysdeps/powerpc/powerpc64/dl-machine.h
6559         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
6560         block, so we cover all the TPREL16* flavors without 6 ||s.
6561         [USE_TLS] (elf_machine_tprel): New function.
6562         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
6563         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
6564         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
6565
6566 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
6567
6568         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
6569         instead of jalr to invoke subroutine so restoring the $gp register
6570         will work properly.
6571
6572 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6573
6574         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
6575         to __NR_pread if not defined.
6576         (__NR_pwrite64): Define to __NR_pwrite if not defined.
6577
6578 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
6579
6580         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
6581         * sysdeps/unix/sysv/linux/kernel-features.h
6582         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
6583         kernel >= 2.5.64.
6584
6585 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
6586
6587         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
6588         allocate space even for the trailing '/'.
6589         Reported by John Reiser <jreiser@BitWagon.com>.
6590
6591         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
6592         ASM_CLOBBERS_6): Define.
6593         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
6594         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
6595         to match IA-32 order.
6596         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
6597
6598 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
6599
6600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
6601         Copy extra params for NPTL to registers used in clone syscall.
6602
6603 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6604
6605         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
6606         call names for pread and pwrite.
6607
6608 2003-03-10  Roland McGrath  <roland@redhat.com>
6609
6610         * dlfcn/Makefile (libdl-routines): Add dladdr1.
6611         * dlfcn/dladdr1.c: New file.
6612         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
6613         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
6614         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
6615         a const ElfNN_Sym ** to fill in.
6616         * include/dlfcn.h: Update decl.  Include <link.h>.
6617         * dlfcn/dladdr.c (dladdr): Update caller.
6618         * malloc/mtrace.c (tr_where): Likewise.
6619         * sysdeps/generic/elf/backtracesyms.c: Likewise.
6620         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6621         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
6622         * Versions.def (libdl): Define GLIBC_2.3.3 set.
6623
6624         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
6625         assembler command.
6626         * sysdeps/unix/Makefile (compile-syscall): New variable.
6627         Pass -g0 to compiler for assembling syscall stubs from stdin.
6628
6629         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
6630         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
6631         Define these to do nothing.
6632
6633         * configure.in: New check for -g on .S files.
6634         * configure: Regenerated.
6635         * config.make.in (have-cpp-asm-debuginfo): New variable.
6636         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
6637         * Makeconfig (ASFLAGS): New variable, if undefined and
6638         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
6639         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
6640
6641 2003-03-09  Roland McGrath  <roland@redhat.com>
6642
6643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
6644         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
6645
6646 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
6647
6648         * po/fi.po: Update from translation team.
6649         * po/ca.po: Likewise.
6650         * po/da.po: Likewise.
6651
6652 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
6653
6654         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
6655
6656 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
6657
6658         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
6659
6660         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
6661
6662 2003-03-07  Roland McGrath  <roland@redhat.com>
6663
6664         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
6665         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
6666
6667 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
6668
6669         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
6670         stubs, we have INLINE_SYSCALL.
6671         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
6672         MAP_NONBLOCK.
6673
6674 2003-03-06  Roland McGrath  <roland@redhat.com>
6675
6676         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
6677         permanent extent and add a comment about testing its implicit teardown.
6678
6679 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6680
6681         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
6682
6683 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
6684
6685         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
6686         reversed __builtin_expect expectation.
6687
6688 2003-03-05  Roland McGrath  <roland@redhat.com>
6689
6690         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
6691         * libio/swscanf.c: Likewise.
6692         * libio/swprintf.c: Likewise.
6693
6694 2003-03-04  Roland McGrath  <roland@redhat.com>
6695
6696         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
6697         (elf_machine_rela): Always use RESOLVE_MAP, needed for
6698         R_PPC64_JMP_SLOT as well as TLS cases.
6699         (BIT_INSERT): Move parenthesis where it ought to have been.
6700         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
6701
6702         * posix/confstr.c (confstr): Correct STRING_LEN values for
6703         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
6704         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
6705
6706 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
6707
6708         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6709
6710 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
6711
6712         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
6713         clone parameters.
6714
6715         * po/sv.po: Update from translation team.
6716
6717 2003-03-04  Andreas Jaeger  <aj@suse.de>
6718             Ulrich Drepper  <drepper@redhat.com>
6719
6720         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
6721
6722 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
6723
6724         * sysdeps/generic/dl-sysdep.h: Add double include protection.
6725
6726         * po/tr.po: Update from translation team.
6727
6728         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
6729         are holes between the segments.  Only call mprotect to set
6730         proection to PROT_NONE if there are some.
6731
6732         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
6733         Update comment.
6734
6735         * include/sched.h (__clone2): Use ... instead of adding all the
6736         new parameters.
6737
6738 2003-03-03  Roland McGrath  <roland@redhat.com>
6739
6740         * elf/dl-load.c (struct filebuf): Fix typo in last change.
6741
6742         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
6743         PI_STATIC_AND_HIDDEN.
6744
6745 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
6746
6747         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
6748         flags.
6749         * include/sched.h: Update clone2 prototype.
6750
6751 2003-03-03  Andreas Jaeger  <aj@suse.de>
6752
6753         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
6754         (llrint): Use it to correct return type.
6755         (lrint): Likewise.
6756         (lround): Likewise.
6757         (llround): Likewise.
6758
6759 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
6760
6761         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
6762         byte filebuf size.
6763
6764         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
6765         if ccs parameter isn't valid.  Reported by Andreas Schwab.
6766
6767 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6768
6769         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
6770         for system call numbers > 255.
6771         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
6772         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
6773         INTERNAL_SYSCALL): Likewise.
6774         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
6775         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
6776         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
6777         INTERNAL_SYSCALL): Likewise.
6778
6779 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6780
6781         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
6782         array if it is the initial dtv.
6783
6784 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
6785
6786         * po/es.po: Update from translation team.
6787         * po/fr.po: Likewise.
6788         * po/gl.po: Likewise.
6789         * po/sk.po: Likewise.
6790         * po/sv.po: Likewise.
6791
6792         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
6793         * misc/sys/mman.h: Add prototype for remap_file_pages.
6794         * sysdeps/generic/remap_file_pages.c: New file.
6795         * misc/Makefile (routines): Add remap_file_pages.
6796         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
6797
6798         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
6799         and MAP_NONBLOCK.
6800         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6801         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
6802         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6803         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6804         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
6805         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
6806         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
6807         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
6808
6809 2003-03-03  Roland McGrath  <roland@redhat.com>
6810
6811         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
6812         * sysdeps/ia64/dl-machine.h: Likewise.
6813         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
6814         argument type.
6815         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
6816
6817         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
6818         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
6819         * locale/Versions (libc: GLIBC_2.3): Move those to ...
6820         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
6821         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
6822         * Versions.def (libc): Add GLIBC_2.3.3 set.
6823
6824         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
6825         * sysdeps/ia64/dl-machine.h: Update decl.
6826
6827 2003-03-03  Andreas Jaeger  <aj@suse.de>
6828
6829         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
6830
6831 2003-03-02  Roland McGrath  <roland@redhat.com>
6832
6833         * scripts/abilist.awk: Reject data items with apparent 0 size.
6834
6835         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
6836         after foo.* as if it were a duplicate.
6837
6838         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
6839
6840 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
6841
6842         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
6843
6844         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
6845         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
6846         if not already defined.  Use SYSDEP_GETRES to allow other files to
6847         provide alternative implementations.
6848         * sysdeps/unix/sysv/linux/clock_getres.c: New file
6849         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
6850         if not already defined.  Use SYSDEP_GETTIME to allow other files to
6851         provide alternative implementations.
6852         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
6853         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
6854         if not already defined.  Use SYSDEP_GETTIME to allow other files to
6855         provide alternative implementations.
6856         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
6857         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
6858         other files to provide alternative implementations.  Rearrange
6859         tests for invalid parameters.
6860         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
6861         * sysdeps/unix/sysv/linux/sysconf.c: New file.
6862         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6863         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
6864         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
6865         _POSIX_MONOTONIC_CLOCK.
6866
6867 2003-03-02  Roland McGrath  <roland@redhat.com>
6868
6869         * scripts/merge-abilist.awk: More checks for bogus input.
6870         Uniquify duplicate config names.
6871
6872         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
6873
6874         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
6875         from dl_reloc_overflow, make global.
6876         (__process_machine_rela): Update callers.
6877         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
6878         Add attribute_hidden to __process_machine_rela decl.
6879         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
6880
6881         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
6882         variable.
6883
6884         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
6885         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
6886         (elf_machine_rela): Clean up.
6887
6888         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
6889
6890         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
6891         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
6892         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
6893         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
6894         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
6895         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
6896         new relocs for TLS.
6897
6898         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
6899         macros out of [SHARED].
6900         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
6901
6902         * elf/elf.h: Define R_PPC_* relocs for TLS support.
6903         Clean up R_PPC64_* macro definition comments.
6904
6905         * configure.in: In "running configure fragment for" message,
6906         omit $srcdir from the name if we prepended it.
6907         * configure: Regenerated.
6908
6909         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
6910         From Jakub Jelinek <jakub@redhat.com>.
6911
6912         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
6913         which duplicated the O_DIRECT defn.
6914
6915 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
6916
6917         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
6918         random functions.
6919
6920 2003-03-01  Andreas Schwab  <schwab@suse.de>
6921
6922         * resolv/Makefile (tests): Don't depend on
6923         $(objpfx)mtrace-tst-leaks when cross compiling.
6924
6925         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
6926         __libc_stack_end through GOT since it is a global symbol.
6927
6928 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
6929
6930         * argp/argp.h: Fix a typo.
6931         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
6932
6933         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
6934
6935 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
6936
6937         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
6938         char *.
6939         (get_subexp): Likewise.
6940
6941 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
6942
6943         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
6944
6945 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
6946
6947         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
6948
6949 2003-02-27  Roland McGrath  <roland@redhat.com>
6950
6951         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
6952         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
6953         repeat it and avoids the test for the common case.
6954         Clean up and fix calculations for TLS relocs.
6955
6956         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
6957         * sysdeps/powerpc/dl-tls.h: ... here.
6958         (TLS_TP_OFFSET): New macro.
6959
6960         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
6961
6962 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
6963
6964         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
6965         code generation changes in recent gcc.
6966
6967 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
6968
6969         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
6970         Rename argument to avoid symbol conflict.
6971
6972         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
6973         [__USE_GNU] (O_DIRECT): New macro.
6974
6975 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
6976
6977         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
6978         unwind info.
6979
6980 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
6981
6982         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
6983         initializer anymore now that res_thread_freeres is more careful.
6984
6985         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
6986         except the PKTINFO.  Reset interface in PKTINFO.
6987         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
6988
6989 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
6990
6991         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
6992         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
6993         Define.
6994         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
6995         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
6996         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
6997         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
6998
6999         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
7000         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
7001
7002 2003-02-25  Andreas Jaeger  <aj@suse.de>
7003
7004         * manual/memory.texi (Malloc Tunable Parameters): Clarify
7005         behaviour of M_MMAP_THRESHOLD.
7006
7007 2003-02-25  Roland McGrath  <roland@redhat.com>
7008
7009         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
7010         zero, inidicating _res was not initialized yet.
7011
7012 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
7013
7014         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
7015         test.
7016
7017 2003-02-24  Roland McGrath  <roland@redhat.com>
7018
7019         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
7020
7021 2003-02-23  Roland McGrath  <roland@redhat.com>
7022
7023         * sysdeps/posix/pause.c: New file.
7024         * sysdeps/unix/common/pause.c: File removed.
7025
7026 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
7027
7028         * sysdeps/generic/bits/confname.h: Remove #ifs.
7029
7030         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
7031         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
7032
7033         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
7034         element to -1.
7035
7036 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
7037
7038         * sysdeps/generic/dl-sysdep.c: Avoid warning.
7039
7040 2003-02-22  Roland McGrath  <roland@redhat.com>
7041
7042         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
7043         * resolv/Makefile (tests): Add tst-leaks.
7044         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
7045         (tst-leaks-ENV): New variable.
7046         ($(objpfx)mtrace-tst-leaks): New target.
7047         (tests): Depend on it.
7048
7049         * include/libc-internal.h: Declare __libc_thread_freeres.
7050
7051         * Makerules: Fix last change to use $($(subdir)-version) when set.
7052
7053         * Makerules (install-lib-nosubdir): Depend on installed
7054         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
7055         regardless of the libfoo.so target's dependencies.
7056
7057         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
7058         Use that in $(MAKE) calls.
7059
7060 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
7061
7062         * catgets/gencat.c (read_input_file): Collision between
7063         auto-assigned numbers and user-defined nubmers is not fatal.
7064         Handle it.
7065         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
7066         * catgets/Makefile: Add rules to run test2.msg test.
7067         * catgets/test2.msg: New file.
7068
7069         * catgets/gencat.c (main): Return 1 if messages have been printed.
7070
7071         * iconv/iconv_prog.c (main): Unify messages.
7072
7073         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
7074         when shifting retval.
7075         * stdlib/tst-strtod.c (main): Add strtold test case.
7076         Reported by Fred J. Tydeman <tydeman@tybor.com>.
7077
7078 2003-02-21  Roland McGrath  <roland@redhat.com>
7079
7080         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
7081         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
7082         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
7083
7084         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
7085         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
7086         (res_thread_freeres): New function, on __libc_thread_subfreeres and
7087         __libc_subfreeres.
7088
7089         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
7090         * malloc/thread-freeres.c: New file.
7091         * malloc/Makefile (aux): Add it.
7092         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
7093         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
7094         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
7095
7096         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
7097         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
7098
7099 2003-02-21  Roland McGrath  <roland@frob.com>
7100
7101         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
7102
7103         * iconvdata/Makefile (tests): Add bug-iconv3 only if
7104         [$(have-thread-library) = yes].
7105
7106 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
7107
7108         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
7109
7110         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
7111         not chechk for errors (unless testing for 32bit variant).
7112         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
7113         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
7114         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
7115
7116 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
7117
7118         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
7119         Check for signed overflow, not unsigned.
7120
7121         * sysdeps/sparc/sparc64/elf/configure.in: New file.
7122         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
7123         Use -fcall-used-g6, not -fcall-used-g7.
7124
7125 2003-02-21  Andreas Jaeger  <aj@suse.de>
7126
7127         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
7128         mode.
7129
7130         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
7131         clear whole mxcsr but only exceptions.
7132
7133 2003-02-21  Roland McGrath  <roland@redhat.com>
7134
7135         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
7136         for libfoo.so that need $(make-link) rules.
7137
7138 2003-02-21  Roland McGrath  <roland@frob.com>
7139
7140         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
7141         to match existing struct stat layout in mig protocols.
7142
7143 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7144
7145         * version.h (VERSION): Bump to 2.3.2.
7146
7147         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
7148         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
7149         and dl-sysdep.h.
7150         * sysdeps/generic/Dist: Add sysdep-cancel.h.
7151         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
7152         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
7153         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
7154         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
7155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
7156         ucontext_i.h.
7157         * Makefile (distribute): Add include/stubs-prologue.h,
7158         include/gnu/stubs.h, scripts/merge-abilist.awk, and
7159         scripts/extract-abilist.awk.
7160
7161 2003-02-20  Roland McGrath  <roland@redhat.com>
7162
7163         * math/Makefile (distribute): Don't add generated files.
7164
7165 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7166
7167         * math/Makefile: Rearrange variable definitions slightly to get
7168         definition in the right order.
7169
7170 2003-02-20  Roland McGrath  <roland@redhat.com>
7171
7172         * Makerules: Clean up conditional around include of tls.make.
7173         * Make-dist: Export generating=t to prevent using that.
7174         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
7175
7176 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7177
7178         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
7179         around in search if port IPPORT_RESERVED/2 has been test.
7180
7181 2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
7182
7183         * posix/regcomp.c: Remove inclusions.
7184         * posix/regexec.c: Likewise.
7185         * posix/regex_internal.c: Likewise.
7186         * posix/regex_internal.h: Add inclusions here.
7187         * posix/regex.c: Only include sys/types.h before regex.h.  Include
7188         regex_internal.h here.  Include regex_internal.c before regcomp.c
7189         and regexec.c (might expose more opportunities to the C compiler).
7190
7191         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
7192
7193         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
7194         [!_LIBC] (__wcrtomb): New definition.
7195         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
7196         HAVE_LOCALE_H as well.
7197
7198 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
7199
7200         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
7201         patch to check for system call errors.
7202
7203 2002-07-24  Philip Blundell  <philb@gnu.org>
7204
7205         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
7206         on unknown systems.
7207
7208 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7209
7210         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
7211         * sysdeps/unix/sysv/linux/kernel-features.h
7212         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
7213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
7214         if possible.
7215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
7216         interprocedure branches.
7217         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
7218         * sysdeps/powerpc/nofpu/Dist: ...here.
7219         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
7220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
7221         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
7222         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
7223         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
7224
7225 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
7226
7227         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
7228
7229 2003-02-20  Philip Blundell  <philb@gnu.org>
7230
7231         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
7232         missing arguments to INTERNAL_SYSCALL_ERROR_P and
7233         INTERNAL_SYSCALL_ERRNO.
7234
7235 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7236
7237         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
7238         for __ASSUME_32BITUIDS.
7239
7240 2003-02-20  Andreas Schwab  <schwab@suse.de>
7241
7242         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
7243         POSIX_MADV_* constants.
7244
7245 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7246
7247         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
7248         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
7249         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
7250         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
7251
7252 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
7253
7254         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
7255
7256 2003-02-16  Roland McGrath  <roland@redhat.com>
7257
7258         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
7259
7260 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
7261
7262         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
7263         decimal input digits.
7264         * stdlib/tst-strtod.c (main): Add test for strtof bug.
7265
7266 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
7267
7268         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
7269         invalid file descriptors and missing access permissions.
7270
7271 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
7272
7273         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
7274         been found.
7275
7276         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
7277         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
7278         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
7279         and LOGIN_NAME_MAX.
7280
7281 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
7282             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7283
7284         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
7285         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
7286         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
7287         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
7288         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
7289
7290 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7291
7292         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
7293         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
7294         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
7295         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
7296         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
7297         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
7298
7299         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
7300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
7301         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
7302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
7303
7304         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
7305         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
7306         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
7307         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
7308
7309 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
7310
7311         * nss/getent.c (print_hosts): Print all IP addresses of one host.
7312
7313 2003-02-15  Roland McGrath  <roland@frob.com>
7314
7315         * sysdeps/mach/hurd/tls.h: New file.
7316         * sysdeps/mach/hurd/i386/tls.h: New file.
7317
7318         * mach/errsystems.awk: Include <errno.h> in generated output.
7319
7320         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
7321         use target mach-before-compile instead of generated.
7322         (mach-before-compile): New target.
7323         * Makerules: Disable use of tls.make if $(generating) is set.
7324         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
7325         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
7326         mach-shortcuts.h so mach/ generation happens before hurd/.
7327
7328 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
7329
7330         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
7331         of demorm correctly if low word is zero.
7332         Reported by Fred J. Tydeman <tydeman@tybor.com>.
7333         * math/libm-test.inc (nextafter_test): New test, but disabled due
7334         to gcc bug.
7335
7336         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
7337         counter and only call __exit_thread if this is not the last thread.
7338
7339 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
7340
7341         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
7342         subtracting map->l_tls_offset.
7343
7344 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
7345
7346         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
7347         _CS_GNU_LIBPTHREAD_VERSION.
7348         * posix/conststr.c: Handle these new values.
7349         * posix/getconf.c: Likewise.
7350
7351         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
7352         masking of version index.
7353         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
7354
7355 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
7356
7357         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
7358         correctly.  Reported by Thorsten Kukuk.
7359
7360 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
7361
7362         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
7363         _BSD_SOURCE to compiler.
7364         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
7365         Patches by Alan Modra.
7366
7367 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
7368
7369         * io/ftwtest.c: Get current working directory before and after the
7370         nftw call and make sure they match.
7371
7372 2003-02-08  Jim Meyering  <jim@meyering.net>
7373
7374         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
7375         the current directory, not just when DIR contains a slash.
7376         Reported by Manoj Srivastava.
7377
7378 2003-02-07  Jim Meyering  <jim@meyering.net>
7379
7380         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
7381         Include autoconf-recommended block of dirent/NAMELEN-related
7382         definitions and includes.  Use NAMELEN throughout, rather than
7383         _D_EXACT_NAMLEN.
7384         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
7385         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
7386         (stpcpy): Declare, if necessary.
7387         (mempcpy): Define, if necessary.
7388         [!_LIBC] (__stpcpy, __mempcpy): Define.
7389         [!_LIBC] (LXSTAT, XSTAT): Define.
7390         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
7391         (find_object): Don't use c99-style struct initializer.
7392         Tweak wording in a couple comments.
7393
7394 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7395
7396         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
7397         for SH.
7398         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
7399         after the trapa instruction.
7400         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
7401         parameters.
7402         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
7403         (NEED_SYSCALL_INST_PAD): Define.
7404         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
7405         avoid to use definition for the kernel.
7406         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7407         Save and restore the frame pointer.
7408         (SYSCALL_INST_PAD): Define.
7409         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7410         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
7411         after trapa instruction.
7412         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7413         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7414
7415 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
7416
7417         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
7418         so that it can have aliases.
7419         * inet/herrno.c (h_errno): Put it into .bss not .data section.
7420
7421 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
7422
7423         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
7424         (profile_fixup): Likewise.
7425         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
7426
7427 2002-11-24  Robert Love  <rml@tech9.net>
7428
7429         * posix/sched.h: Second parameter of sched_setaffinity and
7430         sched_getaffinity is `unsigned int', not `unsigned long'.
7431         * sysdeps/generic/sched_setaffinity.c: Likewise.
7432         * sysdeps/generic/sched_getaffinity.c: Likewise.
7433
7434 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
7435
7436         * debug/catchsegv.sh: Fix typo in error messsage.
7437         Reported by John Levon <levon@movementarian.org>.
7438
7439         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
7440         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
7441         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
7442         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7444         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7445         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7446
7447         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
7448         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
7449
7450 2003-02-05  Jim Meyering  <jim@meyering.net>
7451
7452         Fix a heap-corrupting bug.
7453         * io/ftw.c: Include <limits.h>.
7454         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
7455         (process_entry): Allocate enough space to hold the resulting
7456         file name.  Don't presume that 2*dirbufsize is enough.
7457         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
7458         it is guaranteed to be defined.
7459
7460 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
7461
7462         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
7463         * iconvdata/bug-iconv3.c: New file.
7464
7465 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7466
7467         * sysdeps/unix/sysv/linux/s390/system.c: New file.
7468
7469 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
7470
7471         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
7472         check.
7473         * config.h.in (BROKEN_SPARC_WDISP22): Add.
7474
7475 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
7476
7477         * sysdeps/i386/i686/memmove.S: New file.
7478
7479 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7480
7481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
7482         Include kernel-features.h
7483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
7484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
7485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
7486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
7487
7488 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
7489
7490         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
7491
7492 2003-01-25  Jim Meyering  <jim@meyering.net>
7493
7494         * io/ftw.c (object_compare): Compare inode numbers before device
7495         numbers, since the former are much more likely to differ.
7496
7497 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
7498
7499         * time/tzfile.c (__tzfile_compute): Change return value type to
7500         void.  Adjust return statements.
7501         * include/time.h (__tzfile_compute): Adjust prototype.
7502
7503 2003-02-01  Jim Meyering  <jim@meyering.net>
7504
7505         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
7506         always returns 1.
7507
7508 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7509
7510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7511         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
7512
7513 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7514
7515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
7516         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
7517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
7518         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
7519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
7520         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
7521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
7522         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
7523
7524 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
7525
7526         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
7527         back to 2.4.19 for powerpc64.
7528         * sysdeps/unix/sysv/linux/kernel-features.h
7529         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
7530         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
7531
7532 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
7533
7534         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
7535         platforms with strange alignment requirements on wchar_t.
7536
7537 2003-01-31  Andreas Schwab  <schwab@suse.de>
7538
7539         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
7540         aliases, already added by make-syscalls.sh.
7541         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7542         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7543         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7544         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7545         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7546         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7547         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7548         * sysdeps/unix/inet/syscalls.list: Likewise.
7549         * sysdeps/unix/syscalls.list: Likewise.
7550
7551 2003-01-31  Andreas Schwab  <schwab@suse.de>
7552
7553         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
7554         any more.
7555
7556 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7557
7558         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
7559         not l to load tls from stack.
7560
7561 2003-01-30  Roland McGrath  <roland@redhat.com>
7562
7563         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
7564         null argument before all else.
7565         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
7566
7567 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7568
7569         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
7570         Move to RESOLVE protected part of the header.
7571         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
7572         Likewise.
7573
7574 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
7575
7576         * stdio-common/Makefile (tests): Add bug15.
7577         (bug15-ENV): Define.
7578         * stdio-common/bug15.c: New file.
7579
7580 2002-10-07  Wolfram Gloger  <wg@malloc.de>
7581
7582         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
7583         to foreign sbrk()'s if arena is contiguous.  Bug report from
7584         Bruno Haible <bruno@clisp.org>.
7585
7586 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7587
7588         * sysdeps/s390/libc-tls.c: Include stdlib.h.
7589
7590 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7591
7592         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
7593         ps.__count.
7594
7595 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
7596
7597         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
7598         restoring of %r6.
7599         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
7600         64-bit load.
7601         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
7602
7603 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
7604
7605         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
7606         (allocate_static_tls): ...here.  Add __attribute_noinline__.
7607         Don't return on failure.
7608         (_dl_reloc_bad_type): Add __attribute_noinline__.
7609         * elf/do-rel.h (elf_dynamic_do_rel): Add
7610         __attribute__((always_inline)).
7611         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
7612         elf_machine_rel_relative, elf_machine_rela_relative,
7613         elf_machine_lazy_rel): Add prototypes with
7614         __attribute__((always_inline)).
7615
7616 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
7617
7618         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
7619
7620 2003-01-29  Roland McGrath  <roland@redhat.com>
7621
7622         * configure.in: Barf if configured in $srcdir.
7623
7624 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
7625
7626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7627         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
7628
7629 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7630
7631         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
7632         clone parameters to match the order used on ia32.
7633         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
7634
7635 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7636
7637         * elf/elf.h: Add new s390 relocs.
7638         * elf/tls-macros.h: Add s390 versions.
7639         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
7640         * sysdeps/s390/dl-tls.h: New file.
7641         * sysdeps/s390/libc-tls.c: New file.
7642         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
7643         relocs for class PLT.
7644         (elf_machine_rela): Handle TLS relocs.
7645         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7646         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
7647         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7648         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
7649         CLONE_CHILD_*TID flags.
7650         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
7651         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
7652         bit offset.
7653         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7654         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7655         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
7656         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
7657         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
7658         Likewise.
7659         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
7660         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
7661         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
7662         variants.
7663         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
7664         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
7665         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
7666         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
7667         variants.
7668
7669 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
7670
7671         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
7672         from __libc_pause.  Implement using sigsuspend.
7673         (__libc_pause): Call do_pause to do the real work.
7674
7675         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
7676         sig_or_mask parameter is is_sig != 0.
7677
7678 2003-01-21  Philip Blundell  <philb@gnu.org>
7679
7680         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
7681
7682 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
7683
7684         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
7685
7686 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
7687
7688         * stdio-common/bug14.c: Use official name for the locale.
7689
7690         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
7691         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
7692         instead of __libc_cleanup_region_end.
7693
7694         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
7695         as first parameter to __libc_cleanup_region_start.
7696
7697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7698         (__fe_nomask_env): Use __prctl not prctl.
7699         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
7700         prctl syscall.
7701
7702         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
7703
7704         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
7705
7706         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
7707         wrap-around in test.
7708
7709 2003-01-26  Andreas Schwab  <schwab@suse.de>
7710
7711         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
7712         compatibility symbols.  Remove INTDEF for __divdi3.
7713         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
7714         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
7715         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
7716         define.
7717         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
7718
7719 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
7720
7721         * elf/tls-macros.h: Add SPARC 32-bit definitions.
7722         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
7723         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
7724         for the first half of the header.  Include tls.h.
7725         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
7726         relocs too.
7727         (elf_machine_rela): Handle TLS relocs.
7728         * sysdeps/sparc/dl-tls.h: New file.
7729
7730         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
7731         support.
7732
7733         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
7734         * sysdeps/sparc/sparc32/memchr.S: Likewise.
7735         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7736         * sysdeps/sparc/sparc32/strcat.S: Likewise.
7737         * sysdeps/sparc/sparc32/strchr.S: Likewise.
7738         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
7739         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
7740         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
7741         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7742         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7743         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
7744         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7745         * sysdeps/sparc/sparc64/strcat.S: Likewise.
7746         * sysdeps/sparc/sparc64/strchr.S: Likewise.
7747         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
7748         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
7749         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7750         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7751         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7752         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7753
7754 2003-01-24  Andreas Schwab  <schwab@suse.de>
7755
7756         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
7757         elements, and process them backwards.
7758         * elf/Makefile ($(objpfx)tst-array4): New target.
7759         ($(objpfx)tst-array4.out): Likewise.
7760         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
7761         * elf/tst-array4.c: New file.
7762         * elf/tst-array4.exp: Likewise.
7763
7764 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
7765
7766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
7767
7768 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
7769
7770         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
7771         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
7772         cancellation handling and handle both __NR_pread64 and __NR_pread.
7773         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7774         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
7775         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
7776         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7777         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
7778         case, use register names consistently.
7779
7780 2003-01-27  Wolfram Gloger  <wg@malloc.de>
7781
7782         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
7783         pointer, not of the computed chunk.  Bug report from Carlos
7784         O'Donell <carlos@baldric.uwo.ca>.
7785
7786 2003-01-25  Andreas Schwab  <schwab@suse.de>
7787
7788         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
7789         addressing to save GOT entries.
7790
7791 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
7792
7793         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
7794         inline_syscall1, inline_syscall2, inline_syscall3,
7795         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
7796         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
7797         __attribute__((unused)) to ChEcK.
7798
7799 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7800
7801         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
7802         Fix inline assembler constraints.
7803         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
7804         Likewise.
7805
7806         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
7807         -fPIC.
7808
7809 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
7810
7811         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
7812         compute the cosine, not the sine, even if x > 0.8.
7813
7814 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
7815
7816         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
7817         _nss_nis_setspent.  Work around the different prototypes.
7818         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
7819         internal_nis_endrpcent.
7820         (internal_nis_endrpcent): Change return type to void.  Change callers.
7821         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
7822         _nss_nis_setpwent.  Work around the different prototypes.
7823         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
7824         of the function to...
7825         (internal_nis_endprotoent): ... here.  New function.
7826         (internal_nis_setprotoent): Use internal_nis_endprotoent.
7827         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
7828         _nss_nis_setnetent.  Work around the different prototypes.
7829         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
7830         of the function to...
7831         (internal_nis_endnetgrent): ... here.  New function.
7832         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
7833
7834 2003-01-19  Jim Meyering  <jim@meyering.net>
7835
7836         * time/strftime.c: (widen): Merge nearly-identical definitions.
7837         (nl_get_alt_digit) [! defined my_strftime]: Define.
7838         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
7839         _nl_get_alt_digit and _nl_get_walt_digit.
7840
7841 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
7842
7843         * time/strftime.c (my_strftime): Handle very large width
7844         specifications for numeric values correctly.  Improve checks for
7845         overflow.
7846         * time/Makefile (tests): Add tst-strftime.
7847         * time/tst-strftime.c: New file.
7848
7849 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
7850
7851         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
7852         _nss_nis_sethostent.  Work around the different prototypes.
7853         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
7854         _nss_nis_setgrent.  Work around the different prototypes.
7855         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
7856         function.  Split out from _nss_nis_endetherent.
7857         (internal_nis_setetherent): Use internal_nis_endetherent instead of
7858         duplicating the code.
7859         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
7860         of _nss_nis_setaliasent.
7861         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
7862         internal_nis_endservent code, don't duplicate it.
7863
7864         * inet/rexec.c (rexec_af): Protect socket operations with
7865         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
7866         * inet/rcmd.c (rcmd_af): Likewise.
7867
7868 2003-01-17  Roland McGrath  <roland@redhat.com>
7869
7870         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
7871         Add test of value 0.80190127184058835.
7872
7873         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
7874
7875 2003-01-17  Richard Henderson  <rth@redhat.com>
7876
7877         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
7878         relocs for class PLT.
7879         * sysdeps/alpha/libc-tls.c: New file.
7880         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
7881         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
7882
7883 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
7884
7885         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
7886         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
7887         on _dl_static_lock.
7888
7889 2003-01-17  Andreas Jaeger  <aj@suse.de>
7890
7891         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
7892
7893 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
7894
7895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
7896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
7897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
7898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
7899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
7900         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
7901         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
7902         is 2.4.21.
7903
7904 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
7905
7906         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
7907         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
7908         buffers.
7909
7910         * sysdeps/generic/sysconf.c: Unconditionally implement
7911         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
7912         * sysdeps/posix/sysconf.c: Likewise.
7913
7914 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
7915
7916         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
7917         set *err to the returned error, not to REG_ESPACE unconditionally.
7918         (build_word_op): Likewise.
7919         * posix/Makefile (tests): Add bug-regex16.
7920         * posix/bug-regex16.c: New test.
7921
7922 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
7923
7924         * elf/dl-load.c (_dl_map_object_from_fd): Use
7925         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
7926         been already initialized.
7927
7928 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
7929
7930         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
7931
7932 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
7933
7934         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
7935         allocated too.  Reported by Al Viro <aviro@redhat.com>.
7936
7937 2003-01-16  Roland McGrath  <roland@redhat.com>
7938
7939         Tweak merged .abilist file format to merge duplicate symbols in
7940         different sets into multi-version stanzas with new "| SET regexp..."
7941         header continuation lines.
7942         * scripts/merge-abilist.awk: Rewritten for new format.
7943         * scripts/extract-abilist.awk: Likewise.
7944
7945 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
7946
7947         * nscd/connections.c (nscd_run): Remove bogus return which isn't
7948         necessary with gcc 3.2+.
7949         (nscd_init): Don't use error() to print message, use dbg_log.
7950
7951         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
7952         expected size into state.
7953         (UNPACK_BYTES): Do the reverse.
7954         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
7955         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
7956         Reported by Al Viro <aviro@redhat.com>.
7957
7958         * stdio-common/Makefile (tests): Add bug14.
7959         * stdio-common/bug14.c: New file.
7960
7961         * stdio-common/vfscanf.c: When recognizing multibyte characters in
7962         string reset the byte counter after mbrtowc reported it is not a
7963         partial character.  Reported by Al Viro <aviro@redhat.com>.
7964
7965 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
7966
7967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
7968         sysdep-cancel.h, not sysdep.h.
7969
7970 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
7971
7972         * nscd/connections.c (nscd_run): Protect accept call with
7973         TEMP_FAILURE_RETRY.
7974
7975 2003-01-15  Andreas Schwab  <schwab@suse.de>
7976
7977         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
7978         (common-generated): Add s-proto-bp.d.
7979         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
7980         of bp thunks.
7981         * sysdeps/unix/s-proto-bp.S: New file.
7982         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
7983         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
7984         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
7985
7986 2003-01-15  Roland McGrath  <roland@redhat.com>
7987
7988         * Makerules: Use -include for tls.make, suppresses warning.
7989         Move gen-as-const-headers rules up so before-compile is set in time.
7990         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
7991
7992 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
7993
7994         * nscd/nscd.c (main): Make code to close all file descriptors
7995         faster and more robust.
7996
7997         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
7998         request with one writev call.  Protect all read calls with
7999         TEMP_FAILURE_RETRY.
8000         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8001         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8002
8003         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
8004         Protect writev calls with TEMP_FAILURE_RETRY.
8005         * nscd/grpcache.c: Likewise.
8006         * nscd/pwdcache.c: Likewise.
8007
8008         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
8009         IPv6 address in debug output.
8010
8011 2003-01-14  Roland McGrath  <roland@redhat.com>
8012
8013         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
8014         $(objpfx) directories, and get rid of vpath directives.  The previous
8015         arrangement resulted in files being written to the source directories
8016         when run in a clean build.  Find all .abilist files in $(..)abilist/.
8017         (update-abi-%): Likewise.
8018         (generated): Don't add .symlist files, they'll be intermediates.
8019
8020         * sysdeps/generic/init-first.c: Add a comment.
8021
8022         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
8023
8024         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
8025         #includes and expressions.
8026
8027         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
8028         config list when it already contains cpu-.*-os.* without / part.
8029
8030         * Makerules (sed-remove-dotdot): New variable.
8031         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
8032         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
8033         (check-abi-config): New variable, append /tls or /notls to the tuple.
8034         (check-abi-%): Use that for -v config value.
8035         Find .abilist files in abilist/libfoo.abilist, not in subdir.
8036         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
8037
8038 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
8039
8040         * manual/install.texi: Correct description of header preparation for
8041         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
8042
8043 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
8044
8045         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
8046         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8047         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
8048
8049 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8050
8051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8052         (INTERNAL_SYSCALL): Make use of ERR parameter.
8053         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8054         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8055         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
8057
8058 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
8059
8060         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
8061         == IPPROTO_TCP.
8062         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
8063
8064         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
8065         Fix entry for bit 31.
8066
8067         * iconvdata/Makefile: Add rules to build IBM866NAV.
8068         * iconvdata/ibm866nav.c: New file.
8069         * iconvdata/tst-tables.sh: Add IBM866NAV.
8070         * iconvdata/gconv-modules: Add entries for IBM866NAV.
8071
8072 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
8073
8074         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
8075         to test void* parameters.
8076
8077         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
8078         source pointer before dereferencing.
8079         (__STRING_SMALLL_GET32): Likewise.
8080         (__memset_gc): Add missing parenthesis around macro arguments.
8081         Patch by Denis Zaitsev <zzz@cd-club.ru>.
8082
8083         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
8084         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
8085
8086 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
8087
8088         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
8089         defining.
8090
8091 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8092
8093         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
8094         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
8095         here.
8096         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
8097
8098 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8099
8100         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
8101         from here...
8102         (PSEUDO): ... to here.
8103         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
8104         from here...
8105         (PSEUDO): ... to here.
8106
8107 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
8108
8109         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
8110         dirent64 instead of struct dirent for dirent.  Call readdir64
8111         instead of readdir.
8112
8113         * locale/programs/locfile.c (siblings_uncached): Use struct
8114         dirent64 instead of struct dirent for other_dentry.  Call
8115         readdir64 instead of readdir.
8116
8117         * elf/ldconfig.c (direntry): Change type to struct dirent64.
8118         (search_dir): Use readdir64 instead of readdir.
8119         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
8120
8121 2003-01-12  Roland McGrath  <roland@redhat.com>
8122
8123         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
8124         not strtol.  The former is usable in ld.so, the latter not.
8125
8126         * include/fcntl.h: Declare __libc_creat.
8127
8128         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
8129         libhurduser-link.so-no-z-defs): New variables.
8130
8131         * malloc/malloc.c: Revert last change.
8132         * malloc/malloc.h (_int_*): Move these decls to ...
8133         * include/malloc.h: ... here.  Add attribute_hidden.
8134         (_int_valloc): Declare it too.
8135
8136 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8137
8138         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
8139         search for removed searchlist.  Reported by Roland McGrath.
8140
8141         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
8142         given as start file.
8143
8144         * io/ftw.c (ftw_startup): Use correct name in check for symlink
8145         without existing target.  Patch by Jim Meyering.
8146
8147         * Makerules (build-shlib-helper): Don't use -z defs linker option
8148         if no-z-defs is defined either.
8149
8150 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8151
8152         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
8153         file.
8154
8155 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8156
8157         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
8158         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8159
8160 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8161
8162         * io/ftwtest-sh: Add test case for relative path with /. at the end.
8163
8164 2003-01-12  Jim Meyering  <jim@meyering.net>
8165
8166         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
8167         use the basename if we've already chdir'd into its parent directory.
8168
8169 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8170
8171         * io/ftw.c (process_entry): Use relative path when using chdir()
8172         to change directory after call to ftw_dir.
8173         * io/ftwtest-sh: Add test for relative path argument to nftw()
8174         with FTW_CHDIR option.
8175
8176 2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8177
8178         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8179         Define for powerpc.
8180         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
8181         into account.
8182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8183         (INTERNAL_SYSCALL): Make use of ERR parameter.
8184         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8185         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8186         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
8188
8189 2002-01-09  Richard Henderson  <rth@redhat.com>
8190
8191         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
8192         DTPREL64 and TPREL64 without loadbase applied.
8193
8194 2002-01-09  Richard Henderson  <rth@redhat.com>
8195
8196         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
8197         for NOT_IN_libc.
8198
8199         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
8200         * sysdeps/unix/alpha/sysdep.h: ... here.
8201         (PSEUDO_LOADGP): Remove.
8202         (PSEUDO_PROLOGUE): Load GP in non-pic case.
8203         (SYSCALL_ERROR_LABEL): New.
8204         (PSEUDO): Use it in error branch.
8205         (PSEUDO_END): Add $syscall_error label.
8206
8207 2003-01-12  Andreas Jaeger  <aj@suse.de>
8208
8209         * math/bits/mathcalls.h: Round is a const function.
8210
8211 2003-01-11  Jim Meyering  <jim@meyering.net>
8212
8213         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
8214         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
8215         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
8216         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
8217         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
8218         [!_LIBC] (internal_function, dirent64, MAX): Define.
8219         (__set_errno): Define if not already defined.
8220         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
8221         the basename, not the entire file name.
8222         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
8223         the basename, not the entire file name.
8224
8225 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8226
8227         * string/tester.c (test_strcpy): Disable last added strcpy until
8228         it is fixed.
8229
8230 2003-01-11  Philip Blundell  <philb@gnu.org>
8231
8232         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
8233
8234 2003-01-11  Andreas Schwab  <schwab@suse.de>
8235
8236         * Makerules: Add vpath for %.dynsym and %.so so that the
8237         implicit rule chaining for check-abi works.
8238
8239 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8240
8241         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8242         Add non-PIC case.
8243
8244 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
8245
8246         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
8247         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
8248         gp is used early.
8249         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
8250         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
8251         Ensure libc.so in DT_NEEDED.
8252         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
8253         CHECK_STATIC_TLS before l_tls_offset use.
8254         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8255         Likewise.
8256         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8257         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
8258         Allocate TLS_PRE_TCB_SIZE bytes below result.
8259         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
8260         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
8261         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
8262         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
8263         bytes below result and add tcb_offset to memsz.
8264         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
8265         * sysdeps/ia64/dl-machine.h: Include tls.h.
8266         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
8267         too.
8268         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
8269         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
8270         * sysdeps/ia64/libc-tls.c: New file.
8271
8272 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
8273
8274         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
8275         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
8276         Fix type.  Move definition out of #if.
8277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
8278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
8279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
8280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
8281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
8282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
8283         support.
8284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
8285         ftruncate64, pread64, pwrite64, truncate64 entries.
8286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8287         (INLINE_SYSCALL): New version that supports function call like
8288         syscalls.  Add __builtin_expect.
8289         (LOADARGS_n): Add argument size safety checks.
8290         (INTERNAL_SYSCALL): New Macro.
8291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
8292         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
8293         redefinition of elf_fpreg_t and elf_fpregset_t.
8294
8295 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
8296
8297         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
8298         simplify test for unloading.  If loader of a DSO is unloaded do not
8299         use its scope anymore.  Fall back to own scope and adjust opencounts.
8300         Fix several comments.
8301         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
8302         the l_searchlist, not only for l_initfini.
8303
8304         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
8305         dependencies if objects cannot be removed.  Remove object with the
8306         definition as not unloadable if necessary.
8307
8308         * elf/reldep6.c: Create relocation dependency before closing the first
8309         module.
8310
8311 2003-01-10  Guido Günther  <agx@sigxcpu.org>
8312
8313         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
8314         * sysdeps/unix/mips/brk.S: Likewise.
8315         * sysdeps/unix/mips/pipe.S: Likewise.
8316
8317 2003-01-10  Andreas Schwab  <schwab@suse.de>
8318
8319         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
8320
8321         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
8322         are known to have the vfork syscall.
8323
8324         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
8325
8326         * sysdeps/unix/sysv/linux/kernel-features.h
8327         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
8328         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
8329         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
8330
8331 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
8332
8333         * elf/Makefile: Add rules to build and run reldep9 test.
8334         * elf/reldep9.c: New file.
8335         * elf/reldep9mod1.c: New file.
8336         * elf/reldep9mod2.c: New file.
8337         * elf/reldep9mod3.c: New file.
8338
8339 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
8340
8341         * elf/Makefile: Add rules to build and run nodelete2 test.
8342         * elf/nodelete2.c: New file.
8343         * elf/nodel2mod1.c: New file.
8344         * elf/nodel2mod2.c: New file.
8345         * elf/nodel2mod3.c: New file.
8346
8347 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
8348
8349         * posix/test-vfork.c (noop): Add __attribute_noinline__.
8350         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
8351         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
8352         defining it.
8353         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
8354         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
8355         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
8356         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
8357         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
8358
8359 2003-01-09  Andreas Schwab  <schwab@suse.de>
8360
8361         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
8362
8363 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
8364
8365         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
8366         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
8367         argument.
8368         (INTERNAL_SYSCALL_DECL): Define.
8369
8370 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
8371
8372         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
8373         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
8374         argument.
8375         (INTERNAL_SYSCALL_DECL): Define.
8376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
8377         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
8378         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8379         (INLINE_SYSCALL): Adjust.
8380         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8381         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8382         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
8383         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8384         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
8385         add err argument to INTERNAL_SYSCALL* macros.
8386         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
8387         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
8388         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
8389         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
8390         Likewise.
8391         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
8392         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
8393         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
8394
8395 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
8396
8397         Unify symbols in user namespace exported by libc.so and libc.a.
8398         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
8399         argp_fmtstream_free, and argp_fmtstream_printf.
8400         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
8401         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
8402         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
8403         argp_fmtstream_point.
8404         * gmon/gmon.c: Don't define write_profiling.
8405         * libio/genops.c: Don't define _cleanup.
8406
8407         * intl/explodename.c (_nl_find_language.c): Mark as static.
8408         * intl/loadinfo.h: Remove _nl_find_language prototype.
8409
8410         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
8411         * libio/libioP.h: Remove declaration.
8412
8413         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
8414         * libio/libioP.h: Remove declaration.
8415
8416         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
8417         * sysdeps/generic/framestate.c: Define STATIC before including
8418         unwind-dw2.c.
8419
8420         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
8421
8422 2003-01-06  Philip Blundell  <philb@gnu.org>
8423
8424         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
8425         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
8426
8427         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
8428         directive.
8429         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
8430         (SYSCALL_ERROR): New.
8431         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
8432         handling code.
8433         (INTERNAL_SYSCALL): Define.
8434         (INLINE_SYSCALL): Use it.
8435         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8436         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
8437         SYSCALL_ERROR in place of __syscall_error.
8438
8439 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
8440
8441         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
8442         __bswap_32, __bswap_64): Put x into temporary variable
8443         to avoid warnings.
8444         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
8445         (inline) functions.
8446         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
8447         __bswap_32, __bswap_64): Put x into temporary variable
8448         to avoid warnings.
8449         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
8450         (inline) functions.
8451         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
8452         Likewise.
8453
8454 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
8455
8456         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
8457         alias.
8458
8459 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
8460
8461         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
8462         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
8463
8464 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
8465
8466         * math/libm-test.inc (significand_test): New function.
8467         (main): Call it.
8468
8469 2003-01-06  Roland McGrath  <roland@redhat.com>
8470
8471         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
8472         arguments.
8473         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
8474         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
8475         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
8476
8477         * string/tester.c (test_strcpy): Add test with `void *' arguments.
8478
8479 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
8480
8481         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
8482         return significand and not the exponent.
8483         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8484
8485         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
8486         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
8487
8488         * malloc/malloc.c: Mark all _int_* functions as static.
8489
8490 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
8491
8492         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
8493         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
8494         handling.
8495         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
8496
8497 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8498
8499         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
8500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
8501         support.
8502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
8503         ftruncate64, truncate64, pread64 and pwrite64 entries.
8504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8505         (INLINE_SYSCALL): Add __builtin_expect.
8506         (LOADARGS_n): Add argument size safety checks.
8507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
8508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
8509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
8510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
8511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
8512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
8513
8514 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
8515
8516         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
8517         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
8518         (LIBC_CANCEL_HANDLED): Add.
8519
8520         * sysdeps/unix/sysv/linux/alpha/sysdep.h
8521         (inline_syscall_r0_constraint): Rename to...
8522         (inline_syscall_r0_out_constraint): ... this.  Add =.
8523         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
8524
8525 2003-01-06  Andreas Schwab  <schwab@suse.de>
8526
8527         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
8528         sure this is always inlined.
8529         (elf_machine_rela): Likewise.
8530
8531         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
8532
8533 2003-01-04  Roland McGrath  <roland@redhat.com>
8534
8535         * Makeconfig (+mkdep): Add -MP flag.
8536         Suggested by Art Haas <ahaas@airmail.net>.
8537
8538 2003-01-05  Andreas Schwab  <schwab@suse.de>
8539
8540         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
8541
8542 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8543
8544         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
8545         SYSCALL_ERROR_HANDLER.
8546         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
8547         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
8548         Add support for cancellation handling.
8549         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
8550         SYSCALL_ERROR_HANDLER.
8551         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
8552         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
8553         Add support for cancellation handling.
8554         (SYSCALL_ERROR_HANDLER): Define PIC variants.
8555
8556 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8557
8558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
8559         __syscall_pread64 and __syscall_pwrite64 cancelable.
8560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8561         (INTERNAL_SYSCALL): New macro.
8562         (LOADARGS_0, LOADARGS_1): Fix.
8563
8564 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
8565
8566         * Makerules (build-shlip-helper): Unless told otherwise, add
8567         -Wl,-z,defs to linker command line.
8568         * rt/Makefile (librt.so): Link with ld.so.
8569         * dlfcn/Makefile (libdl.so): Likewise.
8570
8571 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
8572
8573         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
8574         cancellation handling.
8575         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8576         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
8577
8578 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
8579
8580         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
8581         order of parameters passed to kill.
8582
8583 2003-01-04  Andreas Schwab  <schwab@suse.de>
8584
8585         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
8586
8587 2002-01-03  Paul Eggert  <eggert@twinsun.com>
8588
8589         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
8590         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
8591         when compiling Bison 1.875's `bitset bset = obstack_alloc
8592         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
8593
8594 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
8595
8596         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
8597         unnecessary code.
8598         Correct reference counter in case SIGQUIT handler installation failed.
8599
8600 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
8601
8602         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
8603         Define using _Pragma(weak ...).
8604
8605 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
8606
8607         * resolv/res_libc.c: Provide declaration for __res_init_weak and
8608         reorder declarations.
8609
8610 2003-01-03  Art Haas  <ahaas@airmail.net>
8611
8612         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
8613         initializer syntax to C99.
8614         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
8615         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
8616         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
8617         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
8618         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
8619         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
8620         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
8621         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
8622         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
8623         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
8624         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
8625         * localedata/tests-mbwc/dat_mblen.c: Likewise.
8626         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
8627         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
8628         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
8629         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
8630         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
8631         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
8632         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
8633         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
8634         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
8635         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
8636         * localedata/tests-mbwc/dat_towlower.c: Likewise.
8637         * localedata/tests-mbwc/dat_towupper.c: Likewise.
8638         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
8639         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
8640         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
8641         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
8642         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
8643         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
8644         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
8645         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
8646         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
8647         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
8648         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
8649         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
8650         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
8651         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
8652         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
8653         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
8654         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
8655         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
8656         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
8657         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
8658         * localedata/tests-mbwc/dat_wctob.c: Likewise.
8659         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
8660         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
8661         * localedata/tests-mbwc/dat_wctype.c: Likewise.
8662         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
8663
8664 2003-01-03  Richard Henderson  <rth@redhat.com>
8665
8666         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
8667         (inline_syscall_r0_constraint): New.
8668         (inline_syscall[0-6]): Use them.
8669
8670 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
8671
8672         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
8673         Add rtld_hidden_proto.
8674         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
8675         (_dl_allocate_tls): Likewise.  Remove INTDEF.
8676
8677 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8678
8679         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
8680         Morita <toshiyasu.morita@hsa.hitachi.com>.
8681         * sysdeps/sh/memcpy.S: Likewise.
8682
8683 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
8684
8685         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
8686         any, but unify the test.
8687
8688 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
8689
8690         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
8691         sigaction): Protect weak_alias and libc_hidden_weak with
8692         #ifndef LIBC_SIGACTION.
8693         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
8694         sigaction): Likewise.
8695         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
8696         sigaction): Likewise.
8697         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
8698         sigaction): Likewise.
8699         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
8700         sigaction): Likewise.
8701         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
8702         sigaction): Likewise.
8703         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
8704         sigaction): Likewise.
8705         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
8706         sigaction): Likewise.  Remove SIGCANCEL handling here.
8707         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
8708         Likewise.
8709
8710 2003-01-02  Art Haas  <ahaas@airmail.net>
8711
8712         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
8713
8714 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
8715
8716         * posix/getconf.c: Update copyright year.
8717         * nss/getent.c: Likewise.
8718         * nscd/nscd_nischeck.c: Likewise.
8719         * iconv/iconvconfig.c: Likewise.
8720         * iconv/iconv_prog.c: Likewise.
8721         * elf/ldconfig.c: Likewise.
8722         * catgets/gencat.c: Likewise.
8723         * csu/version.c: Likewise.
8724         * elf/ldd.bash.in: Likewise.
8725         * elf/sprof.c (print_version): Likewise.
8726         * locale/programs/locale.c: Likewise.
8727         * locale/programs/localedef.c: Likewise.
8728         * nscd/nscd.c (print_version): Likewise.
8729         * debug/xtrace.sh: Likewise.
8730         * malloc/memusage.sh: Likewise.
8731         * malloc/mtrace.pl: Likewise.
8732
8733 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
8734
8735         * io/sys/stat.h: Include time.h with __need_timespec even if
8736         __USE_MISC is defined but __USE_XOPEN is not.
8737
8738 2003-01-01  Andreas Jaeger  <aj@suse.de>
8739
8740         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
8741         type to avoid strict aliasing problem.
8742         (_nss_dns_gethostbyname2_r): Likewise.
8743         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8744         (_nss_dns_getnetbyname_r): Likewise.
8745         * resolv/gethnamaddr.c (_gethtent): Likewise.
8746         (gethostbyname2): Likewise.
8747
8748 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
8749
8750         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
8751         to avoid using the exported symbols.  Define aliases with the
8752         original names separately.
8753
8754         * include/time.h: Add libc_hidden_proto for __strftime_l.
8755         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
8756         * time/strftime.c: Always use libc_hidden_def if _LIBC.
8757
8758         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
8759         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
8760
8761         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
8762         tr_break.
8763
8764         * csu/Makefile (routines): Add dso_handle.
8765         * csu/dso_handle.c: New file.
8766
8767 2002-12-31  Roland McGrath  <roland@redhat.com>
8768
8769         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
8770         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
8771         (S-CPPFLAGS): Add -DASSEMBLER here instead.
8772         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
8773
8774 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
8775
8776         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
8777         is available.
8778
8779 2002-12-31  Andreas Jaeger  <aj@suse.de>
8780
8781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
8782         with Linux kernel.
8783         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
8784         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
8785         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
8786
8787         * sysdeps/unix/sysv/linux/kernel_stat.h
8788         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
8789
8790         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
8791         __unused[1-3] since they're needed by some platforms.  Handle
8792         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
8793
8794         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
8795         for structs stat and stat64.
8796         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8797         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
8798         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8799         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8800
8801         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8802
8803         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
8804         nsec resolution changes.
8805         (xstat64_conv): Likewise.
8806         (xstat32_conv): Likewise.
8807
8808         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
8809         struct kernel_stat.
8810
8811         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
8812         structs stat and stat64.
8813
8814         * time/time.h (__timespec_defined): Define for __USE_MISC.
8815
8816 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
8817
8818         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
8819         and __libc_current_sigrtmax.
8820
8821 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
8822
8823         * include/errno.h (__errno_location): Add prototype.
8824         Use libc_hidden_proto unconditionally.
8825         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
8826         unconditionally.
8827         * include/resolv.h (__res_state): Likewise.
8828
8829         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
8830         * include/sys/socket.h (accept): Add libc_hidden_proto.
8831         * include/errno.h (__errno_location): Likewise.
8832         * include/netdb.h (__h_errno_location): Likewise.
8833         * include/resolv.h (__res_state): Likewise.
8834         * include/unistd.h (__lseek): Likewise.
8835         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
8836         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
8837         * sysdeps/generic/res-state.c (__res_state): Likewise.
8838         * sysdeps/generic/accept.c (accept): Likewise.
8839         * sysdeps/generic/lseek.c (__lseek): Likewise.
8840         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
8841         __libc_current_sigrtmax): Likewise.
8842         * sysdeps/mach/hurd/accept.c (accept): Likewise.
8843         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
8844         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
8845         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
8846         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
8847         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
8848         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
8849         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
8850         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
8851         alias to llseek.
8852         (__GI_accept): New alias to accept.
8853         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
8854         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
8855         New alias to llseek.
8856         (__GI_accept): New alias to accept.
8857         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
8858         Likewise.
8859         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
8860         Likewise.
8861         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
8862
8863         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
8864         strong_alias (name, __GI_name).
8865         * sysdeps/arm/bsd-_setjmp.S : Likewise.
8866         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
8867         * sysdeps/i386/bsd-_setjmp.S : Likewise.
8868         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
8869         * sysdeps/mips/bsd-_setjmp.S : Likewise.
8870         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
8871         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
8872         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
8873         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
8874         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
8875         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
8876         * sysdeps/sh/bsd-_setjmp.S : Likewise.
8877         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
8878         * sysdeps/unix/arm/fork.S : Likewise.
8879         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
8880         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
8881         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
8882         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
8883         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
8884         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
8885         * sysdeps/unix/i386/fork.S : Likewise.
8886         * sysdeps/unix/mips/fork.S : Likewise.
8887         * sysdeps/unix/sparc/fork.S : Likewise.
8888         * sysdeps/unix/sparc/vfork.S : Likewise.
8889         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
8890         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
8891         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
8892         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
8893         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
8894         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
8895         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
8896         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
8897         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
8898         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
8899         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
8900         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
8901         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
8902         * sysdeps/unix/fork.S : Likewise.
8903         * sysdeps/vax/bsd-_setjmp.S : Likewise.
8904         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
8905
8906         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
8907         inclusion.
8908
8909 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
8910
8911         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
8912         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
8913         * sysdeps/mach/hurd/fork.c: Likewise.
8914         * sysdeps/unix/sysv/aix/fork.c: Likewise.
8915         * sysdeps/unix/fork.S: Add __GI___fork alias.
8916         * sysdeps/unix/arm/fork.S: Likewise.
8917         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
8918         * sysdeps/unix/i386/fork.S: Likewise.
8919         * sysdeps/unix/mips/fork.S: Likewise.
8920         * sysdeps/unix/sparc/fork.S: Likewise.
8921         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
8922         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
8923         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8924         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
8925         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
8926         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
8927         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
8928         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
8929         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
8930         * sysdeps/unix/sparc/vfork.S: Likewise.
8931         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8932         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
8933         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8934         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8935         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8936         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8937         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
8938         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8939
8940         * include/time.h: Add libc_hidden_proto for __nanosleep.
8941         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
8942         * sysdeps/mach/nanosleep.c: Likewise.
8943         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
8944         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
8945
8946         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
8947         _IO_list_unlock, and _IO_list_resetlock.
8948         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
8949         _IO_list_unlock, and _IO_list_resetlock.
8950
8951         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
8952         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
8953         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
8954         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
8955
8956         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
8957         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
8958         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
8959         __GI___longjmp alias.
8960
8961         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
8962         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
8963         * sysdeps/arm/bsd-_setjmp.S: Likewise.
8964         * sysdeps/generic/bsd-_setjmp.c: Likewise.
8965         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
8966         * sysdeps/i386/bsd-_setjmp.S: Likewise.
8967         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8968         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8969         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8970         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
8971         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
8972         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
8973         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
8974         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
8975         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
8976         * sysdeps/sh/bsd-_setjmp.S: Likewise.
8977         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
8978         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
8979         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
8980         * sysdeps/vax/bsd-_setjmp.S: Likewise.
8981         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
8982
8983 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
8984
8985         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
8986
8987 2002-12-30  Roland McGrath  <roland@redhat.com>
8988
8989         * Rules (generated): Target removed.
8990         * mach/Makefile (generated): Define it here instead.
8991
8992         * math/Makefile (generated): Add m_*l and m_*f variants too.
8993
8994 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
8995
8996         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
8997         the to-be-deleted objects right away instead of later separately.
8998         The latter fails because the scope data structures of the DSO
8999         might already be gone.
9000
9001         * elf/Makefile: Add rules to build and run reldep8 test.
9002         * elf/reldep8.c: New file.
9003         * elf/reldep8mod1.c: New file.
9004         * elf/reldep8mod2.c: New file.
9005         * elf/reldep8mod3.c: New file.
9006         Contributed by Jakub Jelinek.
9007
9008 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
9009
9010         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9011         checking of return value ENOSYS from getdents64.
9012
9013 2002-12-28  Andreas Schwab  <schwab@suse.de>
9014
9015         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
9016         ($(common-objpfx)s-%.d): Generalized from
9017         $(common-objpfx)s-proto.d rule.
9018         (common-generated): Add s-proto-cancel.d.
9019         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
9020         cancellable syscalls.
9021         * sysdeps/unix/s-proto-cancel.S: New file.
9022
9023 2002-12-29  Roland McGrath  <roland@redhat.com>
9024
9025         * resolv/res_libc.c: Move _res defn magic after res_init defn
9026         so _res macro is in effect for that code.
9027
9028         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
9029         pattern for prepending $(..) so it doesn't affect $(foo).
9030
9031         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
9032
9033 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
9034
9035         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
9036         in hwcap.
9037
9038 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
9039
9040         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
9041
9042 2002-12-28  Andreas Jaeger  <aj@suse.de>
9043
9044         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
9045         avoid warning.
9046         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
9047
9048 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
9049
9050         * inet/herrno.c (__h_errno_location): Remove.
9051         * inet/Makefile (routines): Add herrno-loc.
9052         * resolv/res_libc.c (__res_state): Remove.
9053         * resolv/Makefile (routines): Add res-state.
9054         * sysdeps/generic/herrno-loc.c: New file.
9055         * sysdeps/generic/res-state.c: New file.
9056
9057 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
9058
9059         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9060         Only define if USE_DL_SYSINFO is defined.
9061
9062 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
9063
9064         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
9065         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
9066         Define. Patch by Richard Henderson and Jes Sorensen.
9067         (PSEUDO): Remove unnecessary ;;.
9068         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
9069         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
9070         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
9071         if not initializing thread pointer.
9072         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
9073         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
9074         make it weak also if NONTLS_INIT_TP.
9075         * sysdeps/unix/common/pause.c: Handle cancellation.
9076         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
9077         (LOADSYSCALL): Remove.
9078         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
9079         (SYSCALL_ERROR_HANDLER): Use it.
9080         (PSEUDO): Don't jump around error handler.
9081         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
9082         jump around error handler.
9083         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
9084         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
9085         to __syscall_error_handler on failure.
9086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
9087         (LOADSYSCALL): Remove.
9088         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
9089         (SYSCALL_ERROR_HANDLER): Use it.
9090         (PSEUDO): Don't jump around error handler.
9091         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
9092         jump around error handler.
9093         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
9094         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
9095         to __syscall_error_handler on failure.
9096
9097 2002-12-27  Roland McGrath  <roland@redhat.com>
9098
9099         * scripts/gen-as-const.awk: New file.
9100         * Makefile (distribute): Add it.
9101         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
9102         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
9103         to the list.
9104         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
9105
9106 2002-12-27  Andreas Schwab  <schwab@suse.de>
9107
9108         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
9109
9110 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
9111
9112         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
9113         _environ is NULL.
9114
9115 2002-12-27  Andreas Schwab  <schwab@suse.de>
9116
9117         * Makerules ($(common-objpfx)%.make): Filter through
9118         $(sed-remove-objpfx).
9119
9120 2002-12-23  Roland McGrath  <roland@redhat.com>
9121
9122         * scripts/abilist.awk: Produce a more compact format, divided into
9123         stanzas for each version set, the set name listed only once.
9124         * scripts/extract-abilist.awk: New file.
9125         * scripts/merge-abilist.awk: New file.
9126         * Makerules (check-abi-%, update-abi-%): New pattern rules.
9127         (update-abi, check-abi): New targets.
9128         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
9129
9130 2002-12-19  Roland McGrath  <roland@redhat.com>
9131
9132         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
9133
9134         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
9135         INTERNAL_SYSCALL.
9136
9137 2002-12-21  Andreas Schwab  <schwab@suse.de>
9138
9139         * elf/check-textrel.c (handle_file): Swap p_type.
9140
9141 2002-12-21  Andreas Schwab  <schwab@suse.de>
9142
9143         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
9144         (INLINE_SYSCALL): Use it.
9145         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9146         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9147
9148         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
9149         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
9150
9151 2002-12-20  Art Haas  <ahaas@airmail.net>
9152
9153         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
9154         syntax to C99.
9155
9156 2002-12-21  Philip Blundell  <philb@gnu.org>
9157
9158         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
9159         top as seventh arg to __libc_start_main.
9160         Reported by paulnash@wildseed.com.
9161
9162         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
9163
9164         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
9165         compatibility cruft when new enough kernel is assumed.
9166
9167 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
9168
9169         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
9170         instead of INLINE_SYSCALL.
9171
9172 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
9173
9174         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
9175         typo.
9176
9177         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
9178         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
9179         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
9180         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
9181         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
9182         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9183         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9184         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9185         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
9186         Patch by William Lee Irwin <wli@holomorphy.com>.
9187
9188 2002-12-20  Andreas Schwab  <schwab@suse.de>
9189
9190         * locale/programs/ld-measurement.c (measurement_output): Fix
9191         index calculation.
9192
9193 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
9194
9195         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
9196         Redefine _IO_flockifle and _IO_funlockfile as inlines.
9197
9198         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
9199         builds add "tls" in the search path.
9200         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
9201         (path_hwcap): Recognize "tls".
9202
9203 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9204
9205         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
9206         __waitpid instead of waitpid.
9207
9208         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
9209         int $0x80.
9210         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
9211         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
9212         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
9213
9214         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
9215         information for system calls.
9216
9217         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
9218         for ld.so.
9219
9220         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
9221
9222 2002-12-19  Roland McGrath  <roland@redhat.com>
9223
9224         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
9225         * iconvdata/ibm922.h: Likewise.
9226         * iconvdata/ibm930.h: Likewise.
9227         * iconvdata/ibm932.h: Likewise.
9228         * iconvdata/ibm933.h: Likewise.
9229         * iconvdata/ibm935.h: Likewise.
9230         * iconvdata/ibm937.h: Likewise.
9231         * iconvdata/ibm939.h: Likewise.
9232         * iconvdata/ibm943.h: Likewise.
9233         * iconvdata/isiri-3342.h: Likewise.
9234
9235 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9236
9237         * test-skeleton.c (main): Make sure correct value is seen as
9238         argv[0] after adjustment of argv, and argc.
9239
9240         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
9241         RTLD_CORRECT_DYNAMIC_WEAK is defined.
9242
9243 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
9244
9245         * nscd/connections.c (nscd_run): Shut up warning.
9246         * tst-ungetc.c (assert): Undefined before redefining.
9247
9248 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9249
9250         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
9251         is used.
9252
9253 2002-12-17  Art Haas  <ahaas@airmail.net>
9254
9255         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
9256         * iconvdata/cp775.h: Likewise.
9257         * iconvdata/ibm1046.h: Likewise.
9258         * iconvdata/ibm1124.h: Likewise.
9259         * iconvdata/ibm1129.h: Likewise.
9260         * iconvdata/ibm1132.h: Likewise.
9261         * iconvdata/ibm1133.h: Likewise.
9262         * iconvdata/ibm1160.h: Likewise.
9263         * iconvdata/ibm1161.h: Likewise.
9264         * iconvdata/ibm1162.h: Likewise.
9265         * iconvdata/ibm1163.h: Likewise.
9266         * iconvdata/ibm1164.h: Likewise.
9267
9268 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
9269
9270         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
9271         __ASSUME_CLONE_THREAD_FLAGS is defined.
9272         * sysdeps/unix/sysv/linux/kernel-features.h
9273         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
9274
9275 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
9276
9277         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
9278         of asm.
9279         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9280
9281         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
9282         _dl_sysinfo.
9283         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
9284         code.
9285         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
9286         _rtld_global.
9287         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
9288         code.
9289         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
9290         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
9291         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
9292         Add _dl_sysinfo.
9293
9294 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
9295
9296         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
9297         __libc_writev to...
9298         [libc: GLIBC_PRIVATE]: ...here.
9299         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
9300         __libc_msgsnd to...
9301         [libc: GLIBC_PRIVATE]: ...here.
9302
9303 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
9304
9305         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
9306         Use it instead of directly int $0x80.
9307         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
9308         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9309         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
9310         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9311         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9312         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
9313
9314 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
9315
9316         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
9317
9318         * elf/elf.h (AT_SYSINFO): New define.
9319         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
9320         AT_SYSINFO.
9321
9322 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
9323
9324         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
9325         Make cancelable.
9326         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
9327         Likewise.
9328         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
9329         Likewise.
9330         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
9331         Likewise.
9332         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
9333         Likewise.
9334         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
9335
9336         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
9337         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
9338         available, otherwise __libc_maybe_call.
9339         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
9340         cancellation handling.
9341         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
9342
9343 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
9344
9345         * posix/regcomp.c (free_workarea_compile): Free the new member
9346         ORG_INDICES.
9347         (analyze): Initialize ORG_INDICES.
9348         (duplicate_node_closure): Search for a existing node, which is
9349         duplicated from the node ORG_DEST and satisfies the constraint
9350         CONSTRAINT.  And use it to avoid inifimite loop.
9351         (search_duplicated_node): New function.
9352         (duplicate_node): Store the index of the original node.
9353         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
9354         if needed.
9355         * posix/regex_internal.h (re_dfa_t): Add new members.
9356
9357 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
9358
9359         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
9360
9361 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9362
9363         * sysdeps/posix/system.c (do_system): Add support for installation
9364         of cancellation handlers.
9365         * sysdeps/unix/sysv/linux/i386/system.c: New file.
9366
9367         * stdlib/Makefile (tests): Add tst-system.
9368         * stdlib/tst-system.c: New file.
9369
9370         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
9371         CENABLE]: Don't lose content of %ebx.
9372
9373 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
9374
9375         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
9376         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
9377
9378 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9379
9380         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
9381         fails to return a function pointer don't use it.
9382
9383 2002-12-16  Art Haas  <ahaas@airmail.net>
9384
9385         * io/ftw.c: Convert GCC extension initializer syntax to C99.
9386         * iconvdata/iso-ir-165.c: Likewise.
9387         * iconvdata/jis0208.c: Likewise.
9388         * iconvdata/jis0212.c: Likewise.
9389
9390 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9391
9392         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
9393         epoll_ctl, and epoll_wait.
9394         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
9395         epoll_create, epoll_ctl, and epoll_wait.
9396         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
9397         Davide Libenzi <davidel@xmailserver.org>.
9398         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
9399         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
9400         Add sys/epoll.h.
9401
9402 2002-12-16  Art Haas  <ahaas@airmail.net>
9403
9404         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
9405         syntax to C99
9406         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
9407         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
9408         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
9409
9410 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
9411
9412         * stdio-common/Makefile (routines): Remove lockfile.  Add
9413         flockfile, ftrylockfile, and funlockfile.
9414         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
9415         * sysdeps/generic/flockfile.c: New file.
9416         * sysdeps/generic/ftrylockfile.c: New file.
9417         * sysdeps/generic/funlockfile.c: New file.
9418
9419 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
9420
9421         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
9422         macros instead of doing the calls directly.
9423         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
9424         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
9425         targets.
9426
9427 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
9428
9429         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
9430         * sysdeps/ieee754/bits/nan.h: Likewise.
9431
9432         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
9433         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
9434
9435 2002-12-16  Roland McGrath  <roland@redhat.com>
9436
9437         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
9438         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
9439         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
9440
9441         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
9442         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
9443         s_putpmsg.
9444         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
9445         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
9446         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
9447         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
9448         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
9449         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
9450         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
9451         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
9452
9453 2002-12-13  Paul Eggert  <eggert@twinsun.com>
9454
9455         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
9456         is now u_int, not int.
9457         (struct XDR.x_handy): Now u_int, not int.
9458         * sunrpc/xdr_mem.c: Include <limits.h>.
9459         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
9460         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
9461         x_handy is now unsigned, not signed.
9462         Do not decrement x_handy if no change is made.
9463         (xdrmem_setpos): Check for int overflow.
9464         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
9465         (xdr_sizeof): Remove cast that is now unnecessary, now that
9466         x_handy is unsigned.
9467
9468 2002-12-15  Art Haas  <ahaas@airmail.net>
9469
9470         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
9471         * iconvdata/gap.awk: Likewise.
9472         * iconvdata/gen-8bit-gap-1.sh: Likewise.
9473         * iconvdata/gen-8bit-gap.sh: Likewise.
9474         * locale/C-address.c: Likewise.
9475         * locale/C-collate.c: Likewise.
9476         * locale/C-ctype.c: Likewise.
9477         * locale/C-identification.c: Likewise.
9478         * locale/C-measurement.c: Likewise.
9479         * locale/C-messages.c: Likewise.
9480         * locale/C-monetary.c: Likewise.
9481         * locale/C-name.c: Likewise.
9482         * locale/C-numeric.c: Likewise.
9483         * locale/C-paper.c: Likewise.
9484         * locale/C-telephone.c: Likewise.
9485         * locale/C-time.c: Likewise.
9486         * nscd/connections.c: Likewise.
9487         * nscd/grpcache.c: Likewise.
9488         * nscd/hstcache.c: Likewise.
9489         * nscd/pwdcache.c: Likewise.
9490         * stdio-common/vfprintf.c: Likewise.
9491         * stdlib/random.c: Likewise.
9492         * sysdeps/generic/siglist.c: Likewise.
9493         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9494         * sysdeps/ieee754/bits/nan.h: Likewise.
9495         * sysdeps/posix/sprofil.c: Likewise.
9496         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
9497         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
9498         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
9499
9500 2002-12-15  Roland McGrath  <roland@redhat.com>
9501
9502         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
9503
9504         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
9505         <tls.h> here, no need for it.
9506         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
9507
9508         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
9509         parameter, not varargs parameter.
9510
9511         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
9512         argument so it's not an unused variable.
9513
9514         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
9515         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
9516         for users.
9517
9518         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
9519
9520 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
9521
9522         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
9523         original __libc_fcntl code.  Just renamed.
9524
9525 2002-12-15  Andreas Schwab  <schwab@suse.de>
9526
9527         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
9528
9529 2002-12-14  Olaf Hering  <olh@suse.de>
9530
9531         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
9532         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
9533
9534 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
9535
9536         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
9537
9538         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
9539         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
9540
9541         * sysdeps/unix/sysv/linux/open64.c: New file.
9542
9543         * sysdeps/generic/pselect.c: Add support for cancellation handling.
9544         * sysdeps/posix/open64.c: Likewise.
9545         * sysdeps/posix/sigpause.c: Likewise.
9546         * sysdeps/posix/sigwait.c: Likewise.
9547         * sysdeps/posix/system.c: Likewise.
9548         * sysdeps/posix/waitid.c: Likewise.
9549         * sysdeps/unix/sysv/linux/accept.S: Likewise.
9550         * sysdeps/unix/sysv/linux/connect.S: Likewise.
9551         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
9552         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9553         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
9554         * sysdeps/unix/sysv/linux/poll.c: Likewise.
9555         * sysdeps/unix/sysv/linux/pread.c: Likewise.
9556         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
9557         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
9558         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9559         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9560         * sysdeps/unix/sysv/linux/recv.S: Likewise.
9561         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
9562         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
9563         * sysdeps/unix/sysv/linux/send.S: Likewise.
9564         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
9565         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
9566         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
9567         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
9568         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
9569         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
9570         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
9571         * sysdeps/unix/sysv/linux/wait.c: Likewise.
9572         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
9573         * sysdeps/unix/sysv/linux/writev.c: Likewise.
9574         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
9575         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9576
9577 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
9578
9579         * sysdeps/generic/sysdep-cancel.h: New file.
9580         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
9581         cancelable syscall.
9582         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
9583         recvmsg, send, sendmsg, sendto): Make cancelable.
9584         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
9585         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
9586         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9587         sendto, osf_select): Likewise.
9588         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
9589         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
9590         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
9591         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9592         sendto): Likewise.
9593         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
9594         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
9595         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
9596         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9597         sendto): Likewise.
9598         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
9599         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9600         sendto, select): Likewise.
9601         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
9602         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
9603         Likewise.
9604         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
9605         select, fcntl): Likewise.
9606         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
9607         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
9608         read, readv, select, sigsuspend, write, writev): Likewise.
9609
9610 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
9611
9612         * dirent/bug-readdir1.c: Include unistd.h.
9613
9614 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
9615
9616         * locale/programs/locale.c: Include locarchive.h.
9617         (ARCHIVE_NAME): Define.
9618         (write_archive_locales): New function.
9619         (write_locales): Use it.  Ensure the same locale is not printed
9620         multiple times in verbose mode.
9621         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
9622         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
9623         functions.
9624         (struct nameent): New type.
9625         (nameentcmp): New function.
9626
9627 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
9628
9629         * posix/regex_internal.c (re_string_context_at): Guard wide char
9630         code with #ifdef RE_ENABLE_I18N.
9631
9632 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
9633
9634         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
9635
9636 2002-12-13  Roland McGrath  <roland@redhat.com>
9637
9638         * posix/bug-regex15.c: New file.
9639         * posix/Makefile (tests): Add it.
9640
9641         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
9642         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
9643
9644 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
9645
9646         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
9647
9648         * misc/syslog.c (log_cleanup): Don't use parameter in
9649         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
9650         pass NULL instead of a pointer to syslog_lock.
9651
9652 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
9653
9654         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
9655         linker map for all iconv modules.
9656         (distribute): Add gconv.map.
9657         * iconvdata/gconv.map: New file.
9658
9659         * elf/Makefile: Also check all iconv modules for text relocations.
9660
9661         * stdlib/Makefile: Remove code to automatically import GMP.
9662
9663         * elf/Makefile (tests): Add rules to build and run check-textrel.
9664         * elf/check-textrel.c: New file.
9665
9666         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
9667         directive.
9668
9669 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
9670
9671         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
9672         not st.st[am]time.
9673
9674 2002-04-30  Bruno Haible  <bruno@clisp.org>
9675
9676         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
9677         the encoding if it already has slashes.
9678         Reported by Perry Rapp <prapp@erols.com>.
9679
9680 2002-12-11  Roland McGrath  <roland@redhat.com>
9681
9682         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
9683         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
9684         Turn off PIC for compiling this file.
9685
9686 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
9687
9688         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
9689         definitions.  Not needed.
9690         [_LIBC]: Use definitions from libc-lock.h instead of referencing
9691         pthread routines directly.
9692         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
9693         mutex_init calls.
9694         (arena_get2): Don't look at return value of mutex_lock.
9695
9696 2002-12-11  Roland McGrath  <roland@redhat.com>
9697
9698         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
9699         elf-init.o instead of compiling a PIC version.
9700
9701 2002-12-11  Bruno Haible  <bruno@clisp.org>
9702
9703         * intl/gettext.h: Renamed to ...
9704         * intl/gmo.h: ... here.
9705         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
9706         * intl/gettextP.h: Update.
9707         * intl/loadmsgcat.c: Update.
9708
9709         * intl/gettextP.h (PARAMS): Make more portable.
9710         (attribute_hidden): Define as empty macro if not already defined.
9711         * intl/hash-string.h (PARAMS): Make more portable.
9712         * intl/loadinfo.h (PARAMS): Likewise.
9713         * intl/plural-exp.h (PARAMS): Likewise.
9714         (attribute_hidden): Move definition near the definition of
9715         internal_function.
9716
9717         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
9718         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
9719
9720 2002-07-13  Bruno Haible  <bruno@clisp.org>
9721
9722         * intl/dcigettext.c (freea): New macro.
9723         (FREE_BLOCKS): Free also the registered blocks.
9724         (DCIGETTEXT): Free the 'search' variable.
9725         Reported by Andreas Fischer <a.fischer@asentics.de>.
9726
9727 2002-04-27  Bruno Haible  <bruno@clisp.org>
9728
9729         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
9730         * intl/dcigettext.c: Likewise.
9731         * intl/dcgettext.c: Likewise.
9732         * intl/dgettext.c: Likewise.
9733         * intl/gettext.c: Likewise.
9734         * intl/dcngettext.c: Likewise.
9735         * intl/dngettext.c: Likewise.
9736         * intl/ngettext.c: Likewise.
9737         * intl/textdomain.c: Likewise.
9738         * intl/bindtextdom.c: Likewise.
9739         * intl/plural-exp.h: Likewise.
9740
9741 2002-01-02  Bruno Haible  <bruno@clisp.org>
9742
9743         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
9744
9745 2001-04-30  Bruno Haible  <bruno@clisp.org>
9746
9747         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
9748         default macro definitions.  Needed for mingw32.
9749
9750 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
9751
9752         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
9753         __builtin_constant_p to macro parameter.
9754
9755         * sysdeps/generic/sigpause.c: Define all functions as weak.
9756         * sysdeps/posix/sigpause.c: Likewise.
9757
9758         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
9759         type size_t.
9760
9761 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
9762
9763         * elf/tst-array1.c (preinit_array, init_array, fini_array):
9764         Explicitly align the array to sizeof (void *).
9765         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
9766
9767         * include/libc-symbols.h: Fix a comment typo.
9768
9769         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
9770         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
9771         Likewise.
9772         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
9773         Likewise.
9774         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
9775         (__libc_sigsuspend): Likewise.
9776         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
9777         (__libc_sigsuspend): Likewise.
9778         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
9779         (creat): New weak alias.
9780
9781 2002-12-10  Roland McGrath  <roland@redhat.com>
9782
9783         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
9784         contributes a manual chapter.
9785         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
9786         around xref to it.
9787
9788         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
9789         and move contents to ...
9790         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
9791         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
9792         it instead of duplicating its contents.
9793         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
9794
9795 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
9796
9797         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
9798         defined.
9799         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
9800         function.
9801         (EXTRA_LD_ENVVARS): Use it.
9802         (DL_OSVERSION_INIT): Define.
9803         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
9804         dl-librecon.h.
9805         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
9806
9807 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
9808
9809         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
9810
9811         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
9812         call.  It is not allowed to destroy pthread mutexes which are
9813         still in use even though it is safe for our implementations.  If
9814         somebody still uses the descriptor it is a bug.
9815
9816 2002-12-09  Richard Henderson  <rth@redhat.com>
9817
9818         * csu/abi-note.S: Use .p2align, not .align.
9819
9820 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
9821
9822         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
9823         __libc_select aliases.
9824
9825         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
9826         alias.
9827
9828         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
9829
9830         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
9831
9832         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
9833
9834         * sysdeps/unix/syscalls.list: Define __libc_select alias.
9835
9836         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
9837
9838         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
9839         __libc___xpg_sigpause aliases.
9840
9841         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
9842
9843         * misc/error.c: Remove use of USE_IN_LIBIO.
9844
9845 2002-12-08  Roland McGrath  <roland@redhat.com>
9846
9847         * elf/Makefile (tests): Uncomment tst-array[123].
9848         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
9849         * csu/elf-init.c: New file.
9850         * csu/Makefile (routines, static-only-routines): Add elf-init.
9851         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
9852         and __libc_csu_fini in place of _fini.
9853         * sysdeps/arm/elf/start.S: Likewise.
9854         * sysdeps/cris/elf/start.S: Likewise.
9855         * sysdeps/hppa/elf/start.S: Likewise.
9856         * sysdeps/i386/elf/start.S: Likewise.
9857         * sysdeps/ia64/elf/start.S: Likewise.
9858         * sysdeps/m68k/elf/start.S: Likewise.
9859         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
9860         * sysdeps/mips/elf/start.S: Likewise.
9861         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
9862         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
9863         * sysdeps/s390/s390-32/elf/start.S: Likewise.
9864         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9865         * sysdeps/sh/elf/start.S: Likewise.
9866         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9867         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9868         * sysdeps/x86_64/elf/start.S: Likewise.
9869
9870         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
9871         struct containing function ptr and value, free it.
9872         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
9873         It's not safe to let the new thread use the SIGEV pointer.
9874
9875 2001-10-20  Paul Eggert  <eggert@twinsun.com>
9876
9877         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
9878         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
9879         Use strerror_r that is only a macro, even if it is not a function.
9880         (strerror): Check for HAVE_DECL_STRERROR before declaring.
9881         (private_strerror): Use prototypes, not old-style function definition.
9882         (print_errno_message): New function.
9883         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
9884         char*-flavored one.
9885         (error_tail, error, error_at_line): Use it.
9886
9887 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
9888
9889         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
9890
9891 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
9892
9893         * scripts/output-format.sed: Fix bug in one of the s expressions
9894         which used / for one too many things.
9895
9896         * include/unistd.h: Declare __libc_close.
9897
9898 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
9899
9900         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
9901
9902 2002-12-07  Roland McGrath  <roland@redhat.com>
9903
9904         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
9905         from 2002-12-06, but remove unnecessary memset call without removing
9906         necessary copy of initialization image.
9907
9908         * Makerules ($(common-objpfx)format.lds): New target.
9909         (common-generated): Add it.
9910         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
9911         * scripts/output-format.sed: New file.
9912         * Makefile (distribute): Add it.
9913
9914 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
9915
9916         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
9917         Reported by Art Haas <ahaas@airmail.net>.
9918
9919 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
9920
9921         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
9922
9923 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
9924
9925         * string/test-strncpy.c (do_random_tests): Improve test coverage.
9926
9927 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
9928
9929         * test-skeleton.c (timeout_handler): Allow expected signal to be
9930         SIGALRM.
9931
9932         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
9933
9934         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
9935
9936 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
9937
9938         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
9939         (SYSCALL_ERROR_HANDLER): Fix a pasto.
9940         Reported by Jeff Bailey <jbailey@nisa.net>.
9941
9942 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
9943
9944         * sysdeps/generic/libc-tls.c: Undo last patch.
9945
9946         * include/wctype.h: Define iswalnum with libc_hidden_proto.
9947
9948         * include/signal.h: Define raise with libc_hidden_proto.
9949
9950         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
9951         __execve instead of snprintf and execve.
9952
9953         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
9954         again a bit.
9955
9956 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
9957
9958         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
9959         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
9960
9961 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
9962
9963         * misc/syslog.c (log_cleanup): New function.
9964         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
9965         (closelog): Likewise.
9966
9967         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
9968         * elf/dl-iteratephdr.c: Likewise.
9969         * elf/dl-lookup.c: Likewise.
9970         * elf/dl-misc.c: Likewise.
9971         * elf/dl-open.c: Likewise.
9972         * elf/dl-support.c: Likewise.
9973         * elf/rtld.c: Likewise.
9974         * sysdeps/generic/ldsodefs.h: Likewise.
9975         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
9976         * sysdeps/mach/bits/libc-lock.h: Likewise.
9977         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
9978
9979 2002-12-06  Roland McGrath  <roland@redhat.com>
9980
9981         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
9982
9983         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
9984         (malloc_starter, memalign_starter, free_starter): Don't define these.
9985         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
9986         Don't declare them either.
9987         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
9988         __pthread_initialize, so no need to set hooks to *_starter.
9989         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
9990         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
9991         (__libc_malloc_pthread_startup): New function.
9992         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
9993
9994         * malloc/hooks.c (memalign_starter): New function.
9995         * malloc/malloc.c: Declare it.
9996         * malloc/arena.c (save_memalign_hook): New variable.
9997         (ptmalloc_init): Set __memalign_hook to memalign_starter.
9998
9999         * elf/dl-minimal.c (free): Clear the memory.
10000         (calloc): Just call malloc, knowing all memory it returns is cleared.
10001
10002         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
10003         malloc and memset; calloc can avoid the zeroing when redundant.
10004         (_dl_tls_setup): Likewise.
10005         * elf/dl-load.c (decompose_rpath): Likewise.
10006         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
10007         call, since memory from sbrk at startup is already zero.
10008
10009         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
10010         error string for failure, null for success.  Update callers.
10011         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
10012         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10013
10014 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
10015
10016         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
10017         args to i:iipi.
10018         (readahead): Change args to i:iii.
10019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
10020         Change args to i:iii.
10021         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
10022         args to i:iiii.
10023
10024 2002-12-05  Roland McGrath  <roland@redhat.com>
10025
10026         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
10027         call all functions rather than none.
10028         Reported by Mark P. Mitchell <mark@codesourcery.com>.
10029
10030 2002-12-04  Roland McGrath  <roland@redhat.com>
10031
10032         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
10033         on _nl_current_LC_* variables.
10034
10035 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
10036
10037         * dirent/bug-readdir1.c (main): Don't call closedir, just close
10038         the file descriptor.  This is testing what the bug report was about.
10039
10040 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
10041
10042         * po/be.po: New file.
10043
10044         * argp/Makefile (tests): Add tst-argp1.
10045
10046         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
10047         Change type of _attribute to void*.
10048         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10049         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
10050         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
10051         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10052         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10053
10054 2002-12-04  Roland McGrath  <roland@redhat.com>
10055
10056         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
10057         members to the end, so a libpthread compiled with !USE_TLS will still
10058         find other members properly.
10059
10060         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
10061         operand for DEST memory.  Fix dummy input operand to use SRC.
10062         Reported by Davin McCall <davmac@ozonline.com.au>.
10063
10064         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
10065         alignment when initializing the DTV entry.
10066
10067         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
10068         when TLS has not been set up, try to set it up if we can.
10069         * elf/tst-tls4.c: Revert last change.
10070         * elf/tst-tls5.c: Likewise.
10071         * elf/tst-tls6.c: Likewise.
10072         * elf/tst-tls7.c: Likewise.
10073         * elf/tst-tls8.c: Likewise.
10074         * elf/tst-tls9.c: Likewise.
10075
10076         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
10077         * sysdeps/generic/ldsodefs.h: Declare it.
10078         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
10079         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
10080         function, broken out of __libc_setup_tls.
10081         (init_static_tls): Likewise.
10082         (__libc_setup_tls): Call them.
10083         (_dl_tls_setup): New function, uses new subroutines.
10084
10085         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
10086         Clear the pointer when returning true.
10087         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
10088         first element of the slotinfo list too.
10089
10090         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
10091         [SHARED].
10092
10093         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
10094         (_dl_determine_tlsoffset): Likewise.
10095
10096         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
10097         startup_error_tsd, made global.
10098         (dl_main): Update initialization.
10099         * elf/dl-tsd.c: Likewise.
10100         * sysdeps/generic/ldsodefs.h: Declare it.
10101
10102 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
10103
10104         * manual/texinfo.tex: Update from latest upstream version.
10105
10106 2002-12-03  Roland McGrath  <roland@redhat.com>
10107
10108         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
10109         area surplus in calculation for sbrk call.
10110
10111         * iconvdata/cp1125.c: New file.
10112         * iconvdata/Makefile (distribute): Add it.
10113         (modules): Add CP1125.
10114         (gen-8bit-gap-modules): Add cp1125.
10115         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
10116         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
10117
10118 2002-12-03  Andreas Jaeger  <aj@suse.de>
10119
10120         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10121
10122 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
10123
10124         * sysdeps/posix/system.c (do_system): Make signal handler
10125         installation thread safe.
10126
10127 2002-12-02  Roland McGrath  <roland@redhat.com>
10128
10129         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
10130         caller from EXTRA to -.
10131         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10132         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10133         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10134
10135 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
10136
10137         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
10138         bits of RM are cleared.
10139
10140 2002-12-02  Roland McGrath  <roland@redhat.com>
10141
10142         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
10143         TLS setup is required.
10144         * elf/tst-tls5.c: Likewise.
10145         * elf/tst-tls6.c: Likewise.
10146         * elf/tst-tls7.c: Likewise.
10147         * elf/tst-tls8.c: Likewise.
10148         * elf/tst-tls9.c: Likewise.
10149
10150         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
10151         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
10152         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
10153         for being null before calling free_slotinfo.
10154         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
10155         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
10156
10157 2002-11-30  Bruno Haible  <bruno@clisp.org>
10158
10159         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
10160         (struct __gconv_step): New field __btowc_fct.
10161         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
10162         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
10163         __BUILTIN_TRANS.
10164         (__gconv_btwoc_ascii): New declaration.
10165         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
10166         (__gconv_btwoc_ascii): New function.
10167         * iconv/gconv_builtin.h: Add BtowcFct argument to all
10168         BUILTIN_TRANSFORMATION invocations.
10169         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
10170         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
10171         * iconv/gconv_builtin.c (map): New field btowc_fct.
10172         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
10173         btowc_fct field.
10174         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
10175         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
10176         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
10177         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
10178         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
10179         (gconv_init): Initialize __btowc_fct field.
10180         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
10181         * iconv/loop.c: Document ONEBYTE_BODY.
10182         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
10183         Undefine ONEBYTE_BODY at the end.
10184         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
10185         * iconvdata/8bit-gap.c (NONNUL): New macro.
10186         (BODY for FROM_LOOP): Use it.
10187         (ONEBYTE_BODY): New macro.
10188         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
10189         (NONNUL): New macro.
10190         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
10191         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
10192         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
10193         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
10194         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
10195         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
10196         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
10197         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
10198         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
10199         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
10200         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
10201         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
10202         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
10203         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
10204         * iconvdata/ibm932.c: Include <stdbool.h>.
10205         (TRUE, FALSE): Remove macros.
10206         (BODY for FROM_LOOP): Remove unused variable rp1.
10207         (ONEBYTE_BODY): New macro.
10208         (BODY for TO_LOOP): Use bool.
10209         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
10210         * iconvdata/ibm943.c: Include <stdbool.h>.
10211         (TRUE, FALSE): Remove macros.
10212         (BODY for FROM_LOOP): Remove unused variable rp1.
10213         (ONEBYTE_BODY): New macro.
10214         (BODY for TO_LOOP): Use bool.
10215         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
10216         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
10217         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
10218         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
10219         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
10220         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
10221         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
10222         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
10223         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
10224         * iconvdata/gbbig5.c: Tweak comment.
10225
10226 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
10227
10228         * po/fi.po: Update from translation team.
10229
10230 2002-12-01  Roland McGrath  <roland@redhat.com>
10231
10232         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10233         testing getdents64 return value.
10234
10235         * scripts/versions.awk: Don't pass -n flag to sort command.
10236
10237         * posix/bug-regex13.c: Include <string.h>.
10238
10239         * sysdeps/generic/libc-start.c (__libc_start_main): Do
10240         DL_SYSDEP_OSCHECK here.
10241         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
10242         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
10243
10244         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
10245         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
10246
10247         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
10248         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
10249
10250         * include/link.h: Comment typo fix.
10251
10252 2002-12-01  Roland McGrath  <roland@frob.com>
10253
10254         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
10255         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
10256         _POSIX_MEMORY_PROTECTION): Likewise.
10257         (_POSIX_POLL, _POSIX_SELECT): Removed.
10258
10259 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
10260
10261         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
10262         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
10263
10264 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
10265
10266         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
10267         USE___THREAD.
10268         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
10269         "=v" constraints.
10270
10271 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
10272
10273         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
10274         branch prediction buffers by using unpaired call/ret.
10275
10276 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
10277
10278         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
10279         first parameters constraint string.
10280         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
10281
10282 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
10283
10284         * posix/regcomp.c (parse_expression): Set the bit since the back
10285         reference is used in the regular expression.
10286         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
10287         of malloc failure.
10288         (re_node_set_init_copy): Likewise.
10289         * posix/regex_internal.h (state_array_t): New structure.
10290         (re_sub_match_last_t): Likewise.
10291         (re_sub_match_top_t): Likewise.
10292         (re_match_context_t): Add new members.
10293         (re_dfa_t): Likewise.
10294         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
10295         to check the matching is really correct, and retry if failed.
10296         Move the routin pruning the impossible nodes from here, ...
10297         (prune_impossible_nodes): To this function.
10298         (check_matching): Invoke check_subexp_matching_top, and replace
10299         redundant checking with transit_state_bkref invocation.
10300         (proceed_next_node): Replace strncmp with memcmp.  Reported by
10301         Paolo Bonzini  <bonzini@gnu.org>.
10302         (update_cur_sifted_state): Remove search_subexp invocation.
10303         (search_subexp): Remove this function.
10304         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
10305         optimization.
10306         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
10307         Remove unused invocation of match_ctx_add_entry.
10308         (transit_state): Invoke check_subexp_matching_top.
10309         (check_subexp_matching_top): New function.
10310         (transit_state_bkref): Remove unused array.
10311         Merge transit_state_bkref_loop.
10312         (transit_state_bkref_loop): Use get_subexp instead of
10313         sift_states_backward.  Use search_cur_bkref_entry for optimization.
10314         Merge this function to transit_state_bkref.
10315         (get_subexp): New function.
10316         (get_subexp_sub): Likewise.
10317         (find_subexp_node): Likewise.
10318         (check_arrival): Likewise.
10319         (check_arrival_expand_ecl): Likewise.
10320         (check_arrival_expand_ecl_sub): Likewise.
10321         (expand_bkref_cache): Likewise.
10322         (match_ctx_init): Initialize new members.
10323         (match_ctx_clean): New function.
10324         (match_ctx_free): Release new members.
10325         (match_ctx_free_subtops): New function.
10326         (match_ctx_add_entry): Fix indent.
10327         (search_cur_bkref_entry): New function.
10328         (match_ctx_add_subtop): Likewise.
10329         (match_ctx_add_sublast): Likewise.
10330
10331 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
10332
10333         * iconv/Makefile (tests): Remove tst-iconv4.c
10334         * iconv/tst-iconv4.c: Moved to...
10335         * iconvdata/tst-iconv4.c: ...here.  New file.
10336         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
10337
10338 2002-11-25  Roland McGrath  <roland@redhat.com>
10339
10340         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
10341         Grok AF_LINK if defined.
10342         From Momchil Velikov <velco@fadata.bg>.
10343
10344         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
10345         brdaddr, or dstaddr, just set those pointers to null and don't fail.
10346         Reported by Momchil Velikov <velco@fadata.bg>.
10347
10348         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
10349         is > sizeof IFR->ifa_addr, advance past the whole longer length.
10350         (__ifreq): Count up NIFS that way too.
10351         Reported by Momchil Velikov <velco@fadata.bg>.
10352
10353         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
10354
10355         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
10356         and <fpu_control.h>.
10357
10358 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
10359
10360         * elf/elf.h (EM_ST19): Fix typo.
10361
10362 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
10363
10364         * include/errno.h (__set_errno): Define as errno = val
10365         unconditionally.
10366
10367 2002-11-24  Roland McGrath  <roland@redhat.com>
10368
10369         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
10370         * sysdeps/posix/writev.c: Likewise.
10371         From Momchil Velikov <velco@fadata.bg>.
10372
10373         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
10374         calling *GL(dl_error_catch_tsd) for a thread-local location.
10375         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
10376         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
10377         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
10378
10379         * libio/iofflush.c: Add libc_hidden_def.
10380         * libio/iofwrite.c: Likewise.
10381         * sysdeps/generic/sigtimedwait.c: Likewise.
10382         * sysdeps/generic/sigwaitinfo.c: Likewise.
10383         * sysdeps/posix/sigwait.c: Likewise.
10384         Reported by Momchil Velikov <velco@fadata.bg>.
10385
10386         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
10387         to match <arpa/inet.h> declaration.
10388         * inet/inet_netof.c (inet_netof): Likewise.
10389         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
10390         Reported by Momchil Velikov <velco@fadata.bg>.
10391
10392         * configure.in: Skip AUTOCONF check under --without-cvs.
10393         * configure: Regenerated.
10394
10395         * posix/Makefile (headers): Add bits/pthreadtypes.h.
10396         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
10397         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
10398
10399 2002-11-24  Andreas Schwab  <schwab@suse.de>
10400
10401         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
10402         with six arguments.
10403
10404 2002-11-19  Jim Meyering  <jim@meyering.net>
10405
10406         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
10407         as `static'.
10408         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
10409
10410 2002-11-23  Roland McGrath  <roland@redhat.com>
10411
10412         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
10413         Just produce hex output for datum sizes.
10414
10415         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
10416         Reported by Luca Barbieri <ldb@ldb.ods.org>.
10417
10418 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
10419
10420         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
10421         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
10422         and __unused3 fields.
10423         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
10424         [__WORDSIZE == 32]: Only PPC32 requires __unused1
10425         and __unused2 fields.
10426         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
10427         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
10428         __unused3, and __unused4 fields.
10429
10430         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
10431         obtain lowest address for profiling in __monstartup call.
10432
10433 2002-11-21  Roland McGrath  <roland@redhat.com>
10434
10435         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
10436         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
10437
10438         * locale/localeinfo.h (struct locale_data): Revert last change.
10439
10440         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
10441         From Ian Wienand <ianw@gelato.unsw.edu.au>.
10442
10443         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
10444         __NR_pread64 if not defined.
10445         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
10446         From Ian Wienand <ianw@gelato.unsw.edu.au>.
10447
10448 2002-11-21  Roland McGrath  <roland@frob.com>
10449
10450         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
10451         __libc_multiple_libcs here.  Call __setfpucw.
10452
10453 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
10454
10455         * elf/Makefile (tests): Don't run test-arrayX tests for now.
10456
10457         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
10458         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
10459         CLONE_CHILD_*TID flags.
10460
10461 2002-11-20  Andreas Jaeger  <aj@suse.de>
10462
10463         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
10464         We pass struct ucontext on x86-64.
10465         (GET_PC): Adjust.
10466         (GET_FRAME): Adjust.
10467         (GET_STACK): Adjust.
10468
10469 2002-11-20  Roland McGrath  <roland@redhat.com>
10470
10471         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
10472         conditionalize [! DO_VERSIONING] #error.
10473
10474         * scripts/abilist.awk: Grok function descriptor symbols.
10475
10476         * intl/tst-gettext.c (main): Check return values from setlocale.
10477         Add necessary unsetenv's to make LANG=existing-locale check work.
10478
10479         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
10480         so aborted prior runs don't confuse things.
10481
10482         * locale/localeinfo.h (struct locale_data: union locale_data_value):
10483         Use uintptr_t instead of unsigned int for `word' member.
10484         (_NL_CURRENT_WORD): Cast to uint32_t.
10485
10486         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
10487         value.
10488
10489 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
10490
10491         * elf/tls-macros.h: Add IA-64 definitions.
10492         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
10493
10494         * iconv/Makefile (tests): Add tst-iconv4.
10495         * iconv/tst-iconv4.c: New file.
10496
10497         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
10498         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
10499         __GCONV_INCOMPLETE_INPUT.
10500         (ucs4le_internal_loop): Likewise.
10501         (ucs4le_internal_loop_unaligned): Likewise.
10502         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
10503         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
10504         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
10505
10506         * iconv/loop.c (LOOPFCT): First test for empty input then for full
10507         output buffer.
10508
10509         * inet/getnameinfo.c: Use extend_alloca where appropriate.
10510         * sysdeps/posix/getaddrinfo.c: Likewise.
10511
10512         * include/alloca.h (extend_alloca): New define.  Based on stack
10513         direction it'll try to append to the previouls allocated buffer.
10514
10515 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
10516
10517         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
10518         use the same service for AF_INET and AF_INET6.
10519
10520 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
10521
10522         * intl/localealias.c (read_alias_file): Use only about 400 bytes
10523         of stack space instead of 16k.
10524
10525 2002-11-18  Wolfram Gloger  <wg@malloc.de>
10526
10527         * malloc/arena.c
10528         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
10529         nothing if not initialized.  Bug report from Marcus Brinkmann
10530         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10531
10532 2002-11-19  Roland McGrath  <roland@redhat.com>
10533
10534         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
10535         sched_setaffinity.
10536
10537         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
10538         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
10539         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
10540         * configure: Regenerated.
10541
10542 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
10543
10544         * include/dlfcn.h: __libc_dlopen is now a macro calling
10545         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
10546         (__libc_dlopen_mode): New prototype.
10547         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
10548         new parameter.  Store new parameter in mode field of structure passed
10549         to do_dlopen.
10550         (struct do_dlopen_args): Add new field mode.
10551         (do_dlopen): Pass mode from parameter structure to _dl_open.
10552
10553 2002-11-11  Randolf Chung  <tausq@debian.org>
10554
10555         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
10556         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
10557         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
10558
10559         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
10560
10561         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
10562         Set -mdisable-fpregs for this file.
10563
10564 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
10565
10566         * sysdeps/unix/sysv/linux/configure.in:
10567         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
10568         from gcc-3.0 era for backwards compatibility.
10569         * sysdeps/unix/sysv/linux/configure: Regenerate.
10570
10571         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
10572         Define mcontext_t as a sigcontext.
10573
10574 2002-11-18  Roland McGrath  <roland@redhat.com>
10575
10576         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
10577         Free memory in `last_result' if it was used.
10578
10579         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
10580         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
10581         Do the parsing inline instead of copying strings and calling
10582         inet_network, and properly skip all alias names not matching the form.
10583
10584         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
10585
10586 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
10587
10588         * manual/pattern.texi (Wordexp Example): Fix sample code.
10589
10590         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
10591         childs stack which will be loaded into the %esi register.
10592
10593 2002-11-14  Paul Eggert  <eggert@twinsun.com>
10594
10595         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
10596         overflow when skipping the question part and when unpacking aliases.
10597
10598 2002-11-15  Roland McGrath  <roland@redhat.com>
10599
10600         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
10601         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
10602         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
10603
10604 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
10605
10606         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
10607         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
10608
10609 2002-11-15  Roland McGrath  <roland@redhat.com>
10610
10611         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
10612         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
10613         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
10614         (+make-include-of-dep): New canned sequence.
10615
10616         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
10617         From Dmitry V. Levin <ldv@altlinux.org>.
10618
10619 2002-11-14  Roland McGrath  <roland@redhat.com>
10620
10621         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
10622         * inet/herrno.c (__libc_h_errno): Likewise.
10623         * resolv/res_libc.c (__libc_res): Likewise.
10624         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
10625         (__res_state) [! USE___THREAD]: Don't define as weak.
10626         * csu/Versions: Revert last change.
10627         * resolv/Versions: Revert last change.
10628
10629         * Makerules ($(common-objpfx)%.make): New pattern rule.
10630         * tls.make.c: New file.
10631         * Makefile (distribute): Add it.
10632
10633         * sysdeps/generic/errno.c [! USE___THREAD]
10634         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
10635         with compat_symbol so they are not link-time visible.
10636         [! USE___THREAD] (__libc_errno): New alias for errno.
10637         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
10638         Add __libc_errno here.
10639         * inet/herrno.c [USE___THREAD]: Use this conditional
10640         in place of [USE_TLS && HAVE___THREAD].
10641         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
10642         (h_errno, _h_errno): Declare these with compat_symbol so they are not
10643         link-time visible.
10644         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
10645         * resolv/res_libc.c [! USE___THREAD]
10646         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
10647         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
10648         (__libc_res): Define as alias for _res.
10649         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
10650         Add __libc_h_errno and __libc_res here.
10651
10652 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
10653
10654         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
10655         * resolv/Versions (h_errno, _res): Likewise.
10656
10657 2002-11-14  Roland McGrath  <roland@redhat.com>
10658
10659         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
10660         (%.symlist): Likewise.
10661
10662 2002-11-13  Roland McGrath  <roland@redhat.com>
10663
10664         * scripts/abilist.awk: New file.
10665         * Makefile (distribute): Add it.
10666         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
10667         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
10668         [$(subdir) = elf] (tests): Depend on libc.symlist.
10669         (generated, common-generated): Add those files.
10670
10671         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
10672         * configure: Regenerated.
10673         * config.make.in (OBJDUMP): New variable, substituted by configure.
10674
10675         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
10676         (mallochook, reallochook): Set them up.
10677         (checkhdr): Check HDR->magic2 value.
10678         (freehook): Reset HDR->magic2.
10679         (memalignhook): New static function.
10680         (old_memalign_hook): New static variable.
10681         (mcheck, reallochook): Set __memalign_hook to memalignhook.
10682
10683         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
10684         for the new TCB.
10685
10686 2002-11-13  Andreas Jaeger  <aj@suse.de>
10687
10688         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
10689         attribute.
10690         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10691
10692 2002-11-11  Paul Eggert  <eggert@twinsun.com>
10693
10694         * manual/crypt.texi (Cryptographic Functions): Mention that
10695         the MD5 one-way algorithm is compatible with BSD's.
10696
10697 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
10698
10699         * posix/regex_internal.c (re_string_skip_chars): Also return the last
10700         wide character.
10701         (re_string_reconstruct): Calculate the context by itself when the
10702         offset points out of the valid range.
10703         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
10704         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
10705         (IS_WIDE_WORD_CHAR): New macro.
10706         (IS_WIDE_NEWLINE): New macro.
10707
10708 2002-11-12  Andreas Jaeger  <aj@suse.de>
10709
10710         * sysdeps/x86_64/strchr.S: Don't use one register for two
10711         purposes, this fixes a bug noticed by test-strchr.c.
10712
10713         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
10714         correctly.
10715
10716 2002-11-12  Roland McGrath  <roland@redhat.com>
10717
10718         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
10719         (_G_IO_NO_BACKWARD_COMPAT): Define it.
10720
10721         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
10722         instead of <pt-machine.h>.
10723         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
10724         testandset.
10725         From Ian Wienand <ianw@gelato.unsw.edu.au>.
10726
10727 2002-11-10  Roland McGrath  <roland@redhat.com>
10728
10729         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
10730         Call fputs instead of fwprintf (simpler to follow in debugger).
10731
10732         * crypt/md5-crypt.c: Doc fix.
10733
10734         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
10735         the beginning of generated target commands.
10736
10737         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
10738         dependencies for these in case implicit rule search skipped the
10739         nonexistent source directory.
10740         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
10741         files with $(object-suffixes) as targets too.
10742         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
10743         and a target for it using $(make-target-directory).
10744
10745         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
10746
10747 2002-11-10  Roland McGrath  <roland@frob.com>
10748
10749         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
10750         * sysdeps/generic/bits/pthreadtypes.h: ... here.
10751
10752         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
10753         l_start == 0 and l_len == 1 as we do l_len == 0.
10754
10755 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
10756
10757         * po/da.po: Update from translation team.
10758
10759 2002-11-10  Roland McGrath  <roland@redhat.com>
10760
10761         * config.make.in (includedir): New variable, substituted by configure.
10762         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
10763         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
10764
10765 2002-11-10  Andreas Jaeger  <aj@suse.de>
10766
10767         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
10768         REG_OLDMASK and REG_CR2 to synch with kernel header.
10769         (NGREG): Increase.
10770
10771         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
10772         aliasing problem.
10773         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
10774         * nss/getnssent_r.c (__nss_getent_r): Likewise.
10775         (__nss_setent): Likewise.
10776         (__nss_getent_r): Likewise.
10777         * inet/getnetgrent_r.c (innetgr): Likewise.
10778         (__internal_setnetgrent_reuse): Likewise.
10779         (internal_getnetgrent_r): Likewise.
10780         * inet/ether_hton.c (ether_hostton): Likewise.
10781         * inet/ether_ntoh.c (ether_ntohost): Likewise.
10782         * sunrpc/netname.c (netname2user): Likewise.
10783         * sunrpc/publickey.c (getpublickey): Likewise.
10784         (getsecretkey): Likewise.
10785
10786 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
10787
10788         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
10789         error in range calculation.
10790
10791 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
10792
10793         * string/test-strspn.c (do_test): Ensure zero termination.
10794         * string/test-strpbrk.c (do_test): Likewise.
10795         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
10796         * string/test-strncpy.c (stupid_strncpy): Likewise.
10797         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
10798
10799 2002-10-08  Roland McGrath  <roland@redhat.com>
10800
10801         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
10802         nonzero characters.
10803
10804 2002-09-22  H.J. Lu  <hjl@gnu.org>
10805
10806         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
10807         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
10808         only if __NR_mmap2 is defined.
10809
10810         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
10811         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
10812         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
10813         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
10814
10815 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
10816
10817         * posix/bug-regex13.c (tests): Add new test.
10818
10819         * string/test-strchr.c (stupid_strchr): New function.
10820         (do_random_tests): Make sure the string is zero terminated.
10821         * string/test-strpbrk.c (stupid_strpbrk): New function.
10822         (do_random_tests): Make sure the string is zero terminated.
10823         * string/test-strcmp.c (stupid_strcmp): New function.
10824         (do_random_tests): Make sure the strings are zero terminated.
10825         * string/test-strspn.c (stupid_strspn): New function.
10826         (simple_strspn): Rename rej argument to acc.
10827         (do_random_tests): Make sure the string is zero terminated.
10828         * string/test-strcspn.c (stupid_strcspn): New function.
10829         * string/test-strncpy.c (stupid_strncpy): New function.
10830         * string/test-stpncpy.c (stupid_stpncpy): New function.
10831         * string/test-strncmp.c (stupid_strncmp): New function.
10832         (do_random_tests): Make sure the strings are zero terminated.
10833         * string/test-string.h (impl_t): Change test into long.
10834         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
10835
10836 2002-11-08  Roland McGrath  <roland@redhat.com>
10837
10838         * sysdeps/ia64/elf/configure.in: Add TLS check.
10839         From Ian Wienand <ianw@cse.unsw.edu.au>.
10840         * sysdeps/ia64/elf/configure: Regenerated.
10841
10842 2002-11-07  Roland McGrath  <roland@redhat.com>
10843
10844         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
10845         place of _IO_new_do_write.
10846         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
10847         #undef before versioned_symbol use.
10848
10849 2002-11-07  Richard Henderson  <rth@redhat.com>
10850
10851         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
10852         * configure: Regenerated.
10853         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
10854         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
10855         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
10856         _dl_fini via gp-relative relocations.
10857         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
10858
10859         * elf/tls-macros.h: Add alpha versions.
10860         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
10861         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
10862         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
10863         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
10864         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
10865         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
10866         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
10867         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
10868         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
10869         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
10870         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
10871         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10872         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
10873         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
10874         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
10875         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
10876         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
10877         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
10878
10879         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
10880         Kill argument registers across the inline syscall.
10881
10882         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
10883
10884         * linuxthreads/sysdeps/alpha/tls.h: New file.
10885         * sysdeps/alpha/dl-tls.h: New file.
10886
10887 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
10888
10889         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
10890         (gmon_initializer): New function.
10891         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
10892         __gmon_start__ here.  Call it from gmon_initializer() instead.
10893
10894 2002-03-12  H.J. Lu  <hjl@gnu.org>
10895
10896         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
10897         tst-array2, and tst-array3.
10898         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
10899         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
10900         ($(objpfx)tst-array1.out): New target.
10901         ($(objpfx)tst-array2): Likewise.
10902         ($(objpfx)tst-array2.out): Likewise.
10903         ($(objpfx)tst-array3.out): Likewise.
10904         * elf/tst-array1.c: New file.
10905         * elf/tst-array1.exp: Likewise.
10906         * elf/tst-array2.c: Likewise.
10907         * elf/tst-array2dep.c: Likewise.
10908         * elf/tst-array2.exp: Likewise.
10909         * elf/tst-array3.c: Likewise.
10910
10911 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
10912
10913         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
10914         Don't add L->l_addr to array entry values.
10915
10916 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
10917
10918         * string/test-string.h: New file.
10919         * string/test-strlen.c: New file.
10920         * string/test-string.h: New file.
10921         * string/test-strcmp.c: New file.
10922         * string/test-strchr.c: New file.
10923         * string/test-strrchr.c: New file.
10924         * string/test-strcpy.c: New file.
10925         * string/test-stpcpy.c: New file.
10926         * string/test-strncpy.c: New file.
10927         * string/test-stpncpy.c: New file.
10928         * string/test-strpbrk.c: New file.
10929         * string/test-strcspn.c: New file.
10930         * string/test-strspn.c: New file.
10931         * string/test-strcat.c: New file.
10932         * string/test-strncmp.c: New file.
10933         * string/test-memchr.c: New file.
10934         * string/test-memcmp.c: New file.
10935         * string/test-memset.c: New file.
10936         * string/test-memcpy.c: New file.
10937         * string/test-mempcpy.c: New file.
10938         * string/test-memmove.c: New file.
10939         * string/Makefile (strop-tests): New variable.
10940         (tests): Add strop-tests.
10941         (distribute): Add test-string.h.
10942
10943 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
10944
10945         * posix/regcomp.c: Use tabs instead of spaces.
10946         * posix/regexec.c: Likewise.
10947         * posix/regex_internal.h: Likewise.
10948
10949         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
10950
10951 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
10952
10953         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
10954         here.
10955         (regcomp): Don't set can_be_null here.
10956         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
10957         (re_compile_internal): Clear can_be_null, set regs_allocated.
10958
10959         * posix/regcomp.c (re_set_fastmap): New function.
10960         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
10961         COMPLEX_BRACKET check.
10962         * posix/regexec.c (re_search_internal): Optimize searching with
10963         fastmap.  Call re_string_reconstruct even if match_first is
10964         smaller than raw_mbs_idx.
10965
10966 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
10967
10968         * posix/regcomp (free_dfa_content): Use free_state.
10969         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
10970         pointers in case that realloc failed.
10971         (re_node_set_merge): Likewise.
10972         (register_state): Likewise.
10973         (create_newstate_common): Invoke memory release functions in case of
10974         error conditions.
10975         (create_ci_newstate): Likewise.
10976         (create_cd_newstate): Likewise.
10977         (free_state): New function.
10978         * posix/regexec.c (re_search_internal): Invoke memory release
10979         functions in case of error conditions.
10980         (sift_states_backward): Likewise.
10981         (merge_state_array): Likewise.
10982         (add_epsilon_src_nodes): Likewise.
10983         (sub_epsilon_src_nodes): Likewise.
10984         (search_subexp): Likewise.
10985         (sift_states_bkref): Likewise.
10986         (transit_state_sb): Likewise.
10987         (transit_state_mb): Likewise.
10988         (transit_state_bkref_loop): Likewise.
10989         (group_nodes_into_DFAstates): Likewise.
10990         (push_fail_stack): Don't edit pointers in case that realloc failed.
10991         (extend_buffers): Likewise.
10992         (match_ctx_add_entry): Likewise.
10993
10994 2002-11-06  Roland McGrath  <roland@redhat.com>
10995
10996         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
10997         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10998
10999         * configure.in: Add checks on as and ld for binutils 2.13 or later.
11000         * configure: Regenerated.
11001
11002 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
11003
11004         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
11005         If re_compile_internal failed free fastmap buffer.
11006         (free_dfa_content): Broken out of regfree function.  Frees all dfa
11007         related data.
11008         (regfree): Add free_dfa_content.
11009         (re_compile_internal): If any of the called functions fails free
11010         all dfa related memory.
11011
11012 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11013
11014         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
11015         warnings from the kernel headers.
11016
11017 2002-11-05  Roland McGrath  <roland@redhat.com>
11018
11019         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
11020         From Johannes Stezenbach <js@convergence.de>.
11021
11022         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
11023         #errlist-compat magic comment to give 123 as size.
11024         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
11025         (libc: GLIBC_2.2): ... here.
11026         (libc: GLIBC_2.3): Likewise.
11027
11028 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11029
11030         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
11031         which happens at the beginning so that we can unload modules in
11032         __libc_freeres.
11033
11034 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11035
11036         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
11037         under [__USE_MISC || _ASM].
11038
11039         * elf/elf.h: Remove the obsolete SH TLS relocations.
11040
11041 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11042
11043         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
11044
11045 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11046
11047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
11048         __NR_pread64 and __NR_pwrite64.
11049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11050         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
11051         and __NR_pwrite64.
11052         Revert change to use INLINE_SYSCALL.
11053         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11054         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
11055         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11056         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
11057         INLINE_SYSCALL.
11058         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
11059
11060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11061         Update clobber list and add a comment about the syscall ABI.
11062
11063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
11064         s_pwrite64, s_ftruncate, s_truncate): Re-add.
11065
11066 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
11067
11068         * iconv/gconv_dl.c (free_mem): Clear loaded.
11069         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
11070         cleanup if any.
11071
11072 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
11073
11074         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
11075
11076         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
11077         as old code without locking.  _IO_seekoff calls this function after
11078         locking the stream.
11079         * libio/ioseekpos.c: Likewise for _IO_seekpos.
11080         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
11081         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
11082         prototypes.
11083         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
11084         of _IO_seekoff_internal.
11085         (_IO_rewind): Likewise.
11086         * libio/ioftell.c: Likewise.
11087         * libio/ftello.c: Likewise.
11088         * libio/ftello64.c: Likewise.
11089         * libio/iofgetpos.c: Likewise.
11090         * libio/iofgetpos64.c: Likewise.
11091         * libio/oldiofgetpos.c: Likewise.
11092         * libio/oldiofgetpos64.c: Likewise.
11093         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
11094         _IO_seekpos_internal.
11095         * libio/iofsetpos64.c: Likewise.
11096         * libio/oldiofsetpos.c: Likewise.
11097         * libio/oldiofsetpos64.c: Likewise.
11098
11099 2002-11-04  Roland McGrath  <roland@redhat.com>
11100
11101         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
11102         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
11103         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
11104         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
11105         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11106         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
11107         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11108         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
11109         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
11110         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
11111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
11112         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
11113         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
11114         Remove these, no longer used.
11115
11116 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11117
11118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
11119         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
11120         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
11121         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
11122         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
11123         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
11124         syscall stubs.
11125
11126         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
11127         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11128         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
11129         and __NR_pread.
11130         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11131         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
11132         and __NR_pwrite.
11133         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11134
11135 2002-11-03  Roland McGrath  <roland@redhat.com>
11136
11137         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
11138         `_dl_tls_static_used'.
11139         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
11140         (__libc_setup_tls): Initialize it.  Let the initial value of
11141         _dl_tls_static_size indicate some surplus space in the computed value.
11142         * elf/dl-open.c (_dl_tls_static_size): New variable.
11143         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
11144         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
11145         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
11146         (CHECK_STATIC_TLS): Use it.
11147         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
11148         closed objects occupied a trailing contiguous chunk of static TLS area.
11149
11150 2002-10-18  Bruno Haible  <bruno@clisp.org>
11151
11152         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
11153
11154 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
11155
11156         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
11157         _wide_data->_IO_read_end if adjustment can be made in the current
11158         buffer.
11159
11160         * sysdeps/unix/sysv/linux/fexecve.c: New file.
11161
11162         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
11163         wide oriented streams are used.
11164
11165         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
11166         service hasn't been used [PR libc/4744].
11167
11168         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
11169         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
11170
11171         * manual/examples/dir.c: Don't include <stddef.h>.
11172         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
11173         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
11174
11175 2002-11-02  H.J. Lu  <hjl@gnu.org>
11176
11177         * stdio-common/reg-printf.c: Include <stddef.h>.
11178
11179 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
11180
11181         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
11182
11183         * po/ca.po: Update from translation team.
11184         * po/es.po: Likewise.
11185
11186         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
11187         is defined write out memory map.
11188         * sysdeps/unix/sysv/linux/segfault.c: New file.
11189
11190 2002-11-02  Roland McGrath  <roland@redhat.com>
11191
11192         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
11193         pointers that can alias.
11194         Reported by Daniel Jacobowitz <drow@mvista.com>.
11195
11196         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
11197
11198 2002-11-02  Roland McGrath  <roland@redhat.com>
11199
11200         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
11201         description to be clearer and to say that *RESULT is set to ENTRY.
11202
11203 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11204
11205         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
11206         dests_ch arrays together.  Alloca or malloc dest_states,
11207         dest_states_word and dest_states_nl arrays together.  Free memory on
11208         error exit.
11209
11210 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
11211
11212         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
11213         and current_saltbits.
11214
11215 2002-11-02  Roland McGrath  <roland@redhat.com>
11216
11217         * stdio-common/reg-printf.c: Include <stdlib.h>.
11218
11219 2002-11-02  H.J. Lu  <hjl@gnu.org>
11220
11221         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
11222         caller to EXTRA instead of execve.
11223
11224 2002-11-01  Roland McGrath  <roland@redhat.com>
11225
11226         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
11227         in place of [!(USE_TLS && HAVE___THREAD)].
11228         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
11229
11230 2002-10-31  Roger Sayle  <roger@eyesopen.com>
11231
11232         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
11233         New macros.
11234         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11235
11236         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
11237         without defining FP_ROUNDMODE.
11238
11239 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
11240
11241         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
11242         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
11243         declare_symbol.
11244         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
11245         (OLD_SIGLIST_SIZE): Define.
11246         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
11247         (OLD_SIGLIST_SIZE): Define.
11248         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
11249
11250 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
11251
11252         * sysdeps/ia64/strncpy.S: Fix recovery code.
11253
11254 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11255
11256         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
11257         New macros.
11258         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
11259         text_set_element.
11260         * elf/dl-libc.c (free_mem): Likewise.
11261         * iconv/gconv_conf.c (free_mem): Likewise.
11262         * iconv/gconv_db.c (free_mem): Likewise.
11263         * iconv/gconv_dl.c (free_mem): Likewise.
11264         * iconv/gconv_cache.c (free_mem): Likewise.
11265         * intl/finddomain.c (free_mem): Likewise.
11266         * intl/dcigettext.c (free_mem): Likewise.
11267         * locale/setlocale.c (free_mem): Likewise.
11268         * misc/fstab.c (fstab_free): Likewise.
11269         * nss/nsswitch.c (free_mem): Likewise.
11270         * posix/regcomp.c (free_mem): Likewise.
11271         * resolv/gai_misc.c (free_res): Likewise.
11272         * stdlib/fmtmsg.c (free_mem): Likewise.
11273         * sunrpc/clnt_perr.c (free_mem): Likewise.
11274         * sysdeps/generic/setenv.c (free_mem): Likewise.
11275         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
11276         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
11277         * time/tzset.c (free_mem): Likewise.
11278         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
11279         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
11280         * malloc/set-freeres.c (__libc_freeres): Likewise.
11281
11282         * login/getutent.c: Include stdlib.h instead of stddef.h.
11283         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
11284         (__getutent): Allocate buffer the first time it is run.
11285         * login/getutid.c: Include stdlib.h instead of stddef.h.
11286         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
11287         (__getutid): Allocate buffer the first time it is run.
11288         * login/getutline.c: Include stdlib.h instead of stddef.h.
11289         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
11290         (__getutline): Allocate buffer the first time it is run.
11291         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
11292         (mtrace): Allocate malloc_trace_buffer.
11293         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
11294         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
11295         * string/strerror.c: Include libintl.h and errno.h.
11296         (buf): New variable.
11297         (strerror): Only allocate buffer if actually needed (unknown error).
11298         * time/tzfile.c (transitions): Add libc_freeres_ptr.
11299         (freeres): Remove.
11300
11301 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
11302
11303         * include/libc-symbols.h (libc_freeres_ptr): New macro.
11304         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
11305         symbol_set_define.
11306         (__libc_freeres): Free all pointers in that section.
11307         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
11308         commands when creating .lds script.
11309         (LDSEDCMD-c.so): New variable.
11310         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
11311         (rcmd_af): Use strdup to allocate ahostbuf.
11312         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
11313         (rexec_af): Use strdup to allocate ahostbuf.
11314         * stdio-common/reg-printf.c (printf_funcs): Remove.
11315         (__printf_arginfo_table): Change into printf_arginfo_function **.
11316         Add libc_freeres_ptr.
11317         (__register_printf_function): Allocate __printf_arginfo_table
11318         and __printf_function_table the first time it is called.
11319         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
11320         printf_arginfo_function **.
11321         (parse_one_spec): Add __builtin_expect.
11322         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
11323         (free_mem): Remove.
11324         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
11325         (free_mem): Remove.
11326         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
11327         (string_space, map): Add libc_freeres_ptr.
11328         (free_mem): Remove.
11329         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
11330         (free_mem): Remove.
11331         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
11332         (free_mem): Remove.
11333         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
11334         (buffer): Add libc_freeres_ptr.
11335         (free_mem): Remove for _LIBC.
11336         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
11337         (free_mem): Remove.
11338         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
11339         (free_mem): Remove.
11340         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
11341         (free_mem): Remove.
11342         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
11343         (free_mem): Remove.
11344         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
11345         (free_mem): Remove.
11346         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
11347         (free_mem): Remove.
11348         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
11349         libc_freeres_ptr.
11350         (free_mem): Remove.
11351         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
11352         libc_freeres_ptr.
11353         (free_mem): Remove.
11354
11355 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11356
11357         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
11358         instead of duplicating the whole function in libc.
11359
11360 2002-10-31  Roland McGrath  <roland@redhat.com>
11361
11362         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
11363         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
11364
11365 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
11366
11367         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
11368         32bit-predefine when creating .new32 list and -U for each
11369         32bit-predefine when creating .new64 list.
11370         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
11371
11372 2002-10-29  Andreas Schwab  <schwab@suse.de>
11373
11374         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
11375         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
11376
11377 2002-10-25  Roland McGrath  <roland@redhat.com>
11378
11379         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
11380         * sysdeps/unix/sysv/linux/configure: Regenerated.
11381
11382         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
11383         _dl_starting_up decl.
11384
11385 2002-10-20  H.J. Lu  <hjl@gnu.org>
11386
11387         * sysdeps/unix/sysv/linux/configure.in: Don't check
11388         /lib/modules/`uname -r`/build/include for kernel headers if
11389         cross compiling.
11390         * sysdeps/unix/sysv/linux/configure: Regenerated.
11391
11392 2002-10-25  Roland McGrath  <roland@redhat.com>
11393
11394         * math/math.h (M_LOG2El): Correct the value.
11395         From Stephen L Moshier <steve@moshier.net>.
11396
11397         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
11398         conditional from __libc_multiple_libcs access.  Remove kludge for weak
11399         symbol access with old compilers we no longer support.
11400         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
11401         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
11402
11403 2002-10-25  Roland McGrath  <roland@redhat.com>
11404
11405         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
11406         implement SV_RESETHAND by translating it to SA_RESETHAND.
11407
11408 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
11409
11410         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
11411         type on ELF64 platforms.
11412
11413 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
11414
11415         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
11416
11417         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
11418
11419 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
11420
11421         * elf/dl-misc.c: Include <sysdep.h>.
11422         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
11423
11424         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
11425         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
11426         (INLINE_SYSCALL): Use that.
11427         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
11428         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
11429         (INLINE_SYSCALL): Use that.
11430         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
11431         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
11432         (INLINE_SYSCALL): Use that.
11433         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
11434         dl-sysdep.h.
11435         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
11436         (__INTERNAL_SYSCALL_STRING): Define.
11437         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11438         dl-sysdep.h.
11439         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
11440         (__INTERNAL_SYSCALL_STRING): Define.
11441         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
11442         __SYSCALL_STRING to inline_syscall*.
11443         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
11444         New macros.
11445         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
11446         inline_syscall4, inline_syscall5, inline_syscall6): Add string
11447         argument.
11448
11449 2002-10-24  Roland McGrath  <roland@redhat.com>
11450
11451         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
11452         * sysdeps/unix/sysv/linux/init-first.c: Not here.
11453         * sysdeps/powerpc/elf/libc-start.c: Or here.
11454         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
11455         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
11456         * sysdeps/unix/sysv/aix/init-first.c: Or here.
11457         * sysdeps/generic/libc-start.c: Or here.
11458         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
11459         access with [! SHARED].
11460         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
11461
11462         * libio/bug-wfflush.c: New file.
11463         * libio/Makefile (tests): Add bug-wfflush.
11464
11465 2002-10-23  Roland McGrath  <roland@redhat.com>
11466
11467         * stdio-common/tst-fphex.c: New file.
11468         * stdio-common/Makefile (tests): Add tst-fphex.
11469         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
11470         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
11471         chars always before the value digits.
11472         Reported by James Antill <james.antill@redhat.com>.
11473
11474 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
11475
11476         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
11477         (free_mem): New function.
11478         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
11479         if not cross compiling.
11480         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
11481         (bug-regex14-ENV): Set.
11482         (bug-regex14-mem): New target.
11483         * posix/bug-regex14.c: New file.
11484
11485 2002-10-23  Roland McGrath  <roland@redhat.com>
11486
11487         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
11488         target, so we don't touch it when the link fails.
11489
11490         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
11491         Check for the result overflowing off_t and fail with EOVERFLOW.
11492         * libio/ioftell.c (_IO_ftell): Likewise.
11493         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
11494
11495         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
11496         use a temporary timeval on the stack for gettimeofday and copy it.
11497         * login/logout.c (logout): Likewise.
11498         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
11499
11500         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
11501         Use __SWORD_TYPE instead of int for member types.
11502         (struct statfs64): Likewise.
11503         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
11504         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
11505         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
11506         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
11507         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
11508
11509         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
11510         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
11511         (ST_NODIRATIME): Restore fixed value of 2048.
11512         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
11513         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
11514
11515         Rearranged <bits/types.h> definitions to reduce duplication.
11516         * sysdeps/generic/bits/types.h: Rewritten, using macros from
11517         <bits/wordsize.h> and new header <bits/typesizes.h>.
11518         * posix/Makefile (headers): Add bits/typesizes.h here.
11519         * sysdeps/generic/bits/typesizes.h: New file.
11520         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
11521         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
11522         * sysdeps/mach/hurd/bits/typesizes.h: New file.
11523         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
11524         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
11525         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
11526         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
11527         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
11528         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
11529         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
11530         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
11531         <bits/pthreadtypes.h> here, not in <bits/types.h>.
11532         * signal/signal.h: Likewise.
11533
11534         * streams/stropts.h: Include <bits/xtitypes.h>.
11535         * streams/Makefile (headers): Add bits/xtitypes.h here.
11536         * sysdeps/generic/bits/xtitypes.h: New file.
11537         * sysdeps/s390/bits/xtitypes.h: New file.
11538         * sysdeps/ia64/bits/xtitypes.h: New file.
11539         * sysdeps/x86_64/bits/xtitypes.h: New file.
11540
11541         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
11542         * sysdeps/generic/bits/ipctypes.h: New file.
11543         * sysdeps/mips/bits/ipctypes.h: New file.
11544         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
11545         * sysdeps/gnu/bits/msq.h: Likewise.
11546         * sysvipc/sys/ipc.h: Likewise.
11547
11548 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
11549
11550         * elf/dl-load.c (struct filebuf): For buf element to have the
11551         alignment of ElfXX_Ehdr since this is what will be stored in it.
11552
11553 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
11554
11555         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
11556         into pointer to locrec_offset.
11557         (add_locale_to_archive): Adjust callers.  Free normalized_name right
11558         before returning, not immediately after add_locale, pass it to
11559         add_alias if not NULL instead of name.  Rename second normalized_name
11560         occurence to nnormalized_codeset_name.
11561
11562         * locale/programs/locarchive.c (enlarge_archive): Make sure
11563         string_size is always a multiple of 4.
11564         Reported by Andreas Schwab <schwab@suse.de>.
11565
11566 2002-10-21  Andreas Schwab  <schwab@suse.de>
11567
11568         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
11569         caller to EXTRA instead of execve, since the latter has a
11570         higher-priority implementation in linuxthreads.
11571
11572 2002-10-21  Roland McGrath  <roland@redhat.com>
11573
11574         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
11575         slotinfo list's len member to the proper size, not just 1.
11576         Initialize static_map.l_tls_initimage.
11577
11578         * elf/dl-open.c (dl_open_worker): Fix loop searching for
11579         dtv_slotinfo_list element containing new modules' l_tls_modid.
11580
11581         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
11582         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
11583         * elf/Makefile (tests): Add tst-tls9.
11584         (tests-static): Add tst-tls9-static.
11585         (tst-tls9-static-ENV): New variable.
11586         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
11587
11588         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
11589         modids used by partially loaded modules being closed can't be known.
11590
11591 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
11592
11593         * posix/Makefile: Add a test case for the bug reported by Aharon
11594         Robbins <arnold@skeeve.com>.
11595         * posix/bug-regex13.c: New file.
11596         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
11597
11598 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
11599
11600         * csu/gmon-start.c: Pretty printing.
11601
11602 2002-10-19  Art Haas  <ahaas@neosoft.com>
11603
11604         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
11605         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
11606         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
11607         * configure: Regenerated.
11608
11609 2002-10-19  Roland McGrath  <roland@redhat.com>
11610
11611         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
11612         and then set $subdirs directly, because the new Autoconf breaks
11613         compatibility in every way imaginable and insists on whining
11614         about usage that worked since the dawn of time.
11615         * configure: Regenerated.
11616
11617         * configure: Regenerated (using Autoconf 2.54).
11618         * sysdeps/alpha/elf/configure: Likewise.
11619         * sysdeps/generic/configure: Likewise.
11620         * sysdeps/i386/elf/configure: Likewise.
11621         * sysdeps/ia64/elf/configure: Likewise.
11622         * sysdeps/mach/hurd/configure: Likewise.
11623         * sysdeps/mach/configure: Likewise.
11624         * sysdeps/unix/configure: Likewise.
11625         * sysdeps/unix/common/configure: Likewise.
11626         * sysdeps/unix/sysv/aix/configure: Likewise.
11627         * sysdeps/unix/sysv/linux/configure: Likewise.
11628         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
11629         * sysdeps/x86_64/elf/configure: Likewise.
11630
11631         * config.make.in: Nix completely-soft nonsense.
11632         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
11633         of machine directories instead of fpu subdirectory.
11634         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
11635         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
11636         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
11637         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
11638         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
11639         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
11640         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
11641         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
11642         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
11643         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
11644         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
11645         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
11646         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
11647         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
11648         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
11649         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
11650         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
11651         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
11652         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
11653         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
11654         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
11655         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
11656         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
11657         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
11658         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
11659         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
11660         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
11661         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
11662         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
11663         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
11664         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
11665         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
11666         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
11667         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
11668         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
11669         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
11670         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
11671         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
11672         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
11673         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
11674
11675 2002-10-19  Bruno Haible  <bruno@clisp.org>
11676
11677         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
11678
11679 2002-10-18  Roland McGrath  <roland@redhat.com>
11680
11681         * io/Makefile (routines): Add lchmod.
11682         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
11683         * sysdeps/generic/lchmod.c: New file.
11684         * sysdeps/mach/hurd/lchmod.c: New file.
11685         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
11686
11687 2002-10-18  Art Haas  <ahaas@neosoft.com>
11688
11689         * configure.in: Remove remaining AC_FD_CC macros, and replace
11690         AC_FD_MSG with AS_MESSAGE_FD.
11691
11692 2002-10-18  Roland McGrath  <roland@redhat.com>
11693
11694         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
11695         typos: VALUE -> FINALADDR.
11696
11697         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
11698         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
11699         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
11700         (inline_syscall6): Move these macros ...
11701         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
11702
11703         * configure.in (libc_link_dests, libc_link_sources): Remove these
11704         variables and the AC_LINK_FILES call.
11705
11706         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
11707         change to put new symbols here instead of in GLIBC_2.2.
11708         * sysdeps/powerpc/Subdirs: Move this file ...
11709         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
11710
11711 2002-10-07  Roland McGrath  <roland@redhat.com>
11712
11713         * sysdeps/generic/bits/time.h: Replaced with contents of the
11714         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
11715         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
11716         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
11717         macros is ok even for architectures that don't now implement them.
11718         * sysdeps/mach/hurd/bits/time.h: File removed.
11719         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
11720         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
11721         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
11722         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
11723         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
11724
11725 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
11726
11727         * configure.in: Replace obsolete AC_OUTPUT syntax with
11728         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
11729
11730         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
11731         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
11732
11733         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
11734         * sysdeps/alpha/elf/configure.in: Likewise.
11735         * sysdeps/i386/elf/configure.in: Likewise.
11736         * sysdeps/mach/hurd/configure.in: Likewise.
11737         * sysdeps/x86_64/elf/configure.in: Likewise.
11738
11739         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
11740
11741         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
11742         * sysdeps/generic/configure.in: Likewise.
11743         * sysdeps/i386/elf/configure.in: Likewise.
11744         * sysdeps/ia64/elf/configure.in: Likewise.
11745         * sysdeps/mach/configure.in: Likewise.
11746         * sysdeps/mach/hurd/configure.in: Likewise.
11747         * sysdeps/unix/configure.in: Likewise.
11748         * sysdeps/unix/common/configure.in: Likewise.
11749         * sysdeps/unix/sysv/aix/configure.in: Likewise.
11750         * sysdeps/unix/sysv/linux/configure.in: Likewise.
11751         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
11752         * sysdeps/x86_64/elf/configure.in: Likewise.
11753
11754         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
11755         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
11756         that it's obvious when extra autoconf machinery is being dragged in.
11757
11758 2002-10-18  Roland McGrath  <roland@redhat.com>
11759
11760         * configure.in: Remove bogus echo included in
11761         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
11762         * configure: Regenerated.
11763
11764 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
11765
11766         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
11767         (statfs_filesize_max): New function.
11768         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
11769         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
11770         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
11771         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
11772         statfs_filesize_max.
11773         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11774         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
11775         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
11776
11777 2002-10-17  Roland McGrath  <roland@redhat.com>
11778
11779         * configure.in (MIG): Just AC_SUBST it here.
11780         * configure: Regenerated.
11781         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
11782         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
11783         * sysdeps/mach/configure: Regenerated.
11784
11785         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
11786         and AC_PROVIDE([_AS_CR_PREPARE]).
11787
11788         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
11789         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
11790
11791         * elf/dl-support.c: Move _dl_tls_* variables to ...
11792         * sysdeps/generic/libc-tls.c: ... here.
11793
11794         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
11795         allow IDX to be one past the current last slotinfo entry.
11796         (_dl_close): Pass IMAP->l_init_called for that parameter.
11797
11798 2002-10-07  Andreas Schwab  <schwab@suse.de>
11799
11800         * aclocal.m4: Fix for autoconf 2.53.
11801         * configure.in: Likewise.  Require autoconf 2.53.
11802
11803 2002-10-08  Richard Henderson  <rth@redhat.com>
11804
11805         * soft-fp/op-4.h: Handle carry correctly in
11806         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
11807         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
11808         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
11809
11810 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
11811
11812         * configure.in: Compute completely-soft.
11813         * config.make.in: Make completely-soft available to sub-makes.
11814         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
11815         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
11816         fe_nomask to libm-support.
11817         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
11818         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
11819         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
11820         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
11821         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
11822         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
11823         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
11824         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
11825         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
11826         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
11827         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
11828         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
11829         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
11830         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
11831         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
11832         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
11833         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
11834         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
11835         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
11836         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
11837         __sim_round_mode.
11838         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
11839         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
11840         FP_HANDLE_EXCEPTIONS.
11841         Define FP_ROUNDMODE.
11842         Redefine FP_* macros to correspond to the FE_* bit positions.
11843         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
11844         Define externs for __sim_exceptions, __sim_disabled_exceptions,
11845         __sim_round_mode, __simulate_exceptions.
11846         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
11847         * sysdeps/powerpc/bits/fenv.h: ...to here.
11848
11849 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
11850
11851         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
11852         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
11853         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
11854         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
11855         __builtin_expect.
11856
11857 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
11858
11859         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
11860         __libc_res_nsend): New prototypes.
11861         * resolv/res_query.c (QUERYSIZE): Define.
11862         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
11863         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
11864         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
11865         res_nsend, pass answerp.
11866         (res_nquery): Changed into wrapper around __libc_res_nquery.
11867         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
11868         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
11869         instead of the non-__libc_ variants, pass them answerp.
11870         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
11871         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
11872         Added answerp argument.  Call __libc_res_nquery instead of
11873         res_nquery, pass answerp.
11874         (res_nquerydomain): Changed into wrapper around
11875         __libc_res_nquerydomain.
11876         * resolv/res_send.c: Include sys/ioctl.h.
11877         (MAXPACKET): Define.
11878         (send_vc): Change arguments.  Reallocate answer buffer if it is
11879         too small.
11880         (send_dg): Likewise.
11881         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
11882         Reallocate answer buffer if it is too small and hooks are in use.
11883         Adjust calls to send_vc and send_dg.
11884         (res_nsend): Changed into wrapper around __libc_res_nsend.
11885         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
11886         just 1K answer buffer on the stack, use __libc_res_nsearch instead
11887         of res_nsearch.
11888         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
11889         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
11890         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
11891         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
11892         (gethostbyaddr): Similarly with __libc_res_nquery.
11893         * resolv/Versions (libresolv): Export __libc_res_nquery and
11894         __libc_res_nsearch at GLIBC_PRIVATE.
11895
11896 2002-10-17  Roland McGrath  <roland@redhat.com>
11897
11898         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
11899         * configure: Regenerated.
11900
11901         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
11902         before performing the reloc, not after.
11903         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
11904
11905 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
11906
11907         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
11908         * locale/programs/linereader.c (lr_open): Likewise.
11909         * locale/programs/charmap-dir.c (charmap_open): Likewise.
11910         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11911
11912 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
11913
11914         * posix/bug-regex11.c: Add a test case for the bug reported by
11915         Paolo Bonzini <bonzini@gnu.org>.
11916         * posix/regexec.c (sift_states_bkref): Use correct destination of
11917         the back reference.
11918
11919 2002-10-17  Roland McGrath  <roland@redhat.com>
11920
11921         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
11922         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
11923         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
11924         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
11925         Call it after performing TPOFF relocs.
11926         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11927         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11928         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
11929
11930         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
11931         when closing a partially-initialized object.
11932
11933         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
11934         instead of _dl_fatal_printf when we see PT_TLS.
11935
11936         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
11937         instead of $(libof-$<).
11938
11939 2002-10-16  Roland McGrath  <roland@redhat.com>
11940
11941         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
11942         instead of += to append, to be sure $(lib) gets expanded at defn time.
11943         (libof-$(cpp-src)): New variable, define this instead.
11944         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
11945         (lib): Don't use override.
11946         (CPPFLAGS-$(lib)): New variable, put -D's here.
11947         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
11948         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
11949         LIB found by $(libof-*) for basename, target, or source.
11950         * Makerules (CPPFLAGS-nonlib): New variable.
11951         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
11952         * locale/Makefile (lib): Likewise.
11953         * sunrpc/Makefile (lib): Likewise.
11954
11955         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
11956         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
11957         * sysdeps/unix/sysv/linux/pathconf.h: New file.
11958         (statfs_link_max): New function, guts from fpathconf.c.
11959         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
11960         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11961         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
11962         to use the linux/pathconf.c code by #include rather than duplication.
11963         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
11964
11965 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
11966
11967         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11968         Use __libc_errno only for libc itself.
11969
11970 2002-10-16  Andreas Jaeger  <aj@suse.de>
11971
11972         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
11973
11974 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
11975
11976         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11977         Use __libc_errno only for libc itself.
11978
11979 2002-10-15  Roland McGrath  <roland@redhat.com>
11980             Jakub Jelinek  <jakub@redhat.com>
11981
11982         * sysdeps/unix/sysv/linux/Makefile
11983         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
11984         sparc/Makefile to produce a bi-arch file as needed.
11985         That's now parameterized by the variable $(64bit-predefine).
11986         Use LC_ALL=C for `comm' commands in that rule.
11987         No longer conditional on [$(no_syscall_list_h)].
11988         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
11989         (64bit-predefine): New variable.
11990         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
11991         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
11992         * sysdeps/unix/sysv/linux/powerpc/Makefile
11993         (64bit-predefine): New variable.
11994
11995 2002-10-15  Roland McGrath  <roland@redhat.com>
11996
11997         * sysdeps/unix/sysv/linux/Makefile
11998         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
11999
12000         * login/utmp-private.h: Declare __libc_utmp_lock.
12001         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
12002         and call __libc_utmp_jump_table functions directly, instead of using
12003         __setutent et al.
12004
12005         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
12006         * sysdeps/unix/sysv/linux/configure: Regenerated.
12007
12008         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
12009         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
12010         Use int32_t for ll_time.
12011         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
12012         Use int32_t instead of long int for ut_session.
12013         Use an anonymous struct with 32-bit fields for ut_tv.
12014         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
12015         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
12016         here as in utmp.h for `struct utmp'.
12017         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
12018         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
12019         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
12020         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
12021         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
12022         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
12023
12024         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
12025         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
12026         All the following files were identical or equivalent to it.
12027         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
12028         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
12029         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
12030         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
12031         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
12032         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
12033         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
12034         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
12035         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
12036         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
12037
12038         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
12039         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
12040         Other than the previously incorrect sign of msg_iovlen, this is a
12041         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
12042         match their layouts as well, so the following are now identical to it.
12043         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
12044         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
12045         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
12046         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
12047         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
12048
12049 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
12050
12051         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
12052         Define for 2.4+ kernels.
12053
12054         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
12055         are known to have the vfork syscall.  Don't confuse the CPUs
12056         branch prediction unit by jumping to the return address.
12057
12058         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
12059         support for reiserfs and xfs.
12060
12061         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
12062         XFS link count.
12063         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
12064         and XFS_LINK_MAX.
12065         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
12066
12067 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
12068
12069         * include/libc-symbols.h (attribute_tls_model_ie): Define.
12070         * include/errno.h (errno): Define to __libc_errno in libc.so.
12071         Add attribute_tls_model_ie.
12072         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
12073         Add attribute_tls_model_ie.
12074         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
12075         attribute_tls_model_ie.
12076         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
12077         (h_errno): Define.
12078         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
12079         (_res): Define.
12080         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
12081         attribute_tls_model_ie.
12082         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
12083         __thread.
12084         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
12085         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
12086         __libc_errno in USE___THREAD case.
12087         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12088         Likewise.
12089         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
12090         __attribute__((tls_model (""))).
12091         * configure: Rebuilt.
12092         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
12093
12094 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
12095
12096         * timezone/asia: Update from tzdata2002d.
12097         * timezone/australasia: Likewise.
12098         * timezone/iso3166.tab: Likewise.
12099         * timezone/southamerica: Likewise.
12100         * timezone/zone-tab: Likewise.
12101
12102 2002-10-15  Roland McGrath  <roland@redhat.com>
12103
12104         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
12105         Adjust TCB pointer before calling free, so we get the whole block.
12106
12107 2002-10-14  Roland McGrath  <roland@redhat.com>
12108
12109         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
12110         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
12111         extern using attribute_hidden instead of static, avoids warning.
12112
12113 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
12114
12115         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
12116         * sysdeps/unix/sysv/linux/configure: Rebuilt.
12117
12118 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
12119
12120         * po/sv.po: Update from translation team.
12121
12122 2002-10-12  H.J. Lu  <hjl@gnu.org>
12123
12124         * sunrpc/thrsvc.c (PROCQUIT): New.
12125         (struct rpc_arg): New.
12126         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
12127         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
12128         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
12129         (main): Modified for struct rpc_arg *.
12130
12131 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
12132
12133         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
12134
12135 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
12136
12137         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
12138         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
12139         in ld.so even if __thread is supported.
12140
12141 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
12142
12143         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
12144         Add hack to prevent the compiler from clobbering the signal context.
12145         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
12146         Likewise.
12147         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
12148         Likewise.
12149
12150 2002-10-14  Andreas Jaeger  <aj@suse.de>
12151
12152         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
12153         Guido Guenther <agx@sigxcpu.org>.
12154
12155 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
12156
12157         * po/sk.po: Update from translation team.
12158
12159 2002-09-26  Roland McGrath  <roland@redhat.com>
12160
12161         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
12162         dynamic string tag.
12163         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
12164         DL_DST_LIB based on $(slibdir).
12165
12166 2002-10-13  Roland McGrath  <roland@frob.com>
12167
12168         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
12169
12170         * sysdeps/mach/hurd/getresuid.c: New file.
12171         * sysdeps/mach/hurd/getresgid.c: New file.
12172         * sysdeps/mach/hurd/setresuid.c: New file.
12173         * sysdeps/mach/hurd/setresgid.c: New file.
12174
12175         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
12176         setresgid): Declare them.
12177         * NEWS: Mention it.
12178         * include/unistd.h
12179         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
12180         add libc_hidden_proto.
12181         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
12182         getresuid, getresgid, setresuid, setresgid here.
12183         * Versions.def (libc): Define GLIBC_2.3.2 set.
12184         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
12185         Add libc_hidden_def.
12186         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
12187         * sysdeps/generic/setresgid.c: New file.
12188         * sysdeps/generic/setresuid.c: New file.
12189         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12190         (sysdep_routines): Don't add getresuid and getresgid here.
12191         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
12192         (sysdep_routines): Don't add setresuid and setresgid here.
12193         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
12194         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
12195         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
12196         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
12197         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
12198         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
12199         * posix/Makefile (routines): Add them all here instead.
12200         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
12201         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
12202         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
12203         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
12204         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
12205         [! __NR_setresuid]: Include generic file.
12206         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
12207         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
12208         [! __NR_setresuid]: Include generic file.
12209         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
12210         Caller is - now, not EXTRA.
12211         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
12212         (setresuid, setresgid, getresuid, getresgid): Likewise.
12213         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
12214         Add these calls here.
12215         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
12216         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
12217         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
12218         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12219         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
12222         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
12223         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
12224
12225         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12226         (sysdep_routines): Add setfsuid and setfsgid here.
12227         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
12228         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
12229         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
12230         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
12231         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
12232         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
12233         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
12234         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
12235
12236         * hurd/errno.c: Renamed to ...
12237         * hurd/errno-loc.c: ... this.
12238         * hurd/Makefile (routines): errno -> errno-loc
12239
12240 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
12241
12242         * po/de.po: Update from translation team.
12243
12244         * MakeTAGS: Add -E flag to xgettext runs.
12245
12246 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
12247
12248         * po/fr.po: Update from translation team.
12249
12250         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
12251         Optimize a bit for use in glibc.
12252
12253 2002-10-12  Roland McGrath  <roland@redhat.com>
12254
12255         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
12256         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
12257
12258 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
12259
12260         * po/sv.po: Update from translation team.
12261
12262 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
12263
12264         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
12265         OP_CONTEXT_NODE.
12266         (regfree): Likewise.
12267         (create_initial_state): Likewise.
12268         (analyze): Remove the substitutions which became useless.
12269         (calc_first): Likewise.
12270         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
12271         epsilon destination.
12272         (duplicate_node_closure): New function.
12273         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
12274         (calc_inveclosure): Likewise.
12275         (calc_eclosure): Likewise.
12276         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
12277         direct invocation of duplicate_node.
12278         (parse): Don't use comma operator in the return to avoid compiler
12279         warning.
12280         (parse_reg_exp): Likewise.
12281         (parse_branch): Likewise.
12282         (parse_expression): Likewise.
12283         (parse_sub_exp): Likewise.
12284         (parse_dup_op): Likewise.
12285         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
12286         which became useless.
12287         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
12288         (create_cd_newstate): Likewise.
12289         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
12290         (re_token_t): Likewise.
12291         (re_dfa_t): Likewise.
12292         (re_node_set_remove): New macro.
12293         * posix/regexec.c (check_matching): Remove the handling
12294         OP_CONTEXT_NODE.
12295         (check_halt_node_context): Likewise.
12296         (proceed_next_node): Likewise.
12297         (pop_fail_stack): Fix the memory leak.
12298         (set_regs): Likewise.
12299         (free_fail_stack_return): New function.
12300         (sift_states_backward): Fix the memory leak.  Remove the handling
12301         OP_CONTEXT_NODE.
12302         (update_cur_sifted_state): Append some if clause to avoid redundant
12303         call.
12304         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
12305         back reference.
12306         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
12307         (check_subexp_limits): Likewise.
12308         (search_subexp): Likewise.
12309         (sift_states_bkref): Likewise.
12310         (transit_state_mb): Likewise.
12311         (transit_state_bkref_loop): Likewise.
12312         (transit_state_bkref_loop): Likewise.
12313         (group_nodes_into_DFAstates): Likewise.
12314         (check_node_accept): Likewise.
12315         (sift_ctx_init): Add initializing.
12316
12317 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
12318
12319         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
12320         __builtin_expect.
12321
12322 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
12323
12324         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
12325         duplicated variable c.
12326
12327         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
12328         if possible.
12329
12330         * sysdeps/unix/sysv/linux/i386/sysdep.h
12331         (INTERNAL_SYSCALL_ERROR_P): New define.
12332         (INTERNAL_SYSCALL_ERRNO): Likewise.
12333
12334         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
12335         Add hack to prevent the compiler from clobbering the signal context.
12336
12337 2002-10-11  Roland McGrath  <roland@redhat.com>
12338
12339         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12340         Fix typos.
12341
12342         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
12343         * sysdeps/sh/dl-lookupcfg.h: File removed.
12344         * sysdeps/i386/dl-lookupcfg.h: File removed.
12345
12346         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
12347         missing labels and ; from last change.
12348
12349         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
12350         number literals, so they are doubles instead of ints.
12351
12352 2002-10-09  Roland McGrath  <roland@redhat.com>
12353
12354         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
12355         changed from [USE_TLS && HAVE___THREAD].
12356
12357         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
12358         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
12359         * sysdeps/x86_64/dl-machine.h
12360         (elf_machine_type_class, elf_machine_rela): Likewise.
12361         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
12362         Likewise.
12363
12364         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
12365         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
12366         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
12367
12368         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
12369         instead of ___tls_get_addr.
12370         (___tls_get_addr_internal): Add attribute_hidden to decl.
12371
12372         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
12373         _dl_error_catch_tsd.
12374         * elf/rtld.c (startup_error_tsd): New function.
12375         (dl_main): Point _dl_error_catch_tsd at that.
12376         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
12377         use new function pointer instead.
12378         * elf/dl-tsd.c: New file.
12379         * elf/Makefile (routines): Add it.
12380
12381 2002-10-07  Roland McGrath  <roland@redhat.com>
12382
12383         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
12384         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
12385         take _dl_load_lock around calling __writev.
12386
12387         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
12388         (INLINE_SYSCALL): Use that.
12389
12390         * sysdeps/generic/dl-sysdep.h: New file.
12391         * sysdeps/mach/hurd/dl-sysdep.h: New file.
12392         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
12393         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
12394         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
12395         access it directly.
12396         * elf/dl-minimal.c (__errno_location): Removed.
12397         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
12398         Use GOTOFF access for errno.
12399         * sysdeps/unix/sysv/linux/i386/sysdep.h
12400         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
12401
12402         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
12403         Use PC-relative access for errno.
12404         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12405         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
12406
12407         * include/tls.h: New file.
12408         (USE___THREAD): New macro.
12409         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
12410         libc or libpthread.
12411         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
12412         changed from [USE_TLS && HAVE___THREAD].
12413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12414         * sysdeps/unix/i386/sysdep.S: Likewise.
12415         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12416         * include/errno.h: Likewise.
12417         * include/netdb.h: Likewise.
12418         * include/resolv.h: Likewise.
12419
12420         * sysdeps/generic/errno.c: New file.
12421         * csu/Makefile (aux): New variable, list errno.
12422         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
12423         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
12424         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
12425         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12426         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12427         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
12428         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
12429         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
12430         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12431         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
12432         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
12433         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
12434         * sysdeps/unix/alpha/sysdep.S: Likewise.
12435         * sysdeps/generic/start.c: Likewise.
12436         * sysdeps/unix/start.c: Likewise.
12437         * sysdeps/unix/arm/start.c: Likewise.
12438         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
12439         * sysdeps/unix/sparc/start.c: Likewise.
12440         * sysdeps/unix/sysv/irix4/start.c: Likewise.
12441         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
12442
12443         * manual/search.texi (Tree Search Function, Hash Search Function):
12444         Mention search.h clearly.
12445
12446 2002-10-05  Roland McGrath  <roland@redhat.com>
12447
12448         * elf/dl-fxstat64.c: File removed.
12449         * elf/dl-xstat64.c: File removed.
12450         * elf/Makefile (rtld-routines): Remove them.
12451         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
12452         Instead, use strong_alias instead of versioned_symbol in the
12453         !SHLIB_COMPAT case.
12454         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
12455         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
12456
12457         * include/shlib-compat.h
12458         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
12459         [! NOT_IN_libc] (IS_IN_libc): Define it.
12460         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
12461         * elf/Makefile (CPPFLAGS-.os): Likewise.
12462
12463         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
12464         Return the status instead of calling exit.
12465
12466         * Makeconfig (CFLAGS): Prepend -std=gnu99.
12467         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
12468         Remove superfluous rm command, whose @ plus make bugs hid
12469         all these commands from the make output.
12470
12471         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
12472         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
12473         Use that file's contents instead of literal echo's for the prologue.
12474         * include/features.h: Include <gnu/stubs.h> unconditionally.
12475         * include/gnu/stubs.h: New file.
12476
12477 2002-09-30  Roland McGrath  <roland@redhat.com>
12478
12479         * elf/rtld-Rules: New file.
12480         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
12481         $(objpfx)rtld-libc.a): New targets.
12482         (generated): Add them.
12483         (reloc-link): Remove -o $@ from the variable.
12484         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
12485         (distribute): Add rtld-Rules.
12486         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
12487         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
12488         (common-mostlyclean, common-clean): Clean up rtld-* files.
12489         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
12490
12491 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
12492
12493         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
12494         If temp != NULL, copy dynamic entries which need relocation to temp
12495         array before relocating.
12496         (DL_RO_DYN_TEMP_CNT): Define.
12497         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
12498         * elf/rtld.c (_dl_start): Likewise.
12499         (dl_main): Likewise.  Add dyn_temp static variable.
12500
12501 2002-10-11  Roland McGrath  <roland@redhat.com>
12502
12503         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
12504         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
12505
12506         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
12507         proper set of no-op insn prefixes.
12508
12509         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
12510
12511 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
12512
12513         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
12514         __pthread_kill_other_threads_np.
12515
12516         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
12517
12518 2002-10-08  Roland McGrath  <roland@redhat.com>
12519
12520         * locale/newlocale.c (__newlocale): If setting all categories to "C",
12521         just return &_nl_C_locobj instead of copying it.
12522         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
12523         * locale/duplocale.c (__duplocale): Likewise.
12524
12525 2002-10-07  Roland McGrath  <roland@frob.com>
12526
12527         * config.h.in (HAVE_I386_SET_GDT): New #undef.
12528         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
12529         * sysdeps/mach/configure: Regenerated.
12530
12531 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12532
12533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12534         Add all necessary register outputs for syscall-clobbered registers.
12535
12536 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
12537
12538         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
12539         Itanium 2 (and Itanium).
12540         Fix unwind directives and make it fit in 80 columns.
12541         * sysdeps/ia64/memset.S: Likewise.
12542         * sysdeps/ia64/memcpy.S: Likewise.
12543         Move jump table to .rodata section.
12544
12545 2002-10-03  Roland McGrath  <roland@frob.com>
12546
12547         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
12548         clobbers to asm.
12549
12550 2002-10-10  Andreas Jaeger  <aj@suse.de>
12551
12552         * sysdeps/x86_64/_mcount.S: Restore correct registers.
12553
12554 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
12555
12556         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
12557
12558 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
12559
12560         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
12561         _dl_allocate_tls_init.  Add rtld_hidden_proto.
12562         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
12563         rtld_hidden_def.
12564         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
12565
12566         * version.h (VERSION): Bump to 2.3.1.
12567
12568         * Make-dist: Add back one of the tar invocations removed before.
12569
12570         * stdlib/Makefile (distribute): Add allocalim.h.
12571
12572         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
12573         (__libc_tsd_address): Use correct variable name.
12574         Patch by Stefan Jones <stefan.jones@multigig.com>.
12575
12576         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
12577         Reported by edwardsg@sgi.com [PR libc/4678].
12578
12579         * Versions.def (libc): Add GLIBC_2.3.1.
12580         (libpthread): Add GLIBC_2.3.1.
12581
12582         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
12583         and __sigtimedwait.
12584         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
12585         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
12586         libc_hidden_def.
12587         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
12588         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
12589
12590         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
12591         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
12592         and make old name an alias.
12593         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
12594         and make old name an alias.
12595         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
12596         __libc_msgsnd.
12597
12598         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
12599         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
12600         __libc_writev.
12601         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
12602         old name an alias.
12603         * sysdeps/posix/readv.c: Likewise
12604         * sysdeps/unix/sysv/aix/readv.c: Likewise.
12605         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12606         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
12607         old name an alias.
12608         * sysdeps/posix/writev.c: Likewise
12609         * sysdeps/unix/sysv/aix/writev.c: Likewise.
12610         * sysdeps/unix/sysv/linux/writev.c: Likewise.
12611
12612         * include/sys/wait.h: Declare __waitid.
12613         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
12614         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
12615         name an alias.
12616         * sysdeps/posix/waitid.c: Likewise.
12617         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
12618
12619         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
12620
12621 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
12622
12623         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
12624         prototypes.
12625         (__MAX_ALLOCA_CUTOFF): Define.
12626         Include allocalim.h.
12627         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
12628         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
12629         host_buffer depending on __libc_use_alloca.
12630         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
12631         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
12632         net_buffer depending on __libc_use_alloca.
12633         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
12634         buf depending on __libc_use_alloca.
12635         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
12636         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
12637         instead of hardcoded constants.
12638         Pass proper size argument to alloca and compute end for wide char
12639         version.
12640         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
12641         instead of hardcoded constants.
12642         * string/strcoll.c (strcoll): Likewise.
12643         * string/strxfrm.c (strxfrm): Likewise.
12644         * sysdeps/posix/readv.c (__readv): Likewise.
12645         * sysdeps/posix/writev.c (__writev): Likewise.
12646         * sysdeps/generic/allocalim.h: New file.
12647
12648 2002-10-08  Roland McGrath  <roland@redhat.com>
12649
12650         * configure.in (aux_missing warning): Change "too old" to
12651         "incompatible versions", since for autoconf it's "too new" right now.
12652         * configure: Regenerated.
12653
12654         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
12655         one found doesn't work on our configure.in.
12656         * configure: Regenerated.
12657         * config.make.in (AUTOCONF): New substituted variable.
12658         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
12659         (autoconf-it): ... here, use that instead of defining conditionally.
12660         Use $(AUTOCONF) instead of literal autoconf.
12661         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
12662         with this condition.
12663         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
12664
12665 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
12666
12667         * Make-dist (dist): Cleanup a bit.  We are not interested in the
12668         14 char filename limit anymore.  Remove intermediate files and
12669         symlinks.
12670
12671 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
12672
12673         * po/sk.po: Update from translation team.
12674         * po/tr.po: Likewise.
12675         * po/gl.po: Likewise.
12676
12677 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12678
12679         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
12680
12681 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
12682
12683         * version.h (RELEASE): Change to stable.
12684
12685 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
12686
12687         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
12688         __syscall_exit_group): New prototypes.
12689
12690 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
12691
12692         * glibc 2.3 released.
12693
12694
12695 See ChangeLog.13 for earlier changes.