Support cancellation in librt.
[glibc.git] / ChangeLog
blob404169f1df11045504728c57a78f8fb10c8238bc
1 2003-06-20  Richard Henderson  <rth@redhat.com>
3         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
4         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
6 2003-06-20  Richard Henderson  <rth@redhat.com>
8         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
9         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
10         Unset for alpha.
11         (__ASSUME_TIMEVAL64): Set for alpha.
12         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
13         adjtimex, osf_sigprocmask, old_adjtimex.
14         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
15         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
16         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
17         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
18         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
19         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
20         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
21         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
22         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
23         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
24         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
25         PIC code sequence.
26         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
27         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
28         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
29         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
30         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
31         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
32         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
33         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
34         defer to __syscall_name; error for rt_sigaction.
35         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
37 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
39         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
40         hasn't happened yet.
42         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
43         Fix completely broken implementation.  The second parameter is of
44         type struct ucontext*.
46         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
47         inline.
49         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
50         * sysdeps/generic/dl-hash.h: Likewise.
52         * sysdeps/generic/memcmp.c: Remove inline from
53         memcmp_common_alignment and memcmp_not_common_alignment definition.
55         * intl/localealias.c (read_alias_file): Determine whether line is
56         read incompletely early, before we modify the line.
58 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
60         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
61         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
63 2003-06-17  Paul Mackerras  <paulus@samba.org>
65         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
66         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
67         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
68         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
69         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
70         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
72 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
74         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
76 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
78         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
79         takes care of enabling cancellation.
81         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
82         cancelable.  It's not correct to disable cancellation.  Instead of
83         a cleanup handler.
85         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
86         and part of the incoming set, create a temporary set without this
87         signal.
88         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
89         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
91         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
92         returning because seconds==0.  Add __builtin_expect.
94 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
96         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
98         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
99         variable.
101 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
103         * include/libc-symbols.h: Add static_link_warning macro.
104         * grp/initgroups.c: Print linker warning if this function
105         is called in a static linked binary.
106         * nss/getXXbyYY.c: Likewise.
107         * nss/getXXbyYY_r.c: Likewise.
108         * nss/getXXent.c: Likewise.
109         * nss/getXXent_r.c: Likewise.
110         * sysdeps/posix/getaddrinfo.c: Likewise.
112 2003-06-16  Bruno Haible  <bruno@clisp.org>
114         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
115         LATIN-9.
116         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
117         (IBM1047): Add alias IBM-1047.
118         (GBK): Add aliases MS936, WINDOWS-936.
120 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
122         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
123         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
124         (__xstat64_conv): Change xstat_conv to __xstat_conv.
126 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
128         * locale/iso-639.def: Update from current official ISO 639.
130         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
132 2003-06-15  Andreas Jaeger  <aj@suse.de>
134         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
135         of MXCSR.
136         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
137         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
138         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
140         * math/tgmath.h (carg): Handle real arguments.
141         (conj): Likewise.
142         (cproj): Likewise.
143         (cimag): Likewise.
144         (creal): Likewise.
146         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
147         (tests): Add test-tgmath-ret.
148         * math/test-tgmath-ret.c: New file.
150         * math/tgmath.h (ilogb): Return always an int.
152 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
154         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
155         computation so that prelinking works.
157 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
159         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
160         linker's map.
161         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
162         dynamic linker's map.
164         Fix cancellation point handling wrt exception based cleanup.
165         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
166         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
167         with exceptions.
168         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
169         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
170         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
171         exceptions.
172         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
173         sigwait.c, and sigwaitinfo.c with exceptions.
174         * stdlib/Makefile: Compile system.c with exceptions.
175         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
176         * termios/Makefile: Compile tcdrain.c with exceptions.
177         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
178         situation.
179         * sysdeps/generic/pselect.c: Likewise.
180         * sysdeps/posix/sigpause.c: Likewise.
181         * sysdeps/posix/system.c: Likewise.
182         * sysdeps/posix/waitid.c: Likewise.
183         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
184         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
185         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
186         INTERNAL_SYSCALL to not use push inside asm statement so that
187         unwind info is correct around the syscall.
188         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
189         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
191 2003-06-15  Andreas Jaeger  <aj@suse.de>
193         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
194         Add CFI directives.
196 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
198         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
199         create $(objpfx).
201 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
203         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
204         not close.
206         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
207         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
208         definition.
210         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
211         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
212         * inet/Makefile (routines): Add inet6_option.
213         * inet/inet6_option.c: New file.
214         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
215         inet6_option_init, inet6_option_append, inet6_option_alloc,
216         inet6_option_next, and inet6_option_find.
218 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
220         * inet/netinet/ip6.h (struct ip6_ext): Define.
222         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
224         Fixing gcc 3.3 warnings, part II.
225         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
226         * elf/dl-load.c (cache_rpath): Don't inline.
227         * iconvdata/cns11642l2.h: Always inline all functions.
228         * iconvdata/iso-ir-165.h: Likewise.
229         * locale/Makefile (aux): Add coll-lookup.
230         * locale/coll-lookup.c: New file.
231         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
232         (collseq_table_lookup): Likewise.
233         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
234         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
235         change.
236         * posix/regcomp.c: Likewise.
237         * posix/regexec.c: Likewise.
238         * locale/programs/3level.h (*_get): Always inline.
239         * locale/programs/locfile.h: Move definition of handle_copy to...
240         * locale/programs/locfile.c: ...here.
241         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
242         (obstack_int32_grow_fast): Likewise.
243         (utf8_encode): Likewise.
244         (find_element): Avoid aliasing problems.
245         (insert_value): Likewise.
246         (collate_read): Likewise.
247         * nss/getent.c (print_hosts): Don't inline
248         (print_networks): Likewise.
249         (print_shadow): Likewise.
250         (build_doc): Likewise.
251         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
252         inline.
253         * posix/regcomp.c (re_set_fastmap): Always inline.
254         (seek_collating_symbol_entry): Likewise.
255         (lookup_collation_sequence_value): Likewise.
256         (build_range_exp): Likewise.
257         (build_collating_symbol): Likewise.
258         * posix/regexec.c (acquire_init_state_context): Don't inline.
259         (clean_state_log_if_need): Likewise.
260         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
261         adjust all callers.
262         (evConsTime): Likewise.
263         (evAddTime): Likewise.
264         (evSubTime): Likewise.
265         (evNowTime): Likewise.
266         (evTimeSpec): Removed.
267         (__libc_res_nsend): Avoid aliasing problem.
268         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
269         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
270         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
271         Always inline.
272         (_dl_string_platform): Likewise.
273         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
274         (wcwidth_table_lookup): Likewise.
275         (wctrans_table_lookup): Likewise.
277         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
279 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
281         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
283 2003-05-29  Jim Meyering  <jim@meyering.net>
285         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
286         && HAVE_STRFTIME]: Use underlying_strftime for %r.
287         Suggested by Daniel Yacob <locales@geez.org>.
289 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
291         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
292         @got notation with @toc.
293         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
296 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
299         if only PF_INET address is needed.
301         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
302         case of an error.
304         * scripts/config.guess: Update from upstream version.
305         * scripts/config.sub: Likewise.
307 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
309         * locale/programs/ld-time.c (time_output): Also copy the era format,
310         not only the name.
312 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
314         * posix/transbug.c (run_test): Return 1 for failure.
315         (do_test): Compare only if run_test is successful.
317 2003-06-12  Simon Josefsson  <jas@extundo.com>
319         * argp/argp.h [!__THROW]: Define if undefined.
321 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
323         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
324         more than four parameters.
325         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
327 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
329         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
330         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
331         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
333         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
335 2003-06-12  Roland McGrath  <roland@redhat.com>
337         * Makerules ($(objpfx)stubs): Rewrite sed magic.
339 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
341         * posix/regcomp.c (parse_expression): Deliver translation to
342         build_word_op, and build_charclass.
343         (build_charclass): Apply translation for character classes too.
344         (build_word_op): Deliver translation to build_charclass.
345         * posix/transbug.c: New file.
346         * posix/Makefile (tests): Add transbug.
348 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
350         * posix/regexec.c (group_nodes_into_DFAstates): Check for
351         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
352         'continue' before the others.
354 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
356         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
357         function [PR libc/5045].
359         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
360         also for P4.
362         * time/tzfile.c: Add a couple of __builtin_expect.
364         Remove warnings gcc 3.3 shows.
365         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
366         * elf/dl-load.c (fillin_rpath): Likewise.
367         (add_path): Likewise.
368         * elf/dl-version.c (find_needed): Always inline.
369         * elf/do-lookup.c (FCT): Don't inline.
370         * iconv/Makefile: Extend vpath to intl subdir.
371         (iconvconfig-modules): Add hash-string.
372         * iconv/gconv_charset.h (strip): Don't inline.
373         (upstr): Always inline.
374         Move __gconv_compare_alias prototype to...
375         * iconv/gconv_int.h: ...here.
376         * iconv/gconv_db.c: Don't include gconv_charset.h.
377         * iconv/gconv_conf.c (add_alias): Don't inline.
378         (insert_module): Likewise.
379         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
380         (internal_ucs4_loop_unaligned): Likewise.
381         (internal_ucs4_loop_single): Likewise.
382         (ucs4_internal_loop): Likewise.
383         (ucs4_internal_loop_unaligned): Likewise.
384         (ucs4_internal_loop_single): Likewise.
385         (internal_ucs4le_loop): Always inline.
386         (internal_ucs4le_loop_unaligned): Likewise.
387         (internal_ucs4le_loop_single): Likewise.
388         (ucs4le_internal_loop): Likewise.
389         (ucs4le_internal_loop_unaligned): Likewise.
390         (ucs4le_internal_loop_single): Likewise.
391         * iconv/loop.c: Always inline the defined functions.
392         * iconvdata/cns11642.h: Likewise.
393         * iconvdata/cns11642l1.h: Likewise.
394         * iconvdata/euc-kr.c: Likewise.
395         * iconvdata/gb2312.h: Likewise.
396         * iconvdata/jis0201.h: Likewise.
397         * iconvdata/jis0208.h: Likewise.
398         * iconvdata/jis0212.h: Likewise.
399         * iconvdata/jisx0213.h: Likewise.
400         * iconvdata/ksc5601.h: Likewise.
401         * iconvdata/utf-7.c (base64): Don't inline.
402         * include/libc-symbols.h (symbol_set_first_element): Add cast
403         (symbol_set_end_p): Likewise.
404         * include/set-hooks (RUN_HOOK): Likewise.
405         * inet/Makefile (aux): Add ifreq.
406         * intl/Makefile (aux): Add some entries from routines.  Add
407         hash-string.
408         * intl/hash-string.c: New file.
409         * intl/hash-string.h: Remove hash_string definition.  Declare
410         __hash_string.
411         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
412         * iconv/iconvconfig.c (new_name): Likewise.
413         * intl/dcigettext.c (_nl_find_msg): Likewise.
414         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
415         * io/ftw.c (open_dir_stream): Always inline.
416         (process_entry): Don't inline.
417         * locale/findlocale.c: Include gconv_int.h.
418         * locale/setlocale.c (new_composite_name): Don't inline.
419         * locale/weight.h (findidx): Always inline.
420         * locale/weightwc.h (findidx): Likewise.
421         * locale/programs/linereader.c (lr_ignore_rest): Define here.
422         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
423         just declare it.
424         (lr_getc): Always inline.
425         (lr_ungetc): Likewise.
426         * nss/nss_files/files-parse.c (parse_list): Likewise.
427         * stdio-common/Makefile (aux): Add printf-parsemb and
428         printf-parsewc.
429         * stdio-common/_itoa.h (_itoa_word): Always inline.
430         (_fitoa_word, _fitoa): Don't define here, only declare.
431         * stdio-common/_itoa.c (_iftoa_word): Add here.
432         (_fitoa): Likewise.
433         * stdio-common/_itowa.h (_itowa_word): Always inline.
434         * stdio-common/printf-parse.h (read_int): Don't inline.
435         (find_spec): Don't define.
436         Declare __find_specmb and __find_specwc.
437         (parse_one_spec): Don't define.
438         Declare __parse_one_specmb and __parse_one_specwc.
439         * stdio-common/printf-parsemb.c: New file.
440         * stdio-common/printf-parsewc.c: New file.
441         * stdio-common/vfprintf.c: Update calls to find_spec and
442         parse_one_spec for new names.
443         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
444         * stdlib/Makefile (aux): Add grouping and groupingwc.
445         * stdlib/grouping.c: New file.
446         * stdlib/groupingwc.c: New file.
447         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
448         Just prototype.
449         * stdlib/rpmatch.c (try): Don't inline.
450         * stdlib/strtod.c (round_and_return): Don't line.
451         (str_to_mpn): Likewise.
452         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
453         Adjust for name change of correctly_grouped_prefix.
454         * sysdeps/generic/strtol.c: Adjust for name change of
455         correctly_grouped_prefix.
456         * string/strxfrm.c (utf8_encode): Don't inline.
457         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
458         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
459         * sysdeps/generic/ifreq.c: New file.
460         * sysdeps/unix/sysv/linux/ifreq.c: New file.
461         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
462         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
463         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
464         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
465         (fde_split): Likewise.
466         (fde_merge): Likewise.
467         (end_fde_sort): Likewise.
468         (init_object): Likewise.
469         (binary_search_unencoded_fdes): Likewise.
470         (binary_search_single_encoding_fdes): Likewise.
471         (binary_search_mixed_encoding_fdes): Likewise.
472         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
473         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
474         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
475         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
476         Add xstatconv.
477         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
478         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
479         Export them.  Prepend __ to name.
480         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
481         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
482         conversion functions.
483         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
484         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
485         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
486         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
487         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
488         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
489         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
490         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
491         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
492         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
493         to name.  Change callers.
494         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
495         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
496         declare.
497         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
498         * time/tzfile.c (decode): Always inline.
499         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
500         Remove cast in tomb function call.
501         * wcsmbs/wcsrtombs.c Likewise.
502         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
503         tomb function call.
505 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
507         * po/zh_CN.po: Update from translation team.
509 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
511         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
512         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
514 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
516         * inet/Makefile (aux): Add check_pf.
517         * include/ifaddrs.h: Add prototype for __check_pf.
518         * sysdeps/generic/check_pf.c: New file.
519         * sysdeps/unix/sysv/linux/check_pf.c: New file.
520         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
521         from no_netlink_support.  Export.
522         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
523         call __check_pf.
525         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
527         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
528         from getifaddr calls.
530 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
532         * sysdeps/unix/sysv/linux/kernel-features.h
533         (__ASSUME_SETRESGID_SYSCALL): Define.
534         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
535         instead of __ASSUME_SETRESUID_SYSCALL.
536         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
537         defined.
538         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
539         inline syscall if __NR_setresuid32 is defined.
540         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
541         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
542         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
543         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
544         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
545         code handling non-existant setresgid32 syscall with
546         #if __ASSUME_SETRESGID_SYSCALL == 0.
548 2003-06-09  Andreas Schwab  <schwab@suse.de>
550         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
551         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
552         $(objpfx)rpc-proto.d.
553         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
554         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
555         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
557 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
559         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
560         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
561         defined drop compatibility code.
562         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
563         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
564         defined drop compatibility code.
565         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
566         setresuid32 syscall directly if possible.
567         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
568         setresgid32 syscall directly if possible.
569         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
570         compliant.  Don't change sgid.
571         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
572         compliant.  Don't change suid.
574         * config.h.in: Add have-forced-unwind.
575         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
577 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
579         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
580         returned status from child matches.
582         * Makeconfig (gnulib): Add -lgcc_eh once again.
584 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
586         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
588         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
589         %edx for first parameter.  This means no pushl and therefore the
590         unwind info isn't screwed up.
592 2003-06-04  Richard Henderson  <rth@redhat.com>
594         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
595         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
596         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
597         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
598         entry sequence and explicit relocs.  Add unwind info for sigreturn
599         and rt_sigreturn.
600         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
602         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
603         Annotate some parameters.
604         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
606         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
608         * include/libc-symbols.h (symbol_set_declare): Use arrays
609         of unspecified size.
611 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
613         * config.make.in (ASFLAGS-config): New.
614         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
615         * configure.in (libc_cv_as_noexecstack): New check.
616         (ASFLAGS_config): Substitute.
618 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
620         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
621         hypot, logb): Protect with #ifdef __FAST_MATH__.
623 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
625         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
626         #ifdef __FAST_MATH__.
628 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
630         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
631         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
632         * posix/globtest.sh: Adjust for this change.
634         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
635         to get the actual PID value used in the records passed up.
636         (getifaddrs): Don't initialize nh.pid here.
638 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
640         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
641         optimization.
643         * po/zh_CN.po: Update from translation team.
645         * posix/getconf.c (main): Also recognize names without the
646         _POSIX_ prefix.
648         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
650 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
652         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
653         ldexpf, ldexpl): Only define if __FAST_MATH__.
655 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
657         Replace hard-coded offsets into struct sigcontext with generated file.
658         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
659         * sysdeps/unix/sysv/linux/ia64/Makefile
660         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
661         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
662         defining SC_* macros here.
664 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
666         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
668 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
670         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
672 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
674         * test-skeleton.c (main): Request getopt to not reorder the
675         command line.
677         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
679         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
680         stpncpy.
682 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
684         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
686 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
688         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
689         New function.
690         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
691         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
692         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
694 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
696         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
697         CFI directives.
699         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
701         * libio/fileops.c (_IO_file_open): Don't mark as inline.
703         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
704         attribute used.
706 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
708         * scripts/config.guess: Update from master copy.
709         * scripts/config.sub: Likewise.
711 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
713         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
714         SETUP_GP64 and friends.
715         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
716         names in internal_syscall{6,7}.
717         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
718         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
719         number of syscall arguments.
720         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
721         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
722         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
724 2003-05-30  Andreas Jaeger  <aj@suse.de>
726         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
727         Add CFI directives.
729         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
730         directives.
732         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
734         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
735         Add CFI directives.
737 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
739         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
740         SHARED.
742 2003-05-11  Andreas Schwab  <schwab@suse.de>
744         * Makerules: Always use -MP together with -MD.
745         (sed-remove-dotot): Substitute $(..) also at start of line.
746         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
747         Generated defines with a single compiler call.
748         Use $(sed-remove-dotdot).
749         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
750         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
751         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
752         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
753         * sysdeps/unix/sysv/linux/mips/Makefile
754         ($(objpfx)syscall-%.h): Likewise.
756 2003-05-28  Roland McGrath  <roland@redhat.com>
758         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
760 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
762         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
764 2003-05-28  Roland McGrath  <roland@redhat.com>
766         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
767         rt_sigprocmask system call.
768         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
769         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
771 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
773         * include/libc-symbols.h: Define hidden attribute for real also if
774         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
776         * csu/Makefile: Add rules to build Scrt1.o.
777         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
778         * sysdeps/x86_64/elf/start.S: Likewise.
780 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
782         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
783         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
784         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
785         pa_short_int, pa_u_short_int and pa_float.
787 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
789         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
790         _IO_str_init_static_internal.
791         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
792         change size argument to _IO_size_t, don't limit sprintf to 64M.
793         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
794         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
795         _IO_size_t, don't limit swprintf to 256M.
796         (_IO_wstr_init_readonly): Remove.
797         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
798         Adjust prototypes.
799         (_IO_wstr_init_readonly): Remove prototype.
800         * libio/iovsprintf.c (_IO_vsprintf): Use
801         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
802         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
803         * libio/memstream.c (open_memstream): Likewise.
804         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
805         * libio/vasprintf.c (_IO_vasprintf): Likewise.
806         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
807         * stdio-common/tst-sprintf.c (main): Add new test.
809 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
811         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
812         other implementation in respect of multiple uses of parameter with
813         different types.
815 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
817         * sysdeps/unix/sysv/linux/kernel-features.h: Define
818         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
820 2003-05-22  Andreas Jaeger  <aj@suse.de>
822         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
823         directives.
824         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
825         * sysdeps/x86_64/strtok.S: Likewise.
827 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
829         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
830         to -60 and define SI_TKILL.
832 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
834         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
835         (feexcp_mask_test): Likewise.
837 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
839         * locale/programs/locale.c (main): Fix typo in last patch.
841         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
842         __init_array_start, __init_array_end, __fini_array_start, and
843         __fini_array_end as hidden.
845 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
847         * locale/programs/locale.c (main): Report an error if setlocale()
848         fails [PR libc/2254].
850 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
852         * sysdeps/unix/sysv/linux/s390/system.c: New file.
854 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
857         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
858         LOADARGS_6): Don't error if syscall argument is a string literal.
859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
860         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
861         LOADARGS_6): Likewise.
863 2003-05-21  Andreas Jaeger  <aj@suse.de>
865         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
866         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
867         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
869         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
870         (ENTRY): Likewise.
871         (END): Likewise.
873         * configure.in: Test for asm cfi directives.
875         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
877 2003-05-17  Andreas Jaeger  <aj@suse.de>
879         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
881         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
883 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
885         * rt/Makefile (tests): Add tst-clock_nanosleep.
886         * rt/tst-clock_nanosleep.c: New file.
887         * posix/Makefile (tests): Add tst-nanosleep.
888         * posix/tst-nanosleep.c: New file.
890         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
892         * include/features.h (__USE_XOPEN2K): Define also for
893         _POSIX_C_SOURCE>=200112L.
895         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
896         SI_TKILL code into SI_USER.
897         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
899         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
901 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
903         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
904         Remove sym argument, always use refsym.
905         (__process_machine_rela): Adjust callers.
906         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
907         Likewise.
908         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
909         Adjust prototype.
910         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
912 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
914         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
915         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
916         print numeric values.
918 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
920         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
922 2003-05-14  Andreas Schwab  <schwab@suse.de>
924         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
926 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
928         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
929         even if no DT_NEEDED is present.
931 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
933         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
934         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
935         __sigjmp_save) so we can't keep the saved unat value in a scratch
936         register (r16).  Use loc2 instead.
938 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
940         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
941         binaries it has to be relocatable.
943         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
945 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
947         * sysdeps/powerpc/bits/atomic.h
948         (__arch_compare_and_exchange_bool_8_rel): Define.
949         (__arch_compare_and_exchange_bool_16_rel): Define.
950         (__ARCH_REL_INSTR): Define if not already defined.
951         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
952         (__arch_atomic_decrement_if_positive_32):
953         Add "memory" to clobber list.
954         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
955         (__arch_compare_and_exchange_val_32_rel): Define.
956         (__arch_atomic_exchange_32): Remove.
957         (__arch_atomic_exchange_32_acq): Define.
958         (__arch_atomic_exchange_32_rel): Define.
959         (atomic_compare_and_exchange_val_rel): Define.
960         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
961         (atomic_exchange_rel): Define.
962         * sysdeps/powerpc/powerpc32/bits/atomic.h
963         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
964         (__arch_compare_and_exchange_bool_32_rel): Define.
965         (__arch_compare_and_exchange_bool_64_rel): Define.
966         (__arch_compare_and_exchange_val_64_rel): Define.
967         (__arch_atomic_exchange_64): Remove.
968         (__arch_atomic_exchange_64_acq): Define.
969         (__arch_atomic_exchange_64_rel): Define.
970         * sysdeps/powerpc/powerpc64/bits/atomic.h
971         (__arch_compare_and_exchange_bool_32_rel): Define.
972         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
973         (__arch_compare_and_exchange_bool_64_rel): Define.
974         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
975         (__arch_compare_and_exchange_val_64_rel): Define.
976         (__arch_atomic_exchange_64): Remove.
977         (__arch_atomic_exchange_64_acq): Define.
978         (__arch_atomic_exchange_64_rel): Define.
979         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
980         (__arch_atomic_decrement_if_positive_64):
981         Add "memory" to clobber list.
982         [!UP](__ARCH_REL_INSTR): Define as lwsync.
984 2003-05-11  Andreas Schwab  <schwab@suse.de>
986         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
988 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
990         * time/tst-strftime.c (do_test): Add tests for - flag.
992 2003-05-11  Jim Meyering  <jim@meyering.net>
994         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
995         the space-padded-by-default conversion specifiers, %e, %k, %l.
997 2003-05-11  Andreas Schwab  <schwab@suse.de>
999         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
1001 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
1003         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
1004         already defined and when really needed.
1005         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1007 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
1009         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
1010         headers, add defines from kernel header, move it from here...
1011         * inet/netinet/igmp.h: ... to here.
1012         * inet/Makefile (headers): Add netinet/igmp.h.
1013         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
1014         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
1016 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
1018         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
1019         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
1021 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
1023         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
1024         (remove __THROW from possible cancellation points).
1026 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
1028         * posix/sched.h (CPU_SETSIZE): Define.
1030 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
1032         * Makeconfig (gnulib): Remove -lgcc_eh again.
1034         * posix/sched.h: Change prototypes of sched_getaffinity and
1035         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
1036         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
1037         * sysdeps/generic/sched_setaffinity.c: Likewise.
1038         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
1039         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
1040         __CPU_CLR, and __CPU_ISSET.
1041         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1042         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
1043         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
1045         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
1046         (atomic_exchange_rel): New #define.
1047         * sysdeps/ia64/bits/atomic.h: Likewise.
1048         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
1049         atomic_exchange.
1050         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
1051         * sysdeps/powerpc/bits/atomic.h: Likewise.
1052         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
1053         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
1054         * sysdeps/x86_64/bits/atomic.h: Likewise.
1055         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
1057         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
1059 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
1061         * malloc/thread-m.h: Remove special handling of thread_atfork if
1062         HAVE_register_atfork_malloc is defined.
1064 2003-05-07  Andreas Jaeger  <aj@suse.de>
1066         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
1067         information.
1069 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
1071         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
1072         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
1073         * libio/libioP.h: Declare _IO_old_init.
1074         * libio/genops.c (_IO_no_init): Split in two.  New function
1075         _IO_old_init.
1077 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
1079         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
1080         variable.
1081         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
1082         is nonzero.
1083         * include/unistd.h: Declare __libc_enable_secure_decided.
1084         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
1085         and AT_EGID.  If all found, set __libc_enable_secure and
1086         __libc_enable_secure_decided.
1088         * sysdeps/generic/libc-start.c [!SHARED]: Call
1089         __libc_check_standard_fds after __libc_init_first.
1091 2003-05-05  Roland McGrath  <roland@redhat.com>
1093         * Makerules (common-before-compile): New variable.
1094         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
1095         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
1096         to after all setting of before-compile.
1098 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
1100         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1101         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
1102         * sysdeps/powerpc/powerpc32/bits/atomic.h
1103         (__arch_compare_and_exchange_val_64_acq): Likewise.
1104         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1105         (__arch_compare_and_exchange_val_8_acq,
1106         __arch_compare_and_exchange_val_16_acq,
1107         __arch_compare_and_exchange_val_64_acq): Likewise.
1108         * sysdeps/sparc/sparc64/bits/atomic.h
1109         (__arch_compare_and_exchange_val_8_acq,
1110         __arch_compare_and_exchange_val_16_acq): Likewise.
1111         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1112         __arch_compare_and_exchange_val_16_acq,
1113         __arch_compare_and_exchange_val_64_acq): Likewise.
1114         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1115         (__arch_compare_and_exchange_val_64_acq): Likewise.
1116         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
1117         up warning.
1118         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
1120         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1121         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
1122         Return long instead of int.
1123         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
1124         0xfffff001u with -4095UL.
1126 2003-05-05  Andreas Jaeger  <aj@suse.de>
1128         * sysdeps/x86_64/fpu_control.h: New from i386.
1130         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
1131         Define if not defined.
1133         * sunrpc/Makefile (generated-dirs): New variable.
1134         * resolv/Makefile (generated): New variable.
1136 2003-05-04  Roland McGrath  <roland@redhat.com>
1138         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
1139         Depend on $(before-compile).
1141         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
1142         pattern rule.  The implicit rule could be ruled out when $(objpfx)
1143         didn't exist at the time of its consideration (ugh!).
1145         * Makerules (+make-deps): Fix target matching.
1146         Use $(sed-remove-dotdot).
1148 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
1150         * nscd/nscd.c (main): Parse config file right after parsing
1151         parameters.  Then, if get_stats is true, call receive_print_stats.
1152         Drop parameter from nscd_init call.
1153         (get_stats): New variable.
1154         (parse_opt): Set get_stats, don't call receive_print_stats here.
1155         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
1156         prototype.
1157         * nscd/connections.c (stat_user, stat_uid): New variables.
1158         (dbs): Make global.
1159         (nscd_init): Don't read configuration file here.  Drop parameter.
1160         (handle_request): Cleanup handling of non-database lookup requests.
1161         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
1162         Get UID of the specified user.  Use xstrdup instead of strdup.
1163         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
1164         check stat_user.
1165         * nscd/Makefile (nscd-modules): Add xstrdup.
1166         * nscd/nscd.conf: Document stat-user entry.
1168 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1170         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
1171         if not defined.
1173 2003-04-22  Roland McGrath  <roland@redhat.com>
1175         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
1176         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1177         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
1178         * elf/dl-support.c: Update defn.
1179         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
1180         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1181         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
1182         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
1183         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
1184         set, set up a link_map for the preloaded, prelinked object.
1186 2003-05-03  Roland McGrath  <roland@redhat.com>
1188         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
1189         * stdio-common/Makefile: ... not here.
1191         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
1192         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
1194 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
1196         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
1198         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
1200         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
1201         comparing ftab elements.
1202         (_dl_unmap): Fix typo in test.
1203         (_dl_make_fptr): Fix typos introduced in last change.
1205         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
1206         original patch.  Use non-exported symbols.  Mark translatable
1207         strings.  Pretty printing.
1209 2003-05-02  Roland McGrath  <roland@redhat.com>
1211         * Makerules (do-stamp): Do $(make-target-directory).
1213 2003-04-07  H.J. Lu  <hjl@gnu.org>
1215         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
1217 2003-04-03  H.J. Lu  <hjl@gnu.org>
1219         * sysdeps/ia64/dl-fptr.c: Moved to ...
1220         * sysdeps/generic/dl-fptr.c: Here.
1222         * sysdeps/generic/dl-fptr.h: New.
1223         * sysdeps/ia64/dl-fptr.h: New.
1225         * sysdeps/ia64/dl-symaddr.c: Moved to ...
1226         * sysdeps/generic/dl-symaddr.c: here.
1228         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
1229         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
1230         (ia64_fdesc): Likewise.
1231         (ia64_fdesc_table): Likewise.
1232         (__ia64_make_fptr): Likewise.
1233         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
1234         with _dl_boot_fptr_table.
1235         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
1236         `struct fdesc'.
1237         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
1239 2003-05-01  Roland McGrath  <roland@redhat.com>
1241         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
1242         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1244         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1245         Use $(make-target-directory).
1246         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1248         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
1249         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
1250         (compile-command.s, compile-command.c): Likewise.
1251         ($(objpfx)%.d): All such pattern rules removed.
1252         ($(+sysdir_pfx)sysd-rules): Don't generate them.
1253         ($(common-objpfx)dummy.d): Target removed.
1254         (make-dummy-dep): Variable removed.
1255         (generate-md5): Likewise.
1256         (%.d: %.dt): New pattern rule.
1257         (+depfiles): Use $(wildcard) function to get just existing *.d files
1258         and .d files for existing *.dt files.
1259         (common-clean): Remove all *.d and *.dt files.
1260         (before-compile): Add $(objpfx). when it doesn't exist,
1261         regardless of $(no_deps).
1262         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
1263         (rtld-depfiles): Use .os.d instead of .d names.
1264         Include existing *.d files and .d files for existing *.dt files.
1266         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
1267         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
1269         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
1270         Do s-*.d includes only if we have some syscall routines in this subdir.
1272         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
1273         @nobits.  The former is accepted by gas on any ELF platform.
1275 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
1277         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
1279         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
1281 2003-04-29  Andreas Schwab  <schwab@suse.de>
1283         * string/test-strcat.c (do_one_test): Fix attribute name.
1285 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
1287         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1288         uc_flags long for all ABIs.
1290 2003-04-30  Andreas Jaeger  <aj@suse.de>
1292         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1293         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1294         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1295         Add bi-arch support.
1297 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
1299         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1300         (__posix_memalign): Use __memalign_internal instead of memalign.
1302 2003-04-29  Roland McGrath  <roland@redhat.com>
1304         * configure.in: Search for AUTOCONF unconditionally.
1305         Just don't complain about missing it under --without-cvs.
1307         * include/libc-symbols.h (__symbol_set_attribute): New macro,
1308         give hidden for [SHARED] and weak for [! SHARED].
1309         (symbol_set_declare): Use that.  Never need weak_extern these days.
1310         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1311         Depend on $(..)Makerules.
1313 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
1315         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1316         variants of socket, bind, recvmsg, and sendto.
1318         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1320         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1321         * signal/sigaddset.c: Add libc_hidden_def.
1322         * signal/sigdelset.c: Likewise.
1324 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
1326         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1327         to the end of the file.
1329         * configure.in: Change __oline__ to $LINENO.
1330         (HAVE_BUILTIN_REDIRECTION): New check.
1331         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1332         * include/libc-symbols.h (libc_hidden_builtin_proto,
1333         libc_hidden_builtin_def, libc_hidden_builtin_weak,
1334         libc_hidden_builtin_ver): Define.
1335         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1336         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1337         strspn, strstr): Add libc_hidden_builtin_proto.
1338         * intl/plural.y: Include string.h.
1339         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1340         libc_hidden_builtin_def.
1341         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1342         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1343         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1344         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1345         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1346         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1347         * sysdeps/alpha/memchr.S (memchr): Likewise.
1348         * sysdeps/alpha/memset.S (memset): Likewise.
1349         * sysdeps/alpha/strcat.S (strcat): Likewise.
1350         * sysdeps/alpha/strchr.S (strchr): Likewise.
1351         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1352         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1353         * sysdeps/alpha/strlen.S (strlen): Likewise.
1354         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1355         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1356         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1357         * sysdeps/arm/memset.S (memset): Likewise.
1358         * sysdeps/arm/strlen.S (strlen): Likewise.
1359         * sysdeps/generic/memchr.c (memchr): Likewise.
1360         * sysdeps/generic/memcpy.c (memcpy): Likewise.
1361         * sysdeps/generic/memmove.c (memmove): Likewise.
1362         * sysdeps/generic/memset.c (memset): Likewise.
1363         * sysdeps/generic/strcat.c (strcat): Likewise.
1364         * sysdeps/generic/strchr.c (strchr): Likewise.
1365         * sysdeps/generic/strcmp.c (strcmp): Likewise.
1366         * sysdeps/generic/strcpy.c (strcpy): Likewise.
1367         * sysdeps/generic/strcspn.c (strcspn): Likewise.
1368         * sysdeps/generic/strlen.c (strlen): Likewise.
1369         * sysdeps/generic/strncmp.c (strncmp): Likewise.
1370         * sysdeps/generic/strncpy.c (strncpy): Likewise.
1371         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1372         * sysdeps/generic/strrchr.c (strrchr): Likewise.
1373         * sysdeps/generic/strspn.c (strspn): Likewise.
1374         * sysdeps/generic/strstr.c (strstr): Likewise.
1375         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1376         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1377         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1378         * sysdeps/i386/i586/memset.S (memset): Likewise.
1379         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1380         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1381         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1382         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1383         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1384         * sysdeps/i386/i686/memset.S (memset): Likewise.
1385         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1386         * sysdeps/i386/memchr.S (memchr): Likewise.
1387         * sysdeps/i386/memset.c (memset): Likewise.
1388         * sysdeps/i386/strchr.S (strchr): Likewise.
1389         * sysdeps/i386/strcspn.S (strcspn): Likewise.
1390         * sysdeps/i386/strlen.c (strlen): Likewise.
1391         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1392         * sysdeps/i386/strrchr.S (strrchr): Likewise.
1393         * sysdeps/i386/strspn.S (strspn): Likewise.
1394         * sysdeps/ia64/memchr.S (memchr): Likewise.
1395         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1396         * sysdeps/ia64/memmove.S (memmove): Likewise.
1397         * sysdeps/ia64/memset.S (memset): Likewise.
1398         * sysdeps/ia64/strcat.S (strcat): Likewise.
1399         * sysdeps/ia64/strchr.S (strchr): Likewise.
1400         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1401         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1402         * sysdeps/ia64/strlen.S (strlen): Likewise.
1403         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1404         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1405         * sysdeps/m68k/memchr.S (memchr): Likewise.
1406         * sysdeps/m68k/strchr.S (strchr): Likewise.
1407         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1408         * sysdeps/mips/mips64/memset.S (memset): Likewise.
1409         * sysdeps/mips/memcpy.S (memcpy): Likewise.
1410         * sysdeps/mips/memset.S (memset): Likewise.
1411         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1412         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1413         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1414         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1415         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1416         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1417         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1418         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1419         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1420         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1421         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1422         * sysdeps/powerpc/strcat.c (strcat): Likewise.
1423         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1424         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1425         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1426         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1427         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1428         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1429         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1430         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1431         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1432         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1433         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1434         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1435         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1436         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1437         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1438         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1439         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1440         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1441         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1442         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1443         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1444         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1445         * sysdeps/sh/memcpy.S (memcpy): Likewise.
1446         * sysdeps/sh/memset.S (memset): Likewise.
1447         * sysdeps/sh/strlen.S (strlen): Likewise.
1448         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1449         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1450         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1451         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1452         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1453         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1454         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1455         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1456         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1457         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1458         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1459         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1460         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1461         * sysdeps/x86_64/memset.S (memset): Likewise.
1462         * sysdeps/x86_64/strcat.S (strcat): Likewise.
1463         * sysdeps/x86_64/strchr.S (strchr): Likewise.
1464         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1465         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1466         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1467         * sysdeps/x86_64/strlen.S (strlen): Likewise.
1468         * sysdeps/x86_64/strspn.S (strspn): Likewise.
1469         * string/string-inlines.c: Move...
1470         * sysdeps/generic/string-inlines.c: ...here.
1471         (__memcpy_g, __strchr_g): Remove.
1472         (__NO_INLINE__): Define before including <string.h>,
1473         undefine after.  Include bits/string.h and bits/string2.h.
1474         * sysdeps/i386/i486/string-inlines.c: New file.
1475         * sysdeps/i386/string-inlines.c: New file.
1476         * sysdeps/i386/i486/Versions: Remove.
1477         All GLIBC_2.1.1 symbols moved...
1478         * sysdeps/i386/Versions (libc): ...here.
1480 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
1482         * sysdeps/i386/fpu/Makefile: New file.
1483         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1484         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1485         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1486         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1487         [PR libc/4987].
1489 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
1491         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
1492         * nscd/nscd_getpw_r.c: Likewise.
1493         * nscd/nscd_gethst_r.c: Likewise.
1495 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
1497         * nscd/pwdcache.c: Initialize .version element in result.
1498         * nscd/grpcache.c: Likewise.
1499         * nscd/pwdcache.c: Likewise.
1501 2003-04-27  Andreas Schwab  <schwab@suse.de>
1503         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1504         subdirectory.
1506 2003-04-27  Andreas Schwab  <schwab@suse.de>
1508         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1510 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
1512         * nscd/connections.c (client_queued): New variable.
1513         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
1514         threads.  Keep track of the number of delays caused because of busy
1515         worker threads.
1516         * nscd/nscd.h: Declare client_queued.
1517         * nscd/nscd_stat.c: Transmit and print client_queued information.
1519         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1521         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
1522         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
1524 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
1526         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
1527         tracking of freed memory in static TLS block.
1528         * elf/Makefile: Add rules to build and run tst-tls13.
1529         * elf/tst-tls13.c: New file.
1530         * elf/tst-tlsmod13.c: New file.
1531         * elf/tst-tlsmod13a.c: New file.
1533         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
1535         * elf/dl-reloc.c: Pretty printing.
1537 2003-04-26  Roland McGrath  <roland@redhat.com>
1539         * Makerules ($(common-objpfx)shlib.lds): New target.
1540         (common-generated): Add it.
1541         (build-shlib, build-module): Use that instead of generating every time.
1542         ($(common-objpfx)libc.so): Depend on it.
1543         (lib%.so rule): Likewise.
1544         (build-module-helper-objlist): Remove %.lds.
1545         (LDSEDCMD-c.so): Variable removed.
1546         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
1547         Depend on $(common-objpfx)shlib.lds.
1548         * dlfcn/Makefile ($(test-modules)): Likewise.
1550 2003-04-26  Roland McGrath  <roland@frob.com>
1552         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
1554 2003-04-26  Andreas Schwab  <schwab@suse.de>
1556         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
1558 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
1560         * nscd/cache.c (cache_search): Keep track of how many chain links
1561         we searched and update table statistics.
1562         (cache_add): Keep track of how many values are in the table.
1563         (prune_cache): Likewise.  Keep track of locking success.
1564         Print messages about removed entries in separate pass.
1565         * nscd/connections.c (handle_request): Don't print debug message here.
1566         The caller will do it.  Keep track of locking success.
1567         (nscd_run): Print debug message.  Also print PID of the client process.
1568         * nscd/nscd.c (start_time): New variable.
1569         (main): Remember start time.
1570         * nscd/nscd.h: Declare start_time.
1571         (struct database): Add more members for new statistics.
1572         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
1573         of new statistics.
1575         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
1577 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
1579         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
1580         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
1581         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
1582         NO_TLS_OFFSET.
1583         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
1584         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
1585         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
1586         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
1587         TLS_TCB_SIZE.
1589 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
1591         * nss/getent.c: Implement alternative host database lookup via
1592         getaddrinfo.
1594         * include/ifaddrs.h: New file.
1595         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
1596         AI_ADDRCONFIG...
1597         * resolv/netdb.h: ...here.
1598         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
1599         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1600         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
1601         AI_ADDRCONFIG.
1603 2003-04-24  Roland McGrath  <roland@redhat.com>
1605         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
1607 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
1609         * elf/dl-reloc.c (allocate_static_tls): Rename to...
1610         (_dl_allocate_static_tls): ... this function.  No longer static.
1611         (CHECK_STATIC_TLS): Adjust.
1612         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
1613         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
1614         Add SYM_MAP argument.
1615         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
1616         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
1617         TLS relocs here.  #ifdef out relocs which never appear in
1618         .gnu.conflict section from dl-conflict.c processing.
1619         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1620         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
1622         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
1623         out relocs which never appear in .gnu.conflict section from
1624         dl-conflict.c processing.
1625         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1626         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1627         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1628         Use r_type in RESOLVE macro.
1630 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
1632         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
1633         NULL.  Remove code made redundant by this assumption.
1634         (__yp_unbind): Add call to free.  Adjust all callers.
1636         * nis/ypclnt.c (yp_all): Free the dom_binding object after
1637         unbinding it.
1639         * grp/initgroups.c (getgrouplist): Don't copy too much into the
1640         user buffer if more groups are found than fit into it.
1642         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
1643         extend_alloca.
1645 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
1647         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
1648         not rc == errno.  Use extend_alloca.
1650         * elf/tst-tls12.c (main): Fix declaration.
1651         * elf/tst-tls10.c (dummy): Make hidden instead of static.
1652         * elf/tst-tlsmod7.c (dummy): Likewise.
1653         * elf/tst-tlsmod8.c (dummy): Likewise.
1654         * elf/tst-tlsmod9.c (dummy): Likewise.
1656 2003-04-22  Roland McGrath  <roland@redhat.com>
1658         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
1659         (open_not_cancel): Make last argument non-optional.
1660         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
1661         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1662         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1664         * include/tls.h: Protect against multiple inclusion.
1666 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
1668         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
1669         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
1670         open_socket.  Not static anymore.
1671         (nscd_gethst_r): Use __nscd_open_socket.
1672         * nscd/nscd_getgr_r.c (open_socket): Removed.
1673         (nscd_getgr_r): Use __nscd_open_socket.
1674         * nscd/nscd_getpw_r.c (open_socket): Removed.
1675         (nscd_getpw_r): Use __nscd_open_socket.
1677         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
1678         * nscd/connections.c (handle_request): Add cast to avoid warning.
1680 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
1682         * signal/sigfillset.c: Moved to...
1683         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
1684         do not set the corresponding bit.
1686         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
1687         SIGCANCEL.
1688         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
1689         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
1690         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
1691         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
1692         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
1694 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
1696         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
1697         first syscall parameter to const char*.
1699 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
1701         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
1703         * configure.in: Add AC_PROG_CXX.
1704         * config.make.in (CXX): Define.
1706         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
1707         __len to size_t to avoid warnings.
1709 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
1711         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
1712         2.5.67.
1713         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1715 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
1717         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
1718         UNREGISTER_ATFORK if d == NULL.
1720         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
1721         * dirent/dirent.h: Likewise.
1722         * dlfcn/dlfcn.h: Likewise.
1723         * grp/grp.h: Likewise.
1724         * iconv/iconv.h: Likewise.
1725         * io/fcntl.h: Likewise.
1726         * io/ftw.h: Likewise.
1727         * libio/stdio.h: Likewise.
1728         * misc/sys/mman.h: Likewise.
1729         * misc/sys/select.h: Likewise.
1730         * misc/sys/syslog.h: Likewise.
1731         * misc/sys/uio.h: Likewise.
1732         * posix/spawn.h: Likewise.
1733         * posix/unistd.h: Likewise.
1734         * posix/sys/wait.h: Likewise.
1735         * pwd/pwd.h: Likewise.
1736         * resolv/netdb.h: Likewise.
1737         * rt/aio.h: Likewise.
1738         * shadow/shadow.h: Likewise.
1739         * signal/signal.h: Likewise.
1740         * socket/sys/socket.h: Likewise.
1741         * stdlib/stdlib.h: Likewise.
1742         * streams/stropts.h: Likewise.
1743         * string/string.h: Likewise.
1744         * sysdeps/gnu/utmpx.h: Likewise.
1745         * sysvipc/sys/msg.h: Likewise.
1746         * termios/termios.h: Likewise.
1747         * time/time.h: Likewise.
1748         * wcsmbs/wchar.h: Likewise.
1749         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
1750         functions.
1751         * misc/daemon.c: Likewise.
1752         * sysdeps/generic/backtracesymsfd.c: Likewise.
1753         * sysdeps/generic/check_fds.c: Likewise.
1754         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1755         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
1756         * sysdeps/generic/not-cancel.h: New file.
1757         * csu/Makefile (distribute): Add not-cancel.h.
1758         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
1759         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
1760         for assert.c and assert-perr.c to include <fatal-prepare.h>.
1761         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
1763         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
1764         errno and unlink first.
1766         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
1768 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
1770         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
1771         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
1773 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
1775         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
1777         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
1778         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
1779         replace.
1781         * signal/Makefile (tests): Add tst-sigsimple.
1782         * signal/tst-sigsimple.c: New file.
1784 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
1786         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
1787         tst-tls10.h.
1788         (tests): Add tst-tls1[0-2].
1789         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
1790         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
1791         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
1792         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
1793         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
1794         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
1795         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
1796         * elf/tst-tls10.c: New test.
1797         * elf/tst-tls11.c: New test.
1798         * elf/tst-tls12.c: New test.
1799         * elf/tst-tls10.h: New file.
1800         * elf/tst-tlsmod7.c: New file.
1801         * elf/tst-tlsmod8.c: New file.
1802         * elf/tst-tlsmod9.c: New file.
1803         * elf/tst-tlsmod10.c: New file.
1804         * elf/tst-tlsmod11.c: New file.
1805         * elf/tst-tlsmod12.c: New file.
1807 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1809         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
1810         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
1811         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
1813 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
1815         * posix/regex.h: Include <sys/types.h>.
1817         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
1818         The signal number must be checked.
1819         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
1820         The signal number must be checked [PR libc/5004].
1822         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
1823         don't do anything fancy.
1825         * sysdeps/generic/bits/libc-lock.h: Define
1826         __rtld_lock_define_initialized_recursive.
1828         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
1829         contacting nscd if NOT_USENSCD_NAME > 0.
1830         * nss/nsswitch.c (__nss_disable_nscd): New function.
1831         * nss/nsswitch.h: Declare it.
1832         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
1833         * nscd/nscd.c (main): Call __nss_disable_nscd.
1835 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
1837         * stdio-common/perror.c (perror): We don't need to set the offset
1838         to _IO_pos_bad, this is how streams are initialized.
1840         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
1841         (time_output): If necessary, allocate new buffer for .name string if
1842         padding is required.
1844         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
1845         before copying.  This might leave holes in the list.  Adjust
1846         pointers if necessary.
1847         (netlink_receive): Allocate only one block.
1848         (free_netlink_handle): Adjust appropriately.
1849         (getifaddrs): Lots of cleanups.
1851         * string/test-strncpy.c (do_one_test): Mark start and stop as
1852         possibly unused.
1853         * string/test-memchr.c: Likewise.
1854         * string/test-memcmp.c: Likewise.
1855         * string/test-memcpy.c: Likewise.
1856         * string/test-memmove.c: Likewise.
1857         * string/test-memset.c: Likewise.
1858         * string/test-strcat.c: Likewise.
1859         * string/test-strchr.c: Likewise.
1860         * string/test-strcmp.c: Likewise.
1861         * string/test-strcpy.c: Likewise.
1862         * string/test-strlen.c: Likewise.
1863         * string/test-strncmp.c: Likewise.
1864         * string/test-strpbrk.c: Likewise.
1865         * string/test-strrchr.c: Likewise.
1866         * string/test-strspn.c: Likewise.
1868 2003-04-15  Roland McGrath  <roland@redhat.com>
1870         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
1872         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
1873         INTUSE(__register_frame_info_bases).
1875 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
1877         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
1878         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
1879         AT_SYSINFO_EH_FRAME.  Adjust string width.
1880         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
1881         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
1882         Add _dl_sysinfo_eh_frame field.
1883         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
1884         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
1885         variable.
1886         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
1887         if _dl_sysinfo_eh_frame is non-NULL.
1889         * Makeconfig (gnulib): Add -lgcc_eh.
1891         * config.h.in: Define HAVE_FORCED_UNWIND.
1893 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1895         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
1896         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
1898 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
1900         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
1901         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
1902         against local symbol in conflict processing.
1904 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1906         * sysdeps/powerpc/bits/atomic.h
1907         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
1908         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
1909         as abort stub.
1910         (__arch_compare_and_exchange_val_32_acq): Define.
1911         (atomic_compare_and_exchange_val_acq): Define.
1913 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
1915         * include/atomic.h: Pretty printing.
1917 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1919         * stdio-common/vfscanf.c: Add casts to avoid warnings.
1921 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
1923         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
1924         * sysdeps/x86_64/bits/atomic.h: Likewise.
1926 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1928         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
1929         POPARGS_1 to emit labels for the mov instructions.
1931 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
1933         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
1935 2003-04-14  Roland McGrath  <roland@redhat.com>
1937         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
1938         compiler warning.
1940         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
1942 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1944         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
1945         position.  Reported by jreiser@BitWagon.com.
1947 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
1949         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
1950         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1951         * sysdeps/generic/unwind-dw2.c: Likewise.
1952         * sysdeps/generic/unwind-pe.h: Likewise.
1954 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
1956         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
1957         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
1958         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
1959         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
1960         (mcontext_t): Make it match the 32-bit mips kernel in o32.
1961         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
1962         the mips and mips64 headers.
1963         (struct user): Port to n32/n64.
1965 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
1967         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
1968         avoid warning.
1970         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
1971         __ASSUME_VSYSCALL is defined don't add restorer.
1972         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1973         __ASSUME_VSYSCALL for 2.5.53.
1975 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
1977         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
1978         Remove HAVE_CANCELBUF code.  Replace with code using the new
1979         initializers for unwind-based cleanup handling.
1980         * sysdeps/generic/unwind.h: Update from latest gcc version.
1981         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
1982         places to allow unwind data generation.
1983         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
1984         * sysdeps/x86_64/bits/setjmp.h: Likewise.
1985         * sysdeps/sh/bits/setjmp.h: Likewise.
1986         * sysdeps/powerpc/bits/setjmp.h: Likewise.
1987         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
1988         * sysdeps/alpha/bits/setjmp.h: Likewise.
1990 2003-04-11  Roland McGrath  <roland@redhat.com>
1992         * csu/tst-empty.c: New file.
1993         * csu/Makefile (tests, tests-static): Add it.
1995 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
1997         * string/test-strcmp.c (do_random_tests): Test whether return value
1998         has been promoted to wordsize if the ABI requires caller to do so.
1999         * string/test-strncmp.c (do_random_tests): Likewise.
2000         * string/test-memcmp.c (do_random_tests): Likewise.
2002         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
2003         before returning.
2005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2006         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
2007         is not defined, but the prctl constants are.
2009         * string/tester.c (test_strcmp): Fix a typo.
2011 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
2013         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
2014         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2016 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
2018         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
2019         NewABI.
2020         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
2021         NewABI.
2022         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
2023         conventions.
2024         * sysdeps/mips/mips64/memset.S: Likewise.
2025         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
2026         Use t0 instead of t4 as temporary.
2028 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
2030         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
2031         feof_unlocked instead of feof.
2032         (add_dir): Ignore trailing whitespace.
2034 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
2036         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
2037         sum of SIZE1 and SIZE2 arguments.
2039 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
2041         * iconv/iconv_prog.c (process_block): Don't print message about
2042         invalid input if the -c option is used.
2043         (main): Correctly append IGNORE string for -c option.
2045 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2047         * sysdeps/sh/bits/atomic.h: Moved to ...
2048         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
2049         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
2050         arguments.
2051         (atomic_bit_set, atomic_bit_test_set): Likewise.
2052         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
2053         twice.
2054         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2056 2003-04-06  Roland McGrath  <roland@redhat.com>
2058         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
2059         restoration as done for setcontext yesterday.
2061 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
2063         * elf/rtld.c: Revert 2003-03-14 change.
2064         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
2065         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
2067 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
2069         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
2071         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2072         Always initialize *signgamp before returning an error.
2074 2003-04-05  Roland McGrath  <roland@redhat.com>
2076         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
2077         below the stack pointer even if switching to the same context we are
2078         running right now.
2080 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
2082         * catgets/gencat.c (read_input_file): Make sure that \n is not
2083         alone on the line before testing for continuation.
2085         * math/test-tgmath.c (compile_test): Initialize c.
2087 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
2089         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
2090         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
2091         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
2092         on mips n32.
2093         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
2094         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
2095         structure on n32 as well.
2096         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
2097         data types on n32 and n64.
2099 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
2101         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
2102         after getting them.
2104         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
2105         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
2106         instead of __register_atfork.
2108 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
2110         * stdio-common/reg-printf.c (__register_printf_function): Calloc
2111         instead of malloc __printf_arginfo_table and __printf_function_table.
2112         Reported by John Reiser <jreiser@BitWagon.com>.
2114 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
2116         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
2117         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
2119         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
2120         defining.
2122 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
2124         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
2125         for n64 abi.
2127 2003-04-03  Roland McGrath  <roland@redhat.com>
2129         * configure.in: Fix up use of compilation flags to match the build:
2130         For .s files, $ASFLAGS;
2131         For .S files, $CPPFLAGS $ASFLAGS;
2132         For .c files, $CFLAGS $CPPFLAGS;
2133         when linking, add $LDFLAGS.
2134         * configure: Regenerated.
2136 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
2138         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
2139         for atomic_compare_and_exchange_bool_acq failure.
2141 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
2143         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
2144         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
2145         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
2146         Remove declaration of pthread_atfork.
2148 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
2150         * locale/iso-639.def: Add many more languages from the current ISO 639.
2152         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
2153         * sysdeps/generic/semtimedop.c: New file.
2154         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
2155         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
2156         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2157         * sysvipc/Makefile (routines): Add semtimedop.
2158         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
2159         * sysvipc/sys/sem.h: Declare semtimedop.
2161 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
2163         * configure.in: Check for __register_frame_info in both
2164         -lgcc and -lgcc_eh.
2165         * configure: Regenerated.
2167 2003-04-01  Roland McGrath  <roland@redhat.com>
2169         * scripts/abilist.awk: Allow dots in soname suffix.
2171         * scripts/abilist.awk (emit): Fix bailout condition.
2173 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
2175         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
2176         IA-64 version.
2178         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
2179         register as input to asm.
2181 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
2183         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
2185 2003-04-01  Andreas Jaeger  <aj@suse.de>
2187         * configure.in: Output as/ld as name if version is too old.
2189 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
2191         * configure.in: Don't require an installed C library in the test
2192         for ".set" assembler support.
2194 2003-03-31  Roland McGrath  <roland@redhat.com>
2196         * signal/tst-sigset.c: New file.
2197         * signal/Makefile (tests): Add it.
2199 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
2201         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
2202         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
2203         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
2204         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
2205         (__SIGRTMAX): Adjust accordingly.
2206         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
2207         second compatibility symbol set.
2208         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
2210 2003-03-31  Andreas Schwab  <schwab@suse.de>
2212         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
2213         Define.
2214         (atomic_decrement_and_test): Fix test.
2216 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
2218         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
2219         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
2220         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
2221         * sysdeps/sparc/sparc32/atomicity.h: Removed.
2222         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
2223         * sysdeps/sparc/sparc64/atomicity.h: Removed.
2225 2003-03-30  Roland McGrath  <roland@redhat.com>
2227         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
2229         * intl/po2test.sed: Anchor substitution regexps to fix last change.
2231 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
2233         * intl/po2test.sed: Unify the transformations for msgid and msgstr
2234         and remove a useless s/// command.
2236 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
2238         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
2239         directive into empty .prologue region to ensure that call-chain
2240         is terminated even for the first instruction.
2242         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
2243         to terminate call-chain right from the get-go.
2245         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
2246         stop bit between compare & branch.
2248 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
2250         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
2251         point correctly [PR libc/4993].
2253         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
2254         netlink_open calls if netlink is known to not be available.
2256 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
2258         * configure.in: Add mips64* support.
2259         * sysdeps/mips/bits/endian.h: Make it bi-endian.
2260         * sysdeps/mips/mipsel/bits/endian.h: Removed.
2261         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
2262         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
2263         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
2264         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
2265         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
2266         * sysdeps/mips/Implies: Moved wordsize-32 to...
2267         * sysdeps/mips/mips32/Implies: New file.
2268         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
2269         ret_NOERRNO): New.
2270         (ret, PSEUDO_END): Moved past END.
2271         (PSEUDO): Moved to...
2272         * sysdeps/unix/mips/mips32/sysdep.h: New file.
2273         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
2274         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
2275         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
2276         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
2277         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
2279         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
2280         Re-introduce ENTRY.
2282 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
2284         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2285         * inet/test-ifaddrs.c: Allow AF_PACKET.
2286         * sysdeps/unix/sysv/linux/kernel-features.h: Add
2287         __ASSUME_NETLINK_SUPPORT.
2289 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
2291         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2293 2003-03-26  H.J. Lu  <hjl@gnu.org>
2295         * elf/vismod.h (getvarlocal1): Return const char **.
2296         (getvarinmod1): Likewise.
2297         (getvaritcpt1): Likewise.
2298         (getvarlocal2): Likewise.
2299         (getvarinmod2): Likewise.
2300         (getvaritcpt2): Likewise.
2301         (getvaritcpt3): Likewise.
2302         * elf/vismain.c (do_test): Adjusted.
2303         * elf/vismod1.c (getvarlocal1): Return address.
2304         (getvarinmod1): Likewise.
2305         (getvaritcpt1): Likewise.
2306         * elf/vismod2.c (getvarlocal2): Likewise.
2307         (getvarinmod2): Likewise.
2308         (getvaritcpt2): Likewise.
2309         * elf/vismod3.c (getvaritcpt3): Likewise.
2311 2003-03-28  Roland McGrath  <roland@redhat.com>
2313         * elf/vismain.c (do_test): Print both addresses when they don't match.
2315         * scripts/abilist.awk: If given -v filename_regexp and/or -v
2316         libname_regexp when parsing names, then produce output only
2317         for those matching the given regexps.  In combine mode, save all
2318         stanzas for a final sorting by stanza header at the end.
2319         Emit a blank line between stanzas.
2321         * scripts/abilist.awk: When given -v combine=1, do parse_names and
2322         emit a single output stream with lib name in stanza header lines.
2324         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2326 2003-03-27  Roland McGrath  <roland@redhat.com>
2328         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2329         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2331 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2333         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2334         Return old value. Make asm output reg constraint earlyclobber.
2335         Renamed from...
2336         (__arch_compare_and_exchange_8_acq): ... this.
2337         (__arch_compare_and_exchange_val_16_acq):
2338         Return old value. Make asm output reg constraint earlyclobber.
2339         Renamed from...
2340         (__arch_compare_and_exchange_16_acq): ... this.
2341         (__arch_compare_and_exchange_val_32_acq):
2342         Return old value. Make asm output reg constraint earlyclobber.
2343         Renamed from...
2344         (__arch_compare_and_exchange_32_acq): ... this.
2345         (__arch_compare_and_exchange_val_64_acq):
2346         Renamed from...
2347         (__arch_compare_and_exchange_64_acq): ... this.
2348         (atomic_exchange_and_add): Use local variables and
2349         __arch_compare_and_exchange_val_64_acq.
2350         (atomic_add): Likewise.
2351         (atomic_add_negative, atomic_add_zero): Use local variables.
2353 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
2355         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2357 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
2359         * Makefile: Remove libmd5crypt goal.
2361 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
2363         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2364         special handling of relocations against local symbols.
2366 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
2368         * sysdeps/powerpc/bits/atomic.h
2369         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2370         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2371         Define PPC64 specific version.
2372         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2373         Change (mem) constraint to "b".
2374         [__powerpc64__] (__arch_atomic_exchange_and add_64):
2375         Replace addi with add. Change (value) contraint to "r".
2376         Change (mem) constraint to "b".
2377         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2378         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2379         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2380         (__arch_atomic_decrement_if_positive_32): New macro.
2381         (atomic_decrement_if_positive): Use __arch* macros.
2383 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
2385         * sysdeps/ia64/fpu/libm-test-ulps: Update.
2387 2003-03-27  Roland McGrath  <roland@redhat.com>
2389         * scripts/rpm2dynsym.sh: New file.
2390         * Makefile (distribute): Add it.
2392 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
2394         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2395         ar.unat before returning.  Add missing .mem.offset directives
2396         to ensure file gets assembled without warnings.
2397         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2399 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
2401         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2402         Return -1 instead of 0 if clock_getres failed.
2404 2003-03-27  Roland McGrath  <roland@redhat.com>
2406         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2407         header lines and write out foo.symlist files for each foo.so.NN listed.
2409         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2410         This symbol is exported, and we don't want to hide it.
2411         Add libc_hidden_proto instead.
2412         (_IO_file_jumps): Add libc_hidden_proto.
2413         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2414         Remove INTVARDEF.
2415         * libio/fileops.c (_IO_file_jumps): Likewise.
2416         * libio/stdfiles.c: Don't use INTUSE on them.
2417         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2418         * libio/iofopen.c (__fopen_internal): Likewise.
2419         * libio/freopen.c (freopen): Likewise.
2420         * libio/freopen64.c (freopen64): Likewise.
2421         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2423         * Makerules (check-abi) [$(enable-check-abi) = warn]:
2424         Ignore exit status from diff.
2425         * configure.in (enable_check_abi): Document possible value "warn".
2426         Change default to no for now.
2427         * configure: Regenerated.
2429         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2430         macro calls and a #include <stub-tag.h> at the end.
2431         * Makerules ($(objpfx)stubs): Tweak sed commands.
2433         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2434         caller column for *xattr syscalls, since they are in sysdeps/generic.
2436         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2437         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2439 2003-03-26  Roland McGrath  <roland@redhat.com>
2441         * Makerules (check-abi-config): Use /thread instead of /tls when
2442         use-thread and not just use-tls is set.
2444         * Makerules (update-abi): Put quotes around $(update-abi-config).
2446         * elf/Makefile (check-abi): Depend on check-abi-ld.
2447         (update-abi): Depend on update-abi-ld.
2449 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
2451         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2452         do not check for errors (unless testing for 32bit variant).
2453         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2455 2003-03-27  Philip Blundell  <philb@gnu.org>
2457         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2458         unconditional mov.  Remove nop.
2460         * sysdeps/unix/sysv/linux/kernel-features.h
2461         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2462         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2463         when __ASSUME_VFORK_SYSCALL is defined.
2464         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2465         __ASSUME_MMAP2_SYSCALL.
2466         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2467         __ASSUME_REALTIME_SIGNALS.
2469 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2471         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2472         only if DL_NO_COPY_RELOCS is not defined.
2473         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2475 2003-03-26  Roland McGrath  <roland@redhat.com>
2477         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2478         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2479         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2480         (sysdep_routines): Add stub-syscalls.
2481         ($(objpfx)stub-syscalls.c): New target.
2482         (generated): Add stub-syscalls.c.
2484         * tls.make.c: Also define use-tls according to USE_TLS macro.
2486 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2488         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2489         no-op padding element.
2490         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2491         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2492         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2493         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2495 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
2497         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2498         condition check for the return value of getgroups32.
2500 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2502         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2503         Fix a typo.
2504         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2505         PSEUDO_END_NOERRNO): Define.
2506         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2507         Define to PSEUDO_END.
2509 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2511         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2513 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
2515         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2516         * iconvdata/bug-iconv4.c: New file.
2517         * iconvdata/Makefile (tests): Add bug-iconv4.
2519 2003-03-25  H.J. Lu  <hjl@gnu.org>
2521         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
2522         symbols twice.
2523         (_dl_lookup_versioned_symbol): Likewise.
2525 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2527         * csu/tst-atomic.c (do_test): Add some new
2528         atomic_compare_and_exchange_val_acq, atomic_add_zero,
2529         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
2530         * include/atomic.h (atomic_add_negative, atomic_add_zero):
2531         Prefix local variable so that it doesn't clash with the one
2532         in atomic_exchange_and_add.
2533         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
2534         pointers.
2535         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
2536         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
2537         value into register.
2538         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
2539         Cast newval to long.
2540         * sysdeps/x86_64/bits/atomic.h
2541         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
2542         long.
2543         (atomic_exchange): Cast newvalue to long if sizeof == 8.
2544         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
2545         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2546         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
2548 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
2550         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
2551         bit from backtrace addresses.
2553 2003-03-21  Andreas Schwab  <schwab@suse.de>
2555         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
2556         __chown symbols.
2558 2003-03-25  Roland McGrath  <roland@redhat.com>
2560         * config.make.in (enable-check-abi): New variable from configure.
2561         * configure.in (enable_check_abi): New substituted variable,
2562         controlled by --{enable,disable}-check-abi (default yes).
2563         * configure: Regenerated.
2564         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
2565         on check-abi dependency.
2567 2003-03-26  Andreas Schwab  <schwab@suse.de>
2569         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
2570         * include/atomic.h: Likewise.
2572         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
2574 2003-03-25  Roland McGrath  <roland@redhat.com>
2576         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
2577         (__arch_atomic_exchange_64): New macro.
2578         (atomic_exchange): Use them.
2579         (__arch_atomic_exchange_and_add_32): New macro.
2580         (__arch_atomic_exchange_and_add_64): New macro.
2581         (atomic_exchange_and_add): Use them.
2582         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
2584 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
2586         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
2587         Define.
2588         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
2589         ISA tests.
2590         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
2591         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
2592         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2593         to decide whether to add padding.
2594         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2595         to decide whether to add padding.
2596         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
2597         old_kernel_sigaction): Likewise.
2599 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
2601         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
2602         atomic_add_zero were supposed to do.
2603         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
2604         to x86 behavior.
2606         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
2607         This matches the new timer implementation.
2608         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
2609         Likewise.
2610         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
2611         Likewise.
2612         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
2613         timer info for what the kernel provides these days.
2614         (struct sigevent): Add _tid field.
2615         Define SIGEV_THREAD_ID.
2616         Remove struct __pthread_attr_s forward declaration.
2617         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2618         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2619         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2620         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2622         * Versions.def (librt): Add GLIBC_2.3.3.
2624         * abilist/libpthread.abilist: Update for nptl.
2626 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
2628         * inet/netinet/in.h: Add IPPROTO_SCTP.
2630 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
2632         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
2634 2003-03-24  Philip Blundell  <philb@gnu.org>
2636         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
2637         Remove a1 from clobber list.
2639 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
2641         * timezone/antarctica: Update from tzdata2003a.
2642         * timezone/asia: Likewise.
2643         * timezone/australasia: Likewise.
2644         * timezone/europe: Likewise.
2645         * timezone/iso3166.tab: Likewise.
2646         * timezone/northamerica: Likewise.
2647         * timezone/southamerica: Likewise.
2648         * timezone/zone.tab: Likewise.
2650 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
2652         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
2654 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
2656         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
2657         unwanted expansion by definining to ret.  Patch by Ian Wienand.
2659         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
2660         the parameter description to denote no error checking.  Generate
2661         appropriate pseudo asm code.
2662         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
2663         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
2664         getpgrp, and getppid with 'E'.
2665         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
2666         PSEUDO_END_NOERRNO, and ret_NOERRNO.
2667         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2668         * sysdeps/unix/sysdep.h: Likewise.
2669         * sysdeps/unix/alpha/sysdep.h: Likewise.
2670         * sysdeps/unix/sparc/sysdep.h: Likewise.
2671         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2672         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
2673         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
2674         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2675         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2676         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2677         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2678         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2679         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2680         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2681         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2683 2003-03-23  Roland McGrath  <roland@redhat.com>
2685         * Makeconfig (+includes): Don't use $(last-includes).
2687 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
2689         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
2690         * sysdeps/unix/sysv/linux/configure: Rebuilt.
2692 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
2694         * sysdeps/alpha/fpu/libm-test-ulps: Update.
2695         * sysdeps/arm/libm-test-ulps: Update.
2696         * sysdeps/hppa/fpu/libm-test-ulps: Update.
2697         * sysdeps/ia64/fpu/libm-test-ulps: Update.
2698         * sysdeps/mips/fpu/libm-test-ulps: Update.
2699         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2701         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2702         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2703         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
2704         * sysdeps/s390/fpu/libm-test-ulps: Update.
2705         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2707 2003-03-22  Roland McGrath  <roland@redhat.com>
2709         * include/atomic.h: Put parens around all macro arguments.
2710         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
2711         (atomic_compare_and_exchange_val_acq): Use it.
2712         (atomic_compare_and_exchange_bool_acq): Likewise.
2713         (atomic_increment_and_test): Invert sense of test.
2714         (atomic_decrement_and_test): Likewise.
2715         * csu/tst-atomic.c: Update those tests to match.
2717 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
2719         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
2720         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
2721         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
2722         __oldval variable in the macro, since it might be macro argument.
2723         (atomic_decrement_if_positive): Initialize __memp, remove setting
2724         of non-existent variable.
2725         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
2726         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
2727         using atomic_compare_and_exchange_val_acq.
2728         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
2729         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2730         Renamed from...
2731         (__arch_compare_and_exchange_bool_8_acq): ... this.
2732         (__arch_compare_and_exchange_val_16_acq): Renamed from...
2733         (__arch_compare_and_exchange_bool_16_acq): ... this.
2734         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
2735         from...
2736         (__arch_compare_and_exchange_bool_32_acq): ... this.
2737         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
2738         from...
2739         (__arch_compare_and_exchange_bool_64_acq): ... this.
2740         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
2741         variables types instead of assuming int.
2742         Change prefix of local variables to __arch.
2743         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
2744         Remove.
2745         (atomic_compare_and_exchange_val_acq,
2746         atomic_compare_and_exchange_bool_acq): Define.
2748         * csu/tst-atomic.c: New test.
2749         * csu/tst-atomic-long.c: New test.
2750         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
2752         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
2754         * sysdeps/s390/Versions: Add trailing newline.
2756         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
2757         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2759 2003-03-22  Andreas Schwab  <schwab@suse.de>
2761         * sysdeps/m68k/fpu/libm-test-ulps: Update.
2763         * sysdeps/m68k/m68020/bits/atomic.h: New file.
2764         * sysdeps/m68k/m68020/atomicity.h: Removed.
2766 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
2768         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
2769         data structures and macros.  Protect from multiple inclusion.
2771         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
2772         typo in #if test.
2774 2003-03-21  Andreas Jaeger  <aj@suse.de>
2776         * sysdeps/i386/fpu/libm-test-ulps: Update.
2778         * math/libm-test.inc (tgamma_test): Recompute some constants with
2779         36 digits precision.
2780         (lgamma_test): Likewise.
2781         (ccos_test): Likewise.
2782         (ccosh_test): Likewise.
2783         (clog10_test): Likewise.
2784         (csin_test): Likewise.
2785         (csinh_test): Likewise.
2786         (ctan_test): Likewise.
2787         (ctanh_test): Likewise.
2789 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
2791         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2793 2003-03-21  Roland McGrath  <roland@redhat.com>
2795         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
2796         constraint to permit non-constant BIT argument.
2797         (atomic_bit_test_set): Likewise.
2798         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
2799         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
2800         For quadword case, use "i" constraint if __builtin_constant_p and < 32
2801         or "r" constraint otherwise.
2803         * configure.in: Move AC_PROG_CC and other program-finding before all
2804         the version checks.
2805         * configure: Regenerated.
2807 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
2809         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
2810         unaligned copying of 8-15 bytes.  From Chris Demetriou
2811         <cgd@broadcom.com>.  Fix label names.
2812         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
2813         change as to memcpy.S.
2814         * sysdeps/mips/memcpy.S: Formatting changes.
2815         * sysdeps/mips/memset.S: Likewise.
2817 2003-03-21  Roland McGrath  <roland@redhat.com>
2819         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
2821 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
2823         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
2824         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2826 2003-03-21  Roland McGrath  <roland@redhat.com>
2828         * sysdeps/i386/i486/bits/atomic.h
2829         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
2830         version of the macro to avoid compile-time warnings.
2831         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
2832         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
2833         (atomic_increment, atomic_decrement): Likewise.
2835 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
2837         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
2838         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2840 2003-03-21  Roland McGrath  <roland@redhat.com>
2842         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2844 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2846         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
2847         atomic_compare_and_exchange_val_rel,
2848         atomic_compare_and_exchange_bool_acq, and
2849         atomic_compare_and_exchange_bool_rel instead of
2850         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2851         * sysdeps/i386/i486/bits/atomic.h: Define
2852         __arch_compare_and_exchange_val_*_acq instead of
2853         __arch_compare_and_exchange_*_acq.
2854         * sysdeps/x86_64/bits/atomic.h: Likewise.
2855         * sysdeps/ia64/bits/atomic.h: Define
2856         __arch_compare_and_exchange_bool_*_acq instead of
2857         __arch_compare_and_exchange_*_acq.
2858         * sysdeps/powerpc/bits/atomic.h: Likewise.
2859         * sysdeps/s390/bits/atomic.h: Likewise.
2860         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
2861         * malloc/set-freeres.c: Likewise.
2862         * nscd/cache.c: Likewise.
2863         * stdlib/cxa_finalize.c: Likewise.
2864         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2866 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2868         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
2869         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
2870         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2872         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
2873         into high and low halves on n64.
2874         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2875         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2876         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2878 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2880         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
2881         correct atomic_compare_and_exchange_acq semantics.
2883 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2885         * sysdeps/mips/ieee754.h: Remove excess #endif.
2887 2003-03-20  Roland McGrath  <roland@redhat.com>
2889         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
2890         variable.  Remove superfluous memory clobber.
2892         * include/atomic.h: Syntax braino fix.
2894         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
2895         in decimal.  Don't bail if niced at start.  Just check that nice call
2896         bumps the total at all.
2898 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2900         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
2901         including pc, gp, sp and fp, as long long.
2902         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
2903         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
2904         Add gp argument, and set gp in the jmpbuf to it.
2905         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2907 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2909         * include/atomic.h: Define atomic_exchange and
2910         atomic_decrement_if_positive if not already defined.  Add some
2911         __builtin_expect.
2912         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
2913         * sysdeps/x86_64/bits/atomic.h: Likewise.
2914         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
2915         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
2916         atomic_exchange, atomic_exchange_and_add, and
2917         atomic_decrement_if_positive
2919 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2921         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
2922         with a single instruction.
2924         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
2925         properly for n64.
2926         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
2927         type.
2928         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
2929         Word before comparing with gotsym.  Take reloc_addr argument as
2930         void*.  Remove the code added for the compiler to drop any
2931         alignment assumptions.
2933 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
2935         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
2936         * include/atomic.h: New file.
2937         * sysdeps/i386/i486/bits/atomic.h: New file.
2938         * sysdeps/x86_64/bits/atomic.h: New file.
2939         * sysdeps/s390/bits/atomic.h: New file.
2940         * sysdeps/sh/bits/atomic.h: New file.
2941         * sysdeps/ia64/bits/atomic.h: New file.
2942         * sysdeps/powerpc/bits/atomic.h: New file.
2943         * sysdeps/generic/bits/atomic.h: New file.
2944         * sysdeps/i386/i486/atomicity.h: Removed.
2945         * sysdeps/x86_64/atomicity.h: Removed.
2946         * sysdeps/s390/s390-32/atomicity.h: Removed.
2947         * sysdeps/s390/s390-64/atomicity.h: Removed.
2948         * sysdeps/ia64/atomicity.h: Removed.
2949         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
2950         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
2951         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
2952         use of macros from atomicity.h to new names and semantics.
2953         * gmon_mcount.c: Likewise.
2954         * malloc/set-freeres.c: Likewise.
2955         * nscd/cache.c: Likewise.
2956         * stdlib/cxa_finalize.c: Likewise.
2957         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2959 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
2961         * sysdeps/mips/ieee754.h: New file, suitable to replace both
2962         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
2963         mips-specific for now.
2965 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
2967         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2968         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
2969         * stdlib/tst-strtod.c: Add test for the bug.
2971         * posix/tst-nice.c (do_test): Remove invalid of return value.
2972         Don't run test if initial level != 0.
2974 2003-03-19  Amos Waterland  <apw@us.ibm.com>
2976         * posix/tst-nice.c: New file.
2977         * posix/Makefile (tests): Add tst-nice.
2979 2003-03-18  Roland McGrath  <roland@redhat.com>
2981         * abilist: New directory of libfoo.abilist files maintained using
2982         scripts/merge-abilist.awk and "make update-abi" rules.
2983         * Makefile (distribute): Add abilist/*.abilist.
2984         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
2985         Depend on check-abi.
2987         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
2988         * configure: Regenerated.
2990         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2992 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
2994         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
2995         correctly.
2997 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
2999         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
3001 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
3003         * Versions.def: Add GLIBC_2.3.3 for libpthread.
3005 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
3007         * sysdeps/generic/libc-start.c [!SHARED &&
3008         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
3010 2003-03-17  Roland McGrath  <roland@redhat.com>
3012         * include/ctype.h: Revert last change.
3014 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
3016         * argp/tst-argp1.c: Use test-skeleton.c.
3017         * locale/tst-C-locale.c: Likewise.
3019 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
3021         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
3022         * sysdeps/mips/mips64/n64/Implies: New file.
3023         * sysdeps/mips/mips64/n64/Makefile: New file.
3024         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
3025         * sysdeps/mips/mips64/n32/Implies: New file.
3026         * sysdeps/mips/mips64/n32/Makefile: New file.
3027         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
3028         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
3029         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
3030         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
3031         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
3032         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
3033         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
3034         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
3035         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
3036         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
3037         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
3038         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
3039         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
3040         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
3042         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
3043         lib64 for mips64/n64 and lib32 for mips64/n32.
3044         (ldd_rewrite_script): Needed for all mips64 configurations.
3045         * sysdeps/unix/sysv/linux/configure: Rebuilt.
3046         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
3047         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
3049         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
3050         well.
3052         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
3053         asm/unistd.h into asm-unistd.h.
3054         * sysdeps/unix/sysv/linux/mips/configure: Generated.
3055         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
3056         of syscall list.
3057         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
3058         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
3059         asm/unistd.h.
3061         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
3062         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
3063         long type for registers on n32.
3065         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3066         3 ABIs.
3067         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
3068         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
3069         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
3070         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
3071         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
3072         * sysdeps/unix/mips/brk.S: Likewise.
3073         * sysdeps/unix/mips/sysdep.S: Likewise.
3074         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3075         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
3076         * sysdeps/mips/sys/ucontext.h: Likewise.
3077         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
3078         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
3079         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
3080         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3081         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
3082         * sysdeps/mips/mips64/setjmp.S: Likewise.
3083         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
3084         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
3085         64-bit types.
3087 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
3089         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
3090         not at function level.
3091         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
3093 2003-03-15  Roland McGrath  <roland@redhat.com>
3095         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
3096         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3097         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
3098         * nis/nis_table.c (__create_ib_request): Likewise.
3100         * posix/fnmatch_loop.c: Add casts for signedness.
3101         * nss/nss_files/files-hosts.c: Likewise.
3102         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3103         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
3104         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
3106         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
3107         get errors into the log file.
3108         (libc_cv_broken_visibility_attribute): Likewise.
3109         (libc_cv_broken_alias_attribute): Likewise.
3110         (libc_cv_asm_weak_directive): Likewise.
3111         (libc_cv_need_minus_P): Likewise.
3112         (libc_cv_dot_text): Likewise.
3113         (libc_cv_asm_global_directive): Likewise.
3114         (libc_cv_asm_type_prefix): Likewise.
3115         * configure: Regenerated.
3117         * nscd/cache.c (cache_search): Give first arg type `request_type'.
3118         * nscd/nscd.h: Update decl.
3120         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
3121         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3122         * elf/dl-close.c (_dl_close): Likewise.
3123         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
3124         * io/fts.c (fts_build): Likewise.
3125         * elf/cache.c (add_to_cache): Likewise.
3126         * locale/programs/locarchive.c (show_archive_content): Likewise.
3128         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
3130         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
3131         happy.
3132         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
3134 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
3136         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
3137         code for most parts.
3139 2003-03-15  Roland McGrath  <roland@redhat.com>
3141         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
3142         * sysdeps/unix/sysv/linux/system.c: ... here.
3143         (FORK): Don't #define if already #define'd.
3144         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
3145         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
3146         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
3148         * dlfcn/tst-dlinfo.c: New file.
3149         * dlfcn/Makefile (tests): Add tst-dlinfo.
3150         ($(objpfx)tst-dlinfo): New target.
3152         * dlfcn/dlinfo.c: New file.
3153         * dlfcn/Makefile (libdl-routines): Add it.
3154         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
3155         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
3156         [__USE_GNU] (RTLD_DI_*): New enum constants.
3157         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
3158         * elf/dl-load.c (cache_rpath): New inline function.
3159         (_dl_map_object): Use it.
3160         (_dl_rtld_di_serinfo): New function.
3161         * sysdeps/generic/ldsodefs.h: Declare it.
3162         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
3164         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
3165         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
3166         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
3167         (__libc_start_main): Just call the generic one for most of the work.
3169         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
3170         static function by that name instead of BP_SYM (__libc_start_main).
3171         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
3172         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
3173         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
3175         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
3176         Use this macro for extra AT_* cases.
3177         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
3178         New macro, guts from ...
3179         (__aux_init_cache): ... here, function removed.
3180         (DL_PLATFORM_INIT): Don't define this.
3182         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
3183         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
3185         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
3187 2003-03-14  Roland McGrath  <roland@redhat.com>
3189         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
3191 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
3193         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
3195         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3196         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
3198 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
3200         * sysdeps/mips/fpu/bits/mathdef.h: New.
3201         (__NO_LONG_DOUBLE_MATH): Define for o32.
3203         * sysdeps/mips/sys/asm.h: Formatting changes.
3204         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
3205         (CPADD): Define for all of them.
3206         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
3207         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
3208         NARGSAVE): Define per ABI spec.
3209         (END): Don't redefine.
3210         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
3211         LONG_SRAV): Remove duplicate definitions.
3212         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
3213         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
3214         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
3215         (PTR_LA): Define for all 3 ABIs.
3217         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
3218         (elf_machine_matches_host): Prevent linking of o32 and n32
3219         together.
3220         (elf_machine_dynamic): Document assumption on $gp.
3221         (STRINGXP, STRINGXV, STRINGV_): New macros.
3222         (elf_machine_load_address): Use them to stringize PTR_LA and
3223         PTR_SUBU.
3224         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
3225         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
3226         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
3227         (__dl_runtime_resolve): Cast the symtab initializer to the
3228         right type.
3229         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
3230         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
3231         Handle 64-bit R_MIPS_REL composite relocation and accept
3232         R_MIPS_64 relocations to shift addend size to 64 bits.
3233         Document assumption regarding local GOT entries.  Document
3234         backward-compatibility departing from the ABI behavior in
3235         applying relocations that reference section symbols, no longer
3236         used.  Support relocations to mis-aligned offsets.
3237         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
3239         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
3241         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
3242         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
3243         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
3244         restore_rt functions.  Use them.
3246         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
3247         .set mips2 on new abis.
3249 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
3251         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
3252         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
3253         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
3254         * sysdeps/posix/pathconf.c: Likewise.
3255         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3256         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3257         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
3259         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
3260         words.
3262 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
3264         * include/gmp.h: Include/gmp-mparam.h.
3265         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
3266         gmp-impl.h.
3268         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
3269         ELF_MACHINE_NO_RELA is set.
3270         * elf/rtld.c (dl_main): No prelink support for REL-only.
3272         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
3273         FLAG_MIPS64_LIBN64): Define.
3274         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
3276         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
3277         * sysdeps/mips/memset.S: Likewise.
3278         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
3279         depending on the ABI.
3281         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
3282         Don't .set mips2 on new abi.
3283         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
3285         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
3287 2003-03-13  Roland McGrath  <roland@redhat.com>
3289         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
3290         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
3292 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
3294         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
3295         literals long long.
3296         * stdlib/fpioconst.c: Likewise.
3297         * stdlib/strtod.c: Likewise.
3299         * sysdeps/mips/add_n.S: Use L macro for local labels.
3300         * sysdeps/mips/addmul_1.S: Likewise.
3301         * sysdeps/mips/lshift.S: Likewise.
3302         * sysdeps/mips/memcpy.S: Likewise.
3303         * sysdeps/mips/memset.S: Likewise.
3304         * sysdeps/mips/mul_1.S: Likewise.
3305         * sysdeps/mips/rshift.S: Likewise.
3306         * sysdeps/mips/sub_n.S: Likewise.
3307         * sysdeps/mips/submul_1.S: Likewise.
3308         * sysdeps/mips/mips64/add_n.S: Likewise.
3309         * sysdeps/mips/mips64/addmul_1.S: Likewise.
3310         * sysdeps/mips/mips64/lshift.S: Likewise.
3311         * sysdeps/mips/mips64/mul_1.S: Likewise.
3312         * sysdeps/mips/mips64/rshift.S: Likewise.
3313         * sysdeps/mips/mips64/sub_n.S: Likewise.
3314         * sysdeps/mips/mips64/submul_1.S: Likewise.
3315         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
3316         conventions.  Define END as in sys/asm.h.
3317         * sysdeps/unix/mips/sysdep.S: Likewise.
3318         * sysdeps/unix/mips/wait.S: Likewise.
3319         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3321         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
3322         Cast shifted values that may be too narrow to mp_limb_t.
3323         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
3324         Likewise.
3325         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
3326         Likewise.
3327         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
3328         (__mpn_extract_long_double): Likewise.
3329         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
3330         (__mpn_construct_long_double): Likewise.
3331         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
3332         (__mpn_extract_long_double): Likewise.
3333         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
3334         (__mpn_construct_long_double): Likewise.
3336 2003-03-13  Roland McGrath  <roland@redhat.com>
3338         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
3339         entries in the map file match too.
3341 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
3343         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
3344         label .Lthread_start since current binutils don't allow branches
3345         to globally visible symbols.
3347 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
3349         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
3350         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
3351         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
3352         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
3353         clobbered by the syscall.
3354         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
3355         ASM_ARGS_6): Change constraints from r to index of corresponding
3356         output register.
3357         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
3358         ptid and ctid to match kernel.
3359         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
3361 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
3363         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3364         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
3365         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3367 2003-03-11  Roland McGrath  <roland@redhat.com>
3369         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3370         Check SYM_MAP rather than SYM as definedness check.
3371         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
3372         Don't handle R_PPC64_REL24 reloc.
3373         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3375         * sysdeps/powerpc/powerpc64/dl-machine.h
3376         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
3377         block, so we cover all the TPREL16* flavors without 6 ||s.
3378         [USE_TLS] (elf_machine_tprel): New function.
3379         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
3380         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
3381         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3383 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
3385         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
3386         instead of jalr to invoke subroutine so restoring the $gp register
3387         will work properly.
3389 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3391         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
3392         to __NR_pread if not defined.
3393         (__NR_pwrite64): Define to __NR_pwrite if not defined.
3395 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
3397         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
3398         * sysdeps/unix/sysv/linux/kernel-features.h
3399         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
3400         kernel >= 2.5.64.
3402 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
3404         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
3405         allocate space even for the trailing '/'.
3406         Reported by John Reiser <jreiser@BitWagon.com>.
3408         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
3409         ASM_CLOBBERS_6): Define.
3410         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
3411         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
3412         to match IA-32 order.
3413         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
3415 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
3417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
3418         Copy extra params for NPTL to registers used in clone syscall.
3420 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3422         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
3423         call names for pread and pwrite.
3425 2003-03-10  Roland McGrath  <roland@redhat.com>
3427         * dlfcn/Makefile (libdl-routines): Add dladdr1.
3428         * dlfcn/dladdr1.c: New file.
3429         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
3430         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
3431         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
3432         a const ElfNN_Sym ** to fill in.
3433         * include/dlfcn.h: Update decl.  Include <link.h>.
3434         * dlfcn/dladdr.c (dladdr): Update caller.
3435         * malloc/mtrace.c (tr_where): Likewise.
3436         * sysdeps/generic/elf/backtracesyms.c: Likewise.
3437         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3438         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
3439         * Versions.def (libdl): Define GLIBC_2.3.3 set.
3441         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
3442         assembler command.
3443         * sysdeps/unix/Makefile (compile-syscall): New variable.
3444         Pass -g0 to compiler for assembling syscall stubs from stdin.
3446         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
3447         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
3448         Define these to do nothing.
3450         * configure.in: New check for -g on .S files.
3451         * configure: Regenerated.
3452         * config.make.in (have-cpp-asm-debuginfo): New variable.
3453         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
3454         * Makeconfig (ASFLAGS): New variable, if undefined and
3455         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
3456         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
3458 2003-03-09  Roland McGrath  <roland@redhat.com>
3460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
3461         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
3463 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
3465         * po/fi.po: Update from translation team.
3466         * po/ca.po: Likewise.
3467         * po/da.po: Likewise.
3469 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
3471         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
3473 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
3475         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
3477         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
3479 2003-03-07  Roland McGrath  <roland@redhat.com>
3481         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
3482         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
3484 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
3486         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
3487         stubs, we have INLINE_SYSCALL.
3488         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
3489         MAP_NONBLOCK.
3491 2003-03-06  Roland McGrath  <roland@redhat.com>
3493         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
3494         permanent extent and add a comment about testing its implicit teardown.
3496 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3498         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
3500 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
3502         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
3503         reversed __builtin_expect expectation.
3505 2003-03-05  Roland McGrath  <roland@redhat.com>
3507         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
3508         * libio/swscanf.c: Likewise.
3509         * libio/swprintf.c: Likewise.
3511 2003-03-04  Roland McGrath  <roland@redhat.com>
3513         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
3514         (elf_machine_rela): Always use RESOLVE_MAP, needed for
3515         R_PPC64_JMP_SLOT as well as TLS cases.
3516         (BIT_INSERT): Move parenthesis where it ought to have been.
3517         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3519         * posix/confstr.c (confstr): Correct STRING_LEN values for
3520         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
3521         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
3523 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
3525         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3527 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
3529         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
3530         clone parameters.
3532         * po/sv.po: Update from translation team.
3534 2003-03-04  Andreas Jaeger  <aj@suse.de>
3535             Ulrich Drepper  <drepper@redhat.com>
3537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
3539 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
3541         * sysdeps/generic/dl-sysdep.h: Add double include protection.
3543         * po/tr.po: Update from translation team.
3545         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
3546         are holes between the segments.  Only call mprotect to set
3547         proection to PROT_NONE if there are some.
3549         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
3550         Update comment.
3552         * include/sched.h (__clone2): Use ... instead of adding all the
3553         new parameters.
3555 2003-03-03  Roland McGrath  <roland@redhat.com>
3557         * elf/dl-load.c (struct filebuf): Fix typo in last change.
3559         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
3560         PI_STATIC_AND_HIDDEN.
3562 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
3564         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
3565         flags.
3566         * include/sched.h: Update clone2 prototype.
3568 2003-03-03  Andreas Jaeger  <aj@suse.de>
3570         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
3571         (llrint): Use it to correct return type.
3572         (lrint): Likewise.
3573         (lround): Likewise.
3574         (llround): Likewise.
3576 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
3578         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
3579         byte filebuf size.
3581         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
3582         if ccs parameter isn't valid.  Reported by Andreas Schwab.
3584 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3586         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
3587         for system call numbers > 255.
3588         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
3589         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3590         INTERNAL_SYSCALL): Likewise.
3591         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3592         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
3593         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3594         INTERNAL_SYSCALL): Likewise.
3596 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3598         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
3599         array if it is the initial dtv.
3601 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
3603         * po/es.po: Update from translation team.
3604         * po/fr.po: Likewise.
3605         * po/gl.po: Likewise.
3606         * po/sk.po: Likewise.
3607         * po/sv.po: Likewise.
3609         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
3610         * misc/sys/mman.h: Add prototype for remap_file_pages.
3611         * sysdeps/generic/remap_file_pages.c: New file.
3612         * misc/Makefile (routines): Add remap_file_pages.
3613         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
3615         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
3616         and MAP_NONBLOCK.
3617         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3618         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
3619         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3620         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3621         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3622         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
3623         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
3624         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3626 2003-03-03  Roland McGrath  <roland@redhat.com>
3628         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
3629         * sysdeps/ia64/dl-machine.h: Likewise.
3630         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
3631         argument type.
3632         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
3634         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
3635         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
3636         * locale/Versions (libc: GLIBC_2.3): Move those to ...
3637         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
3638         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
3639         * Versions.def (libc): Add GLIBC_2.3.3 set.
3641         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
3642         * sysdeps/ia64/dl-machine.h: Update decl.
3644 2003-03-03  Andreas Jaeger  <aj@suse.de>
3646         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
3648 2003-03-02  Roland McGrath  <roland@redhat.com>
3650         * scripts/abilist.awk: Reject data items with apparent 0 size.
3652         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
3653         after foo.* as if it were a duplicate.
3655         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
3657 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
3659         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
3661         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
3662         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
3663         if not already defined.  Use SYSDEP_GETRES to allow other files to
3664         provide alternative implementations.
3665         * sysdeps/unix/sysv/linux/clock_getres.c: New file
3666         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
3667         if not already defined.  Use SYSDEP_GETTIME to allow other files to
3668         provide alternative implementations.
3669         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
3670         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
3671         if not already defined.  Use SYSDEP_GETTIME to allow other files to
3672         provide alternative implementations.
3673         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
3674         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
3675         other files to provide alternative implementations.  Rearrange
3676         tests for invalid parameters.
3677         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
3678         * sysdeps/unix/sysv/linux/sysconf.c: New file.
3679         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3680         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
3681         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3682         _POSIX_MONOTONIC_CLOCK.
3684 2003-03-02  Roland McGrath  <roland@redhat.com>
3686         * scripts/merge-abilist.awk: More checks for bogus input.
3687         Uniquify duplicate config names.
3689         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
3691         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
3692         from dl_reloc_overflow, make global.
3693         (__process_machine_rela): Update callers.
3694         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
3695         Add attribute_hidden to __process_machine_rela decl.
3696         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
3698         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
3699         variable.
3701         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
3702         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
3703         (elf_machine_rela): Clean up.
3705         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
3707         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
3708         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
3709         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
3710         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
3711         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
3712         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
3713         new relocs for TLS.
3715         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
3716         macros out of [SHARED].
3717         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
3719         * elf/elf.h: Define R_PPC_* relocs for TLS support.
3720         Clean up R_PPC64_* macro definition comments.
3722         * configure.in: In "running configure fragment for" message,
3723         omit $srcdir from the name if we prepended it.
3724         * configure: Regenerated.
3726         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
3727         From Jakub Jelinek <jakub@redhat.com>.
3729         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
3730         which duplicated the O_DIRECT defn.
3732 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
3734         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
3735         random functions.
3737 2003-03-01  Andreas Schwab  <schwab@suse.de>
3739         * resolv/Makefile (tests): Don't depend on
3740         $(objpfx)mtrace-tst-leaks when cross compiling.
3742         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
3743         __libc_stack_end through GOT since it is a global symbol.
3745 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
3747         * argp/argp.h: Fix a typo.
3748         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
3750         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
3752 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
3754         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
3755         char *.
3756         (get_subexp): Likewise.
3758 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
3760         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
3762 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
3764         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
3766 2003-02-27  Roland McGrath  <roland@redhat.com>
3768         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
3769         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
3770         repeat it and avoids the test for the common case.
3771         Clean up and fix calculations for TLS relocs.
3773         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
3774         * sysdeps/powerpc/dl-tls.h: ... here.
3775         (TLS_TP_OFFSET): New macro.
3777         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
3779 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
3781         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
3782         code generation changes in recent gcc.
3784 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
3786         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
3787         Rename argument to avoid symbol conflict.
3789         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
3790         [__USE_GNU] (O_DIRECT): New macro.
3792 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
3794         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
3795         unwind info.
3797 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
3799         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
3800         initializer anymore now that res_thread_freeres is more careful.
3802         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
3803         except the PKTINFO.  Reset interface in PKTINFO.
3804         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
3806 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
3808         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
3809         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
3810         Define.
3811         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
3812         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
3813         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
3814         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
3816         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3817         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
3819 2003-02-25  Andreas Jaeger  <aj@suse.de>
3821         * manual/memory.texi (Malloc Tunable Parameters): Clarify
3822         behaviour of M_MMAP_THRESHOLD.
3824 2003-02-25  Roland McGrath  <roland@redhat.com>
3826         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
3827         zero, inidicating _res was not initialized yet.
3829 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
3831         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
3832         test.
3834 2003-02-24  Roland McGrath  <roland@redhat.com>
3836         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
3838 2003-02-23  Roland McGrath  <roland@redhat.com>
3840         * sysdeps/posix/pause.c: New file.
3841         * sysdeps/unix/common/pause.c: File removed.
3843 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
3845         * sysdeps/generic/bits/confname.h: Remove #ifs.
3847         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
3848         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
3850         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
3851         element to -1.
3853 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
3855         * sysdeps/generic/dl-sysdep.c: Avoid warning.
3857 2003-02-22  Roland McGrath  <roland@redhat.com>
3859         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
3860         * resolv/Makefile (tests): Add tst-leaks.
3861         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
3862         (tst-leaks-ENV): New variable.
3863         ($(objpfx)mtrace-tst-leaks): New target.
3864         (tests): Depend on it.
3866         * include/libc-internal.h: Declare __libc_thread_freeres.
3868         * Makerules: Fix last change to use $($(subdir)-version) when set.
3870         * Makerules (install-lib-nosubdir): Depend on installed
3871         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
3872         regardless of the libfoo.so target's dependencies.
3874         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
3875         Use that in $(MAKE) calls.
3877 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
3879         * catgets/gencat.c (read_input_file): Collision between
3880         auto-assigned numbers and user-defined nubmers is not fatal.
3881         Handle it.
3882         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
3883         * catgets/Makefile: Add rules to run test2.msg test.
3884         * catgets/test2.msg: New file.
3886         * catgets/gencat.c (main): Return 1 if messages have been printed.
3888         * iconv/iconv_prog.c (main): Unify messages.
3890         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
3891         when shifting retval.
3892         * stdlib/tst-strtod.c (main): Add strtold test case.
3893         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3895 2003-02-21  Roland McGrath  <roland@redhat.com>
3897         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
3898         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
3899         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
3901         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
3902         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
3903         (res_thread_freeres): New function, on __libc_thread_subfreeres and
3904         __libc_subfreeres.
3906         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
3907         * malloc/thread-freeres.c: New file.
3908         * malloc/Makefile (aux): Add it.
3909         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
3910         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
3911         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
3913         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
3914         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
3916 2003-02-21  Roland McGrath  <roland@frob.com>
3918         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
3920         * iconvdata/Makefile (tests): Add bug-iconv3 only if
3921         [$(have-thread-library) = yes].
3923 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
3925         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
3927         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
3928         not chechk for errors (unless testing for 32bit variant).
3929         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3930         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3931         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3933 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
3935         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
3936         Check for signed overflow, not unsigned.
3938         * sysdeps/sparc/sparc64/elf/configure.in: New file.
3939         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
3940         Use -fcall-used-g6, not -fcall-used-g7.
3942 2003-02-21  Andreas Jaeger  <aj@suse.de>
3944         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
3945         mode.
3947         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
3948         clear whole mxcsr but only exceptions.
3950 2003-02-21  Roland McGrath  <roland@redhat.com>
3952         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
3953         for libfoo.so that need $(make-link) rules.
3955 2003-02-21  Roland McGrath  <roland@frob.com>
3957         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
3958         to match existing struct stat layout in mig protocols.
3960 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3962         * version.h (VERSION): Bump to 2.3.2.
3964         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
3965         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
3966         and dl-sysdep.h.
3967         * sysdeps/generic/Dist: Add sysdep-cancel.h.
3968         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
3969         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
3970         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
3971         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
3972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
3973         ucontext_i.h.
3974         * Makefile (distribute): Add include/stubs-prologue.h,
3975         include/gnu/stubs.h, scripts/merge-abilist.awk, and
3976         scripts/extract-abilist.awk.
3978 2003-02-20  Roland McGrath  <roland@redhat.com>
3980         * math/Makefile (distribute): Don't add generated files.
3982 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3984         * math/Makefile: Rearrange variable definitions slightly to get
3985         definition in the right order.
3987 2003-02-20  Roland McGrath  <roland@redhat.com>
3989         * Makerules: Clean up conditional around include of tls.make.
3990         * Make-dist: Export generating=t to prevent using that.
3991         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
3993 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3995         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
3996         around in search if port IPPORT_RESERVED/2 has been test.
3998 2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
4000         * posix/regcomp.c: Remove inclusions.
4001         * posix/regexec.c: Likewise.
4002         * posix/regex_internal.c: Likewise.
4003         * posix/regex_internal.h: Add inclusions here.
4004         * posix/regex.c: Only include sys/types.h before regex.h.  Include
4005         regex_internal.h here.  Include regex_internal.c before regcomp.c
4006         and regexec.c (might expose more opportunities to the C compiler).
4008         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
4010         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
4011         [!_LIBC] (__wcrtomb): New definition.
4012         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
4013         HAVE_LOCALE_H as well.
4015 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
4017         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
4018         patch to check for system call errors.
4020 2002-07-24  Philip Blundell  <philb@gnu.org>
4022         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
4023         on unknown systems.
4025 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4027         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
4028         * sysdeps/unix/sysv/linux/kernel-features.h
4029         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
4030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
4031         if possible.
4032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
4033         interprocedure branches.
4034         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
4035         * sysdeps/powerpc/nofpu/Dist: ...here.
4036         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
4037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
4038         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
4039         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
4040         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
4042 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
4044         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
4046 2003-02-20  Philip Blundell  <philb@gnu.org>
4048         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
4049         missing arguments to INTERNAL_SYSCALL_ERROR_P and
4050         INTERNAL_SYSCALL_ERRNO.
4052 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4054         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
4055         for __ASSUME_32BITUIDS.
4057 2003-02-20  Andreas Schwab  <schwab@suse.de>
4059         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
4060         POSIX_MADV_* constants.
4062 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4064         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
4065         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
4066         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
4067         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
4069 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
4071         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
4073 2003-02-16  Roland McGrath  <roland@redhat.com>
4075         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
4077 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
4079         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
4080         decimal input digits.
4081         * stdlib/tst-strtod.c (main): Add test for strtof bug.
4083 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
4085         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
4086         invalid file descriptors and missing access permissions.
4088 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
4090         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
4091         been found.
4093         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
4094         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
4095         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
4096         and LOGIN_NAME_MAX.
4098 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
4099             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4101         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
4102         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
4103         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4104         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4105         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4107 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4109         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
4110         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
4111         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
4112         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
4113         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
4114         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
4116         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
4117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
4118         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
4119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
4121         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
4122         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
4123         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
4124         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
4126 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
4128         * nss/getent.c (print_hosts): Print all IP addresses of one host.
4130 2003-02-15  Roland McGrath  <roland@frob.com>
4132         * sysdeps/mach/hurd/tls.h: New file.
4133         * sysdeps/mach/hurd/i386/tls.h: New file.
4135         * mach/errsystems.awk: Include <errno.h> in generated output.
4137         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
4138         use target mach-before-compile instead of generated.
4139         (mach-before-compile): New target.
4140         * Makerules: Disable use of tls.make if $(generating) is set.
4141         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
4142         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
4143         mach-shortcuts.h so mach/ generation happens before hurd/.
4145 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
4147         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
4148         of demorm correctly if low word is zero.
4149         Reported by Fred J. Tydeman <tydeman@tybor.com>.
4150         * math/libm-test.inc (nextafter_test): New test, but disabled due
4151         to gcc bug.
4153         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
4154         counter and only call __exit_thread if this is not the last thread.
4156 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
4158         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
4159         subtracting map->l_tls_offset.
4161 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
4163         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
4164         _CS_GNU_LIBPTHREAD_VERSION.
4165         * posix/conststr.c: Handle these new values.
4166         * posix/getconf.c: Likewise.
4168         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
4169         masking of version index.
4170         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4172 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
4174         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
4175         correctly.  Reported by Thorsten Kukuk.
4177 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
4179         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
4180         _BSD_SOURCE to compiler.
4181         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
4182         Patches by Alan Modra.
4184 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
4186         * io/ftwtest.c: Get current working directory before and after the
4187         nftw call and make sure they match.
4189 2003-02-08  Jim Meyering  <jim@meyering.net>
4191         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
4192         the current directory, not just when DIR contains a slash.
4193         Reported by Manoj Srivastava.
4195 2003-02-07  Jim Meyering  <jim@meyering.net>
4197         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
4198         Include autoconf-recommended block of dirent/NAMELEN-related
4199         definitions and includes.  Use NAMELEN throughout, rather than
4200         _D_EXACT_NAMLEN.
4201         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
4202         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
4203         (stpcpy): Declare, if necessary.
4204         (mempcpy): Define, if necessary.
4205         [!_LIBC] (__stpcpy, __mempcpy): Define.
4206         [!_LIBC] (LXSTAT, XSTAT): Define.
4207         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
4208         (find_object): Don't use c99-style struct initializer.
4209         Tweak wording in a couple comments.
4211 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4213         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
4214         for SH.
4215         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
4216         after the trapa instruction.
4217         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
4218         parameters.
4219         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
4220         (NEED_SYSCALL_INST_PAD): Define.
4221         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
4222         avoid to use definition for the kernel.
4223         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4224         Save and restore the frame pointer.
4225         (SYSCALL_INST_PAD): Define.
4226         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4227         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
4228         after trapa instruction.
4229         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4230         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4232 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
4234         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
4235         so that it can have aliases.
4236         * inet/herrno.c (h_errno): Put it into .bss not .data section.
4238 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
4240         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
4241         (profile_fixup): Likewise.
4242         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4244 2002-11-24  Robert Love  <rml@tech9.net>
4246         * posix/sched.h: Second parameter of sched_setaffinity and
4247         sched_getaffinity is `unsigned int', not `unsigned long'.
4248         * sysdeps/generic/sched_setaffinity.c: Likewise.
4249         * sysdeps/generic/sched_getaffinity.c: Likewise.
4251 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
4253         * debug/catchsegv.sh: Fix typo in error messsage.
4254         Reported by John Levon <levon@movementarian.org>.
4256         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
4257         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
4258         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4259         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4261         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4262         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4264         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
4265         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
4267 2003-02-05  Jim Meyering  <jim@meyering.net>
4269         Fix a heap-corrupting bug.
4270         * io/ftw.c: Include <limits.h>.
4271         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
4272         (process_entry): Allocate enough space to hold the resulting
4273         file name.  Don't presume that 2*dirbufsize is enough.
4274         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
4275         it is guaranteed to be defined.
4277 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
4279         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
4280         * iconvdata/bug-iconv3.c: New file.
4282 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4284         * sysdeps/unix/sysv/linux/s390/system.c: New file.
4286 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
4288         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
4289         check.
4290         * config.h.in (BROKEN_SPARC_WDISP22): Add.
4292 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
4294         * sysdeps/i386/i686/memmove.S: New file.
4296 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
4299         Include kernel-features.h
4300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
4301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
4303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4305 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
4307         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
4309 2003-01-25  Jim Meyering  <jim@meyering.net>
4311         * io/ftw.c (object_compare): Compare inode numbers before device
4312         numbers, since the former are much more likely to differ.
4314 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
4316         * time/tzfile.c (__tzfile_compute): Change return value type to
4317         void.  Adjust return statements.
4318         * include/time.h (__tzfile_compute): Adjust prototype.
4320 2003-02-01  Jim Meyering  <jim@meyering.net>
4322         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
4323         always returns 1.
4325 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4328         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
4330 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4333         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
4334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4335         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4337         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4339         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4341 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4343         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
4344         back to 2.4.19 for powerpc64.
4345         * sysdeps/unix/sysv/linux/kernel-features.h
4346         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
4347         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
4349 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
4351         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
4352         platforms with strange alignment requirements on wchar_t.
4354 2003-01-31  Andreas Schwab  <schwab@suse.de>
4356         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
4357         aliases, already added by make-syscalls.sh.
4358         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4359         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4360         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4361         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4362         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4363         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4364         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4365         * sysdeps/unix/inet/syscalls.list: Likewise.
4366         * sysdeps/unix/syscalls.list: Likewise.
4368 2003-01-31  Andreas Schwab  <schwab@suse.de>
4370         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
4371         any more.
4373 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4375         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
4376         not l to load tls from stack.
4378 2003-01-30  Roland McGrath  <roland@redhat.com>
4380         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
4381         null argument before all else.
4382         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4384 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4386         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
4387         Move to RESOLVE protected part of the header.
4388         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
4389         Likewise.
4391 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
4393         * stdio-common/Makefile (tests): Add bug15.
4394         (bug15-ENV): Define.
4395         * stdio-common/bug15.c: New file.
4397 2002-10-07  Wolfram Gloger  <wg@malloc.de>
4399         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
4400         to foreign sbrk()'s if arena is contiguous.  Bug report from
4401         Bruno Haible <bruno@clisp.org>.
4403 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4405         * sysdeps/s390/libc-tls.c: Include stdlib.h.
4407 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4409         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
4410         ps.__count.
4412 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
4414         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
4415         restoring of %r6.
4416         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
4417         64-bit load.
4418         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
4420 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4422         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
4423         (allocate_static_tls): ...here.  Add __attribute_noinline__.
4424         Don't return on failure.
4425         (_dl_reloc_bad_type): Add __attribute_noinline__.
4426         * elf/do-rel.h (elf_dynamic_do_rel): Add
4427         __attribute__((always_inline)).
4428         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4429         elf_machine_rel_relative, elf_machine_rela_relative,
4430         elf_machine_lazy_rel): Add prototypes with
4431         __attribute__((always_inline)).
4433 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
4435         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
4437 2003-01-29  Roland McGrath  <roland@redhat.com>
4439         * configure.in: Barf if configured in $srcdir.
4441 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
4443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4444         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
4446 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4448         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
4449         clone parameters to match the order used on ia32.
4450         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4452 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4454         * elf/elf.h: Add new s390 relocs.
4455         * elf/tls-macros.h: Add s390 versions.
4456         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
4457         * sysdeps/s390/dl-tls.h: New file.
4458         * sysdeps/s390/libc-tls.c: New file.
4459         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
4460         relocs for class PLT.
4461         (elf_machine_rela): Handle TLS relocs.
4462         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4463         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
4464         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4465         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
4466         CLONE_CHILD_*TID flags.
4467         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4468         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
4469         bit offset.
4470         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4471         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4472         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
4473         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
4474         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
4475         Likewise.
4476         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
4477         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
4478         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4479         variants.
4480         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
4481         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
4482         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
4483         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4484         variants.
4486 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
4488         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
4489         from __libc_pause.  Implement using sigsuspend.
4490         (__libc_pause): Call do_pause to do the real work.
4492         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
4493         sig_or_mask parameter is is_sig != 0.
4495 2003-01-21  Philip Blundell  <philb@gnu.org>
4497         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
4499 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
4501         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
4503 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
4505         * stdio-common/bug14.c: Use official name for the locale.
4507         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
4508         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
4509         instead of __libc_cleanup_region_end.
4511         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
4512         as first parameter to __libc_cleanup_region_start.
4514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4515         (__fe_nomask_env): Use __prctl not prctl.
4516         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
4517         prctl syscall.
4519         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
4521         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
4523         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
4524         wrap-around in test.
4526 2003-01-26  Andreas Schwab  <schwab@suse.de>
4528         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
4529         compatibility symbols.  Remove INTDEF for __divdi3.
4530         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
4531         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
4532         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
4533         define.
4534         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
4536 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
4538         * elf/tls-macros.h: Add SPARC 32-bit definitions.
4539         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
4540         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
4541         for the first half of the header.  Include tls.h.
4542         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
4543         relocs too.
4544         (elf_machine_rela): Handle TLS relocs.
4545         * sysdeps/sparc/dl-tls.h: New file.
4547         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
4548         support.
4550         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
4551         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4552         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4553         * sysdeps/sparc/sparc32/strcat.S: Likewise.
4554         * sysdeps/sparc/sparc32/strchr.S: Likewise.
4555         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
4556         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
4557         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
4558         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4559         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4560         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4561         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4562         * sysdeps/sparc/sparc64/strcat.S: Likewise.
4563         * sysdeps/sparc/sparc64/strchr.S: Likewise.
4564         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
4565         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
4566         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4567         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4568         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4569         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4571 2003-01-24  Andreas Schwab  <schwab@suse.de>
4573         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
4574         elements, and process them backwards.
4575         * elf/Makefile ($(objpfx)tst-array4): New target.
4576         ($(objpfx)tst-array4.out): Likewise.
4577         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
4578         * elf/tst-array4.c: New file.
4579         * elf/tst-array4.exp: Likewise.
4581 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
4585 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
4587         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
4588         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
4589         cancellation handling and handle both __NR_pread64 and __NR_pread.
4590         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4591         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
4592         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
4593         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4594         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
4595         case, use register names consistently.
4597 2003-01-27  Wolfram Gloger  <wg@malloc.de>
4599         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
4600         pointer, not of the computed chunk.  Bug report from Carlos
4601         O'Donell <carlos@baldric.uwo.ca>.
4603 2003-01-25  Andreas Schwab  <schwab@suse.de>
4605         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
4606         addressing to save GOT entries.
4608 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
4610         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
4611         inline_syscall1, inline_syscall2, inline_syscall3,
4612         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
4613         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
4614         __attribute__((unused)) to ChEcK.
4616 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4618         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
4619         Fix inline assembler constraints.
4620         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
4621         Likewise.
4623         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
4624         -fPIC.
4626 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
4628         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
4629         compute the cosine, not the sine, even if x > 0.8.
4631 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
4633         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
4634         _nss_nis_setspent.  Work around the different prototypes.
4635         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
4636         internal_nis_endrpcent.
4637         (internal_nis_endrpcent): Change return type to void.  Change callers.
4638         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
4639         _nss_nis_setpwent.  Work around the different prototypes.
4640         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
4641         of the function to...
4642         (internal_nis_endprotoent): ... here.  New function.
4643         (internal_nis_setprotoent): Use internal_nis_endprotoent.
4644         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
4645         _nss_nis_setnetent.  Work around the different prototypes.
4646         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
4647         of the function to...
4648         (internal_nis_endnetgrent): ... here.  New function.
4649         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
4651 2003-01-19  Jim Meyering  <jim@meyering.net>
4653         * time/strftime.c: (widen): Merge nearly-identical definitions.
4654         (nl_get_alt_digit) [! defined my_strftime]: Define.
4655         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
4656         _nl_get_alt_digit and _nl_get_walt_digit.
4658 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
4660         * time/strftime.c (my_strftime): Handle very large width
4661         specifications for numeric values correctly.  Improve checks for
4662         overflow.
4663         * time/Makefile (tests): Add tst-strftime.
4664         * time/tst-strftime.c: New file.
4666 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
4668         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
4669         _nss_nis_sethostent.  Work around the different prototypes.
4670         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
4671         _nss_nis_setgrent.  Work around the different prototypes.
4672         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
4673         function.  Split out from _nss_nis_endetherent.
4674         (internal_nis_setetherent): Use internal_nis_endetherent instead of
4675         duplicating the code.
4676         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
4677         of _nss_nis_setaliasent.
4678         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
4679         internal_nis_endservent code, don't duplicate it.
4681         * inet/rexec.c (rexec_af): Protect socket operations with
4682         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
4683         * inet/rcmd.c (rcmd_af): Likewise.
4685 2003-01-17  Roland McGrath  <roland@redhat.com>
4687         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
4688         Add test of value 0.80190127184058835.
4690         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
4692 2003-01-17  Richard Henderson  <rth@redhat.com>
4694         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
4695         relocs for class PLT.
4696         * sysdeps/alpha/libc-tls.c: New file.
4697         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
4698         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
4700 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
4702         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
4703         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
4704         on _dl_static_lock.
4706 2003-01-17  Andreas Jaeger  <aj@suse.de>
4708         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
4710 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
4712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
4713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
4714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
4715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
4716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
4717         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
4718         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
4719         is 2.4.21.
4721 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
4723         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
4724         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
4725         buffers.
4727         * sysdeps/generic/sysconf.c: Unconditionally implement
4728         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
4729         * sysdeps/posix/sysconf.c: Likewise.
4731 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
4733         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
4734         set *err to the returned error, not to REG_ESPACE unconditionally.
4735         (build_word_op): Likewise.
4736         * posix/Makefile (tests): Add bug-regex16.
4737         * posix/bug-regex16.c: New test.
4739 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
4741         * elf/dl-load.c (_dl_map_object_from_fd): Use
4742         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
4743         been already initialized.
4745 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
4747         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
4749 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
4751         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
4752         allocated too.  Reported by Al Viro <aviro@redhat.com>.
4754 2003-01-16  Roland McGrath  <roland@redhat.com>
4756         Tweak merged .abilist file format to merge duplicate symbols in
4757         different sets into multi-version stanzas with new "| SET regexp..."
4758         header continuation lines.
4759         * scripts/merge-abilist.awk: Rewritten for new format.
4760         * scripts/extract-abilist.awk: Likewise.
4762 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4764         * nscd/connections.c (nscd_run): Remove bogus return which isn't
4765         necessary with gcc 3.2+.
4766         (nscd_init): Don't use error() to print message, use dbg_log.
4768         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
4769         expected size into state.
4770         (UNPACK_BYTES): Do the reverse.
4771         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
4772         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
4773         Reported by Al Viro <aviro@redhat.com>.
4775         * stdio-common/Makefile (tests): Add bug14.
4776         * stdio-common/bug14.c: New file.
4778         * stdio-common/vfscanf.c: When recognizing multibyte characters in
4779         string reset the byte counter after mbrtowc reported it is not a
4780         partial character.  Reported by Al Viro <aviro@redhat.com>.
4782 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
4784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
4785         sysdep-cancel.h, not sysdep.h.
4787 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4789         * nscd/connections.c (nscd_run): Protect accept call with
4790         TEMP_FAILURE_RETRY.
4792 2003-01-15  Andreas Schwab  <schwab@suse.de>
4794         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4795         (common-generated): Add s-proto-bp.d.
4796         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
4797         of bp thunks.
4798         * sysdeps/unix/s-proto-bp.S: New file.
4799         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
4800         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
4801         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
4803 2003-01-15  Roland McGrath  <roland@redhat.com>
4805         * Makerules: Use -include for tls.make, suppresses warning.
4806         Move gen-as-const-headers rules up so before-compile is set in time.
4807         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
4809 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4811         * nscd/nscd.c (main): Make code to close all file descriptors
4812         faster and more robust.
4814         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
4815         request with one writev call.  Protect all read calls with
4816         TEMP_FAILURE_RETRY.
4817         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4818         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4820         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
4821         Protect writev calls with TEMP_FAILURE_RETRY.
4822         * nscd/grpcache.c: Likewise.
4823         * nscd/pwdcache.c: Likewise.
4825         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
4826         IPv6 address in debug output.
4828 2003-01-14  Roland McGrath  <roland@redhat.com>
4830         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
4831         $(objpfx) directories, and get rid of vpath directives.  The previous
4832         arrangement resulted in files being written to the source directories
4833         when run in a clean build.  Find all .abilist files in $(..)abilist/.
4834         (update-abi-%): Likewise.
4835         (generated): Don't add .symlist files, they'll be intermediates.
4837         * sysdeps/generic/init-first.c: Add a comment.
4839         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
4841         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
4842         #includes and expressions.
4844         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
4845         config list when it already contains cpu-.*-os.* without / part.
4847         * Makerules (sed-remove-dotdot): New variable.
4848         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
4849         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
4850         (check-abi-config): New variable, append /tls or /notls to the tuple.
4851         (check-abi-%): Use that for -v config value.
4852         Find .abilist files in abilist/libfoo.abilist, not in subdir.
4853         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
4855 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
4857         * manual/install.texi: Correct description of header preparation for
4858         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
4860 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
4862         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
4863         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4864         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
4866 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
4868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4869         (INTERNAL_SYSCALL): Make use of ERR parameter.
4870         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4871         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4872         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
4875 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
4877         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
4878         == IPPROTO_TCP.
4879         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
4881         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
4882         Fix entry for bit 31.
4884         * iconvdata/Makefile: Add rules to build IBM866NAV.
4885         * iconvdata/ibm866nav.c: New file.
4886         * iconvdata/tst-tables.sh: Add IBM866NAV.
4887         * iconvdata/gconv-modules: Add entries for IBM866NAV.
4889 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
4891         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
4892         to test void* parameters.
4894         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
4895         source pointer before dereferencing.
4896         (__STRING_SMALLL_GET32): Likewise.
4897         (__memset_gc): Add missing parenthesis around macro arguments.
4898         Patch by Denis Zaitsev <zzz@cd-club.ru>.
4900         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
4901         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4903 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
4905         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
4906         defining.
4908 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4910         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
4911         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
4912         here.
4913         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
4915 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4917         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
4918         from here...
4919         (PSEUDO): ... to here.
4920         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
4921         from here...
4922         (PSEUDO): ... to here.
4924 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
4926         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
4927         dirent64 instead of struct dirent for dirent.  Call readdir64
4928         instead of readdir.
4930         * locale/programs/locfile.c (siblings_uncached): Use struct
4931         dirent64 instead of struct dirent for other_dentry.  Call
4932         readdir64 instead of readdir.
4934         * elf/ldconfig.c (direntry): Change type to struct dirent64.
4935         (search_dir): Use readdir64 instead of readdir.
4936         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
4938 2003-01-12  Roland McGrath  <roland@redhat.com>
4940         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
4941         not strtol.  The former is usable in ld.so, the latter not.
4943         * include/fcntl.h: Declare __libc_creat.
4945         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
4946         libhurduser-link.so-no-z-defs): New variables.
4948         * malloc/malloc.c: Revert last change.
4949         * malloc/malloc.h (_int_*): Move these decls to ...
4950         * include/malloc.h: ... here.  Add attribute_hidden.
4951         (_int_valloc): Declare it too.
4953 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4955         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
4956         search for removed searchlist.  Reported by Roland McGrath.
4958         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
4959         given as start file.
4961         * io/ftw.c (ftw_startup): Use correct name in check for symlink
4962         without existing target.  Patch by Jim Meyering.
4964         * Makerules (build-shlib-helper): Don't use -z defs linker option
4965         if no-z-defs is defined either.
4967 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4969         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
4970         file.
4972 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4974         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
4975         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4977 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4979         * io/ftwtest-sh: Add test case for relative path with /. at the end.
4981 2003-01-12  Jim Meyering  <jim@meyering.net>
4983         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
4984         use the basename if we've already chdir'd into its parent directory.
4986 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4988         * io/ftw.c (process_entry): Use relative path when using chdir()
4989         to change directory after call to ftw_dir.
4990         * io/ftwtest-sh: Add test for relative path argument to nftw()
4991         with FTW_CHDIR option.
4993 2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4995         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4996         Define for powerpc.
4997         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
4998         into account.
4999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5000         (INTERNAL_SYSCALL): Make use of ERR parameter.
5001         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5002         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5003         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
5006 2002-01-09  Richard Henderson  <rth@redhat.com>
5008         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
5009         DTPREL64 and TPREL64 without loadbase applied.
5011 2002-01-09  Richard Henderson  <rth@redhat.com>
5013         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
5014         for NOT_IN_libc.
5016         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
5017         * sysdeps/unix/alpha/sysdep.h: ... here.
5018         (PSEUDO_LOADGP): Remove.
5019         (PSEUDO_PROLOGUE): Load GP in non-pic case.
5020         (SYSCALL_ERROR_LABEL): New.
5021         (PSEUDO): Use it in error branch.
5022         (PSEUDO_END): Add $syscall_error label.
5024 2003-01-12  Andreas Jaeger  <aj@suse.de>
5026         * math/bits/mathcalls.h: Round is a const function.
5028 2003-01-11  Jim Meyering  <jim@meyering.net>
5030         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
5031         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
5032         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
5033         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
5034         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
5035         [!_LIBC] (internal_function, dirent64, MAX): Define.
5036         (__set_errno): Define if not already defined.
5037         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
5038         the basename, not the entire file name.
5039         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
5040         the basename, not the entire file name.
5042 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
5044         * string/tester.c (test_strcpy): Disable last added strcpy until
5045         it is fixed.
5047 2003-01-11  Philip Blundell  <philb@gnu.org>
5049         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
5051 2003-01-11  Andreas Schwab  <schwab@suse.de>
5053         * Makerules: Add vpath for %.dynsym and %.so so that the
5054         implicit rule chaining for check-abi works.
5056 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5058         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5059         Add non-PIC case.
5061 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
5063         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
5064         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
5065         gp is used early.
5066         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
5067         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
5068         Ensure libc.so in DT_NEEDED.
5069         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
5070         CHECK_STATIC_TLS before l_tls_offset use.
5071         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
5072         Likewise.
5073         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5074         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
5075         Allocate TLS_PRE_TCB_SIZE bytes below result.
5076         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
5077         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
5078         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
5079         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
5080         bytes below result and add tcb_offset to memsz.
5081         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
5082         * sysdeps/ia64/dl-machine.h: Include tls.h.
5083         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
5084         too.
5085         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
5086         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
5087         * sysdeps/ia64/libc-tls.c: New file.
5089 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
5091         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
5092         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
5093         Fix type.  Move definition out of #if.
5094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
5095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
5096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
5097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
5098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
5099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
5100         support.
5101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
5102         ftruncate64, pread64, pwrite64, truncate64 entries.
5103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5104         (INLINE_SYSCALL): New version that supports function call like
5105         syscalls.  Add __builtin_expect.
5106         (LOADARGS_n): Add argument size safety checks.
5107         (INTERNAL_SYSCALL): New Macro.
5108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
5109         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
5110         redefinition of elf_fpreg_t and elf_fpregset_t.
5112 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
5114         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
5115         simplify test for unloading.  If loader of a DSO is unloaded do not
5116         use its scope anymore.  Fall back to own scope and adjust opencounts.
5117         Fix several comments.
5118         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
5119         the l_searchlist, not only for l_initfini.
5121         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
5122         dependencies if objects cannot be removed.  Remove object with the
5123         definition as not unloadable if necessary.
5125         * elf/reldep6.c: Create relocation dependency before closing the first
5126         module.
5128 2003-01-10  Guido Günther  <agx@sigxcpu.org>
5130         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
5131         * sysdeps/unix/mips/brk.S: Likewise.
5132         * sysdeps/unix/mips/pipe.S: Likewise.
5134 2003-01-10  Andreas Schwab  <schwab@suse.de>
5136         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
5138         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
5139         are known to have the vfork syscall.
5141         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
5143         * sysdeps/unix/sysv/linux/kernel-features.h
5144         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
5145         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
5146         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
5148 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
5150         * elf/Makefile: Add rules to build and run reldep9 test.
5151         * elf/reldep9.c: New file.
5152         * elf/reldep9mod1.c: New file.
5153         * elf/reldep9mod2.c: New file.
5154         * elf/reldep9mod3.c: New file.
5156 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
5158         * elf/Makefile: Add rules to build and run nodelete2 test.
5159         * elf/nodelete2.c: New file.
5160         * elf/nodel2mod1.c: New file.
5161         * elf/nodel2mod2.c: New file.
5162         * elf/nodel2mod3.c: New file.
5164 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
5166         * posix/test-vfork.c (noop): Add __attribute_noinline__.
5167         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
5168         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
5169         defining it.
5170         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
5171         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
5172         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
5173         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
5174         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
5176 2003-01-09  Andreas Schwab  <schwab@suse.de>
5178         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
5180 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
5182         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
5183         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5184         argument.
5185         (INTERNAL_SYSCALL_DECL): Define.
5187 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
5189         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
5190         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5191         argument.
5192         (INTERNAL_SYSCALL_DECL): Define.
5193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5194         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5195         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5196         (INLINE_SYSCALL): Adjust.
5197         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5198         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5199         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5200         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5201         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
5202         add err argument to INTERNAL_SYSCALL* macros.
5203         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
5204         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
5205         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
5206         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
5207         Likewise.
5208         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
5209         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
5210         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
5212 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
5214         Unify symbols in user namespace exported by libc.so and libc.a.
5215         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
5216         argp_fmtstream_free, and argp_fmtstream_printf.
5217         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
5218         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
5219         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
5220         argp_fmtstream_point.
5221         * gmon/gmon.c: Don't define write_profiling.
5222         * libio/genops.c: Don't define _cleanup.
5224         * intl/explodename.c (_nl_find_language.c): Mark as static.
5225         * intl/loadinfo.h: Remove _nl_find_language prototype.
5227         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
5228         * libio/libioP.h: Remove declaration.
5230         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
5231         * libio/libioP.h: Remove declaration.
5233         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
5234         * sysdeps/generic/framestate.c: Define STATIC before including
5235         unwind-dw2.c.
5237         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
5239 2003-01-06  Philip Blundell  <philb@gnu.org>
5241         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
5242         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
5244         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
5245         directive.
5246         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
5247         (SYSCALL_ERROR): New.
5248         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
5249         handling code.
5250         (INTERNAL_SYSCALL): Define.
5251         (INLINE_SYSCALL): Use it.
5252         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5253         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
5254         SYSCALL_ERROR in place of __syscall_error.
5256 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
5258         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5259         __bswap_32, __bswap_64): Put x into temporary variable
5260         to avoid warnings.
5261         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5262         (inline) functions.
5263         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5264         __bswap_32, __bswap_64): Put x into temporary variable
5265         to avoid warnings.
5266         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5267         (inline) functions.
5268         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
5269         Likewise.
5271 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
5273         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
5274         alias.
5276 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
5278         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
5279         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
5281 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
5283         * math/libm-test.inc (significand_test): New function.
5284         (main): Call it.
5286 2003-01-06  Roland McGrath  <roland@redhat.com>
5288         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
5289         arguments.
5290         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
5291         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
5292         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
5294         * string/tester.c (test_strcpy): Add test with `void *' arguments.
5296 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
5298         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
5299         return significand and not the exponent.
5300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5302         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
5303         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
5305         * malloc/malloc.c: Mark all _int_* functions as static.
5307 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
5309         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
5310         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
5311         handling.
5312         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5314 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5316         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
5317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
5318         support.
5319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
5320         ftruncate64, truncate64, pread64 and pwrite64 entries.
5321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5322         (INLINE_SYSCALL): Add __builtin_expect.
5323         (LOADARGS_n): Add argument size safety checks.
5324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
5325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
5326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
5327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
5328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
5329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
5331 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
5333         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
5334         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
5335         (LIBC_CANCEL_HANDLED): Add.
5337         * sysdeps/unix/sysv/linux/alpha/sysdep.h
5338         (inline_syscall_r0_constraint): Rename to...
5339         (inline_syscall_r0_out_constraint): ... this.  Add =.
5340         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
5342 2003-01-06  Andreas Schwab  <schwab@suse.de>
5344         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
5345         sure this is always inlined.
5346         (elf_machine_rela): Likewise.
5348         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
5350 2003-01-04  Roland McGrath  <roland@redhat.com>
5352         * Makeconfig (+mkdep): Add -MP flag.
5353         Suggested by Art Haas <ahaas@airmail.net>.
5355 2003-01-05  Andreas Schwab  <schwab@suse.de>
5357         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
5359 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5361         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
5362         SYSCALL_ERROR_HANDLER.
5363         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
5364         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
5365         Add support for cancellation handling.
5366         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
5367         SYSCALL_ERROR_HANDLER.
5368         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
5369         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
5370         Add support for cancellation handling.
5371         (SYSCALL_ERROR_HANDLER): Define PIC variants.
5373 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
5376         __syscall_pread64 and __syscall_pwrite64 cancelable.
5377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5378         (INTERNAL_SYSCALL): New macro.
5379         (LOADARGS_0, LOADARGS_1): Fix.
5381 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
5383         * Makerules (build-shlip-helper): Unless told otherwise, add
5384         -Wl,-z,defs to linker command line.
5385         * rt/Makefile (librt.so): Link with ld.so.
5386         * dlfcn/Makefile (libdl.so): Likewise.
5388 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
5390         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5391         cancellation handling.
5392         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5393         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5395 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
5397         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
5398         order of parameters passed to kill.
5400 2003-01-04  Andreas Schwab  <schwab@suse.de>
5402         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
5404 2002-01-03  Paul Eggert  <eggert@twinsun.com>
5406         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
5407         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
5408         when compiling Bison 1.875's `bitset bset = obstack_alloc
5409         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
5411 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
5413         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
5414         unnecessary code.
5415         Correct reference counter in case SIGQUIT handler installation failed.
5417 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
5419         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
5420         Define using _Pragma(weak ...).
5422 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
5424         * resolv/res_libc.c: Provide declaration for __res_init_weak and
5425         reorder declarations.
5427 2003-01-03  Art Haas  <ahaas@airmail.net>
5429         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
5430         initializer syntax to C99.
5431         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
5432         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
5433         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
5434         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
5435         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
5436         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
5437         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
5438         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
5439         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
5440         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
5441         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
5442         * localedata/tests-mbwc/dat_mblen.c: Likewise.
5443         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
5444         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
5445         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
5446         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
5447         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
5448         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
5449         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
5450         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
5451         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
5452         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
5453         * localedata/tests-mbwc/dat_towlower.c: Likewise.
5454         * localedata/tests-mbwc/dat_towupper.c: Likewise.
5455         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
5456         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
5457         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
5458         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
5459         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
5460         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
5461         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
5462         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
5463         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
5464         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
5465         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
5466         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
5467         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
5468         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
5469         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
5470         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
5471         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
5472         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
5473         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
5474         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
5475         * localedata/tests-mbwc/dat_wctob.c: Likewise.
5476         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
5477         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
5478         * localedata/tests-mbwc/dat_wctype.c: Likewise.
5479         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
5481 2003-01-03  Richard Henderson  <rth@redhat.com>
5483         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
5484         (inline_syscall_r0_constraint): New.
5485         (inline_syscall[0-6]): Use them.
5487 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
5489         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
5490         Add rtld_hidden_proto.
5491         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
5492         (_dl_allocate_tls): Likewise.  Remove INTDEF.
5494 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5496         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
5497         Morita <toshiyasu.morita@hsa.hitachi.com>.
5498         * sysdeps/sh/memcpy.S: Likewise.
5500 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
5502         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
5503         any, but unify the test.
5505 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
5507         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
5508         sigaction): Protect weak_alias and libc_hidden_weak with
5509         #ifndef LIBC_SIGACTION.
5510         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
5511         sigaction): Likewise.
5512         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
5513         sigaction): Likewise.
5514         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
5515         sigaction): Likewise.
5516         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
5517         sigaction): Likewise.
5518         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
5519         sigaction): Likewise.
5520         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
5521         sigaction): Likewise.
5522         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
5523         sigaction): Likewise.  Remove SIGCANCEL handling here.
5524         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
5525         Likewise.
5527 2003-01-02  Art Haas  <ahaas@airmail.net>
5529         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
5531 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
5533         * posix/getconf.c: Update copyright year.
5534         * nss/getent.c: Likewise.
5535         * nscd/nscd_nischeck.c: Likewise.
5536         * iconv/iconvconfig.c: Likewise.
5537         * iconv/iconv_prog.c: Likewise.
5538         * elf/ldconfig.c: Likewise.
5539         * catgets/gencat.c: Likewise.
5540         * csu/version.c: Likewise.
5541         * elf/ldd.bash.in: Likewise.
5542         * elf/sprof.c (print_version): Likewise.
5543         * locale/programs/locale.c: Likewise.
5544         * locale/programs/localedef.c: Likewise.
5545         * nscd/nscd.c (print_version): Likewise.
5546         * debug/xtrace.sh: Likewise.
5547         * malloc/memusage.sh: Likewise.
5548         * malloc/mtrace.pl: Likewise.
5550 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
5552         * io/sys/stat.h: Include time.h with __need_timespec even if
5553         __USE_MISC is defined but __USE_XOPEN is not.
5555 2003-01-01  Andreas Jaeger  <aj@suse.de>
5557         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
5558         type to avoid strict aliasing problem.
5559         (_nss_dns_gethostbyname2_r): Likewise.
5560         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5561         (_nss_dns_getnetbyname_r): Likewise.
5562         * resolv/gethnamaddr.c (_gethtent): Likewise.
5563         (gethostbyname2): Likewise.
5565 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5567         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
5568         to avoid using the exported symbols.  Define aliases with the
5569         original names separately.
5571         * include/time.h: Add libc_hidden_proto for __strftime_l.
5572         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
5573         * time/strftime.c: Always use libc_hidden_def if _LIBC.
5575         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
5576         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
5578         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
5579         tr_break.
5581         * csu/Makefile (routines): Add dso_handle.
5582         * csu/dso_handle.c: New file.
5584 2002-12-31  Roland McGrath  <roland@redhat.com>
5586         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
5587         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
5588         (S-CPPFLAGS): Add -DASSEMBLER here instead.
5589         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
5591 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5593         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
5594         is available.
5596 2002-12-31  Andreas Jaeger  <aj@suse.de>
5598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
5599         with Linux kernel.
5600         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
5601         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
5602         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
5604         * sysdeps/unix/sysv/linux/kernel_stat.h
5605         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
5607         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
5608         __unused[1-3] since they're needed by some platforms.  Handle
5609         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
5611         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
5612         for structs stat and stat64.
5613         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5614         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5615         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5616         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5618         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
5620         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
5621         nsec resolution changes.
5622         (xstat64_conv): Likewise.
5623         (xstat32_conv): Likewise.
5625         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
5626         struct kernel_stat.
5628         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
5629         structs stat and stat64.
5631         * time/time.h (__timespec_defined): Define for __USE_MISC.
5633 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5635         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
5636         and __libc_current_sigrtmax.
5638 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
5640         * include/errno.h (__errno_location): Add prototype.
5641         Use libc_hidden_proto unconditionally.
5642         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
5643         unconditionally.
5644         * include/resolv.h (__res_state): Likewise.
5646         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
5647         * include/sys/socket.h (accept): Add libc_hidden_proto.
5648         * include/errno.h (__errno_location): Likewise.
5649         * include/netdb.h (__h_errno_location): Likewise.
5650         * include/resolv.h (__res_state): Likewise.
5651         * include/unistd.h (__lseek): Likewise.
5652         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
5653         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
5654         * sysdeps/generic/res-state.c (__res_state): Likewise.
5655         * sysdeps/generic/accept.c (accept): Likewise.
5656         * sysdeps/generic/lseek.c (__lseek): Likewise.
5657         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
5658         __libc_current_sigrtmax): Likewise.
5659         * sysdeps/mach/hurd/accept.c (accept): Likewise.
5660         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
5661         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
5662         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
5663         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
5664         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
5665         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
5666         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
5667         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
5668         alias to llseek.
5669         (__GI_accept): New alias to accept.
5670         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
5671         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
5672         New alias to llseek.
5673         (__GI_accept): New alias to accept.
5674         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
5675         Likewise.
5676         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
5677         Likewise.
5678         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
5680         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
5681         strong_alias (name, __GI_name).
5682         * sysdeps/arm/bsd-_setjmp.S : Likewise.
5683         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
5684         * sysdeps/i386/bsd-_setjmp.S : Likewise.
5685         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
5686         * sysdeps/mips/bsd-_setjmp.S : Likewise.
5687         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
5688         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
5689         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
5690         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
5691         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
5692         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
5693         * sysdeps/sh/bsd-_setjmp.S : Likewise.
5694         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
5695         * sysdeps/unix/arm/fork.S : Likewise.
5696         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
5697         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
5698         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
5699         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
5700         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
5701         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
5702         * sysdeps/unix/i386/fork.S : Likewise.
5703         * sysdeps/unix/mips/fork.S : Likewise.
5704         * sysdeps/unix/sparc/fork.S : Likewise.
5705         * sysdeps/unix/sparc/vfork.S : Likewise.
5706         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
5707         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
5708         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
5709         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
5710         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
5711         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
5712         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
5713         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
5714         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
5715         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
5716         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
5717         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
5718         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
5719         * sysdeps/unix/fork.S : Likewise.
5720         * sysdeps/vax/bsd-_setjmp.S : Likewise.
5721         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
5723         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
5724         inclusion.
5726 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5728         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
5729         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
5730         * sysdeps/mach/hurd/fork.c: Likewise.
5731         * sysdeps/unix/sysv/aix/fork.c: Likewise.
5732         * sysdeps/unix/fork.S: Add __GI___fork alias.
5733         * sysdeps/unix/arm/fork.S: Likewise.
5734         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
5735         * sysdeps/unix/i386/fork.S: Likewise.
5736         * sysdeps/unix/mips/fork.S: Likewise.
5737         * sysdeps/unix/sparc/fork.S: Likewise.
5738         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5739         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
5740         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5741         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
5742         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
5743         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
5744         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
5745         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5746         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
5747         * sysdeps/unix/sparc/vfork.S: Likewise.
5748         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
5749         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
5750         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5751         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
5752         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
5753         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
5754         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
5755         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5757         * include/time.h: Add libc_hidden_proto for __nanosleep.
5758         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
5759         * sysdeps/mach/nanosleep.c: Likewise.
5760         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
5761         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
5763         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
5764         _IO_list_unlock, and _IO_list_resetlock.
5765         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
5766         _IO_list_unlock, and _IO_list_resetlock.
5768         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
5769         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5770         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
5771         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5773         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
5774         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
5775         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
5776         __GI___longjmp alias.
5778         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
5779         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
5780         * sysdeps/arm/bsd-_setjmp.S: Likewise.
5781         * sysdeps/generic/bsd-_setjmp.c: Likewise.
5782         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
5783         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5784         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5785         * sysdeps/mips/bsd-_setjmp.S: Likewise.
5786         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5787         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5788         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5789         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
5790         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
5791         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
5792         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
5793         * sysdeps/sh/bsd-_setjmp.S: Likewise.
5794         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5795         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5796         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5797         * sysdeps/vax/bsd-_setjmp.S: Likewise.
5798         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
5800 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
5802         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
5804 2002-12-30  Roland McGrath  <roland@redhat.com>
5806         * Rules (generated): Target removed.
5807         * mach/Makefile (generated): Define it here instead.
5809         * math/Makefile (generated): Add m_*l and m_*f variants too.
5811 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
5813         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
5814         the to-be-deleted objects right away instead of later separately.
5815         The latter fails because the scope data structures of the DSO
5816         might already be gone.
5818         * elf/Makefile: Add rules to build and run reldep8 test.
5819         * elf/reldep8.c: New file.
5820         * elf/reldep8mod1.c: New file.
5821         * elf/reldep8mod2.c: New file.
5822         * elf/reldep8mod3.c: New file.
5823         Contributed by Jakub Jelinek.
5825 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
5827         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5828         checking of return value ENOSYS from getdents64.
5830 2002-12-28  Andreas Schwab  <schwab@suse.de>
5832         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
5833         ($(common-objpfx)s-%.d): Generalized from
5834         $(common-objpfx)s-proto.d rule.
5835         (common-generated): Add s-proto-cancel.d.
5836         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
5837         cancellable syscalls.
5838         * sysdeps/unix/s-proto-cancel.S: New file.
5840 2002-12-29  Roland McGrath  <roland@redhat.com>
5842         * resolv/res_libc.c: Move _res defn magic after res_init defn
5843         so _res macro is in effect for that code.
5845         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
5846         pattern for prepending $(..) so it doesn't affect $(foo).
5848         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
5850 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
5852         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
5853         in hwcap.
5855 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
5857         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
5859 2002-12-28  Andreas Jaeger  <aj@suse.de>
5861         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
5862         avoid warning.
5863         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
5865 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5867         * inet/herrno.c (__h_errno_location): Remove.
5868         * inet/Makefile (routines): Add herrno-loc.
5869         * resolv/res_libc.c (__res_state): Remove.
5870         * resolv/Makefile (routines): Add res-state.
5871         * sysdeps/generic/herrno-loc.c: New file.
5872         * sysdeps/generic/res-state.c: New file.
5874 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5876         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5877         Only define if USE_DL_SYSINFO is defined.
5879 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
5881         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
5882         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
5883         Define. Patch by Richard Henderson and Jes Sorensen.
5884         (PSEUDO): Remove unnecessary ;;.
5885         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
5886         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
5887         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
5888         if not initializing thread pointer.
5889         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
5890         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
5891         make it weak also if NONTLS_INIT_TP.
5892         * sysdeps/unix/common/pause.c: Handle cancellation.
5893         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
5894         (LOADSYSCALL): Remove.
5895         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5896         (SYSCALL_ERROR_HANDLER): Use it.
5897         (PSEUDO): Don't jump around error handler.
5898         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
5899         jump around error handler.
5900         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
5901         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
5902         to __syscall_error_handler on failure.
5903         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
5904         (LOADSYSCALL): Remove.
5905         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5906         (SYSCALL_ERROR_HANDLER): Use it.
5907         (PSEUDO): Don't jump around error handler.
5908         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
5909         jump around error handler.
5910         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
5911         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
5912         to __syscall_error_handler on failure.
5914 2002-12-27  Roland McGrath  <roland@redhat.com>
5916         * scripts/gen-as-const.awk: New file.
5917         * Makefile (distribute): Add it.
5918         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
5919         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
5920         to the list.
5921         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
5923 2002-12-27  Andreas Schwab  <schwab@suse.de>
5925         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
5927 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5929         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
5930         _environ is NULL.
5932 2002-12-27  Andreas Schwab  <schwab@suse.de>
5934         * Makerules ($(common-objpfx)%.make): Filter through
5935         $(sed-remove-objpfx).
5937 2002-12-23  Roland McGrath  <roland@redhat.com>
5939         * scripts/abilist.awk: Produce a more compact format, divided into
5940         stanzas for each version set, the set name listed only once.
5941         * scripts/extract-abilist.awk: New file.
5942         * scripts/merge-abilist.awk: New file.
5943         * Makerules (check-abi-%, update-abi-%): New pattern rules.
5944         (update-abi, check-abi): New targets.
5945         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
5947 2002-12-19  Roland McGrath  <roland@redhat.com>
5949         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
5951         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
5952         INTERNAL_SYSCALL.
5954 2002-12-21  Andreas Schwab  <schwab@suse.de>
5956         * elf/check-textrel.c (handle_file): Swap p_type.
5958 2002-12-21  Andreas Schwab  <schwab@suse.de>
5960         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
5961         (INLINE_SYSCALL): Use it.
5962         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5963         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5965         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
5966         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5968 2002-12-20  Art Haas  <ahaas@airmail.net>
5970         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
5971         syntax to C99.
5973 2002-12-21  Philip Blundell  <philb@gnu.org>
5975         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
5976         top as seventh arg to __libc_start_main.
5977         Reported by paulnash@wildseed.com.
5979         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
5981         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
5982         compatibility cruft when new enough kernel is assumed.
5984 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
5986         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
5987         instead of INLINE_SYSCALL.
5989 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
5991         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
5992         typo.
5994         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
5995         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5996         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
5997         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5998         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5999         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6000         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6001         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6002         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6003         Patch by William Lee Irwin <wli@holomorphy.com>.
6005 2002-12-20  Andreas Schwab  <schwab@suse.de>
6007         * locale/programs/ld-measurement.c (measurement_output): Fix
6008         index calculation.
6010 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
6012         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
6013         Redefine _IO_flockifle and _IO_funlockfile as inlines.
6015         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
6016         builds add "tls" in the search path.
6017         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
6018         (path_hwcap): Recognize "tls".
6020 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
6022         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
6023         __waitpid instead of waitpid.
6025         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
6026         int $0x80.
6027         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
6028         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
6029         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
6031         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
6032         information for system calls.
6034         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
6035         for ld.so.
6037         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
6039 2002-12-19  Roland McGrath  <roland@redhat.com>
6041         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
6042         * iconvdata/ibm922.h: Likewise.
6043         * iconvdata/ibm930.h: Likewise.
6044         * iconvdata/ibm932.h: Likewise.
6045         * iconvdata/ibm933.h: Likewise.
6046         * iconvdata/ibm935.h: Likewise.
6047         * iconvdata/ibm937.h: Likewise.
6048         * iconvdata/ibm939.h: Likewise.
6049         * iconvdata/ibm943.h: Likewise.
6050         * iconvdata/isiri-3342.h: Likewise.
6052 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
6054         * test-skeleton.c (main): Make sure correct value is seen as
6055         argv[0] after adjustment of argv, and argc.
6057         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
6058         RTLD_CORRECT_DYNAMIC_WEAK is defined.
6060 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
6062         * nscd/connections.c (nscd_run): Shut up warning.
6063         * tst-ungetc.c (assert): Undefined before redefining.
6065 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
6067         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
6068         is used.
6070 2002-12-17  Art Haas  <ahaas@airmail.net>
6072         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
6073         * iconvdata/cp775.h: Likewise.
6074         * iconvdata/ibm1046.h: Likewise.
6075         * iconvdata/ibm1124.h: Likewise.
6076         * iconvdata/ibm1129.h: Likewise.
6077         * iconvdata/ibm1132.h: Likewise.
6078         * iconvdata/ibm1133.h: Likewise.
6079         * iconvdata/ibm1160.h: Likewise.
6080         * iconvdata/ibm1161.h: Likewise.
6081         * iconvdata/ibm1162.h: Likewise.
6082         * iconvdata/ibm1163.h: Likewise.
6083         * iconvdata/ibm1164.h: Likewise.
6085 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
6087         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
6088         __ASSUME_CLONE_THREAD_FLAGS is defined.
6089         * sysdeps/unix/sysv/linux/kernel-features.h
6090         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
6092 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
6094         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
6095         of asm.
6096         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6098         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
6099         _dl_sysinfo.
6100         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6101         code.
6102         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
6103         _rtld_global.
6104         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6105         code.
6106         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6107         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
6108         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
6109         Add _dl_sysinfo.
6111 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
6113         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
6114         __libc_writev to...
6115         [libc: GLIBC_PRIVATE]: ...here.
6116         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
6117         __libc_msgsnd to...
6118         [libc: GLIBC_PRIVATE]: ...here.
6120 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
6122         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
6123         Use it instead of directly int $0x80.
6124         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
6125         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6126         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6127         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6128         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6129         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
6131 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
6133         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
6135         * elf/elf.h (AT_SYSINFO): New define.
6136         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
6137         AT_SYSINFO.
6139 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
6141         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
6142         Make cancelable.
6143         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
6144         Likewise.
6145         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
6146         Likewise.
6147         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
6148         Likewise.
6149         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
6150         Likewise.
6151         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
6153         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
6154         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
6155         available, otherwise __libc_maybe_call.
6156         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
6157         cancellation handling.
6158         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
6160 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
6162         * posix/regcomp.c (free_workarea_compile): Free the new member
6163         ORG_INDICES.
6164         (analyze): Initialize ORG_INDICES.
6165         (duplicate_node_closure): Search for a existing node, which is
6166         duplicated from the node ORG_DEST and satisfies the constraint
6167         CONSTRAINT.  And use it to avoid inifimite loop.
6168         (search_duplicated_node): New function.
6169         (duplicate_node): Store the index of the original node.
6170         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
6171         if needed.
6172         * posix/regex_internal.h (re_dfa_t): Add new members.
6174 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
6176         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
6178 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
6180         * sysdeps/posix/system.c (do_system): Add support for installation
6181         of cancellation handlers.
6182         * sysdeps/unix/sysv/linux/i386/system.c: New file.
6184         * stdlib/Makefile (tests): Add tst-system.
6185         * stdlib/tst-system.c: New file.
6187         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
6188         CENABLE]: Don't lose content of %ebx.
6190 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
6192         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
6193         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
6195 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
6197         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
6198         fails to return a function pointer don't use it.
6200 2002-12-16  Art Haas  <ahaas@airmail.net>
6202         * io/ftw.c: Convert GCC extension initializer syntax to C99.
6203         * iconvdata/iso-ir-165.c: Likewise.
6204         * iconvdata/jis0208.c: Likewise.
6205         * iconvdata/jis0212.c: Likewise.
6207 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
6209         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
6210         epoll_ctl, and epoll_wait.
6211         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
6212         epoll_create, epoll_ctl, and epoll_wait.
6213         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
6214         Davide Libenzi <davidel@xmailserver.org>.
6215         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
6216         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6217         Add sys/epoll.h.
6219 2002-12-16  Art Haas  <ahaas@airmail.net>
6221         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
6222         syntax to C99
6223         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
6224         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
6225         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
6227 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
6229         * stdio-common/Makefile (routines): Remove lockfile.  Add
6230         flockfile, ftrylockfile, and funlockfile.
6231         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
6232         * sysdeps/generic/flockfile.c: New file.
6233         * sysdeps/generic/ftrylockfile.c: New file.
6234         * sysdeps/generic/funlockfile.c: New file.
6236 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
6238         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
6239         macros instead of doing the calls directly.
6240         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
6241         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
6242         targets.
6244 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
6246         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
6247         * sysdeps/ieee754/bits/nan.h: Likewise.
6249         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
6250         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
6252 2002-12-16  Roland McGrath  <roland@redhat.com>
6254         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
6255         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
6256         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
6258         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
6259         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
6260         s_putpmsg.
6261         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
6262         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
6263         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
6264         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
6265         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
6266         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
6267         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
6268         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
6270 2002-12-13  Paul Eggert  <eggert@twinsun.com>
6272         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
6273         is now u_int, not int.
6274         (struct XDR.x_handy): Now u_int, not int.
6275         * sunrpc/xdr_mem.c: Include <limits.h>.
6276         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
6277         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
6278         x_handy is now unsigned, not signed.
6279         Do not decrement x_handy if no change is made.
6280         (xdrmem_setpos): Check for int overflow.
6281         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
6282         (xdr_sizeof): Remove cast that is now unnecessary, now that
6283         x_handy is unsigned.
6285 2002-12-15  Art Haas  <ahaas@airmail.net>
6287         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
6288         * iconvdata/gap.awk: Likewise.
6289         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6290         * iconvdata/gen-8bit-gap.sh: Likewise.
6291         * locale/C-address.c: Likewise.
6292         * locale/C-collate.c: Likewise.
6293         * locale/C-ctype.c: Likewise.
6294         * locale/C-identification.c: Likewise.
6295         * locale/C-measurement.c: Likewise.
6296         * locale/C-messages.c: Likewise.
6297         * locale/C-monetary.c: Likewise.
6298         * locale/C-name.c: Likewise.
6299         * locale/C-numeric.c: Likewise.
6300         * locale/C-paper.c: Likewise.
6301         * locale/C-telephone.c: Likewise.
6302         * locale/C-time.c: Likewise.
6303         * nscd/connections.c: Likewise.
6304         * nscd/grpcache.c: Likewise.
6305         * nscd/hstcache.c: Likewise.
6306         * nscd/pwdcache.c: Likewise.
6307         * stdio-common/vfprintf.c: Likewise.
6308         * stdlib/random.c: Likewise.
6309         * sysdeps/generic/siglist.c: Likewise.
6310         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6311         * sysdeps/ieee754/bits/nan.h: Likewise.
6312         * sysdeps/posix/sprofil.c: Likewise.
6313         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6314         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6315         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6317 2002-12-15  Roland McGrath  <roland@redhat.com>
6319         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
6321         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
6322         <tls.h> here, no need for it.
6323         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6325         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
6326         parameter, not varargs parameter.
6328         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
6329         argument so it's not an unused variable.
6331         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
6332         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
6333         for users.
6335         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
6337 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
6339         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
6340         original __libc_fcntl code.  Just renamed.
6342 2002-12-15  Andreas Schwab  <schwab@suse.de>
6344         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
6346 2002-12-14  Olaf Hering  <olh@suse.de>
6348         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
6349         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
6351 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
6353         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
6355         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
6356         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
6358         * sysdeps/unix/sysv/linux/open64.c: New file.
6360         * sysdeps/generic/pselect.c: Add support for cancellation handling.
6361         * sysdeps/posix/open64.c: Likewise.
6362         * sysdeps/posix/sigpause.c: Likewise.
6363         * sysdeps/posix/sigwait.c: Likewise.
6364         * sysdeps/posix/system.c: Likewise.
6365         * sysdeps/posix/waitid.c: Likewise.
6366         * sysdeps/unix/sysv/linux/accept.S: Likewise.
6367         * sysdeps/unix/sysv/linux/connect.S: Likewise.
6368         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6369         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6370         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
6371         * sysdeps/unix/sysv/linux/poll.c: Likewise.
6372         * sysdeps/unix/sysv/linux/pread.c: Likewise.
6373         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6374         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6375         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6376         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6377         * sysdeps/unix/sysv/linux/recv.S: Likewise.
6378         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
6379         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
6380         * sysdeps/unix/sysv/linux/send.S: Likewise.
6381         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
6382         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
6383         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6384         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6385         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6386         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6387         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
6388         * sysdeps/unix/sysv/linux/wait.c: Likewise.
6389         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6390         * sysdeps/unix/sysv/linux/writev.c: Likewise.
6391         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6392         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6394 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
6396         * sysdeps/generic/sysdep-cancel.h: New file.
6397         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
6398         cancelable syscall.
6399         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
6400         recvmsg, send, sendmsg, sendto): Make cancelable.
6401         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
6402         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
6403         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6404         sendto, osf_select): Likewise.
6405         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
6406         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6407         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
6408         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6409         sendto): Likewise.
6410         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
6411         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6412         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
6413         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6414         sendto): Likewise.
6415         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
6416         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6417         sendto, select): Likewise.
6418         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
6419         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
6420         Likewise.
6421         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
6422         select, fcntl): Likewise.
6423         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
6424         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
6425         read, readv, select, sigsuspend, write, writev): Likewise.
6427 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
6429         * dirent/bug-readdir1.c: Include unistd.h.
6431 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
6433         * locale/programs/locale.c: Include locarchive.h.
6434         (ARCHIVE_NAME): Define.
6435         (write_archive_locales): New function.
6436         (write_locales): Use it.  Ensure the same locale is not printed
6437         multiple times in verbose mode.
6438         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
6439         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
6440         functions.
6441         (struct nameent): New type.
6442         (nameentcmp): New function.
6444 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
6446         * posix/regex_internal.c (re_string_context_at): Guard wide char
6447         code with #ifdef RE_ENABLE_I18N.
6449 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
6451         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
6453 2002-12-13  Roland McGrath  <roland@redhat.com>
6455         * posix/bug-regex15.c: New file.
6456         * posix/Makefile (tests): Add it.
6458         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
6459         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
6461 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
6463         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
6465         * misc/syslog.c (log_cleanup): Don't use parameter in
6466         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
6467         pass NULL instead of a pointer to syslog_lock.
6469 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
6471         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
6472         linker map for all iconv modules.
6473         (distribute): Add gconv.map.
6474         * iconvdata/gconv.map: New file.
6476         * elf/Makefile: Also check all iconv modules for text relocations.
6478         * stdlib/Makefile: Remove code to automatically import GMP.
6480         * elf/Makefile (tests): Add rules to build and run check-textrel.
6481         * elf/check-textrel.c: New file.
6483         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
6484         directive.
6486 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
6488         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
6489         not st.st[am]time.
6491 2002-04-30  Bruno Haible  <bruno@clisp.org>
6493         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
6494         the encoding if it already has slashes.
6495         Reported by Perry Rapp <prapp@erols.com>.
6497 2002-12-11  Roland McGrath  <roland@redhat.com>
6499         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
6500         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
6501         Turn off PIC for compiling this file.
6503 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
6505         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
6506         definitions.  Not needed.
6507         [_LIBC]: Use definitions from libc-lock.h instead of referencing
6508         pthread routines directly.
6509         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
6510         mutex_init calls.
6511         (arena_get2): Don't look at return value of mutex_lock.
6513 2002-12-11  Roland McGrath  <roland@redhat.com>
6515         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
6516         elf-init.o instead of compiling a PIC version.
6518 2002-12-11  Bruno Haible  <bruno@clisp.org>
6520         * intl/gettext.h: Renamed to ...
6521         * intl/gmo.h: ... here.
6522         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
6523         * intl/gettextP.h: Update.
6524         * intl/loadmsgcat.c: Update.
6526         * intl/gettextP.h (PARAMS): Make more portable.
6527         (attribute_hidden): Define as empty macro if not already defined.
6528         * intl/hash-string.h (PARAMS): Make more portable.
6529         * intl/loadinfo.h (PARAMS): Likewise.
6530         * intl/plural-exp.h (PARAMS): Likewise.
6531         (attribute_hidden): Move definition near the definition of
6532         internal_function.
6534         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
6535         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
6537 2002-07-13  Bruno Haible  <bruno@clisp.org>
6539         * intl/dcigettext.c (freea): New macro.
6540         (FREE_BLOCKS): Free also the registered blocks.
6541         (DCIGETTEXT): Free the 'search' variable.
6542         Reported by Andreas Fischer <a.fischer@asentics.de>.
6544 2002-04-27  Bruno Haible  <bruno@clisp.org>
6546         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
6547         * intl/dcigettext.c: Likewise.
6548         * intl/dcgettext.c: Likewise.
6549         * intl/dgettext.c: Likewise.
6550         * intl/gettext.c: Likewise.
6551         * intl/dcngettext.c: Likewise.
6552         * intl/dngettext.c: Likewise.
6553         * intl/ngettext.c: Likewise.
6554         * intl/textdomain.c: Likewise.
6555         * intl/bindtextdom.c: Likewise.
6556         * intl/plural-exp.h: Likewise.
6558 2002-01-02  Bruno Haible  <bruno@clisp.org>
6560         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
6562 2001-04-30  Bruno Haible  <bruno@clisp.org>
6564         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
6565         default macro definitions.  Needed for mingw32.
6567 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
6569         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
6570         __builtin_constant_p to macro parameter.
6572         * sysdeps/generic/sigpause.c: Define all functions as weak.
6573         * sysdeps/posix/sigpause.c: Likewise.
6575         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
6576         type size_t.
6578 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
6580         * elf/tst-array1.c (preinit_array, init_array, fini_array):
6581         Explicitly align the array to sizeof (void *).
6582         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
6584         * include/libc-symbols.h: Fix a comment typo.
6586         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
6587         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
6588         Likewise.
6589         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
6590         Likewise.
6591         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
6592         (__libc_sigsuspend): Likewise.
6593         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
6594         (__libc_sigsuspend): Likewise.
6595         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
6596         (creat): New weak alias.
6598 2002-12-10  Roland McGrath  <roland@redhat.com>
6600         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
6601         contributes a manual chapter.
6602         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
6603         around xref to it.
6605         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
6606         and move contents to ...
6607         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
6608         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
6609         it instead of duplicating its contents.
6610         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
6612 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
6614         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
6615         defined.
6616         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
6617         function.
6618         (EXTRA_LD_ENVVARS): Use it.
6619         (DL_OSVERSION_INIT): Define.
6620         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
6621         dl-librecon.h.
6622         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
6624 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
6626         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
6628         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
6629         call.  It is not allowed to destroy pthread mutexes which are
6630         still in use even though it is safe for our implementations.  If
6631         somebody still uses the descriptor it is a bug.
6633 2002-12-09  Richard Henderson  <rth@redhat.com>
6635         * csu/abi-note.S: Use .p2align, not .align.
6637 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
6639         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
6640         __libc_select aliases.
6642         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
6643         alias.
6645         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
6647         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
6649         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
6651         * sysdeps/unix/syscalls.list: Define __libc_select alias.
6653         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
6655         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
6656         __libc___xpg_sigpause aliases.
6658         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
6660         * misc/error.c: Remove use of USE_IN_LIBIO.
6662 2002-12-08  Roland McGrath  <roland@redhat.com>
6664         * elf/Makefile (tests): Uncomment tst-array[123].
6665         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
6666         * csu/elf-init.c: New file.
6667         * csu/Makefile (routines, static-only-routines): Add elf-init.
6668         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
6669         and __libc_csu_fini in place of _fini.
6670         * sysdeps/arm/elf/start.S: Likewise.
6671         * sysdeps/cris/elf/start.S: Likewise.
6672         * sysdeps/hppa/elf/start.S: Likewise.
6673         * sysdeps/i386/elf/start.S: Likewise.
6674         * sysdeps/ia64/elf/start.S: Likewise.
6675         * sysdeps/m68k/elf/start.S: Likewise.
6676         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
6677         * sysdeps/mips/elf/start.S: Likewise.
6678         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6679         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
6680         * sysdeps/s390/s390-32/elf/start.S: Likewise.
6681         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6682         * sysdeps/sh/elf/start.S: Likewise.
6683         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6684         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6685         * sysdeps/x86_64/elf/start.S: Likewise.
6687         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
6688         struct containing function ptr and value, free it.
6689         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
6690         It's not safe to let the new thread use the SIGEV pointer.
6692 2001-10-20  Paul Eggert  <eggert@twinsun.com>
6694         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
6695         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
6696         Use strerror_r that is only a macro, even if it is not a function.
6697         (strerror): Check for HAVE_DECL_STRERROR before declaring.
6698         (private_strerror): Use prototypes, not old-style function definition.
6699         (print_errno_message): New function.
6700         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
6701         char*-flavored one.
6702         (error_tail, error, error_at_line): Use it.
6704 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
6706         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
6708 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
6710         * scripts/output-format.sed: Fix bug in one of the s expressions
6711         which used / for one too many things.
6713         * include/unistd.h: Declare __libc_close.
6715 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
6717         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
6719 2002-12-07  Roland McGrath  <roland@redhat.com>
6721         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
6722         from 2002-12-06, but remove unnecessary memset call without removing
6723         necessary copy of initialization image.
6725         * Makerules ($(common-objpfx)format.lds): New target.
6726         (common-generated): Add it.
6727         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
6728         * scripts/output-format.sed: New file.
6729         * Makefile (distribute): Add it.
6731 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
6733         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
6734         Reported by Art Haas <ahaas@airmail.net>.
6736 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
6738         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
6740 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
6742         * string/test-strncpy.c (do_random_tests): Improve test coverage.
6744 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6746         * test-skeleton.c (timeout_handler): Allow expected signal to be
6747         SIGALRM.
6749         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
6751         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
6753 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
6755         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
6756         (SYSCALL_ERROR_HANDLER): Fix a pasto.
6757         Reported by Jeff Bailey <jbailey@nisa.net>.
6759 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6761         * sysdeps/generic/libc-tls.c: Undo last patch.
6763         * include/wctype.h: Define iswalnum with libc_hidden_proto.
6765         * include/signal.h: Define raise with libc_hidden_proto.
6767         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
6768         __execve instead of snprintf and execve.
6770         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
6771         again a bit.
6773 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
6775         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
6776         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
6778 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6780         * misc/syslog.c (log_cleanup): New function.
6781         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
6782         (closelog): Likewise.
6784         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
6785         * elf/dl-iteratephdr.c: Likewise.
6786         * elf/dl-lookup.c: Likewise.
6787         * elf/dl-misc.c: Likewise.
6788         * elf/dl-open.c: Likewise.
6789         * elf/dl-support.c: Likewise.
6790         * elf/rtld.c: Likewise.
6791         * sysdeps/generic/ldsodefs.h: Likewise.
6792         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
6793         * sysdeps/mach/bits/libc-lock.h: Likewise.
6794         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6796 2002-12-06  Roland McGrath  <roland@redhat.com>
6798         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
6800         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
6801         (malloc_starter, memalign_starter, free_starter): Don't define these.
6802         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
6803         Don't declare them either.
6804         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
6805         __pthread_initialize, so no need to set hooks to *_starter.
6806         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
6807         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
6808         (__libc_malloc_pthread_startup): New function.
6809         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
6811         * malloc/hooks.c (memalign_starter): New function.
6812         * malloc/malloc.c: Declare it.
6813         * malloc/arena.c (save_memalign_hook): New variable.
6814         (ptmalloc_init): Set __memalign_hook to memalign_starter.
6816         * elf/dl-minimal.c (free): Clear the memory.
6817         (calloc): Just call malloc, knowing all memory it returns is cleared.
6819         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
6820         malloc and memset; calloc can avoid the zeroing when redundant.
6821         (_dl_tls_setup): Likewise.
6822         * elf/dl-load.c (decompose_rpath): Likewise.
6823         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
6824         call, since memory from sbrk at startup is already zero.
6826         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
6827         error string for failure, null for success.  Update callers.
6828         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
6829         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6831 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
6833         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
6834         args to i:iipi.
6835         (readahead): Change args to i:iii.
6836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
6837         Change args to i:iii.
6838         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
6839         args to i:iiii.
6841 2002-12-05  Roland McGrath  <roland@redhat.com>
6843         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
6844         call all functions rather than none.
6845         Reported by Mark P. Mitchell <mark@codesourcery.com>.
6847 2002-12-04  Roland McGrath  <roland@redhat.com>
6849         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
6850         on _nl_current_LC_* variables.
6852 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
6854         * dirent/bug-readdir1.c (main): Don't call closedir, just close
6855         the file descriptor.  This is testing what the bug report was about.
6857 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
6859         * po/be.po: New file.
6861         * argp/Makefile (tests): Add tst-argp1.
6863         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
6864         Change type of _attribute to void*.
6865         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6866         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6867         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
6868         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6869         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6871 2002-12-04  Roland McGrath  <roland@redhat.com>
6873         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
6874         members to the end, so a libpthread compiled with !USE_TLS will still
6875         find other members properly.
6877         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
6878         operand for DEST memory.  Fix dummy input operand to use SRC.
6879         Reported by Davin McCall <davmac@ozonline.com.au>.
6881         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
6882         alignment when initializing the DTV entry.
6884         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
6885         when TLS has not been set up, try to set it up if we can.
6886         * elf/tst-tls4.c: Revert last change.
6887         * elf/tst-tls5.c: Likewise.
6888         * elf/tst-tls6.c: Likewise.
6889         * elf/tst-tls7.c: Likewise.
6890         * elf/tst-tls8.c: Likewise.
6891         * elf/tst-tls9.c: Likewise.
6893         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
6894         * sysdeps/generic/ldsodefs.h: Declare it.
6895         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6896         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
6897         function, broken out of __libc_setup_tls.
6898         (init_static_tls): Likewise.
6899         (__libc_setup_tls): Call them.
6900         (_dl_tls_setup): New function, uses new subroutines.
6902         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
6903         Clear the pointer when returning true.
6904         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
6905         first element of the slotinfo list too.
6907         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
6908         [SHARED].
6910         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
6911         (_dl_determine_tlsoffset): Likewise.
6913         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
6914         startup_error_tsd, made global.
6915         (dl_main): Update initialization.
6916         * elf/dl-tsd.c: Likewise.
6917         * sysdeps/generic/ldsodefs.h: Declare it.
6919 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
6921         * manual/texinfo.tex: Update from latest upstream version.
6923 2002-12-03  Roland McGrath  <roland@redhat.com>
6925         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
6926         area surplus in calculation for sbrk call.
6928         * iconvdata/cp1125.c: New file.
6929         * iconvdata/Makefile (distribute): Add it.
6930         (modules): Add CP1125.
6931         (gen-8bit-gap-modules): Add cp1125.
6932         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
6933         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
6935 2002-12-03  Andreas Jaeger  <aj@suse.de>
6937         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6939 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
6941         * sysdeps/posix/system.c (do_system): Make signal handler
6942         installation thread safe.
6944 2002-12-02  Roland McGrath  <roland@redhat.com>
6946         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
6947         caller from EXTRA to -.
6948         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6949         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6950         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6952 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
6954         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
6955         bits of RM are cleared.
6957 2002-12-02  Roland McGrath  <roland@redhat.com>
6959         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
6960         TLS setup is required.
6961         * elf/tst-tls5.c: Likewise.
6962         * elf/tst-tls6.c: Likewise.
6963         * elf/tst-tls7.c: Likewise.
6964         * elf/tst-tls8.c: Likewise.
6965         * elf/tst-tls9.c: Likewise.
6967         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
6968         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
6969         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
6970         for being null before calling free_slotinfo.
6971         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
6972         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
6974 2002-11-30  Bruno Haible  <bruno@clisp.org>
6976         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
6977         (struct __gconv_step): New field __btowc_fct.
6978         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
6979         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
6980         __BUILTIN_TRANS.
6981         (__gconv_btwoc_ascii): New declaration.
6982         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6983         (__gconv_btwoc_ascii): New function.
6984         * iconv/gconv_builtin.h: Add BtowcFct argument to all
6985         BUILTIN_TRANSFORMATION invocations.
6986         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6987         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
6988         * iconv/gconv_builtin.c (map): New field btowc_fct.
6989         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
6990         btowc_fct field.
6991         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
6992         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
6993         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
6994         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
6995         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
6996         (gconv_init): Initialize __btowc_fct field.
6997         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
6998         * iconv/loop.c: Document ONEBYTE_BODY.
6999         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
7000         Undefine ONEBYTE_BODY at the end.
7001         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
7002         * iconvdata/8bit-gap.c (NONNUL): New macro.
7003         (BODY for FROM_LOOP): Use it.
7004         (ONEBYTE_BODY): New macro.
7005         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
7006         (NONNUL): New macro.
7007         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
7008         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
7009         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
7010         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
7011         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
7012         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
7013         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
7014         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
7015         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
7016         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
7017         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
7018         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
7019         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
7020         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
7021         * iconvdata/ibm932.c: Include <stdbool.h>.
7022         (TRUE, FALSE): Remove macros.
7023         (BODY for FROM_LOOP): Remove unused variable rp1.
7024         (ONEBYTE_BODY): New macro.
7025         (BODY for TO_LOOP): Use bool.
7026         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
7027         * iconvdata/ibm943.c: Include <stdbool.h>.
7028         (TRUE, FALSE): Remove macros.
7029         (BODY for FROM_LOOP): Remove unused variable rp1.
7030         (ONEBYTE_BODY): New macro.
7031         (BODY for TO_LOOP): Use bool.
7032         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
7033         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
7034         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
7035         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
7036         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
7037         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
7038         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
7039         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
7040         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
7041         * iconvdata/gbbig5.c: Tweak comment.
7043 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
7045         * po/fi.po: Update from translation team.
7047 2002-12-01  Roland McGrath  <roland@redhat.com>
7049         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7050         testing getdents64 return value.
7052         * scripts/versions.awk: Don't pass -n flag to sort command.
7054         * posix/bug-regex13.c: Include <string.h>.
7056         * sysdeps/generic/libc-start.c (__libc_start_main): Do
7057         DL_SYSDEP_OSCHECK here.
7058         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
7059         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
7061         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
7062         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
7064         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
7065         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
7067         * include/link.h: Comment typo fix.
7069 2002-12-01  Roland McGrath  <roland@frob.com>
7071         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
7072         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
7073         _POSIX_MEMORY_PROTECTION): Likewise.
7074         (_POSIX_POLL, _POSIX_SELECT): Removed.
7076 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
7078         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
7079         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
7081 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
7083         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
7084         USE___THREAD.
7085         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
7086         "=v" constraints.
7088 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
7090         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
7091         branch prediction buffers by using unpaired call/ret.
7093 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
7095         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
7096         first parameters constraint string.
7097         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
7099 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
7101         * posix/regcomp.c (parse_expression): Set the bit since the back
7102         reference is used in the regular expression.
7103         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
7104         of malloc failure.
7105         (re_node_set_init_copy): Likewise.
7106         * posix/regex_internal.h (state_array_t): New structure.
7107         (re_sub_match_last_t): Likewise.
7108         (re_sub_match_top_t): Likewise.
7109         (re_match_context_t): Add new members.
7110         (re_dfa_t): Likewise.
7111         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
7112         to check the matching is really correct, and retry if failed.
7113         Move the routin pruning the impossible nodes from here, ...
7114         (prune_impossible_nodes): To this function.
7115         (check_matching): Invoke check_subexp_matching_top, and replace
7116         redundant checking with transit_state_bkref invocation.
7117         (proceed_next_node): Replace strncmp with memcmp.  Reported by
7118         Paolo Bonzini  <bonzini@gnu.org>.
7119         (update_cur_sifted_state): Remove search_subexp invocation.
7120         (search_subexp): Remove this function.
7121         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
7122         optimization.
7123         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
7124         Remove unused invocation of match_ctx_add_entry.
7125         (transit_state): Invoke check_subexp_matching_top.
7126         (check_subexp_matching_top): New function.
7127         (transit_state_bkref): Remove unused array.
7128         Merge transit_state_bkref_loop.
7129         (transit_state_bkref_loop): Use get_subexp instead of
7130         sift_states_backward.  Use search_cur_bkref_entry for optimization.
7131         Merge this function to transit_state_bkref.
7132         (get_subexp): New function.
7133         (get_subexp_sub): Likewise.
7134         (find_subexp_node): Likewise.
7135         (check_arrival): Likewise.
7136         (check_arrival_expand_ecl): Likewise.
7137         (check_arrival_expand_ecl_sub): Likewise.
7138         (expand_bkref_cache): Likewise.
7139         (match_ctx_init): Initialize new members.
7140         (match_ctx_clean): New function.
7141         (match_ctx_free): Release new members.
7142         (match_ctx_free_subtops): New function.
7143         (match_ctx_add_entry): Fix indent.
7144         (search_cur_bkref_entry): New function.
7145         (match_ctx_add_subtop): Likewise.
7146         (match_ctx_add_sublast): Likewise.
7148 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
7150         * iconv/Makefile (tests): Remove tst-iconv4.c
7151         * iconv/tst-iconv4.c: Moved to...
7152         * iconvdata/tst-iconv4.c: ...here.  New file.
7153         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
7155 2002-11-25  Roland McGrath  <roland@redhat.com>
7157         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
7158         Grok AF_LINK if defined.
7159         From Momchil Velikov <velco@fadata.bg>.
7161         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
7162         brdaddr, or dstaddr, just set those pointers to null and don't fail.
7163         Reported by Momchil Velikov <velco@fadata.bg>.
7165         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
7166         is > sizeof IFR->ifa_addr, advance past the whole longer length.
7167         (__ifreq): Count up NIFS that way too.
7168         Reported by Momchil Velikov <velco@fadata.bg>.
7170         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
7172         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
7173         and <fpu_control.h>.
7175 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
7177         * elf/elf.h (EM_ST19): Fix typo.
7179 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
7181         * include/errno.h (__set_errno): Define as errno = val
7182         unconditionally.
7184 2002-11-24  Roland McGrath  <roland@redhat.com>
7186         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
7187         * sysdeps/posix/writev.c: Likewise.
7188         From Momchil Velikov <velco@fadata.bg>.
7190         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
7191         calling *GL(dl_error_catch_tsd) for a thread-local location.
7192         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
7193         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
7194         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
7196         * libio/iofflush.c: Add libc_hidden_def.
7197         * libio/iofwrite.c: Likewise.
7198         * sysdeps/generic/sigtimedwait.c: Likewise.
7199         * sysdeps/generic/sigwaitinfo.c: Likewise.
7200         * sysdeps/posix/sigwait.c: Likewise.
7201         Reported by Momchil Velikov <velco@fadata.bg>.
7203         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
7204         to match <arpa/inet.h> declaration.
7205         * inet/inet_netof.c (inet_netof): Likewise.
7206         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
7207         Reported by Momchil Velikov <velco@fadata.bg>.
7209         * configure.in: Skip AUTOCONF check under --without-cvs.
7210         * configure: Regenerated.
7212         * posix/Makefile (headers): Add bits/pthreadtypes.h.
7213         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
7214         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
7216 2002-11-24  Andreas Schwab  <schwab@suse.de>
7218         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
7219         with six arguments.
7221 2002-11-19  Jim Meyering  <jim@meyering.net>
7223         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
7224         as `static'.
7225         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
7227 2002-11-23  Roland McGrath  <roland@redhat.com>
7229         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
7230         Just produce hex output for datum sizes.
7232         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
7233         Reported by Luca Barbieri <ldb@ldb.ods.org>.
7235 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
7237         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
7238         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7239         and __unused3 fields.
7240         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
7241         [__WORDSIZE == 32]: Only PPC32 requires __unused1
7242         and __unused2 fields.
7243         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
7244         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7245         __unused3, and __unused4 fields.
7247         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
7248         obtain lowest address for profiling in __monstartup call.
7250 2002-11-21  Roland McGrath  <roland@redhat.com>
7252         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
7253         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
7255         * locale/localeinfo.h (struct locale_data): Revert last change.
7257         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
7258         From Ian Wienand <ianw@gelato.unsw.edu.au>.
7260         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
7261         __NR_pread64 if not defined.
7262         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
7263         From Ian Wienand <ianw@gelato.unsw.edu.au>.
7265 2002-11-21  Roland McGrath  <roland@frob.com>
7267         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
7268         __libc_multiple_libcs here.  Call __setfpucw.
7270 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
7272         * elf/Makefile (tests): Don't run test-arrayX tests for now.
7274         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
7275         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
7276         CLONE_CHILD_*TID flags.
7278 2002-11-20  Andreas Jaeger  <aj@suse.de>
7280         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
7281         We pass struct ucontext on x86-64.
7282         (GET_PC): Adjust.
7283         (GET_FRAME): Adjust.
7284         (GET_STACK): Adjust.
7286 2002-11-20  Roland McGrath  <roland@redhat.com>
7288         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
7289         conditionalize [! DO_VERSIONING] #error.
7291         * scripts/abilist.awk: Grok function descriptor symbols.
7293         * intl/tst-gettext.c (main): Check return values from setlocale.
7294         Add necessary unsetenv's to make LANG=existing-locale check work.
7296         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
7297         so aborted prior runs don't confuse things.
7299         * locale/localeinfo.h (struct locale_data: union locale_data_value):
7300         Use uintptr_t instead of unsigned int for `word' member.
7301         (_NL_CURRENT_WORD): Cast to uint32_t.
7303         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
7304         value.
7306 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
7308         * elf/tls-macros.h: Add IA-64 definitions.
7309         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
7311         * iconv/Makefile (tests): Add tst-iconv4.
7312         * iconv/tst-iconv4.c: New file.
7314         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
7315         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
7316         __GCONV_INCOMPLETE_INPUT.
7317         (ucs4le_internal_loop): Likewise.
7318         (ucs4le_internal_loop_unaligned): Likewise.
7319         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
7320         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
7321         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
7323         * iconv/loop.c (LOOPFCT): First test for empty input then for full
7324         output buffer.
7326         * inet/getnameinfo.c: Use extend_alloca where appropriate.
7327         * sysdeps/posix/getaddrinfo.c: Likewise.
7329         * include/alloca.h (extend_alloca): New define.  Based on stack
7330         direction it'll try to append to the previouls allocated buffer.
7332 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
7334         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
7335         use the same service for AF_INET and AF_INET6.
7337 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
7339         * intl/localealias.c (read_alias_file): Use only about 400 bytes
7340         of stack space instead of 16k.
7342 2002-11-18  Wolfram Gloger  <wg@malloc.de>
7344         * malloc/arena.c
7345         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
7346         nothing if not initialized.  Bug report from Marcus Brinkmann
7347         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7349 2002-11-19  Roland McGrath  <roland@redhat.com>
7351         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
7352         sched_setaffinity.
7354         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
7355         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
7356         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
7357         * configure: Regenerated.
7359 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
7361         * include/dlfcn.h: __libc_dlopen is now a macro calling
7362         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
7363         (__libc_dlopen_mode): New prototype.
7364         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
7365         new parameter.  Store new parameter in mode field of structure passed
7366         to do_dlopen.
7367         (struct do_dlopen_args): Add new field mode.
7368         (do_dlopen): Pass mode from parameter structure to _dl_open.
7370 2002-11-11  Randolf Chung  <tausq@debian.org>
7372         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
7373         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
7374         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
7376         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
7378         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
7379         Set -mdisable-fpregs for this file.
7381 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
7383         * sysdeps/unix/sysv/linux/configure.in:
7384         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
7385         from gcc-3.0 era for backwards compatibility.
7386         * sysdeps/unix/sysv/linux/configure: Regenerate.
7388         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
7389         Define mcontext_t as a sigcontext.
7391 2002-11-18  Roland McGrath  <roland@redhat.com>
7393         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
7394         Free memory in `last_result' if it was used.
7396         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
7397         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
7398         Do the parsing inline instead of copying strings and calling
7399         inet_network, and properly skip all alias names not matching the form.
7401         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
7403 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
7405         * manual/pattern.texi (Wordexp Example): Fix sample code.
7407         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
7408         childs stack which will be loaded into the %esi register.
7410 2002-11-14  Paul Eggert  <eggert@twinsun.com>
7412         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
7413         overflow when skipping the question part and when unpacking aliases.
7415 2002-11-15  Roland McGrath  <roland@redhat.com>
7417         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
7418         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
7419         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
7421 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
7423         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
7424         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
7426 2002-11-15  Roland McGrath  <roland@redhat.com>
7428         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
7429         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
7430         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
7431         (+make-include-of-dep): New canned sequence.
7433         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
7434         From Dmitry V. Levin <ldv@altlinux.org>.
7436 2002-11-14  Roland McGrath  <roland@redhat.com>
7438         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
7439         * inet/herrno.c (__libc_h_errno): Likewise.
7440         * resolv/res_libc.c (__libc_res): Likewise.
7441         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
7442         (__res_state) [! USE___THREAD]: Don't define as weak.
7443         * csu/Versions: Revert last change.
7444         * resolv/Versions: Revert last change.
7446         * Makerules ($(common-objpfx)%.make): New pattern rule.
7447         * tls.make.c: New file.
7448         * Makefile (distribute): Add it.
7450         * sysdeps/generic/errno.c [! USE___THREAD]
7451         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
7452         with compat_symbol so they are not link-time visible.
7453         [! USE___THREAD] (__libc_errno): New alias for errno.
7454         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7455         Add __libc_errno here.
7456         * inet/herrno.c [USE___THREAD]: Use this conditional
7457         in place of [USE_TLS && HAVE___THREAD].
7458         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
7459         (h_errno, _h_errno): Declare these with compat_symbol so they are not
7460         link-time visible.
7461         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
7462         * resolv/res_libc.c [! USE___THREAD]
7463         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
7464         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
7465         (__libc_res): Define as alias for _res.
7466         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7467         Add __libc_h_errno and __libc_res here.
7469 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
7471         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
7472         * resolv/Versions (h_errno, _res): Likewise.
7474 2002-11-14  Roland McGrath  <roland@redhat.com>
7476         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
7477         (%.symlist): Likewise.
7479 2002-11-13  Roland McGrath  <roland@redhat.com>
7481         * scripts/abilist.awk: New file.
7482         * Makefile (distribute): Add it.
7483         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
7484         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
7485         [$(subdir) = elf] (tests): Depend on libc.symlist.
7486         (generated, common-generated): Add those files.
7488         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
7489         * configure: Regenerated.
7490         * config.make.in (OBJDUMP): New variable, substituted by configure.
7492         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
7493         (mallochook, reallochook): Set them up.
7494         (checkhdr): Check HDR->magic2 value.
7495         (freehook): Reset HDR->magic2.
7496         (memalignhook): New static function.
7497         (old_memalign_hook): New static variable.
7498         (mcheck, reallochook): Set __memalign_hook to memalignhook.
7500         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
7501         for the new TCB.
7503 2002-11-13  Andreas Jaeger  <aj@suse.de>
7505         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
7506         attribute.
7507         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7509 2002-11-11  Paul Eggert  <eggert@twinsun.com>
7511         * manual/crypt.texi (Cryptographic Functions): Mention that
7512         the MD5 one-way algorithm is compatible with BSD's.
7514 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
7516         * posix/regex_internal.c (re_string_skip_chars): Also return the last
7517         wide character.
7518         (re_string_reconstruct): Calculate the context by itself when the
7519         offset points out of the valid range.
7520         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
7521         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
7522         (IS_WIDE_WORD_CHAR): New macro.
7523         (IS_WIDE_NEWLINE): New macro.
7525 2002-11-12  Andreas Jaeger  <aj@suse.de>
7527         * sysdeps/x86_64/strchr.S: Don't use one register for two
7528         purposes, this fixes a bug noticed by test-strchr.c.
7530         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
7531         correctly.
7533 2002-11-12  Roland McGrath  <roland@redhat.com>
7535         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
7536         (_G_IO_NO_BACKWARD_COMPAT): Define it.
7538         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
7539         instead of <pt-machine.h>.
7540         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
7541         testandset.
7542         From Ian Wienand <ianw@gelato.unsw.edu.au>.
7544 2002-11-10  Roland McGrath  <roland@redhat.com>
7546         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
7547         Call fputs instead of fwprintf (simpler to follow in debugger).
7549         * crypt/md5-crypt.c: Doc fix.
7551         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
7552         the beginning of generated target commands.
7554         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
7555         dependencies for these in case implicit rule search skipped the
7556         nonexistent source directory.
7557         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
7558         files with $(object-suffixes) as targets too.
7559         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
7560         and a target for it using $(make-target-directory).
7562         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
7564 2002-11-10  Roland McGrath  <roland@frob.com>
7566         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
7567         * sysdeps/generic/bits/pthreadtypes.h: ... here.
7569         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
7570         l_start == 0 and l_len == 1 as we do l_len == 0.
7572 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
7574         * po/da.po: Update from translation team.
7576 2002-11-10  Roland McGrath  <roland@redhat.com>
7578         * config.make.in (includedir): New variable, substituted by configure.
7579         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
7580         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
7582 2002-11-10  Andreas Jaeger  <aj@suse.de>
7584         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
7585         REG_OLDMASK and REG_CR2 to synch with kernel header.
7586         (NGREG): Increase.
7588         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
7589         aliasing problem.
7590         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
7591         * nss/getnssent_r.c (__nss_getent_r): Likewise.
7592         (__nss_setent): Likewise.
7593         (__nss_getent_r): Likewise.
7594         * inet/getnetgrent_r.c (innetgr): Likewise.
7595         (__internal_setnetgrent_reuse): Likewise.
7596         (internal_getnetgrent_r): Likewise.
7597         * inet/ether_hton.c (ether_hostton): Likewise.
7598         * inet/ether_ntoh.c (ether_ntohost): Likewise.
7599         * sunrpc/netname.c (netname2user): Likewise.
7600         * sunrpc/publickey.c (getpublickey): Likewise.
7601         (getsecretkey): Likewise.
7603 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
7605         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
7606         error in range calculation.
7608 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
7610         * string/test-strspn.c (do_test): Ensure zero termination.
7611         * string/test-strpbrk.c (do_test): Likewise.
7612         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
7613         * string/test-strncpy.c (stupid_strncpy): Likewise.
7614         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
7616 2002-10-08  Roland McGrath  <roland@redhat.com>
7618         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
7619         nonzero characters.
7621 2002-09-22  H.J. Lu  <hjl@gnu.org>
7623         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
7624         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
7625         only if __NR_mmap2 is defined.
7627         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
7628         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
7629         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
7630         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
7632 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
7634         * posix/bug-regex13.c (tests): Add new test.
7636         * string/test-strchr.c (stupid_strchr): New function.
7637         (do_random_tests): Make sure the string is zero terminated.
7638         * string/test-strpbrk.c (stupid_strpbrk): New function.
7639         (do_random_tests): Make sure the string is zero terminated.
7640         * string/test-strcmp.c (stupid_strcmp): New function.
7641         (do_random_tests): Make sure the strings are zero terminated.
7642         * string/test-strspn.c (stupid_strspn): New function.
7643         (simple_strspn): Rename rej argument to acc.
7644         (do_random_tests): Make sure the string is zero terminated.
7645         * string/test-strcspn.c (stupid_strcspn): New function.
7646         * string/test-strncpy.c (stupid_strncpy): New function.
7647         * string/test-stpncpy.c (stupid_stpncpy): New function.
7648         * string/test-strncmp.c (stupid_strncmp): New function.
7649         (do_random_tests): Make sure the strings are zero terminated.
7650         * string/test-string.h (impl_t): Change test into long.
7651         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
7653 2002-11-08  Roland McGrath  <roland@redhat.com>
7655         * sysdeps/ia64/elf/configure.in: Add TLS check.
7656         From Ian Wienand <ianw@cse.unsw.edu.au>.
7657         * sysdeps/ia64/elf/configure: Regenerated.
7659 2002-11-07  Roland McGrath  <roland@redhat.com>
7661         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
7662         place of _IO_new_do_write.
7663         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
7664         #undef before versioned_symbol use.
7666 2002-11-07  Richard Henderson  <rth@redhat.com>
7668         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
7669         * configure: Regenerated.
7670         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
7671         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
7672         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
7673         _dl_fini via gp-relative relocations.
7674         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
7676         * elf/tls-macros.h: Add alpha versions.
7677         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
7678         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
7679         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
7680         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
7681         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7682         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
7683         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7684         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7685         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
7686         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7687         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
7688         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7689         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7690         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7691         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
7692         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
7693         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7694         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7696         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
7697         Kill argument registers across the inline syscall.
7699         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
7701         * linuxthreads/sysdeps/alpha/tls.h: New file.
7702         * sysdeps/alpha/dl-tls.h: New file.
7704 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
7706         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
7707         (gmon_initializer): New function.
7708         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
7709         __gmon_start__ here.  Call it from gmon_initializer() instead.
7711 2002-03-12  H.J. Lu  <hjl@gnu.org>
7713         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
7714         tst-array2, and tst-array3.
7715         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
7716         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
7717         ($(objpfx)tst-array1.out): New target.
7718         ($(objpfx)tst-array2): Likewise.
7719         ($(objpfx)tst-array2.out): Likewise.
7720         ($(objpfx)tst-array3.out): Likewise.
7721         * elf/tst-array1.c: New file.
7722         * elf/tst-array1.exp: Likewise.
7723         * elf/tst-array2.c: Likewise.
7724         * elf/tst-array2dep.c: Likewise.
7725         * elf/tst-array2.exp: Likewise.
7726         * elf/tst-array3.c: Likewise.
7728 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
7730         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
7731         Don't add L->l_addr to array entry values.
7733 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
7735         * string/test-string.h: New file.
7736         * string/test-strlen.c: New file.
7737         * string/test-string.h: New file.
7738         * string/test-strcmp.c: New file.
7739         * string/test-strchr.c: New file.
7740         * string/test-strrchr.c: New file.
7741         * string/test-strcpy.c: New file.
7742         * string/test-stpcpy.c: New file.
7743         * string/test-strncpy.c: New file.
7744         * string/test-stpncpy.c: New file.
7745         * string/test-strpbrk.c: New file.
7746         * string/test-strcspn.c: New file.
7747         * string/test-strspn.c: New file.
7748         * string/test-strcat.c: New file.
7749         * string/test-strncmp.c: New file.
7750         * string/test-memchr.c: New file.
7751         * string/test-memcmp.c: New file.
7752         * string/test-memset.c: New file.
7753         * string/test-memcpy.c: New file.
7754         * string/test-mempcpy.c: New file.
7755         * string/test-memmove.c: New file.
7756         * string/Makefile (strop-tests): New variable.
7757         (tests): Add strop-tests.
7758         (distribute): Add test-string.h.
7760 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
7762         * posix/regcomp.c: Use tabs instead of spaces.
7763         * posix/regexec.c: Likewise.
7764         * posix/regex_internal.h: Likewise.
7766         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
7768 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
7770         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
7771         here.
7772         (regcomp): Don't set can_be_null here.
7773         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
7774         (re_compile_internal): Clear can_be_null, set regs_allocated.
7776         * posix/regcomp.c (re_set_fastmap): New function.
7777         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
7778         COMPLEX_BRACKET check.
7779         * posix/regexec.c (re_search_internal): Optimize searching with
7780         fastmap.  Call re_string_reconstruct even if match_first is
7781         smaller than raw_mbs_idx.
7783 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7785         * posix/regcomp (free_dfa_content): Use free_state.
7786         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
7787         pointers in case that realloc failed.
7788         (re_node_set_merge): Likewise.
7789         (register_state): Likewise.
7790         (create_newstate_common): Invoke memory release functions in case of
7791         error conditions.
7792         (create_ci_newstate): Likewise.
7793         (create_cd_newstate): Likewise.
7794         (free_state): New function.
7795         * posix/regexec.c (re_search_internal): Invoke memory release
7796         functions in case of error conditions.
7797         (sift_states_backward): Likewise.
7798         (merge_state_array): Likewise.
7799         (add_epsilon_src_nodes): Likewise.
7800         (sub_epsilon_src_nodes): Likewise.
7801         (search_subexp): Likewise.
7802         (sift_states_bkref): Likewise.
7803         (transit_state_sb): Likewise.
7804         (transit_state_mb): Likewise.
7805         (transit_state_bkref_loop): Likewise.
7806         (group_nodes_into_DFAstates): Likewise.
7807         (push_fail_stack): Don't edit pointers in case that realloc failed.
7808         (extend_buffers): Likewise.
7809         (match_ctx_add_entry): Likewise.
7811 2002-11-06  Roland McGrath  <roland@redhat.com>
7813         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
7814         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7816         * configure.in: Add checks on as and ld for binutils 2.13 or later.
7817         * configure: Regenerated.
7819 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
7821         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
7822         If re_compile_internal failed free fastmap buffer.
7823         (free_dfa_content): Broken out of regfree function.  Frees all dfa
7824         related data.
7825         (regfree): Add free_dfa_content.
7826         (re_compile_internal): If any of the called functions fails free
7827         all dfa related memory.
7829 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7831         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
7832         warnings from the kernel headers.
7834 2002-11-05  Roland McGrath  <roland@redhat.com>
7836         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
7837         From Johannes Stezenbach <js@convergence.de>.
7839         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
7840         #errlist-compat magic comment to give 123 as size.
7841         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
7842         (libc: GLIBC_2.2): ... here.
7843         (libc: GLIBC_2.3): Likewise.
7845 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7847         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
7848         which happens at the beginning so that we can unload modules in
7849         __libc_freeres.
7851 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7853         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
7854         under [__USE_MISC || _ASM].
7856         * elf/elf.h: Remove the obsolete SH TLS relocations.
7858 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7860         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
7862 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
7865         __NR_pread64 and __NR_pwrite64.
7866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7867         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
7868         and __NR_pwrite64.
7869         Revert change to use INLINE_SYSCALL.
7870         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7871         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7872         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7873         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
7874         INLINE_SYSCALL.
7875         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7878         Update clobber list and add a comment about the syscall ABI.
7880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
7881         s_pwrite64, s_ftruncate, s_truncate): Re-add.
7883 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
7885         * iconv/gconv_dl.c (free_mem): Clear loaded.
7886         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
7887         cleanup if any.
7889 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7891         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
7893         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
7894         as old code without locking.  _IO_seekoff calls this function after
7895         locking the stream.
7896         * libio/ioseekpos.c: Likewise for _IO_seekpos.
7897         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
7898         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
7899         prototypes.
7900         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
7901         of _IO_seekoff_internal.
7902         (_IO_rewind): Likewise.
7903         * libio/ioftell.c: Likewise.
7904         * libio/ftello.c: Likewise.
7905         * libio/ftello64.c: Likewise.
7906         * libio/iofgetpos.c: Likewise.
7907         * libio/iofgetpos64.c: Likewise.
7908         * libio/oldiofgetpos.c: Likewise.
7909         * libio/oldiofgetpos64.c: Likewise.
7910         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
7911         _IO_seekpos_internal.
7912         * libio/iofsetpos64.c: Likewise.
7913         * libio/oldiofsetpos.c: Likewise.
7914         * libio/oldiofsetpos64.c: Likewise.
7916 2002-11-04  Roland McGrath  <roland@redhat.com>
7918         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
7919         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
7920         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
7921         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
7922         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7923         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7924         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7925         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
7926         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
7927         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
7929         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
7930         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
7931         Remove these, no longer used.
7933 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
7936         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
7937         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
7938         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
7939         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
7940         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
7941         syscall stubs.
7943         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
7944         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7945         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
7946         and __NR_pread.
7947         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7948         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
7949         and __NR_pwrite.
7950         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7952 2002-11-03  Roland McGrath  <roland@redhat.com>
7954         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
7955         `_dl_tls_static_used'.
7956         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
7957         (__libc_setup_tls): Initialize it.  Let the initial value of
7958         _dl_tls_static_size indicate some surplus space in the computed value.
7959         * elf/dl-open.c (_dl_tls_static_size): New variable.
7960         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
7961         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
7962         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
7963         (CHECK_STATIC_TLS): Use it.
7964         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
7965         closed objects occupied a trailing contiguous chunk of static TLS area.
7967 2002-10-18  Bruno Haible  <bruno@clisp.org>
7969         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
7971 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
7973         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
7974         _wide_data->_IO_read_end if adjustment can be made in the current
7975         buffer.
7977         * sysdeps/unix/sysv/linux/fexecve.c: New file.
7979         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
7980         wide oriented streams are used.
7982         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
7983         service hasn't been used [PR libc/4744].
7985         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
7986         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
7988         * manual/examples/dir.c: Don't include <stddef.h>.
7989         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
7990         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
7992 2002-11-02  H.J. Lu  <hjl@gnu.org>
7994         * stdio-common/reg-printf.c: Include <stddef.h>.
7996 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
7998         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
8000         * po/ca.po: Update from translation team.
8001         * po/es.po: Likewise.
8003         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
8004         is defined write out memory map.
8005         * sysdeps/unix/sysv/linux/segfault.c: New file.
8007 2002-11-02  Roland McGrath  <roland@redhat.com>
8009         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
8010         pointers that can alias.
8011         Reported by Daniel Jacobowitz <drow@mvista.com>.
8013         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
8015 2002-11-02  Roland McGrath  <roland@redhat.com>
8017         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
8018         description to be clearer and to say that *RESULT is set to ENTRY.
8020 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
8022         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
8023         dests_ch arrays together.  Alloca or malloc dest_states,
8024         dest_states_word and dest_states_nl arrays together.  Free memory on
8025         error exit.
8027 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
8029         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
8030         and current_saltbits.
8032 2002-11-02  Roland McGrath  <roland@redhat.com>
8034         * stdio-common/reg-printf.c: Include <stdlib.h>.
8036 2002-11-02  H.J. Lu  <hjl@gnu.org>
8038         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
8039         caller to EXTRA instead of execve.
8041 2002-11-01  Roland McGrath  <roland@redhat.com>
8043         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
8044         in place of [!(USE_TLS && HAVE___THREAD)].
8045         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
8047 2002-10-31  Roger Sayle  <roger@eyesopen.com>
8049         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
8050         New macros.
8051         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8053         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
8054         without defining FP_ROUNDMODE.
8056 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
8058         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
8059         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
8060         declare_symbol.
8061         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
8062         (OLD_SIGLIST_SIZE): Define.
8063         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
8064         (OLD_SIGLIST_SIZE): Define.
8065         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
8067 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
8069         * sysdeps/ia64/strncpy.S: Fix recovery code.
8071 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
8073         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
8074         New macros.
8075         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
8076         text_set_element.
8077         * elf/dl-libc.c (free_mem): Likewise.
8078         * iconv/gconv_conf.c (free_mem): Likewise.
8079         * iconv/gconv_db.c (free_mem): Likewise.
8080         * iconv/gconv_dl.c (free_mem): Likewise.
8081         * iconv/gconv_cache.c (free_mem): Likewise.
8082         * intl/finddomain.c (free_mem): Likewise.
8083         * intl/dcigettext.c (free_mem): Likewise.
8084         * locale/setlocale.c (free_mem): Likewise.
8085         * misc/fstab.c (fstab_free): Likewise.
8086         * nss/nsswitch.c (free_mem): Likewise.
8087         * posix/regcomp.c (free_mem): Likewise.
8088         * resolv/gai_misc.c (free_res): Likewise.
8089         * stdlib/fmtmsg.c (free_mem): Likewise.
8090         * sunrpc/clnt_perr.c (free_mem): Likewise.
8091         * sysdeps/generic/setenv.c (free_mem): Likewise.
8092         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
8093         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
8094         * time/tzset.c (free_mem): Likewise.
8095         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
8096         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
8097         * malloc/set-freeres.c (__libc_freeres): Likewise.
8099         * login/getutent.c: Include stdlib.h instead of stddef.h.
8100         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8101         (__getutent): Allocate buffer the first time it is run.
8102         * login/getutid.c: Include stdlib.h instead of stddef.h.
8103         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8104         (__getutid): Allocate buffer the first time it is run.
8105         * login/getutline.c: Include stdlib.h instead of stddef.h.
8106         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8107         (__getutline): Allocate buffer the first time it is run.
8108         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
8109         (mtrace): Allocate malloc_trace_buffer.
8110         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
8111         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
8112         * string/strerror.c: Include libintl.h and errno.h.
8113         (buf): New variable.
8114         (strerror): Only allocate buffer if actually needed (unknown error).
8115         * time/tzfile.c (transitions): Add libc_freeres_ptr.
8116         (freeres): Remove.
8118 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
8120         * include/libc-symbols.h (libc_freeres_ptr): New macro.
8121         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
8122         symbol_set_define.
8123         (__libc_freeres): Free all pointers in that section.
8124         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
8125         commands when creating .lds script.
8126         (LDSEDCMD-c.so): New variable.
8127         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
8128         (rcmd_af): Use strdup to allocate ahostbuf.
8129         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
8130         (rexec_af): Use strdup to allocate ahostbuf.
8131         * stdio-common/reg-printf.c (printf_funcs): Remove.
8132         (__printf_arginfo_table): Change into printf_arginfo_function **.
8133         Add libc_freeres_ptr.
8134         (__register_printf_function): Allocate __printf_arginfo_table
8135         and __printf_function_table the first time it is called.
8136         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
8137         printf_arginfo_function **.
8138         (parse_one_spec): Add __builtin_expect.
8139         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
8140         (free_mem): Remove.
8141         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
8142         (free_mem): Remove.
8143         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
8144         (string_space, map): Add libc_freeres_ptr.
8145         (free_mem): Remove.
8146         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
8147         (free_mem): Remove.
8148         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
8149         (free_mem): Remove.
8150         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
8151         (buffer): Add libc_freeres_ptr.
8152         (free_mem): Remove for _LIBC.
8153         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
8154         (free_mem): Remove.
8155         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
8156         (free_mem): Remove.
8157         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
8158         (free_mem): Remove.
8159         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
8160         (free_mem): Remove.
8161         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
8162         (free_mem): Remove.
8163         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
8164         (free_mem): Remove.
8165         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
8166         libc_freeres_ptr.
8167         (free_mem): Remove.
8168         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
8169         libc_freeres_ptr.
8170         (free_mem): Remove.
8172 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
8174         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
8175         instead of duplicating the whole function in libc.
8177 2002-10-31  Roland McGrath  <roland@redhat.com>
8179         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
8180         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
8182 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
8184         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
8185         32bit-predefine when creating .new32 list and -U for each
8186         32bit-predefine when creating .new64 list.
8187         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
8189 2002-10-29  Andreas Schwab  <schwab@suse.de>
8191         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
8192         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
8194 2002-10-25  Roland McGrath  <roland@redhat.com>
8196         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
8197         * sysdeps/unix/sysv/linux/configure: Regenerated.
8199         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
8200         _dl_starting_up decl.
8202 2002-10-20  H.J. Lu  <hjl@gnu.org>
8204         * sysdeps/unix/sysv/linux/configure.in: Don't check
8205         /lib/modules/`uname -r`/build/include for kernel headers if
8206         cross compiling.
8207         * sysdeps/unix/sysv/linux/configure: Regenerated.
8209 2002-10-25  Roland McGrath  <roland@redhat.com>
8211         * math/math.h (M_LOG2El): Correct the value.
8212         From Stephen L Moshier <steve@moshier.net>.
8214         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
8215         conditional from __libc_multiple_libcs access.  Remove kludge for weak
8216         symbol access with old compilers we no longer support.
8217         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8218         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
8220 2002-10-25  Roland McGrath  <roland@redhat.com>
8222         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
8223         implement SV_RESETHAND by translating it to SA_RESETHAND.
8225 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
8227         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
8228         type on ELF64 platforms.
8230 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
8232         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
8234         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
8236 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
8238         * elf/dl-misc.c: Include <sysdep.h>.
8239         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
8241         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
8242         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8243         (INLINE_SYSCALL): Use that.
8244         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
8245         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8246         (INLINE_SYSCALL): Use that.
8247         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
8248         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8249         (INLINE_SYSCALL): Use that.
8250         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
8251         dl-sysdep.h.
8252         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8253         (__INTERNAL_SYSCALL_STRING): Define.
8254         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8255         dl-sysdep.h.
8256         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8257         (__INTERNAL_SYSCALL_STRING): Define.
8258         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
8259         __SYSCALL_STRING to inline_syscall*.
8260         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
8261         New macros.
8262         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
8263         inline_syscall4, inline_syscall5, inline_syscall6): Add string
8264         argument.
8266 2002-10-24  Roland McGrath  <roland@redhat.com>
8268         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
8269         * sysdeps/unix/sysv/linux/init-first.c: Not here.
8270         * sysdeps/powerpc/elf/libc-start.c: Or here.
8271         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
8272         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
8273         * sysdeps/unix/sysv/aix/init-first.c: Or here.
8274         * sysdeps/generic/libc-start.c: Or here.
8275         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
8276         access with [! SHARED].
8277         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8279         * libio/bug-wfflush.c: New file.
8280         * libio/Makefile (tests): Add bug-wfflush.
8282 2002-10-23  Roland McGrath  <roland@redhat.com>
8284         * stdio-common/tst-fphex.c: New file.
8285         * stdio-common/Makefile (tests): Add tst-fphex.
8286         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
8287         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
8288         chars always before the value digits.
8289         Reported by James Antill <james.antill@redhat.com>.
8291 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
8293         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
8294         (free_mem): New function.
8295         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
8296         if not cross compiling.
8297         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
8298         (bug-regex14-ENV): Set.
8299         (bug-regex14-mem): New target.
8300         * posix/bug-regex14.c: New file.
8302 2002-10-23  Roland McGrath  <roland@redhat.com>
8304         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
8305         target, so we don't touch it when the link fails.
8307         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
8308         Check for the result overflowing off_t and fail with EOVERFLOW.
8309         * libio/ioftell.c (_IO_ftell): Likewise.
8310         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8312         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
8313         use a temporary timeval on the stack for gettimeofday and copy it.
8314         * login/logout.c (logout): Likewise.
8315         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8317         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
8318         Use __SWORD_TYPE instead of int for member types.
8319         (struct statfs64): Likewise.
8320         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
8321         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
8322         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
8323         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
8324         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
8326         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
8327         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
8328         (ST_NODIRATIME): Restore fixed value of 2048.
8329         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
8330         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
8332         Rearranged <bits/types.h> definitions to reduce duplication.
8333         * sysdeps/generic/bits/types.h: Rewritten, using macros from
8334         <bits/wordsize.h> and new header <bits/typesizes.h>.
8335         * posix/Makefile (headers): Add bits/typesizes.h here.
8336         * sysdeps/generic/bits/typesizes.h: New file.
8337         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
8338         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
8339         * sysdeps/mach/hurd/bits/typesizes.h: New file.
8340         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
8341         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
8342         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
8343         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
8344         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
8345         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
8346         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
8347         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
8348         <bits/pthreadtypes.h> here, not in <bits/types.h>.
8349         * signal/signal.h: Likewise.
8351         * streams/stropts.h: Include <bits/xtitypes.h>.
8352         * streams/Makefile (headers): Add bits/xtitypes.h here.
8353         * sysdeps/generic/bits/xtitypes.h: New file.
8354         * sysdeps/s390/bits/xtitypes.h: New file.
8355         * sysdeps/ia64/bits/xtitypes.h: New file.
8356         * sysdeps/x86_64/bits/xtitypes.h: New file.
8358         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
8359         * sysdeps/generic/bits/ipctypes.h: New file.
8360         * sysdeps/mips/bits/ipctypes.h: New file.
8361         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
8362         * sysdeps/gnu/bits/msq.h: Likewise.
8363         * sysvipc/sys/ipc.h: Likewise.
8365 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
8367         * elf/dl-load.c (struct filebuf): For buf element to have the
8368         alignment of ElfXX_Ehdr since this is what will be stored in it.
8370 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
8372         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
8373         into pointer to locrec_offset.
8374         (add_locale_to_archive): Adjust callers.  Free normalized_name right
8375         before returning, not immediately after add_locale, pass it to
8376         add_alias if not NULL instead of name.  Rename second normalized_name
8377         occurence to nnormalized_codeset_name.
8379         * locale/programs/locarchive.c (enlarge_archive): Make sure
8380         string_size is always a multiple of 4.
8381         Reported by Andreas Schwab <schwab@suse.de>.
8383 2002-10-21  Andreas Schwab  <schwab@suse.de>
8385         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
8386         caller to EXTRA instead of execve, since the latter has a
8387         higher-priority implementation in linuxthreads.
8389 2002-10-21  Roland McGrath  <roland@redhat.com>
8391         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
8392         slotinfo list's len member to the proper size, not just 1.
8393         Initialize static_map.l_tls_initimage.
8395         * elf/dl-open.c (dl_open_worker): Fix loop searching for
8396         dtv_slotinfo_list element containing new modules' l_tls_modid.
8398         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
8399         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
8400         * elf/Makefile (tests): Add tst-tls9.
8401         (tests-static): Add tst-tls9-static.
8402         (tst-tls9-static-ENV): New variable.
8403         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
8405         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
8406         modids used by partially loaded modules being closed can't be known.
8408 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
8410         * posix/Makefile: Add a test case for the bug reported by Aharon
8411         Robbins <arnold@skeeve.com>.
8412         * posix/bug-regex13.c: New file.
8413         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
8415 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
8417         * csu/gmon-start.c: Pretty printing.
8419 2002-10-19  Art Haas  <ahaas@neosoft.com>
8421         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
8422         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
8423         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
8424         * configure: Regenerated.
8426 2002-10-19  Roland McGrath  <roland@redhat.com>
8428         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
8429         and then set $subdirs directly, because the new Autoconf breaks
8430         compatibility in every way imaginable and insists on whining
8431         about usage that worked since the dawn of time.
8432         * configure: Regenerated.
8434         * configure: Regenerated (using Autoconf 2.54).
8435         * sysdeps/alpha/elf/configure: Likewise.
8436         * sysdeps/generic/configure: Likewise.
8437         * sysdeps/i386/elf/configure: Likewise.
8438         * sysdeps/ia64/elf/configure: Likewise.
8439         * sysdeps/mach/hurd/configure: Likewise.
8440         * sysdeps/mach/configure: Likewise.
8441         * sysdeps/unix/configure: Likewise.
8442         * sysdeps/unix/common/configure: Likewise.
8443         * sysdeps/unix/sysv/aix/configure: Likewise.
8444         * sysdeps/unix/sysv/linux/configure: Likewise.
8445         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8446         * sysdeps/x86_64/elf/configure: Likewise.
8448         * config.make.in: Nix completely-soft nonsense.
8449         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
8450         of machine directories instead of fpu subdirectory.
8451         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
8452         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
8453         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
8454         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
8455         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
8456         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
8457         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
8458         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
8459         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
8460         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
8461         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
8462         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
8463         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
8464         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
8465         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
8466         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
8467         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
8468         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
8469         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
8470         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
8471         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
8472         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
8473         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
8474         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
8475         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
8476         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
8477         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
8478         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
8479         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
8480         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
8481         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
8482         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
8483         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
8484         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
8485         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
8486         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
8487         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
8488         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
8489         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
8490         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
8492 2002-10-19  Bruno Haible  <bruno@clisp.org>
8494         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
8496 2002-10-18  Roland McGrath  <roland@redhat.com>
8498         * io/Makefile (routines): Add lchmod.
8499         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
8500         * sysdeps/generic/lchmod.c: New file.
8501         * sysdeps/mach/hurd/lchmod.c: New file.
8502         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
8504 2002-10-18  Art Haas  <ahaas@neosoft.com>
8506         * configure.in: Remove remaining AC_FD_CC macros, and replace
8507         AC_FD_MSG with AS_MESSAGE_FD.
8509 2002-10-18  Roland McGrath  <roland@redhat.com>
8511         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
8512         typos: VALUE -> FINALADDR.
8514         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
8515         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
8516         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
8517         (inline_syscall6): Move these macros ...
8518         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
8520         * configure.in (libc_link_dests, libc_link_sources): Remove these
8521         variables and the AC_LINK_FILES call.
8523         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
8524         change to put new symbols here instead of in GLIBC_2.2.
8525         * sysdeps/powerpc/Subdirs: Move this file ...
8526         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
8528 2002-10-07  Roland McGrath  <roland@redhat.com>
8530         * sysdeps/generic/bits/time.h: Replaced with contents of the
8531         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
8532         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
8533         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
8534         macros is ok even for architectures that don't now implement them.
8535         * sysdeps/mach/hurd/bits/time.h: File removed.
8536         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
8537         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
8538         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
8539         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
8540         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
8542 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
8544         * configure.in: Replace obsolete AC_OUTPUT syntax with
8545         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
8547         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
8548         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
8550         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
8551         * sysdeps/alpha/elf/configure.in: Likewise.
8552         * sysdeps/i386/elf/configure.in: Likewise.
8553         * sysdeps/mach/hurd/configure.in: Likewise.
8554         * sysdeps/x86_64/elf/configure.in: Likewise.
8556         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
8558         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
8559         * sysdeps/generic/configure.in: Likewise.
8560         * sysdeps/i386/elf/configure.in: Likewise.
8561         * sysdeps/ia64/elf/configure.in: Likewise.
8562         * sysdeps/mach/configure.in: Likewise.
8563         * sysdeps/mach/hurd/configure.in: Likewise.
8564         * sysdeps/unix/configure.in: Likewise.
8565         * sysdeps/unix/common/configure.in: Likewise.
8566         * sysdeps/unix/sysv/aix/configure.in: Likewise.
8567         * sysdeps/unix/sysv/linux/configure.in: Likewise.
8568         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
8569         * sysdeps/x86_64/elf/configure.in: Likewise.
8571         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
8572         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
8573         that it's obvious when extra autoconf machinery is being dragged in.
8575 2002-10-18  Roland McGrath  <roland@redhat.com>
8577         * configure.in: Remove bogus echo included in
8578         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
8579         * configure: Regenerated.
8581 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
8583         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
8584         (statfs_filesize_max): New function.
8585         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
8586         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
8587         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
8588         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
8589         statfs_filesize_max.
8590         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8591         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
8592         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
8594 2002-10-17  Roland McGrath  <roland@redhat.com>
8596         * configure.in (MIG): Just AC_SUBST it here.
8597         * configure: Regenerated.
8598         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
8599         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
8600         * sysdeps/mach/configure: Regenerated.
8602         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
8603         and AC_PROVIDE([_AS_CR_PREPARE]).
8605         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
8606         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
8608         * elf/dl-support.c: Move _dl_tls_* variables to ...
8609         * sysdeps/generic/libc-tls.c: ... here.
8611         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
8612         allow IDX to be one past the current last slotinfo entry.
8613         (_dl_close): Pass IMAP->l_init_called for that parameter.
8615 2002-10-07  Andreas Schwab  <schwab@suse.de>
8617         * aclocal.m4: Fix for autoconf 2.53.
8618         * configure.in: Likewise.  Require autoconf 2.53.
8620 2002-10-08  Richard Henderson  <rth@redhat.com>
8622         * soft-fp/op-4.h: Handle carry correctly in
8623         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
8624         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
8625         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
8627 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
8629         * configure.in: Compute completely-soft.
8630         * config.make.in: Make completely-soft available to sub-makes.
8631         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
8632         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
8633         fe_nomask to libm-support.
8634         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
8635         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
8636         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
8637         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
8638         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
8639         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
8640         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
8641         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
8642         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
8643         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
8644         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
8645         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
8646         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
8647         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
8648         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
8649         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
8650         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
8651         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
8652         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
8653         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
8654         __sim_round_mode.
8655         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
8656         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
8657         FP_HANDLE_EXCEPTIONS.
8658         Define FP_ROUNDMODE.
8659         Redefine FP_* macros to correspond to the FE_* bit positions.
8660         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
8661         Define externs for __sim_exceptions, __sim_disabled_exceptions,
8662         __sim_round_mode, __simulate_exceptions.
8663         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
8664         * sysdeps/powerpc/bits/fenv.h: ...to here.
8666 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
8668         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8669         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
8670         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
8671         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
8672         __builtin_expect.
8674 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
8676         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
8677         __libc_res_nsend): New prototypes.
8678         * resolv/res_query.c (QUERYSIZE): Define.
8679         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
8680         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
8681         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
8682         res_nsend, pass answerp.
8683         (res_nquery): Changed into wrapper around __libc_res_nquery.
8684         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
8685         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
8686         instead of the non-__libc_ variants, pass them answerp.
8687         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
8688         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
8689         Added answerp argument.  Call __libc_res_nquery instead of
8690         res_nquery, pass answerp.
8691         (res_nquerydomain): Changed into wrapper around
8692         __libc_res_nquerydomain.
8693         * resolv/res_send.c: Include sys/ioctl.h.
8694         (MAXPACKET): Define.
8695         (send_vc): Change arguments.  Reallocate answer buffer if it is
8696         too small.
8697         (send_dg): Likewise.
8698         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
8699         Reallocate answer buffer if it is too small and hooks are in use.
8700         Adjust calls to send_vc and send_dg.
8701         (res_nsend): Changed into wrapper around __libc_res_nsend.
8702         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
8703         just 1K answer buffer on the stack, use __libc_res_nsearch instead
8704         of res_nsearch.
8705         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
8706         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8707         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
8708         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
8709         (gethostbyaddr): Similarly with __libc_res_nquery.
8710         * resolv/Versions (libresolv): Export __libc_res_nquery and
8711         __libc_res_nsearch at GLIBC_PRIVATE.
8713 2002-10-17  Roland McGrath  <roland@redhat.com>
8715         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
8716         * configure: Regenerated.
8718         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
8719         before performing the reloc, not after.
8720         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8722 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
8724         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
8725         * locale/programs/linereader.c (lr_open): Likewise.
8726         * locale/programs/charmap-dir.c (charmap_open): Likewise.
8727         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8729 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
8731         * posix/bug-regex11.c: Add a test case for the bug reported by
8732         Paolo Bonzini <bonzini@gnu.org>.
8733         * posix/regexec.c (sift_states_bkref): Use correct destination of
8734         the back reference.
8736 2002-10-17  Roland McGrath  <roland@redhat.com>
8738         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
8739         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
8740         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
8741         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8742         Call it after performing TPOFF relocs.
8743         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8744         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8745         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
8747         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
8748         when closing a partially-initialized object.
8750         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
8751         instead of _dl_fatal_printf when we see PT_TLS.
8753         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
8754         instead of $(libof-$<).
8756 2002-10-16  Roland McGrath  <roland@redhat.com>
8758         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
8759         instead of += to append, to be sure $(lib) gets expanded at defn time.
8760         (libof-$(cpp-src)): New variable, define this instead.
8761         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
8762         (lib): Don't use override.
8763         (CPPFLAGS-$(lib)): New variable, put -D's here.
8764         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
8765         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
8766         LIB found by $(libof-*) for basename, target, or source.
8767         * Makerules (CPPFLAGS-nonlib): New variable.
8768         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
8769         * locale/Makefile (lib): Likewise.
8770         * sunrpc/Makefile (lib): Likewise.
8772         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
8773         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
8774         * sysdeps/unix/sysv/linux/pathconf.h: New file.
8775         (statfs_link_max): New function, guts from fpathconf.c.
8776         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
8777         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8778         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
8779         to use the linux/pathconf.c code by #include rather than duplication.
8780         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
8782 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
8784         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8785         Use __libc_errno only for libc itself.
8787 2002-10-16  Andreas Jaeger  <aj@suse.de>
8789         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
8791 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
8793         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8794         Use __libc_errno only for libc itself.
8796 2002-10-15  Roland McGrath  <roland@redhat.com>
8797             Jakub Jelinek  <jakub@redhat.com>
8799         * sysdeps/unix/sysv/linux/Makefile
8800         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
8801         sparc/Makefile to produce a bi-arch file as needed.
8802         That's now parameterized by the variable $(64bit-predefine).
8803         Use LC_ALL=C for `comm' commands in that rule.
8804         No longer conditional on [$(no_syscall_list_h)].
8805         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
8806         (64bit-predefine): New variable.
8807         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
8808         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
8809         * sysdeps/unix/sysv/linux/powerpc/Makefile
8810         (64bit-predefine): New variable.
8812 2002-10-15  Roland McGrath  <roland@redhat.com>
8814         * sysdeps/unix/sysv/linux/Makefile
8815         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
8817         * login/utmp-private.h: Declare __libc_utmp_lock.
8818         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
8819         and call __libc_utmp_jump_table functions directly, instead of using
8820         __setutent et al.
8822         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
8823         * sysdeps/unix/sysv/linux/configure: Regenerated.
8825         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
8826         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8827         Use int32_t for ll_time.
8828         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8829         Use int32_t instead of long int for ut_session.
8830         Use an anonymous struct with 32-bit fields for ut_tv.
8831         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
8832         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
8833         here as in utmp.h for `struct utmp'.
8834         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
8835         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
8836         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
8837         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
8838         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
8839         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
8841         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
8842         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
8843         All the following files were identical or equivalent to it.
8844         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
8845         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
8846         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
8847         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
8848         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
8849         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
8850         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
8851         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
8852         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
8853         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
8855         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
8856         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
8857         Other than the previously incorrect sign of msg_iovlen, this is a
8858         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
8859         match their layouts as well, so the following are now identical to it.
8860         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
8861         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
8862         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
8863         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
8864         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
8866 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
8868         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8869         Define for 2.4+ kernels.
8871         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
8872         are known to have the vfork syscall.  Don't confuse the CPUs
8873         branch prediction unit by jumping to the return address.
8875         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
8876         support for reiserfs and xfs.
8878         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
8879         XFS link count.
8880         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
8881         and XFS_LINK_MAX.
8882         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
8884 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
8886         * include/libc-symbols.h (attribute_tls_model_ie): Define.
8887         * include/errno.h (errno): Define to __libc_errno in libc.so.
8888         Add attribute_tls_model_ie.
8889         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
8890         Add attribute_tls_model_ie.
8891         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
8892         attribute_tls_model_ie.
8893         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
8894         (h_errno): Define.
8895         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
8896         (_res): Define.
8897         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
8898         attribute_tls_model_ie.
8899         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
8900         __thread.
8901         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
8902         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
8903         __libc_errno in USE___THREAD case.
8904         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8905         Likewise.
8906         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
8907         __attribute__((tls_model (""))).
8908         * configure: Rebuilt.
8909         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
8911 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
8913         * timezone/asia: Update from tzdata2002d.
8914         * timezone/australasia: Likewise.
8915         * timezone/iso3166.tab: Likewise.
8916         * timezone/southamerica: Likewise.
8917         * timezone/zone-tab: Likewise.
8919 2002-10-15  Roland McGrath  <roland@redhat.com>
8921         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
8922         Adjust TCB pointer before calling free, so we get the whole block.
8924 2002-10-14  Roland McGrath  <roland@redhat.com>
8926         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
8927         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
8928         extern using attribute_hidden instead of static, avoids warning.
8930 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
8932         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
8933         * sysdeps/unix/sysv/linux/configure: Rebuilt.
8935 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8937         * po/sv.po: Update from translation team.
8939 2002-10-12  H.J. Lu  <hjl@gnu.org>
8941         * sunrpc/thrsvc.c (PROCQUIT): New.
8942         (struct rpc_arg): New.
8943         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
8944         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
8945         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
8946         (main): Modified for struct rpc_arg *.
8948 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8950         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
8952 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
8954         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
8955         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
8956         in ld.so even if __thread is supported.
8958 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
8960         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
8961         Add hack to prevent the compiler from clobbering the signal context.
8962         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
8963         Likewise.
8964         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
8965         Likewise.
8967 2002-10-14  Andreas Jaeger  <aj@suse.de>
8969         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
8970         Guido Guenther <agx@sigxcpu.org>.
8972 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8974         * po/sk.po: Update from translation team.
8976 2002-09-26  Roland McGrath  <roland@redhat.com>
8978         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
8979         dynamic string tag.
8980         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
8981         DL_DST_LIB based on $(slibdir).
8983 2002-10-13  Roland McGrath  <roland@frob.com>
8985         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
8987         * sysdeps/mach/hurd/getresuid.c: New file.
8988         * sysdeps/mach/hurd/getresgid.c: New file.
8989         * sysdeps/mach/hurd/setresuid.c: New file.
8990         * sysdeps/mach/hurd/setresgid.c: New file.
8992         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
8993         setresgid): Declare them.
8994         * NEWS: Mention it.
8995         * include/unistd.h
8996         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
8997         add libc_hidden_proto.
8998         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
8999         getresuid, getresgid, setresuid, setresgid here.
9000         * Versions.def (libc): Define GLIBC_2.3.2 set.
9001         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
9002         Add libc_hidden_def.
9003         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
9004         * sysdeps/generic/setresgid.c: New file.
9005         * sysdeps/generic/setresuid.c: New file.
9006         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9007         (sysdep_routines): Don't add getresuid and getresgid here.
9008         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
9009         (sysdep_routines): Don't add setresuid and setresgid here.
9010         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
9011         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
9012         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9013         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
9014         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9015         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9016         * posix/Makefile (routines): Add them all here instead.
9017         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
9018         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
9019         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
9020         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
9021         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
9022         [! __NR_setresuid]: Include generic file.
9023         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
9024         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
9025         [! __NR_setresuid]: Include generic file.
9026         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
9027         Caller is - now, not EXTRA.
9028         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
9029         (setresuid, setresgid, getresuid, getresgid): Likewise.
9030         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
9031         Add these calls here.
9032         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
9033         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9034         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9035         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9036         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9039         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9040         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9042         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9043         (sysdep_routines): Add setfsuid and setfsgid here.
9044         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
9045         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
9046         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
9047         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
9048         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9049         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
9050         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9051         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9053         * hurd/errno.c: Renamed to ...
9054         * hurd/errno-loc.c: ... this.
9055         * hurd/Makefile (routines): errno -> errno-loc
9057 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
9059         * po/de.po: Update from translation team.
9061         * MakeTAGS: Add -E flag to xgettext runs.
9063 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
9065         * po/fr.po: Update from translation team.
9067         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
9068         Optimize a bit for use in glibc.
9070 2002-10-12  Roland McGrath  <roland@redhat.com>
9072         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
9073         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
9075 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
9077         * po/sv.po: Update from translation team.
9079 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
9081         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
9082         OP_CONTEXT_NODE.
9083         (regfree): Likewise.
9084         (create_initial_state): Likewise.
9085         (analyze): Remove the substitutions which became useless.
9086         (calc_first): Likewise.
9087         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
9088         epsilon destination.
9089         (duplicate_node_closure): New function.
9090         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
9091         (calc_inveclosure): Likewise.
9092         (calc_eclosure): Likewise.
9093         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
9094         direct invocation of duplicate_node.
9095         (parse): Don't use comma operator in the return to avoid compiler
9096         warning.
9097         (parse_reg_exp): Likewise.
9098         (parse_branch): Likewise.
9099         (parse_expression): Likewise.
9100         (parse_sub_exp): Likewise.
9101         (parse_dup_op): Likewise.
9102         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
9103         which became useless.
9104         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
9105         (create_cd_newstate): Likewise.
9106         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
9107         (re_token_t): Likewise.
9108         (re_dfa_t): Likewise.
9109         (re_node_set_remove): New macro.
9110         * posix/regexec.c (check_matching): Remove the handling
9111         OP_CONTEXT_NODE.
9112         (check_halt_node_context): Likewise.
9113         (proceed_next_node): Likewise.
9114         (pop_fail_stack): Fix the memory leak.
9115         (set_regs): Likewise.
9116         (free_fail_stack_return): New function.
9117         (sift_states_backward): Fix the memory leak.  Remove the handling
9118         OP_CONTEXT_NODE.
9119         (update_cur_sifted_state): Append some if clause to avoid redundant
9120         call.
9121         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
9122         back reference.
9123         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
9124         (check_subexp_limits): Likewise.
9125         (search_subexp): Likewise.
9126         (sift_states_bkref): Likewise.
9127         (transit_state_mb): Likewise.
9128         (transit_state_bkref_loop): Likewise.
9129         (transit_state_bkref_loop): Likewise.
9130         (group_nodes_into_DFAstates): Likewise.
9131         (check_node_accept): Likewise.
9132         (sift_ctx_init): Add initializing.
9134 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
9136         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
9137         __builtin_expect.
9139 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
9141         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
9142         duplicated variable c.
9144         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
9145         if possible.
9147         * sysdeps/unix/sysv/linux/i386/sysdep.h
9148         (INTERNAL_SYSCALL_ERROR_P): New define.
9149         (INTERNAL_SYSCALL_ERRNO): Likewise.
9151         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
9152         Add hack to prevent the compiler from clobbering the signal context.
9154 2002-10-11  Roland McGrath  <roland@redhat.com>
9156         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9157         Fix typos.
9159         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
9160         * sysdeps/sh/dl-lookupcfg.h: File removed.
9161         * sysdeps/i386/dl-lookupcfg.h: File removed.
9163         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
9164         missing labels and ; from last change.
9166         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
9167         number literals, so they are doubles instead of ints.
9169 2002-10-09  Roland McGrath  <roland@redhat.com>
9171         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
9172         changed from [USE_TLS && HAVE___THREAD].
9174         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
9175         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
9176         * sysdeps/x86_64/dl-machine.h
9177         (elf_machine_type_class, elf_machine_rela): Likewise.
9178         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
9179         Likewise.
9181         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
9182         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
9183         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
9185         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
9186         instead of ___tls_get_addr.
9187         (___tls_get_addr_internal): Add attribute_hidden to decl.
9189         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
9190         _dl_error_catch_tsd.
9191         * elf/rtld.c (startup_error_tsd): New function.
9192         (dl_main): Point _dl_error_catch_tsd at that.
9193         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
9194         use new function pointer instead.
9195         * elf/dl-tsd.c: New file.
9196         * elf/Makefile (routines): Add it.
9198 2002-10-07  Roland McGrath  <roland@redhat.com>
9200         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
9201         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
9202         take _dl_load_lock around calling __writev.
9204         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
9205         (INLINE_SYSCALL): Use that.
9207         * sysdeps/generic/dl-sysdep.h: New file.
9208         * sysdeps/mach/hurd/dl-sysdep.h: New file.
9209         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
9210         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
9211         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
9212         access it directly.
9213         * elf/dl-minimal.c (__errno_location): Removed.
9214         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9215         Use GOTOFF access for errno.
9216         * sysdeps/unix/sysv/linux/i386/sysdep.h
9217         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9219         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9220         Use PC-relative access for errno.
9221         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9222         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9224         * include/tls.h: New file.
9225         (USE___THREAD): New macro.
9226         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
9227         libc or libpthread.
9228         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
9229         changed from [USE_TLS && HAVE___THREAD].
9230         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9231         * sysdeps/unix/i386/sysdep.S: Likewise.
9232         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9233         * include/errno.h: Likewise.
9234         * include/netdb.h: Likewise.
9235         * include/resolv.h: Likewise.
9237         * sysdeps/generic/errno.c: New file.
9238         * csu/Makefile (aux): New variable, list errno.
9239         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
9240         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
9241         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
9242         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9243         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9244         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
9245         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
9246         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
9247         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9248         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
9249         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
9250         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
9251         * sysdeps/unix/alpha/sysdep.S: Likewise.
9252         * sysdeps/generic/start.c: Likewise.
9253         * sysdeps/unix/start.c: Likewise.
9254         * sysdeps/unix/arm/start.c: Likewise.
9255         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
9256         * sysdeps/unix/sparc/start.c: Likewise.
9257         * sysdeps/unix/sysv/irix4/start.c: Likewise.
9258         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
9260         * manual/search.texi (Tree Search Function, Hash Search Function):
9261         Mention search.h clearly.
9263 2002-10-05  Roland McGrath  <roland@redhat.com>
9265         * elf/dl-fxstat64.c: File removed.
9266         * elf/dl-xstat64.c: File removed.
9267         * elf/Makefile (rtld-routines): Remove them.
9268         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
9269         Instead, use strong_alias instead of versioned_symbol in the
9270         !SHLIB_COMPAT case.
9271         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
9272         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9274         * include/shlib-compat.h
9275         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
9276         [! NOT_IN_libc] (IS_IN_libc): Define it.
9277         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
9278         * elf/Makefile (CPPFLAGS-.os): Likewise.
9280         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
9281         Return the status instead of calling exit.
9283         * Makeconfig (CFLAGS): Prepend -std=gnu99.
9284         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
9285         Remove superfluous rm command, whose @ plus make bugs hid
9286         all these commands from the make output.
9288         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
9289         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
9290         Use that file's contents instead of literal echo's for the prologue.
9291         * include/features.h: Include <gnu/stubs.h> unconditionally.
9292         * include/gnu/stubs.h: New file.
9294 2002-09-30  Roland McGrath  <roland@redhat.com>
9296         * elf/rtld-Rules: New file.
9297         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
9298         $(objpfx)rtld-libc.a): New targets.
9299         (generated): Add them.
9300         (reloc-link): Remove -o $@ from the variable.
9301         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
9302         (distribute): Add rtld-Rules.
9303         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
9304         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
9305         (common-mostlyclean, common-clean): Clean up rtld-* files.
9306         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
9308 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
9310         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
9311         If temp != NULL, copy dynamic entries which need relocation to temp
9312         array before relocating.
9313         (DL_RO_DYN_TEMP_CNT): Define.
9314         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
9315         * elf/rtld.c (_dl_start): Likewise.
9316         (dl_main): Likewise.  Add dyn_temp static variable.
9318 2002-10-11  Roland McGrath  <roland@redhat.com>
9320         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
9321         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
9323         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
9324         proper set of no-op insn prefixes.
9326         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
9328 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
9330         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
9331         __pthread_kill_other_threads_np.
9333         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
9335 2002-10-08  Roland McGrath  <roland@redhat.com>
9337         * locale/newlocale.c (__newlocale): If setting all categories to "C",
9338         just return &_nl_C_locobj instead of copying it.
9339         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
9340         * locale/duplocale.c (__duplocale): Likewise.
9342 2002-10-07  Roland McGrath  <roland@frob.com>
9344         * config.h.in (HAVE_I386_SET_GDT): New #undef.
9345         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
9346         * sysdeps/mach/configure: Regenerated.
9348 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9351         Add all necessary register outputs for syscall-clobbered registers.
9353 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
9355         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
9356         Itanium 2 (and Itanium).
9357         Fix unwind directives and make it fit in 80 columns.
9358         * sysdeps/ia64/memset.S: Likewise.
9359         * sysdeps/ia64/memcpy.S: Likewise.
9360         Move jump table to .rodata section.
9362 2002-10-03  Roland McGrath  <roland@frob.com>
9364         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
9365         clobbers to asm.
9367 2002-10-10  Andreas Jaeger  <aj@suse.de>
9369         * sysdeps/x86_64/_mcount.S: Restore correct registers.
9371 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
9373         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
9375 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
9377         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
9378         _dl_allocate_tls_init.  Add rtld_hidden_proto.
9379         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
9380         rtld_hidden_def.
9381         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
9383         * version.h (VERSION): Bump to 2.3.1.
9385         * Make-dist: Add back one of the tar invocations removed before.
9387         * stdlib/Makefile (distribute): Add allocalim.h.
9389         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
9390         (__libc_tsd_address): Use correct variable name.
9391         Patch by Stefan Jones <stefan.jones@multigig.com>.
9393         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
9394         Reported by edwardsg@sgi.com [PR libc/4678].
9396         * Versions.def (libc): Add GLIBC_2.3.1.
9397         (libpthread): Add GLIBC_2.3.1.
9399         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
9400         and __sigtimedwait.
9401         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
9402         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
9403         libc_hidden_def.
9404         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
9405         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9407         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
9408         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
9409         and make old name an alias.
9410         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
9411         and make old name an alias.
9412         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
9413         __libc_msgsnd.
9415         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
9416         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
9417         __libc_writev.
9418         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
9419         old name an alias.
9420         * sysdeps/posix/readv.c: Likewise
9421         * sysdeps/unix/sysv/aix/readv.c: Likewise.
9422         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9423         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
9424         old name an alias.
9425         * sysdeps/posix/writev.c: Likewise
9426         * sysdeps/unix/sysv/aix/writev.c: Likewise.
9427         * sysdeps/unix/sysv/linux/writev.c: Likewise.
9429         * include/sys/wait.h: Declare __waitid.
9430         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
9431         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
9432         name an alias.
9433         * sysdeps/posix/waitid.c: Likewise.
9434         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
9436         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
9438 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
9440         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
9441         prototypes.
9442         (__MAX_ALLOCA_CUTOFF): Define.
9443         Include allocalim.h.
9444         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
9445         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
9446         host_buffer depending on __libc_use_alloca.
9447         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
9448         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
9449         net_buffer depending on __libc_use_alloca.
9450         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
9451         buf depending on __libc_use_alloca.
9452         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
9453         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
9454         instead of hardcoded constants.
9455         Pass proper size argument to alloca and compute end for wide char
9456         version.
9457         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
9458         instead of hardcoded constants.
9459         * string/strcoll.c (strcoll): Likewise.
9460         * string/strxfrm.c (strxfrm): Likewise.
9461         * sysdeps/posix/readv.c (__readv): Likewise.
9462         * sysdeps/posix/writev.c (__writev): Likewise.
9463         * sysdeps/generic/allocalim.h: New file.
9465 2002-10-08  Roland McGrath  <roland@redhat.com>
9467         * configure.in (aux_missing warning): Change "too old" to
9468         "incompatible versions", since for autoconf it's "too new" right now.
9469         * configure: Regenerated.
9471         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
9472         one found doesn't work on our configure.in.
9473         * configure: Regenerated.
9474         * config.make.in (AUTOCONF): New substituted variable.
9475         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
9476         (autoconf-it): ... here, use that instead of defining conditionally.
9477         Use $(AUTOCONF) instead of literal autoconf.
9478         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
9479         with this condition.
9480         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
9482 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
9484         * Make-dist (dist): Cleanup a bit.  We are not interested in the
9485         14 char filename limit anymore.  Remove intermediate files and
9486         symlinks.
9488 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
9490         * po/sk.po: Update from translation team.
9491         * po/tr.po: Likewise.
9492         * po/gl.po: Likewise.
9494 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9496         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
9498 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
9500         * version.h (RELEASE): Change to stable.
9502 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
9504         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
9505         __syscall_exit_group): New prototypes.
9507 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
9509         * glibc 2.3 released.
9512 See ChangeLog.13 for earlier changes.